text
stringlengths
197
8.39k
### Context: CREATE TABLE table_41725 ( "Name" text, "Position" text, "Number" real, "School/Club Team" text, "Season" text, "Acquisition via" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How was the player in the position of Center acquired? ...
### Context: CREATE TABLE table_39879 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Catalog Nebdj068 was released when? ### Query: SELECT "Date" FROM table_39879 WHERE "Catalog" ...
### Context: CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is averag...
### Context: CREATE TABLE table_40653 ( "Date" text, "Tournament" text, "Winning score" text, "To par" text, "Margin of victory" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the To par score for the tournament wit...
### Context: CREATE TABLE table_56418 ( "Season" text, "Cup FinalDate" text, "WinningTeam" text, "Score" text, "LosingTeam" text, "Cup Final Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date did the Brisbane Lions (1) win? ...
### Context: CREATE TABLE table_23078 ( "Rank" text, "Name" text, "Lifespan" text, "Country" text, "Wins" real, "Majors" real, "Winning span" text, "Span (years)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the winning span fo...
### 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_23235767_1 ( year VARCHAR, opponent_in_the_final VARCHAR, championship VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every year where opponent in the final is John Mcenroe at Wimbledon? ### Query: SELECT year FRO...
### Context: CREATE TABLE table_33727 ( "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 home team for the game...
### Context: CREATE TABLE table_name_89 ( performance VARCHAR, athlete VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the performance of Dire Tune? ### Query: SELECT performance FROM table_name_89 WHERE athlete = "dire tune"
### 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 locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVIN...
### Context: CREATE TABLE table_26503 ( "Rnd" real, "Circuit" text, "LMP Winning Team" text, "LMPC Winning Team" text, "GT Winning Team" text, "GTC Winning Team" text, "Results" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What circuit had...
### Context: CREATE TABLE table_66678 ( "Date(s) Released" text, "Polling institute" text, "Nationalist" text, "Labour" text, "Democratic Alternative" text, "Undecided/ No answer" text, "Lead" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- W...
### 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_68453 ( "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score in the match against Kim Tiilikainen? ### Query: SELECT "Score" FROM ...
### Context: CREATE TABLE table_26575 ( "Processor" text, "Brand name" text, "Model (list)" text, "Cores" real, "L2 Cache" text, "Socket" text, "TDP" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the wattage/TDP associated with mode...
### Context: CREATE TABLE table_name_86 ( music_director VARCHAR, year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name a music director, belonging to a year after 2003? ### Query: SELECT music_director FROM table_name_86 WHERE year > 2003
### Context: CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER ) CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), student_capacity INTEGER, gender VARCHAR(1) ) CREATE TABLE Has_amenity ( dormid INTEGER, amenid INTEGER ) CREATE TABLE Student ( ...
### 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 intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, rout...
### 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 labevents ( row_id number, subject_id number, hadm_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, charttime time ) CREAT...
### Context: CREATE TABLE table_44583 ( "Class" text, "Part 1" text, "Part 2" text, "Part 3" text, "Part 4" text, "Verb meaning" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the verb meaning for Saugen in part 1? ### Query: SELECT "Ve...
### Context: CREATE TABLE table_name_56 ( date VARCHAR, away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date did the away team Mansfield Town play? ### Query: SELECT date FROM table_name_56 WHERE away_team = "mansfield town"
### Context: CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, h...
### Context: CREATE TABLE table_17914 ( "Team" text, "Location" text, "Stadium" text, "Founded" real, "Joined" real, "Head Coach" text, "Captain" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the team, whose captain is Matt Smith, ...
### Context: CREATE TABLE Room ( RoomNumber INTEGER, RoomType VARCHAR(30), BlockFloor INTEGER, BlockCode INTEGER, Unavailable BOOLEAN ) CREATE TABLE Affiliated_With ( Physician INTEGER, Department INTEGER, PrimaryAffiliation BOOLEAN ) CREATE TABLE Appointment ( AppointmentID INTEGE...
### Context: CREATE TABLE table_22824324_2 ( three_pointers INTEGER, rebounds VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest number of three pointers in games where the number of rebounds was 178? ### Query: SELECT MIN(three_pointers) FRO...
### 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 zyjzjlb ( CYBQDM tex...
### Context: CREATE TABLE table_62130 ( "Year" real, "Grand Slam" text, "Round" text, "Winner" text, "Loser" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the grand slam in 1987, when round shows first round, and Ivan Lendl won? ### Query:...
### Context: CREATE TABLE faculty ( faculty INTEGER, YEAR VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many faculty is there in total in the year of 2002? ### Query: SELECT SUM(faculty) FROM faculty WHERE YEAR = 2002
### Context: CREATE TABLE table_56945 ( "Street" text, "West" text, "East" text, "# of lanes" text, "Traffic direction" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the traffic direction of 70th street? ### Query: SELECT "Traffic directio...
### Context: CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE airline ( airline_code varchar, ...
### 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 Votes ( Id number, PostI...
### Context: CREATE TABLE mzjzjlb_jybgb ( YLJGDM_MZJZJLB text, BGDH number, YLJGDM number ) 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 te...
### Context: CREATE TABLE table_37988 ( "School" text, "Team Name" text, "Town" text, "County" text, "School Enrollment (2008\u201310)" real, "Football?" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What school had a team name of the Trojans? ...
### 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 demographic ( subject_id text, ...
### Context: CREATE TABLE table_16577990_1 ( tree_species VARCHAR, central_forest_reserve VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many tree species are in the kitechura reserve? ### Query: SELECT tree_species FROM table_16577990_1 WHERE central_f...
### 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_12013 ( "Rider" text, "Horse" text, "Faults" text, "Round 1 + 2A Points" text, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the horse when the faults are 9 and the total is 46.36 ### Query: SELECT "...
### Context: CREATE TABLE table_name_69 ( total INTEGER, gold VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What average total has 0 as the gold, with 6 as the rank? ### Query: SELECT AVG(total) FROM table_name_69 WHERE gold = 0 AND rank ...
### Context: CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE d_items ( row_id number, itemid number, ...
### Context: CREATE TABLE tryout ( pid number, cname text, ppos text, decision text ) CREATE TABLE player ( pid number, pname text, ycard text, hs number ) CREATE TABLE college ( cname text, state text, enr number ) -- Using valid SQLite, answer the following questions fo...
### Context: CREATE TABLE table_name_3 ( place VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the place when the score is 68-70-68=206? ### Query: SELECT place FROM table_name_3 WHERE score = 68 - 70 - 68 = 206
### 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 job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROV...
### Context: CREATE TABLE table_204_32 ( id number, "season" number, "division" text, "w-l" text, "finish" text, "home" text, "road" text, "gf" number, "ga" number, "coach" text, "playoffs" text, "avg attendance" number ) -- Using valid SQLite, answer the following ques...
### 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 countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE regions ( REGION_ID de...
### 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 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 prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id...
### Context: CREATE TABLE Movie ( mID int, title text, year int, director text ) CREATE TABLE Reviewer ( rID int, name text ) CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) -- Using valid SQLite, answer the following questions for the tables provided abo...
### Context: CREATE TABLE table_name_55 ( week INTEGER, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Total weeks of 49,980 attendance? ### Query: SELECT SUM(week) FROM table_name_55 WHERE attendance = 49 OFFSET 980
### Context: CREATE TABLE table_name_41 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the 2008 for 2012 of sf ### Query: SELECT 2008 FROM table_name_41 WHERE 2012 = "sf"
### Context: CREATE TABLE table_203_694 ( id number, "#" number, "name" text, "took office" text, "left office" text, "party" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- nejat konuk and dervi ş ero ğ lu are from which party ? ### Q...
### Context: CREATE TABLE table_18600760_20 ( ansi_code VARCHAR, latitude VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many ansi codes are there for longitude 46.415037? ### Query: SELECT COUNT(ansi_code) FROM table_18600760_20 WHERE latitude = "46.41...
### Context: CREATE TABLE table_name_28 ( railway_number_s_ VARCHAR, class VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the railway number of a D(rebuild) class? ### Query: SELECT railway_number_s_ FROM table_name_28 WHERE class = "d(rebuild)"
### 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_train_169 ( "id" int, "leukocytes" int, "hemoglobin_a1c_hba1c" float, "urine_albumin_excretion" int, "estimated_glomerular_filtration_rate_egfr" int, "glucola_beverage_gct" int, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following que...
### Context: CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, ce...
### 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_10468 ( "Independent" text, "Lost" real, "Tied" real, "Pct." real, "Years" real, "Total Games" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number lost when the PCT is more than 0.7334 and th...
### Context: CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respir...
### 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_54361 ( "Candidate" text, "Contributions" real, "Loans Received" real, "All Receipts" real, "Operating Expenditures" real, "All Disbursements" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much is the lowest ...
### 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 diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) ...
### Context: CREATE TABLE table_70723 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many gold medals does the country ranked higher than 2 with more than 8 bro...
### Context: CREATE TABLE table_203_873 ( id number, "model name" text, "length" text, "width" text, "height" text, "riders" number, "capacity" number, "description" text, "portable" text, "notes" number ) -- Using valid SQLite, answer the following questions for the tables pro...
### Context: CREATE TABLE table_name_7 ( engine VARCHAR, year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which engine has a Year larger than 1969? ### Query: SELECT engine FROM table_name_7 WHERE year > 1969
### Context: CREATE TABLE table_53738 ( "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. -- Who was the home team when the away...
### Context: CREATE TABLE table_name_59 ( position VARCHAR, years_for_jazz VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which position was active in Jazz in 2002-03? ### Query: SELECT position FROM table_name_59 WHERE years_for_jazz = "2002-03"
### Context: CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity tex...
### Context: CREATE TABLE table_name_43 ( actor VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which actor won in 1966? ### Query: SELECT actor FROM table_name_43 WHERE year = 1966
### 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 restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days te...
### Context: CREATE TABLE table_3703 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For outgoing manager is alb...
### Context: CREATE TABLE table_18703133_6 ( losses VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many losses are there for team tembetary? ### Query: SELECT losses FROM table_18703133_6 WHERE team = "Tembetary"
### Context: CREATE TABLE table_1053802_1 ( main_presenters VARCHAR, region_country VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the main presenter of bulgaria? ### Query: SELECT main_presenters FROM table_1053802_1 WHERE region_country = "Bulgari...
### Context: CREATE TABLE table_28715942_5 ( original_artist VARCHAR, vocal_percussionist VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the original artist when the vocal percussionist is Alexei Kalveks? ### Query: SELECT original_artist FROM table...
### 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_27 ( total INTEGER, gold VARCHAR, bronze VARCHAR, nation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of all total medals with more than 2 bronze medals and more than 1 gold medal for the United ...
### Context: CREATE TABLE table_70472 ( "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. -- What was the winning score of the Buy.com Siouxland Open? ### Quer...
### Context: CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug...
### Context: CREATE TABLE table_59768 ( "Year" real, "Pick" text, "Player" text, "Position" text, "Country" text, "Previous team (League)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Country, when Previous Team (League) is 'Kingston F...
### Context: CREATE TABLE rating ( rid number, mid number, stars number, ratingdate time ) CREATE TABLE reviewer ( rid number, name text ) CREATE TABLE movie ( mid number, title text, year number, director text ) -- Using valid SQLite, answer the following questions for the t...
### Context: CREATE TABLE ref_document_status ( document_status_code text, document_status_description text ) CREATE TABLE circulation_history ( document_id number, draft_number number, copy_number number, employee_id number ) CREATE TABLE documents ( document_id number, document_statu...
### Context: CREATE TABLE table_66466 ( "Sport" text, "Body" text, "Year" text, "Event type" text, "Location" text, "Nations" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What nations participated in 2007? ### Query: SELECT "Nations" FROM tab...
### 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_34550 ( "Rank" real, "Country" text, "International tourist arrivals (2012)" text, "International tourist arrivals (2011)" text, "Change (2011 to 2012)" text, "Change (2010 to 2011)" text ) -- Using valid SQLite, answer the following questions for the tables pro...
### Context: CREATE TABLE table_11219 ( "Stage" text, "Winner" text, "General classification" text, "Points classification" text, "Trofeo Fast Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What stage did team Carrera Jeans-Tassoni have when M...
### Context: CREATE TABLE table_27597 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Position in table" text, "Replaced by" text, "Date of appointment" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
### Context: CREATE TABLE table_name_81 ( venue VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What venue was on 27 May 2000? ### Query: SELECT venue FROM table_name_81 WHERE date = "27 may 2000"
### Context: CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, aller...
### Context: CREATE TABLE table_9828 ( "Model number" text, "sSpec number" text, "Frequency" text, "GPU frequency" text, "L2 cache" text, "I/O bus" text, "Memory" text, "Voltage" text, "Socket" text, "Release date" text, "Part number(s)" text ) -- Using valid SQLite, answer...
### Context: CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_...
### 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_24 ( to_par VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which To par has a Year of 1994? ### Query: SELECT to_par FROM table_name_24 WHERE year = 1994
### Context: CREATE TABLE stadium ( ID int, name text, Capacity int, City text, Country text, Opening_year int ) CREATE TABLE event ( ID int, Name text, Stadium_ID int, Year text ) CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, m...
### Context: CREATE TABLE table_name_36 ( year VARCHAR, championship VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which year was the peter jackson classic? ### Query: SELECT year FROM table_name_36 WHERE championship = "peter jackson classic"
### Context: CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE SuggestedEdi...