Question: What is the relation between Dangerous Liaisons (in the erotic thriller genre) and Zhang Ziyi?
Choices:
successful candidate
country
founded by
cast member
family name
member of
properties for this type
part of the series
place of birth
movement
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Dangerous Liaisons" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "erotic thriller" . ?e_2 <pred:name> "Zhang Ziyi" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: erotic thriller
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Dangerous Liaisons
function: And
dependencies: 1
2
function: Find
inputs: Zhang Ziyi
function: QueryRelation
dependencies: 3
4