Question: London, headquarters of 4AD, contains how many secondary schools?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "secondary school" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "London" . ?e_2 <headquarters_location> ?e_1 . ?e_2 <pred:name> "4AD" .   }
Program:
function: Find
inputs: 4AD
function: Relate
dependencies: 0
inputs: headquarters location
forward
function: Find
inputs: London
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: secondary school
function: Count
dependencies: 5
Answer: 2