What is {patron saint} of {philosopher}, that has {career} is {professor} ?
What is the profession of purchaser Saint, is he philosopher or professor?
What is the career of patron Saint, is he philosopher or professor?
SELECT ?u WHERE { resource:philosopher property:patron_saint ?u . ?u property:occupation resource:professor }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q4964182> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P417>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?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/Q121594> . }
SELECT ?answer WHERE { wd:Q4964182 wdt:P417 ?answer . ?answer wdt:P106 wd:Q121594}
Thomas Aquinas Albertus Magnus