Serbia knocked defending champ Spain out of the world championship Wednesday when Milos Teodosic made a long 3-pointer with 3.1 seconds left for a 92-89 quarterfinal victory, according to an Associated Press report.

Avenging a loss in last year’s European championship game, Serbia advanced to face Turkey or Slovenia in a semifinal game Saturday.

Marko Keselj and Novica Velickovic scored 17 points apiece for Serbia, while Dusko Savanovic added 15.