Question: Tell me the one with the bigger area, Chapel Hill or Newton (which has an official website http://newtontownhall.com/)
Choices:
Bedford
Litchfield
Westport
Chapel Hill
Uxbridge
Newton
Kensington
Amherst
Greenwich
Brookline
Program:
function: Find
inputs: Chapel Hill
function: Find
inputs: Newton
function: FilterStr
dependencies: 1
inputs: official website
http://newtontownhall.com/
function: SelectBetween
dependencies: 0
2
inputs: area
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chapel Hill" . } UNION { ?e <pred:name> "Newton" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://newtontownhall.com/" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Chapel Hill