Question: What is the connection between Beauty and the Beast (the one that has Dan Stevens as a cast member) to Ian McKellen?
Choices: language of work or name
doctoral advisor
cast member
country of origin
killed by
taxon rank
culture
platform
league
professorship
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Beauty and the Beast" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Dan Stevens" . ?e_2 <pred:name> "Ian McKellen" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Dan Stevens
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Beauty and the Beast
function: And
dependencies: 1
2
function: Find
inputs: Ian McKellen
function: QueryRelation
dependencies: 3
4
Answer: cast member