What is {nominated for} of {Mr. Smith Goes to Washington} that is {statement is subject of} is {12th Academy Awards} ?
Give me the actor name who was nominated for Mr. Smith Goes to Washington at the 12th Academy Awards?
Who was nominated for Mr. Smith Goes to Washington at the 12th Academy Awards?
SELECT ?x WHERE { ?g property:nominated_for ?x . ?g property:statement_is_subject_of resource:12th_Academy_Awards . resource:Mr._Smith_Goes_to_Washington property:nominated_for ?g }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q866120> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P805> <http://wikidata.dbpedia.org/resource/Q508513>
} 

SELECT ?obj WHERE { wd:Q866120 p:P1411 ?s . ?s ps:P1411 ?obj . ?s pq:P805 wd:Q508513 }