context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE hz_info (
KH text,
KLX number,
YLJGDM text,
RYBH text
)
CREATE TABLE zyjzjlb (
YLJGDM text,
JZLSH text,
MZJZLSH text,
KH text,
KLX number,
HZXM text,
WDBZ number,
RYDJSJ time,
RYTJDM number,
RYTJMC text,
JZKSDM text,
JZKSMC text,
RZBQDM t... | 在门诊看病13535418101患者共开出了多少份检验报告单? | SELECT COUNT(*) FROM jybgb WHERE JZLSH = '13535418101' | css |
CREATE TABLE table_name_32 (
laps VARCHAR,
driver VARCHAR
) | How many laps did ant nio pizzonia do? | SELECT COUNT(laps) FROM table_name_32 WHERE driver = "antônio pizzonia" | sql_create_context |
CREATE TABLE table_25912 (
"Episode" text,
"First broadcast" text,
"Seans team" text,
"Daves team" text,
"Scores" text
) | In how many episodes was Dave's team made up of David Walliams and Louis Walsh? | SELECT COUNT("Episode") FROM table_25912 WHERE "Daves team" = 'David Walliams and Louis Walsh' | wikisql |
CREATE TABLE table_2610582_7 (
power__kw_ VARCHAR,
location VARCHAR
) | What's the power for General Santos? | SELECT power__kw_ FROM table_2610582_7 WHERE location = "General Santos" | sql_create_context |
CREATE TABLE table_46984 (
"Position" real,
"Pilot" text,
"Glider" text,
"Speed" text,
"Distance" text
) | What is Distance, when Pilot is 'Stanislaw Wujczak'? | SELECT "Distance" FROM table_46984 WHERE "Pilot" = 'stanislaw wujczak' | wikisql |
CREATE TABLE table_11964047_10 (
record VARCHAR,
home VARCHAR
) | What is the record for the game at home Los Angeles Lakers? | SELECT record FROM table_11964047_10 WHERE home = "Los Angeles Lakers" | sql_create_context |
CREATE TABLE Problems (
problem_id INTEGER,
product_id INTEGER,
closure_authorised_by_staff_id INTEGER,
reported_by_staff_id INTEGER,
date_problem_reported DATETIME,
date_problem_closed DATETIME,
problem_description VARCHAR(255),
other_problem_details VARCHAR(255)
)
CREATE TABLE Problem... | Find all the ids and dates of the logs for the problem whose id is 10 Plot them as bar chart, and list in descending by the Y-axis please. | SELECT log_entry_date, problem_log_id FROM Problem_Log WHERE problem_id = 10 ORDER BY problem_log_id DESC | nvbench |
CREATE TABLE table_3050 (
"Seed" real,
"Rank" real,
"Player" text,
"Points" real,
"Points defending" text,
"Points won" real,
"New points" real,
"Status" text
) | How many new defense points over 280 did agnieszka radwa ska score? | SELECT MAX("New points") FROM table_3050 WHERE "Points defending" = '280' AND "Player" = 'Agnieszka Radwańska' | wikisql |
CREATE TABLE table_20542 (
"Species" text,
"Indole" text,
"Methyl Red" text,
"Voges-Proskauer" text,
"Citrate" text
) | What are the results for testing the species with voges-proskauer when citrate yields a positive result? | SELECT "Voges-Proskauer" FROM table_20542 WHERE "Citrate" = 'Positive' | wikisql |
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
) | Find the total revenue of companies of each founder Visualize by bar chart, and display by the Y-axis from high to low. | SELECT Founder, SUM(Revenue) FROM Manufacturers GROUP BY Founder ORDER BY SUM(Revenue) DESC | nvbench |
CREATE TABLE table_77675 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
) | What is the lowest attendance total on August 26? | SELECT MIN("Attendance") FROM table_77675 WHERE "Date" = 'august 26' | wikisql |
CREATE TABLE table_203_569 (
id number,
"designation" text,
"classification" text,
"constellation" text,
"apparent magnitude" number
) | what constellation appears last on this table ? | SELECT "constellation" FROM table_203_569 ORDER BY id DESC LIMIT 1 | squall |
CREATE TABLE table_57097 (
"Date" text,
"Venue" text,
"Opponent" text,
"Result" text,
"Competition" text
) | When did they play against Wales? | SELECT "Date" FROM table_57097 WHERE "Opponent" = 'wales' | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | find the age and days for which patient jerry deberry stayed in hospital. | SELECT demographic.age, demographic.days_stay FROM demographic WHERE demographic.name = "Jerry Deberry" | 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,
... | how many patients are admitted under emergency and diagnosed with primary disease coronary artery disease or coronary artery bypass graft with mvr maze? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT WITH MVR; ? MAZE" | mimicsql_data |
CREATE TABLE table_14962287_2 (
years VARCHAR,
total VARCHAR
) | What years have a total of 139? | SELECT years FROM table_14962287_2 WHERE total = "139" | sql_create_context |
CREATE TABLE table_38878 (
"Place" text,
"Code" real,
"Area (km 2 )" real,
"Population" real,
"Most spoken language" text
) | What's the sum of the Area (KM 2) that's got a Population that's smaller than 90? | SELECT COUNT("Area (km 2 )") FROM table_38878 WHERE "Population" < '90' | wikisql |
CREATE TABLE jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE employees (
EMPLOYEE_ID decimal(6,0),
FIRST_NAME varchar(20),
LAST_NAME varchar(25),
EMAIL varchar(25),
PHONE_NUMBER varchar(20),
HIRE_DATE date,
JO... | For those employees who did not have any job in the past, show me about the correlation between commission_pct and department_id in a scatter chart. | SELECT COMMISSION_PCT, DEPARTMENT_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) | nvbench |
CREATE TABLE table_name_31 (
time VARCHAR,
rank VARCHAR,
name VARCHAR
) | Which time has a Rank larger than 3, and a Name of andrey kapralov? | SELECT time FROM table_name_31 WHERE rank > 3 AND name = "andrey kapralov" | sql_create_context |
CREATE TABLE t_kc24 (
ACCOUNT_DASH_DATE time,
ACCOUNT_DASH_FLG number,
CASH_PAY number,
CIVIL_SUBSIDY number,
CKC102 number,
CLINIC_ID text,
CLINIC_SLT_DATE time,
COMP_ID text,
COM_ACC_PAY number,
COM_PAY number,
DATA_ID text,
ENT_ACC_PAY number,
ENT_PAY number,
F... | 列出在哪几次医疗记录里病人冯开朗拿到的药品的价格不少于516.98元的编号? | SELECT t_kc21.MED_CLINIC_ID FROM t_kc21 WHERE t_kc21.PERSON_NM = '冯开朗' AND NOT t_kc21.MED_CLINIC_ID IN (SELECT t_kc21_t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT < 516.98) | css |
CREATE TABLE table_17275810_7 (
date_of_appointment VARCHAR,
team VARCHAR
) | Name the date of appointment for ascoli | SELECT date_of_appointment FROM table_17275810_7 WHERE team = "Ascoli" | sql_create_context |
CREATE TABLE program_course (
program_id int,
course_id int,
workload int,
category varchar
)
CREATE TABLE course_tags_count (
course_id int,
clear_grading int,
pop_quiz int,
group_projects int,
inspirational int,
long_lectures int,
extra_credit int,
few_tests int,
g... | Dr. Yu-jui Huang has taught which classes ? | SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor WHERE course_offering.semester < (SELECT SEMESTERalias0.semester_id FROM semester AS SEMESTERalias0 WHERE SEMESTERalias0.semester = 'WN' AND SEMESTERalias0.year = 2016) AND course.course_id = cour... | advising |
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... | The most-viewed unanswered questions for a tag. | SELECT DISTINCT q.Id AS "post_link", q.ViewCount, q.CreationDate AS QuestionDate, AnswerCount FROM Posts AS q WHERE (SELECT COUNT(*) FROM Posts AS a WHERE a.ParentId = q.Id AND a.Score > 0) = 0 AND CommunityOwnedDate IS NULL AND ClosedDate IS NULL AND q.ParentId IS NULL AND AcceptedAnswerId IS NULL AND AnswerCount > 0 ... | sede |
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE SuggestedEditVotes (
Id number,
SuggestedEditId number,
UserId number,
VoteTypeId number,
CreationDate time,
TargetUserId number,
TargetRepChange number
)
CREATE TABLE PostNoticeTypes (
Id... | top 300 users - india. | SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation, Location FROM Users WHERE LOWER(Location) LIKE '%india%' OR UPPER(Location) LIKE '%india' ORDER BY Reputation DESC LIMIT 300 | sede |
CREATE TABLE table_name_62 (
round VARCHAR,
school_club_team VARCHAR
) | What is Round, when School/Club Team is 'Tennessee-Chattanooga'? | SELECT round FROM table_name_62 WHERE school_club_team = "tennessee-chattanooga" | sql_create_context |
CREATE TABLE table_name_49 (
communist_ticket VARCHAR,
american_labor_ticket VARCHAR
) | Who's the Communist ticket with an American Labor ticket of joseph v. o'leary? | SELECT communist_ticket FROM table_name_49 WHERE american_labor_ticket = "joseph v. o'leary" | sql_create_context |
CREATE TABLE table_name_47 (
venue VARCHAR,
conv VARCHAR,
player VARCHAR
) | Where did Brian Hightower play when he has the Conv of 0? | SELECT venue FROM table_name_47 WHERE conv = "0" AND player = "brian hightower" | sql_create_context |
CREATE TABLE jyjgzbb (
BGDH text,
BGRQ time,
CKZFWDX text,
CKZFWSX number,
CKZFWXX number,
JCFF text,
JCRGH text,
JCRXM text,
JCXMMC text,
JCZBDM text,
JCZBJGDL number,
JCZBJGDW text,
JCZBJGDX text,
JCZBMC text,
JLDW text,
JYRQ time,
JYZBLSH text,
... | 患者吕博涉的胸腹水白蛋白(白蛋白)什么情况在14年9月30日到20年8月11日期间 | SELECT * FROM person_info JOIN hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jy... | css |
CREATE TABLE table_29583441_1 (
written_by VARCHAR,
production_code VARCHAR
) | Who wrote the episode with production code 57376? | SELECT written_by FROM table_29583441_1 WHERE production_code = 57376 | sql_create_context |
CREATE TABLE table_name_33 (
method VARCHAR,
opponent VARCHAR,
event VARCHAR,
round VARCHAR
) | Which method has an Event of shooto, a Round of 2, and an Opponent of issei tamura? | SELECT method FROM table_name_33 WHERE event = "shooto" AND round = 2 AND opponent = "issei tamura" | sql_create_context |
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course_offering (
offering_id int,
course_id int,
semester int,
section_number int,
start_time time,
end_time time,
monday varchar,
tuesday varchar,
wednesday varchar,
thursday varch... | In the Fall and Winter , what upper-level electives are offered ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (semester.semester = ... | advising |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE admissions (
row_id number,
subject_id number,
... | how many times does patient 17667 have a bicarbonate test? | SELECT COUNT(*) FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'bicarbonate') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17667) | mimic_iii |
CREATE TABLE table_name_44 (
crowd INTEGER,
home_team VARCHAR
) | What was the lowest attendance when Fitzroy was the home team? | SELECT MIN(crowd) FROM table_name_44 WHERE home_team = "fitzroy" | sql_create_context |
CREATE TABLE table_name_28 (
team VARCHAR,
round VARCHAR,
pick VARCHAR,
position VARCHAR
) | Name the team for pick more than 30 and position of c with round more than 4 | SELECT team FROM table_name_28 WHERE pick > 30 AND position = "c" AND round > 4 | sql_create_context |
CREATE TABLE table_25983 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" text,
"Position" text
) | How many points have a series of british formula renault 2.0 winter cup and f/laps of 0? | SELECT "Points" FROM table_25983 WHERE "Series" = 'British Formula Renault 2.0 Winter Cup' AND "F/Laps" = '0' | wikisql |
CREATE TABLE table_name_20 (
family_relations VARCHAR,
throne_name VARCHAR
) | What are the family relations of the king with the throne name 303? | SELECT family_relations FROM table_name_20 WHERE throne_name = "303" | sql_create_context |
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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | provide the number of patients whose insurance is medicare and primary disease is acidosis? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicare" AND demographic.diagnosis = "ACIDOSIS" | mimicsql_data |
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... | 在17年10月30日到18年12月8日期间,列出金宏茂患者所有检验结果指标记录中用的什么检测方法? | SELECT jyjgzbb.JCFF FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN mzjzjlb_jybgb 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 = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJ... | css |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE inputevents_cv (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
amount number
)
CREATE TABLE... | has patient 10266 been prescribed labetalol, d5 1/2ns, or insulin a year before? | SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 10266) AND prescriptions.drug IN ('d5 1/2ns', 'labetalol', 'insulin') AND DATETIME(prescriptions.startdate, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year... | mimic_iii |
CREATE TABLE table_15523 (
"Character" text,
"Original West End Cast" text,
"Original Broadway Cast" text,
"First UK Tour Cast" text,
"First US Tour Cast" text
) | Who was in the Original West End Cast when the Original Broadway Cast was audrie neenan? | SELECT "Original West End Cast" FROM table_15523 WHERE "Original Broadway Cast" = 'audrie neenan' | wikisql |
CREATE TABLE table_1341586_43 (
candidates VARCHAR,
first_elected VARCHAR
) | Name the candidates in 1964 | SELECT candidates FROM table_1341586_43 WHERE first_elected = 1964 | sql_create_context |
CREATE TABLE film (
Film_ID int,
Title text,
Studio text,
Director text,
Gross_in_dollar int
)
CREATE TABLE market (
Market_ID int,
Country text,
Number_cities int
)
CREATE TABLE film_market_estimation (
Estimation_ID int,
Low_Estimate real,
High_Estimate real,
Film_ID ... | How films are produced by each studio Show bar chart, display y axis in descending order please. | SELECT Studio, COUNT(*) FROM film GROUP BY Studio ORDER BY COUNT(*) DESC | nvbench |
CREATE TABLE table_name_81 (
capacity VARCHAR,
code VARCHAR
) | What is the capacity of code f4r? | SELECT capacity FROM table_name_81 WHERE code = "f4r" | sql_create_context |
CREATE TABLE table_23623 (
"\u0410 \u0430 [a]" text,
"\u0411 \u0431 [b]" text,
"\u0412 \u0432 [v]" text,
"\u0413 \u0433 [\u0261]" text,
"\u0413\u044c \u0433\u044c [\u0261\u02b2]" text,
"\u0413\u04d9 \u0433\u04d9 [\u0261\u02b7]" text,
"\u0494 \u0495 [\u0281/\u0263]" text,
"\u0494\u044c \u... | what is [a] when [ ] is [l]? | SELECT "\u0410 \u0430 [a]" FROM table_23623 WHERE "\u0413\u044c \u0433\u044c [\u0261\u02b2]" = 'Л л [l]' | wikisql |
CREATE TABLE table_31840 (
"Week" text,
"Date" text,
"Opponent" text,
"Time" text,
"Game Site" text,
"Result/Score" text,
"Record" text
) | Tell me the week for record of 0-1 | SELECT "Week" FROM table_31840 WHERE "Record" = '0-1' | 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 demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob te... | what is diagnoses short title of subject id 76446? | SELECT diagnoses.short_title FROM diagnoses WHERE diagnoses.subject_id = "76446" | mimicsql_data |
CREATE TABLE table_name_70 (
player VARCHAR,
round VARCHAR,
school_club_team VARCHAR
) | What player did louisville pick when the round was below 8? | SELECT player FROM table_name_70 WHERE round < 8 AND school_club_team = "louisville" | sql_create_context |
CREATE TABLE table_name_39 (
played INTEGER,
points VARCHAR,
place VARCHAR
) | what is the least played when points is 36 and place is more than 2? | SELECT MIN(played) FROM table_name_39 WHERE points = 36 AND place > 2 | sql_create_context |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... | bring the number of patients who have had 24 hr creatinine lab test and stayed in hospital for more than 26 days. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.days_stay > "26" AND lab.label = "24 hr Creatinine" | mimicsql_data |
CREATE TABLE table_78374 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Decision" text,
"Record" text
) | Which opponent's game was less than 76 when the march was 10? | SELECT "Opponent" FROM table_78374 WHERE "Game" < '76' AND "March" = '10' | wikisql |
CREATE TABLE table_36941 (
"Province" text,
"Prefecture" text,
"County" text,
"Tujia Population" real,
"% of China's Tujia Population" text
) | Which prefecture is in Hubei province and Enshi county? | SELECT "Prefecture" FROM table_36941 WHERE "Province" = 'hubei' AND "County" = 'enshi' | wikisql |
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE outputevents (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
charttime time,
itemid number,
... | how many patients were prescribed with 5% dextrose in the same month following the diagnosis of hx of past noncompliance,? | SELECT COUNT(DISTINCT t1.subject_id) FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissions.hadm_id WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'hx of past noncomp... | mimic_iii |
CREATE TABLE table_name_9 (
gender VARCHAR,
roll VARCHAR
) | What gender is allowed at the school which has a roll of 338? | SELECT gender FROM table_name_9 WHERE roll = 338 | sql_create_context |
CREATE TABLE table_66896 (
"Year" text,
"Superintendent" text,
"Glendale Principal" text,
"H.H. Principal" text,
"Maplemere Principal" text,
"W.R. Principal" text,
"M.S. Principal" text,
"H.S. Principal" text,
"H. S. Asst. Principal" text
) | Who is the Glendale principal with Greg Smorel as m.s. principal and Joleen Reinholz as H.S. principal during 2006-2007? | SELECT "Glendale Principal" FROM table_66896 WHERE "M.S. Principal" = 'greg smorel' AND "H.S. Principal" = 'joleen reinholz' AND "Year" = '2006-2007' | wikisql |
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
Deletio... | Score as function of Datalength of Post body weighted by number of questions. | WITH cte AS (SELECT NTILE(10) OVER (ORDER BY Body_length) * 10 AS "Percentile", Body_length, Id FROM (SELECT Id, DATALENGTH(Body) AS Body_length FROM Posts WHERE PostTypeId = 2) AS p) SELECT Percentile, AVG(Body_length) AS "Average Post Length", SUM(Score) / COUNT(Score) AS "Average Votes per Post" FROM Posts AS p INNE... | sede |
CREATE TABLE table_14655985_1 (
player VARCHAR,
college VARCHAR
) | what's the player with college being penn state | SELECT player FROM table_14655985_1 WHERE college = "Penn State" | sql_create_context |
CREATE TABLE student (
student_id int,
lastname varchar,
firstname varchar,
program_id int,
declare_major varchar,
total_credit int,
total_gpa float,
entered_as varchar,
admit_term int,
predicted_graduation_semester int,
degree varchar,
minor varchar,
internship varch... | Which is easier , EECS 530 or EECS 312 ? | SELECT DISTINCT course.number FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE (course.number = 530 OR course.number = 312) AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_course AS PROGRAM_COURSEalias1 INNER JOIN course AS COURSEalias1 ON ... | advising |
CREATE TABLE venue (
venueid int,
venuename varchar
)
CREATE TABLE writes (
paperid int,
authorid int
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paperfield (
fieldid int,
paperid int
)
CREATE TABLE field (
fieldid int
)
CREATE TABLE paperdataset (
... | when were most NIPS papers published ? | SELECT DISTINCT COUNT(paper.paperid), paper.year FROM paper, venue WHERE venue.venueid = paper.venueid AND venue.venuename = 'NIPS' GROUP BY paper.year ORDER BY COUNT(paper.paperid) DESC | scholar |
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,
ZYLBDM text,
ZYMC text
)
CREATE TABLE fzzmzjzjlb (
HXPLC number,
HZ... | 门诊诊断患者为结膜炎的尿素的参考值范围有什么下限和上限? | SELECT jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE zzmzjzjlb.JZZDSM = '结膜炎' AND jyjgzbb.JCZBMC = '尿素' UNION SELECT jyjgzbb.CKZFWXX, jyjgz... | css |
CREATE TABLE table_203_376 (
id number,
"no." number,
"name" text,
"term of office" text,
"president(s) served under" text
) | what were the total number of years bob martinez served in office ? | SELECT "term of office" - "term of office" FROM table_203_376 WHERE "name" = 'bob martinez' | squall |
CREATE TABLE table_29009 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
) | What is Reine Karlsson's nationality? | SELECT "Nationality" FROM table_29009 WHERE "Player" = 'Reine Karlsson' | wikisql |
CREATE TABLE t_kc24 (
MED_SAFE_PAY_ID text,
OVERALL_CD_ORG text,
OVERALL_CD_PERSON text,
MED_CLINIC_ID text,
REF_SLT_FLG number,
CLINIC_SLT_DATE time,
COMP_ID text,
PERSON_ID text,
FLX_MED_ORG_ID text,
INSU_TYPE text,
MED_AMOUT number,
PER_ACC_PAY number,
OVE_PAY numb... | 看一下给患者陈雪曼开出的各药品的名称及其每次用量和使用频次,在医疗就诊29931144185中 | SELECT SOC_SRT_DIRE_NM, EACH_DOSAGE, USE_FRE FROM t_kc22 WHERE MED_CLINIC_ID = '29931144185' | css |
CREATE TABLE table_name_63 (
total_fat VARCHAR,
polyunsaturated_fat VARCHAR,
monounsaturated_fat VARCHAR
) | What is the total fat when the polyunsaturated fat is 11g, and Monounsaturated fat is 73g? | SELECT total_fat FROM table_name_63 WHERE polyunsaturated_fat = "11g" AND monounsaturated_fat = "73g" | sql_create_context |
CREATE TABLE table_10986 (
"Player" text,
"Dates of captaincy" text,
"Lost" real,
"Tied" real,
"No result" real,
"% win [A ]" real
) | What dates of captaincy for a win % of 35.71? | SELECT "Dates of captaincy" FROM table_10986 WHERE "% win [A ]" = '35.71' | wikisql |
CREATE TABLE table_26240046_1 (
first_appearance VARCHAR,
season_4 VARCHAR
) | What episode was the first appearance of the character who appears 7 times in season 4? | SELECT first_appearance FROM table_26240046_1 WHERE season_4 = 7 | sql_create_context |
CREATE TABLE dataset (
datasetid int,
datasetname varchar
)
CREATE TABLE keyphrase (
keyphraseid int,
keyphrasename varchar
)
CREATE TABLE author (
authorid int,
authorname varchar
)
CREATE TABLE paperdataset (
paperid int,
datasetid int
)
CREATE TABLE cite (
citingpaperid int,
... | Who is a coauthor with zachary tatlock ? | SELECT DISTINCT AUTHOR_1.authorid FROM author AS AUTHOR_0, author AS AUTHOR_1, writes AS WRITES_0, writes AS WRITES_1 WHERE AUTHOR_0.authorname = 'zachary tatlock' AND WRITES_0.authorid = AUTHOR_0.authorid AND WRITES_1.authorid = AUTHOR_1.authorid AND WRITES_1.paperid = WRITES_0.paperid | scholar |
CREATE TABLE table_203_865 (
id number,
"place" number,
"athlete" text,
"nation" text,
"best mark" text,
"throw 1" number,
"throw 2" number,
"throw 3" number,
"throw 4" number,
"throw 5" number,
"throw 6" number
) | which athlete am in next with the best mark after galina zybina ? | SELECT "athlete" FROM table_203_865 WHERE "best mark" < (SELECT "best mark" FROM table_203_865 WHERE "athlete" = 'galina zybina') ORDER BY "best mark" DESC LIMIT 1 | squall |
CREATE TABLE table_17958 (
"Year" real,
"Points" text,
"Rebounds" text,
"Assists" text,
"Steals" text,
"Blocks" text
) | What is the number of steals for 2012 | SELECT COUNT("Steals") FROM table_17958 WHERE "Year" = '2012' | wikisql |
CREATE TABLE table_9246 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
) | What is the area (in km2) for the village of Paquetville, with a population over 706? | SELECT AVG("Area km 2") FROM table_9246 WHERE "Status" = 'village' AND "Official Name" = 'paquetville' AND "Population" > '706' | wikisql |
CREATE TABLE table_name_35 (
score VARCHAR,
opponent VARCHAR,
date VARCHAR
) | What is the score from September 15 that has the Indians as the opponent? | SELECT score FROM table_name_35 WHERE opponent = "indians" AND date = "september 15" | sql_create_context |
CREATE TABLE table_name_6 (
character VARCHAR,
category VARCHAR,
year VARCHAR
) | In 2004 who was favourite maa? | SELECT character FROM table_name_6 WHERE category = "favourite maa" AND year = 2004 | sql_create_context |
CREATE TABLE table_50983 (
"Poll Year" text,
"Winner" text,
"Second" text,
"Third" text,
"Fourth" text,
"Fifth" text,
"Sixth" text,
"Seventh" text,
"Eighth" text,
"Ninth" text,
"Tenth" text
) | WHAT IS THE SIXTH WITH A SECOND OF WHITE LIES? | SELECT "Sixth" FROM table_50983 WHERE "Second" = 'white lies' | wikisql |
CREATE TABLE table_11573 (
"Crew" real,
"Open 1st VIII" text,
"Open 2nd VIII" text,
"Open 3rd VIII" text,
"Year 11 1st VIII" text,
"Year 11 2nd VIII" text,
"Year 11 3rd VIII" text,
"Year 10 1st Quad" text,
"Year 10 2nd Quad" text,
"Year 10 3rd Quad" text,
"Year 10 4th Quad" t... | What is the Year 10 6th Quads for the Open 2nd VIII of ACGS and a Year 11 2nd VIII NC? | SELECT "Year 10 6th Quad" FROM table_11573 WHERE "Open 2nd VIII" = 'acgs' AND "Year 11 2nd VIII" = 'nc' | wikisql |
CREATE TABLE table_204_313 (
id number,
"date" text,
"operation" text,
"location" text,
"type" text,
"information" text
) | which was the longest nato operation in terms of time ? | SELECT "operation" FROM table_204_313 ORDER BY JULIANDAY("date") - JULIANDAY("date") DESC LIMIT 1 | squall |
CREATE TABLE table_11705 (
"Date" text,
"Course" text,
"Distance" text,
"Type" text,
"Winner" text
) | Who was the winner with a mountain stage type on 22 May? | SELECT "Winner" FROM table_11705 WHERE "Type" = 'mountain stage' AND "Date" = '22 may' | wikisql |
CREATE TABLE vitalperiodic (
vitalperiodicid number,
patientunitstayid number,
temperature number,
sao2 number,
heartrate number,
respiration number,
systemicsystolic number,
systemicdiastolic number,
systemicmean number,
observationtime time
)
CREATE TABLE cost (
costid num... | when was patient 030-54262 prescribed the drug lactulose 20 gram/30 ml ud liq and ancef at the same time for the last time since 160 months ago? | SELECT t1.drugstarttime FROM (SELECT patient.uniquepid, medication.drugstarttime FROM medication JOIN patient ON medication.patientunitstayid = patient.patientunitstayid WHERE medication.drugname = 'lactulose 20 gram/30 ml ud liq' AND patient.uniquepid = '030-54262' AND DATETIME(medication.drugstarttime) >= DATETIME(CU... | eicu |
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
admission_type text,
days_stay text,
insurance text,
ethnicity text,
expire_flag text,
admission_location t... | give me the number of patients whose admission location is trsf within this facility and procedure icd9 code is 3734? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.admission_location = "TRSF WITHIN THIS FACILITY" AND procedures.icd9_code = "3734" | mimicsql_data |
CREATE TABLE table_30116 (
"Player" text,
"Matches" real,
"Innings" real,
"Wickets" real,
"Average" text,
"BBI" text,
"BBM" text,
"5wi" real
) | What is the average for the player with BBM 5/85? | SELECT "Average" FROM table_30116 WHERE "BBM" = '5/85' | wikisql |
CREATE TABLE class_of_service (
booking_class varchar,
rank int,
class_description text
)
CREATE TABLE airport (
airport_code varchar,
airport_name text,
airport_location text,
state_code varchar,
country_name varchar,
time_zone_code varchar,
minimum_connect_time int
)
CREATE T... | what are the COACH fares for flights from NEWARK to LOS ANGELES leaving after 1500 | SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, fare_basis, flight, flight_fare WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'LOS ANGELES' AND flight.departure_time > 1500 AND flight.to_ai... | atis |
CREATE TABLE table_name_55 (
opponent VARCHAR,
record VARCHAR,
game VARCHAR,
december VARCHAR
) | Which opponent has a game larger than 23, December larger than 8, and record of 8-10-7? | SELECT opponent FROM table_name_55 WHERE game > 23 AND december > 8 AND record = "8-10-7" | sql_create_context |
CREATE TABLE jobs (
job_id int,
job_title varchar,
description varchar,
requirement varchar,
city varchar,
state varchar,
country varchar,
zip int
)
CREATE TABLE ta (
campus_job_id int,
student_id int,
location varchar
)
CREATE TABLE course_prerequisite (
pre_course_id ... | What courses does Banco teach that are upper level ? | SELECT DISTINCT course.department, course.name, course.number FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.ins... | advising |
CREATE TABLE PostLinks (
Id number,
CreationDate time,
PostId number,
RelatedPostId number,
LinkTypeId number
)
CREATE TABLE ReviewRejectionReasons (
Id number,
Name text,
Description text,
PostTypeId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE T... | Answers close to a Necromancer badge. All my answers on the site | SELECT a.Id AS "post_link", a.Score FROM Posts AS q INNER JOIN Posts AS a ON q.Id = a.ParentId WHERE a.OwnerUserId = @UserId AND a.PostTypeId = 2 AND a.Score <= 4 AND DATEDIFF(d, q.CreationDate, creationdate) >= 60 ORDER BY a.Score DESC | sede |
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description text
)
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE Votes (
Id number,
PostId number,
... | Average question score vs Average answer score. | SELECT questions.OwnerUserId, qs, qavg, 'as', aavg, UpVotes - DownVotes AS deltavote FROM (SELECT OwnerUserId, COUNT(OwnerUserId) AS qs, AVG(Score) AS qavg FROM Posts WHERE PostTypeId = 1 GROUP BY OwnerUserId) AS questions INNER JOIN (SELECT OwnerUserId, COUNT(OwnerUserId) AS "as", AVG(Score) AS aavg FROM Posts WHERE P... | sede |
CREATE TABLE countries (
COUNTRY_ID varchar(2),
COUNTRY_NAME varchar(40),
REGION_ID decimal(10,0)
)
CREATE TABLE job_history (
EMPLOYEE_ID decimal(6,0),
START_DATE date,
END_DATE date,
JOB_ID varchar(10),
DEPARTMENT_ID decimal(4,0)
)
CREATE TABLE departments (
DEPARTMENT_ID decimal... | For those employees who was hired before 2002-06-21, give me the comparison about the sum of salary over the job_id , and group by attribute job_id, and sort in asc by the y-axis. | SELECT JOB_ID, SUM(SALARY) FROM employees WHERE HIRE_DATE < '2002-06-21' GROUP BY JOB_ID ORDER BY SUM(SALARY) | nvbench |
CREATE TABLE treatment (
treatmentid number,
patientunitstayid number,
treatmentname text,
treatmenttime time
)
CREATE TABLE diagnosis (
diagnosisid number,
patientunitstayid number,
diagnosisname text,
diagnosistime time,
icd9code text
)
CREATE TABLE lab (
labid number,
pa... | how many patients were in ward 489 until 2 years ago. | SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 489 AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-2 year') | eicu |
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... | 在任成业病患的医疗记录中,给他开出的药品不高于463.76元的医疗就诊有哪几次?编号是什么 | SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_NM = '任成业' AND NOT t_kc22.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT >= 463.76) | css |
CREATE TABLE jybgb (
BBCJBW text,
BBDM text,
BBMC text,
BBZT number,
BGDH text,
BGJGDM text,
BGJGMC text,
BGRGH text,
BGRQ time,
BGRXM text,
BGSJ time,
CJRQ time,
JSBBRQSJ time,
JSBBSJ time,
JYBBH text,
JYJGMC text,
JYJSGH text,
JYJSQM text,
JY... | 以前有什么门诊诊断过患者33787678么? | SELECT mzjzjlb.JZZDBM, mzjzjlb.JZZDSM FROM hz_info JOIN mzjzjlb JOIN hz_info_mzjzjlb ON hz_info.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM = hz_info_mzjzjlb.YLJGDM AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLS... | css |
CREATE TABLE table_name_51 (
position VARCHAR,
college VARCHAR
) | What position did the Saskatchewan player get drafted as? | SELECT position FROM table_name_51 WHERE college = "saskatchewan" | sql_create_context |
CREATE TABLE mzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH text,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZZMC ... | 在06年1月1日到11年8月25日内病号56134698的所有检验结果指标记录中的仪器编号以及名称分别叫什么? | SELECT jyjgzbb.YQBH, jyjgzbb.YQMC FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_jyjgzbb ON 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 = jybgb_jyjgzbb.YLJGDM AN... | css |
CREATE TABLE teaches (
ID varchar(5),
course_id varchar(8),
sec_id varchar(8),
semester varchar(6),
year numeric(4,0)
)
CREATE TABLE course (
course_id varchar(8),
title varchar(50),
dept_name varchar(20),
credits numeric(2,0)
)
CREATE TABLE student (
ID varchar(5),
name va... | List the number of instructors for each course in year 2008 with a bar chart, and sort by the X-axis in descending please. | SELECT title, COUNT(title) FROM course AS T1 JOIN teaches AS T2 ON T1.course_id = T2.course_id JOIN instructor AS T3 ON T2.ID = T3.ID WHERE year = 2008 GROUP BY title ORDER BY title DESC | nvbench |
CREATE TABLE tv_series (
sid int,
title text,
release_year int,
num_of_seasons int,
num_of_episodes int,
title_aka text,
budget text
)
CREATE TABLE company (
id int,
name text,
country_code varchar
)
CREATE TABLE director (
did int,
gender text,
name text,
natio... | Find all movies produced by Netflix | SELECT movie.title FROM company, copyright, movie WHERE company.name = 'Netflix' AND copyright.cid = company.id AND movie.mid = copyright.msid | imdb |
CREATE TABLE station (
id INTEGER,
name TEXT,
lat NUMERIC,
long NUMERIC,
dock_count INTEGER,
city TEXT,
installation_date TEXT
)
CREATE TABLE trip (
id INTEGER,
duration INTEGER,
start_date TEXT,
start_station_name TEXT,
start_station_id INTEGER,
end_date TEXT,
e... | Give me the dates when the max temperature was higher than 85, and count them by a bar chart, and display in descending by the y-axis. | SELECT date, COUNT(date) FROM weather WHERE max_temperature_f > 85 ORDER BY COUNT(date) DESC | nvbench |
CREATE TABLE table_name_61 (
pennant_number INTEGER,
ships_in_class VARCHAR
) | What is the highest pennant number with ships in pori class? | SELECT MAX(pennant_number) FROM table_name_61 WHERE ships_in_class = "pori" | sql_create_context |
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE prescriptions (
row_id number,
s... | when did patient 26286 get prescription for labetalol hcl and sodium chloride 3% (hypertonic) for the last time at the same time in this month? | SELECT t1.startdate FROM (SELECT admissions.subject_id, prescriptions.startdate FROM prescriptions JOIN admissions ON prescriptions.hadm_id = admissions.hadm_id WHERE prescriptions.drug = 'labetalol hcl' AND admissions.subject_id = 26286 AND DATETIME(prescriptions.startdate, 'start of month') = DATETIME(CURRENT_TIME(),... | mimic_iii |
CREATE TABLE table_64571 (
"Rank" real,
"Athlete" text,
"Country" text,
"Time" text,
"Notes" text
) | Who has a time of 7:26.85 and notes of sc/d? | SELECT "Athlete" FROM table_64571 WHERE "Notes" = 'sc/d' AND "Time" = '7:26.85' | wikisql |
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (... | Give me the number of patients diagnosed with hypotension of hemodialysis who had abnormal lab test status. | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.short_title = "Hemododialysis hypotensn" AND lab.flag = "abnormal" | mimicsql_data |
CREATE TABLE table_204_579 (
id number,
"code" text,
"district" text,
"headquarters" text,
"population (as of 2011)" number,
"area (km2)" number,
"density (/km2)" number
) | tell me the number of districts with an area over 5000 . | SELECT COUNT("district") FROM table_204_579 WHERE "area (km2)" > 5000 | squall |
CREATE TABLE table_name_42 (
wins INTEGER,
goal_difference VARCHAR,
draws VARCHAR
) | Can you tell me the average Wins that has the Goal Difference larger than -24, and the Draws larger than 7? | SELECT AVG(wins) FROM table_name_42 WHERE goal_difference > -24 AND draws > 7 | sql_create_context |
CREATE TABLE table_40821 (
"Season" text,
"League Apps (sub)" text,
"League Goals" text,
"Cup Apps (sub)" text,
"Cup Goals" text,
"Total Apps (Sub)" text,
"Total Goals" text
) | Which Cup Apps (sub) had 2 goals? | SELECT "Cup Apps (sub)" FROM table_40821 WHERE "Cup Goals" = '2' | wikisql |
CREATE TABLE table_name_79 (
drawn VARCHAR,
points_against VARCHAR
) | What is the drawn by the club with 542 points against? | SELECT drawn FROM table_name_79 WHERE points_against = "542" | sql_create_context |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.