what is the {for work} for {Patty Duke} has {award received} as {Academy Award for Best Supporting Actress} ?
Patty Duke received an Academy Award for Best Supporting Actress for her work.
What work did Patty Duke receive the Academy Award for Best Supporting Actress for?
SELECT ?r WHERE { resource:Patty_Duke property:award_received ?t . ?t property:for_work ?r . ?t property:award_received resource:Academy_Award_for_Best_Supporting_Actress }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q232538> .
?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/Q106301> .
?statement <http://www.wikidata.org/entity/P1686> ?value. 
} 

SELECT ?value WHERE { wd:Q232538 p:P166 ?s . ?s ps:P166 wd:Q106301 . ?s pq:P1686 ?value}