Question: What is the relation between Michael Powell (nominated for an Academy Award for Best Writing, Original Screenplay) and Thelma Schoonmaker?
Choices:
owner of
operator
newspaper format
official residence
spouse
fabrication method
participant of
registered with
has cause
public holiday
Answer: spouse
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Michael Powell" . ?e_1 <nominated_for> ?e_3 . ?e_3 <pred:name> "Academy Award for Best Writing, Original Screenplay" . ?e_2 <pred:name> "Thelma Schoonmaker" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Academy Award for Best Writing, Original Screenplay
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Michael Powell
function: And
dependencies: 1
2
function: Find
inputs: Thelma Schoonmaker
function: QueryRelation
dependencies: 3
4