Question: What is the connection between The Last Emperor (the one that origins from United Kingdom) to Joan Chen?
Choices:
dialect of
cast member
manufacturer
is a list of
permanent resident of
registered with
copyright representative
depicts
composer
source of material
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Last Emperor" . ?e_1 <country_of_origin> ?e_3 . ?e_3 <pred:name> "United Kingdom" . ?e_2 <pred:name> "Joan Chen" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: The Last Emperor
function: And
dependencies: 1
2
function: Find
inputs: Joan Chen
function: QueryRelation
dependencies: 3
4