Compose a musical work that seamlessly incorporates the assigned motif and abides by the given alphabetical pattern.
X:1
L:1/8
M:4/4
K:G
['', 'g2 dg g2 fg', 'Bddd Bddd']  
X:1
L:1/8
M:4/4
K:G
 ef |: g2 gf g2 dg | g2 fg edBd | edfd edfd | edfd edBd | g3 f g2 dg | g2 fg edBA | Bdef g3 e |1 
 dBAB GABd :|2 dBAB G3 |: A | Bddd Bddd | Bddd edBd | edfd edfd | edfd edBA | Bddd Bddd | 
 Bddd edBA | (3Bcd ef g3 e |1 dBAB G3 :|  