Get ready for a really really long list...
Ground-Types knowing a Flying-Type move:
First, let's see all the Flying-type moves that are learnt by ground-type Pokemoon.
/nds acrobatics, ground:
Gligar, Gliscor
/nds aerial ace, ground, all:
Arceus-Ground, Cubone, Diglett, Diglett-Alola, Drilbur, Dugtrio, Dugtrio-Alola, Excadrill, Flygon, Gabite, Garchomp, Gible, Gligar, Gliscor, Groudon, Krookodile, Marowak, Nidoqueen, Nincada, Sandshrew, Sandslash, Silvally-Ground
/nds air cutter, ground:
Flygon, Vibrava
/nds air slash, ground:
Flygon, Silvally-Ground, Vibrava
/nds bounce, ground:
Barboach, Diggersby, Donphan, Palpitoad, Seismitoad, Stunfisk, Stunfisk-Galar, Whiscash
/nds defog, ground:
Arceus-Ground, Flygon, Gligar, Gliscor, Landorus, Silvally-Ground, Vibrava
/nds dual wingbeat, ground:
Flygon, Vibrava
/nds fly, ground:
Arceus-Ground, Flygon, Golurk, Landorus, Vibrava
/nds gust, ground:
Flygon, Nincada, Trapinch, Vibrava
/nds Hidden Power [Flying], ground
All Ground types
/nds Hurricane, ground
Sandaconda
/nds peck, ground:
Mamoswine, Nidoking, Piloswine
/nds roost, ground:
Flygon, Gligar, Gliscor, Vibrava
/nds sky attack, ground:
Gliscor
/nds tailwind, ground:
Arceus-Ground, Flygon, Gligar, Gliscor, Silvally-Ground, Vibrava
/nds wing attack, ground:
Gligar, Gliscor
Now, all the Pokemon counted once:
Gligar, Gliscor, Arceus-Ground, Cubone, Diglett-Alola, Drilbur, Dugtrio, Dugtrio-Alola, Excadrill, Flygon, Gabite, Garchomp, Gible, Groudon, Krookodile, Marowak, Nidoqueen, Nincada, Sandshrew, Sandslash, Silvally-Ground, Vibrava, Barboach, Diggersby, Donphan, Palpitoad, Seismitoad, Stunfisk, Stunfisk-Galar, Whiscash, Landorus, Golurk, Sandaconda, Mamoswine, Nidoking, and Pilowsine.
Ground-Types knowing a Psychic-Type move:
Like earlier, let's do that again:
/nds agility, ground:
Diggersby, Diglett, Diglett-Alola, Dugtrio, Dugtrio-Alola, Gligar, Gliscor, Sandshrew, Sandslash
/nds ally switch, ground:
Baltoy, Claydol, Diglett, Diglett-Alola, Dugtrio, Dugtrio-Alola, Golett, Golurk, Runerigus, Wormadam-Sandy, Yamask-Galar
/nds amnesia, ground, all:
Barboach, Camerupt, Gastrodon, Hippopotas, Hippowdon, Mamoswine, Marshtomp, Nidoking, Numel, Palossand, Piloswine, Quagsire, Runerigus, Sandshrew, Sandslash, Sandygast, Swampert, Swinub, Torterra, Whiscash, Wooper
/nds barrier, ground:
Marshtomp, Swampert
/nds calm mind, ground:
Arceus-Ground, Baltoy, Claydol, Landorus, Runerigus, Yamask-Galar
/nds confusion, ground:
Baltoy, Claydol, Nidoking, Wormadam-Sandy
/nds cosmic power, ground:
Arceus-Ground, Baltoy, Claydol
/nds dream eater, ground:
Arceus-Ground, Baltoy, Claydol, Gligar, Gliscor, Wormadam-Sandy
/nds expanding force, ground:
Baltoy, Claydol
/nds extrasensory, ground, all:
Baltoy, Claydol, Landorus
/nds future sight, ground:
Arceus-Ground, Barboach, Claydol, Whiscash
/nds gravity, ground:
Arceus-Ground, Baltoy, Claydol, Golett, Golurk, Landorus, Palossand, Sandygast
/nds guard split, ground:
Baltoy, Claydol, Rhydon, Rhyhorn, Rhyperior, Runerigus, Yamask-Galar
/nds heal block, ground:
Baltoy, Claydol, Silvally-Ground
/nds Hidden Power Psychic, ground
All Ground-types
/nds hypnosis, ground:
Palossand, Sandygast
/nds imprison, ground:
Baltoy, Claydol, Golett, Golurk, Landorus, Runerigus, Silvally-Ground, Yamask-Galar
/nds light screen, ground:
Arceus-Ground, Baltoy, Claydol, Mamoswine, Piloswine, Swinub, Torterra
/nds magic coat, ground:
Arceus-Ground, Baltoy, Claydol, Golett, Golurk, Silvally-Ground
/nds mirror coat, ground:
Gastrodon, Marshtomp, Swampert
/nds power split, ground:
Baltoy, Claydol, Runerigus, Yamask-Galar
/nds power swap, ground:
Baltoy, Claydol, Runerigus
/nds power trick, ground:
Baltoy, Claydol, Gligar, Gliscor
/nds psybeam, ground:
Baltoy, Claydol, Wormadam-Sandy
/nds psybeam, ground:
Baltoy, Claydol, Wormadam-Sandy
/nds psychic, ground:
Arceus-Ground, Baltoy, Claydol, Golett, Golurk, Landorus, Palossand, Runerigus, Sandygast, Wormadam-Sandy, Yamask-Galar
/nds psychic terrain, ground:
Baltoy, Claydol
/nds psyshock, ground:
Arceus-Ground, Baltoy, Claydol
/nds reflect, ground:
Arceus-Ground, Baltoy, Claydol, Mamoswine, Nidoking, Nidoqueen, Piloswine, Swinub, Torterra
/nds rest, ground:
All Ground-types
/nds role play, ground:
Landorus, Palossand, Sandygast
/nds skill swap, ground:
Baltoy, Claydol, Palossand, Runerigus, Sandygast, Wormadam-Sandy, Yamask-Galar
/nds Stored power, ground
Claydol
/nds telekinesis, ground:
Arceus-Ground, Baltoy, Claydol, Golett, Golurk, Wormadam-Sandy
/nds teleport, ground
Claydol
/nds trick, ground:
Arceus-Ground, Baltoy, Claydol, Golurk, Palossand, Runerigus, Sandygast, Yamask-Galar
/nds trick room, ground:
Arceus-Ground, Baltoy, Claydol, Runerigus, Yamask-Galar
/nds wonder room, ground:
Baltoy, Claydol, Runerigus, Yamask-Galar
/nds Zen Headbutt, ground:
Arceus-Ground, Baltoy, Claydol, Golurk, Runerigus, Sandaconda, Silvally-Ground, Whiscash, Yamask-Galar, Zygarde
All the Pokemon counted once:
Diggersby, Diglett, Diglett-Alola, Dugtrio, Dugtrio-Alola, Gligar, Gliscor, Sandshrew, Sandslash, Baltoy, Claydol, Golett, Golurk, Runerigus, Wormadon-Sandy, Yamask-Galar, Barboach, Camerupt, Gastrodon, Hippopotas, Hippowdown, Mamoswine, Marshtomp, Nidoking, Numel, Palossand, Piloswine, Quagsire, Swampert, Swinub, Torterra, Whishcash, Wooper, Arceus-Ground, Landorus, Gligar, Gliscor, Sandygast, Rhydon, Rhyhorn, Rhyperior, Silvally-Ground, Nidoqueen, Sandaconda and Zygarde.
Ground-Types knowing a Fairy-Type move:
/nds charm, ground:
Camerupt, Donphan, Dugtrio, Mamoswine, Nidoqueen, Numel, Phanpy, Piloswine, Swinub
/nds crafty shield, ground:
Runerigus, Yamask-Galar
/nds Dazzling Gleam, ground:
Baltoy, Claydol
/nds Play Rough, ground
Phanpy, Donphan
All Pokemon mentioned once:
Camerupt, Donphan, Dugtrio, Mamoswine, Nidoqueen, Numel, Phanpy, Piloswine, Swinub, Runerigus, Yamask-Galar, Baltoy, and Claydol.
Source: Showdown!
Doing /nms (flying/psychic/fairy) to see all moves of that type then /nds (insert move), ground for each move to see what Pokemon learn it and are Ground-type.
That's all. Hope this helps!