Create a musical composition following the given alphabetical pattern and incorporating the provided motif.
X:1
L:1/8
M:4/4
K:G
['g3 d', 'BGdG BGAB']  
X:1
L:1/8
M:4/4
K:G
 d | g3 d BG (3Bcd | eaag fdef | g3 d BGGB | cAdc BGGf | g3 d BG (3Bcd | eaag fdcA | Bdef g3 e | 
 dBAB GFGA || BGdG BGAB | cAeA cAAc | BGdG BGAB | cAdc BGGA | BGdG BGAB | cAeA cedc | Bdef g3 e | 
 dBAB GABd ||  