FR 3040 then IB 420 at Barcelona
Prague → Barcelona → Madrid
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
18:55IB 420 to Madrid leaves the gatealso IB 420S, LA 1586, LL 3020, VY 5090, AV 6153, QR 6895
21 h 40 apart on the timetable, overnight
IB 420 leaves 21 h 40 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.