Question: How many Maine counties have a population less than 6700000 or that contain the administrative division Gloucester whose area is 107.514634 square kilometers?
Choices:
3
4
5
6
7
8
9
10
11
12
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
6700000
<
function: FilterConcept
dependencies: 1
inputs: county of Maine
function: Find
inputs: Gloucester
function: FilterNum
dependencies: 3
inputs: area
107.514634 square kilometre
=
function: Relate
dependencies: 4
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 5
inputs: county of Maine
function: Or
dependencies: 2
6
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Maine" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "6700000"^^xsd:double ) .  } UNION { ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Gloucester" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "107.514634"^^xsd:double .  } }
Answer: 10