Is the person to the right of the flag wearing a cap?
Yes, the person is wearing a cap.
   src        edge_attr  dst
0    0   to the left of    7
1    3  to the right of    8
2    5          wearing    6
3    5  to the right of    8
4    5          wearing    3
5    7  to the right of    0
6    8   to the left of    3
7    8   to the left of    5