context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_name_89 (
grand_finalist VARCHAR,
winners VARCHAR,
year VARCHAR,
margin VARCHAR
) | What grand finalist had a year after 1979, a margin smaller than 30, and winners of essendon? | SELECT grand_finalist FROM table_name_89 WHERE year > 1979 AND margin < 30 AND winners = "essendon" | sql_create_context |
CREATE TABLE customer (
cust_id text,
cust_name text,
acc_type text,
acc_bal number,
no_of_loans number,
credit_score number,
branch_id number,
state text
)
CREATE TABLE bank (
branch_id number,
bname text,
no_of_customers number,
city text,
state text
)
CREATE TABL... | Which state has the greatest total number of bank customers? | SELECT state FROM bank GROUP BY state ORDER BY SUM(no_of_customers) DESC LIMIT 1 | spider |
CREATE TABLE gyb (
CLINIC_ID text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
INSU_TYPE text,
IN... | 列出编码为5675709的医院中根据入院诊断疾病编码,不同疾病的平均患者年龄都是多大? | SELECT qtb.IN_DIAG_DIS_CD, AVG(qtb.PERSON_AGE) FROM qtb WHERE qtb.MED_SER_ORG_NO = '5675709' GROUP BY qtb.IN_DIAG_DIS_CD UNION SELECT gyb.IN_DIAG_DIS_CD, AVG(gyb.PERSON_AGE) FROM gyb WHERE gyb.MED_SER_ORG_NO = '5675709' GROUP BY gyb.IN_DIAG_DIS_CD UNION SELECT zyb.IN_DIAG_DIS_CD, AVG(zyb.PERSON_AGE) FROM zyb WHERE zyb.... | css |
CREATE TABLE table_203_555 (
id number,
"place" text,
"player" text,
"country" text,
"score" text,
"to par" number,
"money ($)" number
) | which player came in first place ? | SELECT "player" FROM table_203_555 WHERE "place" = 1 | squall |
CREATE TABLE table_79816 (
"Dish" text,
"Callsign" text,
"Network" text,
"Resolution" text,
"City of License" text,
"Official Website" text
) | Name the resolution with dish of 8126 | SELECT "Resolution" FROM table_79816 WHERE "Dish" = '8126' | wikisql |
CREATE TABLE table_203_537 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) | list the opponents which are under the friendly competition . | SELECT "opponent" FROM table_203_537 WHERE "competition" = 'friendly' | squall |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE treatment (
trea... | count the number of times that patient 007-849 had had an intake of prbcs this month. | SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-849')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.cell... | eicu |
CREATE TABLE player_college (
player_id TEXT,
college_id TEXT,
year INTEGER
)
CREATE TABLE park (
park_id TEXT,
park_name TEXT,
park_alias TEXT,
city TEXT,
state TEXT,
country TEXT
)
CREATE TABLE appearances (
year INTEGER,
team_id TEXT,
league_id TEXT,
player_id TE... | For each year, bin the year into day of the week interval, and return the average of the number of times the team Boston Red Stockings won in the postseasons using a line chart, show by the x-axis from low to high. | SELECT year, AVG(COUNT(*)) FROM postseason AS T1 JOIN team AS T2 ON T1.team_id_winner = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' ORDER BY year | nvbench |
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
... | Questions posted in a given year without a bounty. | SELECT COUNT(*) FROM Posts AS p WHERE Id NOT IN (SELECT PostId FROM Votes AS v WHERE v.VoteTypeId = 8) AND p.CreationDate > '2015-05-01' AND p.PostTypeId = 1 AND (p.Score >= 2 AND p.Score <= 9) AND (p.ViewCount >= 77 AND p.ViewCount <= 628) AND p.ClosedDate IS NULL AND p.FavoriteCount >= 1 AND NOT p.AcceptedAnswerId IS... | sede |
CREATE TABLE table_name_85 (
episode VARCHAR,
first_aired VARCHAR
) | What episode was first aired in 1976? | SELECT episode FROM table_name_85 WHERE first_aired = "1976" | sql_create_context |
CREATE TABLE table_61379 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
) | Where was the friendly competition that Andriy Yarmolenko won on 28 may 2012? | SELECT "Venue" FROM table_61379 WHERE "Result" = 'won' AND "Competition" = 'friendly' AND "Date" = '28 may 2012' | wikisql |
CREATE TABLE table_name_87 (
surface VARCHAR,
outcome VARCHAR,
score_in_the_final VARCHAR
) | Which Surface has an Outcome of runner-up, and a Score in the final of 4 6, 6 7, 6 2, 2 6? | SELECT surface FROM table_name_87 WHERE outcome = "runner-up" AND score_in_the_final = "4–6, 6–7, 6–2, 2–6" | sql_create_context |
CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate tim... | Users with the highest reputation per answers and questions count ratio. To find your own ratio, go here:
https://data.stackexchange.com/stackoverflow/query/384546/users-reputation-per-answers-and-questions-count-ratio | SELECT u.Id AS "user_link", u.DisplayName, u.Reputation, COUNT(p.Id) AS "posts_count", (CAST(u.Reputation AS FLOAT) / CAST(COUNT(p.Id) AS FLOAT)) AS "ratio" FROM Users AS u LEFT JOIN Posts AS p ON u.Id = p.OwnerUserId WHERE p.PostTypeId = 1 OR p.PostTypeId = 2 GROUP BY u.Id, u.DisplayName, u.Reputation HAVING COUNT(p.I... | sede |
CREATE TABLE table_65368 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
) | How many years had a Venue of eindhoven? | SELECT COUNT("Year") FROM table_65368 WHERE "Venue" = 'eindhoven' | wikisql |
CREATE TABLE table_58000 (
"School" text,
"Location" text,
"Enrolment" real,
"Founded" real,
"Denomination" text,
"Day/Boarding" text,
"School Colours" text,
"Abbreviation" text,
"In competition since" real
) | What is the largest enrollment for anglican day schools founded after 1929? | SELECT MAX("Enrolment") FROM table_58000 WHERE "Denomination" = 'anglican' AND "Day/Boarding" = 'day' AND "Founded" > '1929' | wikisql |
CREATE TABLE table_25146455_1 (
series VARCHAR,
driver VARCHAR
) | In what series did Bobby Labonte drive? | SELECT series FROM table_25146455_1 WHERE driver = "Bobby Labonte" | sql_create_context |
CREATE TABLE table_name_82 (
number VARCHAR,
name VARCHAR
) | What number was Rashad McCants? | SELECT number FROM table_name_82 WHERE name = "rashad mccants" | sql_create_context |
CREATE TABLE table_45527 (
"Rider" text,
"Manufacturer" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
) | Which manufacturer has 8 laps? | SELECT "Manufacturer" FROM table_45527 WHERE "Laps" = '8' | wikisql |
CREATE TABLE table_name_68 (
year INTEGER,
entrant VARCHAR,
chassis VARCHAR
) | What was the sum of the years, when the entrant was Scuderia Ferrari, and when the Chassis was Ferrari 312/66? | SELECT SUM(year) FROM table_name_68 WHERE entrant = "scuderia ferrari" AND chassis = "ferrari 312/66" | sql_create_context |
CREATE TABLE station_company (
Station_ID int,
Company_ID int,
Rank_of_the_Year int
)
CREATE TABLE company (
Company_ID int,
Rank int,
Company text,
Headquarters text,
Main_Industry text,
Sales_billion real,
Profits_billion real,
Assets_billion real,
Market_Value real
)
... | For each company id, what are the companies and how many gas stations does each one operate. Plot them as bar chart. | SELECT Company, COUNT(*) FROM station_company AS T1 JOIN company AS T2 ON T1.Company_ID = T2.Company_ID GROUP BY T1.Company_ID | nvbench |
CREATE TABLE table_203_56 (
id number,
"star" text,
"start\nyear" number,
"end\nyear" number,
"maximum\nyear" number,
"maximum\nmagnitude" number,
"distance at\nmaximum (ly)" number,
"current\ndistance" number,
"current\nmagnitude" number
) | how many stars have a distance at maximum of 30 light years or higher ? | SELECT COUNT("star") FROM table_203_56 WHERE "distance at\nmaximum (ly)" >= 30 | squall |
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE person_info (
CSD text,
CSRQ time,
GJDM text,
GJMC text,
JGDM text,
JGMC text,
MZDM text,
MZMC text,
RYBH text,
XBDM number,
XBMC text,
XLDM text,
XLMC text,
XM text... | 这位患者54994299以前有哪些住院诊断结果咋样啊? | SELECT zyjzjlb.ZYZDBM, zyjzjlb.ZYZDMC FROM hz_info JOIN zyjzjlb JOIN hz_info_zyjzjlb ON hz_info.YLJGDM = hz_info_zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX AND hz_info_zyjzjlb.JZLSH = zyjzjlb.JZLSH AND hz_info_zyjzjlb.YLJGDM = hz_info_zyjzjlb.YLJGDM AND hz_info_zyjzjlb.JZLSH = zyjzjlb.JZLS... | css |
CREATE TABLE table_18367694_2 (
directed_by VARCHAR,
original_air_date VARCHAR
) | who directed the episode with the original air date of November 22, 1989? | SELECT directed_by FROM table_18367694_2 WHERE original_air_date = "November 22, 1989" | sql_create_context |
CREATE TABLE table_203_755 (
id number,
"singing position" number,
"song title" text,
"informal translation" text,
"act" text,
"percentage of votes" text,
"final position" text
) | what song took last place ? | SELECT "song title" FROM table_203_755 ORDER BY "final position" DESC LIMIT 1 | squall |
CREATE TABLE aircraft (
aircraft_code varchar,
aircraft_description varchar,
manufacturer varchar,
basic_type varchar,
engines int,
propulsion varchar,
wide_body varchar,
wing_span int,
length int,
weight int,
capacity int,
pay_load int,
cruising_speed int,
range_... | what sort of ground transportation is there in WASHINGTON | SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'WASHINGTON' AND ground_service.city_code = city.city_code | atis |
CREATE TABLE table_name_84 (
country VARCHAR,
player VARCHAR
) | What country is Greg Norman from? | SELECT country FROM table_name_84 WHERE player = "greg norman" | sql_create_context |
CREATE TABLE Document_Locations (
Document_ID INTEGER,
Location_Code CHAR(15),
Date_in_Location_From DATETIME,
Date_in_Locaton_To DATETIME
)
CREATE TABLE All_Documents (
Document_ID INTEGER,
Date_Stored DATETIME,
Document_Type_Code CHAR(15),
Document_Name CHAR(255),
Document_Descrip... | Show the number of documents for each location code in a bar chart, and I want to rank by the y axis in desc. | SELECT Location_Code, COUNT(Location_Code) FROM Document_Locations GROUP BY Location_Code ORDER BY COUNT(Location_Code) DESC | nvbench |
CREATE TABLE table_12176 (
"Country" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue #" text
) | What country has the label Control? | SELECT "Country" FROM table_12176 WHERE "Label" = 'control' | wikisql |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
... | calculate how many times since 2105 patient 9241 has received the insert endotracheal tube procedure. | SELECT COUNT(*) FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'insert endotracheal tube') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 9241) AND STRFTIME('%y', p... | mimic_iii |
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
) | Visualize a bar chart for what is average age for different job title?, I want to show from low to high by the the average of age. | SELECT job, AVG(age) FROM Person GROUP BY job ORDER BY AVG(age) | nvbench |
CREATE TABLE table_name_93 (
years VARCHAR,
total VARCHAR,
sport VARCHAR
) | For a total of 1 and the sport of softball what were the years? | SELECT years FROM table_name_93 WHERE total = "1" AND sport = "softball" | sql_create_context |
CREATE TABLE table_34456 (
"Colony" text,
"Liberation" text,
"de facto transfer" text,
"Treaty of Cession" text,
"de jure transfer" text,
"Merger" text
) | When was the Treaty of Cession for Karikal Colony? | SELECT "Treaty of Cession" FROM table_34456 WHERE "Colony" = 'karikal' | wikisql |
CREATE TABLE table_203_52 (
id number,
"pos" text,
"no" number,
"driver" text,
"constructor" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
) | how many laps total were completed by all drivers ? | SELECT SUM("laps") FROM table_203_52 | squall |
CREATE TABLE flight_leg (
flight_id int,
leg_number int,
leg_flight int
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE city (
city_code varchar,
city_name varchar,
state_code varchar,
country_name varchar,
time_zone_code varchar
)
... | what airlines fly from ST. PETERSBURG to MILWAUKEE and from MILWAUKEE to TACOMA | SELECT DISTINCT airline.airline_code FROM airline, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, airport_service AS AIRPORT_SERVICE_3, city AS CITY_0, city AS CITY_1, city AS CITY_2, city AS CITY_3, flight AS FLIGHT_0, flight AS FLIGHT_1 WHERE CITY_0.c... | atis |
CREATE TABLE table_28298471_14 (
stage VARCHAR,
winner VARCHAR
) | When hayden roulston is the winner what is the stage? | SELECT stage FROM table_28298471_14 WHERE winner = "Hayden Roulston" | sql_create_context |
CREATE TABLE table_23706 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Total points" real,
"Number of dances" real,
"Average" text
) | How many couples have an average of 25.3? | SELECT COUNT("Couple") FROM table_23706 WHERE "Average" = '25.3' | wikisql |
CREATE TABLE area (
course_id int,
area varchar
)
CREATE TABLE course_prerequisite (
pre_course_id int,
course_id int
)
CREATE TABLE semester (
semester_id int,
semester varchar,
year int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE p... | I want you to show me some 300 -level courses that are easy . | SELECT DISTINCT course.name, course.number, program_course.workload FROM course, program_course WHERE course.department = 'EECS' AND course.number BETWEEN 300 AND 300 + 100 AND program_course.course_id = course.course_id AND program_course.workload < 3 ORDER BY program_course.workload | advising |
CREATE TABLE table_name_50 (
quantity INTEGER,
type VARCHAR,
retired VARCHAR
) | What is the lowest quantity of the 1b n2 type, which was retired in 1907-12? | SELECT MIN(quantity) FROM table_name_50 WHERE type = "1b n2" AND retired = "1907-12" | sql_create_context |
CREATE TABLE microlab (
microlabid number,
patientunitstayid number,
culturesite text,
organism text,
culturetakentime time
)
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,... | how many patients during a year before were diagnosed with peripheral vascular ischemia - atherosclerotic thrombo-occlusion in the same hospital visit after antibacterials - third generation cephalosporin procedures? | SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, treatment.treatmenttime, patient.patienthealthsystemstayid FROM treatment JOIN patient ON treatment.patientunitstayid = patient.patientunitstayid WHERE treatment.treatmentname = 'antibacterials - third generation cephalosporin' AND DATETIME(treatment.t... | eicu |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescription... | what is diagnoses short title and diagnoses long title of subject name gonzalo wasson? | SELECT diagnoses.short_title, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.name = "Gonzalo Wasson" | mimicsql_data |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
... | count the number of patients on main drug type prescription who have diagnoses icd9 code 2752. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.icd9_code = "2752" AND prescriptions.drug_type = "MAIN" | mimicsql_data |
CREATE TABLE table_name_7 (
max_torque_at_rpm VARCHAR,
engine_code_s_ VARCHAR
) | What is the maximum torque at rpm for the engine coded BJB/BKC/BXE/BLS? | SELECT max_torque_at_rpm FROM table_name_7 WHERE engine_code_s_ = "bjb/bkc/bxe/bls" | sql_create_context |
CREATE TABLE table_name_93 (
place VARCHAR,
date VARCHAR
) | Which place was earned on 12 feb 2012? | SELECT place FROM table_name_93 WHERE date = "12 feb 2012" | sql_create_context |
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE charte... | the number of times patient 28447 has received a hematocrit test during this year. | SELECT COUNT(*) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'hematocrit') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 28447) AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(),... | mimic_iii |
CREATE TABLE table_19872 (
"Eviction No." real,
"Nominee" text,
"Vote to Save" text,
"Vote to Evict" text,
"Net vote" text,
"Eviction result" text
) | How many eviction results occurred with a eviction no. 12 and a vote to save of 2.76%? | SELECT COUNT("Eviction result") FROM table_19872 WHERE "Eviction No." = '12' AND "Vote to Save" = '2.76%' | wikisql |
CREATE TABLE table_name_57 (
nhl_team VARCHAR,
player VARCHAR
) | On what NHL team does Roman Vopat play for? | SELECT nhl_team FROM table_name_57 WHERE player = "roman vopat" | sql_create_context |
CREATE TABLE table_31302 (
"Season" text,
"Ave. Attendance" real,
"+/- ave. on prev. season" text,
"Competition" text,
"Occupier" text
) | What is the lowest value of average attendance when average on previous season is -459? | SELECT MIN("Ave. Attendance") FROM table_31302 WHERE "+/- ave. on prev. season" = '-459' | wikisql |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | All possible Location entries for Brazil ('%Bra%'). | SELECT DISTINCT Location FROM Users WHERE Location LIKE '%Bra%' | sede |
CREATE TABLE CloseAsOffTopicReasonTypes (
Id number,
IsUniversal boolean,
InputTitle text,
MarkdownInputGuidance text,
MarkdownPostOwnerGuidance text,
MarkdownPrivilegedUserGuidance text,
MarkdownConcensusDescription text,
CreationDate time,
CreationModeratorId number,
ApprovalDa... | Speed of answers in JS depending on fiddle.. | SELECT CAST((JULIANDAY(MAX(a.CreationDate)) - JULIANDAY(p.CreationDate)) * 1440.0 AS INT), COUNT(DISTINCT p.Id) AS "wo/fiddle", COUNT(DISTINCT CASE WHEN NOT PATINDEX('%http://jsfiddle.net/%', p.Body) IS NULL THEN p.Id ELSE NULL END) AS "w/fiddle" FROM PostTags AS pt JOIN Posts AS p ON pt.PostId = p.Id JOIN Posts AS a O... | sede |
CREATE TABLE table_48235 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"49ers points" real,
"Opponents" real,
"Record" text,
"Streak" text,
"Attendance" real
) | What was the highest attendance for the game where the record was 0-5 and the opponents scored more than 20 points? | SELECT MAX("Attendance") FROM table_48235 WHERE "Record" = '0-5' AND "Opponents" > '20' | wikisql |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... | how many patients whose age is less than 58 and admission year is less than 2107? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.age < "58" AND demographic.admityear < "2107" | mimicsql_data |
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
Unsure_rate real
)
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight re... | Return a bar chart about the distribution of Sex and the amount of Sex , and group by attribute Sex, rank in ascending by the bar. | SELECT Sex, COUNT(Sex) FROM people GROUP BY Sex ORDER BY Sex | nvbench |
CREATE TABLE table_76524 (
"Season" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
) | Which Second has a Third of david nedohin, and a Lead of ben hebert? | SELECT "Second" FROM table_76524 WHERE "Third" = 'david nedohin' AND "Lead" = 'ben hebert' | wikisql |
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
... | count the number of patients who have received a kidney transplant nec procedure within 2 months after receiving a dx ultrasound-heart treatment until 2 years ago. | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'dx ultrasou... | mimic_iii |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | give me the number of patients whose death status is 0 and diagnoses icd9 code is 29570? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.expire_flag = "0" AND diagnoses.icd9_code = "29570" | mimicsql_data |
CREATE TABLE table_name_36 (
bonus_pts INTEGER,
rider VARCHAR,
rides VARCHAR
) | What was Bob Jameson's lowest bonus where he had less than 15 rides? | SELECT MIN(bonus_pts) FROM table_name_36 WHERE rider = "bob jameson" AND rides < 15 | sql_create_context |
CREATE TABLE table_27905664_1 (
COUNT VARCHAR,
us_viewers__million_ VARCHAR
) | How many episode numbers had US viewership of 4.26 million? | SELECT COUNT AS № FROM table_27905664_1 WHERE us_viewers__million_ = "4.26" | sql_create_context |
CREATE TABLE table_34200 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
) | What was the record on April 16? | SELECT "Record" FROM table_34200 WHERE "Date" = 'april 16' | wikisql |
CREATE TABLE table_76440 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
) | What is Player, when Year(s) Won is 1955? | SELECT "Player" FROM table_76440 WHERE "Year(s) won" = '1955' | wikisql |
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
) | For directors who had more than one movie, bin the dates of release into Year interval and them compute the total number of movies in each year bucket Show me the result using a line chart, I want to rank year from low to high order. | SELECT year, COUNT(year) FROM Movie AS T1 JOIN Movie AS T2 ON T1.director = T2.director WHERE T1.title <> T2.title ORDER BY year | nvbench |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | Most popular StackOverflow tags in April 2017. | SELECT num.TagName AS Tag, ROW_NUMBER() OVER (ORDER BY rate.Rate DESC) AS YearRank, ROW_NUMBER() OVER (ORDER BY num.Num DESC) AS TotalRank, rate.Rate AS QuestionsInYear, num.Num AS QuestionsTotal FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId ... | sede |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
... | count the number of patients whose procedure long title is creation of conduit between left ventricle and aorta? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.long_title = "Creation of conduit between left ventricle and aorta" | mimicsql_data |
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDisplayName text... | Compare Gold, Silver and Bronze Badges. | WITH UserBadges AS (SELECT UserId, COUNT(*) AS NumBadges FROM Badges GROUP BY UserId, Name) SELECT 1 AS "order", 'Gold' AS Label, UserId AS "user_link", Num FROM (SELECT UserId, COUNT(*) AS Num FROM (SELECT UserId FROM UserBadges) AS d GROUP BY UserId ORDER BY Num DESC LIMIT 10) AS G UNION ALL SELECT 2 AS "order", 'Sil... | sede |
CREATE TABLE Votes (
Id number,
PostId number,
VoteTypeId number,
UserId number,
CreationDate time,
BountyAmount number
)
CREATE TABLE PostNotices (
Id number,
PostId number,
PostNoticeTypeId number,
CreationDate time,
DeletionDate time,
ExpiryDate time,
Body text,
... | CLEANUP: find long tag wiki excerpts. | SELECT LENGTH(p.Body) AS "length", p.Body, CASE WHEN LENGTH(p.Body) > @truncation_length THEN 'YES' ELSE '' END AS "truncated?", t.TagName, t.Count, 'site://edit-tag-wiki/' + CAST(t.Id AS TEXT) + '|(edit)' AS "editlink" FROM Posts AS p INNER JOIN Tags AS t ON p.Id = t.ExcerptPostId WHERE p.PostTypeId = 4 AND LENGTH(p.B... | sede |
CREATE TABLE table_name_24 (
points INTEGER,
name VARCHAR,
drawn VARCHAR,
lost VARCHAR
) | Which Points have a Drawn smaller than 2, and a Lost of 12, and a Name of ev bad w rishofen? | SELECT MAX(points) FROM table_name_24 WHERE drawn < 2 AND lost = 12 AND name = "ev bad wörishofen" | sql_create_context |
CREATE TABLE table_name_66 (
opponent VARCHAR,
game VARCHAR,
date VARCHAR
) | On May 9 after Game 3, what was the Opponent? | SELECT opponent FROM table_name_66 WHERE game > 3 AND date = "may 9" | sql_create_context |
CREATE TABLE table_41946 (
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text
) | What show was on at 8:00 when american idol was on at 9:00? | SELECT "8:00" FROM table_41946 WHERE "9:00" = 'american idol' | wikisql |
CREATE TABLE table_13111 (
"Elected" text,
"Assembled" text,
"Dissolved" text,
"1st member" text,
"2nd member" text
) | What Dissolved has a 2nd member of humphrey winch, and Assembled of 27 october 1601? | SELECT "Dissolved" FROM table_13111 WHERE "2nd member" = 'humphrey winch' AND "Assembled" = '27 october 1601' | wikisql |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | For those records from the products and each product's manufacturer, return a bar chart about the distribution of headquarter and the average of manufacturer , and group by attribute headquarter, could you list in ascending by the X? | SELECT Headquarter, AVG(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Headquarter ORDER BY Headquarter | nvbench |
CREATE TABLE table_31764 (
"Draw" real,
"Artist" text,
"Song" text,
"Place" real,
"Points" real
) | Name the fewest points of 5 place | SELECT MIN("Points") FROM table_31764 WHERE "Place" = '5' | wikisql |
CREATE TABLE table_71347 (
"Molecule" text,
"Percent of Mass" text,
"Mol.Weight (daltons)" text,
"Molecules" text,
"Percent of Molecules" text
) | what is the perfect of mass when the molecules is 1.74e14*? | SELECT "Percent of Mass" FROM table_71347 WHERE "Molecules" = '1.74e14*' | wikisql |
CREATE TABLE table_55604 (
"Season" real,
"Series" text,
"Team Name" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Final Placing" text
) | What is the final placing of the team with 0 ples, more than 16 races, and 16 podiums? | SELECT "Final Placing" FROM table_55604 WHERE "Poles" = '0' AND "Races" > '16' AND "Podiums" = '16' | wikisql |
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... | For how long the patients admitted to clinic referral (premature) stayed in the hospital? | SELECT MAX(demographic.days_stay) FROM demographic WHERE demographic.admission_location = "CLINIC REFERRAL/PREMATURE" | mimicsql_data |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE cost (
costid number,
uniquepid text,
patienthealthsystemstayid number,
eventtype text,
eventid number,
chargetime time,
cost number
)
CREATE TABLE d... | what was the name of the medicine that patient 016-14568 was prescribed first on the first hospital encounter? | SELECT medication.drugname FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-14568' AND NOT patient.hospitaldischargetime IS NULL ORDER BY p... | eicu |
CREATE TABLE table_203_509 (
id number,
"year" number,
"laetare medalist" text,
"position" text
) | what is the name of the laetare medalist listed before edward preuss ? | SELECT "laetare medalist" FROM table_203_509 WHERE id = (SELECT id FROM table_203_509 WHERE "laetare medalist" = 'edward preuss') - 1 | squall |
CREATE TABLE shipments (
order_id VARCHAR,
shipment_date INTEGER
) | Find the ids of orders which are shipped after 2000-01-01. | SELECT order_id FROM shipments WHERE shipment_date > "2000-01-01" | sql_create_context |
CREATE TABLE election (
election_id number,
counties_represented text,
district number,
delegate text,
party number,
first_elected number,
committee text
)
CREATE TABLE county (
county_id number,
county_name text,
population number,
zip_code text
)
CREATE TABLE party (
... | Return all the information for each election record. | SELECT * FROM election | spider |
CREATE TABLE table_6748 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | What is the highest number of bronze for the United States with more than 1 silver? | SELECT MAX("Bronze") FROM table_6748 WHERE "Nation" = 'united states' AND "Silver" > '1' | wikisql |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label text
)
CREATE TABLE transfers (
row_id number,
subject_id number,
had... | was there a cholecystectomy performed on patient 26849 since 2102? | SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.icd9_code = (SELECT d_icd_procedures.icd9_code FROM d_icd_procedures WHERE d_icd_procedures.short_title = 'cholecystectomy') AND procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26849) AND STRFTIME('%y', proce... | mimic_iii |
CREATE TABLE table_336 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
) | What are the players that attented long beach state? | SELECT "Player" FROM table_336 WHERE "School/Club Team/Country" = 'Long Beach State' | wikisql |
CREATE TABLE t_kc22 (
AMOUNT number,
CHA_ITEM_LEV number,
DATA_ID text,
DIRE_TYPE number,
DOSE_FORM text,
DOSE_UNIT text,
EACH_DOSAGE text,
EXP_OCC_DATE time,
FLX_MED_ORG_ID text,
FXBZ number,
HOSP_DOC_CD text,
HOSP_DOC_NM text,
MED_CLINIC_ID text,
MED_DIRE_CD tex... | 编号为97657668的病患的医疗记录中药品消费不低于9132.88元的医疗就诊编号是啥 | SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_ID = '97657668' AND NOT t_kc22.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT < 9132.88) | css |
CREATE TABLE table_77665 (
"Club" text,
"Founded" real,
"Joined" real,
"Location" text,
"Stadium" text,
"Capacity" real,
"2012\u201313 Position" text,
"Top Division Titles" real
) | What was the total number of Top Division Titles where the year founded was prior to 1975 and the location was in Chaguaramas? | SELECT SUM("Top Division Titles") FROM table_77665 WHERE "Founded" < '1975' AND "Location" = 'chaguaramas' | wikisql |
CREATE TABLE table_42145 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | How many gold have a bronze of 1, a rank smaller than 6, and a total less than 3? | SELECT SUM("Gold") FROM table_42145 WHERE "Bronze" = '1' AND "Rank" < '6' AND "Total" < '3' | wikisql |
CREATE TABLE table_53694 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What is the largest crowd for North Melbourne home games? | SELECT MAX("Crowd") FROM table_53694 WHERE "Home team" = 'north melbourne' | wikisql |
CREATE TABLE table_name_62 (
driver VARCHAR,
laps VARCHAR
) | Who is the driver for laps of 45 | SELECT driver FROM table_name_62 WHERE laps = 45 | sql_create_context |
CREATE TABLE table_204_204 (
id number,
"rank" number,
"heat" number,
"country" text,
"cyclists" text,
"result" number,
"notes" text
) | what is the difference in time between the first place and second place cyclist ? | SELECT ABS((SELECT "result" FROM table_204_204 WHERE "rank" = 1) - (SELECT "result" FROM table_204_204 WHERE "rank" = 2)) | squall |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | 医院8731863所有的就诊记录里医保的统筹基金花费和总的医疗费比值根据科室不同列出来平均有多少 | SELECT t_kc21.MED_ORG_DEPT_NM, AVG(t_kc24.OVE_PAY / t_kc24.MED_AMOUT) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '8731863' GROUP BY t_kc21.MED_ORG_DEPT_NM | css |
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
HZXM text,
JZKSDM text,
JZKSMC text,
JZLSH text,
KH text,
KLX number,
MZBMLX number,
MZJZLSH text,
MZZDBM text,
MZZDMC text,
MZZYZDZZBM... | 列举出患者柏晗玥从2018年1月20日到2020年7月8日内检测人为许红雪的所有检验结果指标记录的检验指数流水号有哪些? | SELECT jyjgzbb.JYZBLSH FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = ... | css |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic ... | count the number of patients less than 81 years who belong to american indian/alaska native ethnic background. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "AMERICAN INDIAN/ALASKA NATIVE" AND demographic.age < "81" | mimicsql_data |
CREATE TABLE zyb (
CLINIC_ID text,
COMP_ID text,
DATA_ID text,
DIFF_PLACE_FLG number,
FERTILITY_STS number,
FLX_MED_ORG_ID text,
HOSP_LEV number,
HOSP_STS number,
IDENTITY_CARD text,
INPT_AREA_BED text,
INSURED_IDENTITY number,
INSURED_STS text,
INSU_TYPE text,
IN... | 患者83192146在01年8月28日到02年12月20日这段时间内,自付比例低于0.32的药品数量是多少 | SELECT COUNT(*) FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.PERSON_ID = '83192146' AND t_kc22.STA_DATE BETWEEN '2001-08-28' AND '2002-12-20' AND t_kc22.SELF_PAY_PRO < 0.32 UNION SELECT COUNT(*) FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gyb.PERSON_ID = '8319214... | css |
CREATE TABLE table_22254 (
"Canton" text,
"Years of Kindergarten" real,
"Years of Kindergarten provided" text,
"Years of Kindergarten legally required" text,
"Length of Primary School" real,
"Length of mandatory Secondary School" real,
"Separate Secondary Schools?" text,
"Cooperative Sec... | What is the longest length of mandatory secondary school? | SELECT MAX("Length of mandatory Secondary School") FROM table_22254 | wikisql |
CREATE TABLE table_35633 (
"Date" text,
"City" text,
"Opponent" text,
"Results\u00b9" text,
"Type of game" text
) | On October 8, what city was the game played? | SELECT "City" FROM table_35633 WHERE "Date" = 'october 8' | wikisql |
CREATE TABLE table_204_735 (
id number,
"rank" number,
"team" text,
"names" text,
"time" text,
"qualification" text
) | how long did it take italy to finish in cycling at the 1996 summer olympics men 's team pursuit ? | SELECT "time" FROM table_204_735 WHERE "team" = 'italy' | squall |
CREATE TABLE table_47596 (
"Rank" text,
"Team" text,
"Run 1" text,
"Run 2" text,
"Run 3" text,
"Final" text
) | Which final has rank of 10? | SELECT "Final" FROM table_47596 WHERE "Rank" = '10' | wikisql |
CREATE TABLE t_kc21 (
MED_CLINIC_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
COMP_ID text,
PERSON_ID text,
PERSON_NM text,
IDENTITY_CARD text,
SOC_SRT_CARD text,
PERSON_SEX number,
PERSON_AGE number,
IN_HOSP_DATE time,
OUT_HOSP_DATE time,
DIFF_PLACE_FLG numb... | 自二零一零年九月四日开始,截止到二零一三年八月十日,患者64711366的病历里最主要的是哪种病 | SELECT IN_DIAG_DIS_CD, IN_DIAG_DIS_NM FROM t_kc21 WHERE PERSON_ID = '64711366' AND IN_HOSP_DATE BETWEEN '2011-08-23' AND '2013-08-10' GROUP BY IN_DIAG_DIS_CD ORDER BY COUNT(*) DESC LIMIT 1 | css |
CREATE TABLE table_32940 (
"name" text,
"pos." text,
"caps" real,
"goals" real,
"club" text
) | How many goals for the player with 2 caps at degerfors if? | SELECT "goals" FROM table_32940 WHERE "caps" = '2' AND "club" = 'degerfors if' | wikisql |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE microbiologyevents (
row_id number,
subject_id number,
hadm_id number,
charttime time,
spec_type_desc text,
org_name text
)
CREATE TABLE patients (
... | has patient 3277's temperature c (calc) been normal? | SELECT COUNT(*) > 0 FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 3277)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'temperature c (cal... | mimic_iii |
CREATE TABLE table_28013 (
"Episode #" real,
"The W\u00f8rd" text,
"Guest" text,
"Introductory phrase" text,
"Original airdate" text,
"Production code" real
) | How many production codes were there for the episode that aired on November 15? | SELECT COUNT("Production code") FROM table_28013 WHERE "Original airdate" = 'November 15' | wikisql |
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
) | For those records from the products and each product's manufacturer, find name and manufacturer , and group by attribute founder, and visualize them by a bar chart, could you display by the Manufacturer in asc? | SELECT T1.Name, T1.Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder, T1.Name ORDER BY T1.Manufacturer | nvbench |
CREATE TABLE table_29993 (
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | How many teams does Maxim Bets play for? | SELECT COUNT("NHL team") FROM table_29993 WHERE "Player" = 'Maxim Bets' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.