Construct melodic segments by incorporating the provided motif with the designated musical pattern.
X:1
L:1/8
M:4/4
K:G
['g2 dc B2 AG', 'BGG E DGBG AGBG DGBG cAAB cdef'  
X:1
L:1/8
M:4/4
K:G
 g2 dc B2 AG | FGAB cAAB | g2 dc B2 AG | FGAc BGG :: E | DGBG AGBG | DGBG cAAB | cdef gdcB | 
 cAdc BGG :|  