What is the {painting} for {inspired by} of {Catholic Church}
What are the titles of the paintings for which the Catholic Church was a source of inspiration?
Which paintings were inspired by the Catholic Church?
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:painting . ?c property:inspired_by resource:Catholic_Church }
select distinct ?subj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?subj . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P941> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q9592> . ?subj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q3305213> } 
 select distinct ?sbj where { ?sbj wdt:P941 wd:Q9592 . ?sbj wdt:P31 wd:Q3305213 } 
Bishop Saint and Saint Francis of Assisi Madonna and Christ Child with Angels and Saints Mary Magdalene, Francis, Dorothy and Anthony Abbot Madonna and Christ Child with Infant Saint John the Baptist and Three Angels