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