Question: Which one is smaller, Ibaraki Prefecture or Shizuoka Prefecture?
Choices:
Miyagi Prefecture
Shizuoka Prefecture
Niigata Prefecture
Aichi Prefecture
Okinawa Prefecture
Chiba Prefecture
Fukuoka Prefecture
Kanagawa Prefecture
Ibaraki Prefecture
Ōsaka Prefecture
Program:
function: Find
inputs: Ibaraki Prefecture
function: Find
inputs: Shizuoka Prefecture
function: SelectBetween
dependencies: 0
1
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ibaraki Prefecture" .  } UNION { ?e <pred:name> "Shizuoka Prefecture" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Ibaraki Prefecture