Jeb built Joe a house.
Here are the analytical questions to ask:
- The verb is “built”. Who is doing the building? Jeb is doing the building. Therefore, “Jeb” is the subject.
- Jeb built what? Jeb built a house. Hence, “house” is the DO.
- Jeb built the house “for whom”? For “Joe”. So “Joe” is the IO.
Jeb gave Fred a punch in the face.
Fred sent Jeb a free ticket to the game.