text
stringlengths
197
8.39k
### Context: CREATE TABLE table_78942 ( "City" text, "Country" text, "Airport" text, "IATA" text, "ICAO" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Country has a ICAO of EKCH? ### Query: SELECT "Country" FROM table_78942 WHERE "ICAO" = 'ek...
### 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 ReviewTaskResultTypes ( Id n...
### Context: CREATE TABLE table_52396 ( "Rank" real, "Movie" text, "Year" real, "Studio(s)" text, "Opening Week Nett Gross" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest rank of the movie with an opening week net gross less than...
### Context: CREATE TABLE table_61108 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Country has a Total smaller than 284? ### Query: SELECT "Count...
### Context: CREATE TABLE table_name_85 ( class VARCHAR, vessel_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the class of vessel of the ship Hyundai Smart? ### Query: SELECT class FROM table_name_85 WHERE vessel_name = "hyundai smart"
### Context: CREATE TABLE table_49951 ( "Driver" text, "Race 1" text, "Race 2" text, "Race 3" text, "Race 4" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Race 2, when Driver is John Faulkner? ### Query: SELECT "Race 2" FROM table_49951 WH...
### Context: CREATE TABLE table_name_80 ( loss INTEGER, name VARCHAR, gain VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest loss that Jarius Wright has had where he also has had a gain bigger than 1. ### Query: SELECT MIN(loss) FROM tab...
### Context: CREATE TABLE table_2140 ( "Institution" text, "Location" text, "Nickname" text, "Founded" real, "Type" text, "Enrollment" real, "Joined" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the nickname for enrollment being 9000 ...
### Context: CREATE TABLE table_58475 ( "Player" text, "Nationality" text, "Position" text, "Years for Jazz" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player has a nationality of spain? ### Query: SELECT "Player"...
### Context: CREATE TABLE table_name_32 ( res VARCHAR, round VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result with a Round of 3, and an Opponent of keith wisniewski? ### Query: SELECT res FROM table_name_32 WHERE round...
### Context: CREATE TABLE table_18311 ( "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 district did Dave Treen serve? ### Query: SELECT "Dis...
### Context: CREATE TABLE table_24622 ( "Week" real, "Date" text, "Opponent" text, "Location" text, "Final Score" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- During what week was the July 10 game played? ...
### 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_name_87 ( year INTEGER, co_singer VARCHAR, film_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which year has the Co-singer solo and a Film name of bhagya debata? ### Query: SELECT MIN(year) FROM table_name_87 WHERE ...
### Context: CREATE TABLE table_name_2 ( opponent VARCHAR, game VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent when they played after Game 26 and their record was 23-4? ### Query: SELECT opponent FROM table_name_2 WH...
### Context: CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, rel...
### Context: CREATE TABLE table_23680576_3 ( week_37 VARCHAR, week_33 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List all week 37 results when week 33 is 14.3%. ### Query: SELECT week_37 FROM table_23680576_3 WHERE week_33 = "14.3%"
### Context: CREATE TABLE table_name_78 ( years VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the years for elsthorpe school ### Query: SELECT years FROM table_name_78 WHERE name = "elsthorpe school"
### Context: CREATE TABLE table_60789 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the player who won in 1993? ### Query: SELECT "Player" FROM t...
### Context: CREATE TABLE table_22078691_2 ( title VARCHAR, us_viewers__millions_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the title that has 14.59 u.s. viewers (millions)? ### Query: SELECT title FROM table_22078691_2 WHERE us_viewers__millio...
### Context: CREATE TABLE table_7042 ( "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 rank of a nation with fewer than 3 gold medals, more than 2 b...
### Context: CREATE TABLE table_79098 ( "Position" real, "Team" text, "Played" real, "Drawn" real, "Lost" real, "Goals For" real, "Goals Against" real, "Goal Difference" text, "Points 1" real ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
### Context: CREATE TABLE table_67628 ( "Club" text, "Sport" text, "League" text, "Venue" text, "Championships (Years)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Venue has a Sport of baseball, Championships (Years) of 0, a League of milb,...
### 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 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_46296 ( "Rank" real, "Heat" real, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the time when the rank is 14? ### Query: SELECT "Time" FROM table_46296 WHERE "Rank" = ...
### Context: CREATE TABLE gyb ( CLINIC_ID 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, INSURED_STS text, INSU_TYPE...
### 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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, ...
### Context: CREATE TABLE table_name_43 ( kaz_hayashi VARCHAR, block_a VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the kaz hayashi for block A being bushi ### Query: SELECT kaz_hayashi FROM table_name_43 WHERE block_a = "bushi"
### Context: CREATE TABLE table_60153 ( "Team" text, "Opponent" text, "Score" text, "Venue" text, "Round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What round was in canberra stadium? ### Query: SELECT "Round" FROM table_60153 WHERE "Venue" = ...
### Context: CREATE TABLE table_name_94 ( year INTEGER, seats VARCHAR, _percentage_votes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what Year were there 48 of 120 Seats and a % votes larger than 34.18? ### Query: SELECT SUM(year) FROM table_name_...
### Context: CREATE TABLE table_name_62 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is 2009, when 2011 is 'Q2'? ### Query: SELECT 2009 FROM table_name_62 WHERE 2011 = "q2"
### Context: CREATE TABLE table_name_89 ( away_team VARCHAR, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the away team from st kilda? ### Query: SELECT away_team FROM table_name_89 WHERE home_team = "st kilda"
### 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_name_65 ( type VARCHAR, species VARCHAR, genes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What type has an unspecified species and less than 367 genes? ### Query: SELECT type FROM table_name_65 WHERE species = "unspec...
### Context: CREATE TABLE table_24192031_2 ( hometown VARCHAR, height VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many hometowns have a height of m (ft 10 1 2 in)? ### Query: SELECT COUNT(hometown) FROM table_24192031_2 WHERE height = "m (ft 10 1⁄2 i...
### 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 PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal ...
### 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 prescriptions ( subject_id text...
### Context: CREATE TABLE table_name_6 ( socialist_ticket VARCHAR, democratic_ticket VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name on the Socialist ticket when the Democratic ticket is george k. shuler? ### Query: SELECT socialist_ticket F...
### Context: CREATE TABLE table_name_2 ( heat INTEGER, nationality VARCHAR, lane VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest heat of the athlete from spain with a lane less than 7? ### Query: SELECT MAX(heat) FROM table_name_2 WHE...
### Context: CREATE TABLE hz_info ( KH text, KLX number, YLJGDM text, RYBH text ) CREATE TABLE person_info ( RYBH text, XBDM number, XBMC text, XM text, CSRQ time, CSD text, MZDM text, MZMC text, GJDM text, GJMC text, JGDM text, JGMC text, XLDM text, ...
### Context: CREATE TABLE person_info_hz_info ( RYBH text, KH number, KLX number, YLJGDM number ) 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 ...
### 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 treatmen...
### Context: CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, Revie...
### Context: CREATE TABLE table_12570759_2 ( us_viewers__millions_ VARCHAR, directed_by VARCHAR, written_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many millions of U.S. viewers watched the episode directed by Rob Bailey and written by Pam Vea...
### 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 table_204_964 ( id number, "team" text, "seasons" number, "games" number, "wins" number, "ties" number, "losses" number, "goals\nfor" number, "goals\nagainst" number, "goal\ndiff" number, "points" number ) -- Using valid SQLite, answer the followin...
### Context: CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospital...
### Context: CREATE TABLE table_204_823 ( id number, "dates" text, "location" text, "attendance" text, "official guests" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- where was the last date held ? ### Query: SELECT "location" FR...
### Context: CREATE TABLE table_41422 ( "Player" text, "Club" text, "League" real, "Play-offs" real, "FA Cup" real, "FA Trophy" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which league has an FA cup greater than 0, with a to...
### Context: CREATE TABLE table_name_5 ( player VARCHAR, to_par VARCHAR, country VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Player has a To par of 5, and a Country of england? ### Query: SELECT player FROM table_name_5 WHERE to_par = "–5" AND ...
### 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_73372 ( "Election" text, "Mayor" text, "Seat no 1" text, "Seat no 2" text, "Seat no 3" text, "Seat no 4" text, "Seat no 5" text, "Seat no 6" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which election ha...
### Context: CREATE TABLE table_name_50 ( silver INTEGER, gold VARCHAR, nation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the highest amount of silver when gold is 0 for soviet union? ### Query: SELECT MAX(silver) FROM table_name_50 WHERE go...
### Context: CREATE TABLE table_70258 ( "Institution" text, "Main Campus Location" text, "Founded" real, "Mascot" text, "School Colors" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total Founded with a Main Campus Location of liberal? ...
### Context: CREATE TABLE table_62075 ( "Dam constructed" text, "Year completed" real, "Impounded body of water" text, "Reservoir capacity" text, "Dam wall height" text, "Dam type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which dam type wa...
### Context: CREATE TABLE table_name_73 ( label VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the label for December 2004? ### Query: SELECT label FROM table_name_73 WHERE date = "december 2004"
### Context: CREATE TABLE table_79599 ( "Heat" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the time in a heat smaller than 5, in Lane 5, for Vietnam? ### Query: SELECT "Time" FRO...
### Context: CREATE TABLE table_name_5 ( viewers__in_millions_ VARCHAR, run_time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On the episode that had a run time of 24:57, how many million viewers were there? ### Query: SELECT viewers__in_millions_ FROM ta...
### Context: CREATE TABLE table_name_91 ( venue VARCHAR, against VARCHAR, opposing_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which venue has an against value larger than 21 and had Argentina as an opposing team. ### Query: SELECT venue FROM ta...
### Context: CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number in...
### Context: CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, val...
### Context: CREATE TABLE table_name_66 ( team VARCHAR, points INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team has fewer than 203 points? ### Query: SELECT team FROM table_name_66 WHERE points < 203
### Context: CREATE TABLE table_48880 ( "SECR No." real, "SR No." real, "BR No." real, "Builder" text, "Date Delivered" text, "Date Withdrawn" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest BR number with a SECR number of 765...
### Context: CREATE TABLE txmzjzjlb ( 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 venue ( venueid int, venuename varchar ) CREATE TABLE author ( authorid int, authorname varchar ) CREATE TABLE paperdataset ( paperid int, datasetid int ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE paperfield ( fieldid int, ...
### Context: CREATE TABLE table_name_53 ( right_ascension___j2000__ VARCHAR, constellation VARCHAR, declination___j2000__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the right ascension (j2000) when the constellation is sextans and the declina...
### Context: CREATE TABLE table_name_55 ( championship VARCHAR, outcome VARCHAR, opponents_in_final VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Championship, when Outcome is 'runner-up', and when Opponents In Final is 'Gigi Fern ndez Natalia Z...
### Context: CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respi...
### Context: CREATE TABLE Has_amenity ( dormid INTEGER, amenid INTEGER ) CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER ) CREATE TABLE Dorm_amenity ( amenid INTEGER, amenity_name VARCHAR(25) ) CREATE TABLE Dorm ( dormid INTEGER, dorm_name VARCHAR(20), ...
### 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 table_name_29 ( time_retired VARCHAR, driver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the value of time/retired for Jean Alesi? ### Query: SELECT time_retired FROM table_name_29 WHERE driver = "jean alesi"
### Context: CREATE TABLE table_43738 ( "Year" real, "Number" real, "Team" text, "Co-driver" text, "Position" text, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Position, when Laps is 156? ### Query: SELECT "Position" FROM tabl...
### Context: CREATE TABLE table_19033 ( "Rank" real, "Islands Name" text, "Area (sqmi)" real, "Area (km 2 )" real, "Location" text, "Population (2000)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest rank number of those used...
### Context: CREATE TABLE table_58108 ( "Number" text, "Builder" text, "Type" text, "Date" text, "Works number" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what Date was the Works Number 12? ### Query: SELECT "Date" FROM table_58108 WHERE "Wo...
### Context: CREATE TABLE table_25703 ( "Player" text, "Games Played" real, "Minutes" real, "Field Goals" real, "Three Pointers" real, "Free Throws" real, "Rebounds" real, "Assists" real, "Blocks" real, "Steals" real, "Points" real ) -- Using valid SQLite, answer the follow...
### 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 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_203_193 ( id number, "ship name" text, "in service" number, "project number" text, "type" text, "class" text, "comments" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the next ship after yamal ? ### ...
### Context: CREATE TABLE customer ( cust_name VARCHAR, acc_type VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the name of customers who have both saving and checking account types. ### Query: SELECT cust_name FROM customer WHERE acc_type = 'saving' I...
### Context: CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABL...
### Context: CREATE TABLE table_20829 ( "Children/Women over 15" real, "Oblast\\Age of women" text, "15 to 17" real, "18 to 19" real, "20 to 24" real, "25 to 29" real, "30 to 34" real, "35 to 39" real, "40 to 44" real, "45 to 49" real, "50 to 54" real, "55 to 59" real, ...
### 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_name_1 ( _percentage_wt_comp_1 VARCHAR, _percentage_wt_comp_2 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the total number of % wt comp 1 foR % wt comp 2 or 27 ### Query: SELECT COUNT(_percentage_wt_comp_1) FROM ta...
### 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 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 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 airport ( airport_code varchar, airport_name text, airport_location text, state_code varchar, country_name varchar, time_zone_code varchar, minimum_connect_time int ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, mea...
### Context: CREATE TABLE table_52883 ( "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 grid total that had a retired for engine, teo fabi driving, and under 39 l...
### Context: CREATE TABLE table_name_73 ( years VARCHAR, jersey_number_s_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Years of the player with Jersey Number(s) of 44? ### Query: SELECT years FROM table_name_73 WHERE jersey_number_s_ = 44
### 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 table_name_43 ( to_par VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the to par that has ernie els as the player? ### Query: SELECT to_par FROM table_name_43 WHERE player = "ernie els"
### Context: CREATE TABLE table_41665 ( "20 years" text, "2400 kWh/kW p y" real, "2200 kWh/kW p y" real, "2000 kWh/kW p y" real, "1800 kWh/kW p y" real, "1600 kWh/kW p y" real, "1400 kWh/kW p y" real, "1200 kWh/kW p y" real, "1000 kWh/kW p y" real, "800 kWh/kW p y" real ) -- Us...
### Context: CREATE TABLE player_award_vote ( award_id text, year number, league_id text, player_id text, points_won number, points_max number, votes_first text ) CREATE TABLE player_award ( player_id text, award_id text, year number, league_id text, tie text, notes ...
### Context: CREATE TABLE t_kc21_t_kc24 ( MED_CLINIC_ID text, MED_SAFE_PAY_ID number ) 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...
### Context: CREATE TABLE table_2223 ( "Team" text, "Location" text, "Head Coach" text, "Team Captain" text, "Venue" text, "Capacity" real, "Position in 2008" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the location of the team Sa...
### Context: CREATE TABLE table_name_12 ( norwegian__nynorsk_ VARCHAR, danish VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Norwegian (nynorsk) has a Danish of farvel? ### Query: SELECT norwegian__nynorsk_ FROM table_name_12 WHERE danish = "farvel"
### Context: CREATE TABLE storm ( Storm_ID int, Name text, Dates_active text, Max_speed int, Damage_millions_USD real, Number_Deaths int ) CREATE TABLE region ( Region_id int, Region_code text, Region_name text ) CREATE TABLE affected_region ( Region_id int, Storm_ID int, ...
### Context: CREATE TABLE product_characteristics ( product_id number, characteristic_id number, product_characteristic_value text ) CREATE TABLE ref_product_categories ( product_category_code text, product_category_description text, unit_of_measure text ) CREATE TABLE characteristics ( ch...