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