Construct a musical composition utilizing the provided motif and conforming to the specified structure.
X:1
L:1/8
M:3/4
K:Dmin
['A>G (3ABc A2 d>e f>e d2 f>e', 'e>d e>f g>e (3def e>c A2 A>G'  
X:1
L:1/8
M:3/4
K:Dmin
 A>G (3ABc A2 | d>e f>e d2 | f>e f>a g>f | d>f e>c A2 | A>G (3ABc A2 | d>e f>e d2 | f>e f>a g>f | 
 d2 e4 :: e>d e>f g>e | (3def e>c A2 | A>G A>B c>A | G>B A>E"^c?" A,2 | e>d e>f g>e | 
 (3def e>c A2 | A>G A>B c>A | (3GAB A4 :|  