db_id stringclasses 69 values | question stringlengths 24 325 | evidence stringlengths 0 673 | SQL stringlengths 23 804 |
|---|---|---|---|
mondial_geo | Please list the mountains in the country with the lowest inflation rate. | SELECT Mountain FROM geo_mountain WHERE Country = ( SELECT Country FROM economy ORDER BY Inflation ASC LIMIT 1 ) | |
mondial_geo | Among the independent countries whose type of government is republic, what is the biggest number of deserts they have? | SELECT COUNT(T3.Desert) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN geo_desert AS T3 ON T3.Country = T2.Country WHERE T2.Government = 'republic' | |
mondial_geo | Please list the deserts in the countries whose population is over 100000 and covers an area of under 500000. | SELECT T2.Desert FROM country AS T1 INNER JOIN geo_desert AS T2 ON T1.Code = T2.Country WHERE T1.Area > 100000 AND T1.Population < 500000 | |
mondial_geo | How many deserts are there in a country where over 90% of people speaks Armenian? | SELECT COUNT(T2.Desert) FROM country AS T1 INNER JOIN geo_desert AS T2 ON T1.Code = T2.Country INNER JOIN language AS T3 ON T1.Code = T2.Country WHERE T3.Name = 'Armenian' AND T3.Percentage > 90 | |
mondial_geo | Which mountain is the highest in an independent country? | SELECT T4.Name FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN geo_mountain AS T3 ON T3.Country = T2.Country INNER JOIN mountain AS T4 ON T4.Name = T3.Mountain WHERE T2.Independence IS NOT NULL ORDER BY T4.Height DESC LIMIT 1 | |
mondial_geo | How many volcanic mountains are there in countries whose population is no more than 5000000? | SELECT COUNT(DISTINCT T3.Name) FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country INNER JOIN mountain AS T3 ON T3.Name = T2.Mountain WHERE T3.Type = 'volcanic' AND T1.Population <= 5000000 | |
mondial_geo | Among the countries with a GDP of over 1000000, how many of them have mountains higher than 1000? | SELECT COUNT(DISTINCT T1.Name) FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country INNER JOIN economy AS T3 ON T3.Country = T1.Code INNER JOIN mountain AS T4 ON T4.Name = T2.Mountain WHERE T3.GDP > 1000000 AND T4.Height > 1000 | |
mondial_geo | What is the greatest length of the border between 2 independent countries? | SELECT MAX(T3.Length) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN borders AS T3 ON T3.Country1 = T2.Country WHERE T2.Independence IS NOT NULL | |
mondial_geo | Among the countries whose government type is republic, how many of them shares a border that's longer than 200? | SELECT COUNT(DISTINCT T1.Name) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN borders AS T3 ON T3.Country1 = T2.Country WHERE T2.Government = 'republic' AND T3.Length > 200 | |
mondial_geo | Please list the countries that share the shortest border. | SELECT T1.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 ORDER BY T2.Length ASC LIMIT 1 | |
mondial_geo | What is the GDP of the European Continent? | SELECT SUM(T4.GDP) FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent INNER JOIN economy AS T4 ON T4.Country = T1.Code WHERE T3.Name = 'Europe' | |
mondial_geo | How many mountains are there on the African Continent? | SELECT COUNT(T3.Name) FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent INNER JOIN province AS T4 ON T4.Country = T1.Code INNER JOIN geo_mountain AS T5 ON T5.Province = T4.Name WHERE T3.Name = 'European' | |
mondial_geo | Of the deserts on the America Continent, which one covers the greatest area? | SELECT T5.Name FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent INNER JOIN geo_desert AS T4 ON T4.Country = T1.Code INNER JOIN desert AS T5 ON T5.Name = T4.Desert WHERE T3.Name = 'America' ORDER BY T5.Area DESC LIMIT 1 | |
mondial_geo | Please list the countries on the European Continent that have a population growth of more than 3%. | SELECT T2.Country FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent INNER JOIN population AS T4 ON T4.Country = T1.Code WHERE T3.Name = 'Europe' AND T4.Population_Growth > 0.03 | |
mondial_geo | How many countries on the European Continent has an infant mortality rate per thousand of over 100? | SELECT COUNT(T1.Name) FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent INNER JOIN population AS T4 ON T4.Country = T1.Code WHERE T3.Name = 'Europe' AND T4.Infant_Mortality < 100 | |
mondial_geo | Among the countries that use Bosnian as their language, how many of them don't have a positive population growth rate? | SELECT COUNT(DISTINCT T1.Name) FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country INNER JOIN population AS T3 ON T3.Country = T2.Country WHERE T2.Name = 'Bosnian' AND T3.Population_Growth < 0 | |
mondial_geo | What is the average percentage of agriculture of GDP in countries on the African Continent? | SELECT AVG(T4.Agriculture) FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country INNER JOIN economy AS T4 ON T4.Country = T3.Code WHERE T1.Name = 'Africa' | |
mondial_geo | Among the independent countries, how many of them has a GDP per capita of over 5000? | SELECT COUNT(DISTINCT T1.Name) FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country INNER JOIN economy AS T3 ON T3.Country = T2.Country WHERE T2.Independence IS NOT NULL AND T3.GDP > 5000 | |
mondial_geo | What is the average inflation rate of the biggest continent? | SELECT AVG(T4.Inflation) FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country INNER JOIN economy AS T4 ON T4.Country = T3.Code WHERE T1.Name = ( SELECT Name FROM continent ORDER BY Area DESC LIMIT 1 ) | |
mondial_geo | Which island is city Balikpapan located on? How big is the island? | SELECT T3.Name, T3.Area FROM city AS T1 INNER JOIN locatedOn AS T2 ON T1.Name = T2.City INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T1.Name = 'Balikpapan' | |
mondial_geo | List all the cities in Sumatra and state the population of each city. | Sumatra is an island | SELECT T1.Name, T1.Population FROM city AS T1 INNER JOIN locatedOn AS T2 ON T1.Name = T2.City INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T3.Name = 'Sumatra' |
mondial_geo | On which island does South Yorkshire situated? State it's longtitude and latitude. | 'South Yorkshire' is a province | SELECT DISTINCT T3.Longitude, T3.Latitude FROM city AS T1 INNER JOIN locatedOn AS T2 ON T1.Name = T2.City INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T1.Province = 'South Yorkshire' |
mondial_geo | List all islands that are greater than the island on which Warwickshire is located. | Warwickshire is a province | SELECT DISTINCT Name FROM island WHERE Area > ( SELECT DISTINCT T3.Area FROM city AS T1 INNER JOIN locatedOn AS T2 ON T1.Name = T2.City INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T1.Province = 'Warwickshire' ) |
mondial_geo | For island area less than 200, list the island name and city it belongs to. | SELECT DISTINCT T3.Name, T1.Name FROM city AS T1 INNER JOIN locatedOn AS T2 ON T1.Name = T2.City INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T3.Area < 200 | |
mondial_geo | In which province is city Glenrothes located? What is the capital of the province? | SELECT T2.Province, T1.Capital FROM province AS T1 INNER JOIN city AS T2 ON T1.Name = T2.Province AND T1.Country = T2.Country WHERE T2.Name = 'Glenrothes' | |
mondial_geo | List the all the cities and its city population for provinces with population more than 1000000. | SELECT T1.Name, T1.Population FROM city AS T1 INNER JOIN province AS T2 ON T2.Name = T1.Province WHERE T2.Population > 1000000 | |
mondial_geo | List all the coral islands along with its city and province. | Baltic Sea is a sea located in Northern Europe | SELECT City, Province FROM locatedOn WHERE Island IN ( SELECT Name FROM island WHERE Type = 'coral' ) |
mondial_geo | What is the average population for all cities location at Baltic Sea? | Baltic Sea is a sea located in Northern Europe | SELECT AVG(T1.Population) FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN sea AS T3 ON T3.Name = T2.Sea WHERE T3.Name = 'Baltic Sea' |
mondial_geo | Calculate the percentage of population in Edmonton city to the population of its province. | Percentage of population in each city = population(city) / population(province) * 100% | SELECT CAST(T1.Population AS REAL) * 100 / T2.Population FROM city AS T1 INNER JOIN province AS T2 ON T1.Province = T2.Name WHERE T1.Name = 'Edmonton' |
mondial_geo | Which are the rivers that flows to Black Sea? | Black Sea is a sea located in Eastern Europe and Western Asia | SELECT Name FROM river WHERE Sea = 'Black Sea' |
mondial_geo | State the name of the lake in Albania province and in which city does it located at. | SELECT Lake, City FROM located WHERE Province = 'Albania' AND Lake IS NOT NULL | |
mondial_geo | Name the tallest mountain on Himalaya and what is its height. | Tallest refers to max(height) | SELECT Name, Height FROM mountain WHERE Mountains = 'Himalaya' ORDER BY Height DESC LIMIT 1 |
mondial_geo | List all the mountains that are volcanic along with its longitude and latitude. | SELECT Name, Latitude, Longitude FROM mountain WHERE Type = 'volcano' | |
mondial_geo | Name all the volcano mountains between the height of 2000 to 4000. | SELECT Name FROM mountain WHERE Type = 'volcano' AND Height BETWEEN 2000 AND 4000 | |
mondial_geo | Please state the longest river that flows to the Mediterranean Sea. | SELECT Name FROM river WHERE Sea = 'Mediterranean Sea' ORDER BY Length DESC LIMIT 1 | |
mondial_geo | How many percent of the mountains on Andes which are non-volcanic? | Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100% | SELECT CAST(SUM(CASE WHEN type != 'volcano' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM mountain WHERE Mountains = 'Andes' |
mondial_geo | List all the cities and provinces located at the rivers that flows to Atlantic Ocean. | Atlantic Ocean is the second-largest ocean on Earth, after the Pacific Ocean; Ocean and sea share the same meaning | SELECT T1.Name, T1.Province FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T3.Sea = 'Atlantic Ocean' |
mondial_geo | What is the name and length of rivers located at 'Orleans' city? | Orleans is a city in north-central France | SELECT T3.Name, T3.Length FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T1.Name = 'Orleans' |
mondial_geo | What is the height of the mountain on which river 'Lech' is located? Please also provide its longitude and latitude. | SELECT T1.Height, T1.Latitude, T1.Longitude FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN located AS T4 ON T4.Province = T3.Name WHERE T4.River = 'Lech' | |
mondial_geo | Name the river of which Lorraine is on. Please name the mountains where to source flow from? | Lorraine is a province | SELECT T1.SourceLongitude, T1.SourceLatitude, T1.SourceAltitude FROM river AS T1 INNER JOIN geo_river AS T2 ON T2.River = T1.Name WHERE T2.Province = 'Lorraine' |
mondial_geo | Which mountain does the river source Blue Nile located? State the height of the mountain. | SELECT T1.Name, T1.Height FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN geo_source AS T4 ON T4.Province = T3.Name WHERE T4.River = 'Blue Nile' | |
mondial_geo | Name the river at Little Rock city. State the length of the river. | SELECT T3.Length FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T1.Name = 'Little Rock' | |
mondial_geo | List all rivers and province it is located that is greater than 1000 in length. | SELECT T1.Province, T2.Name FROM geo_river AS T1 INNER JOIN river AS T2 ON T1.River = T2.Name WHERE T2.Length > 1000 | |
mondial_geo | In which province and country does Moldoveanu located? State its height. | Moldoveanu is a mountain | SELECT T2.Province, T2.Country, T1.Height FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain WHERE T1.Name = 'Moldoveanu' |
mondial_geo | Provide all rivers name and length in USA. | USA is a country | SELECT DISTINCT T3.Name, T3.Length FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T2.Country = 'USA' |
mondial_geo | What is the average height of all mountains in Nepal? | Nepal is a province | SELECT AVG(T1.Height) FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain WHERE T2.Province = 'Nepal' |
mondial_geo | For all cities where Seine is located at, which city has the greatest population? Calculate the difference from the city with least population. | Seince is a river; Population disparity refers to difference between cities with greatest and least population; Difference between cities with greatest and least population means max(population) - min(population) | SELECT MAX(T1.Population) - MIN(T1.population) FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T3.Name = 'Seine' |
mondial_geo | Which are the 2 rivers located at Belgrade city? Which river is longer and how by much? | SELECT T1.Name, T1.Length FROM river AS T1 INNER JOIN located AS T2 ON T1.Name = T2.River INNER JOIN city AS T3 ON T3.Name = T2.City WHERE T3.Name = 'Belgrade' | |
mondial_geo | Which nations have a 100% Spanish-speaking population? | SELECT Country FROM language WHERE Name = 'Spanish' AND Percentage = 100 | |
mondial_geo | Which countries are dependent on the British Crown? | SELECT Country FROM politics WHERE Government = 'British crown dependency' | |
mondial_geo | What are the names of the rivers in Canada? | SELECT DISTINCT T1.River FROM located AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'Canada' AND T1.River IS NOT NULL | |
mondial_geo | What is the name of the country whose citizens have the lowest purchasing power? | Inflation can reduce purchasing power over time for recipients and payers. | SELECT T2.Name FROM economy AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code ORDER BY T1.Inflation DESC LIMIT 1 |
mondial_geo | What province does the 4th most populous city in the United Kingdom belong to, and how many people live there? | SELECT T1.Province, T1.Population FROM city AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'United Kingdom' ORDER BY T1.Population DESC LIMIT 3, 1 | |
mondial_geo | How many Jewish residents are there in Moldova? | Moldova is one country located in Eastern Europe; The number of residents can be computed by percentage * population | SELECT T2.Percentage * T1.Population FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Moldova' AND T2.Name = 'Jewish' |
mondial_geo | What is the average area of Asian countries? | Asia is a continent | SELECT AVG(Area) FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country WHERE T2.Continent = 'Asia' |
mondial_geo | Which country is home to the world's tiniest desert, and what are its longitude and latitude? | SELECT T2.Country, T1.Latitude, T1.Longitude FROM desert AS T1 INNER JOIN geo_desert AS T2 ON T1.Name = T2.Desert WHERE T1.Name = ( SELECT Name FROM desert ORDER BY Area ASC LIMIT 1 ) | |
mondial_geo | How many people in Montenegro speaks Serbian? | Serbian is one language; Montenegro is a country located in Southeastern Europe | SELECT T1.Percentage * T2.Population FROM language AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Name = 'Serbian' AND T2.Name = 'Montenegro' |
mondial_geo | How many mountains are there in the country with the most land area? | SELECT COUNT(Mountain) FROM geo_mountain WHERE Country = ( SELECT Code FROM country ORDER BY Area DESC LIMIT 1 ) | |
mondial_geo | Which sea is the shallowest and which country surrounds it? | Shallow sea refers to the sea with less depth | SELECT DISTINCT T2.Name FROM located AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE Sea = ( SELECT Name FROM sea ORDER BY Depth ASC LIMIT 1 ) |
mondial_geo | Which nation's GDP is the lowest among those that are communist states? | Communist is a government form | SELECT T2.Country FROM politics AS T1 INNER JOIN economy AS T2 ON T1.Country = T2.Country WHERE T1.Government = 'Communist state' ORDER BY T2.GDP ASC LIMIT 1 |
mondial_geo | What kind of political system is in place in the country with the highest inflation rate? | Political system refers to government form | SELECT T1.Government FROM politics AS T1 INNER JOIN economy AS T2 ON T1.Country = T2.Country ORDER BY T2.Inflation DESC LIMIT 1 |
mondial_geo | Which nation has the greatest infant mortality rate among those that attained independence in 1960? | SELECT T1.Country FROM politics AS T1 INNER JOIN population AS T2 ON T1.Country = T2.Country WHERE STRFTIME('%Y', T1.Independence) = '1960' ORDER BY T2.Infant_Mortality DESC LIMIT 1 | |
mondial_geo | What is the smallest border's length, and what form of government do the two nations bordering it have? | SELECT T1.Government, T3.Government FROM politics AS T1 INNER JOIN borders AS T2 ON T1.Country = T2.Country1 INNER JOIN politics AS T3 ON T3.Country = T2.Country2 ORDER BY T2.Length ASC LIMIT 1 | |
mondial_geo | Which Arabic-speaking country has the smallest population? | Arabic-speaking country = country that speaks 100% Arabic | SELECT T1.Name FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Arabic' AND T2.Percentage = 100 ORDER BY T1.Population ASC LIMIT 1 |
mondial_geo | What provinces encompass the world's biggest desert in terms of overall area? | SELECT Province FROM geo_desert WHERE Desert = ( SELECT Name FROM desert ORDER BY Area DESC LIMIT 1 ) | |
mondial_geo | How many lakes are there in the 4th most populous African country with a republican form of government? | SELECT COUNT(*) FROM geo_lake WHERE Country = ( SELECT T4.Code FROM ( SELECT T2.Code, T2.Population FROM encompasses AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code INNER JOIN politics AS T3 ON T1.Country = T3.Country WHERE T1.Continent = 'Africa' AND T1.Percentage = 100 AND T3.Government = 'republic' ORDER BY Population DESC LIMIT 4 ) AS T4 ORDER BY population ASC LIMIT 1 ) | |
mondial_geo | Which religion is most prevalent in Asia? | Most prevalent religion refers to the religion with the most population percentage | SELECT T4.Name FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country INNER JOIN religion AS T4 ON T4.Country = T3.Code WHERE T1.Name = 'Asia' GROUP BY T4.Name ORDER BY SUM(T4.Percentage) DESC LIMIT 1 |
mondial_geo | What is the difference in population between the two nations where the tallest peak is located? | SELECT * FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Country = T2.Country INNER JOIN country AS T4 ON T4.Code = T3.Country WHERE T1.Name = ( SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1 ) | |
mondial_geo | What are the names of the sea that can be found on the island with the biggest area? | SELECT T2.Name FROM islandIn AS T1 INNER JOIN sea AS T2 ON T2.Name = T1.Sea WHERE T1.Island = ( SELECT Name FROM island ORDER BY Area DESC LIMIT 1 ) | |
mondial_geo | What are the names of the three nations where the longest river that empties into the Atlantic Ocean stretches to? | Empties into the Atlantic Ocean = flows to the Atlantic Ocean | SELECT DISTINCT T1.Country FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T3.Name = ( SELECT Name FROM river WHERE Sea = 'Atlantic Ocean' ORDER BY Length DESC LIMIT 1 ) |
mondial_geo | How many people reside in the nation's capital city, which is situated in the nation that attained independence on 8/15/1947? | SELECT T3.Population FROM politics AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code INNER JOIN city AS T3 ON T3.Name = T2.Capital WHERE T1.Independence = '1947-08-15' | |
mondial_geo | What is the total number of Afro-Asian people in the most populous Asian country governed by a monarchy? | Total Number of People = Percentage * Population | SELECT T5.Percentage * T6.Population FROM ethnicGroup AS T5 INNER JOIN country AS T6 ON T5.Country = T6.Code WHERE Country = ( SELECT T3.Code FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country INNER JOIN politics AS T4 ON T4.Country = T3.Code WHERE T4.Government = 'monarchy' AND T1.Name = 'Asia' ORDER BY T3.Population DESC LIMIT 1 ) AND T5.Name = 'Afro-Asian' |
mondial_geo | What are the names of the cities along the Euphrat River's course? Indicate the capital city of the nation where the Euphrat River flows. | SELECT T2.City, T1.Capital FROM country AS T1 INNER JOIN located AS T2 ON T1.Code = T2.Country INNER JOIN river AS T3 ON T3.Name = T2.River WHERE T3.Name = 'Euphrat' | |
mondial_geo | What is the proportion of English-speaking citizens in the countries that rely on the United States compared to the total number of citizens in those countries? | SELECT T2.Percentage * T1.Population FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country INNER JOIN politics AS T3 ON T3.Country = T2.Country WHERE T3.Dependent = 'USA' AND T2.Name = 'English' | |
mondial_geo | Which federal republic country in Europe has the most provinces, and what proportion of GDP is devoted to services?
Calculate the population density as well. | Republic is on of government forms; Percentage of Services of the GDP was mentioned in economy.Service; Population Density = Population / Area | SELECT T1.Country, T2.Service , SUM(T1.Population) / SUM(T1.Area) FROM province AS T1 INNER JOIN economy AS T2 ON T1.Country = T2.Country WHERE T1.Country IN ( SELECT Country FROM encompasses WHERE Continent = 'Europe' ) GROUP BY T1.Country, T2.Service ORDER BY COUNT(T1.Name) DESC LIMIT 1 |
mondial_geo | What is the capital of the 3rd most populated country in Asia and what is the capital city's ratio in percentage (%) against the overall population of the country? | SELECT T4.Capital, CAST(T3.Population AS REAL) * 100 / T4.Population FROM city AS T3 INNER JOIN ( SELECT T1.Capital , T1.Population FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country WHERE T2.Continent = 'Asia' ORDER BY T1.Population DESC LIMIT 2, 1 ) AS T4 ON T3.Name = T4.Capital | |
mondial_geo | What's the name of the second biggest desert? | SELECT Name FROM desert ORDER BY Area DESC LIMIT 1, 1 | |
mondial_geo | What is the main spoken language in MNE? | MNE is one country | SELECT Name FROM language WHERE Country = 'MNE' ORDER BY Percentage DESC LIMIT 1 |
mondial_geo | What's the percentage of people in Cayman Islands speak English? | Cayman Islands is a country | SELECT T1.Percentage FROM language AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'Cayman Islands' AND T1.Name = 'English' |
mondial_geo | Which country was the source of Pjandsh River? Give the full name of the country. | SELECT T1.Name FROM country AS T1 INNER JOIN located AS T2 ON T1.Code = T2.Country WHERE T2.River = 'Pjandsh' | |
mondial_geo | For the countries have the population north of a billion, which one has the lowest GDP? Give the full name of the country. | billion = 1000000000 | SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Population > 1000000000 ORDER BY T2.GDP ASC LIMIT 1 |
mondial_geo | What is the capital of the country that has the Licancabur Mountain? | SELECT T4.Capital FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province INNER JOIN country AS T4 ON T4.Province = T3.Name WHERE T1.Name = 'Licancabur' | |
mondial_geo | How much sea is around the island where Kerinci Mountain is located? | SELECT COUNT(T4.Sea) FROM mountain AS T1 INNER JOIN mountainOnIsland AS T2 ON T1.Name = T2.Mountain INNER JOIN island AS T3 ON T3.Name = T2.Island INNER JOIN islandIn AS T4 ON T4.Island = T3.Name WHERE T1.Name = 'Kerinci' | |
mondial_geo | Which three countries does the Amazonas flow through? Give the full name of the countries. | Amazonas flow is a river | SELECT DISTINCT T4.Name FROM city AS T1 INNER JOIN located AS T2 ON T1.Name = T2.City INNER JOIN river AS T3 ON T3.Name = T2.River INNER JOIN country AS T4 ON T4.Code = T2.Country WHERE T3.Name = 'Amazonas' |
mondial_geo | Which country became independent on 1492-01-01? Give the full name of the country. | SELECT T1.Name FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T2.Independence = '1492-01-01' | |
mondial_geo | How many cities in France have a population of more than 100,000? | SELECT COUNT(T2.Name) FROM country AS T1 INNER JOIN city AS T2 ON T2.Country = T1.Code WHERE T1.Name = 'France' AND T2.Population > 100000 | |
mondial_geo | Among all the rivers finally flows to the sea of 540m in depth, which one has the longest length? | SELECT T2.Name FROM sea AS T1 INNER JOIN river AS T2 ON T2.Sea = T1.Name WHERE T1.Depth = 540 ORDER BY T2.Length DESC LIMIT 1 | |
mondial_geo | In which Country is the second highest volcanic mountain located in? Give the code of the country. | SELECT T3.Country FROM mountain AS T1 INNER JOIN geo_mountain AS T2 ON T1.Name = T2.Mountain INNER JOIN province AS T3 ON T3.Name = T2.Province ORDER BY T1.Height DESC LIMIT 1, 1 | |
mondial_geo | What is the longitude of the island on which Mount Olympos is located? | SELECT T3.Longitude FROM mountain AS T1 INNER JOIN mountainOnIsland AS T2 ON T1.Name = T2.Mountain INNER JOIN island AS T3 ON T3.Name = T2.Island WHERE T1.Name = 'Olympos' | |
mondial_geo | For all the countries that is smaller than 100 square kilometres, which one has the most GDP? | SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Area < 100 ORDER BY T2.GDP DESC LIMIT 1 | |
mondial_geo | What is the total number of cities that Japan have? | Japan is a country | SELECT COUNT(T3.Name) FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Province = T2.Name WHERE T1.Name = 'Japan' |
mondial_geo | Which city has most population other than its capital in Bangladesh? | Bangladesh is a country | SELECT T3.Name FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Province = T2.Name WHERE T1.Name = 'Bangladesh' AND T3.Name <> T1.Capital ORDER BY T3.Population DESC LIMIT 1 |
mondial_geo | Which non capital city has the most people of all? | SELECT T3.Name FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Province = T2.Name WHERE T3.Name <> T1.Capital ORDER BY T3.Population DESC LIMIT 1 | |
mondial_geo | In which country is the city of Grozny? Give the full name of the country. | Grozny is a province | SELECT T1.Name FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Province = T2.Name WHERE T3.Name = 'Grozny' |
mondial_geo | Which religion has the majority of the people in Japan? | Japan is a country | SELECT T2.Name FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Japan' ORDER BY T2.Percentage DESC LIMIT 1 |
mondial_geo | Which two countries have the border in length of 803 km? Give the full names of the countries. | SELECT T1.Name, T3.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 INNER JOIN country AS T3 ON T3.Code = T2.Country2 WHERE T2.Length = 803 | |
mondial_geo | How many percent of the total area of Russia is in Europe? | SELECT T2.Percentage FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country WHERE T3.Name = 'Russia' AND T1.Name = 'Europe' | |
mondial_geo | Give the full names of the countries that are located in more than one continent. | SELECT T3.Name FROM continent AS T1 INNER JOIN encompasses AS T2 ON T1.Name = T2.Continent INNER JOIN country AS T3 ON T3.Code = T2.Country GROUP BY T3.Name HAVING COUNT(T3.Name) > 1 | |
mondial_geo | How many people are there in Fareham's mother country? | Mother country refers to home country | SELECT T1.Population FROM country AS T1 INNER JOIN province AS T2 ON T1.Code = T2.Country INNER JOIN city AS T3 ON T3.Province = T2.Name WHERE T3.Name = 'Fareham' |
mondial_geo | What's the number of infant mortality in Switzerland in a year? | Number can be calculated = Infant_Mortality * Population * Population_Growth | SELECT T2.Infant_Mortality * T1.Population * T2.Population_Growth FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Switzerland' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.