Question: How many county of Alabama whose population is higher than 2200 or this is an administrative division of Alabama (the one this is the narrative region of Borat)
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
2200
>
function: FilterConcept
dependencies: 1
inputs: county of Alabama
function: Find
inputs: Borat
function: Relate
dependencies: 3
inputs: narrative location
forward
function: Find
inputs: Alabama
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: contains administrative territorial entity
forward
function: FilterConcept
dependencies: 7
inputs: county of Alabama
function: Or
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Alabama" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "2200"^^xsd:double ) .  } UNION { ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Alabama" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "Borat" .  } }
Answer: 10