Question: Joseph Stalin has what connection to the Russian Soviet Federative Socialist Republic, where Leon Trotsky has citizenship?
Choices:
occupation
country of citizenship
legislative body
parent organization
cause of death
cites
from fictional universe
home port
place of origin (Switzerland)
eye color
Program:
function: Find
inputs: Joseph Stalin
function: Find
inputs: Leon Trotsky
function: Relate
dependencies: 1
inputs: country of citizenship
forward
function: Find
inputs: Russian Soviet Federative Socialist Republic
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Joseph Stalin" . ?e_2 <pred:name> "Russian Soviet Federative Socialist Republic" . ?e_3 <country_of_citizenship> ?e_2 . ?e_3 <pred:name> "Leon Trotsky" . ?e_1 ?p ?e_2 .  }
Answer: country of citizenship