Question: Which written work published prior to 2005 is titled The Firm?
Choices: Contact
The Hours
The Postman
The Firm
A Single Man
The Cat in the Hat
Empire of the Sun
Goldfinger
Planet of the Apes
The Painted Veil
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" . ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2005 ) . ?e <title> ?pv_1 . ?pv_1 <pred:value> "The Firm" .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2005
<
function: FilterConcept
dependencies: 1
inputs: written work
function: FindAll
function: FilterStr
dependencies: 3
inputs: title
The Firm
function: FilterConcept
dependencies: 4
inputs: written work
function: And
dependencies: 2
5
function: What
dependencies: 6
Answer: The Firm