Question: Does Nagano Prefecture or Kagoshima Prefecture have more people?
Choices:
Kagoshima Prefecture
Ōsaka Prefecture
Kanagawa Prefecture
Miyagi Prefecture
Niigata Prefecture
Aichi Prefecture
Nagano Prefecture
Fukushima Prefecture
Chiba Prefecture
Fukuoka Prefecture
Program:
function: Find
inputs: Nagano Prefecture
function: Find
inputs: Kagoshima Prefecture
function: SelectBetween
dependencies: 0
1
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Nagano Prefecture" .  } UNION { ?e <pred:name> "Kagoshima Prefecture" .  } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Nagano Prefecture