Question: Which has more water Shizuoka Prefecture or Fukuoka Prefecture ?
Choices:
Shizuoka Prefecture
Kanagawa Prefecture
Aichi Prefecture
Ōsaka Prefecture
Fukushima Prefecture
Niigata Prefecture
Saitama Prefecture
Miyagi Prefecture
Fukuoka Prefecture
Chiba Prefecture
Program:
function: Find
inputs: Shizuoka Prefecture
function: Find
inputs: Fukuoka Prefecture
function: SelectBetween
dependencies: 0
1
inputs: water as percent of area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Shizuoka Prefecture" .  } UNION { ?e <pred:name> "Fukuoka Prefecture" .  } ?e <water_as_percent_of_area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Shizuoka Prefecture