Question: How is Ukraine related to Brazil which has a diplomatic relation with Sweden?
Choices: member of
afflicts
fabrication method
diplomatic relation
fictional universe described in
record label
academic degree
has effect
seed team
item operated
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Ukraine" . ?e_2 <pred:name> "Brazil" . ?e_3 <diplomatic_relation> ?e_2 . ?e_3 <pred:name> "Sweden" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Ukraine
function: Find
inputs: Sweden
function: Relate
dependencies: 1
inputs: diplomatic relation
forward
function: Find
inputs: Brazil
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: diplomatic relation