What is the {title of Mary} for {patron saint} of {Spanish Empire}
Who had the title of Mary within the Spanish Empire?
Who had the title of Mary in the Spanish Empire?
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:title_of_Virgin_Mary . resource:Spanish_Empire property:patron_saint ?o }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q80702> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P417> . ?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/Q1509831> } 
 select distinct ?obj where { wd:Q80702 wdt:P417 ?obj . ?obj wdt:P31 wd:Q1509831 } 
Immaculate Conception of Mary