QF 1989 then QF 2040 at Sydney
Townsville → Sydney → Dubbo
Timetable, Sydney time
18:00QF 1989 from Townsville at the gate
11:55QF 2040 to Dubbo leaves the gate
17 h 55 apart on the timetable, overnight
QF 2040 leaves 17 h 55 after QF 1989 arrives on the timetable: more than half a day, so not a connection we count.