Question: Which has a greater VAT-rate, Andorra or Australia (which is the country of Collingwood Football Club)?
Choices:
Russian Soviet Federative Socialist Republic
Benin
Australia
Switzerland
Samoa
South Sudan
Weimar Republic
Kiribati
Socialist Federal Republic of Yugoslavia
Andorra
Program:
function: Find
inputs: Andorra
function: Find
inputs: Collingwood Football Club
function: Relate
dependencies: 1
inputs: country
forward
function: Find
inputs: Australia
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: VAT-rate
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Andorra" .  } UNION { ?e <pred:name> "Australia" . ?e_1 <country> ?e . ?e_1 <pred:name> "Collingwood Football Club" .   } ?e <VAT-rate> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Australia