Question: Who is the cast member of Gulliver's Travels (the one whose producer is Jack Black) and that is also a cast member of Monte Carlo (the one that has Selena Gomez as a cast member)?
Choices:
Jason Segel
Emily Blunt
Cory Monteith
Catherine Tate
Selena Gomez
Sylvester Stallone
Richard Gere
Jack Black
Billy Connolly
William Henry Harrison
Program:
function: Find
inputs: Jack Black
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Gulliver's Travels
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
forward
function: FilterConcept
dependencies: 4
inputs: human
function: Find
inputs: Selena Gomez
function: Relate
dependencies: 6
inputs: cast member
backward
function: Find
inputs: Monte Carlo
function: And
dependencies: 7
8
function: Relate
dependencies: 9
inputs: cast member
forward
function: FilterConcept
dependencies: 10
inputs: human
function: And
dependencies: 5
11
function: What
dependencies: 12
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Gulliver's Travels" . ?e_1 <producer> ?e_2 . ?e_2 <pred:name> "Jack Black" .  ?e_3 <cast_member> ?e . ?e_3 <pred:name> "Monte Carlo" . ?e_3 <cast_member> ?e_4 . ?e_4 <pred:name> "Selena Gomez" .  }
Answer: Catherine Tate