Question: Which one has less above sea level elevation, Naples (the capital of Campania) or Regina (whose official website is http://www.regina.ca/)?
Choices:
Trieste
Kilkenny
Regina
Santo Domingo
Naples
Kingston
Cork
Dundee
Chihuahua
Abidjan
Answer: Naples
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Naples" . ?e <capital_of> ?e_1 . ?e_1 <pred:name> "Campania" . } UNION { ?e <pred:name> "Regina" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.regina.ca/" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Campania
function: Relate
dependencies: 0
inputs: capital of
backward
function: Find
inputs: Naples
function: And
dependencies: 1
2
function: Find
inputs: Regina
function: FilterStr
dependencies: 4
inputs: official website
http://www.regina.ca/
function: SelectBetween
dependencies: 3
5
inputs: elevation above sea level
less