Which of the following is an inertial frame of reference?

a) a child on a moving swing observes the child next to them moving in sync
b) a child on a moving swing observes a ball that they throw to their parents standing on the ground
c) a child observes the motion of the planets in the night sky over many nights
d) a child observes the motion of the sun across the sky during the day