Question: Which occupies the smaller area: Fairfield, whose Dewey Decimal Classification is 2--79452, or Redwood City?
Choices:
Redwood City
Compton
Boulder
New Haven
Greenville
Franklin
Lansing
Columbus
Fairfield
Waukegan
Program:
function: Find
inputs: Fairfield
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
2--79452
function: Find
inputs: Redwood City
function: SelectBetween
dependencies: 1
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fairfield" . ?e <Dewey_Decimal_Classification> ?pv_1 . ?pv_1 <pred:value> "2--79452" . } UNION { ?e <pred:name> "Redwood City" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Redwood City