FR 3040 then QR 4706 at Barcelona
Prague → Barcelona → Porto
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
20:25QR 4706 to Porto leaves the gatealso IB 5096, LL 5096
23 h 10 apart on the timetable, overnight
QR 4706 leaves 23 h 10 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.