what is the {for work} for {Neil Patrick Harris} has {award received} as {Emmy Award} ?
Neil Patrick Harris received an Emmy Award for what project?
For what work did Neil Patrick Harris receive an Emmy Award?
SELECT ?h WHERE { ?c property:award_received resource:Emmy_Award . resource:Neil_Patrick_Harris property:award_received ?c . ?c property:for_work ?h }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q485310> .
?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/Q123737> .
?statement <http://www.wikidata.org/entity/P1686> ?value. 
} 

SELECT ?value WHERE { wd:Q485310 p:P166 ?s . ?s ps:P166 wd:Q123737 . ?s pq:P1686 ?value}