What is {award received} of {David Letterman} that is {point in time} is {2007-0-0} ?
In 2007, which award did David Letterman win?
What award did David Letterman receive in 2007?
SELECT ?p WHERE { resource:David_Letterman property:award_received ?o . FILTER ( CONTAINS ( YEAR ( ?u ) , '2007' ) ) . ?o property:point_in_time ?u . ?o property:award_received ?p }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q217298> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P585> <2007-0-0>
} 

SELECT ?obj WHERE { wd:Q217298 p:P166 ?s . ?s ps:P166 ?obj . ?s pq:P585 ?x filter(contains(YEAR(?x),'2007')) }