Question: What is the relationship between The Doors (the one that has Kathleen Quinlan as a cast member) to musical film?
Choices: official color
legal form
genre
cast member
sponsor
programming language
affiliation
has part
director/manager
shares border with
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Doors" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Kathleen Quinlan" . ?e_2 <pred:name> "musical film" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Kathleen Quinlan
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Doors
function: And
dependencies: 1
2
function: Find
inputs: musical film
function: QueryRelation
dependencies: 3
4
Answer: genre