Question: Which place, Mysore or Burlington, has the greater area?
Choices:
Kilkenny
Dundee
Bergen
Chihuahua
Trieste
Abidjan
Burlington
Santo Domingo
Mysore
Kingston
Program:
function: Find
inputs: Mysore
function: Find
inputs: Burlington
function: FilterStr
dependencies: 1
inputs: official website
http://www.burlington.ca/
function: SelectBetween
dependencies: 0
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mysore" . } UNION { ?e <pred:name> "Burlington" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.burlington.ca/" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Burlington