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:Dmix
['D G2 c BGB c2 A B2', 'ABA AFD'  
X:1
L:1/8
M:9/8
K:Dmix
 D | G2 c BGB c2 A | B2 d cAG F2 D | G2 c BGB c2 A | B2 d cAF G2 :: B | ABA AFD FED | 
 ABA AFD G2 B | ABA AFD FED | B2 d cAF G2 :|  