EC 7639 then FR 3814 at Madrid
Lisbon → Madrid → Bologna
Timetable, Madrid time
09:25EC 7639 from Lisbon at the gate
22:10FR 3814 to Bologna leaves the gate
12 h 45 apart on the timetable
FR 3814 leaves 12 h 45 after EC 7639 arrives on the timetable: more than half a day, so not a connection we count.