Question: Which area has more people, La Jolla or Bournemouth (the one whose official website is http://www.bournemouth.gov.uk)?
Choices:
Royal Tunbridge Wells
Wigan
Edmonton
Colchester
Macclesfield
Doncaster
Bournemouth
South Shields
Wimbledon
Blackburn
Program:
function: Find
inputs: La Jolla
function: Find
inputs: Bournemouth
function: FilterStr
dependencies: 1
inputs: official website
http://www.bournemouth.gov.uk
function: SelectBetween
dependencies: 0
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "La Jolla" . } UNION { ?e <pred:name> "Bournemouth" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.bournemouth.gov.uk" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bournemouth