id
int64 0
1.53k
| query
stringlengths 23
215
| sql
stringlengths 29
1.45k
| difficulty
stringclasses 3
values |
---|---|---|---|
356 | How many cards have infinite power? | SELECT COUNT(*) FROM cards WHERE power = '*' | simple |
1,164 | How many of the patients with the most serious thrombosis cases examined in 1997 are women? | SELECT COUNT(*) FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID WHERE T1.SEX = 'F' AND STRFTIME('%Y', T2.`Examination Date`) = '1997' AND T2.Thrombosis = 1 | moderate |
1,355 | Where is the hometown state for "Sacha Harrison"? | SELECT T2.state FROM member AS T1 INNER JOIN zip_code AS T2 ON T1.zip = T2.zip_code WHERE T1.first_name = 'Sacha' AND T1.last_name = 'Harrison' | simple |
1,514 | What kind of currency did the customer paid at 16:25:00 in 2012/8/24? | 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' | simple |
237 | Which molecule does the atom TR001_10 belong to? Please state whether this molecule is carcinogenic or not. | SELECT T2.molecule_id , IIF(T2.label = '+', 'YES', 'NO') AS flag_carcinogenic FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.atom_id = 'TR001_10' | moderate |
650 | Describe the last accessed date and location of the users who received the outliers badge. | SELECT T1.LastAccessDate, T1.Location FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.Name = 'outliers' | simple |
27 | What is the average score in writing for the schools that were opened after 1991 or closed before 2000? List the school names along with the score. Also, list the communication number of the schools if there is any. | SELECT T2.School, T1.AvgScrWrite, T2.Phone FROM schools AS T2 LEFT JOIN satscores AS T1 ON T2.CDSCode = T1.cds WHERE strftime('%Y', T2.OpenDate) > '1991' OR strftime('%Y', T2.ClosedDate) < '2000' | moderate |
1,087 | Among the players whose height is over 180, how many of them have a volley score of over 70? | SELECT COUNT(DISTINCT t1.id) FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id WHERE t1.height > 180 AND t2.volleys > 70 | simple |
1,390 | Based on the total cost for all event, what is the percentage of cost for Yearly Kickoff event? | SELECT CAST(SUM(CASE WHEN T1.event_name = 'Yearly Kickoff' THEN T3.cost ELSE 0 END) AS REAL) * 100 / SUM(T3.cost) 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 | moderate |
643 | What are the display names and ages of user who got the highest in views? | SELECT DisplayName, Age FROM users WHERE Views = ( SELECT MAX(Views) FROM users ) | simple |
1,490 | How many percent of LAM customer consumed more than 46.73? | SELECT CAST(SUM(IIF(T2.Consumption > 46.73, 1, 0)) AS FLOAT) * 100 / COUNT(T1.CustomerID) FROM customers AS T1 INNER JOIN yearmonth AS T2 ON T1.CustomerID = T2.CustomerID WHERE T1.Segment = 'LAM' | moderate |
777 | What is the gender of Agent 13 hero? | SELECT T2.gender FROM superhero AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.id WHERE T1.superhero_name = 'Agent 13' | simple |
796 | State all of 3-D Man's attributes along with their values. | SELECT T3.attribute_name, T2.attribute_value FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id INNER JOIN attribute AS T3 ON T2.attribute_id = T3.id WHERE T1.superhero_name = '3-D Man' | moderate |
289 | Is molecule TR151 carcinogenic? | SELECT T.label FROM molecule AS T WHERE T.molecule_id = 'TR151' | simple |
25 | Name schools in Riverside which the average of average math score for SAT is grater than 400, what is the funding type of these schools? | SELECT T1.sname, T2.`Charter Funding Type` FROM satscores AS T1 INNER JOIN frpm AS T2 ON T1.cds = T2.CDSCode WHERE T2.`District Name` LIKE 'Riverside%' GROUP BY T1.sname, T2.`Charter Funding Type` HAVING CAST(SUM(T1.AvgScrMath) AS REAL) / COUNT(T1.cds) > 400 | moderate |
382 | What are the cards that only available in paper and Japanese language? | SELECT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.availability = 'paper' AND T2.language = 'Japanese' | simple |
632 | How many votes were made by Harlan? | SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.UserId INNER JOIN votes AS T3 ON T3.PostId = T2.PostId WHERE T1.DisplayName = 'Harlan' | simple |
49 | Which different county has the most number of closed schools? Please provide the name of each school as well as the closure date. | SELECT DISTINCT County, School, ClosedDate FROM schools WHERE County = ( SELECT County FROM schools WHERE StatusType = 'Closed' GROUP BY County ORDER BY COUNT(School) DESC LIMIT 1 ) AND StatusType = 'Closed' AND school IS NOT NULL | moderate |
112 | For the female client who was born in 1976/1/29, which district did she opened her account? | SELECT T1.A2 FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T2.birth_date = '1976-01-29' AND T2.gender = 'F' | simple |
395 | How many cards designed by UDON and available in mtgo print type has a starting maximum hand size of -1? | SELECT COUNT(id) FROM cards WHERE hAND = '-1' AND artist = 'UDON' AND Availability = 'mtgo' | simple |
57 | What is the phone number and extension number for the school that had the 333rd highest average writing score? | SELECT T2.Phone, T2.Ext FROM satscores AS T1 INNER JOIN schools AS T2 ON T1.cds = T2.CDSCode ORDER BY T1.AvgScrWrite DESC LIMIT 332, 1 | simple |
758 | Provide the hair colour of the human superhero who is 185 cm tall. | SELECT DISTINCT T3.colour FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id INNER JOIN colour AS T3 ON T1.hair_colour_id = T3.id WHERE T1.height_cm = 185 AND T2.race = 'Human' | moderate |
235 | How many molecules are carcinogenic and have the bromine element? | SELECT COUNT(DISTINCT T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+' AND T1.element = 'br' | simple |
129 | Which are the top ten withdrawals (non-credit card) by district names for the month of January 1996? | SELECT DISTINCT T1.A2 FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id INNER JOIN trans AS T3 ON T2.account_id = T3.account_id WHERE T3.type = 'VYDAJ' AND T3.date LIKE '1996-01%' ORDER BY A2 ASC LIMIT 10 | moderate |
814 | List the skin colour of the superheroes with 100 attribute value. | SELECT DISTINCT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.skin_colour_id = T2.id INNER JOIN hero_attribute AS T3 ON T1.id = T3.hero_id WHERE T3.attribute_value = 100 | moderate |
1,367 | Which college do most of the members go to? | SELECT T2.college FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id GROUP BY T2.major_id ORDER BY COUNT(T2.college) DESC LIMIT 1 | simple |
75 | What is the educational level name for the schools with Breakfast Provision 2 in county code 37? Indicate the name of the school. | SELECT T2.EILName, T2.School FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T1.`NSLP Provision Status` = 'Breakfast Provision 2' AND T1.`County Code` = 37 | simple |
734 | What is the publisher's name of Blue Beetle II? | SELECT T2.publisher_name FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T1.superhero_name = 'Blue Beetle II' | simple |
679 | Which post has the highest score? Please give its id and title's name. | SELECT T1.Id, T2.Title FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId ORDER BY T2.Score DESC LIMIT 1 | simple |
47 | What is the monthly average number of schools that opened in Alameda County under the jurisdiction of the Elementary School District in 1980? | SELECT CAST(COUNT(School) AS REAL) / 12 FROM schools WHERE DOC = 52 AND County = 'Alameda' AND strftime('%Y', OpenDate) = '1980' | moderate |
1,306 | How many patients diagnosed with SLE have a normal white blood cell level? | SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T1.Diagnosis = 'SLE' AND T2.WBC BETWEEN 3.5 AND 9 | simple |
581 | Who is the editor of the post titled 'Open source tools for visualizing multi-dimensional data?' | SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Open source tools for visualizing multi-dimensional data?' | moderate |
1,400 | Among all events hold by the Student_Club in 2019, find the percentage share of events related to 'Community Service' | SELECT CAST(SUM(CASE WHEN type = 'Community Service' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(type) FROM event WHERE SUBSTR(event_date, 1, 4) = '2019' | moderate |
1,149 | Are there more in-patient or outpatient who were male? What is the deviation in percentage? | SELECT CAST(SUM(CASE WHEN Admission = '+' THEN 1 ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN Admission = '-' THEN 1 ELSE 0 END) FROM Patient WHERE SEX = 'M' | moderate |
747 | What is the total number of superheroes without full name? | SELECT COUNT(id) FROM superhero WHERE full_name IS NULL | simple |
592 | How many users are awarded with more than 5 badges? | SELECT COUNT(UserId) FROM ( SELECT UserId, COUNT(Name) AS num FROM badges GROUP BY UserId ) T WHERE T.num > 5 | simple |
520 | Who is the illustrator that illustrated the least amount of cards? List the format of play of the cards that he/she illustrated. | 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 | moderate |
937 | What's the finish time for the driver who ranked second in 2008's AustChineseralian Grand Prix? | SELECT T1.time FROM results AS T1 INNER JOIN races AS T2 on T1.raceId = T2.raceId WHERE T1.rank = 2 AND T2.name = 'Chinese Grand Prix' AND T2.year = 2008 | simple |
1,377 | How many student have the position of president? | SELECT COUNT(member_id) FROM member WHERE position = 'President' | simple |
731 | How many superheroes did DC Comics publish? | SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN publisher AS T2 ON T1.publisher_id = T2.id WHERE T2.publisher_name = 'DC Comics' | simple |
63 | In chartered schools with charter number 00D2, what are the names of all the administrators? Include the name of the school and the city to which it belongs | SELECT AdmFName1, AdmLName1, School, City FROM schools WHERE Charter = 1 AND CharterNum = '00D2' | simple |
98 | Among the accounts who have approved loan date in 1997, list out the accounts that have the lowest approved amount and choose weekly issuance statement. | SELECT T2.account_id FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id WHERE STRFTIME('%Y', T1.date) = '1997' AND T2.frequency = 'POPLATEK TYDNE' ORDER BY T1.amount LIMIT 1 | moderate |
1,004 | How many wins was achieved by the oldest racer? Indicate his/her full name. | SELECT SUM(T1.wins),T2.forename, T2.surname FROM driverStandings AS T1 INNER JOIN drivers AS T2 on T1.driverId = T2.driverId ORDER BY T2.dob ASC LIMIT 1 | simple |
209 | Chlorine is in what type of bond? | SELECT DISTINCT T1.bond_type FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id INNER JOIN atom AS T3 ON T2.atom_id = T3.atom_id WHERE T3.element = 'cl' | simple |
318 | What is the molecule id of bond id TR001_1_7? | SELECT DISTINCT T1.molecule_id FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T2.bond_id = 'TR001_1_7' | simple |
405 | How many Brazilian Portuguese translated sets are inside the Commander block? | 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' | moderate |
577 | Write all comments made by user 'A Lion.' | SELECT T2.Text FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'A Lion' | simple |
763 | Indicate the attribute value of superhero Abomination. | SELECT T2.attribute_value FROM superhero AS T1 INNER JOIN hero_attribute AS T2 ON T1.id = T2.hero_id WHERE T1.superhero_name = 'Abomination' | simple |
723 | Among the superheroes with blue eyes, how many of them have the super power of "Agility"? | SELECT COUNT(T1.id) FROM superhero AS T1 INNER JOIN hero_power AS T2 ON T1.id = T2.hero_id INNER JOIN superpower AS T3 ON T2.power_id = T3.id INNER JOIN colour AS T4 ON T1.eye_colour_id = T4.id WHERE T3.power_name = 'Agility' AND T4.colour = 'Blue' | moderate |
194 | Provide the IDs and age of the client with high level credit card, which is eligible for loans. | SELECT T1.client_id, STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T3.birth_date) FROM disp AS T1 INNER JOIN card AS T2 ON T2.disp_id = T1.disp_id INNER JOIN client AS T3 ON T1.client_id = T3.client_id WHERE T2.type = 'gold' AND T1.type = 'OWNER' | moderate |
118 | For loan amount less than USD100,000, what is the percentage of accounts that is still running with no issue. | SELECT CAST(SUM(status = 'C') AS REAL) * 100 / COUNT(account_id) FROM loan WHERE amount < 100000 | moderate |
1,024 | Who are the top 5 players who perform better in crossing actions? Indicate their player id. | SELECT id FROM Player_Attributes ORDER BY crossing DESC LIMIT 5 | simple |
859 | What's Bruno Senna's Q1 result in the qualifying race No. 354? | SELECT T1.q1 FROM qualifying AS T1 INNER JOIN drivers AS T2 ON T2.driverId = T1.driverId WHERE T1.raceId = 354 AND T2.forename = 'Bruno' AND T2.surname = 'Senna' | simple |
224 | What are the bond IDs that have the same atom ID 2 of TR000_2? | SELECT T.bond_id FROM connected AS T WHERE T.atom_id2 = 'TR000_2' | simple |
770 | What is the eyes colour of Abraham Sapien? | SELECT T2.colour FROM superhero AS T1 INNER JOIN colour AS T2 ON T1.eye_colour_id = T2.id WHERE T1.full_name = 'Abraham Sapien' | simple |
54 | Please specify all of the schools and their related mailing zip codes that are under Avetik Atoian's administration. | SELECT School, MailZip FROM schools WHERE AdmFName1 = 'Avetik' AND AdmLName1 = 'Atoian' | simple |
605 | How many users obtained the "Announcer" badge? | SELECT COUNT(id) FROM badges WHERE Name = 'Announcer' | simple |
929 | Please list the Formula_1 races that Lewis Hamilton participated. | SELECT T1.name 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 T3.forename = 'Lewis' AND T3.surname = 'Hamilton' | simple |
841 | Provide the weight and race of the superhero with superhero ID 40. | SELECT T1.weight_kg, T2.race FROM superhero AS T1 INNER JOIN race AS T2 ON T1.race_id = T2.id WHERE T1.id = 40 | simple |
952 | Which constructors have been ranked 1? | SELECT DISTINCT T2.name FROM results AS T1 INNER JOIN constructors AS T2 on T1.constructorId = T2.constructorId WHERE T1.rank = 1 | simple |
1,363 | List all of the College of Humanities and Social Sciences' departments. | SELECT department FROM major WHERE college = 'College of Humanities and Social Sciences' | simple |
195 | What is the most common bond type? | SELECT T.bond_type FROM ( SELECT bond_type, COUNT(bond_id) FROM bond GROUP BY bond_type ORDER BY COUNT(bond_id) DESC LIMIT 1 ) AS T | simple |
146 | Who are the female account holders who own credit cards and also have loans? | SELECT T1.client_id FROM client AS T1 INNER JOIN disp AS T2 ON T1.client_id = T2.client_id INNER JOIN account AS T5 ON T2.account_id = T5.account_id INNER JOIN loan AS T3 ON T5.account_id = T3.account_id INNER JOIN card AS T4 ON T2.disp_id = T4.disp_id WHERE T1.gender = 'F' | simple |
911 | Which of these circuits is located at a higher latitude, Silverstone Circuit, Hockenheimring or Hungaroring? | SELECT name FROM circuits WHERE name IN ('Silverstone Circuit', 'Hockenheimring', 'Hungaroring') ORDER BY lat DESC LIMIT 1 | simple |
84 | What are the two most common first names among the school administrators? Indicate the district to which they administer. | SELECT DISTINCT T1.AdmFName1, T1.District FROM schools AS T1 INNER JOIN ( SELECT admfname1 FROM schools GROUP BY admfname1 ORDER BY COUNT(admfname1) DESC LIMIT 2 ) AS T2 ON T1.AdmFName1 = T2.admfname1 | simple |
1,293 | What is the highest anti-nucleus antibody concentration level of a patient with a normal creatinine level? | SELECT T2.ANA FROM Patient AS T1 INNER JOIN Examination AS T2 ON T1.ID = T2.ID INNER JOIN Laboratory AS T3 ON T1.ID = T3.ID WHERE T3.CRE < 1.5 ORDER BY T2.ANA DESC LIMIT 1 | moderate |
111 | How many accounts were opened in Litomerice in 1996? | SELECT COUNT(T2.account_id) FROM district AS T1 INNER JOIN account AS T2 ON T1.district_id = T2.district_id WHERE STRFTIME('%Y', T2.date) = '1996' AND T1.A2 = 'Litomerice' | simple |
601 | What is the score and the link type ID for post ID 395? | SELECT T1.Score, T2.LinkTypeId FROM posts AS T1 INNER JOIN postLinks AS T2 ON T1.Id = T2.PostId WHERE T2.PostId = 395 | simple |
698 | How many comments and answers were left by the users on the post with the title 'Clustering 1D data'? | SELECT CommentCount, AnswerCount FROM posts WHERE Title = 'Clustering 1D data' | simple |
538 | Please list the titles of the posts owned by the user csgillespie? | SELECT T1.Title FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie' | simple |
177 | What is the sum that client number 4's account has following transaction 851? Who owns this account, a man or a woman? | SELECT T4.balance, T1.gender FROM client AS T1 INNER JOIN disp AS T2 ON T1.client_id = T2.client_id INNER JOIN account AS T3 ON T2.account_id =T3.account_id INNER JOIN trans AS T4 ON T3.account_id = T4.account_id WHERE T1.client_id = 4 AND T4.trans_id = 851 | simple |
278 | How many of the single bond type molecules are non-carcinogenic? | SELECT COUNT(DISTINCT T2.molecule_id) FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '-' AND T1.bond_type = '-' | simple |
352 | Calculate the percentage of the cards availabe in Chinese Simplified. | SELECT CAST(SUM(CASE WHEN T2.language = 'Chinese Simplified' 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 | moderate |
1,113 | For the team "Hannover 96", what was its defence aggression class on 2015/9/10? | SELECT t2.chanceCreationShootingClass FROM Team AS t1 INNER JOIN Team_Attributes AS t2 ON t1.team_api_id = t2.team_api_id WHERE t1.team_long_name = 'Hannover 96' AND t2.`date` LIKE '2015-09-10%' | moderate |
1,349 | Provide the total number of the budget amount for "September Speaker" event. | SELECT SUM(T1.amount) FROM budget AS T1 INNER JOIN event AS T2 ON T1.link_to_event = T2.event_id WHERE T2.event_name = 'September Speaker' | simple |
380 | List the edhrecRank for cards with frame version 2015. | SELECT edhrecRank FROM cards WHERE frameVersion = 2015 | simple |
103 | Which client issued his/her card in 1994/3/3, give his/her client id. | SELECT T2.client_id FROM client AS T1 INNER JOIN disp AS T2 ON T1.client_id = T2.client_id INNER JOIN card AS T3 ON T2.disp_id = T3.disp_id WHERE T3.issued = '1994-03-03' | simple |
1,434 | 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? | SELECT zip_code FROM zip_code WHERE type = 'PO Box' AND county = 'San Juan Municipio' AND state = 'Puerto Rico' | simple |
1,493 | In February 2012, what percentage of customers consumed more than 528.3? | SELECT CAST(SUM(IIF(Consumption > 528.3, 1, 0)) AS FLOAT) * 100 / COUNT(CustomerID) FROM yearmonth WHERE Date = '201202' | simple |
108 | For the client who applied the biggest loan, what was his/her first amount of transaction after opened the account? | SELECT T3.amount FROM loan AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN trans AS T3 ON T2.account_id = T3.account_id ORDER BY T1.amount DESC, T3.date ASC LIMIT 1 | simple |
1,117 | What are the player api id of 10 heaviest players? | SELECT player_api_id FROM Player ORDER BY weight DESC LIMIT 10 | simple |
991 | What is the full name and date of birth of Austrian drivers born between 1981 and 1991? | SELECT forename, surname, dob FROM drivers WHERE nationality = 'Austrian' AND STRFTIME('%Y', dob) BETWEEN '1981' AND '1991' | simple |
1,375 | List all the members of the "School of Applied Sciences, Technology and Education" department. | SELECT T1.first_name, T1.last_name FROM member AS T1 INNER JOIN major AS T2 ON T1.link_to_major = T2.major_id WHERE T2.department = 'School of Applied Sciences, Technology and Education' | moderate |
1,382 | Among the students majored in interior design, who have attended the Community Theater event? | SELECT T2.first_name, T2.last_name FROM major AS T1 INNER JOIN member AS T2 ON T1.major_id = T2.link_to_major INNER JOIN attendance AS T3 ON T2.member_id = T3.link_to_member INNER JOIN event AS T4 ON T3.link_to_event = T4.event_id WHERE T4.event_name = 'Community Theater' AND T1.major_name = 'Interior Design' | moderate |
1,392 | Indicate the top source of funds received in September 2019 based on their amount. | SELECT source FROM income WHERE date_received BETWEEN '2019-09-01' and '2019-09-30' ORDER BY source DESC LIMIT 1 | simple |
347 | Find all cards illustrated by Stephen Daniel and describe the text of the ruling of these cards. State if these cards have missing or degraded properties and values. | SELECT T1.id, T2.text, T1.hasContentWarning FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Stephen Daniele' | moderate |
1,305 | How many patients accepted to the hospital have a normal level of white blood cells? | SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.WBC BETWEEN 3.5 AND 9 AND T1.Admission = '+' | moderate |
1,265 | How many patients have a normal level of anti-ribonuclear protein and have been admitted to the hospital? | SELECT COUNT(DISTINCT T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID WHERE T2.RNP = 'negative' OR T2.RNP = '0' AND T1.Admission = '+' | moderate |
437 | Among black card borders, which card has full artwork? | SELECT id FROM cards WHERE borderColor = 'black' AND isFullArt = 1 | simple |
261 | Write down bond id for molecules that are carcinogenic. | SELECT DISTINCT T1.bond_id FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+' | simple |
1,428 | List the city and state of members enrolled under electrical and computer engineering department. | 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' | moderate |
1,032 | Give the name of the league with the highest matches of all time and how many matches were played in the said league. | SELECT t2.name, t1.max_count FROM League AS t2 JOIN (SELECT league_id, MAX(cnt) AS max_count FROM (SELECT league_id, COUNT(id) AS cnt FROM Match GROUP BY league_id) AS subquery) AS t1 ON t1.league_id = t2.id | moderate |
350 | State the alternative languages available for card named Annul numbered 29. | SELECT T2.language FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Annul' AND T1.number = 29 | simple |
1,126 | State the name of players who came from Belgium. | SELECT t3.player_name FROM Country AS t1 INNER JOIN Match AS t2 ON t1.id = t2.country_id INNER JOIN Player AS t3 ON t2.home_player_1 = t3.player_api_id WHERE t1.name = 'Belgium' | simple |
1,252 | Among the patients with a normal Ig G level, how many of them have symptoms? | SELECT COUNT(T1.ID) FROM Patient AS T1 INNER JOIN Laboratory AS T2 ON T1.ID = T2.ID INNER JOIN Examination AS T3 ON T3.ID = T2.ID WHERE T2.IGG BETWEEN 900 AND 2000 AND T3.Symptoms IS NOT NULL | moderate |
279 | What is the label for bond ID TR001_10_11? | SELECT T2.label FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_id = 'TR001_10_11' | simple |
1,106 | Tell the defensive work rate for Kevin Berigaud on 2013/2/22. | SELECT t2.defensive_work_rate FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_fifa_api_id = t2.player_fifa_api_id WHERE SUBSTR(t2.`date`, 1, 10) = '2013-02-22' AND t1.player_name = 'Kevin Berigaud' | moderate |
1,083 | Which player has the strongest overall strength? | SELECT t1.player_name FROM Player AS t1 INNER JOIN Player_Attributes AS t2 ON t1.player_api_id = t2.player_api_id ORDER BY t2.overall_rating DESC LIMIT 1 | simple |
74 | What is the lowest grade for the District Special Education Consortia School with National Center for Educational Statistics school district identification number of 0613360? | SELECT MIN(T1.`Low Grade`) FROM frpm AS T1 INNER JOIN schools AS T2 ON T1.CDSCode = T2.CDSCode WHERE T2.NCESDist = '0613360' AND T2.EdOpsCode = 'SPECON' | moderate |
100 | Among the account opened, how many female customers who were born before 1950 and stayed in Sokolov? | SELECT COUNT(T2.client_id) FROM district AS T1 INNER JOIN client AS T2 ON T1.district_id = T2.district_id WHERE T2.gender = 'F' AND STRFTIME('%Y', T2.birth_date) < '1950' AND T1.A2 = 'Sokolov' | moderate |
Subsets and Splits