Create a musical piece that includes the provided motif while adhering to the necessary musical structure.
X:1
L:1/4
Q:1/2=100
M:2/2
K:Gmin
['d B2 A/B/c/A/ B', 'B3 d =B/c/d/B/ G g c/d/ e2'  
X:1
L:1/4
Q:1/2=100
M:2/2
K:Gmin
 d | B2 A/B/c/A/ | B G G d | B2 A/B/c/A/ | B g ^f g | a c2 B/A/ | B g f e | d2 c2 | B3 :: d | 
 =B/c/d/B/ G g | c/d/ e2 c | A/B/c/A/ F f | B/c/ d2 c | d G B/A/ G | ^F e d c | B2 A2 | G3"^*" :|  