Form a musical piece based on the provided motif while observing the defined structure.
X:1
L:1/8
M:3/4
K:G
['d d2 B2 c2', 'B2 c2'  
X:1
L:1/8
M:3/4
K:G
 d | d2 B2 c2 | (d>e) e3 d | dc B2 A2 | d>B G2 z d | d2 B2 c2 | (de) e3 d | (gf)(ed) cB | 
 (d{d}B A2) :: A | A2 (3cBA (3cBA | B2 c2 d2 | D2 (3cBA (3cBA | B2 c2 z d | d2 B2 c2 | 
 (dg) (fa) (gd) | (3edc B2 A2 | G4 :|  