query-c29f4aa3aba43d8d090b58e052dcb1e5
Parité homme/femme dans Interdit d'interdire
SELECT DISTINCT (COUNT (?gender) as ?count) ?genderLabel WHERE { ?episode (wdt:P31/(wdt:P279*)) wd:Q1983062; p:P179 ?statement; wdt:P5030 ?guest. ?statement ps:P179 wd:Q56816469; pq:P1545 ?numero_episode. ?guest wdt:P21 ?gender. SERVICE wikibase:label { bd:serviceParam wikibase:language "fr,en". ?guest rdfs:label ?guestLabel. ?gender rdfs:label ?genderLabel. ?occupation rdfs:label ?occupationLabel. } } GROUP BY ?genderLabel
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Parité homme/femme dans Interdit d'interdire
SELECT DISTINCT (COUNT (?gender) as ?count) ?genderLabel
WHERE {
?episode (wdt:P31/(wdt:P279*)) wd:Q1983062;
p:P179 ?statement;
wdt:P5030 ?guest.
?statement ps:P179 wd:Q56816469;
pq:P1545 ?numero_episode.
?guest wdt:P21 ?gender.
SERVICE wikibase:label {
bd:serviceParam wikibase:language "fr,en".
?guest rdfs:label ?guestLabel.
?gender rdfs:label ?genderLabel.
?occupation rdfs:label ?occupationLabel.
}
}
GROUP BY ?genderLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v10("?count")
v1("?episode")
v5("?gender"):::projected
v7("?genderLabel"):::projected
v3("?guest")
v6("?guestLabel")
v4("?numero_episode")
v8("?occupation")
v9("?occupationLabel")
v2("?statement")
a1((" "))
c7(["wd:Q56816469"]):::iri
c3(["wd:Q1983062"]):::iri
c11(["bd:serviceParam"]):::iri
c13(["fr,en"]):::literal
v1 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
v1 --"p:P179"--> v2
v1 --"p:direct/P5030"--> v3
v2 --"p:statement/P179"--> c7
v2 --"p:qualifier/P1545"--> v4
v3 --"p:direct/P21"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
v3 --"rdfs:label"--> v6
v5 --"rdfs:label"--> v7
v8 --"rdfs:label"--> v9
end
bind1[/"count(?gender)"/]
v5 --o bind1
bind1 --as--o v10