Create a composition based on the provided motif, following the specified musical form.
X:1
L:1/8
M:9/8
K:G
['G2 G BAB dBG A>BA c2 d', 'g (Tgfg) (Tgfg) afd gfg agf e2', 'BGB BGB'  
X:1
L:1/8
M:9/8
K:G
 G2 G BAB dBG | A>BA c2 d e2 g | G>AG B2 c dBG | e2 e eag Tf2 g :: (Tgfg) (Tgfg) afd | 
 gfg agf e2 d | BGB d2 d e2 f | gfe dGB A2 G :: BGB BGB c2 e | BGB BGB A2 c | BGB BGB d2 g- | 
 gfe dGB A2 G :|  