Question: How many counties of Illinois there are that are twinned administrative body of Woking (the one whose TOID is 4000000074549970) or whose population is more than 830000000?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Illinois" .  { ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Woking" . ?e_1 <TOID> ?pv . ?pv <pred:value> "4000000074549970" .  } UNION { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "830000000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Woking
function: FilterStr
dependencies: 0
inputs: TOID
4000000074549970
function: Relate
dependencies: 1
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 2
inputs: county of Illinois
function: FindAll
function: FilterNum
dependencies: 4
inputs: population
830000000
>
function: FilterConcept
dependencies: 5
inputs: county of Illinois
function: Or
dependencies: 3
6
function: Count
dependencies: 7