QR 3522 then TP 1039 at Barcelona
Málaga → Barcelona → Lisbon
Timetable, Barcelona time
00:55QR 3522 from Málaga at the gate
21:10TP 1039 to Lisbon leaves the gate
20 h 15 apart on the timetable
TP 1039 leaves 20 h 15 after QR 3522 arrives on the timetable: more than half a day, so not a connection we count.