Question: What person plays Karen Walker on Will & Grace?
Choices:
Richard Gere
Megan Mullally
Max Fleischer
Simon Cowell
William Henry Harrison
David Byrne
Rahul Dev Burman
Sylvester Stallone
Sean Hayes
Debra Messing
Program:
function: Find
inputs: Will & Grace
function: Relate
dependencies: 0
inputs: cast member
forward
function: QFilterStr
dependencies: 1
inputs: character role
Karen Walker
function: FilterConcept
dependencies: 2
inputs: human
function: What
dependencies: 3
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Will & Grace" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e ] <character_role> ?qpv . ?qpv <pred:value> "Karen Walker" .  }
Answer: Megan Mullally