Question: Which area is smaller, Fayette County (the one whose population is 301313) or Shelby County (the one whose area is 999 square kilometre)?
Choices:
Shelby County
Orange County
African Union
Lee County
Greene County
Fayette County
Delaware County
San Juan County
Washoe County
Kent County
Program:
function: Find
inputs: Fayette County
function: FilterNum
dependencies: 0
inputs: population
301313
=
function: Find
inputs: Shelby County
function: FilterNum
dependencies: 2
inputs: area
999 square kilometre
=
function: SelectBetween
dependencies: 1
3
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fayette County" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "301313"^^xsd:double . } UNION { ?e <pred:name> "Shelby County" . ?e <area> ?pv_2 . ?pv_2 <pred:unit> "square kilometre" . ?pv_2 <pred:value> "999"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Fayette County