query-0e948410c3c9ec8f4cdd1b61cf84e55e

rq turtle/ttl

title:Instances of organizations (and subclasses) that are also instances of event venue or performing arts building SELECT ?itemLabel ?item where { { SELECT DISTINCT ?item where { ?item wdt:P31/wdt:P279* wd:Q43229 . {{?item wdt:P31 wd:Q18674739. } UNION {?item wdt:P31 wd:Q57660343.}} } } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title:Instances of organizations (and subclasses) that are also instances of event venue or performing arts building
SELECT ?itemLabel ?item 
where
{
    {
     SELECT DISTINCT ?item
     where
      {
      ?item wdt:P31/wdt:P279* wd:Q43229 .
      {{?item wdt:P31 wd:Q18674739. } UNION {?item wdt:P31 wd:Q57660343.}}
      }
    }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected a1((" ")) c7(["bd:serviceParam"]):::iri c4(["wd:Q18674739"]):::iri c5(["wd:Q57660343"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c3(["wd:Q43229"]):::iri v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c5 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c4 end union0r <== or ==> union0l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end