Question: How many 3D movies clock in at under 630 minutes or have a release year prior to 2011?
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 <duration> ?pv . ?pv <pred:unit> "minute" . ?pv <pred:value> ?v . FILTER ( ?v < "630"^^xsd:double ) .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2011 ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: duration
630 minute
<
function: FilterConcept
dependencies: 1
inputs: 3D film
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
2011
<
function: FilterConcept
dependencies: 4
inputs: 3D film
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 5