Question: For which work did John Ritter (who has the occupation of voice actor) win a Primetime Emmy Award for Outstanding Lead Actor in a Comedy Series?
Choices:
Club Paradise
Backspacer
Galápagos
Three's Company
The Ring
Devata
Walky Talky Hawky
The Apocalypse Codex
The Shooting Party
Kiss of the Spider Woman
Answer: Three's Company
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Primetime Emmy Award for Outstanding Lead Actor in a Comedy Series" . ?e_2 <pred:name> "John Ritter" . ?e_2 <occupation> ?e_3 . ?e_3 <pred:name> "voice actor" . ?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: Primetime Emmy Award for Outstanding Lead Actor in a Comedy Series
function: Find
inputs: voice actor
function: Relate
dependencies: 1
inputs: occupation
backward
function: Find
inputs: John Ritter
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: winner
for work