Design a musical work that abides by the outlined structure and integrates the assigned theme.
X:1
L:1/8
Q:1/4=88
M:4/4
K:G
['(d<B) (A>G) E2', 'G2 (B>A) (G>A)(B>c) d3 e (d<B)AG d2'  
X:1
L:1/8
Q:1/4=88
M:4/4
K:G
"^Andante" G>A | (B>A)(Bd){c} B2 A>G | E>DEG{B} A2 (B>d) | e2 (g<e) (d<B) (A>G) | E2 (G>A) G3 A | 
 (B>A)B>d{c} B2 (AG) | E>DEG A2 (B>d) | (e>d)(e>g) (d<B) (A>G) | E2 (G>A) G2 :: (B>A) | 
 (G>A)(B>c) d3 e | (d<B)AG d2 g>f | (e>f)(g>a){g} f2 (ed) | B2 e>f e3 f | 
 (g>f)(ed){c} B2 (e3/2f/4g/4) | (d<B)TA>G{B} A2 (B>d) | e>dBe (d<B)TA>G | E2 G>A G2 :|  