Question: Does Venezuela or San Marino (the one with nominal GDP of 1800077091.09598 United States dollar) have greater mains voltage ?
Choices: Samoa
Weimar Republic
South Sudan
Venezuela
Socialist Federal Republic of Yugoslavia
Kiribati
Switzerland
Benin
Cambodia
San Marino
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Venezuela" . } UNION { ?e <pred:name> "San Marino" . ?e <nominal_GDP> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "1800077091.09598"^^xsd:double . } ?e <mains_voltage> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Venezuela
function: Find
inputs: San Marino
function: FilterNum
dependencies: 1
inputs: nominal GDP
1800077091.09598 United States dollar
=
function: SelectBetween
dependencies: 0
2
inputs: mains voltage
greater
Answer: San Marino