What is the {profession} for {occupation} of {William Shakespeare}
What did William Shakespeare do for his job?
What was William Shakespeare's occupation?
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:profession . resource:William_Shakespeare property:occupation ?s }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q692> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P106> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q28640> } 
 select distinct ?obj where { wd:Q692 wdt:P106 ?obj . ?obj wdt:P31 wd:Q28640 } 