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