what is the {for work} for {Peter Carey} has {award received} as {Miles Franklin Literary Award} ?
Give the name of the award received by Peter Carey for work in the Miles Franklin Litererary Award.
What was the award received by Peter Carey for work in the Miles Franklin Litererary Award?
SELECT ?f WHERE { resource:Peter_Carey property:award_received ?w . ?w property:award_received resource:Miles_Franklin_Literary_Award . ?w property:for_work ?f }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q313254> .
?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/Q996> .
?statement <http://www.wikidata.org/entity/P1686> ?value. 
} 

SELECT ?value WHERE { wd:Q313254 p:P166 ?s . ?s ps:P166 wd:Q996 . ?s pq:P1686 ?value}