Question: What's the connection between Romeo and Juliet (featuring Damian Lewis as a cast member) and William Shakespeare (an influence on Ray Bradbury)?
Choices:
candidacy in election
terminus
discoverer or inventor
publisher
producer
board member
after a work by
sidekick of
appears in the form of
territory claimed by
Answer: after a work by
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Romeo and Juliet" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Damian Lewis" . ?e_2 <pred:name> "William Shakespeare" . ?e_4 <influenced_by> ?e_2 . ?e_4 <pred:name> "Ray Bradbury" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Damian Lewis
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Romeo and Juliet
function: And
dependencies: 1
2
function: Find
inputs: Ray Bradbury
function: Relate
dependencies: 4
inputs: influenced by
forward
function: Find
inputs: William Shakespeare
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7