Question: How is A Christmas Carol with Joel Grey as a cast member linked to Charles Dickens?
Choices:
office contested
member of sports team
main subject
dedicated to
after a work by
designed to carry
Wikidata property
product or material produced
general manager
next lower rank
Answer: after a work by
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "A Christmas Carol" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Joel Grey" . ?e_2 <pred:name> "Charles Dickens" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Joel Grey
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: A Christmas Carol
function: And
dependencies: 1
2
function: Find
inputs: Charles Dickens
function: QueryRelation
dependencies: 3
4