EC 1015 then A3 1777 at Madrid
Basel → Madrid → Lisbon
Timetable, Madrid time
08:30EC 1015 from Basel at the gate
21:10A3 1777 to Lisbon leaves the gate
12 h 40 apart on the timetable
A3 1777 leaves 12 h 40 after EC 1015 arrives on the timetable: more than half a day, so not a connection we count.