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