Question: How is the romance movie My Name Is Khan linked to Thailand?
Choices:
filming location
field of work
this taxon is source of
has quality
currency
award received
musical conductor
part of
academic degree
occupation
Answer: filming location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "My Name Is Khan" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "romance film" . ?e_2 <pred:name> "Thailand" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: romance film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: My Name Is Khan
function: And
dependencies: 1
2
function: Find
inputs: Thailand
function: QueryRelation
dependencies: 3
4