Jerry practiced hard for the marathon.
He had taken a shortcut without knowing it.
When Jerry finished the race, he learned that he won.
When Jerry finished the race, he learned that he was disqualified.