Create a melody based on the given musical pattern.
'Sectional: Through Composed'  
X:1
L:1/8
Q:1/2=40
M:2/2
K:G
"^Andante" G | D2{D} B2{B} A>G{G}F>E | DG{G}B>G TA2 G2 | (DG)(Bd) (c/B/)(A/G/) F/G/A/F/ | 
 D>G{G}B>G TA2 G2 ||[Q:1/2=60]"^Song" D/4E/4F/ | G2{G} B2{B} AG{G}FE | D>GBG TA2 Gd/4e/4f/ | 
 .g.g.g.g{f} g>dBG | D>G{G}B>G A2 G2 | G2{G} B2 AGFE | D>GB>G TA2 Gd/e/4f/4 | 
 .g/.g/.g/.g/ .g/.g/.g/.g/ .g/.d/.B/.G/ .E2 | D>G{G}B>G TA2 G ||[M:9/8][Q:3/8=120]"^Allegro" G | 
 D2 B (BAG) (GFE) | D2 B{B} AGA G2 D | D2 B BAG FGE | D2 d BcA G2 :| c | B/c/dd def{f} g2 d | 
 ded dcB A2 B | c2 c cdc{cd} e2 d | dcB BAG GFE | D2 B BAG GFE | D2 B{B} AGA G2 D | D2 B ABc def | 
 gec BcA G2 |]  