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