Question: What city is the capital of the democracy whose demonym is albaneză (the involved part of this statement is feminine)?
Choices: Trieste
Tirana
Bergen
Bratislava
Jakarta
Freetown
Kilkenny
Harare
Cork
Kingston
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <capital_of> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "democracy" . ?e_1 <demonym> ?pv . ?pv <pred:value> "albaneză" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <demonym> ; <pred:fact_t> ?pv ] <applies_to_part> ?qpv . ?qpv <pred:value> "feminine" .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
albaneză
function: QFilterStr
dependencies: 1
inputs: applies to part
feminine
function: FilterConcept
dependencies: 2
inputs: democracy
function: Relate
dependencies: 3
inputs: capital of
backward
function: FilterConcept
dependencies: 4
inputs: city
function: What
dependencies: 5
Answer: Tirana