LISBON, Portugal (AP) — Sporting Lisbon beat Schalke 4-2 in the Champions League on Wednesday to keep alive its hopes of advancing to the competition's knockout round.

Sporting's first win of the tournament this season lifted it to four points in Group G, with German side Schalke on five. With two games to play, Chelsea leads the group with eight points and Maribor has three.

Islam Slimani's 17th-minute own goal from a deflection handed Schalke the lead, but Sporting equalized just under 10 minutes later through Naby Sarr's glancing header.

Jefferson put Sporting in front with a low drive into the far corner in the 52nd, and Nani made it 3-1 when he connected with Andre Carrilho's cross in the 72nd.

Dennis Aogo pulled one back two minutes from the end before Slimani sealed it on the break in added time as Schalke pushed forward.

The opening goals injected life into a humdrum game, with Joao Mario piercing the Schalke defense with a solo run but there was nobody there when he pulled the ball back.

Klaas-Jan Huntelaar set up Max Meyer who shot over the bar before Nani and Mario tested Ralf Fahrmann in quick succession and Carlos Mane, unmarked at the back post, botched his header from a Nani cross.

Sporting goalkeeper Rui Patricio saved at the feet of substitute Kevin-Prince Boateng in the 66th as Roberto Di Matteo's team fought back but Sporting, in the Champions League for the first time in five years, kept its composure.