Question: How many schools have an inception time after 1884 or are the filming location of Harry Potter and the Philosopher's Stone (whose duration is 152 minutes)?
Choices:
17
18
19
20
21
22
23
24
25
26
Answer: 21
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "school" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1884 ) .  } UNION { ?e_1 <filming_location> ?e . ?e_1 <pred:name> "Harry Potter and the Philosopher's Stone" . ?e_1 <duration> ?pv . ?pv <pred:unit> "minute" . ?pv <pred:value> "152"^^xsd:double .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1884
>
function: FilterConcept
dependencies: 1
inputs: school
function: Find
inputs: Harry Potter and the Philosopher's Stone
function: FilterNum
dependencies: 3
inputs: duration
152 minute
=
function: Relate
dependencies: 4
inputs: filming location
forward
function: FilterConcept
dependencies: 5
inputs: school
function: Or
dependencies: 2
6
function: Count
dependencies: 7