Question: Which movie published after 1999 is titled Great Expectations?
Choices:
A Prairie Home Companion
Great Expectations
Talk to Her
The Da Vinci Code
Pleasantville
Rebecca
Gosford Park
Rise of the Planet of the Apes
The 40-Year-Old Virgin
Super
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1999
>
function: FilterConcept
dependencies: 1
inputs: film
function: FindAll
function: FilterStr
dependencies: 3
inputs: title
Great Expectations
function: FilterConcept
dependencies: 4
inputs: film
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1999 ) . ?e <title> ?pv_1 . ?pv_1 <pred:value> "Great Expectations" .  }
Answer: Great Expectations