what is the {for work} for {Octavia Spencer} has {nominated for} as {Academy Award for Best Supporting Actress} ?
Which role earned Octavia Spencer a nomination for the Academy Award for Best Supporting Actress?
For what role was Octavia Spencer nominated for an Academy Award for Best Supporting Actress?
SELECT ?h WHERE { ?a property:nominated_for resource:Academy_Award_for_Best_Supporting_Actress . resource:Octavia_Spencer property:nominated_for ?a . ?a 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/Q229254> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1411> .
?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:Q229254 p:P1411 ?s . ?s ps:P1411 wd:Q106301 . ?s pq:P1686 ?value}