query-416753facd96b1110f0f6ce1f61a667a

rq turtle/ttl

Performing arts buildings without geolocation in Canada select distinct ?itemLabel ?item where {SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } ?item wdt:P31/wdt:P279 wd:Q57660343 ; (wdt:P17|wdt:P495) wd:Q16 . minus {?item wdt:P625 ?geo .} minus {?item wdt:P31 wd:Q130003 .} MINUS {?item wdt:P31/wdt:P279 wd:Q41253 . # Excluding movie theatres } } Performing arts buildings without geolocation in Canada select distinct ?itemLabel ?item where {SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } ?item wdt:P31/wdt:P279 wd:Q57660343 ; (wdt:P17|wdt:P495) wd:Q16 . minus {?item wdt:P625 ?geo .} minus {?item wdt:P31 wd:Q130003 .} MINUS {?item wdt:P31/wdt:P279 wd:Q41253 . # Excluding movie theatres } } Performing arts buildings without geolocation in Canada select distinct ?itemLabel ?item where {SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } ?item wdt:P31/wdt:P279 wd:Q57660343 ; (wdt:P17|wdt:P495) wd:Q16 . minus {?item wdt:P625 ?geo .} minus {?item wdt:P31 wd:Q130003 .} MINUS {?item wdt:P31/wdt:P279 wd:Q41253 . # Excluding movie theatres } } Performing arts buildings without geolocation in Canada select distinct ?itemLabel ?item where {SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } ?item wdt:P31/wdt:P279 wd:Q57660343 ; (wdt:P17|wdt:P495) wd:Q16 . minus {?item wdt:P625 ?geo .} minus {?item wdt:P31 wd:Q130003 .} MINUS {?item wdt:P31/wdt:P279 wd:Q41253 . # Excluding movie theatres } }

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#>
#Performing arts buildings without geolocation in Canada 
select distinct ?itemLabel ?item where {SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
                                       ?item wdt:P31/wdt:P279* wd:Q57660343 ; 
                                            (wdt:P17|wdt:P495) wd:Q16 .
                                        minus {?item wdt:P625 ?geo .}
                                        minus {?item wdt:P31 wd:Q130003 .}
                                         MINUS {?item wdt:P31/wdt:P279*   wd:Q41253 . # Excluding movie theatres
                                         }
                                         }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?geo") v1("?item"):::projected a1((" ")) a2((" ")) c12(["wd:Q130003"]):::iri c7(["wd:Q57660343"]):::iri c13(["wd:Q41253"]):::iri c9(["wd:Q16"]):::iri c2(["bd:serviceParam"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c7 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P495"--> c9 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P17"--> c9 end union0r <== or ==> union0l end subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P625"--> v2 end subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P31"--> c12 end subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v1 --"wdt:P31"--> a2 a2 --"wdt:P279"--> c13 end