query-93c5372ad192789bd81c904b8d46e7c2
Prix de l'Institut d'histoire de l'Amérique française
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 schema: <http://schema.org/>
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#>
SELECT ?item ?itemLabel ?genderLabel ?itemDescription ?awardLabel (YEAR(?date) AS ?year) (GROUP_CONCAT(DISTINCT ?language; separator=", ") AS ?languages) {
VALUES ?award { wd:Q43890563 } . #award: prix de l'Institut d'histoire de l'Amérique française
?item wdt:P31 wd:Q5;
wdt:P21 ?gender;
p:P166 ?awardStatement.
?awardStatement ps:P166 ?award.
OPTIONAL { ?awardStatement pq:P585 ?date. }
OPTIONAL {
?article a schema:Article;
schema:about ?item;
schema:inLanguage ?language.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr". }
}
GROUP BY ?item ?itemLabel ?genderLabel ?itemDescription ?award ?awardLabel ?date
ORDER BY ?genderLabel ?awardLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v8("?article")
v3("?award")
v2("?awardLabel"):::projected
v6("?awardStatement")
v7("?date"):::projected
v5("?gender")
v1("?genderLabel"):::projected
v4("?item"):::projected
v9("?language"):::projected
v11("?languages")
v10("?year")
c8(["schema:Article"]):::iri
c14(["fr"]):::literal
c12(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
bind0[/VALUES ?award/]
bind0-->v3
bind00(["wd:Q43890563"])
bind00 --> bind0
v4 --"p:direct/P31"--> c2
v4 --"p:direct/P21"--> v5
v4 --"p:P166"--> v6
v6 --"p:statement/P166"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v6 -."p:qualifier/P585".-> v7
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v8 -."a".-> c8
v8 --"schema:about"--> v4
v8 --"schema:inLanguage"--> v9
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end
bind2[/"year-from-dateTime(?date)"/]
v7 --o bind2
bind2 --as--o v10
bind3[/"?language"/]
v9 --o bind3
bind3 --as--o v11