Construct a musical piece that integrates the provided motif and corresponds to the indicated musical structure.
X:1
L:1/8
M:6/8
K:G
['D GAB c2 d edc BAG ABc', 'efg efg'  
X:1
L:1/8
M:6/8
K:G
|:"^A" D | GAB c2 d | edc BAG | ABc d2 c | BAG G2 ::"^B" g | efg efg | efg fed | Bcd def | 
 gfe d2 B | GAB c2 d | edc BAG | ABc d2 c | BAG G2 :|  