Question: How many 3D movies were titled The Smurfs and published before 2012 ?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "3D film" . ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2012 ) . ?e <title> ?pv_1 . ?pv_1 <pred:value> "The Smurfs" .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2012
<
function: FilterConcept
dependencies: 1
inputs: 3D film
function: FindAll
function: FilterStr
dependencies: 3
inputs: title
The Smurfs
function: FilterConcept
dependencies: 4
inputs: 3D film
function: And
dependencies: 2
5
function: Count
dependencies: 6
Answer: 1