Question: What regional capital in Italy has the masculine singular demonym umbro ?
Choices:
Palermo
Bergen
Milan
Waterford
Kilkenny
Quito
Cork
Perugia
Turin
Trieste
Answer: Perugia
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <capital> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "region of Italy" . ?e_1 <demonym> ?pv . ?pv <pred:value> "umbro" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <demonym> ; <pred:fact_t> ?pv ] <applies_to_part> ?qpv . ?qpv <pred:value> "masculine singular" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
umbro
function: QFilterStr
dependencies: 1
inputs: applies to part
masculine singular
function: FilterConcept
dependencies: 2
inputs: region of Italy
function: Relate
dependencies: 3
inputs: capital
forward
function: FilterConcept
dependencies: 4
inputs: city
function: What
dependencies: 5