Question: What is the connection between David Kaye (the one that is a cast member of Happy Gilmore) to Peterborough (the one whose country is Canada)?
Choices: head of state
place of birth
season starts
quotes work
sibling
replaced by
member of sports team
place of publication
significant event
significant person
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "David Kaye" . ?e_3 <cast_member> ?e_1 . ?e_3 <pred:name> "Happy Gilmore" . ?e_2 <pred:name> "Peterborough" . ?e_2 <country> ?e_4 . ?e_4 <pred:name> "Canada" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Happy Gilmore
function: Relate
dependencies: 0
inputs: cast member
forward
function: Find
inputs: David Kaye
function: And
dependencies: 1
2
function: Find
inputs: Canada
function: Relate
dependencies: 4
inputs: country
backward
function: Find
inputs: Peterborough
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
Answer: place of birth