query-715f0cd2213786d7b2508d15b0074b57
Plays with a related performing arts production that has a premiere type (P4634) statementThe query illustrates the proposed approach for modelling world premieres and other premiere types.
Use at
- https://query.wikidata.org/sparql
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 ?production ?premiereTypeLabel
WHERE {
  ?play (wdt:P31/wdt:P279*) wd:Q25379.
  ?production wdt:P144 ?play;
              wdt:P31/wdt:P279* wd:Q43099500;
              wdt:P4634 ?premiereType.
  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("?play"):::projected 
  v3("?premiereType")
  v2("?production"):::projected 
  a1((" "))
  a2((" "))
  c5(["wd:Q43099500"]):::iri 
  c3(["wd:Q25379"]):::iri 
  c8(["bd:serviceParam"]):::iri 
  c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal 
  v1 --"wdt:P31"-->  a1
  a1 --"wdt:P279"-->  c3
  v2 --"wdt:P144"-->  v1
  v2 --"wdt:P31"-->  a2
  a2 --"wdt:P279"-->  c5
  v2 --"wdt:P4634"-->  v3
  subgraph s1["http://wikiba.se/ontology#label"]
    style s1 stroke-width:4px;
    c8 --"wikibase:language"-->  c10
  end