Question: To which part of a sovereign state, where Vilnius belongs since 24th October 1795, does its demonym 'rusa' apply ?
Choices:
Calhoun County
Grand Duchy of Finland
governor
6th arrondissement of Paris
masculine
Mölndal Municipality
feminine
Qikiqtaaluk Region
list of countries where Russian is an official language
Trousdale County
Answer: feminine
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <country> ?e . ?e_1 <pred:name> "Vilnius" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <country> ; <pred:fact_t> ?e ] <start_time> ?qpv_1 . ?qpv_1 <pred:date> "1795-10-24"^^xsd:date . ?e <demonym> ?pv . ?pv <pred:value> "rusa" . [ <pred:fact_h> ?e ; <pred:fact_r> <demonym> ; <pred:fact_t> ?pv ] <applies_to_part> ?qpv .  }
Program:
function: Find
inputs: Vilnius
function: Relate
dependencies: 0
inputs: country
forward
function: QFilterDate
dependencies: 1
inputs: start time
1795-10-24
=
function: FilterConcept
dependencies: 2
inputs: sovereign state
function: QueryAttrQualifier
dependencies: 3
inputs: demonym
rusa
applies to part