Question: In a comparison of Romania (which has diplomatic ties with the USA) and Syria, which country has the higher mains voltage?
Choices: Cambodia
South Sudan
Switzerland
Russian Soviet Federative Socialist Republic
Romania
Benin
Samoa
Syria
Weimar Republic
Socialist Federal Republic of Yugoslavia
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Syria" .  } UNION { ?e <pred:name> "Romania" . ?e_1 <diplomatic_relation> ?e . ?e_1 <pred:name> "United States of America" .   } ?e <mains_voltage> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Syria
function: Find
inputs: United States of America
function: Relate
dependencies: 1
inputs: diplomatic relation
forward
function: Find
inputs: Romania
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: mains voltage
greater
Answer: Romania