text
stringlengths
197
8.39k
### Context: CREATE TABLE table_23583 ( "Title" text, "Author" text, "Reader" text, "Format" text, "Company" text, "Release Date" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many formats of books authored by day, martin ...
### Context: CREATE TABLE table_train_242 ( "id" int, "macroalbuminuria" bool, "hyperlipidemia" bool, "fasting_serum_triglycerides" int, "fasting_ldl_cholesterol" int, "panel_reactive_antibodies" int, "serum_creatinine" float, "albumin" float, "body_mass_index_bmi" float, "fastin...
### Context: CREATE TABLE table_26210 ( "Outcome" text, "Year" real, "Championship" text, "Partnering" text, "Opponents in Final" text, "Score in Final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score in the final in 1988? ###...
### Context: CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, ...
### 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, JYZBL...
### Context: CREATE TABLE table_25744 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Opponent in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score in the final when Mats...
### Context: CREATE TABLE table_name_55 ( pick INTEGER, new_team VARCHAR, round VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the biggest pick number for the new team of Texas Rangers, in the compensation-a round? ### Query: SELECT MAX(pick) F...
### Context: CREATE TABLE table_name_98 ( country VARCHAR, film VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which country made Le Portefeuille? ### Query: SELECT country FROM table_name_98 WHERE film = "le portefeuille"
### Context: CREATE TABLE table_45248 ( "Name" text, "Pinnacle height" text, "Structure type" text, "Main use" text, "Country" text, "Town" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What type of structure is there at the American Tower Chri...
### Context: CREATE TABLE t_kc24 ( ACCOUNT_DASH_DATE time, ACCOUNT_DASH_FLG number, CASH_PAY number, CIVIL_SUBSIDY number, CKC102 number, CLINIC_ID text, CLINIC_SLT_DATE time, COMP_ID text, COM_ACC_PAY number, COM_PAY number, DATA_ID text, ENT_ACC_PAY number, ENT_PAY ...
### Context: CREATE TABLE table_50279 ( "Type" text, "Name" text, "Title" text, "Royal house" text, "From" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What title was used in 1911 bc? ### Query: SELECT "Title" FROM table_50279 WHERE "From" = '191...
### Context: CREATE TABLE table_40524 ( "Match No." text, "Home Team" text, "Score" text, "Away Team" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the away team of match 9? ### Query: SELECT "Away Team" FROM table_40524...
### Context: CREATE TABLE table_name_75 ( attendance INTEGER, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Attendances on may 24? ### Query: SELECT MIN(attendance) FROM table_name_75 WHERE date = "may 24"
### Context: CREATE TABLE table_48628 ( "Team" text, "Head coach" text, "Team captain" text, "Kitmaker" text, "Shirt sponsor" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the shirt sponsor of the team Andreas Wolf is the captain of? ### Qu...
### Context: CREATE TABLE table_22128871_1 ( english_title VARCHAR, result VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every English title for the result of nominee? ### Query: SELECT english_title FROM table_22128871_1 WHERE result = "Nominee"
### Context: CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), ...
### Context: CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TA...
### Context: CREATE TABLE player_college ( player_id VARCHAR, college_id VARCHAR ) CREATE TABLE player ( height INTEGER, player_id VARCHAR ) CREATE TABLE college ( college_id VARCHAR, name_full VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
### Context: CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmitti...
### Context: CREATE TABLE table_name_68 ( score VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Score, when Player is 'Brad Faxon'? ### Query: SELECT score FROM table_name_68 WHERE player = "brad faxon"
### Context: CREATE TABLE table_name_52 ( round INTEGER, pick__number VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Round is the average one that has a Pick # larger than 26, and a Position of defensive back? ### Query: SELECT A...
### Context: CREATE TABLE table_name_7 ( points VARCHAR, performer VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Points has a Performer of rob burke band? ### Query: SELECT COUNT(points) FROM table_name_7 WHERE performer = "rob burke band"
### Context: CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int,...
### Context: CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, val...
### 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, ME...
### Context: CREATE TABLE table_203_345 ( id number, "name" text, "party" text, "took office" number, "left office" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of conservative representatives listed ? ### Query: SELECT COUNT...
### Context: CREATE TABLE time_interval ( period text, begin_time int, end_time int ) 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, depa...
### Context: 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, ...
### Context: CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number )...
### Context: CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE diagnos...
### Context: CREATE TABLE status ( station_id INTEGER, bikes_available INTEGER, docks_available INTEGER, time TEXT ) CREATE TABLE station ( id INTEGER, name TEXT, lat NUMERIC, long NUMERIC, dock_count INTEGER, city TEXT, installation_date TEXT ) CREATE TABLE trip ( id I...
### 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, INSURE...
### Context: CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE semester ( semester_id int, semester varchar, ...
### Context: CREATE TABLE table_1818471_1 ( afinsa VARCHAR, value VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different numbers for Afinsa when value is 5p? ### Query: SELECT COUNT(afinsa) FROM table_1818471_1 WHERE value = "5P"
### Context: CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, ...
### 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, admissi...
### Context: CREATE TABLE table_20166 ( "No. in series" text, "No. in season" text, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name w...
### Context: CREATE TABLE table_14613 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many laps did Duke Nelson complete when his qualifying time was 122.951? ### Q...
### Context: CREATE TABLE table_76326 ( "Episode" text, "First broadcast" text, "Graeme's guest" text, "Jeremy's guest" text, "Votes (%)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Episode, when Jeremy's Guest is 'Pauline McLynn'? ### Q...
### Context: CREATE TABLE table_name_2 ( population__2007_ VARCHAR, population__2010_ INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE POPULATION OF 2007 WHEN 2010 POPULATION WAS SMALLER THAN 1282? ### Query: SELECT COUNT(population__2007_) FROM t...
### 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 ques...
### Context: CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE admissions ( row_id number, subject_i...
### Context: CREATE TABLE city ( city_id number, county_id number, name text, white number, black number, amerindian number, asian number, multiracial number, hispanic number ) CREATE TABLE county_public_safety ( county_id number, name text, population number, police...
### Context: CREATE TABLE table_name_43 ( team_1 VARCHAR, team_2 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the team 1 with team 2 Mount Cameroon FC? ### Query: SELECT team_1 FROM table_name_43 WHERE team_2 = "mount cameroon fc"
### Context: CREATE TABLE table_name_43 ( crowd VARCHAR, away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people were in the crowd when Carlton was the away team? ### Query: SELECT COUNT(crowd) FROM table_name_43 WHERE away_team = "carlton"
### Context: CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE lab ( labid n...
### Context: CREATE TABLE student ( fname VARCHAR, city_code VARCHAR, age VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the first name of students living in city PHL whose age is between 20 and 25. ### Query: SELECT fname FROM student WHERE city_c...
### Context: CREATE TABLE table_65466 ( "Model" text, "Years" text, "Type/code" text, "Power@rpm" text, "Torque@rpm" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name Model which has a Years of 2006 2008 and a Torque@rpm of n m (lb ft) @1900 3500?...
### 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 ...
### 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 te...
### Context: CREATE TABLE table_70274 ( "Episode #" real, "Title" text, "Airdate" text, "Viewers (millions)" real, "Channel 4 weekly rank a" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Channel 4 weekly rank for less than 2.19 ...
### Context: CREATE TABLE table_name_56 ( planet VARCHAR, radial_velocity__m_s_ INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What type of planet has a radial velocity of 45.2 m/s? ### Query: SELECT planet AS Type FROM table_name_56 WHERE radial_velocity__...
### 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, admissi...
### Context: CREATE TABLE table_19753079_41 ( party VARCHAR, candidates VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When mark critz (d) 50.8% tim burns (r) 49.2% are the candidates what is the party? ### Query: SELECT party FROM table_19753079_41 WHERE c...
### Context: CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE Posts ( Id number, PostTypeId number, A...
### Context: CREATE TABLE table_24325 ( "Season" real, "Episode" real, "Episode Summary" text, "Premier date" text, "External Link" text, "Coach" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of external links with a coach na...
### Context: CREATE TABLE table_80265 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Pts." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which entrant has 4 points and BRM p25 for the Chassis? ### Query: SELECT "Entrant" FROM table...
### Context: CREATE TABLE table_name_94 ( state VARCHAR, title VARCHAR, royal_house VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What state had a title of duke for the royal house of ji? ### Query: SELECT state FROM table_name_94 WHERE title = "duke" ...
### Context: CREATE TABLE table_16370 ( "No. in series" real, "No. in season" real, "Title" text, "Director" text, "Writer(s)" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the number...
### Context: CREATE TABLE paperfield ( fieldid int, paperid int ) CREATE TABLE field ( fieldid int ) CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE writes ( paperid int, authorid int ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE pap...
### Context: CREATE TABLE table_name_57 ( total VARCHAR, year_s__won VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In 1997, what was the final total? ### Query: SELECT total FROM table_name_57 WHERE year_s__won = "1997"
### Context: CREATE TABLE WINE ( Name VARCHAR, Grape VARCHAR, price VARCHAR ) CREATE TABLE Grapes ( Grape VARCHAR, Color VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the wines that have prices higher than 50 and made of Red color grap...
### Context: CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age numb...
### Context: 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...
### Context: CREATE TABLE table_74124 ( "Game" real, "December" real, "Opponent" text, "Score" text, "Decision" text, "Location/Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the score for 29 game ### Query: ...
### 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 )...
### Context: CREATE TABLE table_name_32 ( location_attendance VARCHAR, game INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Location Attendance has a Game larger than 5? ### Query: SELECT location_attendance FROM table_name_32 WHERE game > 5
### Context: CREATE TABLE table_19210674_1 ( finale VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the finale number ranked at number 7? ### Query: SELECT finale FROM table_19210674_1 WHERE rank = 7
### Context: CREATE TABLE table_200_12 ( id number, "year" text, "award" text, "category" text, "nominated work" text, "result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what year was prime suspects nominated for the bafta tv award ? ### Q...
### Context: CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_ti...
### Context: CREATE TABLE table_29583441_1 ( original_air_date VARCHAR, directed_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date did the episode that was directed by Christian i. nyby ii originally air on? ### Query: SELECT original_air_date FRO...
### Context: CREATE TABLE table_76095 ( "Week of" text, "Tier" text, "Winner" text, "Runner-up" text, "Semi finalists" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the winner in the week listed as 26 June 2 weeks, when the runner-up is Aran...
### Context: CREATE TABLE table_name_20 ( album VARCHAR, remixed_by VARCHAR, version VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which album is the royal g's club mix version, which is remixed by royal garden sound, from? ### Query: SELECT album FROM...
### Context: CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE intakeo...
### Context: CREATE TABLE table_60094 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Republican District had Incumbent First Elected in 2000 then Re-elected? ##...
### Context: CREATE TABLE table_name_6 ( to_par VARCHAR, place VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the To Par that has Tommy Bolt with a Place of t6? ### Query: SELECT to_par FROM table_name_6 WHERE place = "t6" AND pl...
### Context: CREATE TABLE table_68480 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of years for talbot-lago t26c and points less than 3 ### Query: SELECT...
### Context: CREATE TABLE table_name_79 ( opponent VARCHAR, game_site VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the opponent on the game that will be played at metropolitan stadium? ### Query: SELECT opponent FROM table_name_79 WHERE game_site =...
### Context: CREATE TABLE table_24113 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Black Knights points" real, "Opponents" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most game ### Query: SELECT MA...
### Context: CREATE TABLE ftxmzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH number, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM tex...
### Context: CREATE TABLE table_1456056_1 ( country VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the minimum for 2500-3000 ft for scotland ### Query: SELECT MIN(2500 AS _3000ft) FROM table_1456056_1 WHERE country = "Scotland"
### Context: CREATE TABLE table_204_448 ( id number, "team" text, "winners" number, "runners-up" number, "years won" text, "years runner-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many teams have been winners at least 5 times ? ### ...
### Context: CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, in...
### Context: CREATE TABLE table_name_13 ( player VARCHAR, school_club_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the player that played for the school/club team Maryland? ### Query: SELECT player FROM table_name_13 WHERE school_club_team = "...
### Context: CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) 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_...
### Context: CREATE TABLE COURSE ( CRS_CODE varchar(10), DEPT_CODE varchar(10), CRS_DESCRIPTION varchar(35), CRS_CREDIT float(8) ) 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 ...
### Context: 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...
### 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, JYZBL...
### Context: 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 ) CREAT...
### Context: CREATE TABLE t_kc24 ( ACCOUNT_DASH_DATE time, ACCOUNT_DASH_FLG number, CASH_PAY number, CIVIL_SUBSIDY number, CKC102 number, CLINIC_ID text, CLINIC_SLT_DATE time, COMP_ID text, COM_ACC_PAY number, COM_PAY number, DATA_ID text, ENT_ACC_PAY number, ENT_PAY ...
### Context: CREATE TABLE table_name_73 ( win__percentage VARCHAR, name VARCHAR, wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Win % has a Name of tony rice, and Wins smaller than 28? ### Query: SELECT COUNT(win__percentage) FROM table_name_...
### Context: CREATE TABLE table_342 ( "Number Range" text, "Introduced" text, "Builder" text, "Engine" text, "Weight (long tons)" text, "Seats" text, "Withdrawn" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the eng...
### Context: CREATE TABLE table_1318 ( "Episode" real, "Title" text, "Story" text, "Adapted by" text, "Director" text, "Airdate" text, "Exists?" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the msot episode that was adapted by leon gr...
### Context: CREATE TABLE table_17751942_4 ( final_win__percentage VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the final win percentage of the Sault Ste. Marie Greyhounds? ### Query: SELECT final_win__percentage FROM table_17751942_...
### Context: CREATE TABLE table_name_97 ( points INTEGER, goals_conceded VARCHAR, goals_scored VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the average points when goals conceded is 14 and goals scored is less than 32? ### Query: SELECT AVG(po...
### Context: CREATE TABLE table_123462_2 ( election VARCHAR, _number_of_seats_won VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was the election when the # of seats won was 65? ### Query: SELECT election FROM table_123462_2 WHERE _number_of_seats...
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) CREATE TABLE hz_info_zyjzjlb ( JZLSH number, YLJGDM number, zyjzjlb_id number ) CREATE TABLE zyjzjlb ( CYBQDM text, CYBQMC text, CYCWH text, CYKSDM text, CYKSMC text, CYSJ time, CY...
### Context: CREATE TABLE artist ( artist_name varchar2(50), country varchar2(20), gender varchar2(20), preferred_genre varchar2(50) ) CREATE TABLE files ( f_id number(10), artist_name varchar2(50), file_size varchar2(20), duration varchar2(20), formats varchar2(20) ) CREATE TABLE ...
### Context: CREATE TABLE useracct ( name VARCHAR, u_id VARCHAR ) CREATE TABLE trust ( target_u_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the name of the target user with the lowest trust score. ### Query: SELECT T1.name FROM useracct AS T...
### Context: CREATE TABLE table_19278 ( "Player" text, "Position" text, "Starter" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points did the player who wa...