Question: How is The Godfather with Diane Keaton as a cast member related to The Godfather that is the basis for The Godfather Part II?
Choices: takes place in fictional universe
worshipped by
mouth of the watercourse
set in period
original film format
based on
office held by head of government
penalty
partially contains
significant person
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Godfather" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Diane Keaton" . ?e_2 <pred:name> "The Godfather" . ?e_4 <based_on> ?e_2 . ?e_4 <pred:name> "The Godfather Part II" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Diane Keaton
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Godfather
function: And
dependencies: 1
2
function: Find
inputs: The Godfather Part II
function: Relate
dependencies: 4
inputs: based on
forward
function: Find
inputs: The Godfather
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: based on