query-8ae70fa1dfdc098fa5b0fd4d73bd3109
Plays by Jean Racine Q742 by number of characters SELECT ?play (COUNT(DISTINCT ?character) AS ?nbChar) WHERE { ?play wdt:P50 wd:Q742. ?play wdt:P674 ?character. } GROUP BY ?play
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
#Plays by Jean Racine Q742 by number of characters
SELECT ?play (COUNT(DISTINCT ?character) AS ?nbChar) WHERE {
?play wdt:P50 wd:Q742.
?play wdt:P674 ?character.
}
GROUP BY ?play
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?character"):::projected
v3("?nbChar")
v1("?play"):::projected
c2(["wd:Q742"]):::iri
v1 --"wdt:P50"--> c2
v1 --"wdt:P674"--> v2
bind1[/"count(?character)"/]
v2 --o bind1
bind1 --as--o v3