EC 1045 then EC 1294 at Madrid
Basel → Madrid → Geneva
Timetable, Madrid time
16:00EC 1045 from Basel at the gate
14:30EC 1294 to Geneva leaves the gate
22 h 30 apart on the timetable, overnight
EC 1294 leaves 22 h 30 after EC 1045 arrives on the timetable: more than half a day, so not a connection we count.