Question: Is the smaller area occupied by Nebraska that borders South Dakota or Utah, with FIPS 5-2 alpha code (US states) UT?
Choices:
Hawaii
California
Colorado
New Mexico
Massachusetts
Nebraska
Illinois
New Jersey
Utah
Florida
Program:
function: Find
inputs: South Dakota
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Nebraska
function: And
dependencies: 1
2
function: Find
inputs: Utah
function: FilterStr
dependencies: 4
inputs: FIPS 5-2 alpha code (US states)
UT
function: SelectBetween
dependencies: 3
5
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nebraska" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "South Dakota" . } UNION { ?e <pred:name> "Utah" . ?e <FIPS_5-2_alpha_code_(US_states)> ?pv_1 . ?pv_1 <pred:value> "UT" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Nebraska