What is {point in time} and {winner} of {{Dan Aykroyd} has {award received} as {Primetime Emmy Award for Outstanding Writing for a Variety, Music or Comedy Program}}
At whitch year Dan Aykroyd win an Emmy
When did Dan Aykroyd win an Emmy?
SELECT ?r ?u WHERE { resource:Dan_Aykroyd property:award_received ?g . ?g property:point_in_time ?r . ?g property:winner ?u . ?g property:award_received resource:Primetime_Emmy_Award_for_Outstanding_Writing_for_a_Variety,_Music_or_Comedy_Program }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q105221> . ?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/Q1265782>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q105221 p:P166 ?s . ?s ps:P166 wd:Q1265782 . ?s pq:P585 ?value1 . ?s pq:P1346 ?value2 }