Form a musical piece based on the provided motif while observing the defined structure.
X:1
L:1/8
M:4/4
K:Gmin
['B,4 A,4 (3(G,B,D) (3(GBd) g2 z2', 'B>AB>c d>c B2 c>=Bc>d e>d c2 f>=ef>g'  
X:1
L:1/8
M:4/4
K:Gmin
 uG,>A, | B,4 A,4 | (3(G,B,D) (3(GBd) g2 z2 | (3(cde) (3(ABc) (3(^FGA) D2 | 
 (3(cde) (3(ABc) (3(^FGA) D2 | B,4 A,4 | (3(G,B,D) (3(GBd) g2 z2 | d>^cd>e (d<A) z e | d>cB>A G2 :: 
 F2 | B>AB>c d>c B2 | c>=Bc>d e>d c2 | f>=ef>g a>gf>e | d>cB>G (_G2 F2) | B>AB>c d>c B2 | 
 c>=Bc>d e>d c2 | f>=ef>g a>g f2 | (3(agf) (3(edc) B2 :|  