text
stringlengths
197
8.39k
### Context: CREATE TABLE t_kc24 ( MED_SAFE_PAY_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, REF_SLT_FLG number, CLINIC_SLT_DATE time, COMP_ID text, PERSON_ID text, FLX_MED_ORG_ID text, INSU_TYPE text, MED_AMOUT number, PER_ACC_PAY number, ...
### Context: CREATE TABLE table_74408 ( "Institution" text, "Location" text, "Mascot" text, "Colors" text, "Affiliation" text, "9\u201312 enrollment" real, "School website" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the team col...
### Context: CREATE TABLE table_name_58 ( driver VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which driver had a grid of 18? ### Query: SELECT driver FROM table_name_58 WHERE grid = "18"
### Context: CREATE TABLE table_70861 ( "School" text, "Team" text, "Division Record" text, "Overall Record" text, "Season Outcome" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the school, when the Team is Senators? ### Query: SELECT "Sch...
### Context: CREATE TABLE table_name_56 ( record VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the team's record on May 17? ### Query: SELECT record FROM table_name_56 WHERE date = "may 17"
### Context: CREATE TABLE table_15368 ( "Category" text, "Film" text, "Director(s)" text, "Country" text, "Nominating Festival" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which director made Mi-temps? ### Query: SELECT "Director(s)" FROM table_...
### Context: CREATE TABLE table_11451 ( "Date" text, "Opponents" text, "Result" text, "Score" text, "Competition" text, "Venue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the result is d, who are the opponents? ### Query: SELECT "Oppon...
### Context: CREATE TABLE table_203_548 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many nations received at least two gold metals ?...
### 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_34352 ( "Season" text, "Player" text, "Position" text, "Nationality" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position did the 2010-11 USA r player have? ### Query: SELECT "Position" FROM tabl...
### Context: CREATE TABLE table_name_50 ( lost INTEGER, goals_against VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the most losses for positions under 15 and 66 goals against? ### Query: SELECT MAX(lost) FROM table_name_50 WH...
### Context: CREATE TABLE table_name_95 ( second_party VARCHAR, first_party VARCHAR, second_member VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the second party that has a conservative first party and second member John Cotes? ### Query: SELEC...
### Context: CREATE TABLE table_62230 ( "Round" real, "Player" text, "Position" text, "Nationality" text, "College/Junior/Club Team (League)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the college/junior/club team (league) when the round...
### Context: CREATE TABLE table_name_71 ( date_of_inauguration VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the date of the inauguration in the row with an entry of lifespan in the lifespan column? ### Query: SELECT date_of_inauguration FROM table_na...
### Context: CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_di...
### Context: CREATE TABLE table_24887326_7 ( attendance INTEGER, away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the attendance of the game where Stoke city was the away team? ### Query: SELECT MIN(attendance) FROM table_24887326_7 WHERE a...
### Context: CREATE TABLE Reservations ( Code INTEGER, Room TEXT, CheckIn TEXT, CheckOut TEXT, Rate REAL, LastName TEXT, FirstName TEXT, Adults INTEGER, Kids INTEGER ) CREATE TABLE Rooms ( RoomId TEXT, roomName TEXT, beds INTEGER, bedType TEXT, maxOccupancy INTEG...
### 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 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 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 table_name_96 ( score INTEGER, opposition VARCHAR, city VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score when the opposition was sussex in liverpool? ### Query: SELECT SUM(score) FROM table_name_96 WHERE opposi...
### Context: CREATE TABLE table_28949 ( "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. -- How many were in district virginia 6? ### Query: SELECT CO...
### 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 fzzmzjzjlb ( HXPLC n...
### 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 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 loan ( loan_ID varchar(3), loan_type varchar(15), cust_ID varchar(3), branch_ID varchar(3), amount int ) CREATE TABLE customer ( cust_ID varchar(3), cust_name varchar(20), acc_type char(1), acc_bal int, no_of_loans int, credit_score int, branch_...
### 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 lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE medication ( ...
### Context: CREATE TABLE table_71907 ( "Year" real, "Men's singles" text, "Women's singles" text, "Men's doubles" text, "Women's doubles" text, "Mixed doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was on the Men's Doubles Team in ...
### Context: CREATE TABLE Maintenance_Engineers ( engineer_id INTEGER, company_id INTEGER, first_name VARCHAR(50), last_name VARCHAR(50), other_details VARCHAR(255) ) CREATE TABLE Maintenance_Contracts ( maintenance_contract_id INTEGER, maintenance_contract_company_id INTEGER, contract_...
### Context: CREATE TABLE table_36487 ( "Name v t e" text, "Pos." text, "Height" text, "Weight" text, "Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the player from club pro recco? ### Query: SELECT "Name v t e" FROM tabl...
### Context: CREATE TABLE table_79411 ( "Rank" real, "Rowers" text, "Country" text, "Time" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the time for the rowers representing great britain? ### Query: SELECT "Time" FROM table...
### Context: CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) C...
### Context: CREATE TABLE table_52902 ( "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 is the home score with an Away...
### Context: CREATE TABLE table_66131 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "TV Time" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent for the game that had 90,287 in...
### Context: CREATE TABLE table_42500 ( "Year" real, "Winner" text, "School" text, "Position" text, "Points" text, "% of Points Possible" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the position of the winner with 792 points? ### Que...
### Context: CREATE TABLE table_name_27 ( location_attendance VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Location Attendance has a Record of 11 34? ### Query: SELECT location_attendance FROM table_name_27 WHERE record = "11–34"
### Context: CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE TagSynonyms ( ...
### Context: CREATE TABLE fgwyjzb ( 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, INSUR...
### Context: CREATE TABLE t_kc22 ( AMOUNT number, CHA_ITEM_LEV number, DATA_ID text, DIRE_TYPE number, DOSE_FORM text, DOSE_UNIT text, EACH_DOSAGE text, EXP_OCC_DATE time, FLX_MED_ORG_ID text, FXBZ number, HOSP_DOC_CD text, HOSP_DOC_NM text, MED_CLINIC_ID text, ME...
### Context: CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, ...
### Context: CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE diagnosis ( diagnosis...
### Context: CREATE TABLE table_name_16 ( attendance INTEGER, visitor VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Visitor of dallas, and a Date of june 12 had what highest attendance? ### Query: SELECT MAX(attendance) FROM table_name_16...
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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, JCZB...
### 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 table_name_97 ( pure_tamil VARCHAR, how_other_iyers_say_it VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the pure tamil for enga athilae ### Query: SELECT pure_tamil FROM table_name_97 WHERE how_other_iyers_say_it = "enga ath...
### 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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttim...
### Context: CREATE TABLE table_16388439_3 ( home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the home team score for brisbane lions ### Query: SELECT home_team AS score FROM table_16388439_3 WHERE home_team = "Brisbane Lions"
### Context: CREATE TABLE table_2664 ( "Ticket / Office" text, "Secretary of State" text, "Comptroller" text, "Attorney General" text, "Treasurer" text, "State Engineer" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the comptroller for off...
### Context: CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_...
### Context: CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE d_items ( row_i...
### Context: CREATE TABLE table_18530 ( "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. -- What year was incumbent barratt o'hara first elected? ### ...
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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...
### Context: CREATE TABLE hz_info ( KH text, KLX number, YLJGDM text, RYBH text ) CREATE TABLE zyjzjlb ( YLJGDM text, JZLSH text, MZJZLSH text, KH text, KLX number, HZXM text, WDBZ number, RYDJSJ time, RYTJDM number, RYTJMC text, JZKSDM text, JZKSMC text,...
### Context: CREATE TABLE table_13411 ( "Overall points" text, "100 m" text, "400 m" text, "110 m H" text, "1500 m" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 110 m H when the 1500 m time is 693 4:37.96 min? ### Query: SELECT "110 m...
### 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 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, thursday varchar, friday varchar, saturday varchar, sunday varchar, ha...
### Context: CREATE TABLE table_name_41 ( home_team VARCHAR, away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points did Carlton score? ### Query: SELECT home_team AS score FROM table_name_41 WHERE away_team = "carlton"
### Context: CREATE TABLE table_name_51 ( icao VARCHAR, city VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the ICAO for city of xi'an ### Query: SELECT icao FROM table_name_51 WHERE city = "xi'an"
### Context: CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varc...
### Context: CREATE TABLE table_40213 ( "Event" text, "2007\u201308" text, "2008\u201309" text, "2009\u201310" text, "2010\u201311" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 2010 11 when the Event is colonial square ladies classic? ...
### Context: CREATE TABLE table_name_17 ( drawn INTEGER, position VARCHAR, goals_for VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the largest drawn number when 14 is the position, and goals for is more than 66? ### Query: SELECT MAX(drawn) FRO...
### Context: CREATE TABLE table_name_90 ( time VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the time for martin kampmann ### Query: SELECT time FROM table_name_90 WHERE opponent = "martin kampmann"
### Context: CREATE TABLE table_10319 ( "Class" text, "Wheel arrangement" text, "LCDR number(s)" text, "SECR numbers" text, "Manufacturer" text, "Year made" text, "Quantity made" text, "Quantity preserved" text, "Year(s) withdrawn" text ) -- Using valid SQLite, answer the following...
### 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 jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE countries ...
### Context: CREATE TABLE table_2765 ( "Series #" real, "Season #" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided...
### Context: CREATE TABLE table_name_62 ( model VARCHAR, seats VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Model had 37-78 seats? ### Query: SELECT model FROM table_name_62 WHERE seats = "37-78"
### Context: CREATE TABLE table_name_25 ( division INTEGER, playoffs VARCHAR, regular_season VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Division when the playoffs were the quarter finals, with a Regular Season of 5th? ### Query: ...
### Context: CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE Votes ( Id number, PostId number, ...
### 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 airports ( apid integer, name text, city text, country text, x real, y real, elevation bigint, iata character varchar(3), icao character varchar(4) ) CREATE TABLE routes ( rid integer, dst_apid integer, dst_ap varchar(4), src_apid bigint, ...
### Context: CREATE TABLE zyjzjlb ( YLJGDM text, JZLSH text, MZJZLSH text, KH text, KLX number, HZXM text, WDBZ number, RYDJSJ time, RYTJDM number, RYTJMC text, JZKSDM text, JZKSMC text, RZBQDM text, RZBQMC text, RYCWH text, CYKSDM text, CYKSMC text, ...
### Context: CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE PostHistory ( Id number, PostHistory...
### Context: CREATE TABLE t_kc22 ( AMOUNT number, CHA_ITEM_LEV number, DATA_ID text, DIRE_TYPE number, DOSE_FORM text, DOSE_UNIT text, EACH_DOSAGE text, EXP_OCC_DATE time, FLX_MED_ORG_ID text, FXBZ number, HOSP_DOC_CD text, HOSP_DOC_NM text, MED_CLINIC_ID text, ME...
### Context: CREATE TABLE t_kc24 ( ACCOUNT_DASH_DATE time, ACCOUNT_DASH_FLG number, CASH_PAY number, CIVIL_SUBSIDY number, CKC102 number, CLINIC_ID text, CLINIC_SLT_DATE time, COMP_ID text, COM_ACC_PAY number, COM_PAY number, DATA_ID text, ENT_ACC_PAY number, ENT_PAY ...
### Context: CREATE TABLE table_56676 ( "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 lowest total when the rank is less than 2 and bronze is more than 0...
### Context: CREATE TABLE table_15977768_1 ( del_pueblo VARCHAR, centennial VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the del pueblo for centennial 1988 ### Query: SELECT del_pueblo FROM table_15977768_1 WHERE centennial = "1988"
### Context: CREATE TABLE table_name_79 ( venue VARCHAR, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the venue of North Melbourne? ### Query: SELECT venue FROM table_name_79 WHERE home_team = "north melbourne"
### 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_69366 ( "Date" text, "Visiting Team" text, "Final Score" text, "Host Team" text, "Stadium" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the final score when the New York Jets were the Visiting Team? ### Qu...
### Context: CREATE TABLE table_name_41 ( gold INTEGER, bronze INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many golds for nations with under 1 bronze? ### Query: SELECT SUM(gold) FROM table_name_41 WHERE bronze < 1
### 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 allergy ...
### 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 procedures_icd ( row_id number, subject_id number, hadm_id number, icd9...
### Context: CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE paperfield ( fieldid int, paperid int ) CREATE TABLE dataset ( datasetid int, datasetname varchar ) CREATE TABLE author ( authorid int, authorname varchar ) CREATE TABLE field ( fieldid int ) CREATE ...
### Context: CREATE TABLE table_name_70 ( record VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Jimmy Smith's opponent's record? ### Query: SELECT record FROM table_name_70 WHERE opponent = "jimmy smith"
### Context: CREATE TABLE table_name_71 ( player VARCHAR, position VARCHAR, college VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Player, when Position is DB, and when College is Saint Mary's? ### Query: SELECT player FROM table_name_71 WHERE p...
### Context: CREATE TABLE table_2306 ( "County" text, "Obama%" text, "Obama#" real, "McCain%" text, "McCain#" real, "Others%" text, "Others#" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When McCain% was 64.8%, what is the Others#? ### Qu...
### Context: CREATE TABLE table_name_29 ( year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the 2nd leg for 2004? ### Query: SELECT 2 AS nd_leg FROM table_name_29 WHERE year = 2004
### 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 mzjzjlb ( HXPLC numb...
### Context: CREATE TABLE table_14649522_1 ( nfl_team VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team does Robert Brooks play with? ### Query: SELECT nfl_team FROM table_14649522_1 WHERE player = "Robert Brooks"
### Context: CREATE TABLE table_name_71 ( written_by VARCHAR, original_air_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the writer for the episode with an Original air date of october 9, 2000? ### Query: SELECT written_by FROM tab...
### Context: CREATE TABLE table_47099 ( "Round" real, "Pick #" real, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average value for Pick #, when Position is Linebacker, when Player is Bob Bruen...
### Context: CREATE TABLE table_name_32 ( length VARCHAR, version VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is listed for the Lengtht that has a Version of Single Version? ### Query: SELECT length FROM table_name_32 WHERE version = "single version...
### Context: CREATE TABLE table_1820752_1 ( distance___ly__ VARCHAR, spectral_type VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the spectral type is g1v, what is the total distance amount? ### Query: SELECT COUNT(distance___ly__) FROM table_1820752_1 W...
### 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 departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE employees ( EMPLOYEE_ID ...
### Context: CREATE TABLE table_7544 ( "Name" text, "Date of Birth" text, "Height" real, "Weight" real, "Spike" real, "Block" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of Weight(s), when Block is 300? ### Query: SE...
### Context: CREATE TABLE table_75240 ( "Outcome" text, "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 tournament against Ekaterina Makarova? ###...
### 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 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...