Compose melodic phrases utilizing the specified musical pattern and the provided motif.
X:1
L:1/8
Q:3/8=120
M:9/8
K:G
['g d2 c BAB G2 A Bcd', 'g def gag fed'  
X:1
L:1/8
Q:3/8=120
M:9/8
K:G
 g | d2 c BAB G2 A | Bcd dgB d2 g | edc BAB GAB | E2 e ef^d e2 :: g | def gag fed | Bcd dgB d2 g | 
 def gag fed | B2 e ef^d e2 g | def gag fed | Bcd dgB d2 g | edc BAB GAB | E2 e ef^d e2 :|  