Form a musical piece based on the provided motif while observing the defined structure.
X:1
L:1/8
M:4/4
K:G
['d g(dd)e', 'AD cB/A/'  
X:1
L:1/8
M:4/4
K:G
 d | g(dd)e d(BB)d | e/f/g dc/B/{B} A3 d | g(dd)e dc/B/ e/f/g | dBcA G3 :: B | AD cB/A/ BG dc/B/ | 
 AD cB/A/ B3 A | (B/^c/d) (e/f/g) (f/e/d) (c/B/A) | (f/a/f/d/) e/(g/e/^c/) d3!D.C.! :|  