Question: What film has Keith Richards (whose genre is rhythm and blues) as a cast member and Hillary Clinton as a cast member?
Choices:
Training Day
Curse of the Golden Flower
W.
The Fifth Element
The Towering Inferno
Talk to Her
Rebecca
A Prairie Home Companion
Shine a Light
The Dictator
Answer: Shine a Light
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Keith Richards" . ?e_1 <genre> ?e_2 . ?e_2 <pred:name> "rhythm and blues" .  ?e <cast_member> ?e_3 . ?e_3 <pred:name> "Hillary Clinton" .  }
Program:
function: Find
inputs: rhythm and blues
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Keith Richards
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
backward
function: FilterConcept
dependencies: 4
inputs: film
function: Find
inputs: Hillary Clinton
function: Relate
dependencies: 6
inputs: cast member
backward
function: FilterConcept
dependencies: 7
inputs: film
function: And
dependencies: 5
8
function: What
dependencies: 9