UX 58 then FR 3814 at Madrid
São Paulo → Madrid → Bologna
Timetable, Madrid time
05:10UX 58 from São Paulo at the gate
22:10FR 3814 to Bologna leaves the gate
17 h apart on the timetable
FR 3814 leaves 17 h after UX 58 arrives on the timetable: more than half a day, so not a connection we count.