Question: What number of counties in Virginia have populations above 8.9 or locations in Virginia, a state which has a population of 5346818?
Choices: 12
13
14
15
16
17
18
19
20
21
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Virginia" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "8.9"^^xsd:double ) .  } UNION { ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Virginia" . ?e_1 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "5346818"^^xsd:double .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
8.9
>
function: FilterConcept
dependencies: 1
inputs: county of Virginia
function: Find
inputs: Virginia
function: FilterNum
dependencies: 3
inputs: population
5346818
=
function: Relate
dependencies: 4
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 5
inputs: county of Virginia
function: Or
dependencies: 2
6
function: Count
dependencies: 7
Answer: 15