Question: What is the connection between Harry Potter and the Order of the Phoenix (the one that has Ralph Fiennes as a cast member) to Daniel Radcliffe?
Choices:
parent organization
official residence
architectural style
allegiance
part of the series
currency
enclave within
depicted by
cast member
taxon rank
Program:
function: Find
inputs: Ralph Fiennes
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Harry Potter and the Order of the Phoenix
function: And
dependencies: 1
2
function: Find
inputs: Daniel Radcliffe
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Harry Potter and the Order of the Phoenix" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Ralph Fiennes" . ?e_2 <pred:name> "Daniel Radcliffe" . ?e_1 ?p ?e_2 .  }
Answer: cast member