query-95fd94a697090b294659081dc714b52c

rq turtle/ttl

Plays that Were Performed 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 ?play ?playLabel ?author ?premiere ?venueLabel

WHERE {
  ?play wdt:P31/wdt:P279* wd:Q25379 ; 
        wdt:P50 ?author .
  ?production wdt:P31/wdt:P279* wd:Q43099500 ;
              wdt:P144 ?play ;
              wdt:P276 ?venue .
  ?venue wdt:P361*/wdt:P131/wdt:P17 wd:Q39 .

  OPTIONAL { ?production wdt:P1191 ?premiere . }

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],de". }

}

ORDER BY ?premiere

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?author"):::projected v2("?play"):::projected v1("?premiere"):::projected v4("?production") v5("?venue") a1((" ")) a2((" ")) a3((" ")) a4((" ")) c3(["wd:Q25379"]):::iri c16(["#91;AUTO_LANGUAGE#93;,de"]):::literal c5(["wd:Q43099500"]):::iri c11(["wd:Q39"]):::iri c14(["bd:serviceParam"]):::iri v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v2 --"wdt:P50"--> v3 v4 --"wdt:P31"--> a2 a2 --"wdt:P279"--> c5 v4 --"wdt:P144"--> v2 v4 --"wdt:P276"--> v5 v5 --"wdt:P361"--> a3 a3 --"wdt:P131"--> a4 a4 --"wdt:P17"--> c11 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."wdt:P1191".-> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c14 --"wikibase:language"--> c16 end