Question: What is the connection between Shanghai (the one that has Loretta Young as a cast member) to Friedrich Hollaender?
Choices:
political ideology
tributary
composer
series spin-off
twinned administrative body
legal form
eye color
conferred by
chief executive officer
used by
Answer: composer
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> "Friedrich Hollaender" . ?e_1 ?p ?e_2 .  }
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: Friedrich Hollaender
function: QueryRelation
dependencies: 3
4