Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:9/8
K:G
['GFG G2 e dBG E2 A ABA', 'FED dBd ece', 'dcB cBA BAG'  
X:1
L:1/8
M:9/8
K:G
|: GFG G2 e dBG | E2 A ABA FED | GFG BGB def | gdB GAG FED :: dBd ece dBG | E2 A ABA FED | 
 dBd ece def | gdB GAG FED :: dcB cBA BAG | E2 A A2 B cBA | dcB cBA BAG | D2 G G2 A BAG :|  