Question: How is The X-Files which has Danny Trejo as a cast member related to science fiction which is the genre of Red Dwarf?
Choices:
position played on team / speciality
country of origin
subject has role
geographic distribution
located on astronomical location
place of origin (Switzerland)
commissioned by
genre
location of final assembly
author
Program:
function: Find
inputs: Danny Trejo
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The X-Files
function: And
dependencies: 1
2
function: Find
inputs: Red Dwarf
function: Relate
dependencies: 4
inputs: genre
forward
function: Find
inputs: science fiction
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The X-Files" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Danny Trejo" . ?e_2 <pred:name> "science fiction" . ?e_4 <genre> ?e_2 . ?e_4 <pred:name> "Red Dwarf" . ?e_1 ?p ?e_2 .  }
Answer: genre