text
stringlengths
197
8.39k
### Context: CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE treatment ( ...
### Context: CREATE TABLE table_15026 ( "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. -- Name the women's doubles for frederik...
### Context: CREATE TABLE table_56464 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On February 26, who was the leading scorer? ### Query: SELECT "Leadin...
### 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 table_name_87 ( top_10 VARCHAR, events VARCHAR, top_5 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the sum of Top-10 that has Events that's larger than 16, and has a Top-5 that's also larger than 5? ### Query: SELECT C...
### 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 table_name_57 ( inhabitants INTEGER, party VARCHAR, election VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In the election earlier than 2012 how many Inhabitants had a Party of five star movement? ### Query: SELECT SUM(inhabit...
### Context: CREATE TABLE table_name_36 ( distance VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what Distance has a Venue of sale? ### Query: SELECT distance FROM table_name_36 WHERE venue = "sale"
### Context: CREATE TABLE Playlist ( PlaylistId integer, Name varchar(120) ) CREATE TABLE Artist ( ArtistId integer, Name varchar(120) ) CREATE TABLE MediaType ( MediaTypeId integer, Name varchar(120) ) CREATE TABLE Invoice ( InvoiceId integer, CustomerId integer, InvoiceDate date...
### Context: CREATE TABLE table_203_112 ( id number, "choke" text, "constriction (inch)" number, "percentage of lead shot in 30-inch circle at 40 yards" text, "identification (notches)" number, "identification (stars)\n(spanish shotguns)" number ) -- Using valid SQLite, answer the following qu...
### Context: CREATE TABLE table_44824 ( "Game" real, "Date" real, "Opponent" text, "Score" text, "Decision" text, "Location/Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record of game 42, which had a ...
### 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 Students ( student_id INTEGER, date_of_registration DATETIME, date_of_latest_logon DATETIME, login_name VARCHAR(40), password VARCHAR(10), personal_name VARCHAR(40), middle_name VARCHAR(40), family_name VARCHAR(40) ) CREATE TABLE Courses ( course_id INTEGER...
### Context: CREATE TABLE products ( product_id text, product_name text, product_price number, product_description text, other_product_service_details text ) CREATE TABLE performers_in_bookings ( order_id number, performer_id number ) CREATE TABLE clients ( client_id number, addres...
### Context: CREATE TABLE table_65097 ( "Date" text, "Opponent" text, "Score" text, "Venue" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Attendance of New Zealand Scores in bold? ### Query: SELECT "Attendance" FROM ...
### Context: CREATE TABLE table_name_34 ( code VARCHAR, currency VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What code is used to represent the currency of Croatian Kuna? ### Query: SELECT code FROM table_name_34 WHERE currency = "croatian kuna"
### Context: CREATE TABLE appellations ( No INTEGER, Appelation TEXT, County TEXT, State TEXT, Area TEXT, isAVA TEXT ) CREATE TABLE grapes ( ID INTEGER, Grape TEXT, Color TEXT ) CREATE TABLE wine ( No INTEGER, Grape TEXT, Winery TEXT, Appelation TEXT, State TEXT...
### Context: CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icu...
### Context: CREATE TABLE t_kc21 ( MED_CLINIC_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, COMP_ID text, PERSON_ID text, PERSON_NM text, IDENTITY_CARD text, SOC_SRT_CARD text, PERSON_SEX number, PERSON_AGE number, IN_HOSP_DATE time, OUT_HOSP_DATE time, DIFF_P...
### Context: CREATE TABLE table_69514 ( "Club" text, "Played" 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, answer the followin...
### Context: CREATE TABLE table_34511 ( "Rank" text, "Player" text, "Position" text, "Career" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the player who had more than 1,052 points? ### Query: SELECT "Player" FROM table_3451...
### Context: CREATE TABLE table_203_160 ( id number, "rank" number, "heat" number, "nation" text, "competitors" text, "time" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how long did it take the german team to finish the race...
### Context: CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) 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,...
### 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 job_histor...
### Context: CREATE TABLE table_77372 ( "Game" real, "November" real, "Opponent" text, "Score" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the game when on november 27? ### Query: SELECT SUM("Game") FROM table_77372 WHERE ...
### 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 endowment ( endowment_id int, School_id int, donator_name text, amount real ) CREATE TABLE School ( School_id text, School_name text, Location text, Mascot text, Enrollment int, IHSAA_Class text, IHSAA_Football_Class text, County text ) CREATE ...
### 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 table_203_82 ( id number, "first issued" number, "design" text, "slogan" text, "serial format" text, "serials issued" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was year was the first arizona ...
### 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_name_15 ( lead VARCHAR, nation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Lead has a Nation of switzerland? ### Query: SELECT lead FROM table_name_15 WHERE nation = "switzerland"
### 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 table_name_83 ( drawn INTEGER, played VARCHAR, _percentage_won VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest draws for a player larger than 2 with a 100% wins? ### Query: SELECT MIN(drawn) FROM table_name_...
### Context: CREATE TABLE CLASS ( CLASS_CODE varchar(5), CRS_CODE varchar(10), CLASS_SECTION varchar(2), CLASS_TIME varchar(20), CLASS_ROOM varchar(8), PROF_NUM int ) CREATE TABLE COURSE ( CRS_CODE varchar(10), DEPT_CODE varchar(10), CRS_DESCRIPTION varchar(35), CRS_CREDIT float...
### Context: CREATE TABLE customers ( customer_id number, customer_details text ) CREATE TABLE settlements ( settlement_id number, claim_id number, date_claim_made time, date_claim_settled time, amount_claimed number, amount_settled number, customer_policy_id number ) CREATE TABLE ...
### Context: CREATE TABLE table_40931 ( "Place" real, "Rider" text, "Country" text, "Machine" text, "Speed" text, "Time" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What machine has 5 as the place? ### Query: SELECT "Machi...
### Context: CREATE TABLE player ( pid number, pname text, ycard text, hs number ) CREATE TABLE tryout ( pid number, cname text, ppos text, decision text ) CREATE TABLE college ( cname text, state text, enr number ) -- Using valid SQLite, answer the following questions fo...
### Context: CREATE TABLE table_2460 ( "#" real, "Japanese title" text, "R\u014dmaji" text, "Japanese translation" text, "Vocalist" text, "Episodes used" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When momoiro clover z is the vocalist how ma...
### 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 table_4855 ( "Week" real, "Opponent" text, "Result" text, "Stadium" text, "Record" text, "Attenmdance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the attendance at war memorial stadium? ### Query: SELECT "...
### Context: CREATE TABLE table_14012 ( "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's the total amount of USSR that has more than 0 gold, less than 85 silver ...
### Context: CREATE TABLE table_name_71 ( position_in_1999 VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the position of the team that played at the venue, Central, Gomel? ### Query: SELECT position_in_1999 FROM table_name_71 WHERE v...
### Context: CREATE TABLE table_name_60 ( player VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player had a total of 152? ### Query: SELECT player FROM table_name_60 WHERE total = "152"
### 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 table_26920192_5 ( fastest_lap VARCHAR, winning_driver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had the fastest lap when the winning driver was kristian ghedina? ### Query: SELECT fastest_lap FROM table_26920192_5 WHERE w...
### Context: CREATE TABLE table_24498 ( "District" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date successor seated" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what district was the successor seated August 31, 1943? #...
### Context: CREATE TABLE table_42700 ( "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many silvers have a gold greater than 2, a bronze less than 35, china as the nation, with a ...
### Context: CREATE TABLE products_for_hire ( product_id number, product_type_code text, daily_hire_cost number, product_name text, product_description text ) CREATE TABLE customers ( customer_id number, coupon_id number, good_or_bad_customer text, first_name text, last_name tex...
### 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 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 mzjybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH number, BGJGDM text, BGJGMC text, BGRGH text, BGRQ time, BGRXM text, BGSJ time, CJRQ time, JSBBRQSJ time, JSBBSJ time, JYBBH text, JYJGMC text, JYJSGH text, JY...
### Context: CREATE TABLE table_64334 ( "Year" real, "1st Place Team" text, "2nd Place Team" text, "3rd Place Team" text, "4th Place Team" text, "Host Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was the 4th Place Team of t...
### 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_name_11 ( year INTEGER, player_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the sum of year for mark barron ### Query: SELECT SUM(year) FROM table_name_11 WHERE player_name = "mark barron"
### Context: CREATE TABLE table_name_18 ( founded INTEGER, stadium VARCHAR, club VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was the team Club of atl tico de san juan fc who plays at hiram bithorn stadium founded. ### Query: SELECT SUM(foun...
### Context: CREATE TABLE table_32245 ( "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 away team that faced C...
### Context: CREATE TABLE table_48215 ( "Player" text, "Club" text, "Games" real, "Goals" real, "Assists" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number of goals Eisb ren Berlin had along with 13 points ...
### Context: CREATE TABLE table_64376 ( "Rank" real, "Show" text, "Episode" text, "Number of Viewers" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Rank has a Show of alcatraz, and a Number of Viewers larger than 1,229,000? ### ...
### Context: CREATE TABLE table_60538 ( "Country" text, "Date" text, "Label" text, "Format" text, "Catalogue number(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Format has a Date of 14 october 2008, and a Label of eagle eye media? ### Q...
### Context: CREATE TABLE table_name_41 ( name VARCHAR, indication VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which study included autoimmune disease and inflammation? ### Query: SELECT name FROM table_name_41 WHERE indication = "autoimmune disease and ...
### Context: CREATE TABLE table_name_54 ( title VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What title was released in 1971? ### Query: SELECT title FROM table_name_54 WHERE year = 1971
### 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 table_13564637_5 ( club VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the club that has 30 points? ### Query: SELECT club FROM table_13564637_5 WHERE points = "30"
### 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_47008 ( "Call sign" text, "Frequency MHz" real, "City of license" text, "ERP W" text, "FCC info" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Average frequency with ERP W of 62? ### Query: SELECT AVG("Frequency MHz...
### Context: CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PostNotices ( Id number, PostId number, PostNotice...
### 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 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 labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, it...
### 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 d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE tran...
### Context: CREATE TABLE table_203_189 ( id number, "year" number, "competition" text, "venue" text, "position" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many competitions did jifar participate in before joining the 10000...
### Context: CREATE TABLE table_50091 ( "Name" text, "Branch" text, "Term began" text, "Term ended" text, "Time in office" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did the term end for the U.S. Marine Corps? ### Query: SELECT "Term ended...
### Context: CREATE TABLE entrepreneur ( Entrepreneur_ID int, People_ID int, Company text, Money_Requested real, Investor text ) CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, Date_of_Birth text ) -- Using valid SQLite, answer the following questions...
### Context: CREATE TABLE table_name_2 ( score VARCHAR, couple VARCHAR, style VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Score has a Couple comprised of jason & edyta, and a Style of freestyle? ### Query: SELECT score FROM table_name_2 WHERE c...
### Context: CREATE TABLE roles ( role_code text, role_name text, role_description text ) CREATE TABLE documents_to_be_destroyed ( document_id number, destruction_authorised_by_employee_id number, destroyed_by_employee_id number, planned_destruction_date time, actual_destruction_date ti...
### Context: CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number )...
### Context: CREATE TABLE table_2850912_1 ( pick__number VARCHAR, college_junior_club_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What daft pick number is the player coming from Regina Pats (WHL)? ### Query: SELECT pick__number FROM table_2850912_1 ...
### Context: CREATE TABLE table_name_2 ( rank VARCHAR, tenure VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Rank of the Character with Tenure of 2011? ### Query: SELECT rank FROM table_name_2 WHERE tenure = "2011"
### Context: CREATE TABLE table_31453 ( "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 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 zzmzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH number, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM text...
### Context: CREATE TABLE table_76085 ( "Name" text, "Year commissioned" real, "Gross head (metres)" real, "Installed capacity (megawatts)" real, "Average annual output (million KWh)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Year c...
### Context: CREATE TABLE table_name_7 ( opponent VARCHAR, season VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which opponent has a Season of 2010/11? ### Query: SELECT opponent FROM table_name_7 WHERE season = "2010/11"
### Context: CREATE TABLE table_61970 ( "Golden Rivers" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the average number of wins for those with less than 2 byes? ###...
### 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 journal_committee ( Editor_ID int, Journal_ID int, Work_Type text ) CREATE TABLE journal ( Journal_ID int, Date text, Theme text, Sales int ) CREATE TABLE editor ( Editor_ID int, Name text, Age real ) -- Using valid SQLite, answer the following quest...
### Context: CREATE TABLE College ( cName varchar(20), state varchar(2), enr numeric(5,0) ) CREATE TABLE Tryout ( pID numeric(5,0), cName varchar(20), pPos varchar(8), decision varchar(3) ) CREATE TABLE Player ( pID numeric(5,0), pName varchar(20), yCard varchar(3), HS nume...
### 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_11261 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- with a record of 73-82 what was the date? ### Query: SELECT "Date" FROM ...
### 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_203_166 ( id number, "pos" text, "no" number, "rider" text, "manufacturer" text, "laps" number, "time" text, "grid" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is at the top o...
### 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 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 Customers ( customer_id INTEGER, customer_first_name VARCHAR(20), customer_last_name VARCHAR(20), customer_address VARCHAR(255), customer_phone VARCHAR(255), customer_email VARCHAR(255), other_customer_details VARCHAR(255) ) CREATE TABLE Financial_Transactions ( ...
### Context: CREATE TABLE table_name_55 ( to_par VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is To Par, when Player is 'Tommy Bolt'? ### Query: SELECT to_par FROM table_name_55 WHERE player = "tommy bolt"
### Context: CREATE TABLE table_20326 ( "Year" real, "Matches" real, "Wins" real, "Losses" real, "No Result" real, "Tied" real, "Success Rate" text, "Position" text, "Summary" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the m...
### Context: CREATE TABLE table_16388398_2 ( home_team VARCHAR, ground VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the home team that played on M.C.G. grounds? ### Query: SELECT home_team FROM table_16388398_2 WHERE ground = "M.C.G."
### Context: CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) 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), ...
### Context: CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE student_record ( student_id int, course_id int, s...
### Context: CREATE TABLE table_18607 ( "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 sitting Representatives are there in the New York ...