Question: Which occupies a smaller area, Litchfield or Plymouth (official website http://www.plymouth-ma.gov/)?
Choices:
Greenwich
Bedford
Chapel Hill
Plymouth
Brookline
Litchfield
Kensington
Amherst
Uxbridge
Westport
Program:
function: Find
inputs: Litchfield
function: Find
inputs: Plymouth
function: FilterStr
dependencies: 1
inputs: official website
http://www.plymouth-ma.gov/
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Litchfield" . } UNION { ?e <pred:name> "Plymouth" . ?e <official_website> ?pv_1 . ?pv_1 <pred:value> "http://www.plymouth-ma.gov/" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Litchfield