Question: Which has less population, Plymouth whose official website is http://www.plymouth.gov.uk/ or Stockholm?
Choices:
Trieste
Dundee
Kingston
Plymouth
Cork
Kilkenny
Abidjan
Stockholm
Bergen
Chihuahua
Program:
function: Find
inputs: Plymouth
function: FilterStr
dependencies: 0
inputs: official website
http://www.plymouth.gov.uk/
function: Find
inputs: Stockholm
function: SelectBetween
dependencies: 1
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Plymouth" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.plymouth.gov.uk/" . } UNION { ?e <pred:name> "Stockholm" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Plymouth