Compose a piece of music following the given alphabetical representation of the musical structure and the provided motif.
X:1
L:1/8
M:4/4
K:G
['B2 B2 AG']  
X:1
L:1/8
M:4/4
K:G
|:"G" B2 B2 AG FE |"D" E2 D2 D2 DE | F2 F2 FE DF | A2 G2"G" G4 | d2 ed c2 B2 |"C" A2 E2 E2 c2 | 
"G" BA GF"C" E2"D" F2 |"G" G4 G4 ::[K:D]"D" A2 A2"G" B2 B2 |"D" AG FG A4 |"A" GF EF G2 G2 | 
"D" FE DE F4 |"D" A2 A2"G" B2 B2 |"D" AG FG A4 |"A" GF EF GA Bc |1"D" d8 :|2"D" d4 =c4 |]  