Question: tell me the relationship between Anthony Wong (who has a gay sexual orientation) to gay
Choices:
director of photography
twinned administrative body
manner of death
country of citizenship
notable work
copyright holder
author
member of sports team
sexual orientation
headquarters location
Answer: sexual orientation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Anthony Wong" . ?e_1 <sexual_orientation> ?e_3 . ?e_3 <pred:name> "gay" . ?e_2 <pred:name> "gay" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: gay
function: Relate
dependencies: 0
inputs: sexual orientation
backward
function: Find
inputs: Anthony Wong
function: And
dependencies: 1
2
function: Find
inputs: gay
function: QueryRelation
dependencies: 3
4