1sf/bird-sql-dev-xresults huggingface dataset:
Database: formula_1
Question: For all the drivers who finished the game in race No. 592, who is the oldest?
Evidence: drivers who finished the race refers to time is not empty (i.e. time IS NOT NULL); race number refers to raceId; date of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa;
SQL: SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 592 AND T2.time IS NOT NULL AND T1.dob IS NOT NULL ORDER BY T1.dob ASC LIMIT 1
Database: formula_1
Question: Who was the player that got the lap time of 0:01:27 in the race No. 161? Show his introduction website.
Evidence: player and driver are synonyms; the lap time of 0:0M:SS refers to lapTime.time LIKE 'M:SS%';race number refers to raceId; introduction website of the drivers refers to url;
SQL: SELECT DISTINCT T2.forename, T2.surname, T2.url FROM lapTimes AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 161 AND T1.time LIKE '1:27%'
Database: formula_1
Question: For the driver who set the fastest lap speed in race No.933, where does he come from?
Evidence: fastest lap speed refers to MAX(fastestLapSpeed);
SQL: SELECT T1.nationality FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 933 AND T2.fastestLapTime IS NOT NULL ORDER BY T2.fastestLapSpeed DESC LIMIT 1
Database: formula_1
Question: Where is Malaysian Grand Prix held? Give the location coordinates.
Evidence: location coordinates refers to (lat, lng); Malaysian Grand Prix refers to races.name = 'Malaysian Grand Prix'
SQL: SELECT DISTINCT T1.lat, T1.lng FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'Malaysian Grand Prix'
Database: formula_1
Question: For the constructor which got the highest point in the race No. 9 , what is its introduction website?
Evidence: race number refers to raceId; constructor which got the highest point refers to MAX(constructorResults.points); introduction website of the constructor refers to url;
SQL: SELECT T2.url FROM constructorResults AS T1 INNER JOIN constructors AS T2 ON T2.constructorId = T1.constructorId WHERE T1.raceId = 9 ORDER BY T1.points DESC LIMIT 1
Database: formula_1
Question: What's Lucas di Grassi's Q1 result in the race No. 345?
Evidence: race number refers to raceId;
SQL: SELECT T1.q1 FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 345 AND T2.forename = 'Lucas' AND T2.surname = 'di Grassi'
Database: formula_1
Question: For the driver who had the Q2 time as 0:01:15 in race No. 347, where is he from?
Evidence: race number refers to raceId;
SQL: SELECT DISTINCT T2.nationality FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 347 AND T1.q2 LIKE '1:15%'
Database: formula_1
Question: In the race No. 45, for the driver who had the Q3 time as 0:01:33, what is his abbreviated code?
Evidence: race number refers to raceId; had the Q3 time as 0:0M:SS refers to q3 LIKE 'M:SS%'
SQL: SELECT T2.code FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 45 AND T1.q3 LIKE '1:33%'
Database: formula_1
Question: What is the actual finish time for Bruce McLaren in the race No.743?
Evidence: race number refers to raceId;
SQL: SELECT T2.time FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 743 AND T1.forename = 'Bruce' AND T1.surname = 'McLaren'
Database: formula_1
Question: Who finished second in the San Marino Grand Prix in 2006?
Evidence: finished second refers to position = 2;
SQL: SELECT T3.forename, T3.surname FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.year = 2006 AND T1.name = 'San Marino Grand Prix' AND T2.position = 2
Database: formula_1
Question: Show me the season page of year when the race No. 901 took place.
Evidence: the season page refers to url; race number refers to raceId;
SQL: SELECT T2.url FROM races AS T1 INNER JOIN seasons AS T2 ON T2.year = T1.year WHERE T1.raceId = 901
Database: formula_1
Question: For the race happened in 2015/11/29, how many drivers did not finish the game?
Evidence: game and race are synonyms; drivers who didn't finish the race should have record in time;
SQL: SELECT COUNT(T2.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.date = '2015-11-29' AND T2.time IS NULL
Database: formula_1
Question: For all the drivers who finished the game in race No. 872, who is the youngest?
Evidence: race number refers to raceId; drivers who finished the race refers to time has value; the youngest is a driver where MAX(dob);
SQL: SELECT T1.forename, T1.surname FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T2.raceId = 872 AND T2.time IS NOT NULL ORDER BY T1.dob DESC LIMIT 1
Database: formula_1
Question: Who was the driver that got the best lap time in the race No. 348? Give his full name.
Evidence: race number refers to raceId; the best lap time refers to MIN(time)
SQL: SELECT T2.forename, T2.surname FROM lapTimes AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 348 ORDER BY T1.time ASC LIMIT 1
Database: formula_1
Question: For the driver who set the fastest lap speed, what is his nationality?
Evidence: the fastest lap speed refers to (MAX) fastestLapSpeed;
SQL: SELECT T1.nationality FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId ORDER BY T2.fastestLapSpeed DESC LIMIT 1
Database: formula_1
Question: Paul di Resta was in the No. 853 race, what percent faster did he finish in the 853rd race than the next race for the fastest lap speed?
Evidence: Paul di Resta refers to the full name of the driver; Full name of the driver refers to drivers.forename ='Paul' and drivers.surname = 'di Resta'; race number refers to raceId; percentage = DIVIDE(SUBTRACT(fastestLapSpeed(raceId = 853), (fastestLapSpeed (raceId = 854)) * 100 , (fastestLapSpeed(raceId = 853))
SQL: SELECT (SUM(IIF(T2.raceId = 853, T2.fastestLapSpeed, 0)) - SUM(IIF(T2.raceId = 854, T2.fastestLapSpeed, 0))) * 100 / SUM(IIF(T2.raceId = 853, T2.fastestLapSpeed, 0)) FROM drivers AS T1 INNER JOIN results AS T2 ON T2.driverId = T1.driverId WHERE T1.forename = 'Paul' AND T1.surname = 'di Resta'
Database: formula_1
Question: For the drivers who took part in the race in 1983/7/16, what's their race completion rate?
Evidence: DIVIDE(COUNT(driverid when time has value ), (COUNT(driverid )) as percentage; in 1983/7/16 refers to when date = '1983-07-16'
SQL: SELECT CAST(COUNT(CASE WHEN T2.time IS NOT NULL THEN T2.driverId END) AS REAL) * 100 / COUNT(T2.driverId) FROM races AS T1 INNER JOIN results AS T2 ON T2.raceId = T1.raceId WHERE T1.date = '1983-07-16'
Database: formula_1
Question: Which year was the first Singapore Grand Prix?
Evidence: the first race refers to race happened in min(year);
SQL: SELECT year FROM races WHERE name = 'Singapore Grand Prix' ORDER BY year ASC LIMIT 1
Database: formula_1
Question: How many races were there in 2005? Name all the races in descending order.
SQL: SELECT name FROM races WHERE year = 2005 ORDER BY name DESC
Database: formula_1
Question: List the names of all races that occurred in the earliest recorded year and month.
Evidence: earliest recorded year and month refers to year = year(min(date)) and month = month(min(date));
SQL: SELECT name FROM races WHERE STRFTIME('%Y', date) = ( SELECT STRFTIME('%Y', date) FROM races ORDER BY date ASC LIMIT 1 ) AND STRFTIME('%m', date) = ( SELECT STRFTIME('%m', date) FROM races ORDER BY date ASC LIMIT 1 )
Database: formula_1
Question: State the name and date of the last round of race in year 1999.
Evidence: the last round refers to max(round);
SQL: SELECT name, date FROM races WHERE year = 1999 ORDER BY round DESC LIMIT 1
Database: formula_1
Question: Which year has the most number of races?
Evidence: the most number of races refers to max(round);
SQL: SELECT year FROM races GROUP BY year ORDER BY COUNT(round) DESC LIMIT 1
Database: formula_1
Question: Name the races in year 2017 that are not hosted in year 2000.
Evidence: not hosted means not in;
SQL: SELECT name FROM races WHERE year = 2017 AND name NOT IN ( SELECT name FROM races WHERE year = 2000 )
Database: formula_1
Question: In which country was the first European Grand Prix hosted? Name the circuit and location.
Evidence: the first refers to min(year);
SQL: SELECT T1.country, T1.location FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T2.name = 'European Grand Prix' ORDER BY T2.year ASC LIMIT 1
Database: formula_1
Question: When was the last f1 season whereby Brands Hatch hosted the British Grand Prix?
Evidence: the last refers to max(year);
SQL: SELECT T2.date FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Brands Hatch' AND T2.name = 'British Grand Prix' ORDER BY T2.year DESC LIMIT 1
Database: formula_1
Question: How many seasons has Silverstone Circuit hosted the United Kindom grand prix?
Evidence: British Grand Prix is the name of race; British refers to the United Kindom
SQL: SELECT COUNT(T2.circuitid) FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE T1.name = 'Silverstone Circuit' AND T2.name = 'British Grand Prix'
Database: formula_1
Question: Name all drivers in the 2010 Singapore Grand Prix order by their position stands.
SQL: SELECT T3.forename, T3.surname FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T1.name = 'Singapore Grand Prix' AND T1.year = 2010 ORDER BY T2.position ASC
Database: formula_1
Question: State the driver with the most points scored. Find his full name with that points.
Evidence: the most points scored refers to max(points); Full name of the driver refers to drivers.forename and drivers.surname;
SQL: SELECT T3.forename, T3.surname, T2.points FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId ORDER BY T2.points DESC LIMIT 1
Database: formula_1
Question: What is the best lap time recorded? List the driver and race with such recorded lap time.
Evidence: the best lap time refers to min(milliseconds); List the driver refers to drivers.forename and drivers.surname; List the race refers to races.name
SQL: SELECT T2.milliseconds, T1.forename, T1.surname, T3.name FROM drivers AS T1 INNER JOIN lapTimes AS T2 ON T1.driverId = T2.driverId INNER JOIN races AS T3 ON T2.raceId = T3.raceId ORDER BY T2.milliseconds ASC LIMIT 1
Database: formula_1
Question: What is the average lap time for Lewis Hamilton in the 2009 Malaysian Grand Prix?
Evidence: average lap time = AVG(milliseconds); 'Lewis Hamilton' refers to the full name of the driver; Full name of the driver refers to drivers.forename and drivers.surname; 'Malaysian Grand Prix' refers to races.name = 'Malaysian Grand Prix'
SQL: SELECT AVG(T2.milliseconds) FROM races AS T1 INNER JOIN lapTimes AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.forename = 'Lewis' AND T3.surname = 'Hamilton' AND T1.year = 2009 AND T1.name = 'Malaysian Grand Prix'
Database: formula_1
Question: Calculate the percentage whereby Hamilton was not at the 1st track of the the f1 circuit since 2010.
Evidence: percentage = DIVIDE(COUNT(raceId) where surname = 'Hamilton' and position>1), (COUNT(raceId) where surname = 'Hamilton'); since 2010 refers to year >= 2010
SQL: SELECT CAST(COUNT(CASE WHEN T2.position <> 1 THEN T2.position END) AS REAL) * 100 / COUNT(T2.driverStandingsId) FROM races AS T1 INNER JOIN driverStandings AS T2 ON T2.raceId = T1.raceId INNER JOIN drivers AS T3 ON T3.driverId = T2.driverId WHERE T3.surname = 'Hamilton' AND T1.year >= 2010
Database: formula_1
Question: Name the driver with the most winning. Mention his nationality and what is his maximum point scores.
Evidence: Full name of the driver refers to drivers.forename and drivers.surname; the most winning refers to MAX(COUNT(wins)); average point scores refers to MAX(points);
SQL: SELECT T1.forename, T1.surname, T1.nationality, MAX(T2.points) FROM drivers AS T1 INNER JOIN driverStandings AS T2 ON T2.driverId = T1.driverId WHERE T2.wins >= 1 GROUP BY T1.forename, T1.surname, T1.nationality ORDER BY COUNT(T2.wins) DESC LIMIT 1
Database: formula_1
Question: How old is the youngest Japanese driver? What is his name?
Evidence: date of birth refers to drivers.dob; The larger the birthday value, the younger the person is, and vice versa; Japanese refers to nationality = 'Japanese'; age = YEAR(CURRENT_TIMESTAMP) - YEAR(dob);
SQL: SELECT STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', dob), forename , surname FROM drivers WHERE nationality = 'Japanese' ORDER BY dob DESC LIMIT 1
Database: formula_1
Question: List circuits which host 4 f1 races from year 1990 to 2000.
Evidence: from year 1990 to 2000 refers to year(date) between 1990 and 2000;
SQL: SELECT DISTINCT T1.name FROM circuits AS T1 INNER JOIN races AS T2 ON T2.circuitID = T1.circuitId WHERE STRFTIME('%Y', T2.date) BETWEEN '1990' AND '2000' GROUP BY T1.name HAVING COUNT(T2.raceId) = 4
Database: card_games
Question: Of all the cards that are designed by Aaron Miller, how many of them are incredibly powerful?
Evidence: designed by Aaron Miller refers to artist = 'Aaron Miller'; are icredibily powerful refers to cardKingdomFoilId is not null AND cardKingdomId is not null
SQL: SELECT SUM(CASE WHEN artist = 'Aaron Miller' AND cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL THEN 1 ELSE 0 END) FROM cards
Database: card_games
Question: How many cards available in paper have a positive starting maximum hand size?
Evidence: available in paper refers to availability like '%paper%'; have a positive starting maximum hand size refers to hand = '3'
SQL: SELECT SUM(CASE WHEN availability = 'paper' AND hAND = '3' THEN 1 ELSE 0 END) FROM cards
Database: card_games
Question: Please list the names of the cards that have a text box.
Evidence: have a text box refers to isTextless = 0
SQL: SELECT DISTINCT name FROM cards WHERE isTextless = 0
Database: card_games
Question: What's the unconverted mana cost of the card "Ancestor's Chosen"?
Evidence: card "Ancestor's Chosen" refers to name = 'Ancestor`s Chosen'
SQL: SELECT DISTINCT manaCost FROM cards WHERE name = 'Ancestor''s Chosen'
Database: card_games
Question: Among the cards with a white border color, how many of them have unknown power?
Evidence: unknown power refers to power = '*' or power is null
SQL: SELECT SUM(CASE WHEN power LIKE '%*%' OR power IS NULL THEN 1 ELSE 0 END) FROM cards WHERE borderColor = 'white'
Database: card_games
Question: Which of the cards that are a promotional painting have multiple faces on the same card? Please list their names.
Evidence: are a promotional painting refers to isPromo = 1; have multiple faces on the same card refers to side is not Null
SQL: SELECT DISTINCT name FROM cards WHERE isPromo = 1 AND side IS NOT NULL
Database: card_games
Question: What's the list of all types for the card "Molimo, Maro-Sorcerer"?
Evidence: card "Molimo, Maro-Sorcerer" refers to name = 'Molimo, Maro-Sorcerer'; list of all types refers to subtypes,supertypes
SQL: SELECT DISTINCT subtypes, supertypes FROM cards WHERE name = 'Molimo, Maro-Sorcerer'
Database: card_games
Question: Please list the websites where I can purchase the cards that have the promotional type of "bundle".
Evidence: promotional type of "bundle" refers to promoTypes = 'bundle'; websites refers to purchaseUrls
SQL: SELECT DISTINCT purchaseUrls FROM cards WHERE promoTypes = 'bundle'
Database: card_games
Question: How many artists have designed a card with a black border color and is available in both "arena" and "mtgo" printing type?
Evidence: available in both "arena" and "mtgo" refers to availability like '%arena,mtgo%'
SQL: SELECT COUNT(CASE WHEN availability LIKE '%arena,mtgo%' AND borderColor = 'black' THEN 1 ELSE NULL END) FROM cards
Database: card_games
Question: Which card costs more converted mana, "Serra Angel" or "Shrine Keeper"?
Evidence: "Serra Angel" refers to name = 'Serra Angel'; "Shrine Keeper" refers to name = 'Shrine Keeper'; card costs more converted mana when the value of convertedManaCost is greater
SQL: SELECT name FROM cards WHERE name IN ('Serra Angel', 'Shrine Keeper') ORDER BY convertedManaCost DESC LIMIT 1
Database: card_games
Question: Which artist designed the card whose promotional name is "Battra, Dark Destroyer"?
Evidence: promotional name is "Battra, Dark Destroyer" refers to flavorName = 'Battra, Dark Destroyer'
SQL: SELECT artist FROM cards WHERE flavorName = 'Battra, Dark Destroyer'
Database: card_games
Question: Please list the names of the top 3 cards with the highest converted mana cost and have a 2003 card frame style.
Evidence: name of cards refers to name; 2003 card frame style refers to frameVersion = '2003'
SQL: SELECT name FROM cards WHERE frameVersion = 2003 ORDER BY convertedManaCost DESC LIMIT 3
Database: card_games
Question: What's the Italian name of the set of cards with "Ancestor's Chosen" is in?
Evidence: Italian is a language which refers to language = 'Italian'; with "Ancestor's Chosen" in the card set refers to name = 'Ancestor''s Chosen'
SQL: SELECT translation FROM set_translations WHERE setCode IN ( SELECT setCode FROM cards WHERE name = 'Ancestor''s Chosen' ) AND language = 'Italian'
Database: card_games
Question: How many translations are there for the set of cards with "Angel of Mercy" in it?
Evidence: set of cards with "Angel of Mercy" in it refers to name = 'Angel of Mercy'
SQL: SELECT COUNT(DISTINCT translation) FROM set_translations WHERE setCode IN ( SELECT setCode FROM cards WHERE name = 'Angel of Mercy' ) AND translation IS NOT NULL
Database: card_games
Question: Please list the names of the cards in the set "Hauptset Zehnte Edition".
Evidence: card set "Hauptset Zehnte Edition" refers to translation = 'Hauptset Zehnte Edition'
SQL: SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T2.translation = 'Hauptset Zehnte Edition'
Database: card_games
Question: For the set of cards with "Ancestor's Chosen" in it, is there a Korean version of it?
Evidence: set of cards with "Ancestor''s Chosen" in it refers to name = 'Ancestor''s Chosen'; Korean version refers to language = 'Korean'
SQL: SELECT IIF(SUM(CASE WHEN T2.language = 'Korean' AND T2.translation IS NOT NULL THEN 1 ELSE 0 END) > 0, 'YES', 'NO') FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Ancestor''s Chosen'
Database: card_games
Question: Among the cards in the set "Hauptset Zehnte Edition", how many of them are designed by Adam Rex?
Evidence: card set "Hauptset Zehnte Edition" refers to translation = 'Hauptset Zehnte Edition'; designed by Adam refers to artist = 'Adam Rex'
SQL: SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T2.translation = 'Hauptset Zehnte Edition' AND T1.artist = 'Adam Rex'
Database: card_games
Question: How many cards are there in the base set of "Hauptset Zehnte Edition"?
Evidence: "Hauptset Zehnte Edition" refers to translation = 'Hauptset Zehnte Edition'; number of cards refers to baseSetSize
SQL: SELECT T1.baseSetSize FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.translation = 'Hauptset Zehnte Edition'
Database: card_games
Question: What is the Simplified Chinese translation of the name of the set "Eighth Edition"?
Evidence: Eighth Edition is the name of card set which refers to name = 'Eighth Edition'; Simplified Chinese refers to language = 'Chinese Simplified'; translation of the name refers to translation
SQL: SELECT T2.translation FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.name = 'Eighth Edition' AND T2.language = 'Chinese Simplified'
Database: card_games
Question: Did the set of cards with "Angel of Mercy" appear on Magic: The Gathering Online?
Evidence: card set "Angel of Mercy" refers to name = 'Angel of Mercy'; appear on Magic: The Gathering Online refers to mtgoCode is NOT NULL and vice versa
SQL: SELECT IIF(T2.mtgoCode IS NOT NULL, 'YES', 'NO') FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Angel of Mercy'
Database: card_games
Question: When was the set of cards with "Ancestor's Chosen" released?
Evidence: card set "Ancestor's Chosen" refers to name = 'Ancestor''s Chosen'; when released refers to releaseDate
SQL: SELECT DISTINCT T2.releaseDate FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Ancestor''s Chosen'
Database: card_games
Question: What is the expansion type of the set "Hauptset Zehnte Edition"?
Evidence: card set "Hauptset Zehnte Edition" refers to translation = ' Hauptset Zehnte Edition'; expansion type refers to type
SQL: SELECT T1.type FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.translation = 'Hauptset Zehnte Edition'
Database: card_games
Question: Among the sets in the block "Ice Age", how many of them have an Italian translation?
Evidence: sets in the block "Ice Age" refers to block = 'Ice Age'; Italian translation refers to language = 'Italian' and translation is not null
SQL: SELECT COUNT(DISTINCT T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.block = 'Ice Age' AND T2.language = 'Italian' AND T2.translation IS NOT NULL
Database: card_games
Question: Is the set of cards with Adarkar Valkyrie only available outside the United States?
Evidence: card set Adarkar Valkyrie refers to name = 'Adarkar Valkyrie'; isForeignOnly = 1 means only available outside the United States;
SQL: SELECT IIF(isForeignOnly = 1, 'YES', 'NO') FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Adarkar Valkyrie'
Database: card_games
Question: Among the sets of cards that have an Italian translation, how many of them have a base set number of under 100?
Evidence: Italian translation refers to language = 'Italian'; have a translation means translation is not null; base set number of under 100 refers to baseSetSize < 10
SQL: SELECT COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.translation IS NOT NULL AND T1.baseSetSize < 100 AND T2.language = 'Italian'
Database: card_games
Question: How many cards in the set Coldsnap have a black border color?
Evidence: card set Coldsnap refers to name = 'Coldsnap'; black border color refers to borderColor = 'black'
SQL: SELECT SUM(CASE WHEN T1.borderColor = 'black' THEN 1 ELSE 0 END) FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap'
Database: card_games
Question: Please list the name of the cards in the set Coldsnap with the highest converted mana cost.
Evidence: card set Coldsnap refers to name = 'Coldsnap'
SQL: SELECT T1.name FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap' ORDER BY T1.convertedManaCost DESC LIMIT 1
Database: card_games
Question: Which of these artists have designed a card in the set Coldsnap, Jeremy Jarvis, Aaron Miller or Chippy?
Evidence: card set Coldsnap refers to name = 'Coldsnap'; Jeremy Jarvis, Aaron Miller or Chippy are the name of artists which refers to artist IN ('Jeremy Jarvis', 'Aaron Miller','Chippy');
SQL: SELECT T1.artist FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE (T2.name = 'Coldsnap' AND T1.artist = 'Chippy') OR (T2.name = 'Coldsnap' AND T1.artist = 'Aaron Miller') OR (T2.name = 'Coldsnap' AND T1.artist = 'Jeremy Jarvis') GROUP BY T1.artist
Database: card_games
Question: What is card number 4 in the set Coldsnap?
Evidence: card set Coldsnap refers to name = 'Coldsnap'; card number 4 refers to number = 4
SQL: SELECT T1.name FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap' AND T1.number = 4