Question: Does Frankfurt or Madrid have a bigger budget?
Choices: Frankfurt
Kilkenny
Dundee
Chihuahua
Cork
Bergen
Kingston
Santo Domingo
Trieste
Madrid
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Frankfurt" .  } UNION { ?e <pred:name> "Madrid" .  } ?e <budget> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Frankfurt
function: Find
inputs: Madrid
function: SelectBetween
dependencies: 0
1
inputs: budget
greater
Answer: Madrid