QR 147 then FR 6713 at Madrid
Doha → Madrid → Budapest
Timetable, Madrid time
06:35QR 147 from Doha at the gate
18:45FR 6713 to Budapest leaves the gate
12 h 10 apart on the timetable
FR 6713 leaves 12 h 10 after QR 147 arrives on the timetable: more than half a day, so not a connection we count.