Question: Which one has less mains voltage, Puerto Rico (the lowest point of the Caribbean Sea) or New Caledonia?
Choices:
Orange County
Puerto Rico
Lee County
San Juan County
New Caledonia
Washoe County
Kent County
Greene County
Cass County
Delaware County
Program:
function: Find
inputs: Caribbean Sea
function: Relate
dependencies: 0
inputs: lowest point
backward
function: Find
inputs: Puerto Rico
function: And
dependencies: 1
2
function: Find
inputs: New Caledonia
function: SelectBetween
dependencies: 3
4
inputs: mains voltage
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Puerto Rico" . ?e <lowest_point> ?e_1 . ?e_1 <pred:name> "Caribbean Sea" .   } UNION { ?e <pred:name> "New Caledonia" .  } ?e <mains_voltage> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Puerto Rico