Question: Does the Glendale that borders Burbank or Naples, founded in 1886, occupy a smaller area?
Choices:
Greenville
New Haven
Lansing
Franklin
Boulder
Naples
Glendale
Compton
Columbus
Waukegan
Answer: Naples
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Glendale" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Burbank" . } UNION { ?e <pred:name> "Naples" . ?e <inception> ?pv_1 . ?pv_1 <pred:year> 1886 . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Burbank
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Glendale
function: And
dependencies: 1
2
function: Find
inputs: Naples
function: FilterYear
dependencies: 4
inputs: inception
1886
=
function: SelectBetween
dependencies: 3
5
inputs: area
less