Question: To which part of a sovereign state, having diplomatic relations with  Netherlands (the subject of this statement is Netherlands–Pakistan relations) does its demonim pakistana apply?
Choices:
atom
Hardeman County
hairdresser
Grand Duchy of Finland
Doors Open Days
9th arrondissement of Paris
Kivalliq Region
campsite
16th arrondissement of Paris
feminine singular
Answer: feminine singular
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e <diplomatic_relation> ?e_1 . ?e_1 <pred:name> "Netherlands" . [ <pred:fact_h> ?e ; <pred:fact_r> <diplomatic_relation> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv_1 . ?qpv_1 <pred:value> "Netherlands–Pakistan relations" . ?e <demonym> ?pv . ?pv <pred:value> "pakistana" . [ <pred:fact_h> ?e ; <pred:fact_r> <demonym> ; <pred:fact_t> ?pv ] <applies_to_part> ?qpv .  }
Program:
function: Find
inputs: Netherlands
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: QFilterStr
dependencies: 1
inputs: statement is subject of
Netherlands–Pakistan relations
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: QueryAttrQualifier
dependencies: 3
inputs: demonym
pakistana
applies to part