U2 7890 then LH 997 at Schiphol
Málaga → Amsterdam → Frankfurt am Main
Timetable, Amsterdam time
15:00U2 7890 from Málaga at the gate
14:45LH 997 to Frankfurt am Main leaves the gate
23 h 45 apart on the timetable, overnight
LH 997 leaves 23 h 45 after U2 7890 arrives on the timetable: more than half a day, so not a connection we count.