These three diagrams illustrate the root position (1 3 5), first inversion (3 5 1), and second inversion (5 1 3) of the D chord.
The following examples show typical groupings of inversions of the chords G, C, D and D7 which are the most common chords in the key of G. For a more detailed study of how chords work together in keys, along with chord construction and transposing between different keys, see Progressive Rock Keyboard Method.
Here are some typical accompaniment patterns in the key of G. The first one is in * time and the second, "Streets of Laredo" is in ^ time.