Question: Which area is larger, Kingdom of Scotland or Chad?
Choices:
Samoa
Russian Soviet Federative Socialist Republic
Kingdom of Scotland
Switzerland
Chad
Socialist Federal Republic of Yugoslavia
Kiribati
South Sudan
Weimar Republic
Cambodia
Program:
function: Find
inputs: Kingdom of Scotland
function: Find
inputs: Chad
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Kingdom of Scotland" .  } UNION { ?e <pred:name> "Chad" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chad