Question: Where did the 2012 GDP of the largest economy in Africa rank?

full_context: Document 1: 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.
Document 2: 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 3: 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 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: 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 6: 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 7: Economy of Uganda: Economy of Uganda Downtown Kampala Currency Ugandan shilling (UGX) Fiscal year 1 July -- 30 June Trade organisations EAC, COMESA, AU, WTO Statistics GDP $26.39 billion (2017 est.) GDP rank 90th (nominal, 2017) GDP growth 4.4% (2017 est.) (57th, 2017 est.) GDP by sector Agriculture: 71.9% Industry: 4.4% Services: 23.7% (2017 est.) Inflation (CPI) 5.8% (2017 est.) Base borrowing rate 19.1% (31 December 2017 est.) Population below poverty line 19.7% (2017 est.) Gini coefficient 39.5 (2017 est.) Labour force 20.05 million (2017 est.) Labour force by occupation agriculture: 71.9% (2013 est.) Main industries sugar, brewing, tobacco, cotton textiles; cement, steel production Ease - of - doing - business rank 115th (2017) External Exports $3.172 billion (2017 est.) (123rd) Export goods List (show) coffee fish and fish product tea cotton flowers horticultural products gold Main export partners Kenya 20.9% UAE 11.2% Rwanda 9.5% DR Congo 8.9% Italy 4.5% (2017) Imports $4.592 billion (2017 est.) Import goods List (show) capital equipment, vehicles, petroleum, medical supplies; cereals Main import partners China 17.9% India 17.2% UAE 9.5% Kenya 9.2 Japan 5.2% South Africa 4.5% Saudi Arabia 4.4% (2016) FDI stock $10.909 billion (2016) Current account $- 1.476 billion (2017 est.) Gross external debt $7.163 billion (31 December 2017 est.) Public finances Public debt $11.2 billion ($3.8 billion, domestic) (2018) Revenues $3.98 billion (2017) Expenses $7.66 billion (2017) Economic aid $3.68 billion (2017) Credit rating Standard & Poor's: B Foreign reserves 3.045 billion (31 December 2017 est.) Main data source: CIA World Fact Book All values, unless otherwise stated, are in US dollars.
Document 8: 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 9: 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 10: 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 11: 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 12: 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 13: Petroleum industry in Nigeria: Nigeria is the largest oil and gas producer in Africa. Crude oil from the delta basin comes in two types: light, and comparatively heavy -- the lighter around 36 gravity and the heavier, 20 -- 25 gravity. Both types are paraffinic and low in sulfur.
Document 14: 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 15: 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.
ground_truth: 30th in the world
sub_queries: what country has the largest economy in africa Answer: Nigeria
Where did Nigeria 's 2012 GDP rank? Answer: 30th in the world