what is the {for work} for {The Temptations} has {award received} as {Grammy Hall of Fame} ?
The Temptations received a Grammy Hall of Fame award for what project?
For what work did The Temptations receive an award for the Grammy Hall of Fame?
SELECT ?p WHERE { ?p property:award_received resource:Grammy_Hall_of_Fame . ?p property:for_work ?p . resource:The_Temptations property:award_received ?p }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q846373> .
?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/Q81180> .
?statement <http://www.wikidata.org/entity/P1686> ?value. 
} 

SELECT ?value WHERE { wd:Q846373 p:P166 ?s . ?s ps:P166 wd:Q81180 . ?s pq:P1686 ?value}