Compose a piece by incorporating the set musical pattern in its alphabetical form along with the given melodic subject.
X:1
L:1/8
M:4/4
K:G
['d2 g>d B>cd>B G2 A>B c2{d} c2', 'G2 B>c d2 d>B g2 g>f e2']  
X:1
L:1/8
M:4/4
K:G
 (3def | g2 b>g d2 g>d | B>cd>B G2 A>B | c2{d} c2 c>BA>G | F>GA>F D3 f | g2 b2 d2 g>d | 
 B>cd>B G2 A>B | c2{d} c2 c>BA>F | A2 G>F G2 :: B>c | d2 d>B g2 g>f | e2 e>c a2 a>g | 
 f2 f>d g2{a} g2 | g>af>d g2 (3def | g2 b2 d2 g>d | B>cd>B G2 A>B | c2{d} c2 c>BA>F | A2 G>F G2 :|  