Question: What is the ending date for Moscow (that is the twinned administrative body of Seoul) being the capital of the Russian Soviet Federative Socialist Republic (that has a citizen named Joseph Stalin)?
Choices: 1850-12-31
1897
2010-08-31
1922-12-30
1993-01-20
2002-12-13
1949-12-07
1922-12-28
2014-05-25
2015-11-04
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Moscow" . ?e_3 <twinned_administrative_body> ?e_1 . ?e_3 <pred:name> "Seoul" . ?e_2 <pred:name> "Russian Soviet Federative Socialist Republic" . ?e_4 <country_of_citizenship> ?e_2 . ?e_4 <pred:name> "Joseph Stalin" . ?e_1 <capital_of> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <capital_of> ; <pred:fact_t> ?e_2 ] <end_time> ?qpv .  }
Program:
function: Find
inputs: Seoul
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Moscow
function: And
dependencies: 1
2
function: Find
inputs: Joseph Stalin
function: Relate
dependencies: 4
inputs: country of citizenship
forward
function: Find
inputs: Russian Soviet Federative Socialist Republic
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: capital of
end time
Answer: 1922-12-30