Question: What United States city borders Natchez and whose area is less than 48000000 square kilometres?
Choices:
Honolulu County
Franklin
Palo Alto
Abilene
Everett
Baltimore
Monterey
Columbus
New Haven
Vicksburg
Program:
function: Find
inputs: Natchez
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: city of the United States
function: FindAll
function: FilterNum
dependencies: 3
inputs: area
48000000 square kilometre
<
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Natchez" .  ?e <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v < "48000000"^^xsd:double ) .  }
Answer: Vicksburg