Question: What is the connection between Beauty and the Beast (the one that has Ewan McGregor as a cast member) to Emma Thompson?
Choices:
cast member
participant
participant of
patron saint
record label
approved by
art director
replaces
opposite of
language used
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Beauty and the Beast" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Ewan McGregor" . ?e_2 <pred:name> "Emma Thompson" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Ewan McGregor
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Beauty and the Beast
function: And
dependencies: 1
2
function: Find
inputs: Emma Thompson
function: QueryRelation
dependencies: 3
4