1sf/bird-sql-train-with-schema huggingface dataset:
Database: sales_in_weather
Tables: sales_in_weather, weather, relation
Columns (table index, column name): -1, *, 0, date, 0, store_nbr, 0, item_nbr, 0, units, 1, station_nbr, 1, date, 1, tmax, 1, tmin, 1, tavg, 1, depart, 1, dewpoint, 1, wetbulb, 1, heat, 1, cool, 1, sunrise, 1, sunset, 1, codesum, 1, snowfall, 1, preciptotal, 1, stnpressure, 1, sealevel, 1, resultspeed, 1, resultdir, 1, avgspeed, 2, store_nbr, 2, station_nbr
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
Tables: sales_in_weather, weather, relation
Columns (table index, column name): -1, *, 0, date, 0, store_nbr, 0, item_nbr, 0, units, 1, station_nbr, 1, date, 1, tmax, 1, tmin, 1, tavg, 1, depart, 1, dewpoint, 1, wetbulb, 1, heat, 1, cool, 1, sunrise, 1, sunset, 1, codesum, 1, snowfall, 1, preciptotal, 1, stnpressure, 1, sealevel, 1, resultspeed, 1, resultdir, 1, avgspeed, 2, store_nbr, 2, station_nbr
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
Tables: sales_in_weather, weather, relation
Columns (table index, column name): -1, *, 0, date, 0, store_nbr, 0, item_nbr, 0, units, 1, station_nbr, 1, date, 1, tmax, 1, tmin, 1, tavg, 1, depart, 1, dewpoint, 1, wetbulb, 1, heat, 1, cool, 1, sunrise, 1, sunset, 1, codesum, 1, snowfall, 1, preciptotal, 1, stnpressure, 1, sealevel, 1, resultspeed, 1, resultdir, 1, avgspeed, 2, store_nbr, 2, station_nbr
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
Tables: sales_in_weather, weather, relation
Columns (table index, column name): -1, *, 0, date, 0, store_nbr, 0, item_nbr, 0, units, 1, station_nbr, 1, date, 1, tmax, 1, tmin, 1, tavg, 1, depart, 1, dewpoint, 1, wetbulb, 1, heat, 1, cool, 1, sunrise, 1, sunset, 1, codesum, 1, snowfall, 1, preciptotal, 1, stnpressure, 1, sealevel, 1, resultspeed, 1, resultdir, 1, avgspeed, 2, store_nbr, 2, station_nbr
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
Tables: sales_in_weather, weather, relation
Columns (table index, column name): -1, *, 0, date, 0, store_nbr, 0, item_nbr, 0, units, 1, station_nbr, 1, date, 1, tmax, 1, tmin, 1, tavg, 1, depart, 1, dewpoint, 1, wetbulb, 1, heat, 1, cool, 1, sunrise, 1, sunset, 1, codesum, 1, snowfall, 1, preciptotal, 1, stnpressure, 1, sealevel, 1, resultspeed, 1, resultdir, 1, avgspeed, 2, store_nbr, 2, station_nbr
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
Tables: sales_in_weather, weather, relation
Columns (table index, column name): -1, *, 0, date, 0, store_nbr, 0, item_nbr, 0, units, 1, station_nbr, 1, date, 1, tmax, 1, tmin, 1, tavg, 1, depart, 1, dewpoint, 1, wetbulb, 1, heat, 1, cool, 1, sunrise, 1, sunset, 1, codesum, 1, snowfall, 1, preciptotal, 1, stnpressure, 1, sealevel, 1, resultspeed, 1, resultdir, 1, avgspeed, 2, store_nbr, 2, station_nbr
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
Tables: sales_in_weather, weather, relation
Columns (table index, column name): -1, *, 0, date, 0, store_nbr, 0, item_nbr, 0, units, 1, station_nbr, 1, date, 1, tmax, 1, tmin, 1, tavg, 1, depart, 1, dewpoint, 1, wetbulb, 1, heat, 1, cool, 1, sunrise, 1, sunset, 1, codesum, 1, snowfall, 1, preciptotal, 1, stnpressure, 1, sealevel, 1, resultspeed, 1, resultdir, 1, avgspeed, 2, store_nbr, 2, station_nbr
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
Tables: sales_in_weather, weather, relation
Columns (table index, column name): -1, *, 0, date, 0, store_nbr, 0, item_nbr, 0, units, 1, station_nbr, 1, date, 1, tmax, 1, tmin, 1, tavg, 1, depart, 1, dewpoint, 1, wetbulb, 1, heat, 1, cool, 1, sunrise, 1, sunset, 1, codesum, 1, snowfall, 1, preciptotal, 1, stnpressure, 1, sealevel, 1, resultspeed, 1, resultdir, 1, avgspeed, 2, store_nbr, 2, station_nbr
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
Tables: sales_in_weather, weather, relation
Columns (table index, column name): -1, *, 0, date, 0, store_nbr, 0, item_nbr, 0, units, 1, station_nbr, 1, date, 1, tmax, 1, tmin, 1, tavg, 1, depart, 1, dewpoint, 1, wetbulb, 1, heat, 1, cool, 1, sunrise, 1, sunset, 1, codesum, 1, snowfall, 1, preciptotal, 1, stnpressure, 1, sealevel, 1, resultspeed, 1, resultdir, 1, avgspeed, 2, store_nbr, 2, station_nbr
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
Tables: sales_in_weather, weather, relation
Columns (table index, column name): -1, *, 0, date, 0, store_nbr, 0, item_nbr, 0, units, 1, station_nbr, 1, date, 1, tmax, 1, tmin, 1, tavg, 1, depart, 1, dewpoint, 1, wetbulb, 1, heat, 1, cool, 1, sunrise, 1, sunset, 1, codesum, 1, snowfall, 1, preciptotal, 1, stnpressure, 1, sealevel, 1, resultspeed, 1, resultdir, 1, avgspeed, 2, store_nbr, 2, station_nbr
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
Tables: sales_in_weather, weather, relation
Columns (table index, column name): -1, *, 0, date, 0, store_nbr, 0, item_nbr, 0, units, 1, station_nbr, 1, date, 1, tmax, 1, tmin, 1, tavg, 1, depart, 1, dewpoint, 1, wetbulb, 1, heat, 1, cool, 1, sunrise, 1, sunset, 1, codesum, 1, snowfall, 1, preciptotal, 1, stnpressure, 1, sealevel, 1, resultspeed, 1, resultdir, 1, avgspeed, 2, store_nbr, 2, station_nbr
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
Tables: sales_in_weather, weather, relation
Columns (table index, column name): -1, *, 0, date, 0, store_nbr, 0, item_nbr, 0, units, 1, station_nbr, 1, date, 1, tmax, 1, tmin, 1, tavg, 1, depart, 1, dewpoint, 1, wetbulb, 1, heat, 1, cool, 1, sunrise, 1, sunset, 1, codesum, 1, snowfall, 1, preciptotal, 1, stnpressure, 1, sealevel, 1, resultspeed, 1, resultdir, 1, avgspeed, 2, store_nbr, 2, station_nbr
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
Tables: sales_in_weather, weather, relation
Columns (table index, column name): -1, *, 0, date, 0, store_nbr, 0, item_nbr, 0, units, 1, station_nbr, 1, date, 1, tmax, 1, tmin, 1, tavg, 1, depart, 1, dewpoint, 1, wetbulb, 1, heat, 1, cool, 1, sunrise, 1, sunset, 1, codesum, 1, snowfall, 1, preciptotal, 1, stnpressure, 1, sealevel, 1, resultspeed, 1, resultdir, 1, avgspeed, 2, store_nbr, 2, station_nbr
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
Tables: sales_in_weather, weather, relation
Columns (table index, column name): -1, *, 0, date, 0, store_nbr, 0, item_nbr, 0, units, 1, station_nbr, 1, date, 1, tmax, 1, tmin, 1, tavg, 1, depart, 1, dewpoint, 1, wetbulb, 1, heat, 1, cool, 1, sunrise, 1, sunset, 1, codesum, 1, snowfall, 1, preciptotal, 1, stnpressure, 1, sealevel, 1, resultspeed, 1, resultdir, 1, avgspeed, 2, store_nbr, 2, station_nbr
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
Tables: sales_in_weather, weather, relation
Columns (table index, column name): -1, *, 0, date, 0, store_nbr, 0, item_nbr, 0, units, 1, station_nbr, 1, date, 1, tmax, 1, tmin, 1, tavg, 1, depart, 1, dewpoint, 1, wetbulb, 1, heat, 1, cool, 1, sunrise, 1, sunset, 1, codesum, 1, snowfall, 1, preciptotal, 1, stnpressure, 1, sealevel, 1, resultspeed, 1, resultdir, 1, avgspeed, 2, store_nbr, 2, station_nbr
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
Tables: sales_in_weather, weather, relation
Columns (table index, column name): -1, *, 0, date, 0, store_nbr, 0, item_nbr, 0, units, 1, station_nbr, 1, date, 1, tmax, 1, tmin, 1, tavg, 1, depart, 1, dewpoint, 1, wetbulb, 1, heat, 1, cool, 1, sunrise, 1, sunset, 1, codesum, 1, snowfall, 1, preciptotal, 1, stnpressure, 1, sealevel, 1, resultspeed, 1, resultdir, 1, avgspeed, 2, store_nbr, 2, station_nbr
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
Tables: borders, city, continent, country, desert, economy, encompasses, ethnicGroup, geo_desert, geo_estuary, geo_island, geo_lake, geo_mountain, geo_river, geo_sea, geo_source, island, islandIn, isMember, lake, language, located, locatedOn, mergesWith, mountain, mountainOnIsland, organization, politics, population, province, religion, river, sea, target
Columns (table index, column name): -1, *, 0, Country1, 0, Country2, 0, Length, 1, Name, 1, Country, 1, Province, 1, Population, 1, Longitude, 1, Latitude, 2, Name, 2, Area, 3, Name, 3, Code, 3, Capital, 3, Province, 3, Area, 3, Population, 4, Name, 4, Area, 4, Longitude, 4, Latitude, 5, Country, 5, GDP, 5, Agriculture, 5, Service, 5, Industry, 5, Inflation, 6, Country, 6, Continent, 6, Percentage, 7, Country, 7, Name, 7, Percentage, 8, Desert, 8, Country, 8, Province, 9, River, 9, Country, 9, Province, 10, Island, 10, Country, 10, Province, 11, Lake, 11, Country, 11, Province, 12, Mountain, 12, Country, 12, Province, 13, River, 13, Country, 13, Province, 14, Sea, 14, Country, 14, Province, 15, River, 15, Country, 15, Province, 16, Name, 16, Islands, 16, Area, 16, Height, 16, Type, 16, Longitude, 16, Latitude, 17, Island, 17, Sea, 17, Lake, 17, River, 18, Country, 18, Organization, 18, Type, 19, Name, 19, Area, 19, Depth, 19, Altitude, 19, Type, 19, River, 19, Longitude, 19, Latitude, 20, Country, 20, Name, 20, Percentage, 21, City, 21, Province, 21, Country, 21, River, 21, Lake, 21, Sea, 22, City, 22, Province, 22, Country, 22, Island, 23, Sea1, 23, Sea2, 24, Name, 24, Mountains, 24, Height, 24, Type, 24, Longitude, 24, Latitude, 25, Mountain, 25, Island, 26, Abbreviation, 26, Name, 26, City, 26, Country, 26, Province, 26, Established, 27, Country, 27, Independence, 27, Dependent, 27, Government, 28, Country, 28, Population_Growth, 28, Infant_Mortality, 29, Name, 29, Country, 29, Population, 29, Area, 29, Capital, 29, CapProv, 30, Country, 30, Name, 30, Percentage, 31, Name, 31, River, 31, Lake, 31, Sea, 31, Length, 31, SourceLongitude, 31, SourceLatitude, 31, Mountains, 31, SourceAltitude, 31, EstuaryLongitude, 31, EstuaryLatitude, 32, Name, 32, Depth, 33, Country, 33, Target
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
Tables: borders, city, continent, country, desert, economy, encompasses, ethnicGroup, geo_desert, geo_estuary, geo_island, geo_lake, geo_mountain, geo_river, geo_sea, geo_source, island, islandIn, isMember, lake, language, located, locatedOn, mergesWith, mountain, mountainOnIsland, organization, politics, population, province, religion, river, sea, target
Columns (table index, column name): -1, *, 0, Country1, 0, Country2, 0, Length, 1, Name, 1, Country, 1, Province, 1, Population, 1, Longitude, 1, Latitude, 2, Name, 2, Area, 3, Name, 3, Code, 3, Capital, 3, Province, 3, Area, 3, Population, 4, Name, 4, Area, 4, Longitude, 4, Latitude, 5, Country, 5, GDP, 5, Agriculture, 5, Service, 5, Industry, 5, Inflation, 6, Country, 6, Continent, 6, Percentage, 7, Country, 7, Name, 7, Percentage, 8, Desert, 8, Country, 8, Province, 9, River, 9, Country, 9, Province, 10, Island, 10, Country, 10, Province, 11, Lake, 11, Country, 11, Province, 12, Mountain, 12, Country, 12, Province, 13, River, 13, Country, 13, Province, 14, Sea, 14, Country, 14, Province, 15, River, 15, Country, 15, Province, 16, Name, 16, Islands, 16, Area, 16, Height, 16, Type, 16, Longitude, 16, Latitude, 17, Island, 17, Sea, 17, Lake, 17, River, 18, Country, 18, Organization, 18, Type, 19, Name, 19, Area, 19, Depth, 19, Altitude, 19, Type, 19, River, 19, Longitude, 19, Latitude, 20, Country, 20, Name, 20, Percentage, 21, City, 21, Province, 21, Country, 21, River, 21, Lake, 21, Sea, 22, City, 22, Province, 22, Country, 22, Island, 23, Sea1, 23, Sea2, 24, Name, 24, Mountains, 24, Height, 24, Type, 24, Longitude, 24, Latitude, 25, Mountain, 25, Island, 26, Abbreviation, 26, Name, 26, City, 26, Country, 26, Province, 26, Established, 27, Country, 27, Independence, 27, Dependent, 27, Government, 28, Country, 28, Population_Growth, 28, Infant_Mortality, 29, Name, 29, Country, 29, Population, 29, Area, 29, Capital, 29, CapProv, 30, Country, 30, Name, 30, Percentage, 31, Name, 31, River, 31, Lake, 31, Sea, 31, Length, 31, SourceLongitude, 31, SourceLatitude, 31, Mountains, 31, SourceAltitude, 31, EstuaryLongitude, 31, EstuaryLatitude, 32, Name, 32, Depth, 33, Country, 33, Target
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
Tables: borders, city, continent, country, desert, economy, encompasses, ethnicGroup, geo_desert, geo_estuary, geo_island, geo_lake, geo_mountain, geo_river, geo_sea, geo_source, island, islandIn, isMember, lake, language, located, locatedOn, mergesWith, mountain, mountainOnIsland, organization, politics, population, province, religion, river, sea, target
Columns (table index, column name): -1, *, 0, Country1, 0, Country2, 0, Length, 1, Name, 1, Country, 1, Province, 1, Population, 1, Longitude, 1, Latitude, 2, Name, 2, Area, 3, Name, 3, Code, 3, Capital, 3, Province, 3, Area, 3, Population, 4, Name, 4, Area, 4, Longitude, 4, Latitude, 5, Country, 5, GDP, 5, Agriculture, 5, Service, 5, Industry, 5, Inflation, 6, Country, 6, Continent, 6, Percentage, 7, Country, 7, Name, 7, Percentage, 8, Desert, 8, Country, 8, Province, 9, River, 9, Country, 9, Province, 10, Island, 10, Country, 10, Province, 11, Lake, 11, Country, 11, Province, 12, Mountain, 12, Country, 12, Province, 13, River, 13, Country, 13, Province, 14, Sea, 14, Country, 14, Province, 15, River, 15, Country, 15, Province, 16, Name, 16, Islands, 16, Area, 16, Height, 16, Type, 16, Longitude, 16, Latitude, 17, Island, 17, Sea, 17, Lake, 17, River, 18, Country, 18, Organization, 18, Type, 19, Name, 19, Area, 19, Depth, 19, Altitude, 19, Type, 19, River, 19, Longitude, 19, Latitude, 20, Country, 20, Name, 20, Percentage, 21, City, 21, Province, 21, Country, 21, River, 21, Lake, 21, Sea, 22, City, 22, Province, 22, Country, 22, Island, 23, Sea1, 23, Sea2, 24, Name, 24, Mountains, 24, Height, 24, Type, 24, Longitude, 24, Latitude, 25, Mountain, 25, Island, 26, Abbreviation, 26, Name, 26, City, 26, Country, 26, Province, 26, Established, 27, Country, 27, Independence, 27, Dependent, 27, Government, 28, Country, 28, Population_Growth, 28, Infant_Mortality, 29, Name, 29, Country, 29, Population, 29, Area, 29, Capital, 29, CapProv, 30, Country, 30, Name, 30, Percentage, 31, Name, 31, River, 31, Lake, 31, Sea, 31, Length, 31, SourceLongitude, 31, SourceLatitude, 31, Mountains, 31, SourceAltitude, 31, EstuaryLongitude, 31, EstuaryLatitude, 32, Name, 32, Depth, 33, Country, 33, Target
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