Question: Which has smaller area, York where Martie Maguire was born or Chester whose area is 15.554672 square kilometres?
Choices:
York
Easton
Harrisburg
Philadelphia
Erie
Chester
Pittsburgh
Greensburg
Johnstown
Bethlehem
Answer: York
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "York" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Martie Maguire" . } UNION { ?e <pred:name> "Chester" . ?e <area> ?pv_1 . ?pv_1 <pred:unit> "square kilometre" . ?pv_1 <pred:value> "15.554672"^^xsd:double . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Martie Maguire
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: York
function: And
dependencies: 1
2
function: Find
inputs: Chester
function: FilterNum
dependencies: 4
inputs: area
15.554672 square kilometre
=
function: SelectBetween
dependencies: 3
5
inputs: area
less