Question: How is The Longest Yard which was nominated for an Academy Award for Best Film Editing related to the USA?
Choices:
main food source
country of origin
lyrics by
located in the administrative territorial entity
taxon rank
commissioned by
chairperson
basic form of government
doctoral student
location of discovery
Answer: country of origin
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Longest Yard" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Film Editing" . ?e_2 <pred:name> "United States of America" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Academy Award for Best Film Editing
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: The Longest Yard
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: QueryRelation
dependencies: 3
4