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
['G2 gd', '', 'z B3 c d2 d2 cBcd e4'  
X:1
L:1/8
M:4/4
K:G
 (DE/F/) | G2 gd edBA | G2 gd edBG | DGBG DGBG | DGBd cBAB | G2 gd edBA | G2 gd edBd | gfgd ecAF | 
 G2 GF G :| z |: B3 c d2 d2 | cBcd e4 | A3 B cBcA | Ggfa g2 ge | dBdg eceg | fdfa gfge | 
 dBdg ecAF | G2 GF G2 :|  