query-38f581991ed65879c65cff74096d2951
: I /think/ this works.Jean-Frédéric@
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
select distinct ?museum where {
{select ?museum { ?museum wdt:P131+ wd:Q42497. } }
{select ?museum { ?museum wdt:P31/wdt:P279* wd:Q33506. } }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?museum"):::projected
a1((" "))
c5(["wd:Q33506"]):::iri
c2(["wd:Q42497"]):::iri
v1 --"wdt:P131"--> c2
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c5