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:Amin
['E A>BcG A2 e2 dcBA G2 (F2', 'e a>Ae>A'  
X:1
L:1/8
M:4/4
K:Amin
 E | A>BcG A2 e2 | dcBA G2 (F2 | E2) z2 z/ (C/E/A/) z/ (c/e/a/) | a2 z (^g a2 a) :| e | 
 a>Ae>A f2 ed | c>Ae>A B2 z e | a>Ae>A c2 AA | (DE/F/ E^G) (A2 A) e | a>Ae>A f2 ed | 
 c>Ae>A B2 z E | (A>BcB) AECA, | (DE/F/ E ^G) (A,2 A,) ||  