EC 7639 then AA 8619 at Madrid
Lisbon → Madrid → Bologna
Timetable, Madrid time
09:35EC 7639 from Lisbon at the gate
09:10AA 8619 to Bologna leaves the gate
23 h 35 apart on the timetable, overnight
AA 8619 leaves 23 h 35 after EC 7639 arrives on the timetable: more than half a day, so not a connection we count.