Question: Does Lancaster (located in the USA) or Philadelphia (local dialing code 267) occupy a smaller area?
Choices:
Philadelphia
Bethlehem
Lancaster
Harrisburg
Wilkes-Barre
York
Johnstown
Greensburg
Erie
Pittsburgh
Answer: Lancaster
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lancaster" . ?e <country> ?e_1 . ?e_1 <pred:name> "United States of America" . } UNION { ?e <pred:name> "Philadelphia" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "267" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country
backward
function: Find
inputs: Lancaster
function: And
dependencies: 1
2
function: Find
inputs: Philadelphia
function: FilterStr
dependencies: 4
inputs: local dialing code
267
function: SelectBetween
dependencies: 3
5
inputs: area
less