DL 9889 then DL 5297 at JFK
Venezia → New York → Rochester
Timetable, New York time
21:22DL 9889 from Venezia at the gate
21:16DL 5297 to Rochester leaves the gate
23 h 54 apart on the timetable, overnight
DL 5297 leaves 23 h 54 after DL 9889 arrives on the timetable: more than half a day, so not a connection we count.