Question: Which has less population, Columbia whose subreddit is ColumbiaMD or Worthing?
Choices:
Columbia
Wimbledon
Edmonton
Doncaster
Blackburn
Worthing
South Shields
Wigan
Royal Tunbridge Wells
Colchester
Program:
function: Find
inputs: Columbia
function: FilterStr
dependencies: 0
inputs: subreddit
ColumbiaMD
function: Find
inputs: Worthing
function: SelectBetween
dependencies: 1
2
inputs: population
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Columbia" . ?e <subreddit> ?pv_1 . ?pv_1 <pred:value> "ColumbiaMD" . } UNION { ?e <pred:name> "Worthing" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Columbia