Question: Who is the partner of the composer of Casino Royale (the one that has Orson Welles as a cast member) (the subject of this statement is Bacharach and David)?
Choices: William Henry Harrison
Sylvester Stallone
Hal David
Richard Gere
James E. Reilly
Paul Simon
Burt Bacharach
David Byrne
Rahul Dev Burman
Max Fleischer
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <professional_or_sports_partner> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_2 <composer> ?e_1 . ?e_2 <pred:name> "Casino Royale" . ?e_2 <cast_member> ?e_3 . ?e_3 <pred:name> "Orson Welles" .  [ <pred:fact_h> ?e ; <pred:fact_r> <professional_or_sports_partner> ; <pred:fact_t> ?e_1 ] <statement_is_subject_of> ?qpv . ?qpv <pred:value> "Bacharach and David" .  }
Program:
function: Find
inputs: Orson Welles
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Casino Royale
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: composer
forward
function: FilterConcept
dependencies: 4
inputs: human
function: Relate
dependencies: 5
inputs: professional or sports partner
backward
function: QFilterStr
dependencies: 6
inputs: statement is subject of
Bacharach and David
function: FilterConcept
dependencies: 7
inputs: human
function: What
dependencies: 8
Answer: Hal David