Question: In 2012, where did the GDP of the richest country in Africa rank?

full_context: Document 1: List of African countries by GDP (nominal): 2017 Rank Country Nominal GDP ($billions) Nominal GDP per capita (US $) Notes Nigeria 376.284 1,994.235 South Africa 349.299 6,179.870 Egypt 237.037 2,500.772 Algeria 178.287 4,292.272 Angola 124.209 4,407.657 6 Sudan 119.00 1,428.000 7 Morocco 109.824 3,151.145 8 Ethiopia 80.874 872.840 9 Kenya 79.511 1,701.550 10 Tanzania 51.725 1,033.567 11 Ghana 47.032 1,663.190 12 Democratic Republic of the Congo 41.441 478.237 13 Ivory Coast 40.360 1,616.981 14 Tunisia 40.275 3,496.286 15 Cameroon 34.006 1,400.743 16 Libya 31.331 4,858.672 17 Uganda 26.349 699.410 18 Zambia 25.504 1,479.542 19 Zimbabwe 17.491 1,175.723 20 Botswana 17.168 7,876.997 21 Senegal 16.463 1,038.094 22 Mali 15.318 810.771 23 Gabon 15.206 7,971.589 24 Namibia 12.687 5,413.508 25 Mozambique 12.681 429.296 26 Burkina Faso 12.569 663.806 27 Mauritius 12.428 9,794.102 28 Madagascar 11.463 447.558 29 Equatorial Guinea 10.725 12,726.956 30 Chad 9.872 810.163 31 Guinea 9.721 749.463 32 Benin 9.238 830.404 33 Rwanda 9.137 771.702 34 Congo 8.513 1,958.174 35 Niger 8.253 439.997 36 Somalia 7.382 547.32 37 Malawi 6.206 323.740 38 Eritrea 5.813 979.692 39 Mauritania 5.116 1,317.938 40 Togo 4.767 611.133 41 Swaziland 4.491 3,914.821 42 Sierra Leone 3.641 491.448 43 Burundi 3.396 312.463 44 Liberia 3.285 729.292 45 South Sudan 2.870 228.034 46 Lesotho 2.768 1,425.310 47 Djibouti 2.029 1,988.765 48 Central African Republic 1.928 386.806 49 Cape Verde 1.741 3,237.597 50 Seychelles 1.482 15,685.955 51 Guinea - Bissau 1.350 794.107 52 The Gambia 1.009 480.040 53 Comoros 0.652 787.831 54 São Tomé and Príncipe 0.379 1,785.280 -- Total 2,191.104
Document 2: List of countries by GDP (nominal): The United States is the world's largest economy with a GDP of approximately $18.56 trillion, notably due to high average incomes, a large population, capital investment, moderate unemployment, high consumer spending, a relatively young population, and technological innovation. Tuvalu is the world's smallest national economy with a GDP of about $32 million because of its very small population, a lack of natural resources, reliance on foreign aid, negligible capital investment, demographic problems, and low average incomes.
Document 3: Nigeria: Nigeria was ranked 30th in the world in terms of GDP (PPP) in 2012. Nigeria is the United States' largest trading partner in sub-Saharan Africa and supplies a fifth of its oil (11% of oil imports). It has the seventh-largest trade surplus with the US of any country worldwide. Nigeria is the 50th-largest export market for US goods and the 14th-largest exporter of goods to the US. The United States is the country's largest foreign investor. The International Monetary Fund (IMF) projected economic growth of 9% in 2008 and 8.3% in 2009. The IMF further projects an 8% growth in the Nigerian economy in 2011.
Document 4: Namibia: In 2013, global business and financial news provider, Bloomberg, named Namibia the top emerging market economy in Africa and the 13th best in the world. Only four African countries made the Top 20 Emerging Markets list in the March 2013 issue of Bloomberg Markets magazine, and Namibia was rated ahead of Morocco (19th), South Africa (15th) and Zambia (14th). Worldwide, Namibia also fared better than Hungary, Brazil and Mexico. Bloomberg Markets magazine ranked the top 20 based on more than a dozen criteria. The data came from Bloomberg's own financial-market statistics, IMF forecasts and the World Bank. The countries were also rated on areas of particular interest to foreign investors: the ease of doing business, the perceived level of corruption and economic freedom. In order to attract foreign investment, the government has made improvement in reducing red tape resulted from excessive government regulations making the country one of the least bureaucratic places to do business in the region. However, facilitation payments are occasionally demanded by customs due to cumbersome and costly customs procedures. Namibia is also classified as an Upper Middle Income country by the World Bank, and ranks 87th out of 185 economies in terms of ease of doing business.
Document 5: Eswatini: Swaziland is a developing country with a small economy. Its GDP per capita of $9,714 means it is classified as a country with a lower-middle income. As a member of the Southern African Customs Union (SACU) and Common Market for Eastern and Southern Africa (COMESA), its main local trading partner is South Africa. Swaziland's currency, the lilangeni, is pegged to the South African rand. Swaziland's major overseas trading partners are the United States and the European Union. The majority of the country's employment is provided by its agricultural and manufacturing sectors. Swaziland is a member of the Southern African Development Community (SADC), the African Union, the Commonwealth of Nations and the United Nations.
Document 6: Human Development Index: A HDI below 0.5 is considered to represent "low development". All 22 countries in that category are located in Africa. The highest-scoring Sub-Saharan countries, Gabon and South Africa, are ranked 119th and 121st, respectively. Nine countries departed from this category this year and joined the "medium development" group.
Document 7: United States: The United States has a capitalist mixed economy which is fueled by abundant natural resources and high productivity. According to the International Monetary Fund, the U.S. GDP of $16.8 trillion constitutes 24% of the gross world product at market exchange rates and over 19% of the gross world product at purchasing power parity (PPP).The nominal GDP of the U.S. is estimated to be $17.528 trillion as of 2014. From 1983 to 2008, U.S. real compounded annual GDP growth was 3.3%, compared to a 2.3% weighted average for the rest of the G7. The country ranks ninth in the world in nominal GDP per capita according to the United Nations (first in the Americas) and sixth in GDP per capita at PPP. The U.S. dollar is the world's primary reserve currency.The United States is the largest importer of goods and second-largest exporter, though exports per capita are relatively low. In 2010, the total U.S. trade deficit was $635 billion. Canada, China, Mexico, Japan, and Germany are its top trading partners. In 2010, oil was the largest import commodity, while transportation equipment was the country's largest export. Japan is the largest foreign holder of U.S. public debt. The largest holder of the U.S. debt are American entities, including federal government accounts and the Federal Reserve, who hold the majority of the debt.
Document 8: List of African countries by GDP (PPP): Region Rank Country 2015 GDP (PPP) millions of International dollars -- Africa 5,736,700 Nigeria 1,192.00 Egypt 995.97 South Africa 724.01 Algeria 570.64 Morocco 274.53 6 Angola 185.25 7 Sudan 167.42 8 Ethiopia 159.22 9 Tanzania 150.4 10 Kenya 143.05 11 Tunisia 127.21 12 Ghana 113.35 13 Libya 92.88 14 Uganda 79.75 15 Ivory Coast 78.34 16 Cameroon 72.11 17 Zambia 64.65 18 Democratic Republic of the Congo 63.27 19 Botswana 37.16 20 Senegal 36.30 21 Madagascar 35.56 22 Gabon 34.41 23 Chad 33.73 24 Mozambique 32.00 25 Burkina Faso 31.18 26 Mali 29.15 27 Zimbabwe 28.90 28 Republic of the Congo 27.92 29 Equatorial Guinea 25.94 30 Mauritius 24.84 31 Namibia 24.51 32 Benin 21.16 33 Malawi 20.56 34 Rwanda 20.32 35 Niger 18.96 36 Mauritania 16.43 37 Guinea 15.28 38 Swaziland 10.87 39 Togo 10.82 40 Eritrea 7.94 41 Burundi 7.88 42 Somalia 5.90 43 Lesotho 5.78 44 Gambia 3.27 45 Liberia 3.78 46 Cape Verde 3.48 47 Djibouti 3.09 48 Seychelles 2.53 49 Guinea - Bissau 1.94 50 Central African Republic 1.62 51 Comoros 1.21 52 São Tomé and Príncipe 0.66
Document 9: Nigeria: According to the International Organization for Migration, Nigeria witnessed a dramatic increase in remittances sent home from overseas Nigerians, going from USD 2.3 billion in 2004 to 17.9 billion in 2007. The United States accounts for the largest portion of official remittances, followed by the United Kingdom, Italy, Canada, Spain and France. On the African continent, Egypt, Equatorial Guinea, Chad, Libya and South Africa are important source countries of remittance flows to Nigeria, while China is the biggest remittance-sending country in Asia.
Document 10: List of countries by GDP (nominal): The United States is the world's largest economy with a GDP of approximately $19.39 trillion, notably due to high average incomes, a large population, capital investment, moderate unemployment, high consumer spending, a relatively young population, and technological innovation. Tuvalu is the world's smallest national economy, with a GDP of about $32 million, because of its very small population, a lack of natural resources, reliance on foreign aid, negligible capital investment, demographic problems, and low average incomes.
Document 11: Horn of Africa: Horn of Africa Countries and territories Djibouti Eritrea Ethiopia Somalia Major regional organizations Arab League, Common Market for Eastern and Southern Africa, Community of Sahel - Saharan States, Intergovernmental Authority on Development Population 122,618,170 (2016 est.) Area 1,882,757 km Languages Afar Arabic Amharic French Oromo Somali Tigrinya Religion Islam, Christianity, traditional faiths Time zones UTC + 03: 00 Currency Djiboutian franc Eritrean nakfa Ethiopian birr Somali shilling Capitals Addis Ababa (Ethiopia) Asmara (Eritrea) Djibouti (Djibouti) Mogadishu (Somalia) Total GDP (PPP) $247.751 billion (2016) Total GDP (nominal) $102,057 billion (2016)
Document 12: Economy of the Middle East: Rank Country GDP Per Capita GDP (PPP) Total ($US B) GDP (Millions of US $) 2014 Israel $35,200 $281.9 296,100 Iran $18,100 $876 416,490 Kuwait $71,900 $150.2 172,608 United Arab Emirates $67,900 $200.4 399,451 5 Oman $46,700 $69.43 77,677 6 Bahrain $50,700 $22.85 33,862 7 Saudi Arabia $55,200 $581.3 746,248 8 Turkey $24,900 $1189.9 798,332 9 Lebanon $18,500 $46.03 50,028 10 Qatar $127,700 $101.2 210,109 11 Egypt $12,600 $470.4 286,435 12 Jordan $12,300 $33.06 35,878 13 Syria $2,900 $102.5 77,460 14 Iraq $17,900 $249.4 223,508 15 Palestinian territories $4,300 $N / A N / A 16 Yemen $2,400 $58.2 43,229
Document 13: Nigeria: As of 2015[update], Nigeria is the world's 20th largest economy, worth more than $500 billion and $1 trillion in terms of nominal GDP and purchasing power parity respectively. It overtook South Africa to become Africa's largest economy in 2014. Also, the debt-to-GDP ratio is only 11 percent, which is 8 percent below the 2012 ratio. Nigeria is considered to be an emerging market by the World Bank; It has been identified as a regional power on the African continent, a middle power in international affairs, and has also been identified as an emerging global power. Nigeria is a member of the MINT group of countries, which are widely seen as the globe's next "BRIC-like" economies. It is also listed among the "Next Eleven" economies set to become among the biggest in the world. Nigeria is a founding member of the Commonwealth of Nations, the African Union, OPEC, and the United Nations amongst other international organisations.
Document 14: Nigeria: During the oil boom of the 1970s, Nigeria joined OPEC and the huge revenue generated made the economy richer. Despite huge revenues from oil production and sale, the military administration did little to improve the standard of living of the population, help small and medium businesses, or invest in infrastructure. As oil revenues fuelled the rise of federal subventions to states, the federal government became the centre of political struggle and the threshold of power in the country. As oil production and revenue rose, the Nigerian government became increasingly dependent on oil revenues and the international commodity markets for budgetary and economic concerns. It did not develop other sources of the economy for economic stability. That spelled doom to federalism in Nigeria.
Document 15: Gabon: Abundant petroleum and foreign private investment have helped make Gabon one of the most prosperous countries in Sub-Saharan Africa, with the 7th highest HDI and the fourth highest GDP per capita (PPP) (after Mauritius, Equatorial Guinea and Seychelles) in the region. GDP grew by more than 6% per year from 2010 to 2012. However, because of inequality in income distribution, a significant proportion of the population remains poor.
ground_truth: 30th in the world
sub_queries: which one is the richest country in africa Answer: Nigeria
Where did Nigeria 's 2012 GDP rank? Answer: 30th in the world