Create a composition based on the provided motif, following the specified musical form.
X:1
L:1/8
M:4/4
K:G
['d2 eB dB (3BAB G2', 'G2 (3Bcd g2 fg gfed (3Bcd ef'  
X:1
L:1/8
M:4/4
K:G
|: d2 eB dB (3BAB | dBAB"^~" G2 AG | EA"^~" A2 BG"^~" G2 | BGBd g2 ge | d2 eB dB (3BAB | 
 dBAB"^~" G2 GE | DEGA B2 Bc | dBAc BG G2 :: (3Bcd ef"^|" g2 fg | afdf"^|" gfed | (3Bcd ef gfgb | 
 agab"^~" g2 ga | bg (3gfg agef |"^|" g2 fe dBAB | DEGA"^|" B2 Bc | dBAd BG G2 :|  