Did {Colonel_Sanders} {occupation} {cook} and {restaurateur} ?
Was colonel sanders a cook in a restaurant?
Was colonel_sanders is doing occupation as cook in restaurateur?
ASK WHERE { resource:Colonel_Sanders property:occupation resource:cook . resource:Colonel_Sanders property:occupation resource:restaurateur }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q120450> . ?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/Q156839>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q120450> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P106> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q3427922>. } 
ASK WHERE { wd:Q120450 wdt:P106 wd:Q156839 . wd:Q120450 wdt:P106 wd:Q3427922 }