Question: Diamonds are Forever, originally from Germany, has Sean Connery in the cast playing which character?
Choices:
Toby Ziegler
James Bond
Carrie Anne Mathison
Kyle Reese
Two-Face
Conan O'Brien
Brainy Smurf
Edward Malus
Red Grant
Leland Stottlemeyer
Program:
function: Find
inputs: Germany
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Diamonds Are Forever
function: And
dependencies: 1
2
function: Find
inputs: Sean Connery
function: QueryRelationQualifier
dependencies: 3
4
inputs: cast member
character role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Diamonds Are Forever" . ?e_1 <country_of_origin> ?e_3 . ?e_3 <pred:name> "Germany" . ?e_2 <pred:name> "Sean Connery" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Answer: James Bond