Question: Which administrative territorial entity borders County Donegal and is not 1600000 square kilometres in size?
Choices:
West Bank
Orange County
Ramsey County
Gwinnett County
Monmouthshire
Fairfield County
Northern Ireland
Washoe County
African Union
County Tyrone
Program:
function: Find
inputs: County Donegal
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: administrative territorial entity
function: FindAll
function: FilterNum
dependencies: 3
inputs: area
1600000 square kilometre
!=
function: FilterConcept
dependencies: 4
inputs: administrative territorial entity
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "County Donegal" .  ?e <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v != "1600000"^^xsd:double ) .  }
Answer: County Tyrone