Generate music with the following musical form in terms and the given motif.
X:1
L:1/8
Q:1/2=80
M:2/4
K:G
['B>d g>e d>B A>G B>d e/f/g/e/', 'g>a b>g'  
X:1
L:1/8
Q:1/2=80
M:2/4
K:G
 G | B>d g>e | d>B A>G | B>d e/f/g/e/ | d2 G>G | B>d g>e | d>B A>G | B>d e/f/g/e/ | d2 G :: d | 
 g>a b>g | a>f e>d | g>a b>g | a>f d>d | g>a b>g | c'>a f (4:3:4(a/g/f/e/) | d>B g>e | d2 G :|  