query-bef834350dd62f9978684aea88bc1ba5

rq turtle/ttl

ألوان المركبات الكيميائية Colors of chemical compounds Colors of chemical compounds Barvy chemických sloučenin Colors of chemical compounds Colors of chemical compounds Colors of chemical compounds Colors of chemical compounds Colors of chemical compounds Colors of chemical compounds Colors of chemical compounds Couleurs des éléments chimiques Colors of chemical compounds Colors of chemical compounds Colors of chemical compounds Colori dei composti chimici Colors of chemical compounds Colors of chemical compounds Faarwe vu cheemesche Verbindungen Colors of chemical compounds Colors of chemical compounds Kleuren van chemische verbindingen Kolory związków chemicznych Colors of chemical compounds Colors of chemical compounds Цвета химических соединений Colors of chemical compounds Kemiska föreningars färger Colors of chemical compounds Colors of chemical compounds Кольори хімічних сполук Colors of chemical compounds 化合物的颜色

Use at

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#>
#defaultView:BubbleChart
SELECT ?rgb ?colorLabel (COUNT(?compound) AS ?count)
WHERE
{
  ?compound wdt:P31 wd:Q11173;
            wdt:P462 ?color.
  OPTIONAL { ?color wdt:P465 ?rgb. }
  BIND(IF(BOUND(?rgb),?rgb,"CCCCCC") AS ?rgb).
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
GROUP BY ?rgb ?colorLabel

Query found at