Question: What is the subject of a statement that Ratatouille (the one whose publication date is 2007-10-19) was nominated for Academy Award for Best Animated Feature?
Choices:
Saint Lucia–United States relations
Dominican Republic–Mexico relations
49th Academy Awards
Ecuador–Malaysia relations
Guinea–United States relations
80th Academy Awards
Australia–Israel relations
66th Tony Awards
Lebanon–Uruguay relations
Bangladesh–Fiji relations
Answer: 80th Academy Awards
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Ratatouille" . ?e_1 <publication_date> ?pv . ?pv <pred:date> "2007-10-19"^^xsd:date . ?e_2 <pred:name> "Academy Award for Best Animated Feature" . ?e_1 <nominated_for> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <nominated_for> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv .  }
Program:
function: Find
inputs: Ratatouille
function: FilterDate
dependencies: 0
inputs: publication date
2007-10-19
=
function: Find
inputs: Academy Award for Best Animated Feature
function: QueryRelationQualifier
dependencies: 1
2
inputs: nominated for
statement is subject of