text
stringlengths
197
8.39k
### Context: CREATE TABLE table_28045 ( "Series no." real, "No. in season" real, "Title" text, "Written by" text, "Directed by" text, "Original air date" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what sea...
### Context: 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 number, charttime time, itemid number, amount number ) CREATE TABLE output...
### Context: CREATE TABLE d_labitems ( row_id number, itemid number, label text ) 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 inputev...
### Context: CREATE TABLE Lessons ( lesson_time INTEGER, customer_id VARCHAR ) CREATE TABLE Customers ( customer_id VARCHAR, first_name VARCHAR, last_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How long is the total lesson time took by c...
### Context: CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(1...
### Context: CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicRea...
### Context: CREATE TABLE table_66376 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the attendance number when the result is l 41-37? ### Query: SELECT "Attendance" F...
### Context: CREATE TABLE table_train_54 ( "id" int, "organ_transplantation" bool, "severe_sepsis" bool, "systolic_blood_pressure_sbp" int, "hiv_infection" bool, "thrombocytopenia" float, "sepsis" bool, "hypotension" bool, "burn_injury" int, "septic_shock" bool, "age" float, ...
### Context: CREATE TABLE table_45186 ( "Date" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" text, "Competition" text, "Man of the Match" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result of the league/cup ...
### Context: CREATE TABLE paperdataset ( paperid int, datasetid int ) CREATE TABLE dataset ( datasetid int, datasetname varchar ) CREATE TABLE paperkeyphrase ( paperid int, keyphraseid int ) CREATE TABLE paper ( paperid int, title varchar, venueid int, year int, numciting ...
### 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 table_62571 ( "Actor in original production" text, "Actor required" text, "GamePlan" text, "FlatSpin" text, "RolePlay" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the actor in the original production when Troy Ste...
### Context: CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, ...
### Context: CREATE TABLE table_72976 ( "Aircraft" text, "1990" real, "destroyed" real, "damaged" real, "to Iran" real, "survived" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If there were 14 in 1990 and 6 survived how many were destroyed? #...
### Context: CREATE TABLE table_11 ( "Pick" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's Dorain Anneck's pick number? ### Query: SELE...
### 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 table_train_33 ( "id" int, "active_infection" bool, "allergy_to_thiamine" bool, "receiving_vasopressor" bool, "liver_disease" bool, "allergy_to_vitamin_c" bool, "allergy_to_hydrocortisone" bool, "hypertension" bool, "age" float, "serum_aminotransferase_l...
### 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, ...
### Context: CREATE TABLE campuses ( id number, campus text, location text, county text, year number ) CREATE TABLE csu_fees ( campus number, year number, campusfee number ) CREATE TABLE discipline_enrollments ( campus number, discipline number, year number, undergradua...
### Context: CREATE TABLE table_name_53 ( score VARCHAR, tie_no VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score when the tie is 8? ### Query: SELECT score FROM table_name_53 WHERE tie_no = "8"
### Context: CREATE TABLE table_65300 ( "Human Gene (Protein)" text, "Mouse Ortholog" text, "Yeast Ortholog" text, "Subpathway" text, "GeneCards Entry" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the yeast ortholog that has a subpathway o...
### Context: CREATE TABLE table_name_50 ( ages VARCHAR, report VARCHAR, school VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the Ages of the Seashell Trust School with Ofsted Report? ### Query: SELECT ages FROM table_name_50 WHERE report = "of...
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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, JSBBRQ...
### Context: CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId ...
### Context: CREATE TABLE Faculty ( FacID INTEGER, Lname VARCHAR(15), Fname VARCHAR(15), Rank VARCHAR(15), Sex VARCHAR(1), Phone INTEGER, Room VARCHAR(5), Building VARCHAR(13) ) CREATE TABLE Participates_in ( stuid INTEGER, actid INTEGER ) CREATE TABLE Activity ( actid INTE...
### 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 Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE...
### Context: CREATE TABLE table_1356555_2 ( median_household_income VARCHAR, county VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the median household income of sacramento? ### Query: SELECT median_household_income FROM table_1356555_2 WHERE county...
### Context: CREATE TABLE table_46719 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
### Context: CREATE TABLE table_2886617_5 ( college_junior_club_team VARCHAR, nhl_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How may college/junior/club team has a the nhl team listed as Colorado Avalanche? ### Query: SELECT COUNT(college_junior_cl...
### 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_3492 ( "Institution" text, "Nickname" text, "Location (all in Minnesota)" text, "Founded" real, "Type" text, "Enrollment" real, "Joined" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What institution is locat...
### Context: CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE vitalperiodic...
### Context: CREATE TABLE table_2165 ( "Rank" real, "Dismissals" real, "Player" text, "Caught" real, "Stumped" real, "Matches" real, "Innings" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many dismissals in a game with 191 innings ###...
### Context: CREATE TABLE table_18601 ( "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. -- Who was the incumbent in Pennsylvania 27? ### Query: SELEC...
### Context: CREATE TABLE region ( Region_ID int, Region_name text, Date text, Label text, Format text, Catalogue text ) CREATE TABLE party ( Party_ID int, Minister text, Took_office text, Left_office text, Region_ID int, Party_name text ) CREATE TABLE member ( Memb...
### Context: CREATE TABLE table_27319 ( "Region" text, "Enrolled men" real, "Enrolled women" real, "Enrolled total" real, "Men of voting age" real, "Women of voting age" real, "Voting age population" real, "E/VAP ratio Men" text, "E/VAP ratio Women" text, "E/VAP ratio Total" text...
### Context: CREATE TABLE table_204_363 ( id number, "res." text, "record" text, "opponent" text, "method" text, "event" text, "date" text, "round" number, "time" text, "location" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables prov...
### 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_93 ( draw INTEGER, language VARCHAR, place VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many draws have french as the language, with a place less than 1? ### Query: SELECT SUM(draw) FROM table_name_93 WHERE lan...
### Context: CREATE TABLE table_dev_32 ( "id" int, "post_challenge_capillary_glucose" int, "gender" string, "blood_donation" bool, "untreated_hyperlipidemia" bool, "hemoglobin_a1c_hba1c" float, "hematocrit_hct" float, "fasting_triglycerides" int, "fasting_blood_glucose_fbg" float, ...
### Context: CREATE TABLE table_name_35 ( year VARCHAR, assists VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year had 48 assists? ### Query: SELECT year FROM table_name_35 WHERE assists = "48"
### Context: CREATE TABLE table_10975034_5 ( cfl_team VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the cfl team that has a position of ol? ### Query: SELECT cfl_team FROM table_10975034_5 WHERE position = "OL"
### Context: CREATE TABLE table_2562572_50 ( type VARCHAR, settlement VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What type of settlement is Jazak? ### Query: SELECT type FROM table_2562572_50 WHERE settlement = "Jazak"
### Context: CREATE TABLE table_203_583 ( id number, "title" text, "release" number, "6th gen" text, "handheld" text, "note" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what game was published in europe as 1945 but had a different name elsewh...
### Context: CREATE TABLE table_14490 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of total with a Rank larger than 12, and a Gold larger than 4? ...
### Context: CREATE TABLE table_14308895_2 ( new_pageant VARCHAR, country_territory VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which is the new pageant from spain? ### Query: SELECT new_pageant FROM table_14308895_2 WHERE country_territory = "Spain"
### 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_63183 ( "City of license" text, "Identifier" text, "Frequency" text, "Power" text, "Class" text, "RECNet" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the class when the identifier is cbf-fm-14? ### Quer...
### Context: CREATE TABLE table_203_287 ( id number, "rank" number, "area" text, "date" text, "presenter" text, "seven wonders covered" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name of the last area listed on this chart ? ### ...
### Context: CREATE TABLE table_name_37 ( player VARCHAR, place VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what player has place t10 ### Query: SELECT player FROM table_name_37 WHERE place = "t10"
### Context: CREATE TABLE table_name_27 ( d_44_√ VARCHAR, d_46_√ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the D 44 when D 46 is d 26? ### Query: SELECT d_44_√ FROM table_name_27 WHERE d_46_√ = "d 26"
### Context: CREATE TABLE table_name_59 ( gold INTEGER, total VARCHAR, silver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the fewest number of golds for teams with a total of 3 and fewer than 2 silvers? ### Query: SELECT MIN(gold) FROM table_...
### Context: CREATE TABLE Ref_Locations ( Location_Code CHAR(15), Location_Name VARCHAR(255), Location_Description VARCHAR(255) ) CREATE TABLE Employees ( Employee_ID INTEGER, Role_Code CHAR(15), Employee_Name VARCHAR(255), Gender_MFU CHAR(1), Date_of_Birth DATETIME, Other_Details V...
### Context: CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text...
### Context: CREATE TABLE table_55375 ( "Player" text, "Rec." real, "Yards" real, "Avg." real, "Long" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average rec that is greater than 10 and has 40 yards? ### Query: SELECT AVG("Rec.") FRO...
### Context: CREATE TABLE table_62564 ( "Year" real, "Date" text, "Home Team" text, "Result" text, "Visiting Team" text, "Venue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date(s) was the game(s) at Candlestick Park? ### Query: SELECT ...
### Context: CREATE TABLE elimination ( elimination_id text, wrestler_id text, team text, eliminated_by text, elimination_move text, time text ) CREATE TABLE wrestler ( wrestler_id number, name text, reign text, days_held text, location text, event text ) -- Using vali...
### 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_204_90 ( id number, "rank" number, "name" text, "nationality" text, "time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many medalists came from kenya ? ### Query: SELECT COUNT("name") FROM table_204_90 WHERE "...
### Context: CREATE TABLE table_65540 ( "Date" text, "Round" text, "Attendance" real, "Opposition" text, "Stadium" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which stadium had the opposition of 79,122? ### Query: SELECT "Stadium" FROM table_655...
### Context: CREATE TABLE table_62683 ( "Main contestant" text, "Co-contestant (Yaar vs. Pyaar)" text, "Date performed" text, "Scores by each individual judge" text, "Total score/week" text, "Position" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tabl...
### Context: CREATE TABLE table_24073 ( "Episode" text, "Broadcast date" text, "Run time" text, "Viewers (in millions)" text, "Archive" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On broadcast date is 25april1970, how many people tuned in? ### Q...
### Context: CREATE TABLE table_76416 ( "Season" text, "Series" text, "Team" text, "Races" text, "Wins" text, "Poles" text, "F/Laps" text, "Podiums" text, "Points" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- H...
### Context: CREATE TABLE table_name_88 ( overall INTEGER, position VARCHAR, round VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest overall for a quarterback with fewer than 7 rounds? ### Query: SELECT MIN(overall) FROM table_name_88 WH...
### Context: CREATE TABLE Plays_games ( gameid VARCHAR, hours_played INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show all game ids and the number of hours played. ### Query: SELECT gameid, SUM(hours_played) FROM Plays_games GROUP BY gameid
### Context: CREATE TABLE table_name_50 ( genre VARCHAR, origin_of_programming VARCHAR, network VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What genre is Star Plus from India? ### Query: SELECT genre FROM table_name_50 WHERE origin_of_programming = "...
### Context: CREATE TABLE table_203_13 ( id number, "year" number, "champion" text, "score" text, "runner-up" text, "coach" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many total games did boston college win in the beanpot ? ### Query: S...
### Context: CREATE TABLE table_58651 ( "Date" text, "Time" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the time when the set 1 is 21 25? ### Query: SELECT "Ti...
### Context: CREATE TABLE table_17103566_1 ( result VARCHAR, team_1 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result when team 1 is ICL Pakistan? ### Query: SELECT result FROM table_17103566_1 WHERE team_1 = "ICL Pakistan"
### Context: CREATE TABLE table_1886 ( "Seq." text, "Name" text, "Background" real, "Party Leadership" real, "Communication Ability" real, "Relations with Congress" real, "Court Appointments" real, "Handling of Economy" real, "Luck" real, "Ability to Compromise" real, "Willin...
### Context: CREATE TABLE table_20592988_1 ( condition VARCHAR, platelet_count VARCHAR, prothrombin_time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what conditions are both the platelet count and prothrombin time unaffected? ### Query: SELECT con...
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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, JSBBRQ...
### Context: CREATE TABLE table_name_16 ( reign VARCHAR, days_held VARCHAR, wrestler VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the reign for super kendo who held it for 35 days? ### Query: SELECT reign FROM table_name_16 WHERE days_held = "...
### Context: CREATE TABLE table_12394 ( "English" text, "Crimean Gothic" text, "Bible Gothic" text, "German" text, "Dutch" text, "Icelandic" text, "Swedish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the Dutch word for Apel? ### ...
### Context: CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE vitalperiodic ( vitalperiodi...
### Context: CREATE TABLE Tryout ( pID numeric(5,0), cName varchar(20), pPos varchar(8), decision varchar(3) ) CREATE TABLE Player ( pID numeric(5,0), pName varchar(20), yCard varchar(3), HS numeric(5,0) ) CREATE TABLE College ( cName varchar(20), state varchar(2), enr nume...
### Context: CREATE TABLE driver ( Driver_ID int, Name text, Party text, Home_city text, Age int ) CREATE TABLE school_bus ( School_ID int, Driver_ID int, Years_Working int, If_full_time bool ) CREATE TABLE school ( School_ID int, Grade text, School text, Location t...
### Context: CREATE TABLE table_61323 ( "Episode" text, "18-49" text, "Viewers (m)" real, "Rating" text, "Share" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Viewers (m) has an Episode of 40 days? ### Query: SELECT "Viewers (m)" FROM table_6...
### Context: CREATE TABLE table_26842217_12 ( result VARCHAR, broadcast VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result in the game broadcast on the Big East Network? ### Query: SELECT result FROM table_26842217_12 WHERE broadcast = "Big ...
### Context: CREATE TABLE table_51191 ( "Player" text, "Position" text, "First-Team Appearances" text, "First-Team Goals" text, "Current Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many first-team goals does the team have whose player i...
### 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 table_name_45 ( host_country___countries VARCHAR, bronze VARCHAR, host_city___cities VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the host country when bronze is [[|]] (1) and host city is Krynica? ### Query: SELECT h...
### Context: CREATE TABLE zyjzjlb ( CYBQDM text, CYBQMC text, CYCWH text, CYKSDM text, CYKSMC text, CYSJ time, CYZTDM number, HZXM text, JZKSDM text, JZKSMC text, JZLSH text, KH text, KLX number, MZBMLX number, MZJZLSH text, MZZDBM text, MZZDMC text, ...
### 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_70494 ( "Venue" text, "City" text, "Tickets Sold / Available" text, "Gross Revenue (1986)" text, "Gross Revenue (2011)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many tickets were sold/available when the gros...
### Context: CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, ...
### Context: CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text...
### Context: CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE admissions ( ...
### Context: CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ...
### Context: CREATE TABLE table_63232 ( "School" text, "Location" text, "Mascot" text, "County" real, "Enrollment" text, "IHSAA Class" text, "Year Joined" real, "Previous Conference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is...
### Context: CREATE TABLE Roles ( Role_Code CHAR(15), Role_Name VARCHAR(255), Role_Description VARCHAR(255) ) CREATE TABLE Employees ( Employee_ID INTEGER, Role_Code CHAR(15), Employee_Name VARCHAR(255), Gender_MFU CHAR(1), Date_of_Birth DATETIME, Other_Details VARCHAR(255) ) CREAT...
### 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 table_22118197_1 ( result VARCHAR, english_title VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result for the film with the English name of Morning Undersea? ### Query: SELECT result FROM table_22118197_1 WHERE englis...
### Context: CREATE TABLE table_68213 ( "Year" real, "Manufacturer" text, "Start" real, "Finish" real, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the sum of year when start is less than 30 ### Query: SELECT SUM("Year") FROM table_68...
### Context: CREATE TABLE table_42592 ( "Rank" real, "Name" text, "Years" text, "Games" real, "Goals" real, "Goals/Games" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Rank for more than 220 goals in 1965 1978-78? ### Query...
### Context: CREATE TABLE table_name_59 ( location VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Location has a Record of 0-1? ### Query: SELECT location FROM table_name_59 WHERE record = "0-1"
### Context: CREATE TABLE table_32678 ( "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. -- What was the size of the crowd when...
### Context: CREATE TABLE table_name_6 ( wins VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of wins when there are 7 points? ### Query: SELECT wins FROM table_name_6 WHERE points = 7
### Context: CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime...