QR 4769 then IB 777 at Madrid
Firenze → Madrid → Hamburg
Timetable, Madrid time
20:00QR 4769 from Firenze at the gatealso IB 5786, VY 6036, AA 8866
19:45IB 777 to Hamburg leaves the gatealso LA 1697, VY 5126, AT 5906
23 h 45 apart on the timetable, overnight
IB 777 leaves 23 h 45 after QR 4769 arrives on the timetable: more than half a day, so not a connection we count.