World Inequality Database (WID, 2023)
@owid.world_inequality_database
@owid.world_inequality_database
CREATE TABLE owid_world_inequality_database_1 (
"country" VARCHAR,
"year" INTEGER,
"p0p100_gini_pretax" FLOAT,
"p0p100_gini_posttax_dis" FLOAT,
"p0p100_gini_posttax_nat" FLOAT,
"p0p100_gini_wealth" FLOAT,
"palma_ratio_pretax" FLOAT,
"s80_s20_ratio_pretax" FLOAT,
"p90_p10_ratio_pretax" FLOAT,
"p90_p50_ratio_pretax" FLOAT,
"p50_p10_ratio_pretax" FLOAT,
"palma_ratio_posttax_dis" FLOAT,
"s80_s20_ratio_posttax_dis" FLOAT,
"p90_p10_ratio_posttax_dis" FLOAT,
"p90_p50_ratio_posttax_dis" FLOAT,
"p50_p10_ratio_posttax_dis" FLOAT,
"palma_ratio_posttax_nat" FLOAT,
"s80_s20_ratio_posttax_nat" FLOAT,
"p90_p10_ratio_posttax_nat" FLOAT,
"p90_p50_ratio_posttax_nat" FLOAT,
"p50_p10_ratio_posttax_nat" FLOAT,
"palma_ratio_wealth" FLOAT,
"s80_s20_ratio_wealth" FLOAT,
"p90_p10_ratio_wealth" FLOAT,
"p90_p50_ratio_wealth" FLOAT,
"p50_p10_ratio_wealth" FLOAT,
"p0p10_share_pretax" FLOAT,
"p0p50_share_pretax" FLOAT,
"p10p20_share_pretax" FLOAT,
"p20p30_share_pretax" FLOAT,
"p30p40_share_pretax" FLOAT,
"p40p50_share_pretax" FLOAT,
"p50p60_share_pretax" FLOAT,
"p60p70_share_pretax" FLOAT,
"p70p80_share_pretax" FLOAT,
"p80p90_share_pretax" FLOAT,
"p90p100_share_pretax" FLOAT,
"p99_999p100_share_pretax" FLOAT,
"p99_99p100_share_pretax" FLOAT,
"p99_9p100_share_pretax" FLOAT,
"p99p100_share_pretax" FLOAT,
"p90p99_share_pretax" FLOAT,
"p50p90_share_pretax" FLOAT,
"p0p10_share_posttax_dis" FLOAT,
"p0p50_share_posttax_dis" FLOAT,
"p10p20_share_posttax_dis" FLOAT,
"p20p30_share_posttax_dis" FLOAT,
"p30p40_share_posttax_dis" FLOAT,
"p40p50_share_posttax_dis" FLOAT,
"p50p60_share_posttax_dis" FLOAT,
"p60p70_share_posttax_dis" FLOAT,
"p70p80_share_posttax_dis" FLOAT,
"p80p90_share_posttax_dis" FLOAT,
"p90p100_share_posttax_dis" FLOAT,
"p99_999p100_share_posttax_dis" FLOAT,
"p99_99p100_share_posttax_dis" FLOAT,
"p99_9p100_share_posttax_dis" FLOAT,
"p99p100_share_posttax_dis" FLOAT,
"p90p99_share_posttax_dis" FLOAT,
"p50p90_share_posttax_dis" FLOAT,
"p0p10_share_posttax_nat" FLOAT,
"p0p50_share_posttax_nat" FLOAT,
"p10p20_share_posttax_nat" FLOAT,
"p20p30_share_posttax_nat" FLOAT,
"p30p40_share_posttax_nat" FLOAT,
"p40p50_share_posttax_nat" FLOAT,
"p50p60_share_posttax_nat" FLOAT,
"p60p70_share_posttax_nat" FLOAT,
"p70p80_share_posttax_nat" FLOAT,
"p80p90_share_posttax_nat" FLOAT,
"p90p100_share_posttax_nat" FLOAT,
"p99_999p100_share_posttax_nat" FLOAT,
"p99_99p100_share_posttax_nat" FLOAT,
"p99_9p100_share_posttax_nat" FLOAT,
"p99p100_share_posttax_nat" FLOAT,
"p90p99_share_posttax_nat" FLOAT,
"p50p90_share_posttax_nat" FLOAT,
"p0p10_share_wealth" FLOAT,
"p0p50_share_wealth" FLOAT,
"p10p20_share_wealth" FLOAT,
"p20p30_share_wealth" FLOAT,
"p30p40_share_wealth" FLOAT,
"p40p50_share_wealth" FLOAT,
"p50p60_share_wealth" FLOAT,
"p60p70_share_wealth" FLOAT,
"p70p80_share_wealth" FLOAT,
"p80p90_share_wealth" FLOAT,
"p90p100_share_wealth" FLOAT,
"p99_999p100_share_wealth" FLOAT,
"p99_99p100_share_wealth" FLOAT,
"p99_9p100_share_wealth" FLOAT,
"p99p100_share_wealth" FLOAT,
"p90p99_share_wealth" FLOAT,
"p50p90_share_wealth" FLOAT,
"p0p100_avg_pretax" FLOAT,
"p0p10_avg_pretax" FLOAT,
"p10p20_avg_pretax" FLOAT,
"p20p30_avg_pretax" FLOAT,
"p30p40_avg_pretax" FLOAT,
"p40p50_avg_pretax" FLOAT
);
CREATE TABLE owid_world_inequality_database_2 (
"country" VARCHAR,
"year" INTEGER,
"p0p100_gini_pretax" FLOAT,
"p0p100_gini_posttax_dis" FLOAT,
"p0p100_gini_posttax_nat" FLOAT,
"p0p100_gini_wealth" FLOAT,
"palma_ratio_pretax" FLOAT,
"s80_s20_ratio_pretax" FLOAT,
"p90_p10_ratio_pretax" FLOAT,
"p90_p50_ratio_pretax" FLOAT,
"p50_p10_ratio_pretax" FLOAT,
"palma_ratio_posttax_dis" FLOAT,
"s80_s20_ratio_posttax_dis" FLOAT,
"p90_p10_ratio_posttax_dis" FLOAT,
"p90_p50_ratio_posttax_dis" FLOAT,
"p50_p10_ratio_posttax_dis" FLOAT,
"palma_ratio_posttax_nat" FLOAT,
"s80_s20_ratio_posttax_nat" FLOAT,
"p90_p10_ratio_posttax_nat" FLOAT,
"p90_p50_ratio_posttax_nat" FLOAT,
"p50_p10_ratio_posttax_nat" FLOAT,
"palma_ratio_wealth" FLOAT,
"s80_s20_ratio_wealth" FLOAT,
"p90_p10_ratio_wealth" FLOAT,
"p90_p50_ratio_wealth" FLOAT,
"p50_p10_ratio_wealth" FLOAT,
"p0p10_share_pretax" FLOAT,
"p0p50_share_pretax" FLOAT,
"p10p20_share_pretax" FLOAT,
"p20p30_share_pretax" FLOAT,
"p30p40_share_pretax" FLOAT,
"p40p50_share_pretax" FLOAT,
"p50p60_share_pretax" FLOAT,
"p60p70_share_pretax" FLOAT,
"p70p80_share_pretax" FLOAT,
"p80p90_share_pretax" FLOAT,
"p90p100_share_pretax" FLOAT,
"p99_999p100_share_pretax" FLOAT,
"p99_99p100_share_pretax" FLOAT,
"p99_9p100_share_pretax" FLOAT,
"p99p100_share_pretax" FLOAT,
"p90p99_share_pretax" FLOAT,
"p50p90_share_pretax" FLOAT,
"p0p10_share_posttax_dis" FLOAT,
"p0p50_share_posttax_dis" FLOAT,
"p10p20_share_posttax_dis" FLOAT,
"p20p30_share_posttax_dis" FLOAT,
"p30p40_share_posttax_dis" FLOAT,
"p40p50_share_posttax_dis" FLOAT,
"p50p60_share_posttax_dis" FLOAT,
"p60p70_share_posttax_dis" FLOAT,
"p70p80_share_posttax_dis" FLOAT,
"p80p90_share_posttax_dis" FLOAT,
"p90p100_share_posttax_dis" FLOAT,
"p99_999p100_share_posttax_dis" FLOAT,
"p99_99p100_share_posttax_dis" FLOAT,
"p99_9p100_share_posttax_dis" FLOAT,
"p99p100_share_posttax_dis" FLOAT,
"p90p99_share_posttax_dis" FLOAT,
"p50p90_share_posttax_dis" FLOAT,
"p0p10_share_posttax_nat" FLOAT,
"p0p50_share_posttax_nat" FLOAT,
"p10p20_share_posttax_nat" FLOAT,
"p20p30_share_posttax_nat" FLOAT,
"p30p40_share_posttax_nat" FLOAT,
"p40p50_share_posttax_nat" FLOAT,
"p50p60_share_posttax_nat" FLOAT,
"p60p70_share_posttax_nat" FLOAT,
"p70p80_share_posttax_nat" FLOAT,
"p80p90_share_posttax_nat" FLOAT,
"p90p100_share_posttax_nat" FLOAT,
"p99_999p100_share_posttax_nat" FLOAT,
"p99_99p100_share_posttax_nat" FLOAT,
"p99_9p100_share_posttax_nat" FLOAT,
"p99p100_share_posttax_nat" FLOAT,
"p90p99_share_posttax_nat" FLOAT,
"p50p90_share_posttax_nat" FLOAT,
"p0p10_share_wealth" FLOAT,
"p0p50_share_wealth" FLOAT,
"p10p20_share_wealth" FLOAT,
"p20p30_share_wealth" FLOAT,
"p30p40_share_wealth" FLOAT,
"p40p50_share_wealth" FLOAT,
"p50p60_share_wealth" FLOAT,
"p60p70_share_wealth" FLOAT,
"p70p80_share_wealth" FLOAT,
"p80p90_share_wealth" FLOAT,
"p90p100_share_wealth" FLOAT,
"p99_999p100_share_wealth" FLOAT,
"p99_99p100_share_wealth" FLOAT,
"p99_9p100_share_wealth" FLOAT,
"p99p100_share_wealth" FLOAT,
"p90p99_share_wealth" FLOAT,
"p50p90_share_wealth" FLOAT,
"p0p100_avg_pretax" FLOAT,
"p0p10_avg_pretax" FLOAT,
"p10p20_avg_pretax" FLOAT,
"p20p30_avg_pretax" FLOAT,
"p30p40_avg_pretax" FLOAT,
"p40p50_avg_pretax" FLOAT
);
CREATE TABLE owid_world_inequality_database_3 (
"country" VARCHAR,
"year" INTEGER,
"p0p100_gini_pretax" FLOAT,
"p0p100_gini_posttax_dis" FLOAT,
"p0p100_gini_posttax_nat" FLOAT,
"p0p100_gini_wealth" FLOAT,
"palma_ratio_pretax" FLOAT,
"s80_s20_ratio_pretax" FLOAT,
"p90_p10_ratio_pretax" FLOAT,
"p90_p50_ratio_pretax" FLOAT,
"p50_p10_ratio_pretax" FLOAT,
"palma_ratio_posttax_dis" FLOAT,
"s80_s20_ratio_posttax_dis" FLOAT,
"p90_p10_ratio_posttax_dis" FLOAT,
"p90_p50_ratio_posttax_dis" FLOAT,
"p50_p10_ratio_posttax_dis" FLOAT,
"palma_ratio_posttax_nat" FLOAT,
"s80_s20_ratio_posttax_nat" FLOAT,
"p90_p10_ratio_posttax_nat" FLOAT,
"p90_p50_ratio_posttax_nat" FLOAT,
"p50_p10_ratio_posttax_nat" FLOAT,
"palma_ratio_wealth" FLOAT,
"s80_s20_ratio_wealth" FLOAT,
"p90_p10_ratio_wealth" FLOAT,
"p90_p50_ratio_wealth" FLOAT,
"p50_p10_ratio_wealth" FLOAT,
"p0p10_share_pretax" FLOAT,
"p0p50_share_pretax" FLOAT,
"p10p20_share_pretax" FLOAT,
"p20p30_share_pretax" FLOAT,
"p30p40_share_pretax" FLOAT,
"p40p50_share_pretax" FLOAT,
"p50p60_share_pretax" FLOAT,
"p60p70_share_pretax" FLOAT,
"p70p80_share_pretax" FLOAT,
"p80p90_share_pretax" FLOAT,
"p90p100_share_pretax" FLOAT,
"p99_999p100_share_pretax" FLOAT,
"p99_99p100_share_pretax" FLOAT,
"p99_9p100_share_pretax" FLOAT,
"p99p100_share_pretax" FLOAT,
"p90p99_share_pretax" FLOAT,
"p50p90_share_pretax" FLOAT,
"p0p10_share_posttax_dis" FLOAT,
"p0p50_share_posttax_dis" FLOAT,
"p10p20_share_posttax_dis" FLOAT,
"p20p30_share_posttax_dis" FLOAT,
"p30p40_share_posttax_dis" FLOAT,
"p40p50_share_posttax_dis" FLOAT,
"p50p60_share_posttax_dis" FLOAT,
"p60p70_share_posttax_dis" FLOAT,
"p70p80_share_posttax_dis" FLOAT,
"p80p90_share_posttax_dis" FLOAT,
"p90p100_share_posttax_dis" FLOAT,
"p99_999p100_share_posttax_dis" FLOAT,
"p99_99p100_share_posttax_dis" FLOAT,
"p99_9p100_share_posttax_dis" FLOAT,
"p99p100_share_posttax_dis" FLOAT,
"p90p99_share_posttax_dis" FLOAT,
"p50p90_share_posttax_dis" FLOAT,
"p0p10_share_posttax_nat" FLOAT,
"p0p50_share_posttax_nat" FLOAT,
"p10p20_share_posttax_nat" FLOAT,
"p20p30_share_posttax_nat" FLOAT,
"p30p40_share_posttax_nat" FLOAT,
"p40p50_share_posttax_nat" FLOAT,
"p50p60_share_posttax_nat" FLOAT,
"p60p70_share_posttax_nat" FLOAT,
"p70p80_share_posttax_nat" FLOAT,
"p80p90_share_posttax_nat" FLOAT,
"p90p100_share_posttax_nat" FLOAT,
"p99_999p100_share_posttax_nat" FLOAT,
"p99_99p100_share_posttax_nat" FLOAT,
"p99_9p100_share_posttax_nat" FLOAT,
"p99p100_share_posttax_nat" FLOAT,
"p90p99_share_posttax_nat" FLOAT,
"p50p90_share_posttax_nat" FLOAT,
"p0p10_share_wealth" FLOAT,
"p0p50_share_wealth" FLOAT,
"p10p20_share_wealth" FLOAT,
"p20p30_share_wealth" FLOAT,
"p30p40_share_wealth" FLOAT,
"p40p50_share_wealth" FLOAT,
"p50p60_share_wealth" FLOAT,
"p60p70_share_wealth" FLOAT,
"p70p80_share_wealth" FLOAT,
"p80p90_share_wealth" FLOAT,
"p90p100_share_wealth" FLOAT,
"p99_999p100_share_wealth" FLOAT,
"p99_99p100_share_wealth" FLOAT,
"p99_9p100_share_wealth" FLOAT,
"p99p100_share_wealth" FLOAT,
"p90p99_share_wealth" FLOAT,
"p50p90_share_wealth" FLOAT,
"p0p100_avg_pretax" FLOAT,
"p0p10_avg_pretax" FLOAT,
"p10p20_avg_pretax" FLOAT,
"p20p30_avg_pretax" FLOAT,
"p30p40_avg_pretax" FLOAT,
"p40p50_avg_pretax" FLOAT
);
CREATE TABLE owid_world_inequality_database_distribution_1 (
"country" VARCHAR,
"year" INTEGER,
"welfare" VARCHAR,
"p" FLOAT,
"percentile" VARCHAR,
"thr" FLOAT,
"avg" FLOAT,
"share" FLOAT,
"thr_extrapolated" FLOAT,
"avg_extrapolated" FLOAT,
"share_extrapolated" FLOAT
);
CREATE TABLE owid_world_inequality_database_distribution_2 (
"country" VARCHAR,
"year" INTEGER,
"welfare" VARCHAR,
"p" FLOAT,
"percentile" VARCHAR,
"thr" FLOAT,
"avg" FLOAT,
"share" FLOAT,
"thr_extrapolated" FLOAT,
"avg_extrapolated" FLOAT,
"share_extrapolated" FLOAT
);
CREATE TABLE owid_world_inequality_database_distribution_3 (
"country" VARCHAR,
"year" INTEGER,
"welfare" VARCHAR,
"p" FLOAT,
"percentile" VARCHAR,
"thr" FLOAT,
"avg" FLOAT,
"share" FLOAT,
"thr_extrapolated" FLOAT,
"avg_extrapolated" FLOAT,
"share_extrapolated" FLOAT
);
CREATE TABLE owid_world_inequality_database_fiscal_1 (
"country" VARCHAR,
"year" INTEGER,
"p99p100_share_fiscal992i" FLOAT,
"p99p100_share_fiscal992j" FLOAT,
"p99p100_share_fiscal992t" FLOAT
);
CREATE TABLE owid_world_inequality_database_fiscal_2 (
"country" VARCHAR,
"year" INTEGER,
"p99p100_share_fiscal992i" FLOAT,
"p99p100_share_fiscal992j" FLOAT,
"p99p100_share_fiscal992t" FLOAT
);
Anyone who has the link will be able to view this.