It gets complicated from there. Spain play Morocco on Monday, when Portugal meet Iran.
Quaresma's wonder goal against the Iranians made him the oldest Portugal player to score at the World Cup, at the age of 34 years and 272 days.
Headliners Spain and Portugal served up one of the best games of the tournament early on with a back and forth 3-3 draw.
Mexico need only a draw against Sweden on Wednesday while a win would see them top the group with maximum points. Even if they lose, they could still go through on goal difference if Morocco beats Spain.
The FIFA World Cup begins to get serious from Monday, when the final set of group games kick off.
Group D remains interesting. They can also move on with a loss to the Swedes if Germany lose to or draw with South Korea, who have no points. The Danes would top the group with victory.
They need to beat Russian Federation in order to win the group. Wins for Germany and Sweden would mean three teams would finish with six points, sending it to tiebreakers.
Advances with win or draw against France. Plucky Iceland held on for an exciting point versus Argentina but will need to beat the Croatians to have a shot at going to the Round of 16.
Melania Trump's 'I really don't care' jacket sparks scathing memes
De La Cerda told Trump the children are given recreational activities, spiritual care and down time . A spokeswoman for Melania Trump says there is no message in the first lady's choice of jacket .
They will win the group if the beat Portugal and Spain do not beat Morocco.
Odds: 37.5% to win, 100% to advance. But then again, they need to make sure that they do not pick up a yellow or a red card vs Morocco since if they finish on level terms, it could boil down to yellow cards.
Portugal need at least a point from their final match against Iran to guarantee a place in the knockout round. There were rumours that both the sides decided during half-time that they will keep the scoreline 1-0 so both West Germany and Austria advance to the knockouts. Brazil drew Switzerland in their first game and left it extremely late to down Costa Rica, who are now eliminated. If the sides finish with identical records then Switzerland would go through because they beat Serbia. Germany looked flat in their loss to Mexico and needed an injury-time goal to defeat Sweden. Les Bleus play Denmark in their final fixture, with the latter requiring a point to be certain of following them through Group C. They will top the group if they beat Mexico and better Germany's result. The first is, of course, the points scored by the teams.
Germany is guaranteed to qualify for the round of 16 if it beats South Korea by two or more goals OR if it beats South Korea AND Sweden fails to beat Mexico, OR if it ties with South Korea AND Sweden loses to Mexico, OR if both games end in a tie with Sweden scoring the same or fewer goals than Germany.
Strikers with three goals include Belgium's Romelu Lukaku, Russia's Denis Cheryshev, Spain's Diego Costa while from Africa, Nigeria's Ahmed Musa has two goals.
Were the clash to end as a draw, first place would be decided on the number of cards received due to identical records elsewhere.
Should both sides finish with the same number, lots will be drawn.
Colombia will qualify with victory over Senegal.