Not sure I understand the question. I presume the notation got shifted in the post, so the G7 is probably meant to be over some other note than the 'g'.
Anyway, here's a response based on my guess of the question:
If you are playing the lead guitar parts only (I.e., only the melody), then you might not play the chord, you might play only the notes. Someone else would be playing the chords, to make your notes fit into them, maybe a keyboard player or another guitar.
But if you are playing the rhythm, say for a singer, then you would play the chords and the singer would sing the notes.
The notes are related to the chords, that's what makes the song 'work'.
Hope I'm on the right track for the question.
|