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