Nivå 9.3 SQL-uppgiftsbok

Följande tabeller ges:

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öljande uppgifter för dem:

Задание 1

Hitta en trippel av användare (A, B, C) där A är kopplad till B, B är kopplad till C, men A och C inte är direkt kopplade.