query-a97ae9ba32f74038d6dea5f08ec4fe6b

rq turtle/ttl

Performing Arts Productions which Have Premiered in Switzerland Performing Arts Productions which Have Premiered in Switzerland Performing Arts Productions which Have Premiered in Switzerland

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#>
SELECT DISTINCT ?item ?itemLabel ?date_of_first_performance ?native_label ?production_company ?production_companyLabel WHERE {
  ?item (wdt:P31/wdt:P279*) wd:Q43099500.   #performing arts production
  ?item wdt:P4647/(wdt:P276|wdt:P131)*/wdt:P17 wd:Q39.  #venue of first performance located in Switzerland
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de". }
  OPTIONAL { ?item wdt:P1191 ?date_of_first_performance. }
  OPTIONAL { ?item wdt:P1705 ?native_label. }
  OPTIONAL { ?item wdt:P272 ?production_company. }
  }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?date_of_first_performance"):::projected v1("?item"):::projected v3("?native_label"):::projected v4("?production_company"):::projected a1((" ")) a2((" ")) a3((" ")) c3(["wd:Q43099500"]):::iri c8(["wd:Q39"]):::iri c10(["bd:serviceParam"]):::iri c12(["#91;AUTO_LANGUAGE#93;,en,de"]):::literal v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P4647"--> a2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; a2 --"wdt:P131"--> a3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; a2 --"wdt:P276"--> a3 end union0r <== or ==> union0l end a3 --"wdt:P17"--> c8 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P1191".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P1705".-> v3 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P272".-> v4 end