FR 3613 then FR 188 at Madrid
Prague → Madrid → Edinburgh
Timetable, Madrid time
18:10FR 3613 from Prague at the gate
10:30FR 188 to Edinburgh leaves the gate
16 h 20 apart on the timetable, overnight
FR 188 leaves 16 h 20 after FR 3613 arrives on the timetable: more than half a day, so not a connection we count.