{"database": "zeropm-v0-0-4", "private": false, "path": "/zeropm-v0-0-4", "size": 459968512, "tables": [{"name": "api_ready_query", "columns": ["query_id", "query", "type"], "primary_keys": ["query_id"], "count": null, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "api_results", "column": "query_id", "other_column": "query_id"}, {"other_table": "inventory_summary", "column": "query_id", "other_column": "query_id"}], "outgoing": []}, "private": false}, {"name": "api_services", "columns": ["api_id", "name", "source"], "primary_keys": ["api_id"], "count": 6, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "api_results", "column": "api_id", "other_column": "api_id"}], "outgoing": []}, "private": false}, {"name": "cleanventory_chemicals", "columns": ["cleanventory_id", "inventory_id", "inchi_id"], "primary_keys": ["cleanventory_id"], "count": 483388, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": [{"other_table": "substances", "column": "inchi_id", "other_column": "inchi_id"}, {"other_table": "inventories", "column": "inventory_id", "other_column": "inventory_id"}]}, "private": false}, {"name": "component_index", "columns": ["mc_id", "component_id", "component_frequency"], "primary_keys": [], "count": 93647, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": [{"other_table": "components", "column": "component_id", "other_column": "component_id"}, {"other_table": "multi_components", "column": "mc_id", "other_column": "mc_id"}]}, "private": false}, {"name": "components", "columns": ["component_id", "inchi_id"], "primary_keys": ["component_id"], "count": 22380, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "component_index", "column": "component_id", "other_column": "component_id"}], "outgoing": [{"other_table": "substances", "column": "inchi_id", "other_column": "inchi_id"}]}, "private": false}, {"name": "consensus_index", "columns": ["inventory_id", "inchi_id", "consensus_score", "consensus_count"], "primary_keys": [], "count": null, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": [{"other_table": "substances", "column": "inchi_id", "other_column": "inchi_id"}, {"other_table": "inventories", "column": "inventory_id", "other_column": "inventory_id"}]}, "private": false}, {"name": "countries", "columns": ["country_id", "country"], "primary_keys": ["country_id"], "count": 38, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "country_sources_index", "column": "country_id", "other_column": "country_id"}, {"other_table": "region_country_index", "column": "country_id", "other_column": "country_id"}], "outgoing": []}, "private": false}, {"name": "country_sources_index", "columns": ["country_id", "source_id"], "primary_keys": [], "count": 80, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": [{"other_table": "sources", "column": "source_id", "other_column": "source_id"}, {"other_table": "countries", "column": "country_id", "other_column": "country_id"}]}, "private": false}, {"name": "global_regions", "columns": ["region_id", "region"], "primary_keys": ["region_id"], "count": 5, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "region_country_index", "column": "region_id", "other_column": "region_id"}], "outgoing": []}, "private": false}, {"name": "inventories", "columns": ["inventory_id", "identifier", "source_id"], "primary_keys": ["inventory_id"], "count": null, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "cleanventory_chemicals", "column": "inventory_id", "other_column": "inventory_id"}, {"other_table": "consensus_index", "column": "inventory_id", "other_column": "inventory_id"}, {"other_table": "inventory_summary", "column": "inventory_id", "other_column": "inventory_id"}], "outgoing": [{"other_table": "sources", "column": "source_id", "other_column": "source_id"}]}, "private": false}, {"name": "inventory_summary", "columns": ["inventory_id", "query_id"], "primary_keys": [], "count": null, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": [{"other_table": "api_ready_query", "column": "query_id", "other_column": "query_id"}, {"other_table": "inventories", "column": "inventory_id", "other_column": "inventory_id"}]}, "private": false}, {"name": "multi_components", "columns": ["mc_id", "inchi_id"], "primary_keys": ["mc_id"], "count": 38696, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "component_index", "column": "mc_id", "other_column": "mc_id"}], "outgoing": [{"other_table": "substances", "column": "inchi_id", "other_column": "inchi_id"}]}, "private": false}, {"name": "pm_probabilities", "columns": ["inchi_id", "probability_of_not_p", "probability_of_p_or_vp", "probability_of_p", "probability_of_vp", "probability_of_not_m", "probability_of_m_or_vm", "probability_of_m", "probability_of_vm", "n"], "primary_keys": [], "count": 130954, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": [{"other_table": "substances", "column": "inchi_id", "other_column": "inchi_id"}]}, "private": false}, {"name": "sources", "columns": ["source_id", "source_name", "link", "disclosure", "type", "country_scope", "comments"], "primary_keys": ["source_id"], "count": 25, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "inventories", "column": "source_id", "other_column": "source_id"}, {"other_table": "country_sources_index", "column": "source_id", "other_column": "source_id"}], "outgoing": []}, "private": false}, {"name": "substances", "columns": ["inchi_id", "inchi", "inchikey"], "primary_keys": ["inchi_id"], "count": null, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [{"other_table": "api_results", "column": "inchi_id", "other_column": "inchi_id"}, {"other_table": "cleanventory_chemicals", "column": "inchi_id", "other_column": "inchi_id"}, {"other_table": "consensus_index", "column": "inchi_id", "other_column": "inchi_id"}, {"other_table": "zeropm_chemicals", "column": "inchi_id", "other_column": "inchi_id"}, {"other_table": "components", "column": "inchi_id", "other_column": "inchi_id"}, {"other_table": "multi_components", "column": "inchi_id", "other_column": "inchi_id"}, {"other_table": "pm_probabilities", "column": "inchi_id", "other_column": "inchi_id"}], "outgoing": []}, "private": false}, {"name": "zeropm_chemicals", "columns": ["zeropm_id", "inchi_id"], "primary_keys": ["zeropm_id"], "count": 126369, "hidden": false, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": [{"other_table": "substances", "column": "inchi_id", "other_column": "inchi_id"}]}, "private": false}, {"name": "api_results", "columns": ["query_id", "api_id", "inchi_id", "rank"], "primary_keys": [], "count": null, "hidden": true, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": [{"other_table": "substances", "column": "inchi_id", "other_column": "inchi_id"}, {"other_table": "api_services", "column": "api_id", "other_column": "api_id"}, {"other_table": "api_ready_query", "column": "query_id", "other_column": "query_id"}]}, "private": false}, {"name": "region_country_index", "columns": ["country_id", "region_id"], "primary_keys": [], "count": 41, "hidden": true, "fts_table": null, "foreign_keys": {"incoming": [], "outgoing": [{"other_table": "global_regions", "column": "region_id", "other_column": "region_id"}, {"other_table": "countries", "column": "country_id", "other_column": "country_id"}]}, "private": false}], "hidden_count": 2, "views": [], "queries": [{"sql": "SELECT country, inchi, identifier, source_name \nFROM substances\n  JOIN cleanventory_chemicals ON cleanventory_chemicals.inchi_id = substances.inchi_id\n  JOIN inventories ON inventories.inventory_id = cleanventory_chemicals.inventory_id\n  JOIN sources ON sources.source_id = inventories.source_id\n  JOIN country_sources_index ON country_sources_index.source_id = inventories.source_id\n  JOIN countries ON country_sources_index.country_id = countries.country_id\n  JOIN region_country_index ON region_country_index.country_id = countries.country_id\n  JOIN global_regions ON global_regions.region_id = region_country_index.region_id\nWHERE \"Canada\" in (countries.country);", "title": "Canada", "description_html": "<p>This is a list of chemicals registered in Canada. Note you need to click \"Edit SQL\" first if you want to \"Download this data as a CSV Spreadsheet (All Rows)\".</p>", "name": "Canada_search", "private": false}, {"sql": "SELECT country, inchi, identifier, source_name \nFROM substances\n  JOIN cleanventory_chemicals ON cleanventory_chemicals.inchi_id = substances.inchi_id\n  JOIN inventories ON inventories.inventory_id = cleanventory_chemicals.inventory_id\n  JOIN sources ON sources.source_id = inventories.source_id\n  JOIN country_sources_index ON country_sources_index.source_id = inventories.source_id\n  JOIN countries ON country_sources_index.country_id = countries.country_id\n  JOIN region_country_index ON region_country_index.country_id = countries.country_id\n  JOIN global_regions ON global_regions.region_id = region_country_index.region_id\nWHERE \"Europe\" in (global_regions.region) ORDER BY countries.country_id;", "title": "Europe", "description_html": "<p>This is a list of chemicals registered in Europe. Note you need to click \"Edit SQL\" first if you want to \"Download this data as a CSV Spreadsheet (All Rows)\".</p>", "name": "Europe_search", "private": false}], "allow_execute_sql": true, "table_columns": {"api_ready_query": ["query", "query_id", "type"], "api_results": ["api_id", "inchi_id", "query_id", "rank"], "api_services": ["api_id", "name", "source"], "cleanventory_chemicals": ["cleanventory_id", "inchi_id", "inventory_id"], "component_index": ["component_frequency", "component_id", "mc_id"], "components": ["component_id", "inchi_id"], "consensus_index": ["consensus_count", "consensus_score", "inchi_id", "inventory_id"], "countries": ["country", "country_id"], "country_sources_index": ["country_id", "source_id"], "global_regions": ["region", "region_id"], "inventories": ["identifier", "inventory_id", "source_id"], "inventory_summary": ["inventory_id", "query_id"], "multi_components": ["inchi_id", "mc_id"], "pm_probabilities": ["inchi_id", "n", "probability_of_m", "probability_of_m_or_vm", "probability_of_not_m", "probability_of_not_p", "probability_of_p", "probability_of_p_or_vp", "probability_of_vm", "probability_of_vp"], "region_country_index": ["country_id", "region_id"], "sources": ["comments", "country_scope", "disclosure", "link", "source_id", "source_name", "type"], "substances": ["inchi", "inchi_id", "inchikey"], "zeropm_chemicals": ["inchi_id", "zeropm_id"]}, "query_ms": 116.29999382421374, "source": "ZeroPM GitHub", "source_url": "https://github.com/ZeroPM-H2020/global-chemical-inventory-database", "license": "CC-BY-4.0", "license_url": "https://creativecommons.org/licenses/by/4.0/"}