Is the person that is to the right of the person wearing a hat?
Yes, the man is wearing a hat.
    src        edge_attr  dst
0     0   to the left of   15
1     0   to the left of    5
2     2   to the left of   13
3     2               on   14
4     4   to the left of   13
5     5      in front of   17
6     5          wearing    1
7     5          wearing   15
8     5               on    7
9     5          wearing    2
10    5          wearing    8
11    5          wearing   12
12    5          wearing    3
13    5          wearing   18
14    5             near   17
15    5  to the right of    0
16    5  to the right of   17
17    8   to the left of   13
18   11            below   16
19   12   to the left of   13
20   12  to the right of   18
21   13  to the right of   12
22   13  to the right of    4
23   13  to the right of    8
24   13  to the right of    2
25   13  to the right of   14
26   14   to the left of   13
27   15  to the right of   18
28   15  to the right of    0
29   15  to the right of   17
30   16               on    9
31   16               on    7
32   16            above   11
33   17          wearing    0
34   17               on    7
35   17             near    5
36   17   to the left of    5
37   17   to the left of   15
38   17           behind    5
39   18   to the left of   15
40   18   to the left of   12