Question: Between Gifu or Aichi prefectures, which is covered by a smaller proportion of water?
Choices:
Chiba Prefecture
Kanagawa Prefecture
Gifu Prefecture
Fukuoka Prefecture
Saitama Prefecture
Niigata Prefecture
Fukushima Prefecture
Okinawa Prefecture
Aichi Prefecture
Ōsaka Prefecture
Program:
function: Find
inputs: Gifu Prefecture
function: Find
inputs: Aichi Prefecture
function: SelectBetween
dependencies: 0
1
inputs: water as percent of area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Gifu Prefecture" .  } UNION { ?e <pred:name> "Aichi Prefecture" .  } ?e <water_as_percent_of_area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Gifu Prefecture