Chinastark/bird_dataset huggingface dataset:
Database: regional_sales
Note: name of customer refers to customer names; from 2018 to 2020 refers to orderdate between '1/1/2018' and '31/12/2020'; most number of order quantity refers to order quantity = 8;
Question: List the name of the customer with the most number of order quantity from 2018 to 2020.
SQL: SELECT customers.`customer names` FROM customers INNER JOIN `sales orders` ON sales orders._customerid = customers.customerid WHERE sales orders.orderdate LIKE '%/%/18' OR sales orders.orderdate LIKE '%/%/19' OR sales orders.orderdate LIKE '%/%/20' ORDER BY sales orders.`order quantity` DESC LIMIT 1
Database: regional_sales
Note: total order quantity refers to Sum (order quantity); 'Candles' is the products Name; percentage = Divide (Sum(order quantity where product name = 'Candles'), Sum(order quantity)) * 100;
Question: Please indicate total order quantity of product Candles and calculate the percentage of such product among all the orders.
SQL: SELECT sum(CASE WHEN products.`product name` = 'Candles' THEN sales orders.`order quantity` ELSE 0 END), cast(sum(CASE WHEN products.`product name` = 'Candles' THEN sales orders.`order quantity` ELSE 0 END) AS REAL) * 100 / sum(sales orders.`order quantity`) FROM products INNER JOIN `sales orders` ON sales orders._productid = products.productid INNER JOIN `store locations` ON store locations.storeid = sales orders._storeid
Database: regional_sales
Note: "Joshua Bennett" is the name of sales team;
Question: Which region is Joshua Bennet located in?
SQL: SELECT t FROM ( SELECT DISTINCT CASE  WHEN `sales team` = 'Joshua Bennett' THEN region ELSE NULL END AS t FROM `sales team` ) WHERE t IS NOT NULL
Database: regional_sales
Note: most populous country refers to Max(population);
Question: What is the store id of the store located in the most populous county?
SQL: SELECT CASE WHEN max(population) THEN storeid END FROM `store locations`
Database: regional_sales
Note: type of store in City refers to type = 'City'; highest amount of water area refers to Max(water area);
Question: What is the type of store located in the city with the highest amount of water area?
SQL: SELECT CASE WHEN max(`water area`) THEN TYPE END FROM `store locations`
Database: regional_sales
Note: online orders refers to sales channel = 'Online'; shipped during the month of June 2018 refers to SUBSTR(shipdate, 1, 1) = '6' AND SUBSTR(shipdate,-2) = '18';
Question: How many online orders were shipped during the month of June 2018?
SQL: SELECT sum(iif(shipdate LIKE '6/%/18' AND `sales channel` = 'Online', 1, 0)) FROM `sales orders`
Database: regional_sales
Note: highest unit price refers to Max(unit price);
Question: How much is the discount applied to the order with the highest unit price?
SQL: SELECT `discount applied` FROM `sales orders` WHERE replace(`unit price`, ',', '') = ( SELECT replace(`unit price`, ',', '') FROM `sales orders` ORDER BY replace(`unit price`, ',', '') DESC LIMIT 1 ) ORDER BY replace(`unit price`, ',', '') DESC LIMIT 1
Database: regional_sales
Note: highest net profit = Max(Subtract (unit price, unit cost)); name of product refers to product name;
Question: What is the name of the product with the highest net profit?
SQL: SELECT products.`product name` FROM `sales orders` INNER JOIN products ON products.productid = sales orders._productid ORDER BY replace(sales orders.`unit price`, ',', '') - replace(sales orders.`unit cost`, ',', '') DESC LIMIT 1
Database: regional_sales
Note: average household income = Divide (Sum(household income), Count(city name)); highest number of store refers to Max(Count(storeid));
Question: In the Northeast region, what is the average household income for each city located in the state with the highest number of stores?
SQL: SELECT avg(store locations.`household income`) FROM regions INNER JOIN `store locations` ON store locations.statecode = regions.statecode WHERE regions.region = 'Northeast' GROUP BY store locations.state ORDER BY count(store locations.storeid) DESC LIMIT 1
Database: regional_sales
Note: median income no more than 30,000 refers to median income < 30,000;
Question: In which region can you find the stores located in the state whose median income is no more than 30,000?
SQL: SELECT t FROM ( SELECT DISTINCT CASE  WHEN store locations.`median income` < 30000 THEN regions.region END AS t FROM regions regions INNER JOIN `store locations` store locations ON store locations.statecode = regions.statecode ) WHERE t IS NOT NULL
Database: regional_sales
Note: "West" is the region; land area is below 20,000,000 refers to land area < 20,000,000;
Question: In the West, how many stores are there in the city whose land area is below 20,000,000?
SQL: SELECT sum(CASE WHEN regions.region = 'West' AND store locations.`land area` < 20000000 THEN 1 ELSE 0 END) FROM regions INNER JOIN `store locations` ON store locations.statecode = regions.statecode
Database: regional_sales
Note: highest net profit = Max(Subtract (unit price, unit cost)); name of customer refers to customer names;
Question: What is the name of the customer who purchased the product with the highest net profiit?
SQL: SELECT `customer names` FROM ( SELECT customers.`customer names`, sales orders.`unit price` - sales orders.`unit cost` AS "net profit" FROM customers customers INNER JOIN `sales orders` sales orders ON sales orders._customerid = customers.customerid ) ORDER BY `net profit` DESC LIMIT 1
Database: regional_sales
Note: shipped refers to shipdate; in 2019 refers to shipped in 2019 refers to SUBSTR(shipdate, -2) = '19'; order in the said year refers to SUBSTR(orderdate, -2) = '19'; highest number of order refers to Max(Count(ordernumber));
Question: In 2019, how many orders were shipped by the sales team with the highest number of orders in the said year? Provide the name of the sales team.
SQL: SELECT count(sales orders.ordernumber), sales team.`sales team` FROM `sales orders` INNER JOIN `sales team` ON sales team.salesteamid = sales orders._salesteamid WHERE sales orders.orderdate LIKE '%/%/19' AND sales orders.shipdate LIKE '%/%/19' GROUP BY sales team.`sales team` ORDER BY count(sales orders.ordernumber) DESC LIMIT 1
Database: regional_sales
Note: order quantity of no less than 5 refers to order quantity > 5; shipped in the month of May 2019 refers to shipdate LIKE '5/%/19'; lowest net profit = Min(Subtract(unit price, unit cost)); name of product refers to products Name;
Question: Among the products with an order quantity of no less than 5 that was shipped in the month of May 2019, what is the name of the product with the lowest net profit?
SQL: SELECT products.`product name` FROM `sales orders` INNER JOIN products ON products.productid = sales orders._productid WHERE sales orders.`order quantity` > 5 AND shipdate LIKE '5/%/19' ORDER BY replace(sales orders.`unit price`, ',', '') - replace(sales orders.`unit cost`, ',', '') ASC LIMIT 1
Database: regional_sales
Note: detailed coordinates refers to latitude, longitude; highest net profit = Max(Subtract(unit price, unit cost));
Question: What is the detailed coordinates of the store where the product with the 4th highest profit were purchased from?
SQL: SELECT store locations.latitude, store locations.longitude FROM `sales orders` INNER JOIN `store locations` ON store locations.storeid = sales orders._storeid ORDER BY replace(sales orders.`unit price`, ',', '') - replace(sales orders.`unit cost`, ',', '') DESC LIMIT 3, 1
Database: regional_sales
Note: shipped refers to shipdate; in 2020 refers to SUBSTR(shipdate, -2) = '20'; highest amount of shipped orders refers to Max(Count(ordernumber));
Question: How many orders were shipped by the sales team with the highest amount of shipped orders in 2020? Give the name of the said sales team.
SQL: SELECT count(sales orders.ordernumber), sales team.`sales team` FROM `sales orders` INNER JOIN `sales team` ON sales team.salesteamid = sales orders._salesteamid WHERE sales orders.shipdate LIKE '%/%/20' GROUP BY sales team.`sales team` ORDER BY count(sales orders.ordernumber) DESC LIMIT 1
Database: regional_sales
Note: shipped refers to shipdate; between 2018 and 2020 refers to SUBSTR(shipdate, -2) IN ('18', '19', '20'); 'Carl Nguyen' is the name of sales team; average shipped orders per year = Divide (Count(ordernumber), 3);
Question: Between 2018 to 2020, what is the average amount of shipped orders per year under Carl Nguyen?
SQL: SELECT cast(count(sales orders.ordernumber) AS REAL) / 3 FROM `sales orders` INNER JOIN `sales team` ON sales team.salesteamid = sales orders._salesteamid WHERE (sales team.`sales team` = 'Carl Nguyen' AND shipdate LIKE '%/%/18') OR (sales team.`sales team` = 'Carl Nguyen' AND shipdate LIKE '%/%/19') OR (sales team.`sales team` = 'Carl Nguyen' AND shipdate LIKE '%/%/20')
Database: regional_sales
Note: highest net profit refers to Max(Subtract(unit price, unit cost)); name of product refers to product name;
Question: What is the amount of discount applied to the product with the highest net profit and what is the name of the said product?
SQL: SELECT sales orders.`unit price` * sales orders.`discount applied`, products.`product name` FROM `sales orders` INNER JOIN products ON products.productid = sales orders._productid ORDER BY replace(sales orders.`unit price`, ',', '') - replace(sales orders.`unit cost`, ',', '') DESC LIMIT 1
Database: regional_sales
Note: highest price per order after discount refers to Max(Subtract(Multiply (unit price, order quantity), discount applied)); name of customer refers to customer names;
Question: What are the names of the top 3 customers who paid the highest amount of price per order after discount?
SQL: SELECT `customer names` FROM ( SELECT customers.`customer names` , replace(sales orders.`unit price`, ',', '') * sales orders.`order quantity` - replace(sales orders.`unit price`, ',', '') * sales orders.`discount applied` AS t FROM customers customers INNER JOIN `sales orders` sales orders ON sales orders._customerid = customers.customerid ) ORDER BY t DESC LIMIT 3
Database: regional_sales
Note: order refers to orderdate; in 2020 refers to Substr(orderdate, -2) = '20'; January refers to Substr(orderdate, 1, 1) = '1';  most preferred sales channel refers to sales channel where Max(Count(ordernumber));
Question: Which sales channel was most preferred in commercializing products in January 2020 based on the number of orders placed?
SQL: SELECT `sales channel` FROM `sales orders` WHERE orderdate LIKE '1/%/20' GROUP BY `sales channel` ORDER BY count(`sales channel`) DESC LIMIT 1
Database: regional_sales
Note: sales order 'SO - 0005951' refers to ordernumber = 'SO - 0005951'; product refers to product name;
Question: Name the product that was registered in the sales order 'SO - 0005951'.
SQL: SELECT t FROM ( SELECT DISTINCT CASE  WHEN sales orders.ordernumber = 'SO - 0005951' THEN products.`product name` ELSE NULL END AS t FROM products products INNER JOIN `sales orders` sales orders ON sales orders._productid = products.productid ) WHERE t IS NOT NULL
Database: regional_sales
Note: sales order 'SO - 0001004' refers to ordernumber = 'SO - 0001004'; store location refers to city name;
Question: Identify the store location and sales team who processed the sales order 'SO - 0001004'.
SQL: SELECT sales team.`sales team`, store locations.`city name` FROM `store locations` INNER JOIN `sales orders` ON sales orders._storeid = store locations.storeid INNER JOIN `sales team` ON sales team.salesteamid = sales orders._salesteamid WHERE sales orders.ordernumber = 'SO - 0001004'
Database: regional_sales
Note: "Gilbert" is the city name; 'Arizona' is the name of state; customer relationship in 2019 refers to procureddate LIKE '%/19'; top net profit refers to Max(Subtract(unit price, unit cost));
Question: Identify the top customer of the store located in Gilbert, Arizona based on net profit associated with the customer relationship in 2019.
SQL: SELECT customers.`customer names` FROM customers INNER JOIN `sales orders` ON sales orders._customerid = customers.customerid INNER JOIN `store locations` ON store locations.storeid = sales orders._storeid WHERE store locations.`city name` = 'Gilbert' AND sales orders.procureddate LIKE '%/%/19' ORDER BY replace(sales orders.`unit price`, ',', '') - replace(sales orders.`unit cost`, ',', '') DESC LIMIT 1
Database: regional_sales
Note: "Chandler" is the city name; orders refers to orderdate; in 2020 refers to Substr(orderdate, -2) = '20';
Question: How many sales orders were processed by the store located in Chandler in 2020?
SQL: SELECT sum(CASE WHEN store locations.`city name` = 'Chandler' AND sales orders.orderdate LIKE '%/%/20' THEN 1 ELSE 0 END) FROM `sales orders` INNER JOIN `store locations` ON store locations.storeid = sales orders._storeid
Database: regional_sales
Note: "Glendale" is the city name; Average household income refers to avg(household income);
Question: What is the average household income of Glendale?
SQL: SELECT avg(`household income`) FROM `store locations` WHERE `city name` = 'Glendale'
Database: regional_sales
Note: sales orders in 2020 refers to Substr(orderdate, -2) = '20'; best discount applied refers to Max(discount applied);
Question: What was the best discount applied to sales orders in 2020?
SQL: SELECT max(`discount applied`) FROM `sales orders` WHERE orderdate LIKE '%/%/20'
Database: european_football_1
Note: consecutive games mean happen one after the other without interruption and refer to date; tied refers to ftr = 'D';
Question: What is the most consecutive games tied by Ebbsfleet as an away team in the 2008 season?
SQL: SELECT count(*) FROM matchs WHERE season = 2008 AND awayteam = 'Ebbsfleet' AND ftr = 'D'
Database: european_football_1
Note: divIDE(COUNT(division where country = 'England'), COUNT(division)) as percentage;
Question: Of all the divisions in the world, what percentage of them belong to England?
SQL: SELECT cast(count(CASE WHEN country = 'England' THEN division ELSE NULL END) AS REAL) * 100 / count(division) FROM divisions
Database: european_football_1
Note: Percentage of games won = divIDE(COUNT(ftr = 'H' where hometeam = 'Cittadella'), COUNT(div where hometeam = 'Cittadella')) as percentage; Percentage of games lost = divIDE(COUNT(ftr = 'A' where hometeam = 'Cittadella')), COUNT(div where hometeam = 'Cittadella') as percentage; percentage of games drawn = divIDE(SUM(ftr = 'D'where hometeam = 'Cittadella'), COUNT(div where hometeam = 'Cittadella')) as percentage;
Question: What percentage of games won, games lost and games drawn does Cittadella have as a home team in total?
SQL: SELECT cast(count(CASE WHEN ftr = 'H' THEN 1 ELSE NULL END) / count(hometeam) AS REAL) * 100, cast(count(CASE WHEN ftr = 'A' THEN 1 ELSE NULL END) AS REAL) / count(hometeam), cast(count(CASE WHEN ftr = 'D' THEN 1 ELSE NULL END) AS REAL) / count(hometeam) FROM matchs WHERE hometeam = 'Cittadella'
Database: european_football_1
Note: Caen refers to hometeam; which one refers to awayteam; the highest winning percentage = MAX(divIDE(COUNT(ftr = 'A' where hometeam = 'Caen', season = '2010')), COUNT(div where hometeam = 'Caen', season = '2010')) as percentage;
Question: Of all the teams that played as a team away against Caen in the 2010 season, which one has the highest winning percentage?
SQL: SELECT awayteam FROM matchs WHERE hometeam = 'Caen' AND season = 2010 AND ftr = 'A' GROUP BY awayteam ORDER BY count(awayteam) DESC LIMIT 1
Database: european_football_1
Note: division refers to div; divIDE(COUNT(div = 'F1', date = '2005/07/30'), COUNT(div, date = '2005/07/30')) as percentage;
Question: What percentage of matches played on 2005/07/30 belong to the F1 division?
SQL: SELECT cast(sum(CASE WHEN div = 'F1' THEN 1 ELSE 0 END) AS REAL) * 100 / count(div) FROM matchs WHERE Date = '2005-07-30'
Database: european_football_1
Note: tied games refer ftr = 'D'; divIDE(COUNT(div where ftr = 'D', hometeam = 'Sassuolo' or awayteam = 'Sassuolo'), COUNT(div where hometeam = 'Sassuolo' or awayteam = 'Sassuolo')) as percentage;
Question: What percentage of all tied games did the Sassuolo team play in?
SQL: SELECT cast(sum(CASE WHEN hometeam = 'Sassuolo' OR awayteam = 'Sassuolo' THEN 1 ELSE 0 END) AS REAL) * 100 / count(ftr) FROM matchs WHERE ftr = 'D'
Database: european_football_1
Note: scored 2 goals refers to ftag = 2, which is short name for Final-time Away-team Goals; divIDE(COUNT(div where season = 2017, ftag = '2'), COUNT(div where season = 2017)) as percentage;
Question: What is the percentage whereby the away team scored 2 goals during the 2017 seasons?
SQL: SELECT cast(sum(CASE WHEN ftag = 2 THEN 1 ELSE 0 END) / count(ftag) AS REAL) * 100 FROM matchs WHERE season = 2017
Database: european_football_1
Note: all the teams include both hometeam and awayteam; name = 'EFL League One'; div = 'E2';
Question: What is the name of all the teams that played in the EFL League One division?
SQL: SELECT matchs.hometeam,matchs.awayteam FROM matchs INNER JOIN divisions ON matchs.div=divisions.division WHERE divisions.name = 'EFL League One' AND matchs.div = 'E2'
Database: european_football_1
Note: teams include both hometeam and awayteam; country = 'Greece'; scored 4 or more goals refer to ftag≥4, which is short name for Final-time Away-team Goals;
Question: How many teams playing in divisions in Greece have ever scored 4 or more goals?
SQL: SELECT count(DISTINCT CASE WHEN matchs.fthg >= 4 THEN hometeam ELSE NULL END) + count(DISTINCT CASE WHEN matchs.ftag >= 4 THEN awayteam ELSE NULL END) FROM matchs INNER JOIN divisions ON matchs.div = divisions.division WHERE divisions.country = 'Greece'
Database: european_football_1
Note: matches refer to div; Scottish Championship is a name of the league; equal result of 2-2 refers to ftag = 2 AND fthg = 2;
Question: How many matches played in the 2019 season of Scottish Championship league were ended with an equal result of 2-2?
SQL: SELECT count(matchs.div) FROM matchs INNER JOIN divisions ON matchs.div = divisions.division WHERE matchs.season = 2019 AND divisions.name = 'Scottish Championship' AND matchs.ftag = 2 AND matchs.fthg = 2
Database: european_football_1
Note: local team refers to hometeam; Scottish means belong to the country = 'Scotland'; scored 10 goals refer to fthg = 10, which is short name for Final-time Away-team Goals;
Question: Which 2 Scottish teams scored 10 goals playing as a local team and in which seasons?
SQL: SELECT matchs.hometeam FROM matchs INNER JOIN divisions ON matchs.div = divisions.division WHERE divisions.country = 'Scotland' AND matchs.fthg = 10
Database: european_football_1
Note: local team refers to hometeam; Spanish means belong to the country = 'Spain'; LaLiga is a name of division; won as a local team refers to ftr = 'H', where H stands for home victory; divIDE(COUNT(div where name = 'LaLiga', country = 'Spain', season = 2017, FRT = 'H'), COUNT(div where name = 'LaLiga', country = 'Spain', season = 2017)) as percentage;
Question: From the Spanish LaLiga division in the 2017 season, which team won the most times as a local team and by what percentage?
SQL: SELECT matchs.hometeam hwht , cast(count(CASE WHEN matchs.ftr = 'H' THEN 1 ELSE NULL END) AS REAL) * 100 / count(hometeam) FROM matchs INNER JOIN divisions ON matchs.div = divisions.division WHERE divisions.name = 'LaLiga' AND divisions.country = 'Spain' AND matchs.season = 2017
Database: european_football_1
Note: matches = div;
Question: How many teams that played in the 2012 season belong to any of the English divisions and what percentage play in each of the divisions?
SQL: SELECT ( SELECT count(matchs.div) AS total FROM matchs matchs INNER JOIN divisions divisions ON divisions.division = matchs.div WHERE divisions.country = 'England' AND matchs.season = 2012 ) AS num , CASE WHEN 1 THEN t.result END AS percentage FROM ( SELECT 100.0 * count(matchs.div) / ( SELECT count(matchs.div) FROM matchs matchs INNER JOIN divisions divisions ON divisions.division = matchs.div WHERE divisions.country = 'England' AND matchs.season = 2012 ) AS RESULT FROM matchs matchs INNER JOIN divisions divisions ON divisions.division = matchs.div WHERE divisions.country = 'England' AND matchs.season = 2012 GROUP BY divisions.division ) AS t
Database: european_football_1
Note: MAX(SUM where fthg, ftag, season = 2021);
Question: What is the highest final-time score across all divisions in the 2021 season? Which team was the team that made up that score?
SQL: SELECT ( SELECT max(max(ftag), max(fthg)) FROM matchs WHERE season = 2021 ) AS t1, awayteam FROM matchs WHERE season = 2021 AND fthg = t1 OR ftag = t1
Database: european_football_1
Note: the highest final time goal refers to MAX(fthg); P1 = div;
Question: What is the name of the home team in division P1 with the highest final time goal in all seasons?
SQL: SELECT hometeam FROM matchs WHERE div = 'P1' AND season = 2021 ORDER BY fthg DESC LIMIT 1
Database: european_football_1
Note: 2010 refers to season = 2010; SUBTRACT(divIDE(COUNT(div where ftr = 'H', season = 2010), COUNT(div where season = 2010)), COUNT(div where ftr = 'A', season = 2010), COUNT(div where season = 2010)) as percentage;
Question: What was the difference in home team and away team win percentages across all divisions in 2010?
SQL: SELECT cast(count(CASE WHEN ftr = 'H' THEN 1 ELSE NULL END) AS REAL) * 100 / count(ftr) - cast(count(CASE WHEN ftr = 'A' THEN 1 ELSE NULL END) AS REAL) * 100 / count(ftr) difference FROM matchs WHERE season = 2010
Database: european_football_1
Note: the most draft matches refer to MAX(COUNT(div)) where ftr = 'D';
Question: Which division had the most draft matches in the 2008 season?
SQL: SELECT div FROM matchs WHERE season = 2008 AND ftr = 'D' GROUP BY div ORDER BY count(ftr) DESC LIMIT 1
Database: european_football_1
Note: won at home refers to ftr = 'H'; January 20, 2008 refers to date = '2008-01-20'; EC division refers to div = 'EC';
Question: Which team won the match in the EC division on January 20, 2008 at home?
SQL: SELECT hometeam FROM matchs WHERE div = 'EC' AND Date = '2008-01-20' AND ftr = 'H'
Database: european_football_1
Note: September 13, 2009 refers to date = '2009-09-13'; Club Brugge refers to hometeam; Genk refers to awayteam;
Question: What is the name of the division in which Club Brugge and Genk competed on September 13, 2009?
SQL: SELECT divisions.name FROM matchs INNER JOIN divisions ON matchs.div = divisions.division WHERE matchs.date = '2009-09-13' AND matchs.hometeam = 'Club Brugge' AND matchs.awayteam = 'Genk'
Database: european_football_1
Note: Scottish Premiership is a name of division; from 2006 to 2008 means seasons between 2006 and 2008;
Question: How many matches were played in the Scottish Premiership division from 2006 to 2008?
SQL: SELECT count(matchs.div) FROM matchs INNER JOIN divisions ON matchs.div = divisions.division WHERE divisions.name = 'Scottish Premiership' AND (matchs.season BETWEEN 2006 AND 2008)
Database: european_football_1
Note: FALSE;
Question: In which division was the match between Hibernian, the away team, and Hearts, the home team, played? To which country does this division belong?
SQL: SELECT DISTINCT divisions.division,divisions.country FROM matchs INNER JOIN divisions ON matchs.div = divisions.division WHERE matchs.hometeam = 'Hearts' AND matchs.awayteam = 'Hibernian'
Database: european_football_1
Note: Bundesliga is a name of division; the highest final time goals refers to MAX(ftag);
Question: Which away team in the division of Bundesliga has the highest final time goals?
SQL: SELECT matchs.awayteam FROM matchs INNER JOIN divisions ON matchs.div=divisions.division WHERE divisions.name = 'Bundesliga' ORDER BY matchs.ftag DESC LIMIT 1
Database: european_football_1
Note: Italian means belong to country = 'Italy";
Question: Please provide the names of any three away teams that competed in the Italian divisions.
SQL: SELECT matchs.awayteam FROM matchs INNER JOIN divisions ON matchs.div=divisions.division WHERE divisions.country = 'Italy' LIMIT 3
Database: european_football_1
Note: the lowest number of draft matches refers to MIN(COUNT(ftr = 'D'));
Question: What is the name of the division that has had the lowest number of draft matches in the 2019 season?
SQL: SELECT divisions.name FROM matchs INNER JOIN divisions ON matchs.div = divisions.division WHERE matchs.season = 2019 AND matchs.ftr = 'D' GROUP BY divisions.division ORDER BY count(ftr) LIMIT 1