What is {award received} of {John Wayne} that is {point in time} is {2007-1-1} ?
Give me the name of the award given to John Wayne in 2007.
What award did John Wayne receive in 2007?
SELECT ?i WHERE { ?t property:point_in_time ?k . ?t property:award_received ?i . FILTER ( CONTAINS ( YEAR ( ?k ) , '2007' ) ) . resource:John_Wayne property:award_received ?t }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q40531> .
?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-1-1>
} 

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