Question: What is the relationship between Shanghai (the one that has Loretta Young as a cast member) and Charles Boyer (the one that died from a drug overdose)?
Choices:
located on terrain feature
coextensive with
lowest point
cast member
composer
update method
located in time zone
contributing factor of
replaced by
works in collection
Program:
function: Find
inputs: Loretta Young
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Shanghai
function: And
dependencies: 1
2
function: Find
inputs: drug overdose
function: Relate
dependencies: 4
inputs: cause of death
backward
function: Find
inputs: Charles Boyer
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Shanghai" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Loretta Young" . ?e_2 <pred:name> "Charles Boyer" . ?e_2 <cause_of_death> ?e_4 . ?e_4 <pred:name> "drug overdose" . ?e_1 ?p ?e_2 .  }
Answer: cast member