Question: Which area is larger, Suffolk (the one that shares border with Newport News) or Winchester (the one whose population is 26923)?
Choices:
Hampton
Falls Church
Lynchburg
Danville
Lexington
Fairfax
Winchester
Williamsburg
Suffolk
Roanoke
Program:
function: Find
inputs: Newport News
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Suffolk
function: And
dependencies: 1
2
function: Find
inputs: Winchester
function: FilterNum
dependencies: 4
inputs: population
26923
=
function: SelectBetween
dependencies: 3
5
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Suffolk" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Newport News" . } UNION { ?e <pred:name> "Winchester" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "26923"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Suffolk