Question: For which work did John Mahoney (born Charles Jonathan Mahoney) win Screen Actors Guild Award for Outstanding Performance by an Ensemble in a Comedy Series?
Choices: Addams Family Values
Desperate Housewives
Minority Report
Frasier
55 Days at Peking
Who's Afraid of Virginia Woolf?
The Departed
Poetic Justice
Good Scouts
Down in the Bottomlands
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Screen Actors Guild Award for Outstanding Performance by an Ensemble in a Comedy Series" . ?e_2 <pred:name> "John Mahoney" . ?e_2 <birth_name> ?pv . ?pv <pred:value> "Charles Jonathan Mahoney" . ?e_1 <winner> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <winner> ; <pred:fact_t> ?e_2 ] <for_work> ?qpv .  }
Program:
function: Find
inputs: Screen Actors Guild Award for Outstanding Performance by an Ensemble in a Comedy Series
function: Find
inputs: John Mahoney
function: FilterStr
dependencies: 1
inputs: birth name
Charles Jonathan Mahoney
function: QueryRelationQualifier
dependencies: 0
2
inputs: winner
for work
Answer: Frasier