Question: What is the connection between The Smurfs (the one that has Katy Perry as a cast member) to The Smurfs (the one that has George Lopez as a voice actor)?
Choices:
religious order
cites
make-up artist
professional or sports partner
theme music
has part
permanent resident of
health specialty
item operated
work location
Program:
function: Find
inputs: Katy Perry
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Smurfs
function: And
dependencies: 1
2
function: Find
inputs: George Lopez
function: Relate
dependencies: 4
inputs: voice actor
backward
function: Find
inputs: The Smurfs
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Smurfs" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Katy Perry" . ?e_2 <pred:name> "The Smurfs" . ?e_2 <voice_actor> ?e_4 . ?e_4 <pred:name> "George Lopez" . ?e_1 ?p ?e_2 .  }
Answer: has part