Did {Doc_Holliday} {occupation} {physician} and {dentist} ?
Did Doc Holiday work as a physician and a dentist?
Was Doc Holliday a physician and dentist?
ASK WHERE { resource:Doc_Holliday property:occupation resource:physician . resource:Doc_Holliday property:occupation resource:dentist }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q44987> . ?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/Q39631>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q44987> . ?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/Q27349>. } 
ASK WHERE { wd:Q44987 wdt:P106 wd:Q39631 . wd:Q44987 wdt:P106 wd:Q27349 }