1sf/bird-sql-dev-xresults huggingface dataset:
Database: student_club
Question: Among the members, how many of them have an extra large t-shirt size?
Evidence: among the members refers to position = 'Member'; extra large t-shirt size refers to t_shirt_size = 'X-Large'
SQL: SELECT COUNT(member_id) FROM member WHERE position = 'Member' AND t_shirt_size = 'X-Large'
Database: student_club
Question: In the College of Agriculture and Applied Sciences, how many majors are under the department of School of Applied Sciences, Technology and Education?
SQL: SELECT COUNT(major_id) FROM major WHERE department = 'School of Applied Sciences, Technology and Education' AND college = 'College of Agriculture and Applied Sciences'
Database: student_club
Question: List the last name of members with a major in environmental engineering and include its department and college name.
Evidence: 'Environmental Engineering' is the major_name;
SQL: SELECT T2.last_name, T1.department, T1.college FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major WHERE T2.position = 'Member' AND T1.major_name = 'Environmental Engineering'
Database: student_club
Question: What are the budget category of the events located at MU 215 and a guest speaker type with a 0 budget spent?
Evidence: budget category refers to category; events located at refers to location; type = 'Guest Speaker'; 0 budget spent refers to spent = 0; 
SQL: SELECT DISTINCT T2.category, T1.type FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T1.location = 'MU 215' AND T2.spent = 0 AND T1.type = 'Guest Speaker'
Database: student_club
Question: List the city and state of members enrolled under electrical and computer engineering department.
Evidence: 'Electrical and Computer Engineering Department' is the department; members enrolled refers to position = 'Member'
SQL: SELECT city, state FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major INNER JOIN zip_code AS T3 ON T3.zip_code = T1.zip WHERE department = 'Electrical and Computer Engineering Department' AND position = 'Member'
Database: student_club
Question: What is the name of the social event that was attended by the vice president of the Student_Club located at 900 E. Washington St.?
Evidence: name of social event refers to event_name where type = 'Social'; 'Vice President' is position; located at refers to location
SQL: SELECT T2.event_name FROM attendance AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event INNER JOIN member AS T3 ON T1.link_to_member = T3.member_id WHERE T3.position = 'Vice President' AND T2.location = '900 E. Washington St.' AND T2.type = 'Social'
Database: student_club
Question: What is the last name and position of the student that bought pizza on 09/10/2019?
Evidence: bought pizza on 09/10/2019 refers to expense_description = 'Pizza' where expense_date = '2019-09-10'
SQL: SELECT T1.last_name, T1.position FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE T2.expense_date = '2019-09-10' AND T2.expense_description = 'Pizza'
Database: student_club
Question: List the last name of the members of the club that attended the women's soccer event.
Evidence: members of the club refers to position = 'Member'; 'Women's Soccer' is event name;
SQL: SELECT T3.last_name FROM attendance AS T1 INNER JOIN event AS T2 ON T2.event_id = T1.link_to_event INNER JOIN member AS T3 ON T1.link_to_member = T3.member_id WHERE T2.event_name = 'Women''s Soccer' AND T3.position = 'Member'
Database: student_club
Question: Among the members with t-shirt size of medium, what is the percentage of the amount 50 received by the Student_Club?
Evidence: t_shirt_size = 'Medium' where position = 'Member'; percentage = DIVIDE(COUNT(amount = 50), COUNT(member_id)) * 100
SQL: SELECT CAST(SUM(CASE WHEN T2.amount = 50 THEN 1.0 ELSE 0 END) AS REAL) * 100 / COUNT(T2.income_id) FROM member AS T1 INNER JOIN income AS T2 ON T1.member_id = T2.link_to_member WHERE T1.position = 'Member' AND T1.t_shirt_size = 'Medium'
Database: student_club
Question: Which countries have zip codes with post office boxes?
Evidence: zip codes that have post office boxes refers to type = 'PO Box'
SQL: SELECT DISTINCT county FROM zip_code WHERE type = 'PO Box' AND county IS NOT NULL
Database: student_club
Question: What are the zip codes that have post office boxes in the country of the country of San Juan Municipio whose state is Puerto Rico?
Evidence: zip codes that have post office boxes refers to type = 'PO Box'
SQL: SELECT zip_code FROM zip_code WHERE type = 'PO Box' AND county = 'San Juan Municipio' AND state = 'Puerto Rico'
Database: student_club
Question: List the names of closed event as "game" that was closed from 3/15/2019 to 3/20/2020.
Evidence: name of events refers event_name; game event that was closed refers to type = 'Game' where status = 'Closed'; event_date BETWEEN '2019-03-15' and '2020-03-20'; 
SQL: SELECT DISTINCT event_name FROM event WHERE type = 'Game' AND date(SUBSTR(event_date, 1, 10)) BETWEEN '2019-03-15' AND '2020-03-20' AND status = 'Closed'
Database: student_club
Question: Please provide links to events for members who have paid more than 50 dollar.
Evidence: have paid more than 50 dollar refers to cost > 50
SQL: SELECT DISTINCT T3.link_to_event FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member WHERE T1.cost > 50
Database: student_club
Question: Which members who were approved from 1/10/2019 to 11/19/2019? Please identify the member who attended the event and the link to their event.
Evidence: approved from 1/10/2019 to 11/19/2019 refers to approved = 'true' and expense_date BETWEEN '2019-01-10' and '2019-11-19'
SQL: SELECT DISTINCT T1.link_to_member, T3.link_to_event FROM expense AS T1 INNER JOIN member AS T2 ON T1.link_to_member = T2.member_id INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member WHERE date(SUBSTR(T1.expense_date, 1, 10)) BETWEEN '2019-01-10' AND '2019-11-19' AND T1.approved = 'true'
Database: student_club
Question: Please list the phone numbers of the members who majored in business at the College of Agriculture and Applied Sciences.
Evidence: 'College of Agriculture and Applied Sciences' is the college; majored in business refers to major_name = 'Business'; phone numbers refers to phone
SQL: SELECT T1.phone FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T2.major_name = 'Business' AND T2.college = 'College of Agriculture and Applied Sciences'
Database: student_club
Question: List emails of people who paid more than 20 dollars from 9/10/2019 to 11/19/2019.
Evidence: expense_date BETWEEN '2019-09-10' and '2019-11-19'; cost > 20
SQL: SELECT DISTINCT T1.email FROM member AS T1 INNER JOIN expense AS T2 ON T1.member_id = T2.link_to_member WHERE date(SUBSTR(T2.expense_date, 1, 10)) BETWEEN '2019-09-10' AND '2019-11-19' AND T2.cost > 20
Database: student_club
Question: How many members have education major in the College of Education & Human Services?
Evidence: 'education' is the major name; 'Member' is a position of club;
SQL: SELECT COUNT(T1.member_id) FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major WHERE T1.position = 'Member' AND T2.major_name LIKE '%Education%' AND T2.college = 'College of Education & Human Services'
Database: student_club
Question: What is the percentage of the events that went over budget?
Evidence: went over budget refers to remaining < 0; percentage = DIVIDE(SUM(remaining < 0), COUNT(event_id)) * 100
SQL: SELECT CAST(SUM(CASE WHEN remaining < 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(budget_id) FROM budget
Database: student_club
Question: Give the event ID, location, and status of events conducted from November 2019 to March 2020.
Evidence: event_date BETWEEN '2019-11-01' and '2020-03-31'
SQL: SELECT event_id, location, status FROM event WHERE date(SUBSTR(event_date, 1, 10)) BETWEEN '2019-11-01' AND '2020-03-31'
Database: student_club
Question: List the expenses that spend more than fifty dollars on average.
Evidence: expense refers to expense_description; spend more than fifty dollars on average refers to DIVIDE( SUM(cost), COUNT(expense_id) ) > 50
SQL: SELECT expense_description FROM expense GROUP BY expense_description HAVING AVG(cost) > 50
Database: student_club
Question: Find the full name of members whose t-shirt size is extra large.
Evidence: full name refers to first_name, last_name; t_shirt_size = 'X-Large'
SQL: SELECT first_name, last_name FROM member WHERE t_shirt_size = 'X-Large'
Database: student_club
Question: Calculate the percentage of zip codes that are PO boxes.
Evidence: DIVIDE(SUM(type = 'PO Box'), COUNT(zip_code)) * 100
SQL: SELECT CAST(SUM(CASE WHEN type = 'PO Box' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(zip_code) FROM zip_code
Database: student_club
Question: List the name and location of events that underspend its budget.
Evidence: name of event refers to event_name; underspend its budget refers to remaining > 0
SQL: SELECT DISTINCT T1.event_name, T1.location FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event WHERE T2.remaining > 0
Database: student_club
Question: Find the name and date of events with expenses for pizza that were more than fifty dollars but less than a hundred dollars.
Evidence: name of event refers to event_name; date of event refers to event_date; expenses for pizza refers to expense_description = 'Pizza' where cost > 50 and cost < 100
SQL: SELECT T1.event_name, T1.event_date FROM event AS T1 INNER JOIN budget AS T2 ON T1.event_id = T2.link_to_event INNER JOIN expense AS T3 ON T2.budget_id = T3.link_to_budget WHERE T3.expense_description = 'Pizza' AND T3.cost > 50 AND T3.cost < 100
Database: student_club
Question: What is the name and major of members who had to spend more than a hundred dollars on an expense?
Evidence: full name refers to first_name, last_name; major of members refers to major_name; spend more than a hundred dollars on an expense refers to cost > 100
SQL: SELECT DISTINCT T1.first_name, T1.last_name, T2.major_name FROM member AS T1 INNER JOIN major AS T2 ON T2.major_id = T1.link_to_major INNER JOIN expense AS T3 ON T1.member_id = T3.link_to_member WHERE T3.cost > 100
Database: card_games
Question: Lists the set code of all cards translated into Spanish.
Evidence: Spanish refer to language; set code refers to setCode
SQL: SELECT setCode FROM set_translations WHERE language = 'Spanish'
Database: card_games
Question: What percentage of legendary frame effect cards that are only available in online game variations?
Evidence: only available in online game variationsrefer to isOnlineOnly =1 ; legendary frame effect cards refer to frameEffects = 'legendary'; percentage refer to DIVIDE(COUNT(isOnlineOnly=1), COUNT(id)) from cards where frameEffects = 'legendary'
SQL: SELECT SUM(CASE WHEN isOnlineOnly = 1 THEN 1.0 ELSE 0 END) / COUNT(id) * 100 FROM cards WHERE frameEffects = 'legendary'
Database: card_games
Question: What is the percentage of Story Spotlight cards that do not have a text box? List them by their ID.
Evidence: Story Spotlight cards that do not have a text box refers to isStorylight = 1 and isTextless = 0; Percentage = DIVIDE(SUM(count(id) where isStorylight = 1 AND isTextless = 0 ), SUM(count(id))) * 100
SQL: SELECT CAST(SUM(CASE WHEN isTextless = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM cards WHERE isStorySpotlight = 1
Database: card_games
Question: Calculate the percentage of cards in Spanish. List them by name.
Evidence: Spanish refer to language; Percentage refer to DIVIDE(SUM(ID where language = 'Spanish'), COUNT(id))*100
SQL: SELECT ( SELECT CAST(SUM(CASE WHEN language = 'Spanish' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM foreign_data ), name FROM foreign_data WHERE language = 'Spanish'
Database: card_games
Question: Indicates the name of all the languages into which the set whose number of cards is 309 is translated.
Evidence: set refer to setCode; number of cards refers to baseSetSize; baseSetsize = 309


SQL: SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.baseSetSize = 309
Database: card_games
Question: How many Brazilian Portuguese translated sets are inside the Commander block?
Evidence: Commander block refer to block = 'Commander'; sets refer to code = setCode; Portuguese refer to language = 'Portuguese (Brasil)'
SQL: SELECT COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Portuguese (Brazil)' AND T1.block = 'Commander'
Database: card_games
Question: Lists by ID all Creature-type cards with legal status.
Evidence: legal status refer to status = 'legal'; Goblin-type cards refer to types = 'Creature';
SQL: SELECT T1.id FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid INNER JOIN legalities AS T3 ON T1.uuid = T3.uuid WHERE T3.status = 'Legal' AND T1.types = 'Creature'
Database: card_games
Question: Lists all types of cards in German.
Evidence: German refer to language; all types refer to the subtypes, supertypes; subtypes is not null AND supertypes is not null
SQL: SELECT T1.subtypes, T1.supertypes FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'German' AND T1.subtypes IS NOT NULL AND T1.supertypes IS NOT NULL
Database: card_games
Question: How many unknown power cards contain info about the triggered ability
Evidence: unknown power cards refers to power is null or power = '*';contain info about the triggered ability refers to text contains 'triggered ability'
SQL: SELECT T2.text FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE (T1.power IS NULL OR T1.power = '*') AND T2.text LIKE '%triggered ability%'
Database: card_games
Question: Indicates the number of cards with pre-modern format, ruling text "This is a triggered mana ability." that do not have multiple faces.
Evidence: pre-modern format refers to format = 'premodern' ;do not have multiple faces refers to side IS NULL
SQL: SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid INNER JOIN rulings AS T3 ON T1.uuid = T3.uuid WHERE T2.format = 'premodern' AND T3.text = 'This is a triggered mana ability.' AND T1.Side IS NULL
Database: card_games
Question: Is there any card from Erica Yang artist in pauper format and available in paper? If so, indicate its ID.
Evidence: available in paper refers to availability = 'paper'
SQL: SELECT T1.id FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Erica Yang' AND T2.format = 'pauper' AND T1.availability = 'paper'
Database: card_games
Question: What is the foreign name of the card in French of type Creature, normal layout and black border color, by artist Matthew D. Wilson?
Evidence: in French refers to language = 'French'; black border color refers to borderColor = 'black'
SQL: SELECT name FROM foreign_data WHERE uuid IN ( SELECT uuid FROM cards WHERE types = 'Creature' AND layout = 'normal' AND borderColor = 'black' AND artist = 'Matthew D. Wilson' ) AND language = 'French'
Database: card_games
Question: How many cards with print rarity have ruling text printed on 01/02/2007?
Evidence: with print rarity refers to rarity = 'rare'; on 01/02/2007 refers to date = '2007-02-01'
SQL: SELECT COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.rarity = 'rare' AND T2.date = '2007-02-01'
Database: card_games
Question: What language is the set of 180 cards that belongs to the Ravnica block translated into?
Evidence: set of 180 cards refers to baseSetSize = 180
SQL: SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block = 'Ravnica' AND T1.baseSetSize = 180
Database: card_games
Question: What percentage of cards with format commander and legal status do not have a content warning?
Evidence: do not have a content warning refers to hasContentWarning = 0; percentage refers to DIVIDE(COUNT(hasContentWarning = 0),COUNT(ID))*100 where format = 'commander' AND Status = 'legal';
SQL: SELECT CAST(SUM(CASE WHEN T1.hasContentWarning = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'commander' AND T2.status = 'Legal'
Database: card_games
Question: What percentage of cards without power are in French?
Evidence: in French refers to language = 'French'; cards without power refers to power IS NULL OR power = '*'; percentage = DIVIDE(COUNT(language = 'French' and power is NULL or power = '*'), COUNT( power is NULL or power = '*'))*100
SQL: SELECT CAST(SUM(CASE WHEN T2.language = 'French' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.power IS NULL OR T1.power = '*'
Database: card_games
Question: What percentage of Japanese translated sets are expansion sets?
Evidence: Japanese translated refers to language = 'Japanese'; expansion sets refers to type = 'expansion'; percentage = DIVIDE(COUNT(language = 'Japanese'),COUNT(language))*100
SQL: SELECT CAST(SUM(CASE WHEN T2.language = 'Japanese' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.type = 'expansion'
Database: card_games
Question: What kind of printing is on the card that Daren Bader created?
Evidence: kind of printing refers to availability; Daren Bader created refers to artist = 'Daren Bader'
SQL: SELECT DISTINCT availability FROM cards WHERE artist = 'Daren Bader'
Database: card_games
Question: How many color cards with no borders have been ranked higher than 12000 on EDHRec?
Evidence: color cards with no borders refers to borderColor = 'borderless'; ranked higher than 12000 on EDHRec refers to edhrecRank > 12000
SQL: SELECT COUNT(id) FROM cards WHERE edhrecRank > 12000 AND borderColor = 'borderless'
Database: card_games
Question: How many cards are oversized, reprinted, and printed for promotions?
Evidence: are oversized refers to isOversized = 1; reprinted refers to isReprint = 1; printed for promotions refers to isPromo = 1
SQL: SELECT COUNT(id) FROM cards WHERE isOversized = 1 AND isReprint = 1 AND isPromo = 1
Database: card_games
Question: Please list top three unknown power cards that have promotional types for arena league in alphabetical order.
Evidence: unknown power cards refers to power is null or power = '*'; promotional types for arena league refers to promoTypes = 'arenaleague'
SQL: SELECT name FROM cards WHERE (power IS NULL OR power LIKE '%*%') AND promoTypes = 'arenaleague' ORDER BY name LIMIT 3
Database: card_games
Question: What is the language of the card with the multiverse number 149934?
Evidence: multiverse number 149934 refers to multiverseid = 149934;
SQL: SELECT language FROM foreign_data WHERE multiverseid = 149934
Database: card_games
Question: Please provide the ids of top three powerful pairs of Kingdom Foil and Kingdom Cards sorted by Kingdom Foil id in alphabetical order.
Evidence: poweful refers to cardKingdomFoilId is not null AND cardKingdomId is not null
SQL: SELECT cardKingdomFoilId, cardKingdomId FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL ORDER BY cardKingdomFoilId LIMIT 3
Database: card_games
Question: What proportion of cards do not have a text box with a normal layout?
Evidence: do not have a text box refers to isTextless = 1; proportion refers to DIVIDE(COUNT(Textless = 1 and layout = 'normal'),COUNT(Textless))*100
SQL: SELECT CAST(SUM(CASE WHEN isTextless = 1 AND layout = 'normal' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM cards
Database: card_games
Question: What are the card numbers that don't have multiple faces on a single card and have the subtypes Angel and Wizard?
Evidence: don't have multiple faces on a single card side is null
SQL: SELECT id FROM cards WHERE subtypes = 'Angel,Wizard' AND side IS NULL
Database: card_games
Question: Please provide top three sets that don't appear in Magic: The Gathering Online, along with their names in in alphabetical order.
Evidence: don't appear in Magic: The Gathering Online refers to mtgoCode is NULL or mtgoCode = ''
SQL: SELECT name FROM sets WHERE mtgoCode IS NULL ORDER BY name LIMIT 3
Database: card_games
Question: What languages are available in the set known as Archenemy on the magic card market and having the code ARC?
Evidence: known as Archenemy refers to mcmName = 'Archenemy'; having the code ARC refers to setCode = 'ARC'
SQL: SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.mcmName = 'Archenemy' AND T2.setCode = 'ARC'
Database: card_games
Question: What is the name of set number 5 and its translation?
Evidence: set number 5 refers to id = 5
SQL: SELECT T1.name, T2.translation FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.id = 5 GROUP BY T1.name, T2.translation
Database: card_games
Question: What is the language and expansion type of set number 206?
Evidence: set number 206 refers to id = 206
SQL: SELECT T2.language, T1.type FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.id = 206
Database: card_games
Question: Which set is not available outside of the United States and has foil cards with Japanese writing on them? Please include the set ID in your response.
Evidence: available outside of the United States refers to isForeignOnly = 1; has foil cards refers to isFoilOnly = 1; with Japanese writing on them refers to language = 'Japanese'
SQL: SELECT T1.name, T1.id FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Japanese' AND T1.isFoilOnly = 1 AND T1.isForeignOnly = 0
Database: card_games
Question: Which Russian set of cards contains the most cards overall?
Evidence: Russian refers to language = 'Russian'; contains the most cards overall refers to MAX(baseSetSize)
SQL: SELECT T1.id FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Russian' GROUP BY T1.baseSetSize ORDER BY T1.baseSetSize DESC LIMIT 1
Database: card_games
Question: What is the percentage of the set of cards that have Chinese Simplified as the language and are only available for online games?
Evidence: are only available for online games refers to isOnlineOnly = 1; percentage = DIVIDE(COUNT(isOnlineOnly = 1),COUNT(isOnlineOnly))*100
SQL: SELECT CAST(SUM(CASE WHEN T2.language = 'Chinese Simplified' AND T1.isOnlineOnly = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode
Database: card_games
Question: How many sets are available just in Japanese and not in Magic: The Gathering Online?
Evidence: Japanese refers to language = 'Japanese'; not in Magic: The Gathering Online refers to mtgoCode is null or mtgoCode = ''
SQL: SELECT COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.language = 'Japanese'  AND (T1.mtgoCode IS NULL OR T1.mtgoCode = '')
Database: card_games
Question: How many card border with black color ? List out the card id.
Evidence: border with black color refers to borderColor = 'black'
SQL: SELECT id FROM cards WHERE borderColor = 'black' GROUP BY id
Database: card_games
Question: How many cards have frame effect as extendedart? List out the id of those cards.
Evidence: 
frame effect as extendedart refers to frameEffects = 'extendedart'

SQL: SELECT id FROM cards WHERE frameEffects = 'extendedart' GROUP BY id
Database: card_games
Question: Among black card borders, which card has full artwork?
Evidence: white card borders refers to borderColor = 'white'; has full artwork refers to isFullArt = 1
SQL: SELECT id FROM cards WHERE borderColor = 'black' AND isFullArt = 1
Database: card_games
Question: Which foreign language used by "A Pedra Fellwar"?
Evidence: "A Pedra Fellwar" refers to name = 'A Pedra Fellwar'
SQL: SELECT DISTINCT language FROM foreign_data WHERE name = 'A Pedra Fellwar'
Database: card_games
Question: State the set code of the set with release date of 07/13/2007?
SQL: SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.releaseDate = '2007-07-13'