what is the {for work} for {Zooey Deschanel} has {nominated for} as {Primetime Emmy Award for Outstanding Lead Actress in a Comedy Series} ?
In a Comedy Series, for what program was Zooey Deschanel assigned to a Primetime Emmy Award for Outstanding Lead Actress?
For what show was Zooey Deschanel nominated for a Primetime Emmy Award for Outstanding Lead Actress in a Comedy Series?
SELECT ?t WHERE { ?l property:for_work ?t . ?l property:nominated_for resource:Primetime_Emmy_Award_for_Outstanding_Lead_Actress_in_a_Comedy_Series . resource:Zooey_Deschanel property:nominated_for ?l }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q191719> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1411> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1287335> .
?statement <http://www.wikidata.org/entity/P1686> ?value. 
} 

SELECT ?value WHERE { wd:Q191719 p:P1411 ?s . ?s ps:P1411 wd:Q1287335 . ?s pq:P1686 ?value}