what is the {statement is subject of} for {Andy Samberg} has {award received} as {Golden Globe Award for Best Actor – Television Series Musical or Comedy} ?
Andy Samberg win the Golden Globe Award for Best Actor - Television Series Musical or Comedy for this work?
For what work did Andy Samberg win the Golden Globe Award for Best Actor - Television Series Musical or Comedy?
SELECT ?a WHERE { ?h property:award_received resource:Golden_Globe_Award_for_Best_Actor_–_Television_Series_Musical_or_Comedy . ?h property:statement_is_subject_of ?a . resource:Andy_Samberg property:award_received ?h }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q314640> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P166> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q138996> .
?statement <http://www.wikidata.org/entity/P805> ?value. 
} 

SELECT ?value WHERE { wd:Q314640 p:P166 ?s . ?s ps:P166 wd:Q138996 . ?s pq:P805 ?value}