Did {Sylvester_Stallone} {occupation} {film producer}?
Did Sly Stallone ever produce films?
Was Sylvester Stallone a film producer?
ASK WHERE { resource:Sylvester_Stallone property:occupation resource:film_producer }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q40026> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P106> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q3282637>. } 
ASK WHERE { wd:Q40026 wdt:P106 wd:Q3282637 }