Question: Leo McCarey won the Academy Award for Best Story for which work?
Choices:
Statute of Westminster 1931
Canada–Democratic Republic of the Congo relations
2009 MTV Movie Awards
Bangladesh–Libya relations
17th Academy Awards
Canada–Grenada relations
63rd Tony Awards
Burundi–Democratic Republic of the Congo border
Pakistan–Syria relations
Taiwan–United Kingdom relations
Answer: 17th Academy Awards
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Leo McCarey" . ?e_2 <pred:name> "Academy Award for Best Story" . ?e_1 <award_received> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <award_received> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv .  }
Program:
function: Find
inputs: Leo McCarey
function: Find
inputs: Academy Award for Best Story
function: QueryRelationQualifier
dependencies: 0
1
inputs: award received
statement is subject of