SQL Taskbook Level 9.3

The tables are given:

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

Solve the following tasks for them:

Задание 1

Find a triplet of users (A, B, C), where A is related to B, B is related to C, but A and C are not directly related.