What is {profession} of {Amartya Sen}, that has {patron saint} is {Santo Tomás de Aquinas} ?
What is the profession of Amartya Sen, whose consumer saint is Santo Tomás de Aquinas?
What is the profession of Amartya Sen, whose patron saint is Santo Tomás de Aquinas?
SELECT ?s WHERE { ?s property:patron_saint resource:Thomas_Aquinas . resource:Amartya_Sen property:occupation ?s }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q132489> . ?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> ?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/P417> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q9438> . }
SELECT ?answer WHERE { wd:Q132489 wdt:P106 ?answer . ?answer wdt:P417 wd:Q9438}
philosopher