Chinastark/bird_dataset huggingface dataset:
Database: mondial_geo
Question: Among the countries with over 3 organizations, how many of them have an inflation rate of over 5%?
SQL: SELECT COUNT(T2.Country) FROM economy AS T1 INNER JOIN organization AS T2 ON T1.Country = T2.Country WHERE T2.Country IN ( SELECT Country FROM organization GROUP BY Country HAVING COUNT(Country) > 3 ) AND T1.Inflation > 5
Database: mondial_geo
Question: How many organizations are established in the country with the most ethnic groups?
SQL: SELECT COUNT(T2.Province) FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country INNER JOIN ethnicGroup AS T3 ON T3.Country = T2.Country GROUP BY T1.Name ORDER BY COUNT(T3.Name) DESC LIMIT 1
Database: mondial_geo
Question: Please list the organization names established in the countries where Dutch is spoken.
Evidence: Dutch is one of language
SQL: SELECT T2.Name FROM language AS T1 INNER JOIN organization AS T2 ON T1.Country = T2.Country WHERE T1.Name = 'Dutch'
Database: mondial_geo
Question: How many organizations are established in countries where people speak Bosnian?
Evidence: Bosnian is one of language
SQL: SELECT COUNT(T2.Name) FROM language AS T1 INNER JOIN organization AS T2 ON T1.Country = T2.Country WHERE T1.Name = 'Bosnian'
Database: mondial_geo
Question: What is the highest infant mortality rate per thousand of the countries whose inflation is under 3?
SQL: SELECT MAX(T2.Infant_Mortality) FROM economy AS T1 INNER JOIN population AS T2 ON T1.Country = T2.Country WHERE T1.Inflation < 3
Database: mondial_geo
Question: Among the countries whose GDP is over 1000000, how many of them have a population groth rate of over 3%?
Evidence: population growth rate of over 3% means population_growth > 3
SQL: SELECT COUNT(T1.Country) FROM economy AS T1 INNER JOIN population AS T2 ON T1.Country = T2.Country WHERE T1.GDP > 1000000 AND T2.Population_Growth > 3
Database: mondial_geo
Question: Which country has the highest GDP per capita?
Evidence: GDP per capita = GDP / population
SQL: SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T2.GDP / T1.Population DESC LIMIT 1
Database: mondial_geo
Question: What is the highest lake area coverage of a country?
Evidence: Lake area coverage = [sum(area of the lakes in the country) / (area of the country)] * 100%
SQL: SELECT T2.Area * 100  / T3.Area FROM located AS T1 INNER JOIN lake AS T2 ON T1.Lake = T2.Name INNER JOIN country AS T3 ON T3.Code = T1.Country ORDER BY T2.Longitude DESC LIMIT 1
Database: mondial_geo
Question: What is the average population growth rate of countries where more than 3 languages are used?
SQL: SELECT SUM(T3.Population_Growth) / COUNT(T3.Country) 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.Country IN ( SELECT Country FROM language GROUP BY Country HAVING COUNT(Country) > 3 ) GROUP BY T3.Country
Database: mondial_geo
Question: Please list the names of the countries with an inflation rate that's 30% above the average.
Evidence: Average inflation rate = [sum(inflation) / count(countries)]; 30% above average implies inflation > 1.3 average inflation rate
SQL: SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country GROUP BY T1.Name, T2.Inflation HAVING T2.Inflation > AVG(T2.Inflation) * 1.3
Database: mondial_geo
Question: Where country does Baghdad belongs to?
Evidence: Baghdad is one of provinces
SQL: SELECT Name FROM country WHERE Province = 'Baghdad'
Database: mondial_geo
Question: Which religion has the largest population in Martinique?
SQL: SELECT T2.Name FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Martinique' ORDER BY T1.population DESC LIMIT 1
Database: mondial_geo
Question: Which country is 41% Christian? Give the full name of the country.
SQL: SELECT T1.Name FROM country AS T1 INNER JOIN religion AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Christian' AND T2.Percentage = 41
Database: mondial_geo
Question: Which two countries does the Detroit River flow through? Give the full name of the country.
SQL: SELECT T3.Name FROM located AS T1 INNER JOIN river AS T2 ON T1.River = T2.Name INNER JOIN country AS T3 ON T3.Code = T1.Country WHERE T2.Name = 'Detroit River'
Database: mondial_geo
Question: Which two countries have the longest border in the world? Give the full name of the country.
SQL: SELECT T2.Country1, T2.Country2 FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 ORDER BY T2.Length DESC LIMIT 1
Database: mondial_geo
Question: Which country has the most neighbors? Give the full name of the country.
SQL: SELECT T1.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 GROUP BY T1.Name ORDER BY COUNT(T1.Name) DESC LIMIT 1
Database: mondial_geo
Question: Which country is Mountain Cerro Chirripo located in? Give the full name of the country.
SQL: SELECT DISTINCT T1.Name FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country WHERE T2.Mountain = 'Cerro Chirripo'
Database: mondial_geo
Question: How many mountains are there in Indonesia?
Evidence: Indonesia refers to one of countries
SQL: SELECT COUNT(DISTINCT T2.Mountain) FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Indonesia'
Database: mondial_geo
Question: What is the quantity of the mountains does Japan have?
Evidence: Japan is one of country names
SQL: SELECT COUNT(DISTINCT T2.Mountain) FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Japan'
Database: mondial_geo
Question: What is the latitude of the island on which Mount Andrinjitra is located?
SQL: SELECT T1.Latitude FROM island AS T1 INNER JOIN mountainOnIsland AS T2 ON T1.Name = T2.Island WHERE T2.Mountain = 'Andringitra'
Database: mondial_geo
Question: Which two countries share the second highest mountain? Give the country code.
SQL: SELECT T1.Code FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country WHERE T2.Mountain = ( SELECT Name FROM mountain ORDER BY Height DESC LIMIT 1, 1 )
Database: mondial_geo
Question: What is the area of Egypt as a percentage of Asia?
SQL: SELECT T2.Percentage FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent WHERE T3.Name = 'Asia' AND T1.Name = 'Egypt'
Database: mondial_geo
Question: What is the area of Egypt as a percentage of Asia?
SQL: SELECT T1.Area * 100 / T3.Area FROM country AS T1 INNER JOIN encompasses AS T2 ON T1.Code = T2.Country INNER JOIN continent AS T3 ON T3.Name = T2.Continent WHERE T3.Name = 'Asia' AND T1.Name = 'Egypt'
Database: mondial_geo
Question: Which city in Japan has the most people in the country?
Evidence: most people refers to largest population
SQL: SELECT T2.Name FROM country AS T1 INNER JOIN city AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Japan' ORDER BY T2.Population DESC LIMIT 1
Database: mondial_geo
Question: For the country in which Olsztyn is located, where is the capital?
Evidence: Olsztyn is one of country names
SQL: SELECT T1.Capital FROM country AS T1 INNER JOIN city AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Olsztyn'
Database: mondial_geo
Question: In which province is the highest volcano mountain located in?
SQL: SELECT T1.Province 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 = 'volcano' ORDER BY T3.Height DESC LIMIT 1
Database: mondial_geo
Question: When did Uganda declare independence?
Evidence: Uganda is one of country names
SQL: SELECT T2.Independence FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Uganda'
Database: mondial_geo
Question: What kind of government does Iran have?
Evidence: Uganda is one of country names
SQL: SELECT T2.Government FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Iran'
Database: mondial_geo
Question: Where does Bermuda belong to? Give the full name of the country.
Evidence: Bermuda is one of countries
SQL: SELECT T3.Name FROM locatedOn AS T1 INNER JOIN island AS T2 ON T1.Island = T2.Name INNER JOIN country AS T3 ON T3.Code = T1.Country WHERE T3.Name = 'Bermuda'
Database: mondial_geo
Question: Where is the capital of country which has the largest percentage of Malay people?
Evidence: Malay is one of country names
SQL: SELECT T1.Capital FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Malay' ORDER BY T2.Percentage DESC LIMIT 1
Database: mondial_geo
Question: For the third largest country, which ethinic group has the most population?
SQL: SELECT T2.Name FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T1.Name = ( SELECT Name FROM country ORDER BY Area DESC LIMIT 2, 1 ) GROUP BY T2.Name ORDER BY T2.Percentage * T1.Population DESC LIMIT 1
Database: mondial_geo
Question: Which country has the city of 114339 in population? Give the full name of the country.
SQL: SELECT T1.Name FROM country AS T1 INNER JOIN city AS T2 ON T1.Code = T2.Country WHERE T2.Population = 114339
Database: mondial_geo
Question: How many rivers finally flows to the sea of 459m in depth?
SQL: SELECT COUNT(*) FROM river WHERE Sea IN ( SELECT Name FROM sea WHERE Depth = 459 )
Database: mondial_geo
Question: What is the area of the country which became independent in 1921/3/13?
SQL: SELECT T1.Area FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T2.Independence = '1921-03-13'
Database: mondial_geo
Question: What is the population density of the Petropavl's home country?
Evidence: Population density = Population / area
SQL: SELECT CAST(T1.Population AS REAL) / T1.Area FROM country AS T1 INNER JOIN city AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Petropavl'
Database: mondial_geo
Question: How many more people speak English than speak Scottish in United Kingdom?
Evidence: English and Scottish are two languages; United Kingdom is a country
SQL: SELECT T3.Population * (T2.Percentage - T1.Percentage) FROM ethnicGroup AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Country = T2.Country INNER JOIN country AS T3 ON T1.Country = T3.Code WHERE T1.Name = 'Scottish' AND T2.Name = 'English' AND T3.Name = 'United Kingdom'
Database: mondial_geo
Question: What is the most populated city of the 12th highest density country?
Evidence: Population density = Population / area
SQL: SELECT T2.Name FROM country AS T1 INNER JOIN city AS T2 ON T1.Code = T2.Country WHERE T1.Name = ( SELECT Name FROM country ORDER BY CAST(Population AS REAL) / Area LIMIT 11, 1 ) ORDER BY T2.Population DESC LIMIT 1
Database: mondial_geo
Question: How many times longer is the longest border in the United States than the shortest?
Evidence: How many times longer = longest border / shortest border
SQL: SELECT MAX(T2.Length) / MIN(T2.Length) FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country2 WHERE T1.Name = 'United States'
Database: mondial_geo
Question: Please list the capital cities of the countries that have more than 4 mountains.
SQL: SELECT T1.Capital FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country GROUP BY T1.Name, T1.Capital HAVING COUNT(T1.Name) > 4
Database: mondial_geo
Question: How many mountains are there in the country with the greatest population?
SQL: SELECT COUNT(T2.Mountain) FROM country AS T1 INNER JOIN geo_mountain AS T2 ON T1.Code = T2.Country GROUP BY T1.Name ORDER BY T1.Population DESC LIMIT 1
Database: mondial_geo
Question: Among the countries whose agriculture takes up more than 40% of its GDP, how many of them have less than 2 mountains?
SQL: SELECT COUNT(T3.Country) FROM ( SELECT T1.Country FROM economy AS T1 INNER JOIN geo_mountain AS T2 ON T1.Country = T2.Country WHERE T1.Industry < 40 GROUP BY T1.Country HAVING COUNT(T1.Country) < 2 ) AS T3
Database: mondial_geo
Question: Please list the mountains in the country with the lowest inflation rate.
SQL: SELECT Mountain FROM geo_mountain WHERE Country = ( SELECT Country FROM economy ORDER BY Inflation ASC LIMIT 1 )
Database: mondial_geo
Question: Among the independent countries whose type of government is republic, what is the biggest number of deserts they have?
SQL: 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'
Database: mondial_geo
Question: Please list the deserts in the countries whose population is over 100000 and covers an area of under 500000.
SQL: 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
Database: mondial_geo
Question: How many deserts are there in a country where over 90% of people speaks Armenian?
SQL: 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
Database: mondial_geo
Question: Which mountain is the highest in an independent country?
SQL: 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
Database: mondial_geo
Question: How many volcanic mountains are there in countries whose population is no more than 5000000?
SQL: 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
Database: mondial_geo
Question: Among the countries with a GDP of over 1000000, how many of them have mountains higher than 1000?
SQL: 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
Database: mondial_geo
Question: What is the greatest length of the border between 2 independent countries?
SQL: 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
Database: mondial_geo
Question: Among the countries whose government type is republic, how many of them shares a border that's longer than 200?
SQL: 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
Database: mondial_geo
Question: Please list the countries that share the shortest border.
SQL: SELECT T1.Name FROM country AS T1 INNER JOIN borders AS T2 ON T1.Code = T2.Country1 ORDER BY T2.Length ASC LIMIT 1
Database: mondial_geo
Question: What is the GDP of the European Continent?
SQL: 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'
Database: mondial_geo
Question: How many mountains are there on the African Continent?
SQL: 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'
Database: mondial_geo
Question: Of the deserts on the America Continent, which one covers the greatest area?
SQL: 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
Database: mondial_geo
Question: Please list the countries on the European Continent that have a population growth of more than 3%.
SQL: 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
Database: mondial_geo
Question: How many countries on the European Continent has an infant mortality rate per thousand of over 100?
SQL: 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
Database: mondial_geo
Question: Among the countries that use Bosnian as their language, how many of them don't have a positive population growth rate?
SQL: 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
Database: mondial_geo
Question: What is the average percentage of agriculture of GDP in countries on the African Continent?
SQL: 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'
Database: mondial_geo
Question: Among the independent countries, how many of them has a GDP per capita of over 5000?
SQL: 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
Database: mondial_geo
Question: What is the average inflation rate of the biggest continent?
SQL: 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 )
Database: mondial_geo
Question: Which island is city Balikpapan located on? How big is the island?
SQL: 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'
Database: mondial_geo
Question: List all the cities in Sumatra and state the population of each city.
Evidence: Sumatra is an island
SQL: 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'
Database: mondial_geo
Question: On which island does South Yorkshire situated? State it's longtitude and latitude.
Evidence: 'South Yorkshire' is a province
SQL: 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'
Database: mondial_geo
Question: List all islands that are greater than the island on which Warwickshire is located.
Evidence: Warwickshire is a province
SQL: 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' )
Database: mondial_geo
Question: For island area less than 200, list the island name and city it belongs to.
SQL: 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
Database: mondial_geo
Question: In which province is city Glenrothes located? What is the capital of the province?
SQL: 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'
Database: mondial_geo
Question: List the all the cities and its city population for provinces with population more than 1000000.
SQL: SELECT T1.Name, T1.Population FROM city AS T1 INNER JOIN province AS T2 ON T2.Name = T1.Province WHERE T2.Population > 1000000
Database: mondial_geo
Question: List all the coral islands along with its city and province.
Evidence: Baltic Sea is a sea located in Northern Europe
SQL: SELECT City, Province FROM locatedOn WHERE Island IN ( SELECT Name FROM island WHERE Type = 'coral' )
Database: mondial_geo
Question: What is the average population for all cities location at Baltic Sea?
Evidence: Baltic Sea is a sea located in Northern Europe
SQL: 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'
Database: mondial_geo
Question: Calculate the percentage of population in Edmonton city to the population of its province.
Evidence: Percentage of population in each city = population(city) / population(province) * 100%
SQL: 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'
Database: mondial_geo
Question: Which are the rivers that flows to Black Sea?
Evidence: Black Sea is a sea located in Eastern Europe and Western Asia
SQL: SELECT Name FROM river WHERE Sea = 'Black Sea'
Database: mondial_geo
Question: State the name of the lake in Albania province and in which city does it located at.
SQL: SELECT Lake, City FROM located WHERE Province = 'Albania' AND Lake IS NOT NULL
Database: mondial_geo
Question: Name the tallest mountain on Himalaya and what is its height.
Evidence: Tallest refers to max(height)
SQL: SELECT Name, Height FROM mountain WHERE Mountains = 'Himalaya' ORDER BY Height DESC LIMIT 1
Database: mondial_geo
Question: List all the mountains that are volcanic along with its longitude and latitude.
SQL: SELECT Name, Latitude, Longitude FROM mountain WHERE Type = 'volcano'
Database: mondial_geo
Question: Name all the volcano mountains between the height of 2000 to 4000.
SQL: SELECT Name FROM mountain WHERE Type = 'volcano' AND Height BETWEEN 2000 AND 4000
Database: mondial_geo
Question: Please state the longest river that flows to the Mediterranean Sea.
SQL: SELECT Name FROM river WHERE Sea = 'Mediterranean Sea' ORDER BY Length DESC LIMIT 1
Database: mondial_geo
Question: How many percent of the mountains on Andes which are non-volcanic?
Evidence: Percent of non-volcanic mountains = count(mountains = 'Andes' & type ! = 'volcano') / count(mountains = 'Andes') * 100%
SQL: SELECT CAST(SUM(CASE WHEN type != 'volcano' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM mountain WHERE Mountains = 'Andes'
Database: mondial_geo
Question: List all the cities and provinces located at the rivers that flows to Atlantic Ocean.
Evidence: Atlantic Ocean is the second-largest ocean on Earth, after the Pacific Ocean; Ocean and sea share the same meaning
SQL: 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'
Database: mondial_geo
Question: What is the name and length of rivers located at 'Orleans' city?
Evidence: Orleans is a city in north-central France
SQL: 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'
Database: mondial_geo
Question: What is the height of the mountain on which river 'Lech' is located? Please also provide its longitude and latitude.
SQL: 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'
Database: mondial_geo
Question: Name the river of which Lorraine is on. Please name the mountains where to source flow from?
Evidence: Lorraine is a province
SQL: 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'