SET statement_timeout = '300s';
DROP TABLE IF EXISTS _c04_names;
CREATE TEMP TABLE _c04_names (name text);
INSERT INTO _c04_names VALUES
('paraneoplastic cerebellar degeneration'),
('struma ovarii'),
('skin neoplasms'),
('mixed tumor, malignant'),
('thoracic neoplasms'),
('pinealoma'),
('sarcoma, alveolar soft part'),
('adenomatous polyposis coli'),
('odontogenic tumors'),
('anal gland neoplasms'),
('otorhinolaryngologic neoplasms'),
('leukemia, prolymphocytic, t-cell'),
('leukoplakia, hairy'),
('carcinoma, large cell'),
('glioblastoma'),
('pulmonary sclerosing hemangioma'),
('hutchinson''s melanotic freckle'),
('appendiceal neoplasms'),
('chondrosarcoma, mesenchymal'),
('leukemia, hairy cell'),
('lymphatic metastasis'),
('mesonephroma'),
('multiple pulmonary nodules'),
('apudoma'),
('sebaceous gland neoplasms'),
('neoplasms, complex and mixed'),
('spinal neoplasms'),
('leukemia, lymphocytic, chronic, b-cell'),
('plasmablastic lymphoma'),
('hemangiopericytoma'),
('neoplasms, plasma cell'),
('krukenberg tumor'),
('ranula'),
('optic nerve glioma'),
('pheochromocytoma'),
('odontogenic tumor, squamous'),
('vascular neoplasms'),
('muir-torre syndrome'),
('myofibromatosis'),
('nevus, intradermal'),
('neoplasms, radiation-induced'),
('leukemia'),
('neoplasms, nerve tissue'),
('papilloma'),
('myxosarcoma'),
('neurofibrosarcoma'),
('branchioma'),
('tracheal neoplasms'),
('duodenal neoplasms'),
('neoplasms by histologic type'),
('neurofibroma, plexiform'),
('lymphoma, primary cutaneous anaplastic large cell'),
('neoplasms, second primary'),
('neoplastic cells, circulating'),
('lymphoma, b-cell'),
('adenocarcinoma, mucinous'),
('carcinoma, ehrlich tumor'),
('cystadenocarcinoma, serous'),
('rhabdoid tumor'),
('hemangioendothelioma'),
('esophageal neoplasms'),
('mammary neoplasms, animal'),
('glioma, subependymal'),
('neoplasms, bone tissue'),
('vipoma'),
('angiofibroma'),
('histiocytic sarcoma'),
('intestinal neoplasms'),
('penile neoplasms'),
('waldenstrom macroglobulinemia'),
('lymphoma, large-cell, anaplastic'),
('medulloblastoma'),
('neurocytoma'),
('hydatidiform mole, invasive'),
('dendritic cell sarcoma, follicular'),
('adenoma, sweat gland'),
('prostatic neoplasms'),
('tonsillar neoplasms'),
('carcinoma, papillary'),
('myxoma'),
('lambert-eaton myasthenic syndrome'),
('cerebellar neoplasms'),
('pancreatic pseudocyst'),
('nevus, spindle cell'),
('lymphocele'),
('mediastinal cyst'),
('fibroma, ossifying'),
('intraocular lymphoma'),
('bone neoplasms'),
('lymphomatoid papulosis'),
('osteoma'),
('hemangioblastoma'),
('adrenal rest tumor'),
('spinal cord neoplasms'),
('meigs syndrome'),
('maxillary neoplasms'),
('adenomyoma'),
('parathyroid neoplasms'),
('leydig cell tumor'),
('gingival neoplasms'),
('mediastinal neoplasms'),
('myoma'),
('adenocarcinoma, sebaceous'),
('lymphangioma, cystic'),
('neurothekeoma'),
('nevus, halo'),
('luteoma'),
('cerebral ventricle neoplasms'),
('carcinoma, basosquamous'),
('central nervous system cysts'),
('conjunctival neoplasms'),
('tubular sweat gland adenomas'),
('sarcoma, myeloid'),
('cell transformation, neoplastic'),
('myelolipoma'),
('abdominal neoplasms'),
('paraneoplastic syndromes'),
('stomach neoplasms'),
('gallbladder neoplasms'),
('leukemia, basophilic, acute'),
('paraganglioma, extra-adrenal'),
('mastocytoma, skin'),
('neoplasms, germ cell and embryonal'),
('leukemia, myeloid, accelerated phase'),
('polycythemia vera'),
('gonadoblastoma'),
('nevus, blue'),
('mandibular neoplasms'),
('leukemia, myelomonocytic, juvenile'),
('nephroma, mesoblastic'),
('granulosa cell tumor'),
('uterine cervical neoplasms'),
('pulmonary adenomatosis, ovine'),
('eyelid neoplasms'),
('neoplasm micrometastasis'),
('lymphomatoid granulomatosis'),
('lymphangiosarcoma'),
('adrenal cortex neoplasms'),
('leukemia, erythroblastic, acute'),
('mucocele'),
('carcinoma 256, walker'),
('myoepithelioma'),
('brain stem neoplasms'),
('sarcoma, avian'),
('neoplasms by site'),
('carcinoma, ductal'),
('pituitary neoplasms'),
('brenner tumor'),
('melanoma'),
('langerhans cell sarcoma'),
('teratocarcinoma'),
('blast crisis'),
('leukemia, myeloid'),
('mesothelioma'),
('bone marrow neoplasms'),
('fibroma, desmoplastic'),
('ganglioneuroma'),
('ureteral neoplasms'),
('keratosis, actinic'),
('eye neoplasms'),
('ependymoma'),
('colonic neoplasms'),
('urethral neoplasms'),
('nonodontogenic cysts'),
('neoplasms, connective tissue'),
('sarcoma 180'),
('precursor cell lymphoblastic leukemia-lymphoma'),
('gardner syndrome'),
('adrenal gland neoplasms'),
('osteochondroma'),
('digestive system neoplasms'),
('infratentorial neoplasms'),
('glomus tumor'),
('chalazion'),
('bowen''s disease'),
('carcinoma, ovarian epithelial'),
('lipoma'),
('pulmonary blastoma'),
('neoplasms, mesothelial'),
('germinoma'),
('angiokeratoma'),
('hypopharyngeal neoplasms'),
('vulvar neoplasms'),
('squamous intraepithelial lesions of the cervix'),
('lymphoma, primary effusion'),
('head and neck neoplasms'),
('zollinger-ellison syndrome'),
('carcinoma, signet ring cell'),
('lymphoma, t-cell, peripheral'),
('leukemia, myelomonocytic, chronic'),
('sigmoid neoplasms'),
('neoplasms, fibrous tissue'),
('xeroderma pigmentosum'),
('carcinoma, verrucous'),
('blastic plasmacytoid dendritic cell neoplasm'),
('venereal tumors, veterinary'),
('aberrant crypt foci'),
('leukemia, mast-cell'),
('bile duct neoplasms'),
('bone cysts, aneurysmal'),
('leukemia, radiation-induced'),
('neoplasms, fibroepithelial'),
('neoplasm, lymphatic tissue'),
('retroperitoneal neoplasms'),
('oncogene addiction'),
('adenoma, villous'),
('extranodal extension'),
('neoplasms, unknown primary'),
('adenoma, islet cell'),
('tongue neoplasms'),
('paget disease, extramammary'),
('periodontal cyst'),
('ovarian neoplasms'),
('carcinoma, merkel cell'),
('craniopharyngioma'),
('carcinoid heart disease'),
('carcinoma, pancreatic ductal'),
('leukemia, plasma cell'),
('paraneoplastic polyneuropathy'),
('neoplasm, residual'),
('leukemia, eosinophilic, acute'),
('adenoma, pleomorphic'),
('sertoli-leydig cell tumor'),
('carcinoma, krebs 2'),
('nevi and melanomas'),
('jejunal neoplasms'),
('neoplasm invasiveness'),
('carcinoma, embryonal'),
('multiple endocrine neoplasia type 1'),
('desmoid tumors'),
('breast neoplasms, male'),
('follicular cyst'),
('leukemia, prolymphocytic, b-cell'),
('ganglioglioma'),
('ear neoplasms'),
('synovial cyst'),
('sex cord-gonadal stromal tumors'),
('oropharyngeal neoplasms'),
('rhabdomyosarcoma'),
('barrett esophagus'),
('astrocytoma'),
('nevus, sebaceous of jadassohn'),
('uveal neoplasms'),
('uveal melanoma'),
('carcinoma, squamous cell'),
('atypical squamous cells of the cervix'),
('thyroid nodule'),
('enteropathy-associated t-cell lymphoma'),
('neoplasms, connective and soft tissue'),
('cystadenocarcinoma, mucinous'),
('giant cell tumor of bone'),
('uterine cervical dysplasia'),
('papilloma, intraductal'),
('diffuse intrinsic pontine glioma'),
('sarcoma'),
('femoral neoplasms'),
('lymphoma, t-cell, cutaneous'),
('jaw cysts'),
('facial neoplasms'),
('multiple myeloma'),
('peritoneal neoplasms'),
('adenoma, acidophil'),
('ganglion cysts'),
('carcinogenesis'),
('histiocytic disorders, malignant'),
('leukemia, prolymphocytic'),
('neoplasm recurrence, local'),
('angiomyolipoma'),
('prostatic neoplasms, castration-resistant'),
('adenocarcinoma, follicular'),
('carcinoma, endometrioid'),
('acanthoma'),
('chordoma'),
('neoplasms, experimental'),
('fibromatosis, plantar'),
('sweat gland neoplasms'),
('synovitis, pigmented villonodular'),
('neuroma, acoustic'),
('mesenteric cyst'),
('glomus tympanicum tumor'),
('hydatidiform mole'),
('poroma'),
('warburg effect, oncologic'),
('nevus'),
('basal cell nevus syndrome'),
('maxillary sinus neoplasms'),
('lip neoplasms'),
('paraneoplastic endocrine syndromes'),
('giant cell tumors'),
('myelitis, transverse'),
('neoplasm seeding'),
('cocarcinogenesis'),
('eccrine porocarcinoma'),
('peutz-jeghers syndrome'),
('sarcoma, yoshida'),
('cecal neoplasms'),
('erythroplasia'),
('liver neoplasms, experimental'),
('cementoma'),
('klatskin tumor'),
('leukemia, megakaryoblastic, acute'),
('paraneoplastic syndromes, nervous system'),
('sarcoma, kaposi'),
('lymphoma'),
('adenoma, liver cell'),
('carcinoma, lewis lung'),
('odontogenic cysts'),
('lymphoma, extranodal nk-t-cell'),
('laryngeal neoplasms'),
('neoplasms'),
('submandibular gland neoplasms'),
('leukemia, myelogenous, chronic, bcr-abl positive'),
('neuroendocrine tumors'),
('leukemia, lymphoid'),
('vaginal neoplasms'),
('colorectal neoplasms, hereditary nonpolyposis'),
('neoplasms, basal cell'),
('epidural neoplasms'),
('nasopharyngeal neoplasms'),
('cystadenoma, serous'),
('tuberous sclerosis'),
('nervous system neoplasms'),
('carcinoma, non-small-cell lung'),
('carcinoma, papillary, follicular'),
('lymphoma, b-cell, marginal zone'),
('central nervous system venous angioma'),
('muscle neoplasms'),
('solitary fibrous tumors'),
('adenomatous polyps'),
('neurofibromatosis 2'),
('thecoma'),
('rhabdomyosarcoma, embryonal'),
('birt-hogg-dube syndrome'),
('leukemia, myelomonocytic, acute'),
('pseudomyxoma peritonei'),
('growth hormone-secreting pituitary adenoma'),
('gestational trophoblastic disease'),
('adenomyoepithelioma'),
('odontogenic cyst, calcifying'),
('leukemia, t-cell'),
('glucagonoma'),
('pilomatrixoma'),
('mycosis fungoides'),
('dendritic cell sarcoma, interdigitating'),
('carcinoid tumor'),
('esthesioneuroblastoma, olfactory'),
('limbic encephalitis'),
('mouth neoplasms'),
('leukemic infiltration'),
('mixed tumor, mullerian'),
('opsoclonus-myoclonus syndrome'),
('neoplasm metastasis'),
('cell transformation, viral'),
('adrenocortical carcinoma'),
('liposarcoma'),
('neurofibromatoses'),
('myasthenia gravis'),
('lymphoma, aids-related'),
('sublingual gland neoplasms'),
('dermatofibrosarcoma'),
('adenocarcinoma of lung'),
('nerve sheath neoplasms'),
('dermoid cyst'),
('urologic neoplasms'),
('pleural effusion, malignant'),
('endodermal sinus tumor'),
('exostoses, multiple hereditary'),
('common bile duct neoplasms'),
('thymoma'),
('wilms tumor'),
('thyroid carcinoma, anaplastic'),
('anti-n-methyl-d-aspartate receptor encephalitis'),
('leukemia, myeloid, chronic-phase'),
('neoplasms, post-traumatic'),
('thymus neoplasms'),
('histiocytoma, malignant fibrous'),
('leiomyomatosis'),
('bronchogenic cyst'),
('meningeal carcinomatosis'),
('leukemia, large granular lymphocytic'),
('hemangioma'),
('chondrosarcoma'),
('prostatic intraepithelial neoplasia'),
('immunoglobulin light-chain amyloidosis'),
('neuroectodermal tumors, primitive, peripheral'),
('neuroblastoma'),
('urticaria pigmentosa'),
('endometrial neoplasms'),
('sarcoma, ewing'),
('ileal neoplasms'),
('melanoma, cutaneous malignant'),
('acth syndrome, ectopic'),
('cystadenofibroma'),
('papilloma, choroid plexus'),
('angiolipoma'),
('phyllodes tumor'),
('neoplasms, ductal, lobular, and medullary'),
('colorectal neoplasms'),
('dupuytren contracture'),
('trophoblastic tumor, placental site'),
('anaplasia'),
('hidrocystoma'),
('mast-cell sarcoma'),
('papilloma, inverted'),
('brain neoplasms'),
('enzootic bovine leukosis'),
('leukemia, biphenotypic, acute'),
('carcinosarcoma'),
('skull base neoplasms'),
('pregnancy complications, neoplastic'),
('seminoma'),
('squamous cell carcinoma of head and neck'),
('sarcoma, synovial'),
('somatostatinoma'),
('leukemia, promyelocytic, acute'),
('dentigerous cyst'),
('meningeal neoplasms'),
('adenosarcoma'),
('paranasal sinus neoplasms'),
('lymphoma, large b-cell, diffuse'),
('mastocytosis'),
('lymphangiomyoma'),
('breast carcinoma in situ'),
('carcinoma, acinar cell'),
('thyroid neoplasms'),
('hemangiosarcoma'),
('solitary fibrous tumor, pleural'),
('carcinoma, ductal, breast'),
('pelvic neoplasms'),
('syringoma'),
('mucoepidermoid tumor'),
('anus neoplasms'),
('nose neoplasms'),
('epidermal cyst'),
('paraneoplastic syndromes, ocular'),
('pancreatic cyst'),
('cystadenoma'),
('leiomyosarcoma'),
('adamantinoma'),
('cranial nerve neoplasms'),
('lymphoma, t-cell'),
('hamartoma'),
('neuroectodermal tumor, melanotic'),
('gastrointestinal stromal tumors'),
('hodgkin disease'),
('li-fraumeni syndrome'),
('cystadenoma, papillary'),
('nasopharyngeal carcinoma'),
('choriocarcinoma, non-gestational'),
('urinary bladder neoplasms'),
('genital neoplasms, male'),
('desmoplastic small round cell tumor'),
('osteochondromatosis'),
('wagr syndrome'),
('breast cyst'),
('meningioma'),
('neoplastic processes'),
('osteoma, osteoid'),
('adenocarcinoma, papillary'),
('retinal neoplasms'),
('adenomatosis, pulmonary'),
('salivary gland neoplasms'),
('retinoblastoma'),
('adenofibroma'),
('pagetoid reticulosis'),
('hematologic neoplasms'),
('lymphoma, large-cell, immunoblastic'),
('neurofibroma'),
('sertoli cell tumor'),
('smoldering multiple myeloma'),
('choriocarcinoma'),
('histiocytoma'),
('neurilemmoma'),
('mammary neoplasms, experimental'),
('testicular neoplasms'),
('neoplasms, adnexal and skin appendage'),
('leukoplakia, oral'),
('triple negative breast neoplasms'),
('adenocarcinoma, clear cell'),
('insulinoma'),
('heart neoplasms'),
('parotid neoplasms'),
('carcinoma, bronchogenic'),
('denys-drash syndrome'),
('colitis-associated neoplasms'),
('precancerous conditions'),
('lung neoplasms'),
('melanoma, experimental'),
('iris neoplasms'),
('smooth muscle tumor'),
('neoplasms, glandular and epithelial'),
('trophoblastic neoplasms'),
('skull neoplasms'),
('supratentorial neoplasms'),
('mastocytoma'),
('leukemia, b-cell'),
('carcinoma'),
('neoplasms, muscle tissue'),
('nevus, pigmented'),
('mongolian spot'),
('choledochal cyst'),
('liver neoplasms'),
('sarcoma, clear cell'),
('proteus syndrome'),
('carcinoma, medullary'),
('lymphoma, follicular'),
('adenocarcinoma in situ'),
('gastrointestinal neoplasms'),
('soft tissue neoplasms'),
('nelson syndrome'),
('sarcoma, endometrial stromal'),
('central nervous system neoplasms'),
('uterine neoplasms'),
('neoplasms, multiple primary'),
('adenoma, basophil'),
('small cell lung carcinoma'),
('bronchial neoplasms'),
('hemangioma, cavernous, central nervous system'),
('adenomatoid tumor'),
('leukemia, monocytic, acute'),
('neoplasms, hormone-dependent'),
('carcinoma, transitional cell'),
('biliary tract neoplasms'),
('pallister-hall syndrome'),
('leiomyoma'),
('prolactinoma'),
('neoplasms, squamous cell'),
('cholangiocarcinoma'),
('carcinoma, intraductal, noninfiltrating'),
('immunoproliferative small intestinal disease'),
('pancreatic neoplasms'),
('fallopian tube neoplasms'),
('breast neoplasms'),
('pharyngeal neoplasms'),
('leukemia, experimental'),
('carcinoma, adenoid cystic'),
('splenic neoplasms'),
('rhabdomyosarcoma, alveolar'),
('nevus of ota'),
('leukemia-lymphoma, adult t-cell'),
('polycystic ovary syndrome'),
('osteosarcoma, juxtacortical'),
('tarlov cysts'),
('neoplasm regression, spontaneous'),
('teratoma'),
('fibroadenoma'),
('lipoblastoma'),
('adenoma, oxyphilic'),
('nevus, epithelioid and spindle cell'),
('cysts'),
('genital neoplasms, female'),
('carcinoma, basal cell'),
('cystadenocarcinoma'),
('paget''s disease, mammary'),
('giant cell tumor of tendon sheath'),
('multiple endocrine neoplasia type 2a'),
('bone cysts'),
('precursor t-cell lymphoblastic leukemia-lymphoma'),
('carcinoma, adenosquamous'),
('esophageal cyst'),
('hamartoma syndrome, multiple'),
('rhabdomyoma'),
('hemangioma, capillary'),
('choroid plexus neoplasms'),
('hemangioma, cavernous'),
('mesenchymoma'),
('orbital neoplasms'),
('carcinoma, neuroendocrine'),
('pancreatic intraductal neoplasms'),
('kidney neoplasms'),
('carcinoma, hepatocellular'),
('urachal cyst'),
('chondrosarcoma, clear cell'),
('fibrosarcoma'),
('oligodendroglioma'),
('glomus jugulare tumor'),
('carcinoma, giant cell'),
('kasabach-merritt syndrome'),
('dysplastic nevus syndrome'),
('unilateral breast neoplasms'),
('neoplastic syndromes, hereditary'),
('carcinoma in situ'),
('endometrial stromal tumors'),
('myopericytoma'),
('hemangioendothelioma, epithelioid'),
('pilonidal sinus'),
('carcinoma, lobular'),
('adenoma, bile duct'),
('palatal neoplasms'),
('histiocytoma, benign fibrous'),
('myofibroma'),
('osteosarcoma'),
('thyroid cancer, papillary'),
('neuroectodermal tumors'),
('carcinoma, brown-pearce'),
('mesothelioma, malignant'),
('linitis plastica'),
('endocrine gland neoplasms'),
('leukoplakia'),
('radicular cyst'),
('neoplasms, cystic, mucinous, and serous'),
('fibroma'),
('melanoma, amelanotic'),
('leukemia l1210'),
('adenoma'),
('carcinoma, mucoepidermoid'),
('carney complex'),
('mammary analogue secretory carcinoma'),
('lymphangioleiomyomatosis'),
('neurofibromatosis 1'),
('glioma'),
('mastocytosis, systemic'),
('thyroglossal cyst'),
('jaw neoplasms'),
('paraganglioma'),
('preleukemia'),
('avian leukosis'),
('sarcoma, experimental'),
('acth-secreting pituitary adenoma'),
('angiomyoma'),
('buschke-lowenstein tumor'),
('fibromatosis, abdominal'),
('adenocarcinoma, scirrhous'),
('adenolymphoma'),
('carcinoma, islet cell'),
('colloid cysts'),
('pancoast syndrome'),
('neoplasms, vascular tissue'),
('multiple endocrine neoplasia'),
('inflammatory breast neoplasms'),
('osteoblastoma'),
('cardiac papillary fibroelastoma'),
('chondromatosis'),
('carcinoma, renal cell'),
('urogenital neoplasms'),
('dysgerminoma'),
('carcinoma, skin appendage'),
('non-muscle invasive bladder neoplasms'),
('sarcoma, small cell'),
('mastocytosis, cutaneous'),
('sister mary joseph''s nodule'),
('adenocarcinoma'),
('acrospiroma'),
('myosarcoma'),
('hepatoblastoma'),
('sturge-weber syndrome'),
('mesothelioma, cystic'),
('leukemia l5178'),
('leukemia, myeloid, chronic, atypical, bcr-abl negative'),
('esophageal squamous cell carcinoma'),
('lymphoma, non-hodgkin'),
('rectal neoplasms'),
('mixed tumor, mesodermal'),
('ameloblastoma'),
('multiple endocrine neoplasia type 2b'),
('precursor b-cell lymphoblastic leukemia-lymphoma'),
('hypothalamic neoplasms'),
('popliteal cyst'),
('parovarian cyst'),
('adrenocortical adenoma'),
('leukemia, feline'),
('gastrinoma'),
('perivascular epithelioid cell neoplasms'),
('hereditary breast and ovarian cancer syndrome'),
('odontoma'),
('burkitt lymphoma'),
('carcinoma, small cell'),
('granular cell tumor'),
('plasmacytoma'),
('neoplasms, adipose tissue'),
('leukemia p388'),
('lymphangioma'),
('chondroblastoma'),
('malignant carcinoid syndrome'),
('adenocarcinoma, bronchiolo-alveolar'),
('adenoma, chromophobe'),
('ovarian cysts'),
('sezary syndrome'),
('optic nerve neoplasms'),
('sarcoma 37'),
('chondroma'),
('leukemia, myeloid, acute'),
('neoplasms, neuroepithelial'),
('respiratory tract neoplasms'),
('cystadenocarcinoma, papillary'),
('liposarcoma, myxoid'),
('lynch syndrome ii'),
('neuroectodermal tumors, primitive'),
('cystadenoma, mucinous'),
('peripheral nervous system neoplasms'),
('leiomyoma, epithelioid'),
('composite lymphoma'),
('carotid body tumor'),
('choroid neoplasms'),
('neoplasms, gonadal tissue'),
('neuroma'),
('pleural neoplasms'),
('lymphoma, mantle-cell'),
('ganglioneuroblastoma'),
('arachnoid cysts'),
('gliosarcoma');

SELECT COUNT(*) AS total,
SUM(CASE WHEN LOWER(gl.title) LIKE '%cancer%' OR LOWER(gl.abstract) LIKE '%cancer%' THEN 1 ELSE 0 END) AS cancer, SUM(CASE WHEN LOWER(gl.title) LIKE '%carcinoma%' OR LOWER(gl.abstract) LIKE '%carcinoma%' THEN 1 ELSE 0 END) AS carcinoma, SUM(CASE WHEN LOWER(gl.title) LIKE '%tumor%' OR LOWER(gl.abstract) LIKE '%tumor%' THEN 1 ELSE 0 END) AS tumor, SUM(CASE WHEN LOWER(gl.title) LIKE '%tumour%' OR LOWER(gl.abstract) LIKE '%tumour%' THEN 1 ELSE 0 END) AS tumour, SUM(CASE WHEN LOWER(gl.title) LIKE '%neoplasm%' OR LOWER(gl.abstract) LIKE '%neoplasm%' THEN 1 ELSE 0 END) AS neoplasm, SUM(CASE WHEN LOWER(gl.title) LIKE '%malignancy%' OR LOWER(gl.abstract) LIKE '%malignancy%' THEN 1 ELSE 0 END) AS malignancy, SUM(CASE WHEN LOWER(gl.title) LIKE '%leukemia%' OR LOWER(gl.abstract) LIKE '%leukemia%' THEN 1 ELSE 0 END) AS leukemia, SUM(CASE WHEN LOWER(gl.title) LIKE '%leukaemia%' OR LOWER(gl.abstract) LIKE '%leukaemia%' THEN 1 ELSE 0 END) AS leukaemia, SUM(CASE WHEN LOWER(gl.title) LIKE '%lymphoma%' OR LOWER(gl.abstract) LIKE '%lymphoma%' THEN 1 ELSE 0 END) AS lymphoma, SUM(CASE WHEN LOWER(gl.title) LIKE '%sarcoma%' OR LOWER(gl.abstract) LIKE '%sarcoma%' THEN 1 ELSE 0 END) AS sarcoma, SUM(CASE WHEN LOWER(gl.title) LIKE '%melanoma%' OR LOWER(gl.abstract) LIKE '%melanoma%' THEN 1 ELSE 0 END) AS melanoma, SUM(CASE WHEN LOWER(gl.title) LIKE '%glioma%' OR LOWER(gl.abstract) LIKE '%glioma%' THEN 1 ELSE 0 END) AS glioma, SUM(CASE WHEN LOWER(gl.title) LIKE '%glioblastoma%' OR LOWER(gl.abstract) LIKE '%glioblastoma%' THEN 1 ELSE 0 END) AS glioblastoma, SUM(CASE WHEN LOWER(gl.title) LIKE '%myeloma%' OR LOWER(gl.abstract) LIKE '%myeloma%' THEN 1 ELSE 0 END) AS myeloma, SUM(CASE WHEN LOWER(gl.title) LIKE '%neuroblastoma%' OR LOWER(gl.abstract) LIKE '%neuroblastoma%' THEN 1 ELSE 0 END) AS neuroblastoma, SUM(CASE WHEN LOWER(gl.title) LIKE '%chemotherapy%' OR LOWER(gl.abstract) LIKE '%chemotherapy%' THEN 1 ELSE 0 END) AS chemotherapy, SUM(CASE WHEN LOWER(gl.title) LIKE '%radiotherapy%' OR LOWER(gl.abstract) LIKE '%radiotherapy%' THEN 1 ELSE 0 END) AS radiotherapy, SUM(CASE WHEN LOWER(gl.title) LIKE '%immunotherapy%' OR LOWER(gl.abstract) LIKE '%immunotherapy%' THEN 1 ELSE 0 END) AS immunotherapy, SUM(CASE WHEN LOWER(gl.title) LIKE '%oncolog%' OR LOWER(gl.abstract) LIKE '%oncolog%' THEN 1 ELSE 0 END) AS oncolog, SUM(CASE WHEN LOWER(gl.title) LIKE '%metasta%' OR LOWER(gl.abstract) LIKE '%metasta%' THEN 1 ELSE 0 END) AS metasta, SUM(CASE WHEN LOWER(gl.title) LIKE '%antineoplastic%' OR LOWER(gl.abstract) LIKE '%antineoplastic%' THEN 1 ELSE 0 END) AS antineoplastic
FROM global_literature gl
WHERE gl.mesh_headings IS NOT NULL
  AND json_array_length(gl.mesh_headings) > 0
  AND NOT EXISTS (
    SELECT 1
    FROM jsonb_array_elements(gl.mesh_headings::jsonb) AS mh
    JOIN _c04_names cn ON LOWER(mh->>'descriptor') = cn.name
  );
