what is the {award received} for {Michael Phelps} has {participant of} as {2012 Summer Olympics} ?
What medals did Michael Phelps win in the 2012 Summer Olympics?
SELECT ?value WHERE { wd:Q39562 p:P1344 ?s . ?s ps:P1344 wd:Q8577 . ?s pq:P166 ?value}
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q39562> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1344> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q8577> .
?statement <http://www.wikidata.org/entity/P166> ?value. 
} 

During 2012 Summer Olympics, what medals did Michael Phelps received?.