Nivå 9.3 SQL oppgavesamling

Gitte tabeller:

users
id name
1 John
2 Max
3 Erick
connections
id user_id_1 user_id_2 connection_strength
1 1 2 1
2 2 3 2
3 1 3 3
4 1 2 1
5 1 2 1
6 3 1 2
7 1 2 1
8 2 1 3

Løs følgende oppgaver for dem:

Задание 1

Finn en trippel av brukere (A, B, C) hvor A er koblet til B, B er koblet til C, men A og C ikke er koblet direkte.