Question: Which has a greater percent of water area, Mississippi (whose FIPS 5-2 alpha code (US states) is MS) or New York (which contains Oswego County)?
Choices:
Illinois
New Jersey
New Mexico
Florida
Mississippi
Massachusetts
Iowa
New York
Hawaii
California
Program:
function: Find
inputs: Mississippi
function: FilterStr
dependencies: 0
inputs: FIPS 5-2 alpha code (US states)
MS
function: Find
inputs: Oswego County
function: Relate
dependencies: 2
inputs: located in the administrative territorial entity
forward
function: Find
inputs: New York
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: water as percent of area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mississippi" . ?e <FIPS_5-2_alpha_code_(US_states)> ?pv_1 . ?pv_1 <pred:value> "MS" . } UNION { ?e <pred:name> "New York" . ?e_1 <located_in_the_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Oswego County" . } ?e <water_as_percent_of_area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: New York