Question: Florence, twinned administrative body of Kyoto, was the capital of which sovereign state until 1871?
Choices:
Benin
Kingdom of Italy
Weimar Republic
Socialist Federal Republic of Yugoslavia
Kiribati
Switzerland
Russian Soviet Federative Socialist Republic
People's Republic of China
Samoa
South Sudan
Program:
function: Find
inputs: Kyoto
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Florence
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: capital of
forward
function: QFilterYear
dependencies: 4
inputs: end time
1871
=
function: FilterConcept
dependencies: 5
inputs: sovereign state
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e_1 <capital_of> ?e . ?e_1 <pred:name> "Florence" . ?e_2 <twinned_administrative_body> ?e_1 . ?e_2 <pred:name> "Kyoto" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <capital_of> ; <pred:fact_t> ?e ] <end_time> ?qpv . ?qpv <pred:year> 1871 .  }
Answer: Kingdom of Italy