context stringlengths 11 9.12k | question stringlengths 0 1.06k | SQL stringlengths 2 4.44k | source stringclasses 28
values |
|---|---|---|---|
CREATE TABLE table_dev_5 (
"id" int,
"anemia" bool,
"gender" string,
"hiv_infection" bool,
"hemoglobin_a1c_hba1c" float,
"panel_reactive_antibodies" int,
"psa" int,
"body_mass_index_bmi" float,
"NOUSE" float
) | body mass index should be less than 26 | SELECT * FROM table_dev_5 WHERE body_mass_index_bmi < 26 | criteria2sql |
CREATE TABLE table_34741 (
"Year" text,
"Regular Season Champion(s)" text,
"Record" text,
"Tournament Champion" text,
"Tournament venue" text,
"Tournament city" text
) | WHich Regular Season Champions has a Year of 1943 44? | SELECT "Regular Season Champion(s)" FROM table_34741 WHERE "Year" = '1943–44' | wikisql |
CREATE TABLE table_test_27 (
"id" int,
"anemia" bool,
"bleeding" int,
"left_ventricular_ejection_fraction_lvef" int,
"intra_aortic_balloon_pump_iabp" bool,
"systolic_blood_pressure_sbp" int,
"left_main_stem_coronary_artery_stenosis" int,
"haemoglobin" float,
"renal_disease" bool,
... | anemia ( haemoglobin < 8.5 mg / dl ) | SELECT * FROM table_test_27 WHERE anemia = 1 OR haemoglobin < 8.5 | criteria2sql |
CREATE TABLE table_name_18 (
event VARCHAR,
medal VARCHAR,
name VARCHAR
) | Name Event of Medal of gold and a Name of duncan white? | SELECT event FROM table_name_18 WHERE medal = "gold" AND name = "duncan white" | sql_create_context |
CREATE TABLE table_290 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
) | Who were the MLB draft with the hometown Opa-locka, Fl? | SELECT "MLB Draft" FROM table_290 WHERE "Hometown" = 'Opa-locka, FL' | wikisql |
CREATE TABLE PostTypes (
Id number,
Name text
)
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImage... | Top users by accepted percentage of answers. | WITH UserAnswerStats AS (SELECT Answers.OwnerUserId AS UserId, SUM(CASE WHEN AcceptingQuestions.AcceptedAnswerId IS NULL THEN 0 ELSE 1 END) AS AcceptedAnswers, COUNT(*) AS TotalAnswers FROM Posts AS Answers LEFT JOIN Posts AS AcceptingQuestions ON AcceptingQuestions.AcceptedAnswerId = Answers.Id WHERE Answers.PostTypeI... | sede |
CREATE TABLE table_name_58 (
year_commissioned INTEGER,
gross_head__metres_ INTEGER
) | What is the Year Commissioned of the power stationo with a Gross head of less than 18? | SELECT AVG(year_commissioned) FROM table_name_58 WHERE gross_head__metres_ < 18 | sql_create_context |
CREATE TABLE university (
School_ID int,
School text,
Location text,
Founded real,
Affiliation text,
Enrollment real,
Nickname text,
Primary_conference text
)
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Per... | What is the relationship between School_ID and All_Games_Percent , and group by attribute ACC_Home? | SELECT School_ID, All_Games_Percent FROM basketball_match GROUP BY ACC_Home | nvbench |
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... | 自二零一六年四月二十五日开始,截止到二零二零年十月九日,患者54888449通过医疗机构7077401做了多少次检查 | SELECT COUNT(*) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_ID = '54888449' AND t_kc22.STA_DATE BETWEEN '2016-04-25' AND '2020-10-09' AND gwyjzb.MED_SER_ORG_NO = '7077401' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CL... | css |
CREATE TABLE table_name_12 (
_percentage_won VARCHAR,
team VARCHAR
) | What is the % Won of Team of durham | SELECT _percentage_won FROM table_name_12 WHERE team = "durham" | sql_create_context |
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... | 均在2016年1月24日之后患者袁幼怡的住院就诊记录对应的检验报告单的报告日期有哪些?列出住院就诊流水号都是多少? | SELECT zyjzjlb.JZLSH FROM person_info JOIN hz_info JOIN zyjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE person_info.XM = '袁幼怡' AND NOT zyjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ <= '2016-01-24') | css |
CREATE TABLE table_23024 (
"No." real,
"Country" text,
"Local title" text,
"Format" text,
"Start Date" text,
"End Date" text,
"Episodes" text,
"Premiere/Air Dates" text
) | Where was the season that ended on June 25 located? | SELECT "Country" FROM table_23024 WHERE "End Date" = 'June 25' | wikisql |
CREATE TABLE table_36075 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
) | What is the Netflix episode that has a series episode of 6-02? | SELECT "Netflix" FROM table_36075 WHERE "Series Ep." = '6-02' | wikisql |
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,
... | 列举出从2000年6月13日到2019年11月17日这段时间,编号为64770032的病患所有检验报告单中的标本采集部位? | SELECT zyjybgb.BBCJBW FROM hz_info JOIN mzjzjlb JOIN zyjybgb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '64770032' AND zyjybgb.BGRQ BETWEEN '2000-06-13' AND '2019-... | css |
CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... | Give me a pie to show school_id from different acc regular season. | SELECT ACC_Regular_Season, School_ID FROM basketball_match | nvbench |
CREATE TABLE table_name_9 (
chassis___engine VARCHAR,
laps VARCHAR
) | Which chassis-engine had 77 laps? | SELECT chassis___engine FROM table_name_9 WHERE laps = 77 | sql_create_context |
CREATE TABLE table_train_177 (
"id" int,
"hemoglobin_a1c_hba1c" float,
"renal_disease" bool,
"diabetic" string,
"creatinine_clearance_cl" float,
"urine_protein" int,
"proteinuria" int,
"fasting_glucose" int,
"NOUSE" float
) | control subjects with a normal a1c and fasting glucose | SELECT * FROM table_train_177 WHERE fasting_glucose = 1 | criteria2sql |
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 hz_info (
KH text,
KLX number... | 在17年10月30日到18年12月8日期间,列出金宏茂患者所有检验结果指标记录中用的什么检测方法? | SELECT jyjgzbb.JCFF 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 = jyj... | css |
CREATE TABLE table_5891 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
) | Who has a Rank larger than 3 with a speed of 119.838mph? | SELECT "Rider" FROM table_5891 WHERE "Rank" > '3' AND "Speed" = '119.838mph' | wikisql |
CREATE TABLE table_23352 (
"School" text,
"City / Town" text,
"Website" text,
"Size" real,
"Principal" text,
"Grades" text,
"IDOE Profile" text
) | Name the principal of Northfield Junior-Senior High School. | SELECT "Principal" FROM table_23352 WHERE "School" = 'Northfield Junior-Senior High School' | wikisql |
CREATE TABLE table_8698 (
"Season" real,
"Champion" text,
"Motorcycle" text,
"Wins" real,
"Team" text
) | Which team had 2 wins and a season later than 1986? | SELECT "Team" FROM table_8698 WHERE "Wins" = '2' AND "Season" > '1986' | wikisql |
CREATE TABLE table_29556461_7 (
high_assists VARCHAR,
date VARCHAR
) | Who had the most assists and how many did they have on January 5? | SELECT high_assists FROM table_29556461_7 WHERE date = "January 5" | sql_create_context |
CREATE TABLE table_74081 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Points" text
) | How many points for were scored by the team that won exactly 22? | SELECT "Points for" FROM table_74081 WHERE "Won" = '22' | wikisql |
CREATE TABLE table_name_73 (
team VARCHAR,
game VARCHAR
) | Which team had game 3? | SELECT team FROM table_name_73 WHERE game = 3 | sql_create_context |
CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Descr... | Score per view by tag. Question tags ordered by score per view | SELECT t.TagName, q.* FROM Tags AS t JOIN LATERAL (SELECT SUM(ViewCount) AS "total_views", SUM(TotalScore) AS "total_answers_score", CAST(SUM(TotalScore) * 1000.0 / SUM(ViewCount) AS FLOAT(8, 2)) AS "score_per_thousand_views" FROM PostTags AS pt JOIN Posts AS pq ON pq.Id = pt.PostId AND pq.PostTypeId = 1 JOIN LATERAL (... | sede |
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... | How many patients underwent annuloplasty procedure and died in or before the year 2183? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2183.0" AND procedures.long_title = "Annuloplasty" | mimicsql_data |
CREATE TABLE advisor (
s_ID varchar(5),
i_ID varchar(5)
)
CREATE TABLE instructor (
ID varchar(5),
name varchar(20),
dept_name varchar(20),
salary numeric(8,2)
)
CREATE TABLE time_slot (
time_slot_id varchar(4),
day varchar(1),
start_hr numeric(2),
start_min numeric(2),
end... | Find the total credits of courses provided by different department Plot them as bar chart, and order by the dept_name in descending. | SELECT dept_name, SUM(credits) FROM course GROUP BY dept_name ORDER BY dept_name DESC | nvbench |
CREATE TABLE table_name_19 (
category VARCHAR,
year INTEGER
) | What was the Category before 1995? | SELECT category FROM table_name_19 WHERE year < 1995 | sql_create_context |
CREATE TABLE table_train_121 (
"id" int,
"depression" bool,
"suicidality" bool,
"neurodegenerative_disease" bool,
"unstable_asthmatic_condition" bool,
"vitamin_k_deficiency" bool,
"renal_disease" bool,
"cerebrovascular_disease" bool,
"hepatic_disease" bool,
"liver_disease" bool,
... | a current diagnosis of acute severe, or unstable asthmatic condition ( e.g., severe chronic obstructive pulmonary disease ( copd ) | SELECT * FROM table_train_121 WHERE acute_severe = 1 OR (unstable_asthmatic_condition = 1 OR chronic_obstructive_pulmonary_disease_copd = 1) | criteria2sql |
CREATE TABLE table_48728 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
) | When Patrick Carpentier is driving and has less than 19 points with 90 laps, what team is racing? | SELECT "Team" FROM table_48728 WHERE "Laps" = '90' AND "Points" < '19' AND "Driver" = 'patrick carpentier' | wikisql |
CREATE TABLE table_203_860 (
id number,
"rank" number,
"city" text,
"population (2011)" number,
"population (2001)" number,
"state/territory" text
) | who has a 2011 population less than 224,000 ? | SELECT "city" FROM table_203_860 WHERE "population (2011)" < 224000 | squall |
CREATE TABLE table_77188 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
) | What was the average number of attendance for the game on November 29, 1981 played after week 13? | SELECT AVG("Attendance") FROM table_77188 WHERE "Date" = 'november 29, 1981' AND "Week" > '13' | wikisql |
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic ... | provide the number of patients whose gender is f and item id is 50831? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.itemid = "50831" | mimicsql_data |
CREATE TABLE t_kc21 (
CLINIC_ID text,
CLINIC_TYPE 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,
... | 从患者出院时被诊断出的疾病编码上来看,编号为4983304的医院中不同疾病的平均患者岁数是多大呢? | SELECT t_kc21.OUT_DIAG_DIS_CD, AVG(t_kc21.PERSON_AGE) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '4983304' GROUP BY t_kc21.OUT_DIAG_DIS_CD | css |
CREATE TABLE table_34774 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text,
"Alternate" text
) | Who is the alternate for the team for which Monika Wagner is the third? | SELECT "Alternate" FROM table_34774 WHERE "Third" = 'monika wagner' | wikisql |
CREATE TABLE table_12656 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Location" text
) | What is the branding for callsign DWFM? | SELECT "Branding" FROM table_12656 WHERE "Callsign" = 'dwfm' | wikisql |
CREATE TABLE table_21350934_2 (
opponent VARCHAR,
attendance VARCHAR
) | Who is the opponent when the attendance is n/a? | SELECT opponent FROM table_21350934_2 WHERE attendance = "N/A" | sql_create_context |
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... | 列出患者49963274的检验报告单中结果指标均正常的检验报告单号 | SELECT jybgb.BGDH FROM hz_info JOIN wdmzjzjlb JOIN jybgb ON 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 WHERE hz_info.RYBH = '49963274' AND NOT jybgb.BGDH IN (SELECT jyjgzbb.BGDH FRO... | css |
CREATE TABLE table_name_52 (
playoffs VARCHAR,
open_cup VARCHAR,
regular_season VARCHAR
) | What shows for Playoffs when the Open Cup shows as did not qualify, and a Regular Season was 3rd, south atlantic? | SELECT playoffs FROM table_name_52 WHERE open_cup = "did not qualify" AND regular_season = "3rd, south atlantic" | sql_create_context |
CREATE TABLE table_name_21 (
result VARCHAR,
goal VARCHAR
) | What is the Result of Goal number 3? | SELECT result FROM table_name_21 WHERE goal = 3 | sql_create_context |
CREATE TABLE table_77852 (
"Building" text,
"Height" text,
"Floors" real,
"Year" real,
"Status" text
) | What are the number of floors for the building of td building redevelopment (office)? | SELECT AVG("Floors") FROM table_77852 WHERE "Building" = 'td building redevelopment (office)' | wikisql |
CREATE TABLE table_name_59 (
place VARCHAR,
score VARCHAR
) | In what place did the golfer that scored 68-70-69=207 finish? | SELECT place FROM table_name_59 WHERE score = 68 - 70 - 69 = 207 | sql_create_context |
CREATE TABLE stadium (
ID int,
name text,
Capacity int,
City text,
Country text,
Opening_year int
)
CREATE TABLE swimmer (
ID int,
name text,
Nationality text,
meter_100 real,
meter_200 text,
meter_300 text,
meter_400 text,
meter_500 text,
meter_600 text,
... | A bar chart shows the distribution of meter_200 and the average of ID , and group by attribute meter_200, I want to rank by the bars in descending. | SELECT meter_200, AVG(ID) FROM swimmer GROUP BY meter_200 ORDER BY meter_200 DESC | nvbench |
CREATE TABLE table_22959 (
"Year" text,
"Location" text,
"Class 1" text,
"Best UK team" text,
"Class 1-200" text,
"Class 3" text,
"Class 1a" text
) | Name the class 1-200 for university of hertfordshire for university of warwick | SELECT "Class 1-200" FROM table_22959 WHERE "Best UK team" = 'University of Hertfordshire' AND "Class 1a" = 'University of Warwick' | wikisql |
CREATE TABLE jybgb_jyjgzbb (
JYZBLSH number,
YLJGDM text,
jyjgzbb_id number
)
CREATE TABLE hz_info (
KH text,
KLX number,
RYBH text,
YLJGDM text
)
CREATE TABLE zyjzjlb (
CYBQDM text,
CYBQMC text,
CYCWH text,
CYKSDM text,
CYKSMC text,
CYSJ time,
CYZTDM number,
... | 12592992患者在11年9月27日至17年3月31日之内检测甲状腺摄取实验的医务人员工号及姓名各是什么? | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM 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 ... | css |
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... | Deleted users by number of posts. | SELECT p.OwnerDisplayName, COUNT(*) AS Cnt, MAX(p.CreationDate) AS LastDate, MAX(p.Id) AS "Post Link" FROM Posts AS p WHERE p.OwnerUserId IS NULL GROUP BY p.OwnerDisplayName ORDER BY COUNT(*) DESC | sede |
CREATE TABLE table_1697190_1 (
wins VARCHAR,
best_finish VARCHAR
) | Name the wins for best finish being 2nd | SELECT wins FROM table_1697190_1 WHERE best_finish = "2nd" | sql_create_context |
CREATE TABLE table_17621 (
"Number in series" real,
"Broadcast Order" text,
"Title" text,
"Villain/s" text,
"U.S. Air Date" text,
"Production Code" text
) | what's the total number of episodes with a US air date of january 15, 2005? | SELECT COUNT("Production Code") FROM table_17621 WHERE "U.S. Air Date" = 'January 15, 2005' | wikisql |
CREATE TABLE table_name_97 (
score VARCHAR,
date VARCHAR
) | What is the score on March 18? | SELECT score FROM table_name_97 WHERE date = "march 18" | sql_create_context |
CREATE TABLE program_requirement (
program_id int,
category varchar,
min_credit int,
additional_req varchar
)
CREATE TABLE course (
course_id int,
name varchar,
department varchar,
number varchar,
credits varchar,
advisory_requirement varchar,
enforced_requirement varchar,
... | How many years ago was CLCIV 388 first offered ? | SELECT DISTINCT semester.year FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'CLCIV' AND course.number = 388 AND semester.semester_id = course_offering.semester ORDER BY semester.year LIMIT 1 | advising |
CREATE TABLE table_203_200 (
id number,
"region" text,
"seed" number,
"team" text,
"coach" text,
"finished" text,
"final opponent" text,
"score" text
) | how many 1 seeds are there ? | SELECT COUNT(*) FROM table_203_200 WHERE "seed" = 1 | squall |
CREATE TABLE table_3005999_1 (
provider VARCHAR,
destination VARCHAR
) | How many providers have a destination of Blackpool? | SELECT COUNT(provider) FROM table_3005999_1 WHERE destination = "Blackpool" | sql_create_context |
CREATE TABLE wdmzjzjlb (
HXPLC number,
HZXM text,
JLSJ time,
JZJSSJ time,
JZKSBM text,
JZKSMC text,
JZKSRQ time,
JZLSH number,
JZZDBM text,
JZZDSM text,
JZZTDM number,
JZZTMC text,
KH text,
KLX number,
MJZH text,
ML number,
MZZYZDZZBM text,
MZZYZDZ... | 从二00二年四月二十五日到二0二0年十二月二十一日这段时间,患者沈宾鸿检测超敏肌钙蛋白T找的哪些医务人员做的,这些医务人员的工号和姓名报一下 | SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM 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_MZ... | css |
CREATE TABLE table_204_893 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
) | how many athletes had times under 8 minutes ? | SELECT COUNT("name") FROM table_204_893 WHERE "time" < 8 | squall |
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_icd_diagnoses (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
... | what is the five diagnoses which have the lowest four year survival rate? | SELECT d_icd_diagnoses.short_title FROM d_icd_diagnoses WHERE d_icd_diagnoses.icd9_code IN (SELECT t4.icd9_code FROM (SELECT t3.icd9_code, DENSE_RANK() OVER (ORDER BY t3.c1 DESC) AS c2 FROM (SELECT t2.icd9_code, 100 - SUM(CASE WHEN patients.dod IS NULL THEN 1 WHEN STRFTIME('%j', patients.dod) - STRFTIME('%j', t2.chartt... | mimic_iii |
CREATE TABLE table_name_66 (
record VARCHAR,
date VARCHAR
) | What is the record on March 16? | SELECT record FROM table_name_66 WHERE date = "march 16" | sql_create_context |
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
)
... | what is the number of patients whose diagnoses icd9 code is 1173 and drug route is ih? | 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 = "1173" AND prescriptions.route = "IH" | mimicsql_data |
CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
Rejectio... | Percentage of the total rep of users with 'monica' substring. | WITH Monica AS (SELECT SUM(Reputation) AS Monica FROM Users WHERE LOWER(DisplayName) LIKE '%monica%'), SumRep AS (SELECT SUM(Reputation) AS SumRep FROM Users) SELECT Monica.Monica, SumRep.SumRep, 100.0 * Monica.Monica / SumRep.SumRep AS Pct FROM Monica, SumRep | sede |
CREATE TABLE table_name_95 (
attendance INTEGER,
opponent VARCHAR
) | Whose attendance was the highest when the team played Arsenal? | SELECT MAX(attendance) FROM table_name_95 WHERE opponent = "arsenal" | sql_create_context |
CREATE TABLE cost (
row_id number,
subject_id number,
hadm_id number,
event_type text,
event_id number,
chargetime time,
cost number
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_labitems... | what was the last intake of patient 26793 for the patient on 02/08/this year? | SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT inputevents_cv.itemid FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 26793)) AND DATETIME(inputevents_cv.... | mimic_iii |
CREATE TABLE Catalogs (
catalog_id INTEGER,
catalog_name VARCHAR(50),
catalog_publisher VARCHAR(80),
date_of_publication DATETIME,
date_of_latest_revision DATETIME
)
CREATE TABLE Attribute_Definitions (
attribute_id INTEGER,
attribute_name VARCHAR(30),
attribute_data_type VARCHAR(10)
)
... | Give me a histogram for what are the name and level of catalog structure with level number between 5 and 10, list by the x axis in desc. | SELECT catalog_level_name, catalog_level_number FROM Catalog_Structure WHERE catalog_level_number BETWEEN 5 AND 10 ORDER BY catalog_level_name DESC | nvbench |
CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8)
)
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5)
)
CREATE TABLE CLASS (
... | How many students are in each department Visualize by bar chart, could you show by the total number in ascending please? | SELECT DEPT_CODE, COUNT(*) FROM STUDENT GROUP BY DEPT_CODE ORDER BY COUNT(*) | nvbench |
CREATE TABLE table_name_20 (
release_price___usd__ VARCHAR,
gpu_frequency VARCHAR,
sspec_number VARCHAR
) | Which Release price (USD ) has a GPU frequency of 650 1150 mhz and a sSpec number of sr0pq(e1)? | SELECT release_price___usd__ FROM table_name_20 WHERE gpu_frequency = "650–1150 mhz" AND sspec_number = "sr0pq(e1)" | sql_create_context |
CREATE TABLE time_interval (
period text,
begin_time int,
end_time int
)
CREATE TABLE state (
state_code text,
state_name text,
country_name text
)
CREATE TABLE restriction (
restriction_code text,
advance_purchase int,
stopovers text,
saturday_stay_required text,
minimum_s... | are there any flights from DENVER to PITTSBURGH with stops in ATLANTA | SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PITTSBURGH' AND CITY_2... | atis |
CREATE TABLE fgwyjzb (
CLINIC_ID text,
CLINIC_TYPE 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,
... | 药品963819在哪几家医院患者27333560被开出过? | SELECT gwyjzb.MED_SER_ORG_NO FROM gwyjzb WHERE gwyjzb.PERSON_ID = '27333560' AND gwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.SOC_SRT_DIRE_CD = '963819') UNION SELECT fgwyjzb.MED_SER_ORG_NO FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '27333560' AND fgwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED... | css |
CREATE TABLE mzjzjlb_jybgb (
YLJGDM_MZJZJLB text,
BGDH number,
YLJGDM number
)
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 te... | 在04年9月6日到12年2月8日期间的门诊就诊中有多少医院2106089的科室开出了超出24张检验报告单? | SELECT COUNT(*) FROM (SELECT jybgb.KSBM FROM mzjzjlb JOIN jybgb JOIN mzjzjlb_jybgb ON mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND mzjzjlb_jybgb.YLJGDM = jybgb.YLJGDM AND mzjzjlb_jybgb.BGDH = jybgb.BGDH AND mzjzjlb_jybgb.YLJGDM = jybgb.YLJGDM AND mzjzjlb_jybgb.BGDH = jybgb.B... | css |
CREATE TABLE table_20912 (
"No. in series" text,
"No. in season" text,
"Title" text,
"Directed by" text,
"Written by" text,
"Original airdate" text,
"Production code" text
) | Who directed episode 12 in season 3? | SELECT "Directed by" FROM table_20912 WHERE "No. in season" = '12' | wikisql |
CREATE TABLE table_name_78 (
spike INTEGER,
date_of_birth VARCHAR,
block VARCHAR
) | How many spikes have 28.09.1981 as the date of birth, with a block greater than 318? | SELECT SUM(spike) FROM table_name_78 WHERE date_of_birth = "28.09.1981" AND block > 318 | sql_create_context |
CREATE TABLE table_29692 (
"Team" text,
"Chairman" text,
"Head Coach" text,
"Captain" text,
"Kitmaker" text,
"Shirt sponsor" text
) | How many teams have a head coach named mahdi ali? | SELECT COUNT("Team") FROM table_29692 WHERE "Head Coach" = 'Mahdi Ali' | wikisql |
CREATE TABLE Users (
Id number,
Reputation number,
CreationDate time,
DisplayName text,
LastAccessDate time,
WebsiteUrl text,
Location text,
AboutMe text,
Views number,
UpVotes number,
DownVotes number,
ProfileImageUrl text,
EmailHash text,
AccountId number
)
CRE... | How many answers have I posted in the past 14 months by tag. | SELECT TagName, COUNT(DISTINCT Posts.ParentId) AS UniqueAnswers FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId INNER JOIN Votes ON Votes.PostId = Posts.Id WHERE Posts.OwnerUserId = @UserId AND Votes.CreationDate >= DATEADD(month, -14, CURRENT_TIMESTAMP()) ... | sede |
CREATE TABLE table_10436 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Driver" text,
"Rounds" text
) | Who was the driver of the Officine Alfieri Maserati with a Tyre of P? | SELECT "Driver" FROM table_10436 WHERE "Tyre" = 'p' AND "Entrant" = 'officine alfieri maserati' | 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_DIRE_CD text,
MED_DIRE_NM text,... | 医生负责医疗就诊12315818260出院诊断的编号及名称都是什么? | SELECT t_kc21.OUT_DIAG_DOC_CD, t_kc21.OUT_DIAG_DOC_NM FROM t_kc21 WHERE t_kc21.MED_CLINIC_ID = '12315818260' | css |
CREATE TABLE table_10705 (
"Player" text,
"Date of Birth" text,
"Batting Style" text,
"Bowling Style" text,
"First Class Team" text
) | What is the name of the First Class Team in which the player has a bowling style of left arm orthodox spin? | SELECT "First Class Team" FROM table_10705 WHERE "Bowling Style" = 'left arm orthodox spin' | 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_DIRE_CD text,
MED_DIRE_NM text,... | 从13年2月6日开始到15年6月12日结束手术量排名倒数前16的科室编码和名称都有哪个? | SELECT t_kc22.MED_ORG_DEPT_CD, t_kc22.MED_ORG_DEPT_NM FROM t_kc22 WHERE t_kc22.STA_DATE BETWEEN '2013-02-06' AND '2015-06-12' AND t_kc22.MED_INV_ITEM_TYPE = '手术费' GROUP BY t_kc22.MED_ORG_DEPT_CD ORDER BY COUNT(*) LIMIT 16 | css |
CREATE TABLE table_name_65 (
goals_against VARCHAR,
goals_for VARCHAR,
ties VARCHAR
) | How many goals against were scored when the goals for is less than 48 with 0 ties? | SELECT COUNT(goals_against) FROM table_name_65 WHERE goals_for < 48 AND ties < 0 | sql_create_context |
CREATE TABLE table_7331 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | How many gold medals were awarded to teams ranked higher than 19? | SELECT COUNT("Gold") FROM table_7331 WHERE "Rank" > '19' | wikisql |
CREATE TABLE table_1697 (
"Year" real,
"Total" text,
"Less than a year" real,
"One year" real,
"Two years" real,
"Three years" real,
"Four years" real,
"5\u20139 years" real,
"10\u201314 years" real,
"15\u201319 years" real,
"20\u201324 years" real,
"25 and more" real,
... | If two years is 159, what is the amount for one year? | SELECT MIN("One year") FROM table_1697 WHERE "Two years" = '159' | wikisql |
CREATE TABLE table_name_28 (
release_date VARCHAR,
title VARCHAR
) | What's the release date of Upswept Hare? | SELECT release_date FROM table_name_28 WHERE title = "upswept hare" | sql_create_context |
CREATE TABLE table_171361_1 (
population VARCHAR,
status VARCHAR
) | What is the population of each community with city status? | SELECT population FROM table_171361_1 WHERE status = "City" | sql_create_context |
CREATE TABLE icustays (
row_id number,
subject_id number,
hadm_id number,
icustay_id number,
first_careunit text,
last_careunit text,
first_wardid number,
last_wardid number,
intime time,
outtime time
)
CREATE TABLE d_labitems (
row_id number,
itemid number,
label te... | indicate the yearly average arterial bp [systolic] of patient 20207 until 56 months ago. | SELECT AVG(chartevents.valuenum) 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 = 20207)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arte... | mimic_iii |
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE lab (
subject_id text,
hadm_id text,
... | provide the number of patients whose primary disease is left internal jugular vein thrombosis;left arm edema? | SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "LEFT INTERNAL JUGULAR VEIN THROMBOSIS;LEFT ARM EDEMA" | mimicsql_data |
CREATE TABLE table_204_621 (
id number,
"no." number,
"date" text,
"tournament" text,
"winning score" text,
"margin\nof victory" text,
"runner(s)-up" text
) | in which tournament did he have the biggest margin of victory ? | SELECT "tournament" FROM table_204_621 ORDER BY "margin\nof victory" DESC LIMIT 1 | squall |
CREATE TABLE Student (
Spent INTEGER
)
CREATE TABLE Visits_Restaurant (
Spent INTEGER
) | How long does student Linda Smith spend on the restaurant in total? | SELECT SUM(Spent) FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID WHERE Student.Fname = "Linda" AND Student.Lname = "Smith" | sql_create_context |
CREATE TABLE table_name_28 (
singular VARCHAR,
meaning VARCHAR
) | What is the singular for the Meaning of night? | SELECT singular FROM table_name_28 WHERE meaning = "night" | sql_create_context |
CREATE TABLE table_name_72 (
series VARCHAR,
poles VARCHAR,
races VARCHAR
) | Which Series has Poles of 0, and Races of 17? | SELECT series FROM table_name_72 WHERE poles = "0" AND races = "17" | sql_create_context |
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 treatment (
treat... | count the number of patients diagnosed with hyperlipidemia within the same hospital visit after receiving antihypertensives the last year. | 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 = 'antihypertensives' AND DATETIME(treatment.treatmenttime, 'start of year')... | eicu |
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... | 门诊诊断为疾病P75.635的患者的检测指标177326数值的平均值以及最值分别是多少? | SELECT AVG(jyjgzbb.JCZBJGDL), MIN(jyjgzbb.JCZBJGDL), MAX(jyjgzbb.JCZBJGDL) FROM mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_jyjgzbb ON mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jybgb_jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH AND jybgb_jyjgzbb.JYZBLSH = jyjgzbb.JY... | css |
CREATE TABLE table_75457 (
"Round" text,
"Date" text,
"Matches" real,
"Clubs" text,
"New entries this round" text,
"Prize money" text
) | What are the clubs with 46 matches? | SELECT "Clubs" FROM table_75457 WHERE "Matches" = '46' | wikisql |
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 jobs (
JOB_ID varchar(10),
JOB_TITLE varchar(35),
MIN_SALARY decimal(6,0),
MAX_SALARY decimal(6,0)
)
CREATE TABLE countries (
COUNT... | For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, draw a bar chart about the distribution of hire_date and the average of employee_id bin hire_date by time, and I want to display y axis from low to high order. | SELECT HIRE_DATE, AVG(EMPLOYEE_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY AVG(EMPLOYEE_ID) | nvbench |
CREATE TABLE labevents (
row_id number,
subject_id number,
hadm_id number,
itemid number,
charttime time,
valuenum number,
valueuom text
)
CREATE TABLE d_icd_procedures (
row_id number,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE d_labitems (
row_id... | what is the marital status of patient 43735 on the first hospital encounter. | SELECT admissions.marital_status FROM admissions WHERE admissions.subject_id = 43735 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1 | mimic_iii |
CREATE TABLE procedures_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE diagnoses_icd (
row_id number,
subject_id number,
hadm_id number,
icd9_code text,
charttime time
)
CREATE TABLE d_items (
row_id number,
itemid ... | what was patient 51577's first diagnosis of crnry athrscl natve vssl time during their first hospital visit? | SELECT diagnoses_icd.charttime FROM diagnoses_icd WHERE diagnoses_icd.icd9_code = (SELECT d_icd_diagnoses.icd9_code FROM d_icd_diagnoses WHERE d_icd_diagnoses.short_title = 'crnry athrscl natve vssl') AND diagnoses_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 51577 AND NOT adm... | mimic_iii |
CREATE TABLE allergy (
allergyid number,
patientunitstayid number,
drugname text,
allergyname text,
allergytime time
)
CREATE TABLE patient (
uniquepid text,
patienthealthsystemstayid number,
patientunitstayid number,
gender text,
age text,
ethnicity text,
hospitalid num... | has patient 006-76924 been prescribed with insulin (regular) 100 units in 1, levofloxacin 750 mg po tabs or magnesium sulfate 1 g in d5w 100ml **locked dose on the current hospital visit? | SELECT COUNT(*) > 0 FROM medication WHERE medication.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-76924' AND patient.hospitaldischargetime IS NULL)) AND medication.drug... | eicu |
CREATE TABLE table_78090 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
) | What away team played at Kardinia Park? | SELECT "Away team score" FROM table_78090 WHERE "Venue" = 'kardinia park' | wikisql |
CREATE TABLE table_79717 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
) | Which Silver has a Rank of 6, and a Bronze smaller than 3? | SELECT MIN("Silver") FROM table_79717 WHERE "Rank" = '6' AND "Bronze" < '3' | wikisql |
CREATE TABLE table_name_2 (
round INTEGER,
school VARCHAR
) | What is the lowest round for Georgia Tech? | SELECT MIN(round) FROM table_name_2 WHERE school = "georgia tech" | sql_create_context |
CREATE TABLE airport (
id int,
City text,
Country text,
IATA text,
ICAO text,
name text
)
CREATE TABLE flight (
id int,
Vehicle_Flight_number text,
Date text,
Pilot text,
Velocity real,
Altitude real,
airport_id int,
company_id int
)
CREATE TABLE operate_company... | , show X-axis from high to low order. | SELECT Country, COUNT(*) FROM airport GROUP BY Country ORDER BY Country DESC | nvbench |
CREATE TABLE PROFESSOR (
EMP_NUM int,
DEPT_CODE varchar(10),
PROF_OFFICE varchar(50),
PROF_EXTENSION varchar(4),
PROF_HIGH_DEGREE varchar(5)
)
CREATE TABLE COURSE (
CRS_CODE varchar(10),
DEPT_CODE varchar(10),
CRS_DESCRIPTION varchar(35),
CRS_CREDIT float(8)
)
CREATE TABLE DEPARTME... | Show me a scatter plot of avg(stu gpa) and minimal stu gpa for . | SELECT AVG(STU_GPA), MIN(STU_GPA) FROM STUDENT GROUP BY DEPT_CODE | nvbench |
CREATE TABLE table_204_329 (
id number,
"no." number,
"score" number,
"player" text,
"team" text,
"balls" number,
"inns." number,
"opposing team" text,
"date" text,
"result" text
) | how many times were new zealand the opposing team ? | SELECT COUNT(*) FROM table_204_329 WHERE "opposing team" = 'new zealand' | squall |
CREATE TABLE table_2522473_1 (
home_city VARCHAR,
home_ground VARCHAR
) | What Home city has the home ground Klepp stadion? | SELECT home_city FROM table_2522473_1 WHERE home_ground = "Klepp Stadion" | sql_create_context |
CREATE TABLE table_74262 (
"Player" text,
"Cap(s)" real,
"Goal(s)" real,
"International Debut" text,
"Club(s)" text
) | How many caps figures for the Doncaster Rovers? | SELECT COUNT("Cap(s)") FROM table_74262 WHERE "Club(s)" = 'Doncaster Rovers' | wikisql |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.