The Sphinx is seen inside the maze during the third task of the Triwizard Tournament in Harry Potter and the Goblet of Fire. The Sphinx was encountered by Harry on his way to the Triwizard Cup, and the Sphinx presented Harry with a riddle. He had to answer it correctly if he wanted to pass through the path that the Sphinx was guarding.