Question: Starsky & Hutch, set in Los Angeles, is related in what way to TV comedy?
Choices:
located in or next to body of water
patron saint
genre
legal form
office held by head of government
fabrication method
feast day
religious order
location of formation
seed team
Answer: genre
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Starsky & Hutch" . ?e_1 <narrative_location> ?e_3 . ?e_3 <pred:name> "Los Angeles" . ?e_2 <pred:name> "television comedy" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Los Angeles
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Starsky & Hutch
function: And
dependencies: 1
2
function: Find
inputs: television comedy
function: QueryRelation
dependencies: 3
4