What is {female form of label} of {mayor} that is {alternate names} is {mairesse} ?
What's another name for Mairesse?
What is an alternate name for Mairesse?
SELECT ?y WHERE { resource:mayor property:female_form_of_label ?j . FILTER ( CONTAINS ( ?s , 'mairesse' ) ) . ?j property:female_form_of_label ?y . ?j property:alternate_names ?s }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q30185> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2521> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P4970> <mairesse>
} 

SELECT ?obj WHERE { wd:Q30185 p:P2521 ?s . ?s ps:P2521 ?obj . ?s pq:P4970 ?x filter(contains(?x , 'mairesse')) }