Level 9.3 SQL Problem Book

Diberikan tabel:

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

Selesaikan masalah berikut untuk mereka:

Задание 1

Temukan triplet pengguna (A, B, C), di mana A terhubung dengan B, B terhubung dengan C, tetapi A dan C tidak terhubung secara langsung.