Question: What is the connection between Red Dwarf to science fiction (the one that is the genre of Stargate Atlantis)?
Choices: family
doctoral advisor
sidekick of
genre
designed by
used by
candidate
educated at
residence
different from
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Red Dwarf" . ?e_2 <pred:name> "science fiction" . ?e_3 <genre> ?e_2 . ?e_3 <pred:name> "Stargate Atlantis" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Red Dwarf
function: Find
inputs: Stargate Atlantis
function: Relate
dependencies: 1
inputs: genre
forward
function: Find
inputs: science fiction
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: genre