Question: When ordering world economies by their 2012 GDP (PPP) in what position is Africa's largest economy? What position did the largest African economy

full_context: Document 1: List of countries by GDP (nominal): Although the rankings of national economies have changed considerably over time, the United States has maintained its top position since the Gilded Age, a time period in which its economy saw rapid expansion, surpassing the British Empire and Qing dynasty in aggregate output. Since China's transition to a market - based economy through privatisation and deregulation, the country has seen its ranking increase from ninth in 1978 to second to only the United States in 2016 as economic growth accelerated and its share of global nominal GDP surged from 2% in 1980 to 15% in 2016. India has also experienced a similar economic boom since the implementation of economic liberalisation in the early 1990s. When supranational entities are included, the European Union is the second largest economy in the world. It was the largest from 2004, when ten countries joined the union, to 2014, after which it was surpassed by the United States.
Document 2: 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 3: Japan: Japan is a member of the ASEAN Plus mechanism, UN, the OECD, the G7, the G8, and the G20, and is considered a great power. Its economy is the world's third-largest by nominal GDP and the fourth-largest by purchasing power parity. It is also the world's fourth-largest exporter and fourth-largest importer.
Document 4: Nigeria: Nigeria is often referred to as the "Giant of Africa", owing to its large population and economy. With approximately 182 million inhabitants, Nigeria is the most populous country in Africa and the seventh most populous country in the world. Nigeria has one of the largest populations of youth in the world. The country is viewed as a multinational state, as it is inhabited by over 500 ethnic groups, of which the three largest are the Hausa, Igbo and Yoruba; these ethnic groups speak over 500 different languages, and are identified with wide variety of cultures. The official language is English. Nigeria is divided roughly in half between Christians, who live mostly in the southern part of the country, and Muslims in the northern part. A minority of the population practise religions indigenous to Nigeria, such as those native to Igbo and Yoruba peoples.
Document 5: Nigeria: Nigeria is often referred to as the ``Giant of Africa '', owing to its large population and economy. With 186 million inhabitants, Nigeria is the most populous country in Africa and the seventh most populous country in the world. Nigeria has the third - largest youth population in the world, after India and China, with more than 90 million of its population under age 18. The country is viewed as a multinational state as it is inhabited by over 500 ethnic groups, of which the three largest are the Hausa, Igbo and Yoruba; these ethnic groups speak over 500 different languages and are identified with a wide variety of cultures. The official language is English. Nigeria is divided roughly in half between Christians, who live mostly in the southern part of the country, and Muslims, who live mostly in the north. A minority of the population practise religions indigenous to Nigeria, such as those native to the Igbo and Yoruba ethnicities.
Document 6: 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 7: 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 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: 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 10: 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 11: 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 12: G20: Membership of the G20 consists of 19 individual countries plus the European Union (EU). The EU is represented by the European Commission and by the European Central Bank. Collectively, the G20 economies account for around 85% of the gross world product (GWP), 80% of world trade (or, if excluding EU intra-trade, 75%), two - thirds of the world population, and approximately half of the world land area.
Document 13: South Asia: India is the largest & fastest growing economy in the region (US $2.180 trillion) and makes up almost 82% of the South Asian economy; it is the world's 7th largest in nominal terms and 3rd largest by purchasing power adjusted exchange rates (US $8.020 trillion). India is the only member of powerful G - 20 major economies and BRICS from the region. It is the fastest growing major economy in the world and one of the world's fastest registering a growth of 7.3% in FY 2014 -- 15. Pakistan has the next largest economy ($250 billion) and the 5th highest GDP per capita in the region, followed by Bangladesh and then by Sri Lanka which has the 2nd highest per capita and is the 4th largest economy in the region. According to a World Bank report in 2015, driven by a strong expansion in India, coupled with favorable oil prices, from the last quarter of 2014 South Asia become the fastest - growing region in the world
Document 14: BRICS: BRICS is the acronym for an association of five major emerging national economies: Brazil, Russia, India, China and South Africa. Originally the first four were grouped as ``BRIC ''(or`` the BRICs''), before the induction of South Africa in 2010. The BRICS members are all leading developing or newly industrialized countries, but they are distinguished by their large, sometimes fast - growing economies and significant influence on regional affairs; all five are G - 20 members. Since 2009, the BRICS nations have met annually at formal summits. China hosted the 9th BRICS summit in Xiamen on September 3rd, 4th and 5th, 2017. The term does not include countries such as South Korea, Mexico and Turkey for which other acronyms and group associations were later created.
Document 15: 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.
ground_truth: 30th in the world
sub_queries: What is the largest economy in Africa? Answer: Nigeria
Where did Nigeria 's 2012 GDP rank? Answer: 30th in the world