Did {Billy_the_Kid} {occupation} {cowboy} and {outlaw} ?
Was Billy the kid a rancher and an ban?
Was Billy the kid a cowboy and an outlaw?
ASK WHERE { resource:Billy_the_Kid property:occupation resource:cowboy . resource:Billy_the_Kid property:occupation resource:outlaw }
 ASK { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q44200> . ?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/Q178521>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q44200> . ?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/Q254508>. } 
ASK WHERE { wd:Q44200 wdt:P106 wd:Q178521 . wd:Q44200 wdt:P106 wd:Q254508 }