Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:2/2
K:G
['d>B G2', 'D2 A>^GA>B c>A F2 G>FG>A B>G D2'  
X:1
L:1/8
M:2/2
K:G
 D2 | G>FG>B d>B G2 | c>Bc>e g>e c2 | G27/8F/G/B/ d>B G2 | A>GF>E D2 D2 | G>FG>B d>B G2 | 
 c>Bc>e g>e c2 | d>gf>e (3ded (3cBA | G2 B2 G2 :: D2 | A>^GA>B c>A F2 | G>FG>A B>G D2 | 
 c>Bc>A B>AB>G | (3ABA (3GFE D2 D2 | A>^GA>B c>A F2 | G>FG>A B>G D2 | d>gf>e (3ded (3cBA | 
 G2 B2 G2 :|  