text
stringlengths
197
8.39k
### Context: CREATE TABLE nomination ( Artwork_ID int, Festival_ID int, Result text ) CREATE TABLE artwork ( Artwork_ID int, Type text, Name text ) CREATE TABLE festival_detail ( Festival_ID int, Festival_Name text, Chair_Name text, Location text, Year int, Num_of_Audie...
### Context: CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE transfers ( r...
### Context: CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE patient ...
### Context: CREATE TABLE t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_ID number ) 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 ...
### Context: CREATE TABLE table_59446 ( "Party" text, "% votes" real, "% change" real, "Seats" real, "Change" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the change number with fewer than 4.7% votes and more than 0 seats? ### Query: SELE...
### Context: CREATE TABLE region ( Region_id int, Region_code text, Region_name text ) CREATE TABLE affected_region ( Region_id int, Storm_ID int, Number_city_affected real ) CREATE TABLE storm ( Storm_ID int, Name text, Dates_active text, Max_speed int, Damage_millions_USD...
### Context: CREATE TABLE Properties ( property_id INTEGER, property_type_code CHAR(15), property_address VARCHAR(255), other_details VARCHAR(255) ) CREATE TABLE Services ( service_id INTEGER, organization_id INTEGER, service_type_code CHAR(15), service_details VARCHAR(255) ) CREATE TA...
### Context: CREATE TABLE table_68720 ( "Name" text, "Years" text, "League" text, "FA Cup" text, "League Cup" text, "Europe" text, "Other [C ]" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The League Cup of 0 40 0 (6) als...
### Context: CREATE TABLE table_203_54 ( id number, "selected\nlatin american\ncountries" text, "internl.\ntourism\narrivals\n2010\n(x 1000)" number, "internl.\ntourism\nreceipts.\n2010\n(usd\n(x1000)" number, "average\nreceipt\nper visitor\n2009\n(usd/turista)" number, "tourist\narrivals\nper\n...
### 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 lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, ...
### Context: CREATE TABLE table_name_75 ( crowd INTEGER, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the largest crowd at the Brunswick Street Oval? ### Query: SELECT MAX(crowd) FROM table_name_75 WHERE venue = "brunswick street oval"
### Context: CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text...
### Context: CREATE TABLE table_37944 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Attendance has a Record of 34 51? ### Query: SELECT MIN("Attendanc...
### Context: CREATE TABLE table_204_435 ( id number, "sport" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what sport has the second most number of gold medals won ? ### Query: S...
### 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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, rel...
### Context: CREATE TABLE table_name_1 ( record VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the record on April 22? ### Query: SELECT record FROM table_name_1 WHERE date = "april 22"
### Context: CREATE TABLE table_name_18 ( event VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which event had the record of 18 5 (1)? ### Query: SELECT event FROM table_name_18 WHERE record = "18–5 (1)"
### Context: CREATE TABLE table_45417 ( "Race Title" text, "Circuit" text, "City / State" text, "Date" text, "Winner" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the circuit when the date is 4 june? ### Query: SELECT "Ci...
### Context: CREATE TABLE table_27523 ( "June 10-11" text, "March 27-29" text, "January 15-16" text, "November 3" text, "August 21-22" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What January 15-16 is is that corresponds to November 3, 2013? ###...
### Context: CREATE TABLE party ( Party_ID VARCHAR, Party VARCHAR ) CREATE TABLE election ( Committee VARCHAR, Party VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which committees have delegates from both democratic party and liberal party? ### Qu...
### Context: CREATE TABLE Subjects ( subject_id INTEGER, subject_name VARCHAR(120) ) CREATE TABLE Courses ( course_id INTEGER, author_id INTEGER, subject_id INTEGER, course_name VARCHAR(120), course_description VARCHAR(255) ) CREATE TABLE Students ( student_id INTEGER, date_of_regi...
### Context: CREATE TABLE table_1932 ( "Country" text, "Contestant" text, "Age" real, "Height (cm)" real, "Height (ft)" text, "Hometown" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When bahamas is the country what is the height in centimeters...
### Context: CREATE TABLE list ( lastname text, firstname text, grade number, classroom number ) CREATE TABLE teachers ( lastname text, firstname text, classroom number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which teachers teach in class...
### 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 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 people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height real, Weight real ) CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, U...
### Context: CREATE TABLE table_5814 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "Location Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team has a hig...
### Context: CREATE TABLE table_204_637 ( id number, "type" text, "gauge" text, "railway" text, "works no." text, "year" text, "builder" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total number of garratts produced in 1911 ? ...
### Context: CREATE TABLE table_21313327_1 ( written_by VARCHAR, no_in_season VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In season number 3, who were the writers? ### Query: SELECT written_by FROM table_21313327_1 WHERE no_in_season = 3
### Context: CREATE TABLE table_name_15 ( score VARCHAR, game VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Game larger than 4, and a Time of 2:26 resulted in what score? ### Query: SELECT score FROM table_name_15 WHERE game > 4 AND time ...
### Context: CREATE TABLE table_1342149_43 ( result VARCHAR, district VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of the election in the Texas 4 district? ### Query: SELECT result FROM table_1342149_43 WHERE district = "Texas 4"
### Context: CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, connections int, departure_time int, dual_carrier text, flight_days text, flight_id int, flight_number int, from_airport varchar, meal_code text, ...
### 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 ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, t...
### Context: CREATE TABLE table_name_10 ( score VARCHAR, set_2 VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which score has a Set 2 of 17 25, and a Total of 48 75? ### Query: SELECT score FROM table_name_10 WHERE set_2 = "17–25" AND tot...
### Context: CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gende...
### Context: CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text...
### Context: CREATE TABLE table_14248 ( "Elector" text, "Place of birth" text, "Cardinalatial title" text, "Elevated" text, "Elevator" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is listed for the Elector that also has the Cardinalatial titl...
### 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 university ( school VARCHAR, nickname VARCHAR, founded VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List all schools and their nicknames in the order of founded year. ### Query: SELECT school, nickname FROM university ORDER B...
### Context: CREATE TABLE table_66070 ( "Game" text, "Date" text, "Opponent" text, "Result" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record for the opponent St. Louis Cardinals? ### Query: SELECT "Record" FROM table...
### 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 table_46329 ( "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_36526 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Record of 11 12 involved what average attendance figures? ### Query: SEL...
### Context: CREATE TABLE table_59255 ( "Player" text, "Seasons" text, "Games" text, "Goals" text, "Assists" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points were scored by the player who played 363 games? ### Query...
### Context: CREATE TABLE table_name_45 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What 2009 has 39th as the 2011? ### Query: SELECT 2009 FROM table_name_45 WHERE 2011 = "39th"
### Context: CREATE TABLE table_35763 ( "Date" text, "Venue" text, "Opponents" text, "Score" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Opponents of police, and a Venue of selayang municipal council stadium had what date? ##...
### Context: CREATE TABLE CLASS ( class_code VARCHAR, class_room VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the codes of all courses that take place in room KLR209. ### Query: SELECT class_code FROM CLASS WHERE class_room = 'KLR209'
### Context: CREATE TABLE table_204_958 ( id number, "episode" number, "original broadcast date" text, "average" number, "rank" number, "remarks" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many aired in may ? ### Query: SELECT COUNT(*) ...
### Context: 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_...
### Context: CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, charget...
### Context: CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE countries ...
### Context: CREATE TABLE table_name_22 ( driver VARCHAR, laps VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What driver raced for more than 9 laps on grid 7? ### Query: SELECT driver FROM table_name_22 WHERE laps > 9 AND grid = 7
### Context: CREATE TABLE table_name_99 ( league_cup INTEGER, fa_cup VARCHAR, championship VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest league up with less than 3 championships, a total less than 2, and a FA cup l...
### Context: CREATE TABLE table_name_22 ( power VARCHAR, model VARCHAR, displacement VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much power does the 1500 model have with a displacement of 1490cc? ### Query: SELECT power FROM table_name_22 WHERE m...
### Context: CREATE TABLE table_203_208 ( id number, "team" text, "location" text, "venue" text, "capacity" number, "position in 1993-94" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- the spartak , bobruisk venue is has a larger capacity than...
### Context: CREATE TABLE table_38179 ( "Round" text, "Venue" text, "Discipline" text, "Date" text, "Winner" text, "Second" text, "Third" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the winner on 28 December 2007? ### Query: SELE...
### Context: CREATE TABLE table_name_24 ( engine VARCHAR, chassis VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which engine has a Chassis of lotus 44 f2? ### Query: SELECT engine FROM table_name_24 WHERE chassis = "lotus 44 f2"
### Context: CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE medication ( ...
### Context: CREATE TABLE table_58274 ( "Competition" text, "Stage" text, "Venue" text, "Date" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which stage was being played in Romania? ### Query: SELECT "Stage" FROM table_58274 WHERE "...
### Context: 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, TXBZ number, ZZBZ number, WDBZ number, JZKSBM text, JZKSMC text, ...
### 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 table_name_6 ( score VARCHAR, home VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Score that has a Home of montreal canadiens on april 11? ### Query: SELECT score FROM table_name_6 WHERE home = "montre...
### Context: 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 prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, ...
### Context: CREATE TABLE table_name_5 ( drawn VARCHAR, club VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many draws are for the club senghenydd rfc? ### Query: SELECT drawn FROM table_name_5 WHERE club = "senghenydd rfc"
### 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 university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text...
### Context: CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes numb...
### 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 CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ...
### Context: CREATE TABLE table_name_35 ( aprende VARCHAR, centennial VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHich kind of Aprende has a Centennial of 1988? ### Query: SELECT aprende FROM table_name_35 WHERE centennial = "1988"
### Context: CREATE TABLE table_38868 ( "Model" text, "Years" text, "Engine" text, "Displ." text, "Power" text, "Torque" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the power for model 2.0 tdi (cr) dpf, and a Years of 2010 2011? ### ...
### Context: 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 airport ( airport_code ...
### Context: CREATE TABLE table_65182 ( "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. -- What was the score when the tie number was a replay and the home team was mansfield town? ...
### Context: CREATE TABLE table_name_7 ( rank INTEGER, nation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest rank that spain got? ### Query: SELECT MIN(rank) FROM table_name_7 WHERE nation = "spain"
### Context: CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE ReviewTaskResults ( Id number, Review...
### Context: CREATE TABLE table_31312 ( "Name" text, "Position" text, "Country" text, "Years" text, "Games" real, "Minutes" real, "Goals" real, "Assists" real, "Int. caps" real, "Int. goals" real ) -- Using valid SQLite, answer the following questions for the tables provided ab...
### Context: CREATE TABLE table_19040 ( "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_35093 ( "Date" text, "Result" text, "Score" text, "Venue" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Score of 0 0, and a Date of 02-jan-64 had what result? ### Query: SELECT "Result" FROM tabl...
### Context: CREATE TABLE table_5749 ( "Round" real, "Pick" real, "Player" text, "Position" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Player of mike o'quinn, and a Round smaller than 15 had what lowest pick? ### Query:...
### Context: CREATE TABLE student ( ID varchar(5), name varchar(20), dept_name varchar(20), tot_cred numeric(3,0) ) CREATE TABLE teaches ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0) ) CREATE TABLE classroom ( building varchar(...
### Context: CREATE TABLE table_name_87 ( first_elected VARCHAR, constiuency VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Myron Walwyn with a Territorial at-large Constiuency's First Elected Date ### Query: SELECT first_elected F...
### 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 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 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 table_27716 ( "Pick #" real, "MLS Team" text, "Player" text, "Position" text, "Affiliation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many picks are there with an affiliation is the University of California Norcal ...
### 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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_t...
### Context: CREATE TABLE table_64812 ( "Class" text, "Railway number(s)" text, "DRG number(s)" text, "Quantity" real, "Year(s) of manufacture" text, "Axle arrangement ( UIC ) Bauart" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which quantity...
### Context: 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_...
### 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_name_93 ( place VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What place is S.K. Ho in? ### Query: SELECT place FROM table_name_93 WHERE player = "s.k. ho"
### Context: CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender tex...
### Context: CREATE TABLE table_202_22 ( id number, "rank" number, "rider" text, "team" text, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many points did robbie mcewen and cristian moreni score together ? ### Query: SELECT (SELECT...
### Context: CREATE TABLE table_68635 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the average attendance when the record was 17-18? ### Query: SE...
### Context: CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, r...
### 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 Allergy_Type ( Allergy VARCHAR(20), AllergyType VARCHAR(20) ) CREATE TABLE Has_Allergy ( ...
### 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 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...