FR 3040 then QR 3517 at Barcelona
Prague → Barcelona → Alicante
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
18:00QR 3517 to Alicante leaves the gate
20 h 45 apart on the timetable, overnight
QR 3517 leaves 20 h 45 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.