FR 3040 then IB 422 at Barcelona
Prague → Barcelona → Madrid
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
19:55IB 422 to Madrid leaves the gatealso LA 1588, CX 1820, LL 3022, VY 5096, AV 6149, QR 8069
22 h 40 apart on the timetable, overnight
IB 422 leaves 22 h 40 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.