Question: What is the connection between Constantine (the one that has Harold Perrineau as a cast member) to Alan Moore (the one that has a notable work From Hell)?
Choices:
country of origin
lyrics by
successful candidate
published in
legislative body
executive producer
this taxon is source of
after a work by
afflicts
nutrient
Answer: after a work by
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Constantine" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Harold Perrineau" . ?e_2 <pred:name> "Alan Moore" . ?e_2 <notable_work> ?e_4 . ?e_4 <pred:name> "From Hell" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Harold Perrineau
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Constantine
function: And
dependencies: 1
2
function: Find
inputs: From Hell
function: Relate
dependencies: 4
inputs: notable work
backward
function: Find
inputs: Alan Moore
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7