text
stringlengths
197
8.39k
### Context: CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm...
### 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 InvoiceLine ( InvoiceLineId integer, InvoiceId integer, TrackId integer, UnitPrice decimal(10,2), Quantity integer ) CREATE TABLE PlaylistTrack ( PlaylistId integer, TrackId integer ) CREATE TABLE MediaType ( MediaTypeId integer, Name varchar(120) ) CREAT...
### Context: CREATE TABLE table_name_85 ( year INTEGER, points VARCHAR, engine VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the average year for 0 points and ferrari v8? ### Query: SELECT AVG(year) FROM table_name_85 WHERE points = 0 AND engin...
### 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_name_19 ( lead VARCHAR, season VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Lead in the 2004-05 Season? ### Query: SELECT lead FROM table_name_19 WHERE season = "2004-05"
### 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 CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ...
### 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 table_30062172_3 ( gt4_winner VARCHAR, circuit VARCHAR, gt3_winner VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When charles bateman michael lyons is the gt3 winner and donington park is the circuit who is the gt4 winner? ###...
### 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 procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time )...
### Context: CREATE TABLE table_16406 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the player who is lb and cfl team is saskatchewan roughriders? ### Query: SELEC...
### 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_18646111_13 ( event VARCHAR, athlete VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the event for hans ruep ### Query: SELECT event FROM table_18646111_13 WHERE athlete = "Hans Ruep"
### Context: CREATE TABLE table_64034 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the latest week when the chicago bears are the opponent? ### Query: SELECT MAX("We...
### Context: CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE cost ( ...
### Context: CREATE TABLE users ( user_login VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many users are logged in? ### Query: SELECT COUNT(*) FROM users WHERE user_login = 1
### Context: CREATE TABLE table_name_50 ( jockey VARCHAR, horse_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What jockey is on hard spun? ### Query: SELECT jockey FROM table_name_50 WHERE horse_name = "hard spun"
### Context: CREATE TABLE table_11585313_2 ( date_of_death† VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the date of Henk Hordijk's death? ### Query: SELECT date_of_death† FROM table_11585313_2 WHERE name = "Henk Hordijk"
### Context: CREATE TABLE table_name_45 ( competition VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the competition that took place on October 1, 1994? ### Query: SELECT competition FROM table_name_45 WHERE date = "october 1, 1994"
### 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_DIRE_CD text, MED_...
### 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_78900 ( "Port Fairy FL" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many byes when the draws are less than 0? ### Query: SELECT COUNT(...
### 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 table_11964047_8 ( leading_scorer VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of leading scorer of february 21? ### Query: SELECT COUNT(leading_scorer) FROM table_11964047_8 WHERE date = "Februar...
### Context: CREATE TABLE table_47460 ( "Date" real, "Tracks" text, "Length" text, "Label" text, "Catalog" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Catalog number of the CBS Track 'It's Automatic'? ### Query: SELECT "Catalog" FROM...
### Context: CREATE TABLE table_25800134_12 ( title VARCHAR, airdate VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many episode titles aired on September 25, 1967? ### Query: SELECT COUNT(title) FROM table_25800134_12 WHERE airdate = "September 25, 196...
### Context: CREATE TABLE table_name_74 ( attendance VARCHAR, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people attended the game with home team Witton Albion? ### Query: SELECT attendance FROM table_name_74 WHERE home_team = "witton ...
### Context: CREATE TABLE table_68694 ( "Episode #" real, "Title" text, "Part 1" text, "Part 2" text, "Part 3" text, "Part 4" text, "Part 5" text, "Part 6" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When is Part 1, when Part 4 is on ...
### 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 employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER va...
### Context: CREATE TABLE Payments ( Payment_ID INTEGER, Settlement_ID INTEGER, Payment_Method_Code VARCHAR(255), Date_Payment_Made DATE, Amount_Payment INTEGER ) CREATE TABLE Customer_Policies ( Policy_ID INTEGER, Customer_ID INTEGER, Policy_Type_Code CHAR(15), Start_Date DATE, ...
### Context: CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE vitalp...
### Context: CREATE TABLE table_12171145_1 ( mens_doubles VARCHAR, womens_doubles VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the mens doubles when womens doubles is anastasia chervyakova romina gabdullina? ### Query: SELECT mens_doubles FROM tabl...
### Context: CREATE TABLE table_204_927 ( id number, "title" text, "year" number, "artist(s)" text, "album" text, "writer(s)" text, "producer(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many songs has eightysix been credited for ?...
### Context: CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, ...
### Context: CREATE TABLE table_204_763 ( id number, "county" text, "km" number, "intersecting road" text, "notes" text, "coordinates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of km for range road 293,36 street ne ### Q...
### Context: CREATE TABLE table_61369 ( "Number" real, "Time" real, "Aircraft" text, "Opponent" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What number with the opponent Fokker D.vii have with a time of 1655? ### Query: SELECT S...
### Context: CREATE TABLE table_name_68 ( language VARCHAR, original_title VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the language for trotta ### Query: SELECT language FROM table_name_68 WHERE original_title = "trotta"
### Context: CREATE TABLE table_61971 ( "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 greatest losses for those with more than 13 wins? ### Query...
### Context: CREATE TABLE table_41749 ( "Variant id" text, "5\u2019UTR splice" text, "Coding" text, "3\u2019UTR sequence" text, "GenBank id" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which variant id's coding is 1a 5 when the 5'utr splice is ab...
### Context: CREATE TABLE table_name_84 ( week INTEGER, result VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Week has a Result of l 10 30, and an Attendance larger than 57,312? ### Query: SELECT AVG(week) FROM table_name_84 WH...
### Context: CREATE TABLE table_1341865_37 ( candidates VARCHAR, incumbent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who ran in the race for the seat of incumbent Carl W. Rich? ### Query: SELECT candidates FROM table_1341865_37 WHERE incumbent = "Carl ...
### Context: CREATE TABLE table_75278 ( "Surname" text, "First" text, "D.O.B." text, "Uni#" real, "Bats" text, "Throws" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which batter has the last name Graham? ### Query: SELECT...
### Context: CREATE TABLE table_24358 ( "Type of Record" text, "Attendance" real, "Date/Year" text, "Stadium" text, "Result/Games" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 9 games (28,002 avg.) is the results of the games what is the date...
### Context: CREATE TABLE table_name_31 ( gpu‡ VARCHAR, application VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which GPU has the cushaw application? ### Query: SELECT gpu‡ FROM table_name_31 WHERE application = "cushaw"
### Context: CREATE TABLE table_76244 ( "Name" text, "Gain" real, "Loss" real, "Long" real, "Avg/G" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the sum of all average yards gained when the gained yards is under 1,276 and lost more than 3 y...
### Context: CREATE TABLE table_name_47 ( country VARCHAR, supermarkets VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country has 370 supermarkets? ### Query: SELECT country FROM table_name_47 WHERE supermarkets = "370"
### Context: CREATE TABLE table_1873 ( "Species" text, "Common name" text, "Trinidad" text, "Tobago" text, "Bocas Is." text, "Other" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- there are in tobago species name helicops angulatus ### Query: S...
### 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 PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) ...
### 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 transfers ( row_id number, subject_id numb...
### 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 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_203_244 ( id number, "pos" text, "rider" text, "manufacturer" text, "time/retired" text, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many total riders rode a yamaha bike ? ### Query: SELECT COUN...
### Context: CREATE TABLE table_1686313_1 ( population__2007_ INTEGER, barangay VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the least population 2007 for barangay is poblacion ii ### Query: SELECT MIN(population__2007_) FROM table_1686313_1 WHERE ba...
### Context: CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_...
### Context: CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, C...
### Context: CREATE TABLE table_37829 ( "Rank" real, "Name" text, "Club" text, "Nation" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points for the skater from club btsc? ### Query: SELECT COUNT("Points") FROM table_37829 ...
### 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 t_kc21_t_kc24 ( MED_CLINIC_ID text, MED_SAFE_PAY_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, ...
### Context: CREATE TABLE table_name_48 ( opponent VARCHAR, round VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Opponent has a Round smaller than 3, and a Time of 1:09? ### Query: SELECT opponent FROM table_name_48 WHERE round < 3 A...
### Context: CREATE TABLE table_203_834 ( id number, "rank" number, "census subdivision" text, "province" text, "type" text, "land area\n(km2, 2011)" number, "population 2011" number, "population 2006" number, "population 2001" number, "population 1996" number, "change in % 2...
### 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 record ( ID int, Result text, Swimmer_ID int, Event_ID int ) CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, meter_700 text, ...
### Context: CREATE TABLE table_39064 ( "Draft Year" real, "Player" text, "Position" text, "Round" real, "Overall" real, "NFL Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In 1978 what is the NFL team? ### Query: SELECT "NFL Team" FROM t...
### Context: CREATE TABLE table_name_18 ( team VARCHAR, run_3 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team has run 3 of 1:20.77? ### Query: SELECT team FROM table_name_18 WHERE run_3 = "1:20.77"
### 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_26539 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many prod...
### Context: CREATE TABLE table_name_73 ( roll INTEGER, decile VARCHAR, area VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total of the roll with a Decile of 8, and an Area of hororata? ### Query: SELECT SUM(roll) FROM table_name_73 WHERE d...
### Context: CREATE TABLE table_19967 ( "Province" text, "Prefecture" text, "County" text, "Tujia Population" real, "% of Chinas Tujia Population" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If 0.52% is the percentage of the population in chinas ...
### Context: CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, cul...
### Context: CREATE TABLE table_name_21 ( date VARCHAR, race_title VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the date for race title lakeside ### Query: SELECT date FROM table_name_21 WHERE race_title = "lakeside"
### Context: CREATE TABLE table_29298 ( "Episode No. Episode No. refers to the episodes number in the overall series, whereas Series No. refers to the episodes number in this particular series." real, "Series No." real, "Episode" text, "Director" text, "Writer(s)" text, "Original airdate" text )...
### Context: CREATE TABLE table_name_5 ( score VARCHAR, opponents VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score for the game that Colin Fleming Scott Lipsky played in? ### Query: SELECT score FROM table_name_5 WHERE opponents = "colin fle...
### Context: CREATE TABLE table_train_64 ( "id" int, "hiv_infection" bool, "receiving_parenteral_nutrition" bool, "hypertriglyceridemia" bool, "enteral_feeding" bool, "body_mass_index_bmi" float, "diarrhea" bool, "NOUSE" float ) -- Using valid SQLite, answer the following questions for...
### 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 table_44034 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the home team when the Tie no was 60? ### Query: SELECT "Home team" FROM t...
### 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_15530244_2 ( race VARCHAR, circuit VARCHAR, pole_position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which race number in the Indy F3 Challenge circuit had John Martin in pole position? ### Query: SELECT race FROM tab...
### Context: CREATE TABLE projects ( code text, name text, hours number ) CREATE TABLE assignedto ( scientist number, project text ) CREATE TABLE scientists ( ssn number, name text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the nam...
### Context: CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId numbe...
### Context: CREATE TABLE table_1695 ( "Rank" real, "Airport" text, "Location" text, "IATA" text, "1985\u201386" real, "1990\u201391" real, "1995\u201396" real, "2000\u201301" real, "2005\u201306" real, "2007\u201308" real, "2009\u201310" real, "2010-11" real ) -- Using...
### Context: CREATE TABLE table_18770 ( "Saddle cloth" real, "Horse" text, "Trainer" text, "Jockey" text, "Weight (kg)" text, "Barrier" real, "Placing" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How old is Daniel Morton ### Query: SELEC...
### Context: CREATE TABLE degrees ( year number, campus number, degrees number ) CREATE TABLE enrollments ( campus number, year number, totalenrollment_ay number, fte_ay number ) CREATE TABLE faculty ( campus number, year number, faculty number ) CREATE TABLE campuses ( id...
### Context: CREATE TABLE table_3472 ( "District" real, "Senator" text, "Party" text, "Residence" text, "First elected" text, "Term Limited" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the party affiliation for Senator David Goodman? ...
### Context: CREATE TABLE table_1601792_3 ( genre VARCHAR, station VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the genre for the hot fm station? ### Query: SELECT genre FROM table_1601792_3 WHERE station = "Hot FM"
### 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_36246 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which party had a result of retired democratic hold and a first elected earlier th...
### Context: CREATE TABLE table_53349 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the low grid for gerhard berger for laps over 56? ### Query: SELECT MIN("Grid...
### Context: CREATE TABLE table_name_86 ( social_democratic VARCHAR, democratic_and_social_centre VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Social Democratic has the Democratic and Social Centre of 4.4% 4 seats? ### Query: SELECT social_democratic...
### Context: CREATE TABLE club ( name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List all club names in descending alphabetical order. ### Query: SELECT name FROM club ORDER BY name DESC
### Context: CREATE TABLE table_45685 ( "Wicket" text, "Runs" text, "Batting partners" text, "Batting team" text, "Fielding team" text, "Venue" text, "Season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what season was 577 runs scored?...
### Context: CREATE TABLE table_23492454_1 ( no_in_series VARCHAR, no_in_season VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many episodes in the series are also episode 18 in the season? ### Query: SELECT COUNT(no_in_series) FROM table_23492454_1 WHE...
### Context: CREATE TABLE table_35837 ( "Year" real, "Location" text, "Gold" text, "Silver" text, "Bronze" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who won gold in the games where Pan Cheng-Tsung won silver? ### Query: SELECT "Gold" FROM tabl...
### Context: CREATE TABLE table_name_46 ( against INTEGER, status VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Lowest against for tour match on 21 july 1990? ### Query: SELECT MIN(against) FROM table_name_46 WHERE status = "tour match" A...
### Context: CREATE TABLE table_14543 ( "Tournament" text, "2007" text, "2008" text, "2009" text, "2011" text, "2012" text, "2013" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many sets were played in the tournament that had 4R in 2011...
### 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 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 table_29218221_1 ( fri_3_june VARCHAR, tues_31_may VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Fri 3 June time for the rider whose Tues 31 May time was 19' 18.80 117.215mph? ### Query: SELECT fri_3_june FROM table_29...
### Context: CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE patient ...