Construct melodies utilizing the provided motif and adhere to the outlined musical structure.
X:1
L:1/8
Q:1/4=80
M:3/4
K:G
['(B2 A2)', 'd4 (dc) (Bc) (dB) G2 (AB) (c2'  
X:1
L:1/8
Q:1/4=80
M:3/4
K:G
 (G A2) | (B2 A2) G2 | (d2 c2) (BA) | G4 FG/A/ | G4 (AB/c/) | (B2 A2) (GA) | B4 (^cd/e/) | d4 || 
 (dc) | (Bc) (dB) G2 | (AB) (c2 B2) | (AG) (G2 F2) | D2 (G>AB>cd) | d4 B2 | (c>Bc>de>d) | 
 c2 B2 (A2 B2 G2) (FG/A/) G2 |]  