Did {Alec_Baldwin} {student of} {Wray Carlton}?
Did Wray Carlton have as a student Alec Baldwin?
Was Alec Baldwin a student of Wray Carlton?
ASK WHERE { resource:Alec_Baldwin property:student_of resource:Wray_Carlton }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q170572> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1066> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q8037644>. } 
ASK WHERE { wd:Q170572 wdt:P1066 wd:Q8037644 }