He asked her if they had eaten the cake.
He asked her if they ate the cake.
Он спросил ее ели ли они пирог.
He wondered if they had eaten the cake.