Chinastark/bird_dataset huggingface dataset:
Database: sales_in_weather
Question: What are the top 3 stations that have sold the highest quantities for an item in a single day?
Evidence: highest quantity refers to Max(units); station refers to station_nbr
SQL: SELECT T2.station_nbr FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr ORDER BY T1.units DESC LIMIT 3
Database: sales_in_weather
Question: How many stores belong to the station with the highest recorded heat of all time?
Evidence: highest recorded heat refers to Max(heat); station refers to station_nbr
SQL: SELECT COUNT(T2.store_nbr) FROM ( SELECT station_nbr FROM weather ORDER BY heat DESC LIMIT 1 ) AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr
Database: sales_in_weather
Question: On February 8, 2014, what is the minimum temperature in the station where store 29 belongs?
Evidence: On February 8, 2014 refers to date = '2014-02-08'; store 29 refers to store_nbr = 29; minimum temperature refers to tmin; station refers to station_nbr
SQL: SELECT tmin FROM relation AS T1 INNER JOIN weather AS T2 ON T1.station_nbr = T2.station_nbr WHERE T1.store_nbr = 29 AND T2.`date` = '2014-02-08'
Database: sales_in_weather
Question: Among the stations with 3 stores, how many stations have a station pressure of no more than 30 on February 18, 2014?
Evidence: station with 3 stores refers to station_nbr where Count(store_nbr) = 3; station pressure of no more than 30 refers to stnpressure < 30; On February 18, 2014 refers to date = '2014-02-18'
SQL: SELECT COUNT(station_nbr) FROM weather WHERE `date` = '2014-02-18' AND stnpressure < 30 AND station_nbr IN ( SELECT station_nbr FROM relation GROUP BY station_nbr HAVING COUNT(store_nbr) = 3 )
Database: sales_in_weather
Question: Which station has the highest number of stores? Calculate the said station's average maximum temperature in February 2012.
Evidence: station with highest number of stores refers to station_nbr where Max(Count(store_nbr)); station refers to station_nbr; in February 2012 refers to substring (date, 1, 7) = '2012-02'; average maximum temperature = Divide(Sum(tmax), 29)
SQL: SELECT CAST(SUM(T2.tmax) AS REAL) / 29 FROM ( SELECT station_nbr FROM relation GROUP BY station_nbr ORDER BY COUNT(store_nbr) DESC LIMIT 1 ) AS T1 INNER JOIN weather AS T2 ON T1.station_nbr = T2.station_nbr WHERE SUBSTR(T2.`date`, 1, 7) = '2012-02'
Database: sales_in_weather
Question: Between the stores under weather station 12, what is the percentage of item 5 sold in store 10 in 2014?
Evidence: weather station 12 refers to station_nbr = 12; item 5 refers to item_nbr = 5; 10 store refers to store_nbr = 10; in 2014 refers to SUBSTR(date, 1, 4) = '2014'; percentage = Divide (Sum(units where store_nbr = 10), Sum(units)) * 100
SQL: SELECT CAST(SUM(CASE WHEN T2.store_nbr = 10 THEN units * 1 ELSE 0 END) AS REAL) * 100 / SUM(units) FROM relation AS T1 INNER JOIN sales_in_weather AS T2 ON T1.store_nbr = T2.store_nbr WHERE station_nbr = 12 AND item_nbr = 5 AND T2.`date` LIKE '%2014%'
Database: sales_in_weather
Question: What is the maximum average speed?
Evidence: maximum average speed refers to Max(avgspeed)
SQL: SELECT MAX(avgspeed) FROM weather
Database: sales_in_weather
Question: How many days did the show fell more than 5 inches?
Evidence: snow fell more than 5 inches refers to snowfall > 5
SQL: SELECT COUNT(DISTINCT `date`) FROM weather WHERE snowfall > 5
Database: sales_in_weather
Question: How many days did the sun rise before 5 AM?
Evidence: sunrise before 5 Am refers to sunrise < time ('5:00:00')
SQL: SELECT COUNT(DISTINCT `date`) AS days FROM weather WHERE sunrise < time('05:00:00')
Database: sales_in_weather
Question: What is the minimum dew point?
Evidence: minimum dew point refers to Min(dewpoint)
SQL: SELECT MIN(dewpoint) FROM weather
Database: sales_in_weather
Question: What is the maximum and minimum temperature for station number 1 on 15 January 2012?
Evidence: station number 1 refers to station_nbr = 1 ; minimum temperature = tmin; maximum temperature = tmax; on 15 January 2012 refers to date = '2012-01-15'
SQL: SELECT tmax, tmin FROM weather WHERE station_nbr = 1 AND `date` = '2012-01-15'
Database: sales_in_weather
Question: How many stations were able to sell item 5 on January 2014?
Evidence: item 5 refers to item_nbr = 5; on January 2014 refers to Substring (date, 1, 7) = '2014-01'
SQL: SELECT COUNT(DISTINCT T2.station_nbr) AS number FROM sales_in_weather AS T1 INNER JOIN relation AS T2 ON T1.store_nbr = T2.store_nbr WHERE SUBSTR(`date`, 1, 7) = '2014-01' AND item_nbr = 5
Database: sales_in_weather
Question: What is the lowest minimum temperature recorded in store 16 on January 2012?
Evidence: lowest minimum temperature refers to Min(tmin); store 16 refers to store_nbr = 16; on January 2012 refers to Substring (date, 1, 7) = '2012-01'
SQL: SELECT MIN(tmin) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 16 AND T1.`date` LIKE '%2012-01%'
Database: sales_in_weather
Question: How many units of item 7 have been sold by store 7 when the snow is less than 5 inches?
Evidence: item 7 refers to item_nbr = 7; store 7 refers to store_nbr = 7; snow is less than 5 inches refers to snowfall < 5
SQL: SELECT SUM(units) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr INNER JOIN sales_in_weather AS T3 ON T2.store_nbr = T3.store_nbr WHERE T2.store_nbr = 7 AND T3.item_nbr = 7 AND T1.snowfall < 5
Database: sales_in_weather
Question: How many items were sold by store 9 during a snowy day?
Evidence: store 9 refers to store_nbr = 9; snowy day refers to snowfall < > 0 and snowfall is not null; item refers to item_nbr
SQL: SELECT COUNT(DISTINCT item_nbr) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr INNER JOIN sales_in_weather AS T3 ON T2.store_nbr = T3.store_nbr WHERE T3.store_nbr = 9 AND T1.snowfall <> 0 AND T1.snowfall IS NOT NULL
Database: sales_in_weather
Question: List out stations number and items sold by store 17.
Evidence: station number refers to station_nbr; store 17 refers to store_nbr = 17
SQL: SELECT T1.station_nbr, T2.item_nbr FROM relation AS T1 INNER JOIN sales_in_weather AS T2 ON T1.store_nbr = T2.store_nbr WHERE T1.store_nbr = 17 GROUP BY T1.station_nbr, T2.item_nbr
Database: sales_in_weather
Question: List out dates when haze is recorded in store 35.
Evidence: store 35 refers to store_nbr = 35; haze is recorded refers to codesum like '%'||'HZ'||'%'
SQL: SELECT T1.`date` FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 35 AND T1.codesum LIKE '%' OR 'HZ' OR '%'
Database: sales_in_weather
Question: What is the sea level and average speed for store number 3 and store number 4?
Evidence: store number 3 refers to store_nbr = 3; average speed refers to avgspeed; store number 4 refers to store_nbr = 4
SQL: SELECT T1.sealevel, T1.avgspeed FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 3 OR T2.store_nbr = 4
Database: sales_in_weather
Question: Which items from store 1 have the highest units sold during rainy day?
Evidence: store 1 refers to store_nbr = 1; highest unit sold refers to Max(units); during rainy day refers to codesum like '%'||'RA'||'%'; item refers to item_nbr
SQL: SELECT T2.item_nbr FROM weather AS T1 INNER JOIN sales_in_weather AS T2 ON T1.`date` = T2.`date` INNER JOIN relation AS T3 ON T2.store_nbr = T3.store_nbr AND T1.station_nbr = T3.station_nbr WHERE T2.store_nbr = 1 AND T1.codesum LIKE '%' OR 'RA' OR '%' GROUP BY T2.item_nbr ORDER BY T2.units DESC LIMIT 1
Database: sales_in_weather
Question: What is the ratio of the highest and lowest temperature in store 11?
Evidence: store 11 refers to store_nbr = 11; highest temperature refers to Max(tmax); lowest temperature refers to Min(tmin); ration = Divide (Max(tmax), Min(tmin))
SQL: SELECT CAST((MAX(T1.tmax) - MIN(T1.tmin)) AS REAL) / MIN(T1.tmin) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.store_nbr = 11
Database: sales_in_weather
Question: What was the difference of number of units sold in station number 1 and number 2 on year 2012?
Evidence: station 1 refers to station_nbr = 1; station 2 refers to station_nbr = 2; on year 2012 refers to substring (date, 1, 4) = '2012'; difference = Subtract (Sum(units where station_nbr = 1), Sum(units where station_nbr = 2))
SQL: SELECT SUM(CASE WHEN T1.station_nbr = 1 THEN units ELSE 0 END) - SUM(CASE WHEN T1.station_nbr = 2 THEN units ELSE 0 END) FROM relation AS T1 INNER JOIN sales_in_weather AS T2 ON T1.store_nbr = T2.store_nbr WHERE T2.`date` LIKE '%2012%'
Database: sales_in_weather
Question: What was the average temperature difference between store number 18 and 19 on 16 September 2022?
Evidence: store number 18 refers to store_nbr = 18; store number 19 refers to store_nbr = 19; on 16 September 2022 refers to date = '2022-09-16'; average temperature difference = Subtract(tavg where store_nbr = 18, tavg where store_nbr = 19)
SQL: SELECT SUM(CASE WHEN T1.store_nbr = 18 THEN T2.tavg ELSE 0 END) - SUM(CASE WHEN T1.store_nbr = 19 THEN T2.tavg ELSE 0 END) FROM relation AS T1 INNER JOIN weather AS T2 ON T1.station_nbr = T2.station_nbr WHERE T2.`date` = '2012-09-16'
Database: sales_in_weather
Question: How many units are being sold for item 1 when the average temperature is 83?
Evidence: item 1 refers to item_nbr = 1; when the average temperature is 83 refers to tavg = 83
SQL: SELECT SUM(units) FROM weather AS T1 INNER JOIN sales_in_weather AS T2 ON T1.`date` = T2.`date` INNER JOIN relation AS T3 ON T2.store_nbr = T3.store_nbr WHERE T2.item_nbr = 1 AND T1.tavg = 83
Database: sales_in_weather
Question: What is the difference between the units sold for item 1 when the sunset was the earliest and the latest?
Evidence: item 1 refers to item_nbr = 1; when the sunset earliest refers to Min(sunset); latest sunset refers to Max(sunset); difference unit sold refers to Subtract(Sum(units where Min(sunset)), Sum(units where Max(sunset)))
SQL: SELECT ( SELECT SUM(T2.units) AS sumunit FROM weather AS T1 INNER JOIN sales_in_weather AS T2 ON T1.`date` = T2.`date` INNER JOIN relation AS T3 ON T2.store_nbr = T3.store_nbr WHERE T2.item_nbr = 5 AND sunset IS NOT NULL GROUP BY T1.sunset ORDER BY T1.sunset LIMIT 1 ) - ( SELECT SUM(T2.units) AS sumunit FROM weather AS T1 INNER JOIN sales_in_weather AS T2 ON T1.`date` = T2.`date` INNER JOIN relation AS T3 ON T2.store_nbr = T3.store_nbr WHERE T2.item_nbr = 5 AND sunset IS NOT NULL GROUP BY T1.sunset ORDER BY T1.sunset DESC LIMIT 1 )
Database: sales_in_weather
Question: What was the total unit sold for item 10 when the average temperature was below the median temperature?
Evidence: item 10 refers to item_nbr = 10; average temperature below median temperature refers to tavg < avg(tavg); total units refers to Sum(units)
SQL: SELECT SUM(T5.units) FROM weather AS T4 INNER JOIN sales_in_weather AS T5 ON T4.`date` = T5.`date` INNER JOIN relation AS T6 ON T5.store_nbr = T6.store_nbr WHERE T5.item_nbr = 10 AND T4.tavg < ( SELECT AVG(T1.tavg) FROM weather AS T1 INNER JOIN sales_in_weather AS T2 ON T1.`date` = T2.`date` INNER JOIN relation AS T3 ON T2.store_nbr = T3.store_nbr WHERE T2.item_nbr = 10 )
Database: sales_in_weather
Question: What was the average temperature differences during May 2012 for store number 6 and 7?
Evidence: during May 2012 refers to SUBSTR(date, 1, 7) = '2012-05'; store number 6 refers to store_nbr = 6; store number 7 refers to store_nbr = 7; average temperature difference = Subtract (Divide (Sum(tavg), Count (date) where the store_nbr = 6), Divide (Sum(tavg), Count(date) where store_nbr = 7))
SQL: SELECT ( SELECT CAST(SUM(tavg) AS REAL) / COUNT(`date`) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr AND T1.`date` LIKE '%2012-05%' AND T2.store_nbr = 6 ) - ( SELECT CAST(SUM(tavg) AS REAL) / COUNT(`date`) FROM weather AS T1 INNER JOIN relation AS T2 ON T1.station_nbr = T2.station_nbr WHERE T1.`date` LIKE '%2012-05%' AND T2.store_nbr = 7 )
Database: mondial_geo
Question: In which country does Polish found least in?
SQL: SELECT T2.Name FROM ethnicGroup AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Name = 'Polish' GROUP BY T2.Name, T1.Percentage ORDER BY T1.Percentage ASC LIMIT 1
Database: mondial_geo
Question: Which countries have more than 90% of African? List the name of the country in full.
Evidence: Percentage = 90 means 90% of the population
SQL: SELECT T2.Name FROM ethnicGroup AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Name = 'African' AND T1.Percentage > 90
Database: mondial_geo
Question: State the different ethnic group and percentage of the language in Singapore.
SQL: SELECT T1.Name, T1.Percentage FROM ethnicGroup AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T2.Name = 'Singapore' GROUP BY T1.Name, T1.Percentage
Database: mondial_geo
Question: Calculate the percentage of country which gained independence as republic after 1970.
SQL: SELECT CAST(SUM(CASE WHEN Government = 'republic' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Country) FROM politics WHERE STRFTIME('%Y', Independence) > '1970'
Database: mondial_geo
Question: Find the GPD for Bosnia and Herzegovina and the type of government it belongs to.
SQL: SELECT T1.GDP, T2.Government FROM economy AS T1 INNER JOIN politics AS T2 ON T1.Country = T2.Country INNER JOIN country AS T3 ON T3.Code = T2.Country WHERE T3.Name = 'Bosnia and Herzegovina'
Database: mondial_geo
Question: State the country and its population with population growth greater than 2% but infant mortality rate less than 5%.
SQL: SELECT T1.Name, T1.Population FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country WHERE T2.Population_Growth > 2 AND T2.Infant_Mortality < 5
Database: mondial_geo
Question: Which is the majority of the ethnic group in country with great than 10,000,000 population
SQL: SELECT T2.Name FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T1.Population > 10000000 GROUP BY T2.Name, T2.Percentage ORDER BY T2.Percentage DESC LIMIT 2
Database: mondial_geo
Question: Provide the country with its full name which has the most ethnic group? List them all ethnic group together with its percentage.
SQL: SELECT T1.Name, T2.Name, T2.Percentage FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T1.Name = ( SELECT T1.Name FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country GROUP BY T1.Name ORDER BY COUNT(T2.Name) DESC LIMIT 1 ) GROUP BY T1.Name, T2.Name, T2.Percentage
Database: mondial_geo
Question: What is the full name of the country with 100% Africans?
Evidence: Percentage = 100 means 100% of the population
SQL: SELECT T1.Name FROM ethnicGroup AS T1 INNER JOIN country AS T2 ON T1.Country = T2.Code WHERE T1.Percentage = 100 AND T1.Name = 'African'
Database: mondial_geo
Question: List the infant mortality of country with the least Amerindian.
SQL: SELECT T1.Infant_Mortality FROM population AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Country = T2.Country WHERE T2.Name = 'Amerindian' ORDER BY T2.Percentage ASC LIMIT 1
Database: mondial_geo
Question: For country with area greater than 600000, what is agriculture percentage of GDP the country contributes?
SQL: SELECT T2.Agriculture FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Area > 600000 AND T2.Agriculture IS NOT NULL
Database: mondial_geo
Question: Provide the country with republic government which has the highest population growth?
SQL: SELECT T2.Country FROM population AS T1 INNER JOIN politics AS T2 ON T1.Country = T2.Country WHERE T2.Government = 'republic' ORDER BY T1.Population_Growth DESC LIMIT 1
Database: mondial_geo
Question: When did 'Bulgaria' gain independence?
SQL: SELECT T2.Independence FROM country AS T1 INNER JOIN politics AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Bulgaria'
Database: mondial_geo
Question: Calculate the population of Arab in each country?
Evidence: Arab is the name of enthic groups in the country; Population of (Arab in each country) = (percentage of Arab) * (population of each country)
SQL: SELECT T2.Percentage * T1.Population FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Arab'
Database: mondial_geo
Question: What is the population of African in 'Turks and Caicos Islands'?
Evidence: African is the name of enthic groups in the country; Population of (African in Turks and Calcos Island) = (percentage of African) * (population of Turks and Calcos Island)
SQL: SELECT T2.Percentage * T1.Population FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'African' AND T1.Name = 'Turks and Caicos Islands'
Database: mondial_geo
Question: What is the number of growth population for country with the lowest infant mortality?
Evidence: Growth population = population_growth * population
SQL: SELECT T2.Population_Growth * T1.Population FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country WHERE T2.Infant_Mortality IS NOT NULL ORDER BY T2.Infant_Mortality ASC LIMIT 1
Database: mondial_geo
Question: Among countries with more than 400,000 GDP, state its capital and population.
SQL: SELECT T1.Capital, T1.Population FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T2.GDP > 400000
Database: mondial_geo
Question: Calculate the service of GDP for Brazil.
Evidence: The service of GDP can be computed by service * GDP
SQL: SELECT T2.Service * T2.GDP FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Brazil'
Database: mondial_geo
Question: Which country has the highest infant mortality? Also state its population growth.
SQL: SELECT T1.Name, T2.Population_Growth FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country ORDER BY T2.Infant_Mortality DESC LIMIT 1
Database: mondial_geo
Question: List all countries with negative growth in population. State the country, population and growth.
Evidence: Negative growth in population means population_growth < 0
SQL: SELECT T1.Name, T1.Population, T2.Population_Growth FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country WHERE T2.Population_Growth < 0
Database: mondial_geo
Question: For countries with area between 500000 to 1000000, state the country and infant mortality rate.
SQL: SELECT T1.Name, T2.Infant_Mortality FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country WHERE T1.Area BETWEEN 500000 AND 1000000
Database: mondial_geo
Question: Among the countries with more than 3% population growth rate, state the country name in full along with its GDP.
Evidence: Population_growth = 3 means 3% population growth rate
SQL: SELECT T1.Name, T3.GDP FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country INNER JOIN economy AS T3 ON T3.Country = T2.Country WHERE T2.Population_Growth > 3
Database: mondial_geo
Question: What is the infant mortality rate for Ethiopia?
Evidence: Ethiopia is one of country names
SQL: SELECT T2.Infant_Mortality FROM country AS T1 INNER JOIN population AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Ethiopia'
Database: mondial_geo
Question: How much does the gross domestic products goes to the industry sector for Singapore?
Evidence: Singapore is one of country names; GDP refers to gross domestic products; GDP to the industry sector = GDP * Industry
SQL: SELECT T2.GDP * T2.Industry FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T1.Name = 'Singapore'
Database: mondial_geo
Question: How much is her GDP in agriculture for the country with the least area?
SQL: SELECT T2.GDP * T2.Agriculture FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T1.Area ASC LIMIT 1
Database: mondial_geo
Question: Which country has the biggest percentage of the albanian ethnic group?
SQL: SELECT T1.Name FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Albanian' ORDER BY T2.Percentage DESC LIMIT 1
Database: mondial_geo
Question: Among the countries with the African ethnic group, how many of them has a population of over 10000000?
SQL: SELECT COUNT(T1.Name) FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'African' AND T1.Area > 10000000
Database: mondial_geo
Question: Please list the name of the countries with over 5 ethnic groups.
SQL: SELECT T1.Name FROM country AS T1 INNER JOIN ethnicGroup AS T2 ON T1.Code = T2.Country GROUP BY T1.Name HAVING COUNT(T1.Name) > 5
Database: mondial_geo
Question: Which country has the highest GDP?
SQL: SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country ORDER BY T2.GDP DESC LIMIT 1
Database: mondial_geo
Question: Among the countries with a population of over 10000000, how many of them have a GDP of over 500000?
SQL: SELECT COUNT(T1.Name) FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T2.GDP > 500000 AND T1.Population > 10000000
Database: mondial_geo
Question: Please list the capital cities of the countries with an inflation rate under 2.
SQL: SELECT T1.Capital FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T2.Inflation < 2
Database: mondial_geo
Question: Which country has the lowest inflation rate?
SQL: SELECT T1.Name FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T2.Inflation IS NOT NULL ORDER BY T2.Inflation ASC LIMIT 1
Database: mondial_geo
Question: Among the countries whose agriculture percentage of the GDP is under 50%, how many of them have an area of over 8000000?
SQL: SELECT COUNT(T1.Name) FROM country AS T1 INNER JOIN economy AS T2 ON T1.Code = T2.Country WHERE T2.Agriculture < 50 AND T1.Area > 8000000
Database: mondial_geo
Question: How many cities have a salt lake located in it?
SQL: SELECT COUNT(T1.City) FROM located AS T1 INNER JOIN lake AS T2 ON T1.Lake = T2.Name WHERE T2.Type = 'salt'
Database: mondial_geo
Question: Please list the depth of the lakes that are located in the Province of Albania.
SQL: SELECT T2.Depth FROM located AS T1 INNER JOIN lake AS T2 ON T1.Lake = T2.Name WHERE T1.Province = 'Albania'
Database: mondial_geo
Question: The lake with the highest altitude is located in which city?
SQL: SELECT T2.City FROM lake AS T1 LEFT JOIN located AS T2 ON T2.Lake = T1.Name ORDER BY T1.Altitude DESC LIMIT 1
Database: mondial_geo
Question: How many lakes in the Canary Islands cover an area of over 1000000?
SQL: SELECT COUNT(T2.Name) FROM located AS T1 INNER JOIN lake AS T2 ON T1.Lake = T2.Name WHERE T1.Province = 'Canary Islands' AND T2.Area > 1000000
Database: mondial_geo
Question: Which country has the most languages spoken?
SQL: SELECT T1.Name FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country GROUP BY T1.Name ORDER BY COUNT(T2.Name) DESC LIMIT 1
Database: mondial_geo
Question: What is the capital city of the country that has the percentage of Armenian speakers over 90%?
Evidence: Percentage of country > 90% refers to percentage > 90; America is one of country names
SQL: SELECT T1.Capital FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country WHERE T2.Name = 'Armenian' AND T2.Percentage > 90
Database: mondial_geo
Question: Among the countries with a population of under 1000000, how many of them have over 2 languages?
SQL: SELECT T2.Country FROM country AS T1 INNER JOIN language AS T2 ON T1.Code = T2.Country WHERE T1.Population < 1000000 GROUP BY T2.Country HAVING COUNT(T1.Name) > 2
Database: mondial_geo
Question: How many organizations are founded in countries with a population of under 1000000?
SQL: SELECT COUNT(T2.Name) FROM country AS T1 INNER JOIN organization AS T2 ON T1.Code = T2.Country WHERE T1.Population < 1000000
Database: mondial_geo
Question: How many organizations are established after 1999/1/1 in a country whose GDP is under 500000?
SQL: SELECT T1.Country, COUNT(T1.Country) FROM economy AS T1 INNER JOIN organization AS T2 ON T1.Country = T2.Country WHERE T1.GDP < 500000 AND STRFTIME('%Y', T2.Established) < '1999' GROUP BY T1.Country