Question: Does the Midland with telephone area code 432 or St. Joseph, administrative division of Berrien County, occupy more area?
Choices:
Waukegan
New Haven
Midland
Franklin
St. Joseph
Oakland
Columbus
Greenville
Boulder
Lansing
Answer: Midland
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Midland" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "432" . } UNION { ?e <pred:name> "St. Joseph" . ?e_1 <contains_administrative_territorial_entity> ?e . ?e_1 <pred:name> "Berrien County" . } ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Midland
function: FilterStr
dependencies: 0
inputs: local dialing code
432
function: Find
inputs: Berrien County
function: Relate
dependencies: 2
inputs: contains administrative territorial entity
forward
function: Find
inputs: St. Joseph
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: area
greater