Compose a piece following the given musical structure and incorporating the provided motif.
X:1
L:1/8
M:2/4
K:G
['d/d/ dB Bd/d/', 'eg f2 z d/f/ e2 z c/e/'  
X:1
L:1/8
M:2/4
K:G
 d/d/ |:"G" dB Bd/d/ |"D7" dc cd/d/ | dd ef |"G" ag gd/d/ | dB Bd/d/ |"Am/C" eA Ae/e/ | 
"D7" ed f/e/c/A/ |1"G" GG Gd/d/ :|2"G" GG G z |:[K:D]"A7" A/B/c/d/"_=" eg |"D" f2 z d/f/ | 
"A7" e2 z c/e/ |"D" d2 d/e/d/"_=" B/ |"A7" A/B/c/d/"_=" eg |"D" f2 z d/f/ |"A7" e2 z c/e/ |1 
"D" dd d z :|2"D" dd dd/"_>Teil A" d/ |:[K:C]"C" GE GE | G3 A/G/ |"G7" FF FG/F/ |"C" EG/G/ GG | 
 GE GE | .G2"F" !>!c2 |1"G7" B>A GF |"C" .E2 !>!G2 :|2"G7" Bg/g/ g/f/e/d/ |"C" cc c z |]  