query: #defaultView:Graph
  SELECT ?itemLabel ?item ?y ?count ?rgb ?familyLabel ?family ?size WHERE {
  {SELECT ?item ?y ?count ?family (SUM(?item) AS ?size) WHERE {
  {SELECT ?item ?count WHERE {
    ?item wdt:P424 ?lang_code  
          BIND(
  IF(?lang_code = "en",36571835,
  IF(?lang_code = "nl",14649678,
  IF(?lang_code = "fr",	9900193,
  IF(?lang_code = "de",	8571445,
  IF(?lang_code = "es",	6838525,
  IF(?lang_code = "it",	6520937,
  IF(?lang_code = "sv",	6277938,
  IF(?lang_code = "ru",	5591872,
  IF(?lang_code = "ceb",	5168966,
  IF(?lang_code = "uk",	3493651,
  IF(?lang_code = "bg",	3053507,
  IF(?lang_code = "pt",	2928408,
  IF(?lang_code = "la",	2902391,
  IF(?lang_code = "sl",	2892736,
  IF(?lang_code = "pl",	2736275,
  IF(?lang_code = "nb",	2438739,
  IF(?lang_code = "vi",	2287536,
  IF(?lang_code = "da",	2236720,
  IF(?lang_code = "fi",	2111444,
  IF(?lang_code = "nn",	2045411,
  IF(?lang_code = "ca",	1997181,
  IF(?lang_code = "cs",	1928834,
  IF(?lang_code = "ja",	1810113,
  IF(?lang_code = "zh",	1765526,
  IF(?lang_code = "ro",	1721257,
  IF(?lang_code = "war",	1717937,
  IF(?lang_code = "id",	1710639,
  IF(?lang_code = "ar",	1580705,
  IF(?lang_code = "eu",	1479403,
  IF(?lang_code = "hu",	1454497,
  IF(?lang_code = "sk",	1422228,
  IF(?lang_code = "eo",	1366439,
  IF(?lang_code = "gl",	1285448,
  IF(?lang_code = "ms",	1281867,
  IF(?lang_code = "cy",	1263432,
  IF(?lang_code = "fa",	1244454,
  IF(?lang_code = "et",	1241323,
  IF(?lang_code = "hr",	1213482,
  IF(?lang_code = "oc",	1175131,
  IF(?lang_code = "sco",	1134653,
  IF(?lang_code = "lb",	1128512,
  IF(?lang_code = "nds",	1126036,
  IF(?lang_code = "af",	1105297,
  IF(?lang_code = "br",	1098870,
  IF(?lang_code = "an",	1082041,
  IF(?lang_code = "ast",	1068102,
  IF(?lang_code = "bar",	1067602,
  IF(?lang_code = "ia",	1067596,
  IF(?lang_code = "gsw",	1060423,
  IF(?lang_code = "ga",	1049118,
  IF(?lang_code = "is",	1047164,
  IF(?lang_code = "min",	1042330,
  IF(?lang_code = "tr",	1023070,
  IF(?lang_code = "rm",	1021124,
  IF(?lang_code = "vo",	1012233,
  IF(?lang_code = "mg",	1005845,
  IF(?lang_code = "co",	1002628,
  IF(?lang_code = "scn",	1002569,
  IF(?lang_code = "pms",	999118,
  IF(?lang_code = "gd",	996828,
  IF(?lang_code = "sw",	995649,
  IF(?lang_code = "wa",	994812,
  IF(?lang_code = "li",	993474,
  IF(?lang_code = "sc",	991189,
  IF(?lang_code = "vls",	981409,
  IF(?lang_code = "vec",	977241,
  IF(?lang_code = "fur",	964912,
  IF(?lang_code = "pcd",	964217,
  IF(?lang_code = "nap",	963268,
  IF(?lang_code = "lij",	962487,
  IF(?lang_code = "io",	953181,
  IF(?lang_code = "ie",	946173,
  IF(?lang_code = "kg",	941009,
  IF(?lang_code = "frp",	935414,
  IF(?lang_code = "nrm",	935319,
  IF(?lang_code = "zu",	931567,
  IF(?lang_code = "wo",	931196,
  IF(?lang_code = "sr",	747337,
  IF(?lang_code = "ko",	721670,
  IF(?lang_code = "bn",	665506,
  IF(?lang_code = "lt",	638045,
  IF(?lang_code = "sh",	545756,
  IF(?lang_code = "lv",	477025,
  IF(?lang_code = "he",	471410,
  IF(?lang_code = "ur",	453505,
  IF(?lang_code = "bs",	428911,
  IF(?lang_code = "srn",	409405,
  IF(?lang_code = "hy",	380167,
  IF(?lang_code = "sq",	355833,
  IF(?lang_code = "jv",	327959,
  IF(?lang_code = "jam",	327718, 
  IF(?lang_code = "fy",	324338,
  IF(?lang_code = "fo",	314258,
  IF(?lang_code = "frc",	313428,
  IF(?lang_code = "ace",	305059,
  IF(?lang_code = "el",	299393,
  IF(?lang_code = "su",	295207,
  IF(?lang_code = "kab",	294362,
  IF(?lang_code = "vmf",	291302,
  IF(?lang_code = "bm",	290886,
  IF(?lang_code = "pap",	289774,
  IF(?lang_code = "lmo",	286657,
  IF(?lang_code = "prg",	284494,
  IF(?lang_code = "rgn",	284401,
  IF(?lang_code = "hsb",	269792,
  IF(?lang_code = "ht",	266225,
  IF(?lang_code = "be",	265711,
  IF(?lang_code = "frr",	265060,
  IF(?lang_code = "kk",	259131,
  IF(?lang_code = "kl",	255819,
  IF(?lang_code = "nan",	255058,
  IF(?lang_code = "dsb",	247926,
  IF(?lang_code = "az",	246237,
  IF(?lang_code = "mt",	243707,
  IF(?lang_code = "yo",	235482,
  IF(?lang_code = "se",	233169,
  IF(?lang_code = "ilo",	230040,
  IF(?lang_code = "pfl",	227295,
  IF(?lang_code = "qu",	226464,
  IF(?lang_code = "eml",	220442,
  IF(?lang_code = "th",	219765,
  IF(?lang_code = "ty",	219227,
  IF(?lang_code = "hif",	216274,
  IF(?lang_code = "gor",	212519,
  IF(?lang_code = "gv",	211896,
  IF(?lang_code = "ay",	211694,
  IF(?lang_code = "ang",	211628,
  IF(?lang_code = "sgs",	210812,
  IF(?lang_code = "nah",	210119,
  IF(?lang_code = "sma",	209933,
  IF(?lang_code = "ext",	208529,
  IF(?lang_code = "szl",	208437,
  IF(?lang_code = "tet",	207865,
  IF(?lang_code = "smj",	207812,
  IF(?lang_code = "sje",	207650,
  IF(?lang_code = "pam",	206640,
  IF(?lang_code = "jbo",	206455,
  IF(?lang_code = "bcl",	205914,
  IF(?lang_code = "zea",	205384,
  IF(?lang_code = "mwl",	204896,
  IF(?lang_code = "rup",	204577,
  IF(?lang_code = "ksh",	204489,
  IF(?lang_code = "lad",	204379,
  IF(?lang_code = "lfn",	204126,
  IF(?lang_code = "csb",	203833,
  IF(?lang_code = "stq",	203742,
  IF(?lang_code = "nso",	203209,
  IF(?lang_code = "so",	203161,
  IF(?lang_code = "ha",	202790,
  IF(?lang_code = "mi",	202331,
  IF(?lang_code = "pdc",	202197,
  IF(?lang_code = "tl",	201619,
  IF(?lang_code = "gn",	201442,
  IF(?lang_code = "nv",	201378,
  IF(?lang_code = "fit",	200748,
  IF(?lang_code = "sn",	200524,
  IF(?lang_code = "pag",	200437,
  IF(?lang_code = "kaa",	200086,
  IF(?lang_code = "ki",	200055,
  IF(?lang_code = "haw",	200043,
  IF(?lang_code = "ln",	199463,
  IF(?lang_code = "ig",	199329,
  IF(?lang_code = "gag",	199287,
  IF(?lang_code = "tpi",	199221,
  IF(?lang_code = "nov",	199218,
  IF(?lang_code = "rw",	199176,
  IF(?lang_code = "kw",	198923,
  IF(?lang_code = "bi",	198571,
  IF(?lang_code = "vro",	198360,
  IF(?lang_code = "chy",	198076,
  IF(?lang_code = "ik",	198026,
  IF(?lang_code = "fj",	197833,
  IF(?lang_code = "ch",	197741,
  IF(?lang_code = "ff",	197616,
  IF(?lang_code = "na",	197451,
  IF(?lang_code = "sm",	197306,
  IF(?lang_code = "aa",	197273,
  IF(?lang_code = "lg",	197138,
  IF(?lang_code = "cho",	196980,
  IF(?lang_code = "hz",	196962,
  IF(?lang_code = "ho",	196957,
  IF(?lang_code = "to",	196906,
  IF(?lang_code = "ak",	196504,
  IF(?lang_code = "xh",	196375,
  IF(?lang_code = "pih",	196343,
  IF(?lang_code = "tn",	195885,
  IF(?lang_code = "ts",	195797,
  IF(?lang_code = "ee",	195761,
  IF(?lang_code = "tum",	195751,
  IF(?lang_code = "rn",	195669,
  IF(?lang_code = "st",	195606,
  IF(?lang_code = "ve",	195419,
  IF(?lang_code = "sg",	195371,
  IF(?lang_code = "ny",	195015,
  IF(?lang_code = "egl",	194907,
  IF(?lang_code = "kr",	194873,
  IF(?lang_code = "mus",	194852,
  IF(?lang_code = "kj",	194762,
  IF(?lang_code = "dtp",	194660,
  IF(?lang_code = "tw",	194237,
  IF(?lang_code = "olo",	194176,
  IF(?lang_code = "sdc",	194141,
  IF(?lang_code = "ss",	194135,
  IF(?lang_code = "ltg",	193474,
  IF(?lang_code = "pdt",	193398,
  IF(?lang_code = "mh",	193371,
  IF(?lang_code = "hil",	193278,
  IF(?lang_code = "arn",	192836,
  IF(?lang_code = "nys",	192799,
  IF(?lang_code = "ng",	192787,
  IF(?lang_code = "aln",	192688,
  IF(?lang_code = "krj",	192636,
  IF(?lang_code = "sli",	192583,
  IF(?lang_code = "qug",	192565,
  IF(?lang_code = "rif",	192550,
  IF(?lang_code = "mk",	192296,
  IF(?lang_code = "kbp",	192273,
  IF(?lang_code = "ban",	191549,
  IF(?lang_code = "atj",	191311,
  IF(?lang_code = "jut",	191201,
  IF(?lang_code = "kri",	191129,
  IF(?lang_code = "din",	191119,
  IF(?lang_code = "cps",	191064,
  IF(?lang_code = "avk",	191053,
  IF(?lang_code = "niu",	191038,
  IF(?lang_code = "hrx",	190997,
  IF(?lang_code = "kea",	190832,
  IF(?lang_code = "bbc",	190811,
  IF(?lang_code = "krl",	190810,
  IF(?lang_code = "srq",	190810,
  IF(?lang_code = "bto",	190809,
  IF(?lang_code = "sei",	189452,
  IF(?lang_code = "loz",	189401,
  IF(?lang_code = "lus",	189400,
  IF(?lang_code = "ka",	188224,
  IF(?lang_code = "liv",	188222,
  IF(?lang_code = "hi",	183239,
  IF(?lang_code = "ce",	182220,
  IF(?lang_code = "ta",	173634,
  IF(?lang_code = "uz",	164026,
  IF(?lang_code = "tg",	133693,
  IF(?lang_code = "tt",	121716,
  IF(?lang_code = "new",	117493,
  IF(?lang_code = "te",	109011,
  IF(?lang_code = "ml",	105501,
  IF(?lang_code = "yue",	99399,
  IF(?lang_code = "ba",	89493,
  IF(?lang_code = "mr",	85712,
  IF(?lang_code = "kn",	76213,
  IF(?lang_code = "ky",	70839,
  IF(?lang_code = "bug",	68750,
  IF(?lang_code = "azb",	68622,
  IF(?lang_code = "my",	64717,
  IF(?lang_code = "bjn",	61074,
  IF(?lang_code = "gu",	59798,
  IF(?lang_code = "ckb",	58059,
  IF(?lang_code = "ne",	56526,
  IF(?lang_code = "cv",	54293,
  IF(?lang_code = "pnb",	51874,
  IF(?lang_code = "pa",	49198,
  IF(?lang_code = "bpy",	42817,
  IF(?lang_code = "mn",	41655,
  IF(?lang_code = "si",	38515,
  IF(?lang_code = "ku",	36451,
  IF(?lang_code = "or",	34768,
  IF(?lang_code = "sa",	34127,
  IF(?lang_code = "arz",	33574,
  IF(?lang_code = "diq",	30176,
  IF(?lang_code = "bho",	28115,
  IF(?lang_code = "cdo",	25961,
  IF(?lang_code = "mai",	25289,
  IF(?lang_code = "hak",	22691,
  IF(?lang_code = "as",	22185,
  IF(?lang_code = "bo",	22063,
  IF(?lang_code = "os",	21722,
  IF(?lang_code = "sah",	21340,
  IF(?lang_code = "yi",	21205,
  IF(?lang_code = "km",	19918,
  IF(?lang_code = "mzn",	19808,
  IF(?lang_code = "xmf",	19064,
  IF(?lang_code = "vep",	18660,
  IF(?lang_code = "lo",	17342,
  IF(?lang_code = "gan",	17131,
  IF(?lang_code = "pi",	16693,
  IF(?lang_code = "am",	16593,
  IF(?lang_code = "mhr",	15504,
  IF(?lang_code = "tk",	14974,
  IF(?lang_code = "lzh",	14359,
  IF(?lang_code = "wuu",	14190,
  IF(?lang_code = "mrj",	13265,
  IF(?lang_code = "sd",	13212,
  IF(?lang_code = "dty",	13188,
  IF(?lang_code = "ps",	12397,
  IF(?lang_code = "tcy",	11772,
  IF(?lang_code = "kv",	10940,
  IF(?lang_code = "dz",	10803,
  IF(?lang_code = "anp",	10278,
  IF(?lang_code = "awa",	10128,
  IF(?lang_code = "rwr",	10125,
  IF(?lang_code = "shn",	10125,
  IF(?lang_code = "myv",	9879,
  IF(?lang_code = "rue",	9333,
  IF(?lang_code = "udm",	7663,
  IF(?lang_code = "ug",	7457,
  IF(?lang_code = "cr",	7329,
  IF(?lang_code = "lez",	7303,
  IF(?lang_code = "koi",	7278,
  IF(?lang_code = "cu",	6008,
  IF(?lang_code = "za",	5770,
  IF(?lang_code = "av",	5701,
  IF(?lang_code = "glk",	5463,
  IF(?lang_code = "om",	5421,
  IF(?lang_code = "ab",	5420,
  IF(?lang_code = "rmy",	5301,
  IF(?lang_code = "krc",	5165,
  IF(?lang_code = "dv",	5140,
  IF(?lang_code = "bxr",	4976,
  IF(?lang_code = "got",	4966,
  IF(?lang_code = "mo",	4958,
  IF(?lang_code = "xal",	4844,
  IF(?lang_code = "arc",	4662,
  IF(?lang_code = "kbd",	4456,
  IF(?lang_code = "lrc",	4305,
  IF(?lang_code = "gom",	4301,
  IF(?lang_code = "crh",	4206,
  IF(?lang_code = "mdf",	3494,
  IF(?lang_code = "chr",	3337,
  IF(?lang_code = "tyv",	3002,
  IF(?lang_code = "iu",	2716,
  IF(?lang_code = "lbe",	2635,
  IF(?lang_code = "grc",	2317,
  IF(?lang_code = "vot",	2042,
  IF(?lang_code = "brh",	1947,
  IF(?lang_code = "sat",	1882,
  IF(?lang_code = "inh",	1829,
  IF(?lang_code = "lzz",	1803,
  IF(?lang_code = "tru",	1773,
  IF(?lang_code = "ady",	1415,
  IF(?lang_code = "pnt",	1163,
  IF(?lang_code = "ruq",	1046,
  IF(?lang_code = "ks",	926,
  IF(?lang_code = "shi",	900,
  IF(?lang_code = "ti",	816,
  IF(?lang_code = "ary",	465,
  IF(?lang_code = "ii",	302,   
  IF(?lang_code = "bqi",	273,
  IF(?lang_code = "tly",	272,
  IF(?lang_code = "bcc",	268,
  IF(?lang_code = "kiu",	266,
  IF(?lang_code = "khw",	264,
  IF(?lang_code = "arq",	249,
  IF(?lang_code = "bgn",	236,
  IF(?lang_code = "ota",	182,
  IF(?lang_code = "lki",	176,
  IF(?lang_code = "aeb",	155,
  IF(?lang_code = "nod",	128,
  IF(?lang_code = "luz",	123,
  IF(?lang_code = "sdh",	123,
  IF(?lang_code = "ses",	123,
  IF(?lang_code = "en-gb",	1341010,
  IF(?lang_code = "en-ca",	1302445,
  IF(?lang_code = "pt-br",	1105869,
  IF(?lang_code = "de-ch",	1040912,
  IF(?lang_code = "nds-nl",	1008497,
  IF(?lang_code = "sr-el",	984209,
  IF(?lang_code = "de-at",	969065,
  IF(?lang_code = "zh-cn",	944452,
  IF(?lang_code = "zh-hant",	738329,
  IF(?lang_code = "zh-hans",	274825,
  IF(?lang_code = "kk-latn",	262892,
  IF(?lang_code = "map-bms",	252019,
  IF(?lang_code = "zh-hk",	237406,
  IF(?lang_code = "ku-latn",	224408,
  IF(?lang_code = "hif-latn",	219892,
  IF(?lang_code = "roa-tara",	204250,
  IF(?lang_code = "crh-latn",	203319,
  IF(?lang_code = "kk-tr",	202108,
  IF(?lang_code = "cbk-zam",	199370,
  IF(?lang_code = "tg-latn",	194958,
  IF(?lang_code = "ike-latn",	193840,
  IF(?lang_code = "tt-latn",	192249,
  IF(?lang_code = "ug-latn",	191632,
  IF(?lang_code = "shi-latn",	191581,
  IF(?lang_code = "ruq-latn",	191576,
  IF(?lang_code = "gom-latn",	188477,
  IF(?lang_code = "aeb-latn",	188026,
  IF(?lang_code = "bbc-latn",	187970,
  IF(?lang_code = "be-tarask",	127381,
  IF(?lang_code = "zh-tw",	123071,
  IF(?lang_code = "sr-ec",	99394,
  IF(?lang_code = "zh-sg",	73282,
  IF(?lang_code = "kk-cyrl",	68416,
  IF(?lang_code = "kk-arab",	66757,
  IF(?lang_code = "zh-mo",	17202,
  IF(?lang_code = "zh-my",	16288,
  IF(?lang_code = "kk-kz",	13006,
  IF(?lang_code = "kk-cn",	11506,
  IF(?lang_code = "gom-deva",	10878,
  IF(?lang_code = "ks-deva",	10481,
  IF(?lang_code = "ku-arab",	6265,
  IF(?lang_code = "tt-cyrl",	5366,
  IF(?lang_code = "aeb-arab",	3716,
  IF(?lang_code = "gan-hans",	2038,
  IF(?lang_code = "tg-cyrl",	2001,
  IF(?lang_code = "gan-hant",	1991,
  IF(?lang_code = "tokipona",	1238,
  IF(?lang_code = "ike-cans",	960,
  IF(?lang_code = "crh-cyrl",	930,
  IF(?lang_code = "kbd-cyrl",	929,
  IF(?lang_code = "ruq-cyrl",	928,
  IF(?lang_code = "ady-cyrl",	789,
  IF(?lang_code = "ko-kp",	755,
  IF(?lang_code = "simple",	507,
  IF(?lang_code = "ug-arab",	320,
  IF(?lang_code = "ks-arab",	264,
  IF(?lang_code = "shi-tfng",	263,   
         ""))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
          ))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
     ))))))))))))))))
     AS ?count) . 
    FILTER (?count > 1)
    }}
    ?item wdt:P31/wdt:P279* wd:Q34770 ;
          wdt:P279* ?family .
    ?family wdt:P31/wdt:P279* wd:Q25295 .
    FILTER (?item != ?family) .
    BIND(
      IF(?count < 1000,"1",
        IF(?count < 10000,"2",
         IF(?count < 100000,"3",
            IF(?count < 1000000,"4", 
               IF(?count < 10000000,"5", 
                  IF(?count < 100000000,"6",
         "")))))) AS ?y) .
  }
  GROUP BY ?item ?y ?count ?family
  }
     BIND(
      IF(?count < 1000,"000000",
        IF(?count < 10000,"ff4d4d",
         IF(?count < 100000,"4d4dff",
            IF(?count < 1000000,"ffff00", 
               IF(?count < 10000000,"009900", 
                  IF(?count < 100000000,"00ff00",
         "ff0000")))))) AS ?rgb) .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  }
  Limit 5000
  
  
  