Question: To which part of Gibraltar (calling code +350) a demonym Gibraltareño applies?
Choices:
Northern Mariana Islands
singing
Bosnia
Herzegovina
Eastern Japan
Knox County
masculine
Kitikmeot Region
Scotland
Johnson County
Answer: masculine
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:name> "Gibraltar" . ?e <country_calling_code> ?pv_1 . ?pv_1 <pred:value> "+350" . ?e <demonym> ?pv . ?pv <pred:value> "Gibraltareño" . [ <pred:fact_h> ?e ; <pred:fact_r> <demonym> ; <pred:fact_t> ?pv ] <applies_to_part> ?qpv .  }
Program:
function: Find
inputs: Gibraltar
function: FilterStr
dependencies: 0
inputs: country calling code
+350
function: QueryAttrQualifier
dependencies: 1
inputs: demonym
Gibraltareño
applies to part