text
stringlengths
197
8.39k
### 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 table_63733 ( "Pick" real, "Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the team when the college is virginia tech? ### Query: SELECT "Team" FROM table_63733...
### Context: CREATE TABLE body_builder ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show all information about each body builder. ### Query: SELECT * FROM body_builder
### 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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE...
### Context: CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE ReviewRejectionReas...
### Context: CREATE TABLE table_56358 ( "Rank" real, "Player" text, "Country" text, "Earnings( $ )" real, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What nationality is the player ranked 2? ### Query: SELECT "Country" FROM table_56358 WH...
### Context: CREATE TABLE diagnoses ( 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, reli...
### Context: CREATE TABLE Transactions ( transaction_id INTEGER, investor_id INTEGER, transaction_type_code VARCHAR(10), date_of_transaction DATETIME, amount_of_transaction DECIMAL(19,4), share_count VARCHAR(40), other_details VARCHAR(255) ) CREATE TABLE Ref_Transaction_Types ( transact...
### Context: CREATE TABLE table_29675 ( "Week #" text, "Theme" text, "Song Choice" text, "Original Artist" text, "Order #" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the original artist of the Top 12 Men theme? ### Qu...
### Context: CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE c...
### Context: CREATE TABLE table_292 ( "Player" text, "Position" text, "School" text, "Hometown" text, "MLB Draft" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which position did the player from the hometown of Dallas, TX play? ### Query: SELECT "...
### 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_71570 ( "Rank" real, "Name" text, "Nationality" text, "Score" text, "Perfection" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had a perfection percentage of 73.24%? ### Query: SELECT "Name" FROM table_71570 WHE...
### Context: CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback in...
### 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 route ( train_id number, station_id number ) CREATE TABLE weekly_weather ( station_id number, day_of_week text, high_temperature number, low_temperature number, precipitation number, wind_speed_mph number ) CREATE TABLE train ( id number, train_number ...
### Context: CREATE TABLE table_18278508_4 ( status VARCHAR, main_contestant VARCHAR, date_performed VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the status for karanvir bohra and date performed being july 30 ### Query: SELECT status FROM table_1...
### Context: CREATE TABLE table_name_30 ( transfer_window VARCHAR, transfer_fee VARCHAR, moving_to VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Transfer window, when the Transfer fee is 'free', and when the item 'Moving to' is Norwich City?...
### Context: CREATE TABLE table_36844 ( "Game" real, "December" real, "Opponent" text, "Score" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum for December against the vancouver canucks earlier than game 33? ### Query:...
### Context: CREATE TABLE table_train_36 ( "id" int, "do_not_resuscitate_dnr" bool, "active_infection" bool, "sepsis" bool, "vasospastic_diathesis" bool, "septic_shock" bool, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided abov...
### Context: CREATE TABLE station_company ( Station_ID int, Company_ID int, Rank_of_the_Year int ) CREATE TABLE company ( Company_ID int, Rank int, Company text, Headquarters text, Main_Industry text, Sales_billion real, Profits_billion real, Assets_billion real, Market_...
### Context: CREATE TABLE Documents ( Document_ID INTEGER, Document_Type_Code CHAR(15), Project_ID INTEGER, Document_Date DATETIME, Document_Name VARCHAR(255), Document_Description VARCHAR(255), Other_Details VARCHAR(255) ) CREATE TABLE Statements ( Statement_ID INTEGER, Statement_D...
### Context: CREATE TABLE table_23302 ( "Rank" real, "No." real, "Pos" text, "Player" text, "Premier League" real, "FA Cup" real, "League Cup" real, "Champions League" real, "Club World Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tabl...
### 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 table_39130 ( "2004/ 05" text, "2005/ 06" text, "2007/ 08" text, "2008/ 09" text, "2009/ 10" text, "2010/ 11" text, "2011/ 12" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what year had a dnq of 11 ### Query: SEL...
### 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_21058836_1 ( record VARCHAR, game VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the record for game 9? ### Query: SELECT record FROM table_21058836_1 WHERE game = 9
### Context: CREATE TABLE table_name_45 ( draws INTEGER, season VARCHAR, losses VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Draws with less than 18 losses for north melbourne later than 1926? ### Query: SELECT MA...
### 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_4489 ( "Region" text, "Operator" text, "Licence award date" text, "On air date" text, "Closure date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the license award date for the ensemble from South Wales and...
### Context: CREATE TABLE table_name_54 ( authority VARCHAR, roll VARCHAR, decile VARCHAR, area VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What authority controls the school in Levin that has a decile of 6, and a roll of 226? ### Query: SELECT a...
### Context: CREATE TABLE table_41978 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Bronze has a Silver of 15, and a Gold smaller than 20? ### Query: SELECT...
### Context: CREATE TABLE table_name_46 ( game INTEGER, score VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Game is the lowest one that has a Score of 2 3 ot, and Points larger than 76? ### Query: SELECT MIN(game) FROM table_name_...
### Context: CREATE TABLE table_name_38 ( time VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Time with a Score that is 80-34? ### Query: SELECT time FROM table_name_38 WHERE score = "80-34"
### Context: CREATE TABLE table_2985664_8 ( innings INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest value for innings? ### Query: SELECT MIN(innings) FROM table_2985664_8
### Context: CREATE TABLE table_35457 ( "Game" real, "January" real, "Opponent" text, "Score" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Points is the highest one that has a Game smaller than 43, and a Jan...
### 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 table_name_6 ( team_1 VARCHAR, team_2 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is team 1 when team 2 is gaz lec ajaccio (d3)? ### Query: SELECT team_1 FROM table_name_6 WHERE team_2 = "gazélec ajaccio (d3)"
### Context: CREATE TABLE table_name_44 ( fate VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the fate on 27 june 1942? ### Query: SELECT fate FROM table_name_44 WHERE date = "27 june 1942"
### Context: CREATE TABLE table_33934 ( "Year" real, "Team" text, "Wins" real, "Points" real, "Championship Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Year is the highest that has a Team of walker racing, and Wins larger than 1? #...
### Context: CREATE TABLE table_name_51 ( score VARCHAR, visitor VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score when the visitor was pittsburgh? ### Query: SELECT score FROM table_name_51 WHERE visitor = "pittsburgh"
### 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_17361 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
### Context: CREATE TABLE table_42042 ( "Date" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Set 4" text, "Set 5" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total for set 2 17-25? ### Query...
### Context: CREATE TABLE Customers ( customer_id INTEGER, customer_first_name VARCHAR(50), customer_middle_initial VARCHAR(1), customer_last_name VARCHAR(50), gender VARCHAR(1), email_address VARCHAR(255), login_name VARCHAR(80), login_password VARCHAR(20), phone_number VARCHAR(255)...
### Context: CREATE TABLE table_name_55 ( dance VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In 2004, what is the Dance? ### Query: SELECT dance FROM table_name_55 WHERE year = 2004
### 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 table_name_38 ( l2_cache VARCHAR, release_price___usd__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the L2 Cache for the processor with a release price of $496? ### Query: SELECT l2_cache FROM table_name_38 WHERE releas...
### Context: CREATE TABLE table_79518 ( "Position" real, "Athlete" text, "Compulsory" real, "Voluntary" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the position that has a total less than 66.5m, a compulsory of 30.9 and volun...
### Context: CREATE TABLE t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_ID number ) CREATE TABLE t_kc21 ( CLINIC_ID text, CLINIC_TYPE text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, I...
### 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_23796 ( "Interior/Roof" text, "Black (UA)" real, "Red (E8)" real, "White (ZR)" real, "Green (SW)" real, "Totals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different total results are there for the mo...
### Context: CREATE TABLE Apartment_Buildings ( building_id INTEGER, building_short_name CHAR(15), building_full_name VARCHAR(80), building_description VARCHAR(255), building_address VARCHAR(255), building_manager VARCHAR(50), building_phone VARCHAR(80) ) CREATE TABLE View_Unit_Status ( ...
### Context: CREATE TABLE table_59501 ( "Date" text, "Opponents" text, "H / A" text, "Result F \u2013 A" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the total attendance for H/A of A and opponents of wolverhampton wander...
### Context: CREATE TABLE table_204_395 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what venue came before gothenburg , sweden ? ### Query: SELECT "venue"...
### Context: CREATE TABLE table_12724 ( "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 is the Home team of the Kidderminster Harriers Away game? ### Query: SELECT "Home te...
### Context: CREATE TABLE table_name_67 ( set_2 VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Set 2, when Date is May 31? ### Query: SELECT set_2 FROM table_name_67 WHERE date = "may 31"
### 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_78402 ( "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 above. -- How many h...
### 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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, ...
### Context: CREATE TABLE table_48759 ( "Year" real, "Party" text, "Governor" text, "Lieutenant Governor" text, "Comptroller" text, "Attorney General" text, "U.S. Senate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times what the...
### Context: CREATE TABLE head ( age INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many heads of the departments are older than 56 ? ### Query: SELECT COUNT(*) FROM head WHERE age > 56
### Context: CREATE TABLE table_11318462_5 ( open_1st_viii VARCHAR, u15_6th_iv VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what are all the open 1st viii with u15 6th iv being bgs ### Query: SELECT open_1st_viii FROM table_11318462_5 WHERE u15_6th_iv = "...
### Context: CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE PostHistoryTypes ( Id number...
### Context: CREATE TABLE gwyjzb ( 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_17288825_7 ( location_attendance VARCHAR, high_assists VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- At what location and what was the attendance when Rafer Alston (10) achieved high assists? ### Query: SELECT location_atten...
### Context: CREATE TABLE jybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH text, BGJGDM text, BGJGMC text, BGRGH text, BGRQ time, BGRXM text, BGSJ time, CJRQ time, JSBBRQSJ time, JSBBSJ time, JYBBH text, JYJGMC text, JYJSGH text, JYJSQM...
### Context: CREATE TABLE Ref_Document_Types ( Document_Type_Code CHAR(15), Document_Type_Name VARCHAR(255), Document_Type_Description VARCHAR(255) ) CREATE TABLE All_Documents ( Document_ID INTEGER, Date_Stored DATETIME, Document_Type_Code CHAR(15), Document_Name CHAR(255), Document_De...
### Context: CREATE TABLE table_name_53 ( first_elected INTEGER, district VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which First elected has a District of south carolina 2? ### Query: SELECT MIN(first_elected) FROM table_name_53 WHERE district = "south ...
### 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_1329 ( "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 above...
### Context: CREATE TABLE table_name_82 ( province VARCHAR, capital VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which province has muju as the capital? ### Query: SELECT province FROM table_name_82 WHERE capital = "muju"
### 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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gend...
### Context: CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER ) CREATE TABLE Has_amenity ( dormid INTEGER, amenid INTEGER ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, ...
### Context: CREATE TABLE table_49091 ( "Place" text, "Player" text, "Country" text, "Score" text, "To Par" real, "Money ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Player, when To Par is '7', and when Score is '73-72-67-75=287...
### Context: CREATE TABLE table_45129 ( "Rank" real, "Company" text, "Headquarters" text, "Industry" text, "Sales (billion $)" real, "Profits (billion $)" real, "Assets (billion $)" real, "Market Value (billion $)" real ) -- Using valid SQLite, answer the following questions for the ta...
### 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_5 ( opponent VARCHAR, surface VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the Opponent on a Hard (i) Surface? ### Query: SELECT opponent FROM table_name_5 WHERE surface = "hard (i)"
### Context: CREATE TABLE table_39349 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Game Site" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the site of the game that had an attendanc...
### Context: CREATE TABLE table_name_26 ( free_or_pay VARCHAR, years VARCHAR, provider VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What kind of Free or pay has Years of 2006 and a Provider of bt tv (formerly bt vision)? ### Query: SELECT free_or_pay ...
### Context: CREATE TABLE jybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH text, BGJGDM text, BGJGMC text, BGRGH text, BGRQ time, BGRXM text, BGSJ time, CJRQ time, JSBBRQSJ time, JSBBSJ time, JYBBH text, JYJGMC text, JYJSGH text, JYJSQM...
### 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 table_21888 ( "Tie no" real, "Home team" text, "Score 1" text, "Away team" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the home team when Burnley were the away team? ### Query: SELECT "Home te...
### 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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE...
### 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_name_80 ( characters VARCHAR, title VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the characters from the movie Suppressed Duck? ### Query: SELECT characters FROM table_name_80 WHERE title = "suppressed duck"
### Context: CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location 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 transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit ...
### Context: CREATE TABLE table_42203 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Country had a Score of 75-68=143? ### Query: SELECT "Country" FROM table_42203 WHERE "Sc...
### Context: CREATE TABLE table_name_78 ( silver VARCHAR, nation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many silvers did Turkey get? ### Query: SELECT silver FROM table_name_78 WHERE nation = "turkey"
### Context: CREATE TABLE table_name_33 ( grid INTEGER, manufacturer VARCHAR, rider VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Count the Grid which has a Manufacturer of aprilia, and a Rider of bradley smith? ### Query: SELECT AVG(grid) FROM table_n...
### 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_30105 ( "Series #" real, "Season #" real, "Title" text, "Written by" text, "Original air date" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who were the writers of the episode tha...
### Context: CREATE TABLE table_name_61 ( appointed_by VARCHAR, date_appointed VARCHAR, party VARCHAR, province__division_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who appointed the conservative from Ontario on June 18, 1993? ### Query: SELECT...
### Context: CREATE TABLE table_28238 ( "NSG Nr." real, "Name of the nature reserve" text, "District / Town" text, "Area (ha)" text, "Date established" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What town has the reserve with an area of 163,62? ...
### Context: 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 real, Number_Deaths int ) CREATE TABLE region ( Region_id int, Region_cod...
### Context: CREATE TABLE table_23184448_4 ( assists VARCHAR, minutes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of assists for 321 minutes ### Query: SELECT COUNT(assists) FROM table_23184448_4 WHERE minutes = 321
### Context: CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,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) ) ...
### Context: CREATE TABLE table_41503 ( "Number" real, "Name" text, "Builder" text, "Type" text, "Date" text, "Works number" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date for Orangeville? ### Query: SELECT "Date" FROM table_41...