Question: Is there less area in Sullivan County (the one that shares border with Grafton County) or Lancaster County (the one whose population is 286126)?
Choices:
Delaware County
Kent County
San Juan County
Lee County
Greene County
Washoe County
Cass County
Orange County
Sullivan County
African Union
Answer: Sullivan County
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sullivan County" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Grafton County" . } UNION { ?e <pred:name> "Lancaster County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "286126"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Grafton County
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Sullivan County
function: And
dependencies: 1
2
function: Find
inputs: Lancaster County
function: FilterNum
dependencies: 4
inputs: population
286126
=
function: SelectBetween
dependencies: 3
5
inputs: area
less