Question: What is the area of a city in the US that borders Concord (the one that shares border with Walnut Creek) ?
Choices:
109.724077 square kilometre
118.902033 square kilometre
78588.0 square kilometre
69.52 square kilometre
114.76 square kilometre
467 square mile
1724.544507 square kilometre
227 square kilometre
151.416915 square kilometre
51.206266 square kilometre
Program:
function: Find
inputs: Walnut Creek
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Concord
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: city of the United States
function: QueryAttr
dependencies: 5
inputs: area
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of the United States" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Concord" . ?e_1 <shares_border_with> ?e_2 . ?e_2 <pred:name> "Walnut Creek" .  ?e <area> ?pv .  }
Answer: 51.206266 square kilometre