Question: What person is a cast member of No Country for Old Men (that has Garret Dillahunt as a cast member) and a cast member of One Tree Hill (whose genre is soap opera)?
Choices:
Max Fleischer
Josh Brolin
Sylvester Stallone
Richard Gere
William Henry Harrison
Woody Harrelson
Barry Corbin
Rahul Dev Burman
Javier Bardem
Simon Cowell
Answer: Barry Corbin
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "No Country for Old Men" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Garret Dillahunt" .  ?e_3 <cast_member> ?e . ?e_3 <pred:name> "One Tree Hill" . ?e_3 <genre> ?e_4 . ?e_4 <pred:name> "soap opera" .  }
Program:
function: Find
inputs: Garret Dillahunt
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: No Country for Old Men
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
forward
function: FilterConcept
dependencies: 4
inputs: human
function: Find
inputs: soap opera
function: Relate
dependencies: 6
inputs: genre
backward
function: Find
inputs: One Tree Hill
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