Germany is out after Japan defeats Spain 2-1 to win the group and advance to the semifinals.

Spain and Japan both advanced to the tournament’s knockout round despite losing the last league game of their group. Alvaro Morata’s goal in the 11th minute gave Japan a 1-0 deficit going into halftime on a tumultuous night with two games at the Khalifa International Stadium.
However, the Samurai Blue came out firing in the second half, scoring twice in the space of three minutes. Ritsu Doan’s goal for coach Hajime Moriyasu brought the score even in the 48th minute, and three minutes later, Ao Tanaka’s goal gave the team the lead.
Japan, who has set a goal of reaching the tournament’s last eight, started their campaign with a 2-1 victory against four-time champion Germany but fell to Costa Rica.
Spain, on the other side, began the match by thrashing Costa Rica 7-0 before drawing 1-1 with Germany. Germany defeated Costa Rica 4-2 in the other game at Al Bayt Stadium in Al Khor. It was the first time at a men’s World Cup that an all-female on-field refereeing team officiated the game. They finished with just four points from three games, the same as Spain, but La Roja qualified due to a better goal differential, so the winning effort was insufficient.