query-83607ca80f4f24ab633dab829db0868f
Plays with location (P276) or cast member (P161) qualifiers on the date of first performance (P1191) statement statements should not have any qualifiers. (P1191)date of first performance of the play and provide it there. production to indicate the location of the world premiere. If further information about the world premiere is provided, create a separate item for the first (P4647)location of first performance Proposed maintenance task: Use
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 pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel
WHERE {
?item (wdt:P31/wdt:P279*) wd:Q25379;
p:P1191 [
pq:P161|pq:P276 ?value
].
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
v2("?value")
a1((" "))
a2((" "))
c3(["wd:Q25379"]):::iri
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
a2 --"p:qualifier/P276"--> v2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
a2 --"p:qualifier/P161"--> v2
end
union0r <== or ==> union0l
end
v1 --"p:P1191"--> a2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end