Question: To which part of the sovereign state that shares a border with Libya (in the subject of Egypt–Libya border) does the demonym مِصْرِيُّونَ apply?
Choices:
Prince Edward Island
NBC Sports
Coffee County
Grundy County
Nova Scotia
Kuningan
Saint Pierre and Miquelon
Montgomery County
metropolitan area
plural
Answer: plural
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Libya" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e ] <statement_is_subject_of> ?qpv_1 . ?qpv_1 <pred:value> "Egypt–Libya 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: Libya
function: Relate
dependencies: 0
inputs: shares border with
forward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Egypt–Libya border
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: QueryAttrQualifier
dependencies: 3
inputs: demonym
مِصْرِيُّونَ
applies to part