Question: Which area is smaller, Saint Vincent and the Grenadines or Luxembourg (the one that has a diplomatic relation with Vietnam)?
Choices:
Ukrainian Soviet Socialist Republic
Denmark
Luxembourg
Kazakhstan
Lithuania
Jamaica
Finland
Trinidad and Tobago
Tajikistan
Saint Vincent and the Grenadines
Program:
function: Find
inputs: Saint Vincent and the Grenadines
function: Find
inputs: Vietnam
function: Relate
dependencies: 1
inputs: diplomatic relation
forward
function: Find
inputs: Luxembourg
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Saint Vincent and the Grenadines" .  } UNION { ?e <pred:name> "Luxembourg" . ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:name> "Vietnam" .   } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Saint Vincent and the Grenadines