Give me {door} that {commissioned by} {Frederick William II of Prussia} and which contains the word {brandenburg} in their name
Name the entryway appointed by Frederick William II of Prussia that contains the word " brandenburg" in its name
Name the door commissioned by Frederick William II of Prussia that contains the word " brandenburg" in its name
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:door . ?e property:commissioned_by resource:Frederick_William_II_of_Prussia . FILTER ( CONTAINS ( LCASE ( ?e ) , 'brandenburg' ) ) }
SELECT DISTINCT ?sbj ?sbj_label { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sbj . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P31> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q36794>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sbj . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P88> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q152229>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'brandenburg')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q36794 . ?sbj wdt:P88 wd:Q152229 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'brandenburg')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 