Question: Which has a greater area, Stoke-on-Trent or Swansea?
Choices:
Kilkenny
Trieste
Bergen
Cork
Swansea
Chihuahua
Santo Domingo
Dundee
Kingston
Abidjan
Program:
function: Find
inputs: Stoke-on-Trent
function: Find
inputs: Swansea
function: SelectBetween
dependencies: 0
1
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Stoke-on-Trent" .  } UNION { ?e <pred:name> "Swansea" .  } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Swansea