Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:2/4
K:G
['G2 BG dG BG AA', 'Bd dG', 'g4 g3 f e3 d dB BG'  
X:1
L:1/8
M:2/4
K:G
|: G2 BG | dG BG | AA AA | FA FD | G2 BG | dG BG | AA FA | G4 :: Bd dB | ce eG | Bd dG | cA AG | 
 Bd dG | ce e2 | d2 ef | g4 :: g3 f | e3 d | dB BG | AG G2 | Bd dG | ce e2 | d2 ef | g4 :|  