what is the {point in time} for {Julius Erving} has {award received} as {All-NBA Team} ?
When was Julius Erving invited to the play for the All-NBA Team?
When was Julius Erving awarded to the All-NBA Team?
SELECT ?h WHERE { ?g property:award_received resource:All-NBA_Team . resource:Julius_Erving property:award_received ?g . ?g property:point_in_time ?h }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q209921> .
?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/Q674359> .
?statement <http://www.wikidata.org/entity/P585> ?value. 
} 

SELECT ?value WHERE { wd:Q209921 p:P166 ?s . ?s ps:P166 wd:Q674359 . ?s pq:P585 ?value}