Question: For the republic that shares a border with Mozambique (the subject of this statement is Mozambique–Zambia border), its demonym of زامبية applies to which part?
Choices:
Obion County
6th arrondissement of Lyon
Morgan County
8th arrondissement of Lyon
Metropolitan France
Jefferson County
Canary Islands
feminine
Dewey County
Peace River Regional District
Answer: feminine
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "republic" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "Mozambique" . [ <pred:fact_h> ?e ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv_1 . ?qpv_1 <pred:value> "Mozambique–Zambia border" . ?e <demonym> ?pv . ?pv <pred:value> "زامبية" . [ <pred:fact_h> ?e ; <pred:fact_r> <demonym> ; <pred:fact_t> ?pv ] <applies_to_part> ?qpv .  }
Program:
function: Find
inputs: Mozambique
function: Relate
dependencies: 0
inputs: shares border with
backward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Mozambique–Zambia border
function: FilterConcept
dependencies: 2
inputs: republic
function: QueryAttrQualifier
dependencies: 3
inputs: demonym
زامبية
applies to part