Question: How many boarding schools were founded before 1859 and are a filming location of Harry Potter and the Philosopher's Stone starring John Hurt?
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> "boarding school" . ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1859 ) . ?e_1 <filming_location> ?e . ?e_1 <pred:name> "Harry Potter and the Philosopher's Stone" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "John Hurt" .  }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1859
<
function: FilterConcept
dependencies: 1
inputs: boarding school
function: Find
inputs: John Hurt
function: Relate
dependencies: 3
inputs: cast member
backward
function: Find
inputs: Harry Potter and the Philosopher's Stone
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: filming location
forward
function: FilterConcept
dependencies: 7
inputs: boarding school
function: And
dependencies: 2
8
function: Count
dependencies: 9
Answer: 1