FR 689 then AY 5653 at Madrid
Vienna → Madrid → New York JFK
Timetable, Madrid time
19:00FR 689 from Vienna at the gate
12:20AY 5653 to New York JFK leaves the gatealso QR 6903, AA 8835
17 h 20 apart on the timetable, overnight
AY 5653 leaves 17 h 20 after FR 689 arrives on the timetable: more than half a day, so not a connection we count.