1sf/bird-sql-dev-xresults huggingface dataset:
Database: european_football_2
Question: For the teams with normal build-up play dribbling class in 2014, List the names of the teams with less than average chance creation passing, in descending order of chance creation passing.
Evidence: normal build-up play dribbling class refers to buildUpPlayDribblingClass = 'Normal'; in 2014 refers to date > = '2014-01-01 00:00:00' AND date < = '2014-01-31 00:00:00'; names of the teams refers to team_long_name; less than average chance creation passing = DIVIDE(SUM(chanceCreationPassing), COUNT(id)) > chanceCreationPassing;
SQL: SELECT t3.team_long_name FROM Team AS t3 INNER JOIN Team_Attributes AS t4 ON t3.team_api_id = t4.team_api_id WHERE t4.buildUpPlayDribblingClass = 'Normal' AND t4.chanceCreationPassing < ( SELECT CAST(SUM(t2.chanceCreationPassing) AS REAL) / COUNT(t1.id) FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t2.buildUpPlayDribblingClass = 'Normal' AND SUBSTR(t2.`date`, 1, 4) = '2014') ORDER BY t4.chanceCreationPassing DESC
Database: european_football_2
Question: List the name of leagues in which the average goals by the home team is higher than the away team in the 2009/2010 season.
Evidence: name of league refers to League.name; average goals by the home team is higher than the away team = AVG(home_team_goal) > AVG(away_team_goal); AVG(xx_goal) = SUM(xx_goal) / COUNT(DISTINCT Match.id); 2009/2010 season refers to season = '2009/2010'
SQL: SELECT t1.name FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2009/2010' GROUP BY t1.name HAVING (CAST(SUM(t2.home_team_goal) AS REAL) / COUNT(DISTINCT t2.id)) - (CAST(SUM(t2.away_team_goal) AS REAL) / COUNT(DISTINCT t2.id)) > 0
Database: european_football_2
Question: What is the short name of the football team Queens Park Rangers?
Evidence: short name of the football team refers to team_short_name; Queens Park Rangers refers to team_long_name = 'Queens Park Rangers';
SQL: SELECT team_short_name FROM Team WHERE team_long_name = 'Queens Park Rangers'
Database: european_football_2
Question: List the football players with a birthyear of 1970 and a birthmonth of October.
Evidence: players with a birthyear of 1970 and a birthmonth of October refers to substr(birthday,1,7) AS 'year-month',WHERE year = '1970' AND month = '10';
SQL: SELECT player_name FROM Player WHERE SUBSTR(birthday, 1, 7) = '1970-10'
Database: european_football_2
Question: What is the ADO Den Haag team freedom of movement in the 1st two thirds of the pitch?
Evidence: ADO Den Haag refers to team_long_name = 'ADO Den Haag'; freedom of movement in the 1st two thirds of the pitch refers to buildUpPlayPositioningClass;
SQL: SELECT DISTINCT t2.buildUpPlayPositioningClass FROM Team AS t1 INNER JOIN Team_attributes AS t2 ON t1.team_fifa_api_id = t2.team_fifa_api_id WHERE t1.team_long_name = 'ADO Den Haag'
Database: european_football_2
Question: What is the football player Francois Affolter header's finishing rate on 18/09/2014?
Evidence: header's finishing rate refers to heading_accuracy; on 18/09/2014 refers to date = '2014-09-18 00:00:00';
SQL: SELECT t2.heading_accuracy FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Francois Affolter' AND SUBSTR(t2.`date`, 1, 10) = '2014-09-18'
Database: european_football_2
Question: What is the overall rating of the football player Gabriel Tamas in year 2011?
Evidence: in year 2011 refers to strftime('%Y', date) = '2011';
SQL: SELECT t2.overall_rating FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.player_name = 'Gabriel Tamas' AND strftime('%Y', t2.date) = '2011'
Database: european_football_2
Question: How many matches in the 2015/2016 season were held in Scotland Premier League
?
Evidence: Scotland Premier League refers to League.name = 'Scotland Premier League';
SQL: SELECT COUNT(t2.id) FROM League AS t1 INNER JOIN Match AS t2 ON t1.id = t2.league_id WHERE t2.season = '2015/2016' AND t1.name = 'Scotland Premier League'
Database: debit_card_specializing
Question: Please list the product description of the products consumed in September, 2013.
Evidence: September 2013 refers to 201309; The first 4 strings of the Date values in the yearmonth table can represent year; The 5th and 6th string of the date can refer to month.
SQL: SELECT T3.Description FROM transactions_1k AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID INNER JOIN products AS T3 ON T1.ProductID = T3.ProductID WHERE T2.Date = '201309'
Database: debit_card_specializing
Question: Please list the countries of the gas stations with transactions taken place in June, 2013.
Evidence: June 2013 refers to '201306'; The first 4 strings of the Date values in the yearmonth table can represent year; The 5th and 6th string of the date can refer to month;
SQL: SELECT DISTINCT T2.Country FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID INNER JOIN yearmonth AS T3 ON T1.CustomerID = T3.CustomerID WHERE T3.Date = '201306'
Database: debit_card_specializing
Question: What is the average total price of the transactions taken place in January, 2012?
Evidence: In January, 2012 means Date contains '2012-01'
SQL: SELECT AVG(Amount) FROM transactions_1k WHERE Date LIKE '2012-01%'
Database: debit_card_specializing
Question: Among the customers who paid in euro, how many of them have a monthly consumption of over 1000?
Evidence: Pays in euro = Currency = 'EUR'.
SQL: SELECT COUNT(*) FROM yearmonth AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.Currency = 'EUR' AND T1.Consumption > 1000.00
Database: debit_card_specializing
Question: Please list the product descriptions of the transactions taken place in the gas stations in the Czech Republic.
Evidence: Czech Republic can be represented as the Country value in the gasstations table is 'CZE'; 
SQL: SELECT DISTINCT T3.Description FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID INNER JOIN products AS T3 ON T1.ProductID = T3.ProductID WHERE T2.Country = 'CZE'
Database: debit_card_specializing
Question: How many transactions taken place in the gas station in the Czech Republic are with a price of over 1000?
Evidence: Gas station in the Czech Republic implies that Country = 'CZE'
SQL: SELECT COUNT(T1.TransactionID) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T2.Country = 'CZE' AND T1.Price > 1000
Database: debit_card_specializing
Question: Among the transactions made in the gas stations in the Czech Republic, how many of them are taken place after 2012/1/1?
Evidence: Czech Republic can be represented as the Country value in the gasstations table is 'CZE'
SQL: SELECT COUNT(T1.TransactionID) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T2.Country = 'CZE' AND STRFTIME('%Y', T1.Date) >= '2012'
Database: debit_card_specializing
Question: What is the average total price of the transactions taken place in gas stations in the Czech Republic?
Evidence: Gas station in the Czech Republic implies that Country = 'CZE'
SQL: SELECT AVG(T1.Price) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T2.Country = 'CZE'
Database: debit_card_specializing
Question: Which customer paid the most in 2012/8/25?
Evidence: '2012/8/25' can be represented by '2012-08-25'
SQL: SELECT CustomerID FROM transactions_1k WHERE Date = '2012-08-25' GROUP BY CustomerID ORDER BY SUM(Price) DESC LIMIT 1
Database: debit_card_specializing
Question: Which country's gas station had the first paid cusomer in 2012/8/25?
Evidence: '2012/8/25' can be represented by '2012-08-25'
SQL: SELECT T2.Country FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date = '2012-08-25' ORDER BY T1.Time DESC LIMIT 1
Database: debit_card_specializing
Question: What kind of currency did the customer paid at 16:25:00 in 2012/8/24?
Evidence: '2012/8/24' can be represented by '2012-08-24'; 
SQL: SELECT DISTINCT T3.Currency FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID INNER JOIN customers AS T3 ON T1.CustomerID = T3.CustomerID WHERE T1.Date = '2012-08-24' AND T1.Time = '16:25:00'
Database: debit_card_specializing
Question: What segment did the customer have at 2012/8/23 21:20:00?
Evidence: '2012/8/23' can be represented by '2012-08-23'
SQL: SELECT T2.Segment FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.date = '2012-08-23' AND T1.time = '21:20:00'
Database: debit_card_specializing
Question: How many transactions were paid in CZK in the morning of 2012/8/26?
Evidence: '2012/8/26' can be represented by '2012-08-26'; The morning refers to the time before '13:00:00'
SQL: SELECT COUNT(T1.TransactionID) FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Date = '2012-08-26' AND T1.Time < '13:00:00' AND T2.Currency = 'CZK'
Database: debit_card_specializing
Question: For the earliest customer, what segment did he/she have?
SQL: SELECT T2.Segment FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID ORDER BY Date ASC LIMIT 1
Database: debit_card_specializing
Question: For the deal happened at 2012/8/24 12:42:00, which country was it?
Evidence: '2012/8/24 12:42:00' can refer to date = '2012-08-24' AND T1.time = '12:42:00' in the database
SQL: SELECT T2.Country FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date = '2012-08-24' AND T1.Time = '12:42:00'
Database: debit_card_specializing
Question: What was the product id of the transaction happened at 2012/8/23 21:20:00?
Evidence: '2012/8/23 21:20:00' can refer to date = '2012-08-23' AND T1.time = '21:20:00' in the database
SQL: SELECT T1.ProductID FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date = '2012-08-23' AND T1.Time = '21:20:00'
Database: debit_card_specializing
Question: For the customer who paid 124.05 in 2012/8/24, how much did he/she spend during the January of 2012? And what is the date and expenses exactly?
Evidence: '2012/8/24' can be represented by '2012-08-24'; expense and the consumption has the similar meaning.
SQL: SELECT T1.CustomerID, T2.Date, T2.Consumption FROM transactions_1k AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Date = '2012-08-24' AND T1.Price = 124.05 AND T2.Date = '201201'
Database: debit_card_specializing
Question: For all the transactions happened during 8:00-9:00 in 2012/8/26, how many happened in CZE?
Evidence: Czech Republic can be represented as the Country value in the gasstations table is 'CZE'; '2012/8/26' can be represented by '2012-08-26'; during 8:00-9:00 can be represented as Time BETWEEN '08:00:00' AND '09:00:00'
SQL: SELECT COUNT(T1.TransactionID) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date = '2012-08-26' AND T1.Time BETWEEN '08:00:00' AND '09:00:00' AND T2.Country = 'CZE'
Database: debit_card_specializing
Question: There's one customer spent 214582.17 in the June of 2013, which currency did he/she use?
Evidence: June of 2013 means Date contains '201306' in the yearmonth.date of the database
SQL: SELECT T2.Currency FROM yearmonth AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Date = '201306' AND T1.Consumption = 214582.17
Database: debit_card_specializing
Question: Which country was the card owner of No.667467 in?
SQL: SELECT T2.Country FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.CardID = '667467'
Database: debit_card_specializing
Question: What's the nationality of the customer who spent 548.4 in 2012/8/24?
Evidence: '2012/8/24' can be represented by '2012-08-24'
SQL: SELECT T2.Country FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date = '2012-08-24' AND T1.Price = 548.4
Database: debit_card_specializing
Question: What is the percentage of the customers who used EUR in 2012/8/25?
Evidence: '2012/8/25' can be represented by '2012-08-25'
SQL: SELECT CAST(SUM(IIF(T2.Currency = 'EUR', 1, 0)) AS FLOAT) * 100 / COUNT(T1.CustomerID) FROM transactions_1k AS T1 INNER JOIN customers AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Date = '2012-08-25'
Database: debit_card_specializing
Question: For the customer who paid 634.8 in 2012/8/25, what was the consumption decrease rate from Year 2012 to 2013?
Evidence: '2012/8/24' can be represented by '2012-08-24'; Consumption decrease rate = (consumption_2012 - consumption_2013) / consumption_2012
SQL: SELECT CAST(SUM(IIF(SUBSTR(Date, 1, 4) = '2012', Consumption, 0)) - SUM(IIF(SUBSTR(Date, 1, 4) = '2013', Consumption, 0)) AS FLOAT) / SUM(IIF(SUBSTR(Date, 1, 4) = '2012', Consumption, 0)) FROM yearmonth WHERE CustomerID = ( SELECT T1.CustomerID FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID WHERE T1.Date = '2012-08-25' AND T1.Price = 634.8 )
Database: debit_card_specializing
Question: What is the amount spent by customer "38508" at the gas stations? How much had the customer spent in January 2012?
Evidence: January 2012 refers to the Date value = '201201'
SQL: SELECT SUM(T1.Price) , SUM(IIF(T3.Date = '201201', T1.Price, 0)) FROM transactions_1k AS T1 INNER JOIN gasstations AS T2 ON T1.GasStationID = T2.GasStationID INNER JOIN yearmonth AS T3 ON T1.CustomerID = T3.CustomerID WHERE T1.CustomerID = '38508'
Database: debit_card_specializing
Question: Which are the top five best selling products? Please state the full name of them.
Evidence: Description of products contains full name
SQL: SELECT T2.Description FROM transactions_1k AS T1 INNER JOIN products AS T2 ON T1.ProductID = T2.ProductID ORDER BY T1.Amount DESC LIMIT 5
Database: debit_card_specializing
Question: Who is the top spending customer and how much is the average price per single item purchased by this customer? What currency was being used?
Evidence: average price per single item = Total(price) / Total(amount)
SQL: SELECT T2.CustomerID, SUM(T2.Price / T2.Amount), T1.Currency FROM customers AS T1 INNER JOIN transactions_1k AS T2 ON T1.CustomerID = T2.CustomerID WHERE T2.CustomerID = ( SELECT CustomerID FROM yearmonth ORDER BY Consumption DESC LIMIT 1 ) GROUP BY T2.CustomerID, T1.Currency
Database: debit_card_specializing
Question: For all the people who paid more than 29.00 per unit of product id No.5. Give their consumption status in the August of 2012.
Evidence: August of 2012 refers to the Date value = '201208' ; Price per unit of product = Price / Amount;
SQL: SELECT T2.Consumption FROM transactions_1k AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Price / T1.Amount > 29.00 AND T1.ProductID = 5 AND T2.Date = '201208'
Database: card_games
Question: Tell the Japanese name of the set which card "Fellwar Stone" is in it.
Evidence: Japanese name refers to language = 'Japanese'; card "Fellwar Stone" refers to name = 'Fellwar Stone'
SQL: SELECT T2.translation FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Fellwar Stone' AND T2.language = 'Japanese' AND T2.translation IS NOT NULL
Database: card_games
Question: Which card name in the set 'Journey into Nyx Hero's Path' has the highest converted mana cost.
Evidence: set 'Journey into Nyx Hero's Path' refers to name = 'Journey into Nyx Hero''s Path'
SQL: SELECT T1.name FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Journey into Nyx Hero''s Path' ORDER BY T1.convertedManaCost DESC LIMIT 1
Database: card_games
Question: What is the release date for the set "Ola de frío"?
Evidence: release date is the date of card set being released; set "Ola de frío" refers to translation = 'Ola de frío'
SQL: SELECT T1.releaseDate FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.translation = 'Ola de frío'
Database: card_games
Question: What was the expansion type for the set which card "Samite Pilgrim" in it?
Evidence: expansion type refers to type; card "Samite Pilgrim" refers to name = 'Samite Pilgrim'
SQL: SELECT type FROM sets WHERE code IN ( SELECT setCode FROM cards WHERE name = 'Samite Pilgrim' )
Database: card_games
Question: How many cards are there in the set 'World Championship Decks 2004' with the converted mana cost as '3'.
Evidence: the set 'World Championship Decks 2004' refers to name = 'World Championship Decks 2004'
SQL: SELECT COUNT(id) FROM cards WHERE setCode IN ( SELECT code FROM sets WHERE name = 'World Championship Decks 2004' ) AND convertedManaCost = 3
Database: card_games
Question: Show the Simplified Chinese translation of the name of the set "Mirrodin"?
Evidence: Simplified Chinese translation refers to language = 'Chinese Simplified'; name of the set "Mirrodin" refers to name = 'Mirrodin'
SQL: SELECT translation FROM set_translations WHERE setCode IN ( SELECT code FROM sets WHERE name = 'Mirrodin' ) AND language = 'Chinese Simplified'
Database: card_games
Question: For all the set of cards that has Japanese translation, what is the percentage of them are only available in non-foil?
Evidence: Japanese translation refers to language = 'Japanese'; in non-foil refers to isNonFoilOnly = 1; percentage of Japanese non foil in Japanese cards refers to DIVIDE(SUM(isNonFoilOnly = 1), SUM(language = 'Japanese'))*100
SQL: SELECT CAST(SUM(CASE WHEN isNonFoilOnly = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM sets WHERE code IN ( SELECT setCode FROM set_translations WHERE language = 'Japanese' )
Database: card_games
Question: For all the set of cards that has Brazil Portuguese translation, what is the percentage of them are only available online?
Evidence: Brazil Portuguese translation refers to language = 'Portuguese (Brazil)'; only available online refers to isOnlineOnly = 1; percentage of online only Brazil Portuguese in all Brazil Portuguese cards refers to DIVIDE(SUM(isOnlineOnly = 1), SUM(language = 'Portuguese (Brazil)))*100
SQL: SELECT CAST(SUM(CASE WHEN isOnlineOnly = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM sets WHERE code IN ( SELECT setCode FROM set_translations WHERE language = 'Portuguese (Brazil)' )
Database: card_games
Question: What are the available printing types of the cards that doesn't have a text box created by Aleksi Briclot?
Evidence: created by Aleksi Briclot refers to artist = 'Aleksi Briclot'; doesn't have a text box refers to isTextless = 1; available printing types refers to availability
SQL: SELECT DISTINCT availability FROM cards WHERE artist = 'Aleksi Briclot' AND isTextless = 1
Database: card_games
Question: What is the unique id of the set that has the highest number of cards?
Evidence: the highest number of cards refers to MAX(baseSetSize); unique id refers to id
SQL: SELECT id FROM sets ORDER BY baseSetSize DESC LIMIT 1
Database: card_games
Question: Among the cards that doesn't have multiple faces on the same card, who is the illustrator of the card art that has the highest cost of converted mana?
Evidence: doesn't have multiple faces refers to side IS NULL; illustrator refers to artist
SQL: SELECT artist FROM cards WHERE side IS NULL ORDER BY convertedManaCost DESC LIMIT 1
Database: card_games
Question: What is the most common visual frame effects among the incredibly powerful foils?
Evidence: when both cardKingdomFoilId and cardKingdomId are not null, this foil is incredibly powerful; most common visual frame effects refers to MAX(frameEffects)
SQL: SELECT frameEffects FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL GROUP BY frameEffects ORDER BY COUNT(frameEffects) DESC LIMIT 1
Database: card_games
Question: How many cards with unknown power that can't be found in foil is in duel deck A?
Evidence: unknown power refers to power IS NULL or power = '*'; can't be found in foil refers to hasFoil = 0; duel deck A refers to duelDeck = 'a'
SQL: SELECT SUM(CASE WHEN power = '*' OR power IS NULL THEN 1 ELSE 0 END) FROM cards WHERE hasFoil = 0 AND duelDeck = 'a'
Database: card_games
Question: Among the sets whose expansion type is Commander, which set has the highest total number of cards including promotional and related supplemental products but excluding Alchemy modifications? Indicate the id of the set.
Evidence: expansion type refers to type where type = 'commander'; totalSetSize: The total number of cards in the set, including promotional and related supplemental products but excluding Alchemy modifications; highest total number of cards refers to MAX(totalSetSize)
SQL: SELECT id FROM sets WHERE type = 'commander' ORDER BY totalSetSize DESC LIMIT 1
Database: card_games
Question: In duels, what are the top 10 cards with the highest uncoverted mana cost?
Evidence: duels refer to format = 'duel'; the highest uncoverted mana cost refers to MAX(manaCost)
SQL: SELECT DISTINCT name FROM cards WHERE uuid IN ( SELECT uuid FROM legalities WHERE format = 'duel' ) ORDER BY manaCost DESC LIMIT 0, 10
Database: card_games
Question: When was the oldest mythic card released and what are its legal play formats?
Evidence: the oldest card refers to MIN(originalReleaseDate); mythic card refers to rarity = 'mythic'; legal play refers to status = 'legal'; play format refers to format
SQL: SELECT T1.originalReleaseDate, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.rarity = 'mythic' AND T1.originalReleaseDate IS NOT NULL AND T2.status = 'Legal' ORDER BY T1.originalReleaseDate LIMIT 1
Database: card_games
Question: How many cards did Volkan BaÇµa illustrated whose foreign language is in French?
Evidence: Volkan BaÇµa refers to artist = 'Volkan Baǵa'; foreign language is in French refers to language = 'French'
SQL: SELECT COUNT(T3.id) FROM ( SELECT T1.id FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.artist = 'Volkan Baǵa' AND T2.language = 'French' GROUP BY T1.id ) AS T3
Database: card_games
Question: How many rare enchantment Abundance cards are there whose play format status are all legal?
Evidence: rare refers to rarity = 'rare'; enchantment card refers to types = 'Enchantment'; Abundance cards refers to name = 'Abundance'; format status are all legal refers to status = 'Legal'
SQL: SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T1.rarity = 'rare' AND T1.types = 'Enchantment' AND T1.name = 'Abundance' AND T2.status = 'Legal'
Database: card_games
Question: Which of the play format has the highest number of banned status? Indicate the play format and the names of all the card meet the condition.
Evidence: play format refers to format; banned status refers to status = 'Banned'; the highest number of banned status refers to MAX(COUNT(status = 'Banned'))
SQL: WITH MaxBanned AS (SELECT format, COUNT(*) AS count_banned FROM legalities WHERE status = 'Banned' GROUP BY format ORDER BY COUNT(*) DESC LIMIT 1) SELECT T2.format, T1.name FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid INNER JOIN MaxBanned MB ON MB.format = T2.format WHERE T2.status = 'Banned'
Database: card_games
Question: What is the language of the "Battlebond" set?
Evidence: "Battlebond" set refers to name = 'Battlebond'
SQL: SELECT language FROM set_translations WHERE id IN ( SELECT id FROM sets WHERE name = 'Battlebond' )
Database: card_games
Question: Who is the illustrator that illustrated the least amount of cards? List the format of play of the cards that he/she illustrated.
Evidence: format of the cards refers to format; illustrator refers to artist; the least amount of cards refers to MIN(artist)
SQL: SELECT T1.artist, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid GROUP BY T1.artist ORDER BY COUNT(T1.id) ASC LIMIT 1