Question: How many law schools are located in Chicago (where Barack Obama lives) and in Cambridge (the one whose population is 26060)?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Barack Obama
function: Relate
dependencies: 0
inputs: residence
forward
function: Find
inputs: Chicago
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: headquarters location
backward
function: FilterConcept
dependencies: 4
inputs: law school
function: Find
inputs: Cambridge
function: FilterNum
dependencies: 6
inputs: population
26060
=
function: Relate
dependencies: 7
inputs: location
backward
function: FilterConcept
dependencies: 8
inputs: law school
function: And
dependencies: 5
9
function: Count
dependencies: 10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "law school" . ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "Chicago" . ?e_2 <residence> ?e_1 . ?e_2 <pred:name> "Barack Obama" .  ?e <location> ?e_3 . ?e_3 <pred:name> "Cambridge" . ?e_3 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "26060"^^xsd:double .  }
Answer: 0