Military Expenditure (% Of GDP)
Gapminder datapoints for 'military_expenditure_percent_of_gdp'
@gapminder.military_expenditure_percent_of_gdp
Gapminder datapoints for 'military_expenditure_percent_of_gdp'
@gapminder.military_expenditure_percent_of_gdp
Military expenditures data from SIPRI are derived from the NATO definition, which includes all current and capital expenditures on the armed forces, including peacekeeping forces; defense ministries and other government agencies engaged in defense projects; paramilitary forces, if these are judged to be trained and equipped for military operations; and military space activities. Such expenditures include military and civil personnel, including retirement pensions of military personnel and social services for personnel; operation and maintenance; procurement; military research and development; and military aid (in the military expenditures of the donor country). Excluded are civil defense and current expenditures for previous military activities, such as for veterans' benefits, demobilization, conversion, and destruction of weapons. This definition cannot be applied for all countries, however, since that would require much more detailed information than is available about what is included in military budgets and off-budget military expenditure items. (For example, military budgets might or might not cover civil defense, reserves and auxiliary forces, police and paramilitary forces, dual-purpose forces such as military and civilian police, military grants in kind, pensions for military personnel, and social security contributions paid by one part of government to another.)
HOW TO JOIN WITH METADATA
• Concepts (labels/units)
– Use the concept id military_expenditure_percent_of_gdp
to look up labels and units in @gapminder.metadata.concepts.
SELECT * FROM @gapminder.metadata.concepts WHERE concept = 'military_expenditure_percent_of_gdp'
.
• Countries and names
– Join your datapoints on geo to @gapminder.metadata.entities_geo_country to get readable country/area names
(e.g., name
) and membership attributes such as world_4region
, income_groups
.
• Regions and other group labels
– After you have a region code from the country table (e.g., world_4region
),
you can join to:
· @gapminder.metadata.entities_geo_world_4region on world_4region
→ region names/colors/shapes
· @gapminder.metadata.entities_geo_world_6region on world_6region
→ region names
· @gapminder.metadata.entities_geo_income_groups on income_groups
→ income group names
Example:
SELECT d.time,
c.name AS country,
d.military_expenditure_percent_of_gdp AS value
FROM @gapminder.military_expenditure_percent_of_gdp.military_expenditure_percent_of_gdp_by_geo_time d
LEFT JOIN @gapminder.metadata.entities_geo_country c ON d.geo = c.country;
CREATE TABLE military_expenditure_percent_of_gdp_by_geo_time (
"geo" VARCHAR,
"time" BIGINT,
"military_expenditure_percent_of_gdp" DOUBLE
);
Anyone who has the link will be able to view this.