Question: How many secondary schools there are in India (the country of UTV Motion Pictures) or that belongs to the British Commonwealth of Nations?
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 <country> ?e_1 . ?e_1 <pred:name> "India" . ?e_2 <country> ?e_1 . ?e_2 <pred:name> "UTV Motion Pictures" .  } UNION { ?e <allegiance> ?e_1 . ?e_1 <pred:name> "United Kingdom" .  } }
Program:
function: Find
inputs: UTV Motion Pictures
function: Relate
dependencies: 0
inputs: country
forward
function: Find
inputs: India
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: country
backward
function: FilterConcept
dependencies: 4
inputs: secondary school
function: Find
inputs: United Kingdom
function: Relate
dependencies: 6
inputs: allegiance
backward
function: FilterConcept
dependencies: 7
inputs: secondary school
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 2