Distinguish the registered team, the Pokémon selected for this battle, and those currently on the field. Singles normally has one active per side and doubles two; that does not determine the full team size. Selection limits come from the current mode and rules.
Doubles does not turn every attack into a two-target move. Some choose one target, some hit several and some hit partners. EarthquakeGround includes adjacent allies; actual damage still depends on immunity and protection.
Check the partner before choosing Earthquake. Changing formats does not turn a single-target attack into a spread move.
The singles route practises decisions around one active slot and switching; doubles focuses on paired commands and targets. The basic mechanics overlap, but advice still needs its format conditions.