That opponent may choose to put all of the cards into one pile and leave the other pile empty. In that case, the ability’s controller chooses whether to put the revealed cards into their hand or into their graveyard.

Artwork
Loading artwork…
Sphinx of Clear Skies
Dominaria United · #67 · EN
Nonfoil—Foil—
Card rules
Flying, ward 2
Domain — Whenever this creature deals combat damage to a player, reveal the top X cards of your library, where X is the number of basic land types among lands you control. An opponent separates those cards into two piles. Put one pile into your hand and the other into your graveyard. (Piles can be empty.)
5/5
Mythic · Illustrated by Valera Lutfullina
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Penny Legal
Pioneer Legal
Timeless Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
The player who controls the triggered ability chooses which opponent separates the cards into two piles. This choice is made after revealing those cards.
The basic land types are Plains, Island, Swamp, Mountain, and Forest. Land types other than basic land types (such as Desert) don’t contribute to domain abilities.
Domain abilities count the number of basic land types among lands you control, not how many lands you control or how many of any type.