Question: How many secondary schools in the allegiance of Equatorial Guinean are also in the country of India (the one that has a citizen Sridevi)?
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> "secondary school" . ?e <allegiance> ?e_1 . ?e_1 <pred:name> "Equatorial Guinea" .  ?e <country> ?e_2 . ?e_2 <pred:name> "India" . ?e_3 <country_of_citizenship> ?e_2 . ?e_3 <pred:name> "Sridevi" .  }
Program:
function: Find
inputs: Equatorial Guinea
function: Relate
dependencies: 0
inputs: allegiance
backward
function: FilterConcept
dependencies: 1
inputs: secondary school
function: Find
inputs: Sridevi
function: Relate
dependencies: 3
inputs: country of citizenship
forward
function: Find
inputs: India
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: country
backward
function: FilterConcept
dependencies: 7
inputs: secondary school
function: And
dependencies: 2
8
function: Count
dependencies: 9
Answer: 0