instruction
stringlengths
151
7.46k
output
stringlengths
2
4.44k
source
stringclasses
26 values
CREATE TABLE table_name_40 ( team VARCHAR, qual_2 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team has a second qualification time of 1:01.936?
SELECT team FROM table_name_40 WHERE qual_2 = "1:01.936"
sql_create_context
CREATE TABLE table_25352324_5 ( assists VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every entry for assists if the player is Lynn Pride?
SELECT assists FROM table_25352324_5 WHERE player = "Lynn Pride"
sql_create_context
CREATE TABLE Suppliers ( supplier_id INTEGER, supplier_name VARCHAR(80), supplier_phone VARCHAR(80) ) CREATE TABLE Department_Store_Chain ( dept_store_chain_id INTEGER, dept_store_chain_name VARCHAR(80) ) CREATE TABLE Department_Stores ( dept_store_id INTEGER, dept_store_chain_id INTEGER, ...
SELECT payment_method_code, COUNT(*) FROM Customers GROUP BY payment_method_code ORDER BY COUNT(*) DESC
nvbench
CREATE TABLE table_name_50 ( season VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which season was on 30 October 1977?
SELECT season FROM table_name_50 WHERE date = "30 october 1977"
sql_create_context
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 ) -- Using valid SQLite, answer the following questions for the...
SELECT Name, MAX(Revenue) FROM Manufacturers GROUP BY Headquarter
nvbench
CREATE TABLE bdmzjzjlb ( CYBQDM text, CYBQMC text, CYCWH text, CYKSDM text, CYKSMC text, CYSJ time, CYZTDM number, HZXM text, JZKSDM text, JZKSMC text, JZLSH number, KH text, KLX number, MZBMLX number, MZJZLSH text, MZZDBM text, MZZDMC text, MZZYZD...
SELECT person_info.XM 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_ZYJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_ZYJZJLB WHERE jybgb.BGDH = '3...
css
CREATE TABLE table_37182 ( "Year(s)" real, "Grand Final Television Commentator" text, "Grand Final Dual Television Commentator" text, "Spokesperson" text, "Semi Final Television Commentator" text, "Semi Final Dual Television Commentator" text ) -- Using valid SQLite, answer the following quest...
SELECT "Grand Final Television Commentator" FROM table_37182 WHERE "Year(s)" > '1959' AND "Grand Final Dual Television Commentator" = 'dave' AND "Spokesperson" = 'marie myriam'
wikisql
CREATE TABLE table_698 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the district of lawrence j. smith
SELECT "District" FROM table_698 WHERE "Incumbent" = 'Lawrence J. Smith'
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...
SELECT SUM(OVE_PAY) FROM t_kc24 WHERE PERSON_ID = '54965203' AND CLINIC_SLT_DATE BETWEEN '2006-01-25' AND '2021-01-07'
css
CREATE TABLE table_name_4 ( opponent VARCHAR, score VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent of the game that 31,293 people attended that had a final score of 9 - 6.
SELECT opponent FROM table_name_4 WHERE score = "9 - 6" AND attendance > 31 OFFSET 293
sql_create_context
CREATE TABLE publication ( Publication_Date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of distinct publication dates?
SELECT COUNT(DISTINCT Publication_Date) FROM publication
sql_create_context
CREATE TABLE volume ( Volume_ID int, Volume_Issue text, Issue_Date text, Weeks_on_Top real, Song text, Artist_ID int ) CREATE TABLE artist ( Artist_ID int, Artist text, Age int, Famous_Title text, Famous_Release_date text ) CREATE TABLE music_festival ( ID int, Musi...
SELECT Category, COUNT(*) FROM music_festival GROUP BY Category
nvbench
CREATE TABLE t_kc21 ( MED_CLINIC_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, COMP_ID text, PERSON_ID text, PERSON_NM text, IDENTITY_CARD text, SOC_SRT_CARD text, PERSON_SEX number, PERSON_AGE number, IN_HOSP_DATE time, OUT_HOSP_DATE time, DIFF_PLACE_FLG numb...
SELECT OUT_DIAG_DOC_CD, OUT_DIAG_DOC_NM FROM t_kc21 WHERE PERSON_NM = '孙文心' AND IN_HOSP_DATE BETWEEN '2013-08-12' AND '2018-06-11' GROUP BY OUT_DIAG_DOC_CD ORDER BY COUNT(*) DESC LIMIT 1
css
CREATE TABLE Student_Tests_Taken ( registration_id INTEGER, date_test_taken DATETIME, test_result VARCHAR(255) ) CREATE TABLE Course_Authors_and_Tutors ( author_id INTEGER, author_tutor_ATB VARCHAR(3), login_name VARCHAR(40), password VARCHAR(40), personal_name VARCHAR(80), middle_n...
SELECT date_of_enrolment, COUNT(date_of_enrolment) FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass" ORDER BY COUNT(date_of_enrolment)
nvbench
CREATE TABLE STUDENT ( Fname VARCHAR, Age VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the first name of students in the descending order of age.
SELECT Fname FROM STUDENT ORDER BY Age DESC
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, ...
SELECT t_kc22.SOC_SRT_DIRE_NM, t_kc22.AMOUNT, t_kc21.MED_CLINIC_ID 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 = '98852331777' OR t_kc21_t_kc22.MED_CLINIC_ID = '39740471362' AND t_kc2...
css
CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId n...
SELECT tag.TagName AS "tag_name", tag.Count AS "deletion_percentage", p.Id AS "post_link" FROM Tags AS tag INNER JOIN Posts AS p ON p.Tags LIKE CONCAT(CONCAT('%<', tag.TagName COLLATE SQL_Latin1_General_CP1_CI_AS), '>%') AND NOT p.ClosedDate IS NULL GROUP BY p.Id, tag.TagName, tag.Count ORDER BY tag.Count DESC LIMIT 10
sede
CREATE TABLE table_name_26 ( round INTEGER, college VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Round has a College of arizona?
SELECT MIN(round) FROM table_name_26 WHERE college = "arizona"
sql_create_context
CREATE TABLE table_name_4 ( region VARCHAR, host VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The University of Colorado hosted what region?
SELECT region FROM table_name_4 WHERE host = "university of colorado"
sql_create_context
CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABL...
SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT t3.itemid FROM (SELECT t2.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, procedures_icd.charttime FROM procedures_icd JOIN admissions ON procedures_icd.hadm_id = admissions.hadm_id WHERE procedures_i...
mimic_iii
CREATE TABLE table_name_86 ( date VARCHAR, outcome VARCHAR, opponent_in_the_final VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which date has an Outcome of runner-up, and an Opponent in the final of gilles simon?
SELECT date FROM table_name_86 WHERE outcome = "runner-up" AND opponent_in_the_final = "gilles simon"
sql_create_context
CREATE TABLE table_29362 ( "Vertical" real, "Horizontal" real, "Aspect ratio" text, "Pixel aspect ratio" text, "Scanning" text, "Frame rate ( Hz )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the maximum vertical measurement if the h...
SELECT MAX("Vertical") FROM table_29362 WHERE "Horizontal" = '640'
wikisql
CREATE TABLE table_23859 ( "No. in series" real, "No. in season" real, "Title" text, "Directedby" text, "Writtenby" text, "Originalairdate" text, "Production code" text, "U.S.viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
SELECT MAX("No. in series") FROM table_23859 WHERE "Production code" = '3WAB07'
wikisql
CREATE TABLE table_73235 ( "Season" text, "Winner" text, "Runner Up" text, "Third Place" text, "Top scorer" text, "Goals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When twente came in third place and ajax was the winner what are the seasons...
SELECT "Season" FROM table_73235 WHERE "Winner" = 'Ajax' AND "Third Place" = 'Twente'
wikisql
CREATE TABLE table_69116 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Time" text, "Att." text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Time has Date of May 9?
SELECT "Time" FROM table_69116 WHERE "Date" = 'may 9'
wikisql
CREATE TABLE table_32090 ( "Call sign" text, "Frequency" text, "City of License" text, "Owner" text, "Format" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the city of license for 0 106.9 fm
SELECT "City of License" FROM table_32090 WHERE "Frequency" = '0 106.9 fm'
wikisql
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE diagnosis ( diagnosisid number...
SELECT 1 * (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 = '017-45919'...
eicu
CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), student_capacity INTEGER, gender VARCHAR(1) ) CREATE TABLE Has_amenity ( dormid INTEGER, amenid INTEGER ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), ...
SELECT Fname, COUNT(Fname) FROM Student WHERE Major <> (SELECT Major FROM Student) GROUP BY Fname ORDER BY COUNT(Fname)
nvbench
CREATE TABLE table_name_74 ( time_retired VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the time of the driver who had a grid of 22?
SELECT time_retired FROM table_name_74 WHERE grid = "22"
sql_create_context
CREATE TABLE table_20799587_1 ( mccain_percentage VARCHAR, county VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What percentage of the votes did McCain get in Hinds?
SELECT mccain_percentage FROM table_20799587_1 WHERE county = "Hinds"
sql_create_context
CREATE TABLE table_1939367_1 ( arabs_2001 VARCHAR, province VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the province is British Columbia, what is the Arabs 2001 total number?
SELECT COUNT(arabs_2001) FROM table_1939367_1 WHERE province = "British Columbia"
sql_create_context
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...
SELECT qtb.IN_DIAG_DIS_CD, qtb.IN_DIAG_DIS_NM FROM qtb WHERE qtb.MED_CLINIC_ID = '30242405141' UNION SELECT gyb.IN_DIAG_DIS_CD, gyb.IN_DIAG_DIS_NM FROM gyb WHERE gyb.MED_CLINIC_ID = '30242405141' UNION SELECT zyb.IN_DIAG_DIS_CD, zyb.IN_DIAG_DIS_NM FROM zyb WHERE zyb.MED_CLINIC_ID = '30242405141' UNION SELECT mzb.IN_DIA...
css
CREATE TABLE table_name_97 ( date VARCHAR, event VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date was the 1500 m freestyle competition?
SELECT date FROM table_name_97 WHERE event = "1500 m freestyle"
sql_create_context
CREATE TABLE department ( dept_name text, building text, budget number ) CREATE TABLE time_slot ( time_slot_id text, day text, start_hr number, start_min number, end_hr number, end_min number ) CREATE TABLE student ( id text, name text, dept_name text, tot_cred numb...
SELECT COUNT(DISTINCT course_id) FROM course WHERE dept_name = 'Physics'
spider
CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE cour...
SELECT COUNT(*) > 0 FROM course INNER JOIN program_course ON program_course.course_id = course.course_id WHERE course.department = 'PUBPOL' AND course.number = 571 AND program_course.category LIKE '%ULCS%'
advising
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...
SELECT SUM(t_kc22.AMOUNT) FROM t_kc21 JOIN t_kc22 ON t_kc21.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE t_kc21.PERSON_ID = '83001466' AND t_kc21.CLINIC_TYPE = '门诊' AND t_kc22.STA_DATE BETWEEN '2005-05-20' AND '2014-06-18' AND t_kc22.MED_INV_ITEM_TYPE = '检查费'
css
CREATE TABLE table_42911 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent for the game played on September 19, 1994?
SELECT "Opponent" FROM table_42911 WHERE "Date" = 'september 19, 1994'
wikisql
CREATE TABLE table_66259 ( "Name" text, "Championship" real, "League Cup" real, "FA Cup" real, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many league cups have an FA Cup less than 0?
SELECT COUNT("League Cup") FROM table_66259 WHERE "FA Cup" < '0'
wikisql
CREATE TABLE sportsinfo ( stuid number, sportname text, hoursperweek number, gamesplayed number, onscholarship text ) CREATE TABLE plays_games ( stuid number, gameid number, hours_played number ) CREATE TABLE student ( stuid number, lname text, fname text, age number, ...
SELECT fname FROM student WHERE major = 600
spider
CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, ...
SELECT * FROM Votes INNER JOIN VoteTypes ON (VoteTypes.Id = Votes.VoteTypeId) WHERE Votes.UserId = 4356233
sede
CREATE TABLE table_178389_1 ( sub_parish__sogn_ VARCHAR, church_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of churches named H yanger Kyrkje?
SELECT COUNT(sub_parish__sogn_) FROM table_178389_1 WHERE church_name = "Høyanger kyrkje"
sql_create_context
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE...
SELECT 1 * (STRFTIME('%j', CURRENT_TIME()) - STRFTIME('%j', transfers.intime)) FROM transfers WHERE transfers.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 20898 AND admissions.dischtime IS NULL) AND transfers.careunit = 'csru' ORDER BY transfers.intime DESC LIMIT 1
mimic_iii
CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departur...
SELECT COUNT(DISTINCT flight.flight_id) FROM airport_service, city, date_day AS DATE_DAY_0, date_day AS DATE_DAY_1, days AS DAYS_0, days AS DAYS_1, fare, fare_basis AS FARE_BASIS_0, fare_basis AS FARE_BASIS_1, flight, flight_fare WHERE ((DATE_DAY_0.day_number = 29 AND DATE_DAY_0.month_number = 4 AND DATE_DAY_0.year = 1...
atis
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 ...
SELECT mzjzjlb.SG, mzjzjlb.TZ FROM hz_info JOIN mzjzjlb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE hz_info.person_info_XM = '谢天心'
css
CREATE TABLE table_name_31 ( rank VARCHAR, notes VARCHAR, country VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rank of the new zealand team that had fb listed under notes?
SELECT rank FROM table_name_31 WHERE notes = "fb" AND country = "new zealand"
sql_create_context
CREATE TABLE table_729 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What district is F. Edward Hebert the incumbent in?
SELECT "District" FROM table_729 WHERE "Incumbent" = 'F. Edward Hebert'
wikisql
CREATE TABLE Customer_Policies ( Policy_ID INTEGER, Customer_ID INTEGER, Policy_Type_Code CHAR(15), Start_Date DATE, End_Date DATE ) CREATE TABLE Settlements ( Settlement_ID INTEGER, Claim_ID INTEGER, Date_Claim_Made DATE, Date_Claim_Settled DATE, Amount_Claimed INTEGER, Amo...
SELECT Date_Claim_Settled, COUNT(Date_Claim_Settled) FROM Settlements ORDER BY COUNT(Date_Claim_Settled) DESC
nvbench
CREATE TABLE table_63627 ( "Rank" real, "Canton" text, "Highest point" text, "Highest elevation" text, "Lowest point" text, "Lowest elevation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What rank is Vaud with the lowest point is Lake Geneva?...
SELECT SUM("Rank") FROM table_63627 WHERE "Lowest point" = 'lake geneva' AND "Canton" = 'vaud'
wikisql
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...
SELECT jyjgzbb.JCFF FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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 mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM...
css
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
SELECT demographic.diagnosis, prescriptions.route FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Albert Bauer"
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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, ...
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 = "2749" AND prescriptions.route = "ID"
mimicsql_data
CREATE TABLE jyjgzbb ( JYZBLSH text, YLJGDM text, BGDH text, BGRQ time, JYRQ time, JCRGH text, JCRXM text, SHRGH text, SHRXM text, JCXMMC text, JCZBDM text, JCFF text, JCZBMC text, JCZBJGDX text, JCZBJGDL number, JCZBJGDW text, SBBM text, YQBH text...
SELECT SHRGH, SHRXM FROM jybgb WHERE JZLSH = '44774327755'
css
CREATE TABLE CLASS ( CLASS_CODE varchar(5), CRS_CODE varchar(10), CLASS_SECTION varchar(2), CLASS_TIME varchar(20), CLASS_ROOM varchar(8), PROF_NUM int ) CREATE TABLE DEPARTMENT ( DEPT_CODE varchar(10), DEPT_NAME varchar(30), SCHOOL_CODE varchar(8), EMP_NUM int, DEPT_ADDRESS...
SELECT PROF_OFFICE, COUNT(PROF_OFFICE) FROM CLASS AS T1 JOIN EMPLOYEE AS T2 ON T1.PROF_NUM = T2.EMP_NUM JOIN COURSE AS T3 ON T1.CRS_CODE = T3.CRS_CODE JOIN PROFESSOR AS T4 ON T2.EMP_NUM = T4.EMP_NUM GROUP BY CRS_DESCRIPTION, PROF_OFFICE
nvbench
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 ) ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.age < "70" AND lab.itemid = "50810"
mimicsql_data
CREATE TABLE table_name_77 ( name VARCHAR, cerclis_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the site with a CERCLIS ID of prd980512362?
SELECT name FROM table_name_77 WHERE cerclis_id = "prd980512362"
sql_create_context
CREATE TABLE table_name_1 ( goals_for INTEGER, drawn INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the most goals for when there are fewer than 4 draws?
SELECT MAX(goals_for) FROM table_name_1 WHERE drawn < 4
sql_create_context
CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, ...
SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '004-7984' AND STRFTIME('%y', patient.hospitaladmittime) <= '2102'
eicu
CREATE TABLE table_14229 ( "School" text, "Location" text, "Mascot" text, "Enrollment 12-13" real, "IHSAA Class" text, "IHSAA Class Football" text, "County" text, "Year Joined" real, "Previous Conference" text ) -- Using valid SQLite, answer the following questions for the tables p...
SELECT "IHSAA Class" FROM table_14229 WHERE "Year Joined" < '2012' AND "Mascot" = 'panthers'
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...
SELECT jybgb.JYKSBM, jybgb.JYKSMC FROM jybgb WHERE jybgb.JZLSH = '34957559611'
css
CREATE TABLE table_204_0 ( id number, "poll source" text, "date(s)\nadministered" text, "sample\nsize" number, "margin of\nerror" text, "ed burke" text, "roland burris" text, "gery chico" text, "bill daley" text, "tom dart" text, "danny k. davis" text, "miguel del valle" ...
SELECT "sample\nsize" FROM table_204_0 WHERE "poll source" = 'chicago sun-times'
squall
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...
SELECT zzmzjzjlb.JZLSH FROM hz_info JOIN zzmzjzjlb ON hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX WHERE hz_info.RYBH = '48679933' AND NOT zzmzjzjlb.JZLSH IN (SELECT jybgb.JZLSH FROM jybgb WHERE jybgb.BGRQ >= '2011-03-05') UNION SELECT fzzmzjzjlb.JZLSH FROM hz_info JOI...
css
CREATE TABLE table_204_783 ( id number, "position" text, "player" text, "free agency\ntag" text, "date signed" text, "2013 team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- the only player to sign in july ?
SELECT "player" FROM table_204_783 WHERE "date signed" = 7
squall
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,...
SELECT t_kc22.SOC_SRT_DIRE_NM, t_kc22.AMOUNT, t_kc21.MED_CLINIC_ID 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 = '87141515848' OR t_kc21_t_kc22.MED_CLINIC_ID = '39256573069' AND t_kc2...
css
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.insurance = "Government" AND procedures.short_title = "Allo hem stem ct w/o pur"
mimicsql_data
CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime tim...
SELECT chartevents.charttime 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 = 25965) AND NOT icustays.outtime IS NULL ORDER BY icustays.intime LIMIT 1) AND chartevents.itemid IN (...
mimic_iii
CREATE TABLE table_name_84 ( date VARCHAR, surface VARCHAR, tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the date for hard surface and tournament of fort walton beach
SELECT date FROM table_name_84 WHERE surface = "hard" AND tournament = "fort walton beach"
sql_create_context
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...
SELECT COUNT(*) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '1374154' AND t_kc21.IN_HOSP_DATE BETWEEN '2001-04-01' AND '2006-04-03'
css
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), ...
SELECT EMPLOYEE_ID, SALARY FROM employees AS T1 JOIN departments AS T2 ON T1.DEPARTMENT_ID = T2.DEPARTMENT_ID WHERE T1.EMPLOYEE_ID = T2.MANAGER_ID
nvbench
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 ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, ...
SELECT prescriptions.icustay_id FROM prescriptions WHERE prescriptions.subject_id = "18480"
mimicsql_data
CREATE TABLE table_name_59 ( result VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who one in the Tampa Bay Buccaneers?
SELECT result FROM table_name_59 WHERE opponent = "tampa bay buccaneers"
sql_create_context
CREATE TABLE train_station ( Train_ID int, Station_ID int ) CREATE TABLE station ( Station_ID int, Name text, Annual_entry_exit real, Annual_interchanges real, Total_Passengers real, Location text, Main_Services text, Number_of_Platforms int ) CREATE TABLE train ( Train_ID ...
SELECT Location, SUM(Total_Passengers) FROM station GROUP BY Location ORDER BY Location DESC
nvbench
CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationD...
SELECT COUNT(DISTINCT q.Id) AS "questions", COUNT(DISTINCT q.OwnerUserId) AS "users" FROM Posts AS q JOIN Posts AS a ON q.Id = a.ParentId WHERE q.PostTypeId = 1 AND a.PostTypeId = 2 AND q.ClosedDate IS NULL AND (LEN(a.Body) >= 200 OR (LEN(a.Body) < 200 AND a.Score >= 2)) AND DATEPART(yyyy, q.CreationDate) = 2012 AND a....
sede
CREATE TABLE table_21214 ( "Graphics mode" real, "Char cells" text, "Pixels" text, "Hardware colours" real, "used (KB)" real, "map" text, "Type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If hardware colours is 8 what would the char cell...
SELECT "Char cells" FROM table_21214 WHERE "Hardware colours" = '8'
wikisql
CREATE TABLE transactions_lots ( transaction_id number, lot_id number ) CREATE TABLE sales ( sales_transaction_id number, sales_details text ) CREATE TABLE lots ( lot_id number, investor_id number, lot_details text ) CREATE TABLE ref_transaction_types ( transaction_type_code text, ...
SELECT T2.investor_id, T1.investor_details FROM investors AS T1 JOIN transactions AS T2 ON T1.investor_id = T2.investor_id WHERE T2.transaction_type_code = "SALE" GROUP BY T2.investor_id HAVING COUNT(*) >= 2
spider
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospita...
SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3507' AND NOT patient.hospitaldischargetime IS NULL ORDER BY ...
eicu
CREATE TABLE Has_Allergy ( StuID INTEGER, Allergy VARCHAR(20) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Allergy_Type ( Allergy VARCHAR(20), ...
SELECT Sex, AVG(Age) FROM Student GROUP BY Sex
nvbench
CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_c...
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 WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'LAS VEGAS' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'PHO...
atis
CREATE TABLE table_name_49 ( name VARCHAR, seasons VARCHAR, order VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name for seasons 1981 and an order more than 807?
SELECT name FROM table_name_49 WHERE seasons = "1981" AND order > 807
sql_create_context
CREATE TABLE table_47607 ( "Race" text, "Date" text, "Venue" text, "Winner" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the race for the world championship formula 1 at a venue of hungaroring?
SELECT "Race" FROM table_47607 WHERE "Notes" = 'world championship formula 1' AND "Venue" = 'hungaroring'
wikisql
CREATE TABLE manufacturer ( manufacturer_id VARCHAR, num_of_shops VARCHAR ) CREATE TABLE furniture_manufacte ( manufacturer_id VARCHAR, Price_in_Dollar VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the id and number of shops for the company th...
SELECT t1.manufacturer_id, t1.num_of_shops FROM manufacturer AS t1 JOIN furniture_manufacte AS t2 ON t1.manufacturer_id = t2.manufacturer_id ORDER BY t2.Price_in_Dollar DESC LIMIT 1
sql_create_context
CREATE TABLE table_2556 ( "Number in map" text, "Prefecture" text, "Area (km\u00b2)" text, "Population (2001)" real, "Pop. density (/km\u00b2)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What prefecture is listed in the map as number 39?
SELECT "Prefecture" FROM table_2556 WHERE "Number in map" = '39'
wikisql
CREATE TABLE hz_info ( KH text, KLX number, YLJGDM text, RYBH text ) CREATE TABLE jyjgzbb ( JYZBLSH text, YLJGDM text, BGDH text, BGRQ time, JYRQ time, JCRGH text, JCRXM text, SHRGH text, SHRXM text, JCXMMC text, JCZBDM text, JCFF text, JCZBMC text, ...
SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN 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 = jyjgzbb.YLJGDM AND jybgb.BGDH = jy...
css
CREATE TABLE table_203_148 ( id number, "date" text, "name" text, "nationality" text, "tonnage\n(grt)" number, "fate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the first vessel sunk in may 1940 ?
SELECT "name" FROM table_203_148 WHERE "date" = 1940 AND "date" = 5 ORDER BY "date" LIMIT 1
squall
CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) 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 ) ...
SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 42396 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND prescriptions.drug = 'docusate sodium' ORDER BY prescriptions.startdate L...
mimic_iii
CREATE TABLE table_78231 ( "State" text, "Interview" real, "Swimsuit" real, "Evening Gown" real, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had the lowest interview score from South Dakota with an evening gown less than 8.513?
SELECT MIN("Interview") FROM table_78231 WHERE "State" = 'south dakota' AND "Evening Gown" < '8.513'
wikisql
CREATE TABLE table_71122 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Tyres" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What engine was paired with Minardi m187?
SELECT "Engine" FROM table_71122 WHERE "Chassis" = 'minardi m187'
wikisql
CREATE TABLE table_29475589_5 ( us_original_airdate VARCHAR, _number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the # is 9 what is the U.S original airdate?
SELECT us_original_airdate FROM table_29475589_5 WHERE _number = 9
sql_create_context
CREATE TABLE Staff_Roles ( role_code VARCHAR(10), role_description VARCHAR(255) ) CREATE TABLE Document_Types ( document_type_code VARCHAR(10), document_description VARCHAR(255) ) CREATE TABLE Projects ( project_id INTEGER, organisation_id INTEGER, project_details VARCHAR(255) ) CREATE TA...
SELECT date_from, COUNT(date_from) FROM Project_Staff ORDER BY COUNT(date_from)
nvbench
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 prescriptions ( subject_id text, hadm_id...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.insurance = "Medicaid" AND lab.label = "Hemoglobin"
mimicsql_data
CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time...
SELECT microlab.culturetakentime FROM microlab WHERE microlab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-24513')) AND DATETIME(microlab.culturetakentime, 'start of ye...
eicu
CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE date_day ( month_number int, d...
SELECT DISTINCT airline_code FROM airline
atis
CREATE TABLE table_11734041_11 ( player VARCHAR, height_in_ft VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player had a height of 6-0?
SELECT player FROM table_11734041_11 WHERE height_in_ft = "6-0"
sql_create_context
CREATE TABLE table_1977630_2 ( nosotros___nosotras VARCHAR, él___ella___usted VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are all the conjugated forms of the verb where the el/ ella/usted verb is piense?
SELECT nosotros___nosotras FROM table_1977630_2 WHERE él___ella___usted = "piense"
sql_create_context
CREATE TABLE table_66207 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which method had a 3 rounds, result in a loss and t...
SELECT "Method" FROM table_66207 WHERE "Round" = '3' AND "Res." = 'loss' AND "Event" = 'juiz de fora - fight 1'
wikisql
CREATE TABLE Apartment_Buildings ( building_id INTEGER, building_short_name CHAR(15), building_full_name VARCHAR(80), building_description VARCHAR(255), building_address VARCHAR(255), building_manager VARCHAR(50), building_phone VARCHAR(80) ) CREATE TABLE Guests ( guest_id INTEGER, ...
SELECT apt_number, room_count FROM Apartments ORDER BY apt_number DESC
nvbench
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, ...
SELECT zyjybgb.JZLSH FROM zyjybgb WHERE zyjybgb.BGDH = '94662964160' UNION SELECT mzjybgb.JZLSH FROM mzjybgb WHERE mzjybgb.BGDH = '94662964160'
css
CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE Tags ( Id number, TagName text, Count num...
SELECT p.Id AS id, p.Score AS score, p.Title AS title, p.CreationDate AS creation_date, p.ClosedDate AS closed_date, p.AnswerCount AS answer_count, p.ViewCount AS view_count, p.Tags AS tags, p.CommentCount AS comment_count FROM Posts AS p JOIN Users AS u ON u.Id = p.OwnerUserId JOIN PostTypes AS ty ON ty.Id = p.PostTyp...
sede
CREATE TABLE table_16689920_1 ( track VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- At 1:48.16 what was the number of track time?
SELECT COUNT(track) FROM table_16689920_1 WHERE time = "1:48.16"
sql_create_context
CREATE TABLE table_44937 ( "Game" real, "Date" text, "Team" text, "Score" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Record, when Date is '...
SELECT "Record" FROM table_44937 WHERE "Date" = 'december 30'
wikisql
CREATE TABLE table_14460085_3 ( points VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points total for san lorenzo?
SELECT COUNT(points) FROM table_14460085_3 WHERE team = "San Lorenzo"
sql_create_context