Compose a musical piece using the given motif and adhering to the outlined musical form.
X:1
L:1/8
M:6/8
K:G
['d2 c B2 D', 'e2 d'  
X:1
L:1/8
M:6/8
K:G
|: d2 c | B2 D GBD | c2 E A2 G | F/G/AF DFA | GB/c/e d2 c | B2 D GB/c/d | c2 E A2 G | FAF DFA | 
 G3 ::[K:D] DE/F/G | A2 d dc=c | B2 g e2 d | cec Ace | dfb a2 A | Ad/d/d dc=c | BGg e2 d | 
 c=c^c AA/B/c | dAF :|  