Question: Which part does the province of Canada that shares a border with Pennsylvania, and that has demonym Ontarien, apply to?
Choices: Johnson County
Eastern Province
Torchwood, season 2
Bogor
Community, season 5
masculine
Aruba
Community, season 6
chemistry
Yukon
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Canada" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Pennsylvania" .  ?e <demonym> ?pv . ?pv <pred:value> "Ontarien" . [ <pred:fact_h> ?e ; <pred:fact_r> <demonym> ; <pred:fact_t> ?pv ] <applies_to_part> ?qpv .  }
Program:
function: Find
inputs: Pennsylvania
function: Relate
dependencies: 0
inputs: shares border with
backward
function: FilterConcept
dependencies: 1
inputs: province of Canada
function: QueryAttrQualifier
dependencies: 2
inputs: demonym
Ontarien
applies to part
Answer: masculine