Question: Which one has more vehicles per 1000 people, South America or Africa  (the one that is the continent that Spanish Empire locates)?
Choices:
South America
Antarctica
Piedmont
Transylvania
Africa
Southern California
Tibet
Pacific Ocean
Caribbean
Atlantic Canada
Program:
function: Find
inputs: South America
function: Find
inputs: Spanish Empire
function: Relate
dependencies: 1
inputs: continent
forward
function: Find
inputs: Africa
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: vehicles per capita (1000)
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "South America" .  } UNION { ?e <pred:name> "Africa" . ?e_1 <continent> ?e . ?e_1 <pred:name> "Spanish Empire" .   } ?e <vehicles_per_capita_(1000)> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: South America