FR 6712 then QR 6580 at Madrid
Budapest → Madrid → Seville
Timetable, Madrid time
11:55FR 6712 from Budapest at the gate
11:30QR 6580 to Seville leaves the gate
23 h 35 apart on the timetable, overnight
QR 6580 leaves 23 h 35 after FR 6712 arrives on the timetable: more than half a day, so not a connection we count.