Question: Which area is smaller, Rapid City or Frederick (the one whose population is 65239)?
Choices:
Boulder
Oakland
Lansing
Columbus
Compton
Franklin
New Haven
Frederick
Greenville
Waukegan
Program:
function: Find
inputs: Rapid City
function: Find
inputs: Frederick
function: FilterNum
dependencies: 1
inputs: population
65239
=
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Rapid City" . } UNION { ?e <pred:name> "Frederick" . ?e <population> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "65239"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Frederick