instruction
stringlengths
151
7.46k
output
stringlengths
2
4.44k
source
stringclasses
26 values
CREATE TABLE t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_ID number ) 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 ...
SELECT t_kc21.MED_AMOUT FROM t_kc21 WHERE t_kc21.MED_CLINIC_ID = '89101528963'
css
CREATE TABLE region ( region_id number, region_code text, region_name text ) CREATE TABLE storm ( storm_id number, name text, dates_active text, max_speed number, damage_millions_usd number, number_deaths number ) CREATE TABLE affected_region ( region_id number, storm_id nu...
SELECT name, dates_active, number_deaths FROM storm WHERE number_deaths >= 1
spider
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 MED_CLINIC_ID FROM t_kc21 WHERE PERSON_ID = '74604701' AND MED_SER_ORG_NO = '0359926' AND OUT_DIAG_DIS_NM LIKE '%使用%'
css
CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE dual_carrier ( main_airline varchar,...
SELECT DISTINCT food_service.compartment, food_service.meal_code, food_service.meal_number 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_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'DENVER' AND CITY...
atis
CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arriv...
SELECT DISTINCT aircraft.aircraft_code FROM aircraft, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, equipment_sequence, flight WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND flight.departure_time < 1800 AND flight....
atis
CREATE TABLE table_33534 ( "Network" text, "Origin of Programming" text, "Language" text, "Genre" text, "Service" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which service has a hindi language, general genre and zee tv network?
SELECT "Service" FROM table_33534 WHERE "Language" = 'hindi' AND "Genre" = 'general' AND "Network" = 'zee tv'
wikisql
CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE SuggestedEditVotes ( ...
SELECT COUNT(*) FROM (SELECT TagName FROM Badges INNER JOIN Tags ON TagName = Badges.Name WHERE TagBased = 'true' GROUP BY TagName) AS tagbadges
sede
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.JCZBMC, jyjgzbb.JCZBJGDW, AVG(jyjgzbb.JCZBJGDL) FROM jyjgzbb JOIN jybgb_jyjgzbb JOIN jybgb ON jybgb_jyjgzbb.JYZBLSH = jyjgzbb.JYZBLSH AND jybgb_jyjgzbb.jyjgzbb_id = jyjgzbb.jyjgzbb_id AND jybgb_jyjgzbb.YLJGDM = jybgb.YLJGDM WHERE jybgb.YLJGDM = '3425088' AND jyjgzbb.BGRQ BETWEEN '2001-09-12' AND '2013-10...
css
CREATE TABLE mzb ( CLINIC_ID text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, INSU_TYPE text, IN...
SELECT COUNT(*) FROM qtb JOIN t_kc22 ON qtb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE qtb.MED_SER_ORG_NO = '5664551' AND t_kc22.SOC_SRT_DIRE_NM = '叶酸片' UNION SELECT COUNT(*) FROM gyb JOIN t_kc22 ON gyb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gyb.MED_SER_ORG_NO = '5664551' AND t_kc22.SOC_SRT_DIRE_NM = '叶酸片' UNION SE...
css
CREATE TABLE table_174151_5 ( devices_per_channel VARCHAR, raw_bandwidth__mbit_s_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the devices per channel for 2560
SELECT devices_per_channel FROM table_174151_5 WHERE raw_bandwidth__mbit_s_ = 2560
sql_create_context
CREATE TABLE table_11308 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the away team for home team of fitzroy
SELECT "Away team" FROM table_11308 WHERE "Home team" = 'fitzroy'
wikisql
CREATE TABLE employee ( eid number, name text, salary number ) CREATE TABLE certificate ( eid number, aid number ) CREATE TABLE flight ( flno number, origin text, destination text, distance number, departure_date time, arrival_date time, price number, aid number ) ...
SELECT AVG(salary), MAX(salary) FROM employee
spider
CREATE TABLE table_62647 ( "Region" text, "Date" text, "Format(s)" text, "Edition(s)" text, "Label" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Label of the September 19, 2008 release in Germany?
SELECT "Label" FROM table_62647 WHERE "Date" = 'september 19, 2008' AND "Region" = 'germany'
wikisql
CREATE TABLE table_name_26 ( tournament VARCHAR, year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What tournament has a year prior to 2001?
SELECT tournament FROM table_name_26 WHERE year < 2001
sql_create_context
CREATE TABLE table_name_9 ( home_team VARCHAR, away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which home team had the away team Southport?
SELECT home_team FROM table_name_9 WHERE away_team = "southport"
sql_create_context
CREATE TABLE table_56466 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date was Carlos Boozer (23) the leading scorer?
SELECT "Date" FROM table_56466 WHERE "Leading scorer" = 'carlos boozer (23)'
wikisql
CREATE TABLE table_28646 ( "Rank" real, "Couple" text, "Judges" real, "Public" real, "Total" real, "Vote percentage" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the rank for mikey and melanie
SELECT "Rank" FROM table_28646 WHERE "Couple" = 'Mikey and Melanie'
wikisql
CREATE TABLE table_65980 ( "Rank" real, "Artist" text, "Album" text, "Peak position" real, "Sales" real, "Certification" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which artist had a 4x platinum?
SELECT "Artist" FROM table_65980 WHERE "Certification" = '4x platinum'
wikisql
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) -- Using valid SQLite, answer the following questions for the...
SELECT Name, AVG(Price) FROM Products GROUP BY Name ORDER BY AVG(Price) DESC
nvbench
CREATE TABLE table_48217 ( "Province" text, "Map #" real, "ISO 3166-2:AF" text, "Centers" text, "Population" real, "Area (km\u00b2)" real, "Language" text, "Notes" text, "U.N. Region" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wh...
SELECT "Province" FROM table_48217 WHERE "Centers" = 'parun'
wikisql
CREATE TABLE table_22902 ( "Series No." real, "Season No." real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.K. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different origin...
SELECT COUNT("Original air date") FROM table_22902 WHERE "Series No." = '13'
wikisql
CREATE TABLE table_68416 ( "Vol." text, "English title" text, "Japanese title" text, "Release date (Japan)" text, "Sony Catalog No." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the English title of ?
SELECT "English title" FROM table_68416 WHERE "Japanese title" = '餓狼伝説バトルアーカイブズ2'
wikisql
CREATE TABLE table_32513 ( "Total tenure rank" real, "Uninterrupted rank" real, "Name" text, "State represented" text, "Total tenure time" text, "Uninterrupted time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total tenure time of...
SELECT "Total tenure time" FROM table_32513 WHERE "Uninterrupted rank" > '4' AND "Total tenure rank" > '9' AND "Name" = 'warren magnuson'
wikisql
CREATE TABLE table_3964 ( "Operator" text, "Number purchased" real, "Variant" text, "Bodybuilder" text, "Year(s) purchased" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the bodybuilder when Coventry was operating?
SELECT "Bodybuilder" FROM table_3964 WHERE "Operator" = 'Coventry'
wikisql
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT diagnoses.long_title FROM diagnoses WHERE diagnoses.icd9_code = "920"
mimicsql_data
CREATE TABLE table_27432 ( "Name" text, "#" real, "Position" text, "Height" text, "Weight" real, "Year" text, "Former school" text, "Hometown" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the former schools of the player from...
SELECT "Former school" FROM table_27432 WHERE "Hometown" = 'East Brunswick, NJ'
wikisql
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 mzjzjlb ( HXPLC number, HZXM ...
SELECT jybgb.SHRGH, jybgb.SHRXM FROM jybgb WHERE jybgb.JZLSH = '37475427497'
css
CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE admis...
SELECT prescriptions.dose_val_rx FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 31169) AND prescriptions.drug = 'pantoprazole' AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-15 month') ORDER BY prescriptions.startdate LIMIT...
mimic_iii
CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) CREATE TABLE mzjybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH number, BGJGDM text, BGJGMC text, BGRGH text, BGRQ time, BGRXM text, BGSJ time, CJRQ time, JSBBRQSJ time, ...
SELECT zyjybgb.SHSJ FROM person_info JOIN hz_info JOIN mzjzjlb JOIN zyjybgb 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 = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB WHERE person_info.XM = '陶展鹏' ...
css
CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE icustays ( row_id number, subj...
SELECT MIN(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 = 3229)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'heart...
mimic_iii
CREATE TABLE table_63112 ( "Season" text, "LeagueContested" text, "Level" real, "LeaguePosition" text, "Avg.Home Attendance 1" text, "FA Cup" text, "FA Trophy" text, "Leading scorer 1" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which...
SELECT "Level" FROM table_63112 WHERE "Leading scorer 1" = 'tom greaves 8'
wikisql
CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, ...
SELECT COUNT(*) = 0 FROM course INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN offering_instructor ON offering_instructor.offering_id = course_offering.offering_id INNER JOIN instructor ON offering_instructor.instructor_id = instructor.instructor_id WHERE course.number = 941 AND c...
advising
CREATE TABLE table_name_51 ( attendance VARCHAR, week VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the total attendance of games against the New York Giants after week 13?
SELECT COUNT(attendance) FROM table_name_51 WHERE week > 13 AND opponent = "new york giants"
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 gwyjzb.MED_CLINIC_ID FROM gwyjzb WHERE gwyjzb.PERSON_ID = '32284795' AND NOT gwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT <= 1441.3) UNION SELECT fgwyjzb.MED_CLINIC_ID FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '32284795' AND NOT fgwyjzb.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLI...
css
CREATE TABLE table_name_68 ( team VARCHAR, race_1 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team received 4 in race 1?
SELECT team FROM table_name_68 WHERE race_1 = "4"
sql_create_context
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT demographic.admittime, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "74032"
mimicsql_data
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 diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime ti...
SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT outputevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM outputevents WHERE STRFTIME('%y', outputevents.charttime) = '2105' GROUP BY outputevents.itemid) AS t1 WHERE t1.c1 <= 4)
mimic_iii
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE pr...
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t1.icd9_code FROM (SELECT procedures_icd.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.age >...
mimic_iii
CREATE TABLE table_9073 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which date has a Result of l 25-13?
SELECT "Date" FROM table_9073 WHERE "Result" = 'l 25-13'
wikisql
CREATE TABLE zyb ( CLINIC_ID text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, INSU_TYPE text, IN...
SELECT qtb.MED_ORG_DEPT_NM, qtb.IN_DIAG_DIS_NM, AVG(qtb.PERSON_AGE) FROM qtb WHERE qtb.MED_SER_ORG_NO = '5349528' GROUP BY qtb.MED_ORG_DEPT_NM, qtb.IN_DIAG_DIS_NM UNION SELECT gyb.MED_ORG_DEPT_NM, gyb.IN_DIAG_DIS_NM, AVG(gyb.PERSON_AGE) FROM gyb WHERE gyb.MED_SER_ORG_NO = '5349528' GROUP BY gyb.MED_ORG_DEPT_NM, gyb.IN_...
css
CREATE TABLE table_20683381_3 ( against___percentage_ VARCHAR, ±_yes_side_2008___percentage_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When +18.1 is the yes side 2008 percentage what is the percentage of against?
SELECT against___percentage_ FROM table_20683381_3 WHERE ±_yes_side_2008___percentage_ = "+18.1"
sql_create_context
CREATE TABLE table_68445 ( "Need" text, "Being (qualities)" text, "Having (things)" text, "Doing (actions)" text, "Interacting (settings)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the being for having things of language, religions, work, ...
SELECT "Being (qualities)" FROM table_68445 WHERE "Having (things)" = 'language, religions, work, customs, values, norms'
wikisql
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...
SELECT (SELECT patient.admissionweight FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-123134' AND patient.hospitaldischargetime IS NULL) AND NOT patient.admissionweight IS NULL ORDER BY patient.unitadmittime LIMIT 1 OFFSET 1)...
eicu
CREATE TABLE Ref_Hotel_Star_Ratings ( star_rating_code CHAR(15), star_rating_description VARCHAR(80) ) CREATE TABLE Shops ( Shop_ID INTEGER, Shop_Details VARCHAR(255) ) CREATE TABLE Staff ( Staff_ID INTEGER, Tourist_Attraction_ID INTEGER, Name VARCHAR(40), Other_Details VARCHAR(255) ) ...
SELECT Name, COUNT(*) FROM Tourist_Attractions AS T1 JOIN Visits AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID ORDER BY COUNT(*)
nvbench
CREATE TABLE table_15352382_1 ( against VARCHAR, difference VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many under the category of Against have a Difference of 11
SELECT COUNT(against) FROM table_15352382_1 WHERE difference = 11
sql_create_context
CREATE TABLE hz_info_mzjzjlb ( JZLSH number, YLJGDM number, mzjzjlb_id number ) 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 ...
SELECT * 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 = '56017266' AND hz_info.YLJGDM = '9235653' AND zyjzjlb.JZKSMC LIKE '%角膜%'
css
CREATE TABLE t_kc22 ( MED_EXP_DET_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, MED_EXP_BILL_ID text, SOC_SRT_DIRE_CD text, SOC_SRT_DIRE_NM text, DIRE_TYPE number, CHA_ITEM_LEV number, MED_INV_ITEM_TYPE text, MED_DIRE_CD text, MED_DIRE_NM text,...
SELECT SOC_SRT_DIRE_CD, SOC_SRT_DIRE_NM, AMOUNT FROM t_kc22 WHERE MED_CLINIC_ID = '89912914191' AND NOT SOC_SRT_DIRE_NM LIKE '%舒肝%'
css
CREATE TABLE table_name_33 ( latin VARCHAR, english VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Latin word for the English word bone?
SELECT latin FROM table_name_33 WHERE english = "bone"
sql_create_context
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 COUNT(*) FROM t_kc21 WHERE PERSON_NM = '奚子默' AND IN_HOSP_DATE BETWEEN '2001-09-21' AND '2009-02-26' AND CLINIC_TYPE = '住院'
css
CREATE TABLE table_name_22 ( attendance INTEGER, round VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the sum of attendance for round 3
SELECT SUM(attendance) FROM table_name_22 WHERE round = "round 3"
sql_create_context
CREATE TABLE table_name_39 ( record VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record of the game with the toronto huskies as the opponent?
SELECT record FROM table_name_39 WHERE opponent = "toronto huskies"
sql_create_context
CREATE TABLE mzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH text, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM text, MZZYZDZZMC ...
SELECT * FROM jyjgzbb WHERE jyjgzbb.JCZBMC = (SELECT jyjgzbb.JCZBMC FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '22668273085') AND jyjgzbb.JCZBJGDW = (SELECT jyjgzbb.JCZBJGDW FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '22668273085') AND jyjgzbb.JCZBJGDL > (SELECT jyjgzbb.JCZBJGDL FROM jyjgzbb WHERE jyjgzbb.JYZBLSH = '22668273085')
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 demographic.diagnosis, demographic.admittime FROM demographic WHERE demographic.name = "Richard Gundlach"
mimicsql_data
CREATE TABLE table_75744 ( "Name" text, "Builder" text, "Laid down" text, "Launched" text, "Completed" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did chatham complete the Hmsmedusa?
SELECT "Completed" FROM table_75744 WHERE "Builder" = 'chatham' AND "Name" = 'hmsmedusa'
wikisql
CREATE TABLE table_16961 ( "Date" text, "Tournament" text, "Location" text, "Purse( $ )" real, "Winner" text, "Score" text, "1st Prize( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the Fairfield Barnett classic tournament he...
SELECT "Location" FROM table_16961 WHERE "Tournament" = 'Fairfield Barnett Classic'
wikisql
CREATE TABLE table_name_41 ( record VARCHAR, round VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the record when the round is before 3 and the time si 4:59?
SELECT record FROM table_name_41 WHERE round < 3 AND time = "4:59"
sql_create_context
CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGui...
SELECT *, 'site://posts/' + CAST(PostId AS TEXT) + '/revisions' AS Link FROM Votes WHERE VoteTypeId = 4 ORDER BY Id DESC
sede
CREATE TABLE table_28759261_5 ( dadar_xi_‘b’ VARCHAR, good_shepherd VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the dadar xi b where the good shepherd is sea liner fc?
SELECT dadar_xi_‘b’ FROM table_28759261_5 WHERE good_shepherd = "Sea Liner FC"
sql_create_context
CREATE TABLE zyjzjlb ( YLJGDM text, JZLSH text, MZJZLSH text, KH text, KLX number, HZXM text, WDBZ number, RYDJSJ time, RYTJDM number, RYTJMC text, JZKSDM text, JZKSMC text, RZBQDM text, RZBQMC text, RYCWH text, CYKSDM text, CYKSMC text, CYBQDM tex...
SELECT COUNT(DISTINCT mzjzjlb.ZZYSGH) 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.RYBH = '23946092' AND mzjzjlb.JZKSRQ BETWEEN '2002-09-18' AND '2018-10-31'
css
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 ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.long_title = "Aortography"
mimicsql_data
CREATE TABLE table_name_73 ( position VARCHAR, school_club_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the position from the school/club Far Eastern?
SELECT position FROM table_name_73 WHERE school_club_team = "far eastern"
sql_create_context
CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_nam...
SELECT COUNT(*) > 0 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 = 4401) AND icustays.outtime IS NULL) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHE...
mimic_iii
CREATE TABLE table_49614 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much did Larry Nelson win?
SELECT "Money ( $ )" FROM table_49614 WHERE "Player" = 'larry nelson'
wikisql
CREATE TABLE table_name_79 ( evening_gown VARCHAR, preliminaries VARCHAR, state VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the evening gown score of the contestant from the District of Columbia with preliminaries smaller than 8.647?
SELECT COUNT(evening_gown) FROM table_name_79 WHERE preliminaries < 8.647 AND state = "district of columbia"
sql_create_context
CREATE TABLE table_name_73 ( tournament VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Tournament has a Score of 6(4) 7 2 6?
SELECT tournament FROM table_name_73 WHERE score = "6(4)–7 2–6"
sql_create_context
CREATE TABLE table_name_25 ( school_club_team VARCHAR, player VARCHAR, pick VARCHAR, round VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which school/club has a pick smaller than 196, a round higher than 5 and has Blake Miller?
SELECT school_club_team FROM table_name_25 WHERE pick < 196 AND round > 5 AND player = "blake miller"
sql_create_context
CREATE TABLE table_77883 ( "Race" text, "Circuit" text, "Date" text, "Pole position" text, "Fastest lap" text, "Winning driver" text, "Constructor" text, "Tyre" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What circu...
SELECT "Circuit" FROM table_77883 WHERE "Race" = 'british grand prix'
wikisql
CREATE TABLE table_49721 ( "Date" text, "Opponent" text, "Result" text, "Score" text, "Record" text, "Location" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the game showing a final record of 0-5, what was the attend...
SELECT "Attendance" FROM table_49721 WHERE "Record" = '0-5'
wikisql
CREATE TABLE table_name_49 ( city VARCHAR, opposition VARCHAR, year VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which city held the game in Old Trafford before 1907 when the Opposition was sussex?
SELECT city FROM table_name_49 WHERE year < 1907 AND venue = "old trafford" AND opposition = "sussex"
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 (SELECT qtb.MED_ORG_DEPT_CD FROM qtb JOIN t_kc24 ON qtb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE qtb.MED_SER_ORG_NO = '1521051' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2010-02-07' AND '2014-05-21' GROUP BY qtb.MED_ORG_DEPT_CD HAVING SUM(t_kc24.MED_AMOUT) > 1941.65 UNION SELECT gyb.MED_ORG_DEPT_CD FRO...
css
CREATE TABLE table_name_85 ( silver VARCHAR, total VARCHAR, bronze VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total silver when total is 30 and bronze is more than 10?
SELECT COUNT(silver) FROM table_name_85 WHERE total = 30 AND bronze > 10
sql_create_context
CREATE TABLE table_203_504 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many games were classified friendly competition...
SELECT COUNT(*) FROM table_203_504 WHERE "competition" = 'friendly'
squall
CREATE TABLE table_15926991_1 ( winner_2nd VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which horse won with a time of 1:35.98 and what was their position?
SELECT winner_2nd FROM table_15926991_1 WHERE time = "1:35.98"
sql_create_context
CREATE TABLE table_61247 ( "Week 1" text, "Week 2" text, "Week 3" text, "Week 4" text, "Week 5" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the girl on week 5 that came after week 3's Shelly Louise?
SELECT "Week 5" FROM table_61247 WHERE "Week 3" = 'shelly louise'
wikisql
CREATE TABLE table_204_47 ( id number, "outcome" text, "no." number, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- was there more clay surface...
SELECT (SELECT COUNT(*) FROM table_204_47 WHERE "surface" = 'clay') > (SELECT COUNT(*) FROM table_204_47 WHERE "surface" = 'hard')
squall
CREATE TABLE Invoice_Items ( Invoice_Item_ID INTEGER, Invoice_ID INTEGER, Order_ID INTEGER, Order_Item_ID INTEGER, Product_ID INTEGER, Order_Quantity INTEGER, Other_Item_Details VARCHAR(255) ) CREATE TABLE Marketing_Regions ( Marketing_Region_Code CHAR(15), Marketing_Region_Name VAR...
SELECT payment_method_code, COUNT(*) FROM Invoices GROUP BY payment_method_code ORDER BY COUNT(*)
nvbench
CREATE TABLE table_28138035_33 ( mens_doubles VARCHAR, mens_singles VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times has Ma Long won the men's singles?
SELECT COUNT(mens_doubles) FROM table_28138035_33 WHERE mens_singles = "Ma Long"
sql_create_context
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 JYKSBM, JYKSMC FROM jybgb WHERE JZLSH = '10463927138'
css
CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, ...
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 = '006-2586')) AND intakeoutput.cellpath LIKE '%intake%' AND intakeoutput.cel...
eicu
CREATE TABLE table_name_45 ( bandwidth_included VARCHAR, price VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Bandwidth Included, when Price is '50 EUR'?
SELECT bandwidth_included FROM table_name_45 WHERE price = "50 eur"
sql_create_context
CREATE TABLE table_name_92 ( constructor VARCHAR, rounds VARCHAR, driver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who constructed Gerhard Berger car that went all rounds?
SELECT constructor FROM table_name_92 WHERE rounds = "all" AND driver = "gerhard berger"
sql_create_context
CREATE TABLE basketball_match ( team_id number, school_id number, team_name text, acc_regular_season text, acc_percent text, acc_home text, acc_road text, all_games text, all_games_percent number, all_home text, all_road text, all_neutral text ) CREATE TABLE university (...
SELECT SUM(enrollment), MIN(enrollment) FROM university
spider
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...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "URGENT" AND lab.label = "Glucose, Body Fluid"
mimicsql_data
CREATE TABLE table_204_291 ( id number, "rank" number, "name" text, "nation" text, "cp" number, "fp" number, "points" number, "placings" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which woman finished first in the 1971 world figure...
SELECT "name" FROM table_204_291 WHERE "rank" = 1
squall
CREATE TABLE ship ( Ship_ID int, Name text, Type text, Nationality text, Tonnage int ) CREATE TABLE mission ( Mission_ID int, Ship_ID int, Code text, Launched_Year int, Location text, Speed_knots int, Fate text ) -- Using valid SQLite, answer the following questions fo...
SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Nationality
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 demographic ( subject_id text, hadm_id t...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.dod_year <= "2126.0" AND procedures.long_title = "(Aorto)coronary bypass of two coronary arteries"
mimicsql_data
CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) C...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.discharge_location = "DISC-TRAN CANCER/CHLDRN H" AND procedures.icd9_code = "9390"
mimicsql_data
CREATE TABLE table_name_58 ( first_leg VARCHAR, opposition VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the first leg score in the match against Twente?
SELECT first_leg FROM table_name_58 WHERE opposition = "twente"
sql_create_context
CREATE TABLE table_name_91 ( wins INTEGER, cuts_made VARCHAR, top_10 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average wins with 5 cuts and 1 in the top-10?
SELECT AVG(wins) FROM table_name_91 WHERE cuts_made = 5 AND top_10 = 1
sql_create_context
CREATE TABLE Apartment_Facilities ( apt_id INTEGER, facility_code CHAR(15) ) CREATE TABLE Apartment_Bookings ( apt_booking_id INTEGER, apt_id INTEGER, guest_id INTEGER, booking_status_code CHAR(15), booking_start_date DATETIME, booking_end_date DATETIME ) CREATE TABLE Apartments ( ...
SELECT booking_start_date, COUNT(booking_start_date) FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id WHERE T2.gender_code = "Female"
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 DIRE_TYPE FROM t_kc22 WHERE MED_CLINIC_ID = '05582791794' AND SOC_SRT_DIRE_CD = '764550972-i'
css
CREATE TABLE table_21732 ( "Class" text, "Part 1" text, "Part 2" text, "Part 3" text, "Part 4" text, "Verb meaning" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the class for boten
SELECT "Class" FROM table_21732 WHERE "Part 3" = 'boten'
wikisql
CREATE TABLE table_203_804 ( id number, "pos" text, "no" number, "driver" text, "constructor" text, "laps" number, "time/retired" text, "grid" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many drivers had a total of 58 laps or mo...
SELECT COUNT("driver") FROM table_203_804 WHERE "laps" >= 58
squall
CREATE TABLE table_name_72 ( december VARCHAR, november VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the December playmate with a November playmate Marlene Janssen?
SELECT december FROM table_name_72 WHERE november = "marlene janssen"
sql_create_context
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) -- Using valid SQLite, answer the following questions for the...
SELECT Name, COUNT(Name) FROM Products WHERE Price <= 200 GROUP BY Name ORDER BY Name DESC
nvbench
CREATE TABLE table_name_61 ( married_filing_jointly_or_qualified_widow_er_ VARCHAR, head_of_household VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the married filing jointly or qualified widow(er) with head of household being $117,451 $190,200
SELECT married_filing_jointly_or_qualified_widow_er_ FROM table_name_61 WHERE head_of_household = "$117,451–$190,200"
sql_create_context
CREATE TABLE table_name_69 ( away_team VARCHAR, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What did the away team score in the game against Richmond?
SELECT away_team AS score FROM table_name_69 WHERE home_team = "richmond"
sql_create_context
CREATE TABLE table_22870 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the first year she played in the french open?
SELECT MIN("Year") FROM table_22870 WHERE "Championship" = 'French Open'
wikisql
CREATE TABLE t_kc22 ( AMOUNT number, CHA_ITEM_LEV number, DATA_ID text, DIRE_TYPE number, DOSE_FORM text, DOSE_UNIT text, EACH_DOSAGE text, EXP_OCC_DATE time, FLX_MED_ORG_ID text, FXBZ number, HOSP_DOC_CD text, HOSP_DOC_NM text, MED_CLINIC_ID text, MED_DIRE_CD tex...
SELECT COUNT(gwyjzb.MED_SER_ORG_NO) FROM gwyjzb WHERE gwyjzb.PERSON_ID = '35830097' AND gwyjzb.IN_HOSP_DATE BETWEEN '2010-05-05' AND '2011-01-04' UNION SELECT COUNT(fgwyjzb.MED_SER_ORG_NO) FROM fgwyjzb WHERE fgwyjzb.PERSON_ID = '35830097' AND fgwyjzb.IN_HOSP_DATE BETWEEN '2010-05-05' AND '2011-01-04'
css
CREATE TABLE table_name_65 ( total VARCHAR, to_par VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much total has a To par of +9?
SELECT COUNT(total) FROM table_name_65 WHERE to_par = "+9"
sql_create_context