Question: How many private schools have the United Kingdom as a country and are located in London (the one whose population is 8416535)?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country
backward
function: FilterConcept
dependencies: 1
inputs: private school
function: Find
inputs: London
function: FilterNum
dependencies: 3
inputs: population
8416535
=
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 5
inputs: private school
function: And
dependencies: 2
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "private school" . ?e <country> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  ?e <located_in_the_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "London" . ?e_2 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "8416535"^^xsd:double .  }
Answer: 1