Question: Regarding Gibraltar, (located in Europe continent) the demonym is gibraltarenc, which part does it apply to?
Choices:
masculine singular
Macon County
5th arrondissement of Paris
Non-EU/EEA Citizen
mayor
Madeira
three-player chess
Northwest Territories
Eastern Japan
sea
Program:
function: Find
inputs: Europe
function: Relate
dependencies: 0
inputs: continent
backward
function: Find
inputs: Gibraltar
function: And
dependencies: 1
2
function: QueryAttrQualifier
dependencies: 3
inputs: demonym
gibraltarenc
applies to part
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:name> "Gibraltar" . ?e <continent> ?e_1 . ?e_1 <pred:name> "Europe" .  ?e <demonym> ?pv . ?pv <pred:value> "gibraltarenc" . [ <pred:fact_h> ?e ; <pred:fact_r> <demonym> ; <pred:fact_t> ?pv ] <applies_to_part> ?qpv .  }
Answer: masculine singular