Question: How many Alabama counties occupy other than 730 square miles or include the administrative division Bangor, capital of Penobscot County?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county of Alabama" .  { ?e <area> ?pv . ?pv <pred:unit> "square mile" . ?pv <pred:value> ?v . FILTER ( ?v != "730"^^xsd:double ) .  } UNION { ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Bangor" . ?e_2 <capital> ?e_1 . ?e_2 <pred:name> "Penobscot County" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
730 square mile
!=
function: FilterConcept
dependencies: 1
inputs: county of Alabama
function: Find
inputs: Penobscot County
function: Relate
dependencies: 3
inputs: capital
forward
function: Find
inputs: Bangor
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 7
inputs: county of Alabama
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 0