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