Question: What is the connection between Victoria (the one that origins from Sweden) to Sweden?
Choices:
does not have part
publisher
doctoral student
derivative work
home world
Wikidata property
occupation
participant of
country of origin
costume designer
Program:
function: Find
inputs: Sweden
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Victoria
function: And
dependencies: 1
2
function: Find
inputs: Sweden
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Victoria" . ?e_1 <country_of_origin> ?e_3 . ?e_3 <pred:name> "Sweden" . ?e_2 <pred:name> "Sweden" . ?e_1 ?p ?e_2 .  }
Answer: country of origin