Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/4
M:2/4
K:G
['d g', 'e A/c/ e', 'D/G/ B B2'  
X:1
L:1/4
M:2/4
K:G
 d g g/f/g/e/ | d g B2 | A f f2 | B g g2 | d g g/f/g/e/ | d g B2 | A f a f | g2 g2 :: A/d/ f f a | 
 a g g/f/ e | A/c/ e e g | g f f e/d/ | A/d/ f f a | a g g/f/ e | A/c/ e A/c/ e | d2 d2 :: 
 D/G/ B B2 | D/G/ B B2 | =c/B/ A c/B/ A | G B e d | D/G/ B B2 | D/G/ B B2 | =c/B/ A c/B/ A | 
 G2 G2 :|  