Question: How many constituencies of the Rajya Sabha are different from Uttarakhand (whose 2001 Indian census area code is 05) or are coextensive with Uttar Pradesh (whose population is 199812341)?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: Uttarakhand
function: FilterStr
dependencies: 0
inputs: Indian census area code (2001)
05
function: Relate
dependencies: 1
inputs: different from
forward
function: FilterConcept
dependencies: 2
inputs: constituency of the Rajya Sabha
function: Find
inputs: Uttar Pradesh
function: FilterNum
dependencies: 4
inputs: population
199812341
=
function: Relate
dependencies: 5
inputs: coextensive with
backward
function: FilterConcept
dependencies: 6
inputs: constituency of the Rajya Sabha
function: Or
dependencies: 3
7
function: Count
dependencies: 8
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "constituency of the Rajya Sabha" .  { ?e_1 <different_from> ?e . ?e_1 <pred:name> "Uttarakhand" . ?e_1 <Indian_census_area_code_(2001)> ?pv . ?pv <pred:value> "05" .  } UNION { ?e <coextensive_with> ?e_1 . ?e_1 <pred:name> "Uttar Pradesh" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "199812341"^^xsd:double .  } }
Answer: 2