Question: How many constituencies of Rajya Sabja are from India (where Koltaka also belongs) or coexist with Assam(the one whose male population is 15939443)?
Choices:
18
19
20
21
22
23
24
25
26
27
Answer: 19
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "constituency of the Rajya Sabha" .  { ?e <country> ?e_1 . ?e_1 <pred:name> "India" . ?e_2 <country> ?e_1 . ?e_2 <pred:name> "Kolkata" .  } UNION { ?e_1 <coextensive_with> ?e . ?e_1 <pred:name> "Assam" . ?e_1 <male_population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "15939443"^^xsd:double .  } }
Program:
function: Find
inputs: Kolkata
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: constituency of the Rajya Sabha
function: Find
inputs: Assam
function: FilterNum
dependencies: 6
inputs: male population
15939443
=
function: Relate
dependencies: 7
inputs: coextensive with
forward
function: FilterConcept
dependencies: 8
inputs: constituency of the Rajya Sabha
function: Or
dependencies: 5
9
function: Count
dependencies: 10