What is the {position} for {occupation} of {Thomas Aquinas}
WHICH POSITION THOMAS AQUINAS HOLDS RELATED TO HIS OCCUPATION
Thomas Aquinas holds which position relating to his occupation?
SELECT DISTINCT ?t WHERE { resource:Thomas_Aquinas property:occupation ?t . ?t rdf:type ontology:position }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q9438> . ?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/Q4164871> } 
 select distinct ?obj where { wd:Q9438 wdt:P106 ?obj . ?obj wdt:P31 wd:Q4164871 } 
professor writer