Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:4/4
K:G
['dcBG DGBd', 'Bc dg g2 defd', 'Bc dg g2 defd dgfa g3 a'  
X:1
L:1/8
M:4/4
K:G
 d |:{e} dcBG DGBd |{e} dcBd (3cdc Bd |{e} dcBG DGBd |{d} cAFA (3cdc Bc :| dg g2 defd | 
{e} dgfd (3cBc Bc | dg g2 defd | cAFA (3cdc Bc | dg g2 defd | dgfa g3 a | (3bag ag{a} gfde | 
 fdAB (3cdc Bd ||  