Question: Does Okinawa Prefecture or Hiroshima Prefecture have a smaller percentage of water area?
Choices:
Kanagawa Prefecture
Miyagi Prefecture
Fukuoka Prefecture
Okinawa Prefecture
Chiba Prefecture
Saitama Prefecture
Niigata Prefecture
Fukushima Prefecture
Ōsaka Prefecture
Hiroshima Prefecture
Program:
function: Find
inputs: Okinawa Prefecture
function: Find
inputs: Hiroshima Prefecture
function: SelectBetween
dependencies: 0
1
inputs: water as percent of area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Okinawa Prefecture" .  } UNION { ?e <pred:name> "Hiroshima Prefecture" .  } ?e <water_as_percent_of_area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Hiroshima Prefecture