EC 7639 then IB 1049 at Madrid
Lisbon → Madrid → Pamplona
Timetable, Madrid time
09:55EC 7639 from Lisbon at the gate
07:55IB 1049 to Pamplona leaves the gate
22 h apart on the timetable, overnight
IB 1049 leaves 22 h after EC 7639 arrives on the timetable: more than half a day, so not a connection we count.