Question: What is the title of the TV series with actor Michael McDonald in its cast?
Choices:
Louisiana
Looney Tunes: Back in Action
Daylight
The Gay Divorcee
The Kite Runner
Atlantic City, USA
Mad TV
The Time Machine
Jewel
Star Trek: The Animated Series
Answer: Mad TV
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Michael McDonald" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "actor" .  ?e <title> ?pv .  }
Program:
function: Find
inputs: actor
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Michael McDonald
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
backward
function: FilterConcept
dependencies: 4
inputs: television series
function: QueryAttr
dependencies: 5
inputs: title