text
stringlengths
197
8.39k
### Context: CREATE TABLE constructors ( constructorId INTEGER, constructorRef TEXT, name TEXT, nationality TEXT, url TEXT ) CREATE TABLE results ( resultId INTEGER, raceId INTEGER, driverId INTEGER, constructorId INTEGER, number INTEGER, grid INTEGER, position TEXT, ...
### Context: 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 Has_Allergy ( StuID INTEGER, Allergy VARCHAR(20) ) CREATE TABLE Allergy_Type ( Allergy V...
### Context: CREATE TABLE table_7851 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For which tournament was Anthony Wall the runner-up? ### Query: SEL...
### Context: CREATE TABLE table_name_70 ( week INTEGER, result VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the average week for result of l 34 24 ### Query: SELECT AVG(week) FROM table_name_70 WHERE result = "l 34–24"
### Context: CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, s...
### Context: CREATE TABLE table_47093 ( "Position" real, "Team" text, "Played" real, "Drawn" real, "Lost" real, "Goals For" real, "Goals Against" real, "Goal Average 1" real, "Points 2" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- ...
### Context: CREATE TABLE table_16732659_2 ( rnd INTEGER, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- FOR AUGUST 13 WHAT IS THE RND ? ### Query: SELECT MAX(rnd) FROM table_16732659_2 WHERE date = "August 13"
### Context: CREATE TABLE table_4394 ( "Coach" text, "Years" text, "Win\u2013Loss" text, "Win %" real, "Conference Titles" real, "NCAA Tourn. Appearances" text, "NCAA Titles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which NCAA Tourname...
### 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_28557 ( "Film Festival" text, "Date of ceremony" text, "Category" text, "Participants/Recipients" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Film Festival had participants/recipients of Isao To...
### Context: CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_d...
### Context: CREATE TABLE table_name_13 ( pick INTEGER, college VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest pick number for players from king's (ny)? ### Query: SELECT MIN(pick) FROM table_name_13 WHERE college = "king's (ny)"
### Context: CREATE TABLE table_16028499_2 ( game_site VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the game site on October 29, 1989? ### Query: SELECT game_site FROM table_16028499_2 WHERE date = "October 29, 1989"
### Context: CREATE TABLE table_17857 ( "Club" text, "Played" text, "Won" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text, "Losing bonus" text, "Points" text ) -- Using valid SQLite, ans...
### Context: CREATE TABLE table_name_88 ( year VARCHAR, developer VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which year was the game developed by Music Comp in? ### Query: SELECT year FROM table_name_88 WHERE developer = "music comp"
### Context: CREATE TABLE table_name_21 ( draw VARCHAR, goal_diff VARCHAR, loss VARCHAR, point VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many total draws were there with a less than 8 loss, more than 30 points, and a goal diff larger than 26...
### Context: CREATE TABLE table_train_236 ( "id" int, "renal_disease" bool, "creatinine_clearance_cl" float, "estimated_glomerular_filtration_rate_egfr" int, "hba1c" float, "fbg" int, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided above. -- e...
### Context: CREATE TABLE table_13461 ( "Season" text, "Winner" text, "Score" text, "Runners\u2013up" text, "Venue(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is listed as the Runners-up that also has a Winner of Hajduk Split (3)? ### Qu...
### Context: CREATE TABLE table_name_91 ( premiere_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the 2nd runner-up for july 20, 2007 ### Query: SELECT 2 AS nd_runner_up FROM table_name_91 WHERE premiere_date = "july 20, 2007"
### 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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age tex...
### Context: CREATE TABLE table_70526 ( "Name" text, "Country" text, "Status" text, "Transfer window" text, "Transfer fee" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country has a Transfer fee of , and a Transfer window of summer, and the S...
### 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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE ...
### Context: CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) ...
### Context: CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE area ( course_id int, area varchar ...
### Context: CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE...
### Context: CREATE TABLE mzjzjlb_jybgb ( YLJGDM_MZJZJLB text, BGDH number, YLJGDM number ) 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, JZZ...
### 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, ...
### Context: CREATE TABLE table_name_90 ( ages VARCHAR, capacity VARCHAR, ofsted VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Ages have a Capacity larger than 21, and an Ofsted of 106168? ### Query: SELECT ages FROM table_name_90 WHERE capacity ...
### 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_50127 ( "Opposing Team" text, "Against" real, "Date" text, "Venue" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which venue had the opposing team Natal? ### Query: SELECT "Venue" FROM table_50127 WHE...
### Context: CREATE TABLE table_name_21 ( snatch INTEGER, clean_ VARCHAR, _jerk VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest weight snatched for a lifter who had a clean and jerk less than 185? ### Query: SELECT MIN(snatch) FROM tab...
### Context: CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id numbe...
### Context: CREATE TABLE table_11000 ( "1910" real, "1920" real, "1930" real, "1940" real, "1950" real, "1960" real, "1970" real, "1980" real, "1990" real, "2000" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 1960 is less ...
### Context: CREATE TABLE program ( name VARCHAR, program_id VARCHAR ) CREATE TABLE broadcast ( program_id VARCHAR, Time_of_day VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the names of programs that are never broadcasted in the morning. ###...
### 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_name_59 ( score VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the score on october 14 ### Query: SELECT score FROM table_name_59 WHERE date = "october 14"
### Context: CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, ...
### Context: CREATE TABLE table_204_721 ( id number, "rank" number, "wrestler" text, "no. of reigns" number, "combined\ndefenses" number, "combined\ndays" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many days combined did kevin steen ha...
### Context: CREATE TABLE table_72393 ( "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. -- Name the number of first elected for phil crane ### Query:...
### Context: CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE universi...
### Context: CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDis...
### Context: CREATE TABLE Services ( Service_ID INTEGER, Service_Type_Code CHAR(15), Workshop_Group_ID INTEGER, Product_Description VARCHAR(255), Product_Name VARCHAR(255), Product_Price DECIMAL(20,4), Other_Product_Service_Details VARCHAR(255) ) CREATE TABLE Bookings ( Booking_ID INTEG...
### 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 ques...
### Context: CREATE TABLE authors ( authid VARCHAR, fname VARCHAR, lname VARCHAR ) CREATE TABLE papers ( paperid VARCHAR ) CREATE TABLE authorship ( authid VARCHAR, paperid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many papers have...
### Context: CREATE TABLE table_11421 ( "Number & name" text, "Description" text, "Current status" text, "Livery" text, "Date" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's Number & Name listed for the Date 1967? ### Query: SELECT "Number &...
### Context: CREATE TABLE home_game ( YEAR VARCHAR, attendance INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of attendance at home games for each year? ### Query: SELECT YEAR, AVG(attendance) FROM home_game GROUP BY YEAR
### Context: CREATE TABLE table_68655 ( "Stadium" text, "Years" text, "Played" real, "Wins" real, "Losses" real, "Draw" text, "Win Percentage" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many games did they play in 1905? ### Query: S...
### Context: 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 jyjgzbb ( BGDH text,...
### Context: CREATE TABLE table_1242447_2 ( strongs__number VARCHAR, hebrew_word VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the strongs # for the hebrew word ? ### Query: SELECT strongs__number FROM table_1242447_2 WHERE hebrew_word = "יִרְמְיָה...
### Context: CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ...
### Context: CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER va...
### Context: CREATE TABLE table_name_99 ( position VARCHAR, cfl_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position does the player from the Toronto Argonauts play? ### Query: SELECT position FROM table_name_99 WHERE cfl_team = "toronto argona...
### Context: CREATE TABLE Customer ( CustomerId integer, FirstName varchar(40), LastName varchar(20), Company varchar(80), Address varchar(70), City varchar(40), State varchar(40), Country varchar(40), PostalCode varchar(10), Phone varchar(24), Fax varchar(24), Email varc...
### Context: CREATE TABLE table_204_346 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "result" text, "competition" text, "scored" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the opponent who barr scor...
### 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 table_name_53 ( declination___j2000__ VARCHAR, constellation VARCHAR, object_type VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the constellation scorpius and object of planetary nebula, what was the declination (J2000)? #...
### Context: CREATE TABLE table_name_72 ( quantity INTEGER, manufacturer VARCHAR, gwr_nos VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest quantity for GWR Nos. 696, 779, 93 5 from the manufacturer Peckett and Sons? ### Query: SELECT MI...
### 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 procedu...
### Context: CREATE TABLE hz_info ( KH text, KLX number, YLJGDM text, RYBH text ) CREATE TABLE mzjzjlb ( YLJGDM text, JZLSH text, KH text, KLX number, MJZH text, HZXM text, NLS number, NLY number, ZSEBZ number, JZZTDM number, JZZTMC text, JZJSSJ time, ...
### Context: CREATE TABLE table_21260 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" text, "Avg. Finish" text, "Winnings" text, "Position" text, "Team(s)" text ) -- Using valid SQLite, answer the following questions for th...
### Context: 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_P...
### Context: CREATE TABLE table_name_4 ( hanja VARCHAR, rr_romaja VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Hanja for the hamgyeong RR Romaja? ### Query: SELECT hanja FROM table_name_4 WHERE rr_romaja = "hamgyeong"
### Context: CREATE TABLE table_name_75 ( nation VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the nation that had 59 totals? ### Query: SELECT nation FROM table_name_75 WHERE total = 59
### 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 table_name_64 ( calorie VARCHAR, watt_hour VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many calories is 1 watt hour? ### Query: SELECT calorie FROM table_name_64 WHERE watt_hour = "1"
### Context: CREATE TABLE table_34398 ( "Date" text, "Tournament" text, "Location" text, "Winner" text, "Score" text, "1st prize ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Location of the byron nelson golf classic? ### Qu...
### Context: CREATE TABLE table_name_70 ( branding VARCHAR, frequency VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Branding of Frequency 00 94.5? ### Query: SELECT branding FROM table_name_70 WHERE frequency = "00 94.5"
### 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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age tex...
### Context: CREATE TABLE table_name_31 ( prize VARCHAR, entrants VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What prize amount was awarded at the event with 453 entrants? ### Query: SELECT prize FROM table_name_31 WHERE entrants = 453
### Context: CREATE TABLE table_name_67 ( city VARCHAR, iata VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is City, when IATA is 'amm'? ### Query: SELECT city FROM table_name_67 WHERE iata = "amm"
### Context: CREATE TABLE table_43442 ( "Position" real, "Club" text, "Games played" real, "Wins" real, "Draws" real, "Loses" real, "Goals scored" real, "Goals conceded" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- W...
### Context: CREATE TABLE table_name_25 ( entrant VARCHAR, points VARCHAR, chassis VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the entrant when the points is 42 (45) and the chassis is brabham bt20? ### Query: SELECT entrant FROM table_name_25...
### Context: CREATE TABLE table_43704 ( "Rank" real, "Title" text, "Studio" text, "Director" text, "Worldwide Gross" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Director of the Film The Fugitive? ### Query: SELECT "Director" FROM tab...
### 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, ...
### Context: CREATE TABLE table_18461635_1 ( coach VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the coach of the team in Leicester? ### Query: SELECT coach FROM table_18461635_1 WHERE location = "Leicester"
### 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_2651755_1 ( democratic_coalition VARCHAR, together_we_can_do_more VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the democratic coalation when together we can do more is sergio castro ( pc )? ### Query: SELECT democra...
### Context: CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE departments ( DEPARTME...
### Context: CREATE TABLE table_7491 ( "1st built" real, "1913 Class" text, "W.A." text, "No. Built" real, "Builder" text, "Date" text, "LNER Class" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 1913 Class of the d32 LNER Class?...
### Context: CREATE TABLE table_name_22 ( partner VARCHAR, surface VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was his partner when he played on carpet? ### Query: SELECT partner FROM table_name_22 WHERE surface = "carpet"
### Context: CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMEN...
### Context: CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE diagnosis ( diagn...
### Context: CREATE TABLE player ( Player_ID int, Player text, Years_Played text, Total_WL text, Singles_WL text, Doubles_WL text, Team int ) CREATE TABLE match_season ( Season real, Player text, Position text, Country int, Team int, Draft_Pick_Number int, Draft_...
### Context: CREATE TABLE table_name_76 ( median_family_income VARCHAR, median_household_income VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Median Family Income, when Median Household Income is '$50,717'? ### Query: SELECT median_family_income FR...
### 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, ...
### Context: CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE PostHistoryTypes ...
### Context: CREATE TABLE table_name_71 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is 2007 when 2011 is not held and 2012 is not held? ### Query: SELECT 2007 FROM table_name_71 WHERE 2011 = "not held" AND 2012 = "not held"
### 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, ...
### Context: CREATE TABLE Ref_Attraction_Types ( Attraction_Type_Code CHAR(15), Attraction_Type_Description VARCHAR(255) ) CREATE TABLE Theme_Parks ( Theme_Park_ID INTEGER, Theme_Park_Details VARCHAR(255) ) CREATE TABLE Shops ( Shop_ID INTEGER, Shop_Details VARCHAR(255) ) CREATE TABLE Ref_Hot...
### Context: CREATE TABLE table_204_215 ( id number, "airline" text, "destination(s)" text, "aircraft scheduled" text, "service date(s)" text, "comments" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the only airline that has filed for ...
### Context: CREATE TABLE table_name_6 ( maltese VARCHAR, malay VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Maltese word for the Malay word rabu? ### Query: SELECT maltese FROM table_name_6 WHERE malay = "rabu"
### Context: CREATE TABLE table_26338 ( "Team #1" text, "Points" text, "Team #2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the team number 1 for san lorenzo ### Query: SELECT "Team #1" FROM table_26338 WHER...
### Context: CREATE TABLE paperdataset ( paperid int, datasetid int ) CREATE TABLE keyphrase ( keyphraseid int, keyphrasename varchar ) CREATE TABLE author ( authorid int, authorname varchar ) CREATE TABLE paper ( paperid int, title varchar, venueid int, year int, numcitin...
### Context: CREATE TABLE table_name_89 ( original_airdate VARCHAR, written_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the original air date when ed horowitz wrote it? ### Query: SELECT original_airdate FROM table_name_89 WHERE written_by = ...
### Context: CREATE TABLE Roles ( Role_Code CHAR(15), Role_Name VARCHAR(255), Role_Description VARCHAR(255) ) CREATE TABLE Documents_to_be_Destroyed ( Document_ID INTEGER, Destruction_Authorised_by_Employee_ID INTEGER, Destroyed_by_Employee_ID INTEGER, Planned_Destruction_Date DATETIME, ...
### Context: CREATE TABLE table_24379 ( "#" real, "Japanese title" text, "R\u014dmaji" text, "Japanese translation" text, "Vocalist" text, "Episodes used" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of vocalists for which one ...
### Context: CREATE TABLE table_204_29 ( id number, "rank" number, "lane" number, "name" text, "nationality" text, "time" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many athletes finished after 2:00:00 ? ### Query: SEL...
### Context: CREATE TABLE table_name_26 ( lost INTEGER, team VARCHAR, draw VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what the most lost for Alianza with a draw less than 6? ### Query: SELECT MAX(lost) FROM table_name_26 WHERE team = "alianza" AND d...
### Context: CREATE TABLE table_54124 ( "Player" text, "Car." real, "Yards" real, "Avg." real, "TD's" real, "Long" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average for the player with 1 TD, over 4 as a long, and under 1 carry? ...
### Context: CREATE TABLE table_50845 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the home team on 31 January 1951 when away team was Sheffield United? ### Query: S...