Question: Which area is smaller, Los Gatos or Portsmouth (the one whose inception time is 1803)?
Choices:
Boulder
Columbus
Lansing
Greenville
Waukegan
Compton
New Haven
Franklin
Portsmouth
Los Gatos
Program:
function: Find
inputs: Los Gatos
function: Find
inputs: Portsmouth
function: FilterYear
dependencies: 1
inputs: inception
1803
=
function: SelectBetween
dependencies: 0
2
inputs: area
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Los Gatos" . } UNION { ?e <pred:name> "Portsmouth" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1803 . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Portsmouth