Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
Q:1/4=100
M:4/4
K:G
['G3/2 A/']  
X:1
L:1/8
Q:1/4=100
M:4/4
K:G
 B3/2 c/ | (d<B) (A>B) G2 (B<G) | E<G D>B, D2 G3/2 A/ | B<d e<g d<B G3/2 B/ | B2 A2 z2 B>c | 
 d>B A>B G2 B G | E<G (D>B,) D2 G3/2 A/ | B<d e<a d<B A>B | 
"^NB1" G4"_all as written"{A} G A/ B3/2 c/ c d c |"^NB1" g2 G3/2 A/ B3/2 c/ d c g/ G | 
 G3/2 A/ G E D B, G | B G B d ef/g/ e2 |"^NB1" d2 BB G3/2 E/ G D/ G | B d A B G2 |]  