context
stringlengths
11
9.12k
question
stringlengths
0
1.06k
SQL
stringlengths
2
4.44k
source
stringclasses
28 values
CREATE TABLE table_name_70 ( runs INTEGER, innings VARCHAR, not_outs VARCHAR )
What's the average amount of Runs that has 40 innings, and Not outs larger than 6?
SELECT AVG(runs) FROM table_name_70 WHERE innings = 40 AND not_outs > 6
sql_create_context
CREATE TABLE table_60623 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text )
What was the score on February 21 when the home team was the Pittsburgh Penguins?
SELECT "Score" FROM table_60623 WHERE "Home" = 'pittsburgh penguins' AND "Date" = 'february 21'
wikisql
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, ...
list the number of patients admitted before the year2105.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admityear < "2105"
mimicsql_data
CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ...
has the human temperature c (calc) of patient 6196 been normal until 07/2103?
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 = 6196)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'temperature c (cal...
mimic_iii
CREATE TABLE table_3506 ( "Year" real, "Qatari Male" real, "Qatari Female" real, "Total Qatari" real, "Non Qatari Male" real, "Non Qatari Female" real, "Total Non Qatar" real, "Total Male" real, "Total Female" real, "Grand Total" real )
If the qatari male is 1104, what is the grand total?
SELECT MAX("Grand Total") FROM table_3506 WHERE "Qatari Male" = '1104'
wikisql
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, ...
papers using WordNet and Dbpedia
SELECT DISTINCT paper.paperid FROM dataset, paper, paperdataset WHERE dataset.datasetname IN ('WordNet', 'Dbpedia') AND paperdataset.datasetid = dataset.datasetid AND paper.paperid = paperdataset.paperid GROUP BY paper.paperid
scholar
CREATE TABLE table_name_13 ( successful_defenses INTEGER, location VARCHAR, reign VARCHAR )
What is the highest number of successful defenses in brandon, florida and a reign less than 1?
SELECT MAX(successful_defenses) FROM table_name_13 WHERE location = "brandon, florida" AND reign < 1
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, ...
06038186这个病人在2020-12-13以前有哪些门诊就诊的检验报告单?查一下这些门诊就诊的流水号
SELECT mzjzjlb.JZLSH FROM hz_info JOIN mzjzjlb JOIN person_info_hz_info JOIN person_info ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND person_info_hz_info.KH = hz_info.KH AND person_info_hz_info.KLX = hz_info.KLX AND person_info_hz_info.YLJGDM = hz_info.YLJGDM AND pers...
css
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 )
Who has friends that are older than the average age? Print their names and their ages as well using a pie chart.
SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT AVG(age) FROM Person)
nvbench
CREATE TABLE table_name_76 ( railway VARCHAR, class VARCHAR, year VARCHAR )
Which railway has a class of 250 and year 1936?
SELECT railway FROM table_name_76 WHERE class = "250" AND year = "1936"
sql_create_context
CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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 te...
患者63825529的842142指标在06年12月24日到11年5月11日期间是怎样的
SELECT * 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 AND jybgb.BGDH = jyjgzbb.BG...
css
CREATE TABLE table_63221 ( "Season" text, "Pitcher" text, "Decision" text, "Opponent" text, "Location" text )
Who is the pitcher from the 1994 season that had the Cleveland Indians as an opponent?
SELECT "Pitcher" FROM table_63221 WHERE "Opponent" = 'cleveland indians' AND "Season" = '1994'
wikisql
CREATE TABLE table_73464 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Series" text )
When george hill (29) has the highest amount of points what is the date?
SELECT "Date" FROM table_73464 WHERE "High points" = 'George Hill (29)'
wikisql
CREATE TABLE table_33932 ( "Model Number" text, "Stepping" text, "Frequency" text, "L2 Cache" text, "Multi 1" text, "V Core" text, "Socket" text, "Release Date" text, "Part Number(s)" text )
What's the stepping amount for adh4450iaa5do?
SELECT "Stepping" FROM table_33932 WHERE "Part Number(s)" = 'adh4450iaa5do'
wikisql
CREATE TABLE table_10998 ( "1910" real, "1920" real, "1930" real, "1940" real, "1950" real, "1960" real, "1970" real, "1980" real, "1990" real, "2000" real )
What is the smallest figure in 1960 when 1940 is 1,115 and 1990 is less than 928?
SELECT MIN("1960") FROM table_10998 WHERE "1940" = '1,115' AND "1990" < '928'
wikisql
CREATE TABLE table_72542 ( "Series #" real, "Season #" real, "Title" text, "Story by" text, "Teleplay by" text, "Directed by" text, "Original air date" text )
What is the total number of values for 'Teleplay by' category for series # 35?
SELECT COUNT("Teleplay by") FROM table_72542 WHERE "Series #" = '35'
wikisql
CREATE TABLE table_26842217_6 ( time VARCHAR, visiting_team VARCHAR )
How many times was #7 Oregon a visiting team?
SELECT time FROM table_26842217_6 WHERE visiting_team = "#7 Oregon"
sql_create_context
CREATE TABLE table_40787 ( "Date" text, "Result" text, "Score" text, "Brazil scorers" text, "Competition" text )
What was the score for the South American Championship dated December 13, 1925?
SELECT "Result" FROM table_40787 WHERE "Competition" = 'south american championship' AND "Date" = 'december 13, 1925'
wikisql
CREATE TABLE table_29141354_1 ( scores VARCHAR, episode VARCHAR )
what was the result on 01x06
SELECT scores FROM table_29141354_1 WHERE episode = "01x06"
sql_create_context
CREATE TABLE table_344 ( "Number Range" text, "Introduced" text, "Builder" text, "Engine" text, "Weight (long tons)" text, "Seats" text, "Withdrawn" text, "Notes" text )
what's the builder where withdrawn is 1954 1958
SELECT "Builder" FROM table_344 WHERE "Withdrawn" = '1954–1958'
wikisql
CREATE TABLE table_77726 ( "Driver" text, "Car #" real, "Make" text, "Points" real, "Laps" real, "Winnings" text )
What is the make of car 31?
SELECT "Make" FROM table_77726 WHERE "Car #" = '31'
wikisql
CREATE TABLE table_68515 ( "Round" real, "Name" text, "Position" text, "School" text, "Signed" text )
Was the University of Michigan Signed?
SELECT "Signed" FROM table_68515 WHERE "School" = 'university of michigan'
wikisql
CREATE TABLE table_45372 ( "Stage" text, "Winner" text, "General Classification" text, "Mountains Classification" text, "Points Classification" text, "Sprints classification" text, "Team Classification" text )
What is the Mountains Classification for Winner Thor hushovd with Sprints Classification of no award?
SELECT "Mountains Classification" FROM table_45372 WHERE "Winner" = 'thor hushovd' AND "Sprints classification" = 'no award'
wikisql
CREATE TABLE table_73476 ( "Player" text, "Games Played" real, "Minutes" real, "Field Goals" real, "Three Pointers" real, "Free Throws" real, "Rebounds" real, "Assists" real, "Blocks" real, "Steals" real, "Points" real )
How many blockings occured in the game with 198 rebounds?
SELECT MAX("Blocks") FROM table_73476 WHERE "Rebounds" = '198'
wikisql
CREATE TABLE table_name_60 ( nationality VARCHAR, years_for_jazz VARCHAR )
What is the nationality of the player on the Jazz from 1974-79?
SELECT nationality FROM table_name_60 WHERE years_for_jazz = "1974-79"
sql_create_context
CREATE TABLE table_name_54 ( year VARCHAR, artist VARCHAR )
In what year was the artist Afro-dite?
SELECT year FROM table_name_54 WHERE artist = "afro-dite"
sql_create_context
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...
How many questions have I helped to close?. Shows the breakdown of the close reasons you've used in successfully closed questions.
SELECT t.Name AS "Close Reason", SUM(Count) AS Count FROM (SELECT CAST(PostHistory.Comment AS INT) AS CloseReasonId, 1 AS Count FROM PostHistory WHERE (PostHistoryTypeId = 10) AND ((Text LIKE @searchUserId1) OR (Text LIKE @searchUserId2))) AS a, CloseReasonTypes AS t WHERE a.CloseReasonId = t.Id GROUP BY a.CloseReasonI...
sede
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,...
按照出院诊断的疾病编号不同以及科室的不同显示出医院7279066所有的记录里个人自费的花费与全部医疗费用相比比值的最小值然后按升序的顺序来排列
SELECT t_kc21.MED_ORG_DEPT_NM, t_kc21.OUT_DIAG_DIS_CD, MIN(t_kc24.PER_EXP) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '7279066' GROUP BY t_kc21.MED_ORG_DEPT_NM, t_kc21.OUT_DIAG_DIS_CD ORDER BY MIN(t_kc24.PER_EXP / t_kc24.MED_AMOUT)
css
CREATE TABLE table_50134 ( "Model" text, "Manufacturer" text, "Weight (kg)" real, "Display size (in)" real, "Processor model" text, "Storage type" text )
Which Display size (in) has a Model of vaio pcg-u3?
SELECT COUNT("Display size (in)") FROM table_50134 WHERE "Model" = 'vaio pcg-u3'
wikisql
CREATE TABLE table_name_35 ( date VARCHAR, attendance VARCHAR )
When is it has 15,557 Attendances?
SELECT date FROM table_name_35 WHERE attendance = "15,557"
sql_create_context
CREATE TABLE diagnoses ( 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 procedures ( ...
tell me the time of admission and primary disease of patient bessie giordano.
SELECT demographic.diagnosis, demographic.admittime FROM demographic WHERE demographic.name = "Bessie Giordano"
mimicsql_data
CREATE TABLE table_35596 ( "Length of game" text, "Date" text, "Away team" text, "Score" text, "Home team" text )
How long did the game go that was played with the Houston Oilers at home?
SELECT "Length of game" FROM table_35596 WHERE "Home team" = 'houston oilers'
wikisql
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) 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, JOB_ID varchar(10), SALARY decimal(8,2), CO...
For those employees who do not work in departments with managers that have ids between 100 and 200, show me about the distribution of email and salary in a bar chart, and I want to display from high to low by the bar.
SELECT EMAIL, SALARY FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY EMAIL DESC
nvbench
CREATE TABLE track ( Track_ID int, Name text, Location text, Seating real, Year_Opened real ) CREATE TABLE race ( Race_ID int, Name text, Class text, Date text, Track_ID text )
Draw a bar chart for what are the different classes of races, and how many races correspond to each?
SELECT Class, COUNT(*) FROM race GROUP BY Class
nvbench
CREATE TABLE table_22353 ( "No." real, "Album" text, "Artist" text, "Record label" text, "Released" text, "Chart peak" real, "Number of times certified platinum" text )
When cannot handle non-empty timestamp argument! 2007 is released what is the no.?
SELECT "No." FROM table_22353 WHERE "Released" = 'Cannot handle non-empty timestamp argument! 2007'
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 maximum age of patients whose gender is f and discharge location is snf?
SELECT MAX(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.discharge_location = "SNF"
mimicsql_data
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, ...
在06年1月1日到11年8月25日内病号56134698的所有检验结果指标记录中的仪器编号以及名称分别叫什么?
SELECT jyjgzbb.YQBH, jyjgzbb.YQMC FROM hz_info JOIN mzjzjlb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jyjgzbb.jybgb_YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jyjgzbb.jybgb_JZLSH_MZJZJLB WHERE hz_info.RYBH = '56134698' AND jyjgzbb.JYRQ BETWEEN...
css
CREATE TABLE table_11236195_2 ( losingteam VARCHAR, score VARCHAR )
Which losing team had a score of 24-12?
SELECT losingteam FROM table_11236195_2 WHERE score = "24-12"
sql_create_context
CREATE TABLE table_18951 ( "Ep. No." real, "Title" text, "Director" text, "Written by" text, "Original Air Date" text, "Production No." real )
Who is the director of the episode 'rain of terror' that was written by John Brown?
SELECT "Director" FROM table_18951 WHERE "Written by" = 'John Brown' AND "Title" = 'Rain of Terror'
wikisql
CREATE TABLE table_9759 ( "Coach" text, "Years" text, "Seasons" real, "Record" text, "Winning %" real )
how many times is the seasons 2 and the coach guy lowman?
SELECT COUNT("Winning %") FROM table_9759 WHERE "Seasons" = '2' AND "Coach" = 'guy lowman'
wikisql
CREATE TABLE table_name_14 ( played INTEGER, lost VARCHAR, drawn VARCHAR, percentage VARCHAR )
What is the lowest number of matches played that has more than 0 draws, a percentage of 12.50%, and fewer than 3 losses?
SELECT MIN(played) FROM table_name_14 WHERE drawn > 0 AND percentage = "12.50%" AND lost < 3
sql_create_context
CREATE TABLE table_9049 ( "Year" real, "Winner" text, "Score" text, "Runner(s)-up" text, "Winner's share ($)" real, "Course" text, "Location" text )
What was the highest share for the winners in 1959?
SELECT MAX("Winner's share ($)") FROM table_9049 WHERE "Year" = '1959'
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 locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(...
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, visualize a bar chart about the distribution of hire_date and the sum of salary bin hire_date by weekday, and display sum salary in desc order.
SELECT HIRE_DATE, SUM(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(SALARY) DESC
nvbench
CREATE TABLE table_37247 ( "Goal" real, "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text )
What is the result of the friendly match?
SELECT "Result" FROM table_37247 WHERE "Competition" = 'friendly'
wikisql
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...
在09年7月5日到17年7月6日这段时间,患者卫逸明一共有多少检验报告单,把这些检验报告单的标本采集部位列出来
SELECT jybgb.BBCJBW FROM person_info JOIN hz_info JOIN wdmzjzjlb JOIN jybgb 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 WHERE person_info.XM = ...
css
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtim...
count the number of times patient 012-37411 had had a urine output on 12/29/this year.
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 = '012-37411')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.ce...
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...
患者19618355在二零一一年六月三十日以前的检验报告单是在哪些住院就诊的?列出住院就诊流水号
SELECT zyjzjlb.JZLSH FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE hz_info.RYBH = '19618355' AND NOT zyjzjlb.JZLSH IN (SELECT zyjybgb.JZLSH FROM zyjybgb WHERE zyjybgb.BGRQ >= '2011-06-30' UNION SELECT mzjybgb.JZLSH FROM mzjybgb WHERE mzjybgb...
css
CREATE TABLE table_name_72 ( score VARCHAR, competition VARCHAR, date VARCHAR )
Competition of friendly, and a Date of 03-jun-62 had what score?
SELECT score FROM table_name_72 WHERE competition = "friendly" AND date = "03-jun-62"
sql_create_context
CREATE TABLE hall_of_fame ( player_id text, yearid number, votedby text, ballots text, needed text, votes text, inducted text, category text, needed_note text ) CREATE TABLE player_award ( player_id text, award_id text, year number, league_id text, tie text, ...
What are the birth places of players won on hall of fame since 1871?
SELECT T1.birth_country FROM hall_of_fame AS T2 JOIN player AS T1 ON T1.player_id = T2.player_id WHERE T2.inducted = "Y" AND T2.yearid >= 1871
thehistoryofbaseball
CREATE TABLE table_34124 ( "Name" text, "Number of sequences Number of sequences: ." text, "Alignment Alignment: predicts an alignment , ." text, "Structure Structure: predicts structure , ." text, "Link" text )
What is the number of sequences for the name Alifoldz?
SELECT "Number of sequences Number of sequences: ." FROM table_34124 WHERE "Name" = 'alifoldz'
wikisql
CREATE TABLE table_name_59 ( nationality VARCHAR, player VARCHAR )
What nationality is Larry McMorran?
SELECT nationality FROM table_name_59 WHERE player = "larry mcmorran"
sql_create_context
CREATE TABLE table_7185 ( "Date" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" real )
What is the Venue with an Attendance that is larger than 6,938?
SELECT "Venue" FROM table_7185 WHERE "Attendance" > '6,938'
wikisql
CREATE TABLE table_203_8 ( id number, "player" text, "rec." number, "yards" number, "avg." number, "td's" number, "long" number )
what is the difference in touchdowns between raymond philyaw and jerel myers ?
SELECT ABS((SELECT "td's" FROM table_203_8 WHERE "player" = 'raymond philyaw') - (SELECT "td's" FROM table_203_8 WHERE "player" = 'jerel myers'))
squall
CREATE TABLE table_72589 ( "Position" real, "Sail number" text, "Yacht" text, "State/country" text, "Yacht type" text, "LOA (Metres)" text, "Skipper" text, "Corrected time d:hh:mm:ss" text )
What are all sail numbers for the yacht Yendys?
SELECT "Sail number" FROM table_72589 WHERE "Yacht" = 'Yendys'
wikisql
CREATE TABLE table_6273 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text )
What is the score of the game that had a decision of Parent, home team of Philadelphia, and visitor of Pittsburgh?
SELECT "Score" FROM table_6273 WHERE "Decision" = 'parent' AND "Home" = 'philadelphia' AND "Visitor" = 'pittsburgh'
wikisql
CREATE TABLE table_name_86 ( venue VARCHAR, year VARCHAR )
What is the venue in 2002?
SELECT venue FROM table_name_86 WHERE year = "2002"
sql_create_context
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemics...
how many hours have elapsed since the first time in the current hospital visit that patient 004-86136 underwent a treatment of hyperkalemia - intravenous calcium procedure?
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', treatment.treatmenttime)) FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '004-86136...
eicu
CREATE TABLE table_name_15 ( grid INTEGER, rider VARCHAR, laps VARCHAR )
with more than 32 laps and sylvain guintoli as rider, what's the lowest grid ?
SELECT MIN(grid) FROM table_name_15 WHERE rider = "sylvain guintoli" AND laps > 32
sql_create_context
CREATE TABLE table_1603807_2 ( status VARCHAR, line VARCHAR )
What is the status of the airport line?
SELECT status FROM table_1603807_2 WHERE line = "Airport line"
sql_create_context
CREATE TABLE table_11406866_2 ( record VARCHAR, result VARCHAR )
what's the record where result is l 24-10
SELECT record FROM table_11406866_2 WHERE result = "L 24-10"
sql_create_context
CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE fare_basis ( fare_basis_code text, booking_class text, class_type text, premium text, econom...
the latest flight from BALTIMORE to OAKLAND please and i'd like a meal with that
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight, food_service WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code AND food_s...
atis
CREATE TABLE table_80079 ( "Chapter" real, "Chinese" text, "Pinyin" text, "Translation" text, "Subject" text )
Name the subject of shiyan
SELECT "Subject" FROM table_80079 WHERE "Pinyin" = 'shiyan'
wikisql
CREATE TABLE table_name_93 ( bats VARCHAR, surname VARCHAR )
Which player has a last name of baron?
SELECT bats FROM table_name_93 WHERE surname = "baron"
sql_create_context
CREATE TABLE table_9533 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text )
What tournament was Laura Davies the runner-up?
SELECT "Tournament" FROM table_9533 WHERE "Runner(s)-up" = 'laura davies'
wikisql
CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime tim...
how many hours have it been since the last time that patient 82132 was prescribed with albuterol neb soln during their current hospital visit?
SELECT 24 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', prescriptions.startdate)) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 82132 AND admissions.dischtime IS NULL) AND prescriptions.drug = 'albuterol neb soln' ORDER BY prescriptions.s...
mimic_iii
CREATE TABLE table_name_32 ( platform INTEGER, destination VARCHAR, frequency__per_hour_ VARCHAR, operator VARCHAR )
what is the highest platform number when the frequency (per hour) is 4, the operator is london overground and the destination is west croydon?
SELECT MAX(platform) FROM table_name_32 WHERE frequency__per_hour_ = 4 AND operator = "london overground" AND destination = "west croydon"
sql_create_context
CREATE TABLE table_name_44 ( character VARCHAR, result VARCHAR, year VARCHAR )
Which character won before 2006?
SELECT character FROM table_name_44 WHERE result = "won" AND year < 2006
sql_create_context
CREATE TABLE table_54140 ( "Year" real, "Pick" text, "Player name" text, "Position" text, "College" text )
What is the name of the cornerback from 1997?
SELECT "Player name" FROM table_54140 WHERE "Position" = 'cornerback' AND "Year" = '1997'
wikisql
CREATE TABLE table_30962 ( "Episode" text, "First broadcast" text, "Andrew and Georgies guest Lee Mack replaced Andrew Flintoff as team captain for one week in series 4, episode 2." text, "Jamie and Johns guest" text, "Scores" text )
What date did the episode with Andy Murray as Jamie and John's guest first broadcast?
SELECT "First broadcast" FROM table_30962 WHERE "Jamie and Johns guest" = 'Andy Murray'
wikisql
CREATE TABLE table_17247 ( "Full Name" text, "Nickname" text, "Gender" text, "Weight at birth" text, "Meaning" text )
What is the number of meaning where full name is chidinma anulika?
SELECT COUNT("Meaning") FROM table_17247 WHERE "Full Name" = 'Chidinma Anulika'
wikisql
CREATE TABLE table_name_98 ( live___studio VARCHAR, year INTEGER )
Is it live or studio before 1983?
SELECT live___studio FROM table_name_98 WHERE year < 1983
sql_create_context
CREATE TABLE table_name_45 ( currency VARCHAR, central_rate VARCHAR )
Which currency has a central rate of 3.45280?
SELECT currency FROM table_name_45 WHERE central_rate = "3.45280"
sql_create_context
CREATE TABLE Rooms ( beds INTEGER, bedtype VARCHAR )
How many king beds are there?
SELECT SUM(beds) FROM Rooms WHERE bedtype = 'King'
sql_create_context
CREATE TABLE table_23242950_1 ( production_code VARCHAR, us_viewers__millions_ VARCHAR )
What's the production code of the episode seen by 7.49 million people in the US?
SELECT production_code FROM table_23242950_1 WHERE us_viewers__millions_ = "7.49"
sql_create_context
CREATE TABLE table_50925 ( "Institution" text, "Location" text, "Nickname" text, "Enrollment" real, "Established" real )
What is the enrollment of the university established in or after 2011?
SELECT "Enrollment" FROM table_50925 WHERE "Established" > '2011'
wikisql
CREATE TABLE hz_info ( KH text, KLX number, YLJGDM text, RYBH text ) CREATE TABLE jybgb ( YLJGDM text, YLJGDM_MZJZJLB text, YLJGDM_ZYJZJLB text, BGDH text, BGRQ time, JYLX number, JZLSH text, JZLSH_MZJZJLB text, JZLSH_ZYJZJLB text, JZLX number, KSBM text, ...
医疗就诊69185287770中审核超过17份检验报告单的审核人工号和姓名各是什么?
SELECT SHRGH, SHRXM FROM jybgb WHERE JZLSH = '69185287770' GROUP BY SHRGH HAVING COUNT(*) > 17
css
CREATE TABLE table_1140116_5 ( winning_driver VARCHAR, circuit VARCHAR )
Who won the Modena circuit?
SELECT winning_driver FROM table_1140116_5 WHERE circuit = "Modena"
sql_create_context
CREATE TABLE table_name_99 ( record VARCHAR, loss VARCHAR )
Loss of finley (8-7) had what record?
SELECT record FROM table_name_99 WHERE loss = "finley (8-7)"
sql_create_context
CREATE TABLE table_name_84 ( soap_opera VARCHAR, duration VARCHAR, actor VARCHAR )
What is the soap opera that has a duration of 13 years, with marina giulia cavalli as the actor?
SELECT soap_opera FROM table_name_84 WHERE duration = "13 years" AND actor = "marina giulia cavalli"
sql_create_context
CREATE TABLE table_203_121 ( id number, "name" text, "pos." text, "caps" number, "goals" number, "club" text )
what was the total number of goals scored by all of the national team players in the 1947/1948 season ?
SELECT SUM("goals") FROM table_203_121
squall
CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE jo...
What courses can be taken for PreMajor next semester ?
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, program, program_course, semester WHERE course.course_id = course_offering.course_id AND program_course.category LIKE '%PreMajor%' AND program_course.course_id = course.course_id AND program.name LIKE '%CS-LSA%' AND program.prog...
advising
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...
Draw a bar chart about the distribution of Team_Name and All_Games_Percent .
SELECT Team_Name, All_Games_Percent FROM basketball_match
nvbench
CREATE TABLE table_name_30 ( result VARCHAR, score VARCHAR )
With a score of 2-2, what was the Result?
SELECT result FROM table_name_30 WHERE score = "2-2"
sql_create_context
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, ...
在医疗就诊99940959667中患者96248752给哪个项目付出的自费金额最高
SELECT t_kc22.SOC_SRT_DIRE_CD, t_kc22.SOC_SRT_DIRE_NM FROM t_kc22 JOIN t_kc21_t_kc22 JOIN t_kc21 ON t_kc21_t_kc22.MED_EXP_DET_ID = t_kc22.MED_EXP_DET_ID AND t_kc21_t_kc22.MED_CLINIC_ID = t_kc21.MED_CLINIC_ID WHERE t_kc21.MED_CLINIC_ID = '99940959667' GROUP BY t_kc22.SOC_SRT_DIRE_CD ORDER BY SUM(t_kc22.SELF_PAY_AMO) DES...
css
CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id...
what is maximum age of patients whose ethnicity is hispanic/latino - puerto rican and days of hospital stay is 14?
SELECT MAX(demographic.age) FROM demographic WHERE demographic.ethnicity = "HISPANIC/LATINO - PUERTO RICAN" AND demographic.days_stay = "14"
mimicsql_data
CREATE TABLE table_19059 ( "Team" text, "Stadium" text, "Capacity" real, "Highest" real, "Lowest" real, "Average" real )
what's the team with stadium being borough briggs
SELECT "Team" FROM table_19059 WHERE "Stadium" = 'Borough Briggs'
wikisql
CREATE TABLE table_60124 ( "Name" text, "Volume" text, "Engine" text, "Fuel" text, "Output" text, "Torque" text, "Engine ID code(s)" text, "0\u2013100km/h,s" real, "Top speed" text, "CO 2" text, "Years" text )
Which Fuel has an Output of ps (kw; hp) @6000 rpm?
SELECT "Fuel" FROM table_60124 WHERE "Output" = 'ps (kw; hp) @6000 rpm'
wikisql
CREATE TABLE Faculty ( Rank VARCHAR, building VARCHAR )
How many Professors are in building NEB?
SELECT COUNT(*) FROM Faculty WHERE Rank = "Professor" AND building = "NEB"
sql_create_context
CREATE TABLE table_55105 ( "Team" text, "City/Area" text, "Arena" text, "Capacity" text, "Last season" text )
What is the capacity for the arena in Chester?
SELECT "Capacity" FROM table_55105 WHERE "City/Area" = 'chester'
wikisql
CREATE TABLE table_203_784 ( id number, "no. in\nseries" number, "no. in\nseason" number, "performer" text, "appearance" text, "air date" text )
how many episodes only had one performer ?
SELECT COUNT(*) FROM table_203_784
squall
CREATE TABLE table_name_80 ( driver VARCHAR, race_1 VARCHAR, points VARCHAR, team VARCHAR )
Which driver for Bob Holden Motors has fewer than 36 points and placed 7 in race 1?
SELECT driver FROM table_name_80 WHERE points < 36 AND team = "bob holden motors" AND race_1 = "7"
sql_create_context
CREATE TABLE table_14070062_3 ( losing_bonus VARCHAR, won VARCHAR )
What's the losing bonus count for the club with 9 won games?
SELECT losing_bonus FROM table_14070062_3 WHERE won = "9"
sql_create_context
CREATE TABLE table_name_15 ( total VARCHAR, name VARCHAR )
What is the total when the name is Carl Robinson Category:Articles with hcards?
SELECT total FROM table_name_15 WHERE name = "carl robinson category:articles with hcards"
sql_create_context
CREATE TABLE table_29261215_4 ( points INTEGER, peeter_vähi VARCHAR )
What is the maximum points received when Peeter V hl gave a 9?
SELECT MIN(points) FROM table_29261215_4 WHERE peeter_vähi = 9
sql_create_context
CREATE TABLE table_29630 ( "#" real, "No." real, "Title" text, "Directed by" text, "Written by" text, "Viewers" real, "Original airdate" text, "Prod. code" real )
What is the smallest numbered episode in the series listed?
SELECT MIN("#") FROM table_29630
wikisql
CREATE TABLE Customers ( Customer_ID INTEGER, Customer_Details VARCHAR(255) ) CREATE TABLE Claims ( Claim_ID INTEGER, Policy_ID INTEGER, Date_Claim_Made DATE, Date_Claim_Settled DATE, Amount_Claimed INTEGER, Amount_Settled INTEGER ) CREATE TABLE Payments ( Payment_ID INTEGER, S...
Calculate the average amount for all the payments processed with Visa of each day of week using a bar chart, and display y-axis in asc order.
SELECT Date_Payment_Made, AVG(Amount_Payment) FROM Payments WHERE Payment_Method_Code = 'Visa' ORDER BY AVG(Amount_Payment)
nvbench
CREATE TABLE loan ( cust_id VARCHAR ) CREATE TABLE customer ( cust_name VARCHAR, credit_score VARCHAR, cust_id VARCHAR )
Find the name and credit score of the customers who have some loans.
SELECT DISTINCT T1.cust_name, T1.credit_score FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id
sql_create_context
CREATE TABLE table_58195 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text )
Who is the away team that played home team Hawthorn?
SELECT "Away team" FROM table_58195 WHERE "Home team" = 'hawthorn'
wikisql
CREATE TABLE table_name_59 ( venue VARCHAR, away_team VARCHAR )
In what venue was the hosted away team Essendon?
SELECT venue FROM table_name_59 WHERE away_team = "essendon"
sql_create_context
CREATE TABLE table_train_10 ( "id" int, "severe_sepsis" bool, "consent" bool, "raising_legs_or_head" bool, "intention_to_arterial_catheter" bool, "allergy_to_adhesive" bool, "intention_to_central_venous_catheter" bool, "septic_shock" bool, "age" float, "NOUSE" float )
children under the age of 18 will not be included in this study
SELECT * FROM table_train_10 WHERE age >= 18
criteria2sql