el imperfecto del subjuntivo
I wish that he had a lot of friends.
Ojalá que tuviera muchos amigos.
The mother wanted her children to have cleaned their room.
La madre quería que sus hijos hubieran limpiado su cuarto.
If you studied for the test, you would get a good grade.
Si estudiaras para el examen, sacarías una nota buena.
If we had had the money, we would have gone to the movies.
Si gubiéramos tenido el dinero, habríamos ido al cine.