Question: What is the connection between Lemony Snicket's A Series of Unfortunate Events (the one whose script is wrote by Daniel Handler) to Craig Ferguson (the one that was born in Glasgow)?
Choices:
narrative location
member of political party
occupation
candidate
cast member
narrative role
creator
spouse
film editor
voice actor
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Lemony Snicket's A Series of Unfortunate Events" . ?e_1 <screenwriter> ?e_3 . ?e_3 <pred:name> "Daniel Handler" . ?e_2 <pred:name> "Craig Ferguson" . ?e_2 <place_of_birth> ?e_4 . ?e_4 <pred:name> "Glasgow" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Daniel Handler
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Lemony Snicket's A Series of Unfortunate Events
function: And
dependencies: 1
2
function: Find
inputs: Glasgow
function: Relate
dependencies: 4
inputs: place of birth
backward
function: Find
inputs: Craig Ferguson
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7