Question: Which cast member of Friends whose character is Joey Tribbiani won a Primetime Emmy Award for Outstanding Guest Actor in a Comedy Series?
Choices: Matthew Perry
Sylvester Stallone
Elliott Gould
Lisa Kudrow
Rahul Dev Burman
William Henry Harrison
Max Fleischer
Matt LeBlanc
David Byrne
Courteney Cox
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Friends" . ?e_1 <award_received> ?e_2 . ?e_2 <pred:name> "Primetime Emmy Award for Outstanding Guest Actor in a Comedy Series" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e ] <character_role> ?qpv . ?qpv <pred:value> "Joey Tribbiani" .  }
Program:
function: Find
inputs: Primetime Emmy Award for Outstanding Guest Actor in a Comedy Series
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: Friends
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
forward
function: QFilterStr
dependencies: 4
inputs: character role
Joey Tribbiani
function: FilterConcept
dependencies: 5
inputs: human
function: What
dependencies: 6
Answer: Matt LeBlanc