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