Question: Which area is smaller, Santa Cruz County (the one whose FIPS 6-4 (US counties) is 04023) or Pinal County?
Choices:
Apache County
Santa Cruz County
Yavapai County
Cochise County
Pinal County
Navajo County
Coconino County
Gila County
Mohave County
Pima County
Program:
function: Find
inputs: Santa Cruz County
function: FilterStr
dependencies: 0
inputs: FIPS 6-4 (US counties)
04023
function: Find
inputs: Pinal County
function: SelectBetween
dependencies: 1
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Santa Cruz County" . ?e <FIPS_6-4_(US_counties)> ?pv_1 . ?pv_1 <pred:value> "04023" . } UNION { ?e <pred:name> "Pinal County" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Santa Cruz County