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
['', 'BG G2', 'dg ga fd'  
X:1
L:1/8
M:9/8
K:G
 d |: BG G2 G2 | BG G2 gd | BG GF G2 | EA AB c/B/A :: dg ga fd | gB BA Bc | dg ga fd |1 
 eA AB c/B/A :|2 e/f/g af g ||  