CSKA Moscow and Apoel Nicosia joined Liverpool in the group stage draw after beating Young Boys and Slavia Prague
After a goalless first leg, Seydou Doumbia put Sporting ahead after 13 minutes before Junior Morais struck for the Romanians.
Sporting were too good for Steaua Bucharest
Qarabag are the first team from Azerbaijan to reach the group stage
But Marcos Acuna, Gelson Martins, Bas Dost and Rodrigo Battaglia all netted in an action packed final 30 minutes to put their side in the hat.
Qarabag became the first ever Azerbaijani side to reach the group stage after a tense clash with FC Copenhagen.
The minnows took a one-goal advantage with them to Denmark but they fell behind on the stroke of half-time when Federico Santander netted.
They looked to have eased their nerves, though, when Dino Ndlovu equalised in the 63rd minute, only for Copenhagen to regain the lead just three minutes later through Andrija Pavlovic.
It set up a tight closing 25 minutes, but Copenhagen failed to score to see Qarabag through on away goals.
CSKA Moscow eased through against Young Boys as Georgi Schennikov and Alan Dzagoev added to a 1-0 first-leg lead.
Gelson Martins was on target for Sporting in their win
Apoel Nicosia went through thanks to a 0-0 draw in Prague
Alan Dzagoev helped CSKA Moscow to a 3-0 aggregate victory
Apoel Nicosia took a two-goal lead to the Czech Republic and saw off Slavia Prague thanks to a goalless draw.
And Liverpool made it five English entrants as they beat Hoffenheim 6-3 on aggregate.
Liverpool cruised into the Champions League group stages with an easy win over Hoffenheim
Saturday Premier League preview including Man Utd v Leicester
Emre Can scored a brace, while Mohamed Salah and Roberto Firmino netted to ensure Mark Uth and Sandro Wagner’s efforts were in vain.
Keep up to date with all the latest news, gossip, rumours and done deals in SunSport’s live transfer blog