Question: Which has a greater population, Palm Beach or Plymouth (which has its official website at http://www.plymouth-ma.gov/)?
Choices:
Kensington
Westport
Brookline
Uxbridge
Chapel Hill
Greenwich
Plymouth
Amherst
West Hartford
Palm Beach
Program:
function: Find
inputs: Palm Beach
function: Find
inputs: Plymouth
function: FilterStr
dependencies: 1
inputs: official website
http://www.plymouth-ma.gov/
function: SelectBetween
dependencies: 0
2
inputs: population
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Palm Beach" . } UNION { ?e <pred:name> "Plymouth" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.plymouth-ma.gov/" . } ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Plymouth