text
stringlengths
197
8.39k
### Context: CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admissi...
### Context: CREATE TABLE table_name_76 ( grid INTEGER, time_retired VARCHAR, laps VARCHAR, constructor VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the average Grid for a Maserati with less than 80 laps, and a Time/Retired of +2 laps? ### ...
### Context: CREATE TABLE table_19144 ( "Season" real, "Class" text, "Team" text, "Motorcycle" text, "Type" text, "Races" real, "Wins" real, "Podiums" real, "Poles" real, "Fastest Laps" real, "Pts" text, "Position" text ) -- Using valid SQLite, answer the following ques...
### Context: CREATE TABLE table_18388 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the candidate elected to the democratic party in 19...
### Context: CREATE TABLE table_17012578_6 ( pa VARCHAR, blank_ends VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the blank ends at 1, what is the PA? ### Query: SELECT COUNT(pa) FROM table_17012578_6 WHERE blank_ends = 1
### Context: CREATE TABLE table_203_249 ( id number, "position" number, "song title" text, "artist" text, "sales" number, "highest position" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what position did madonna rank on the top 40 singles of...
### Context: CREATE TABLE table_203_180 ( id number, "#" number, "weekend end date" text, "film" text, "weekend gross (millions)" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what movie grossed the most amount of money in one wee...
### Context: CREATE TABLE table_name_94 ( qual_1 VARCHAR, qual_2 VARCHAR, best VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the qual 1 when the qual 2 has no time and the best is 1:16.776? ### Query: SELECT qual_1 FROM table_name_94 WHERE qual...
### Context: CREATE TABLE table_14562722_1 ( original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the airdate of the episode that was directed by giancarlo volpe and written by is john o'bryan...
### 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 diagnoses ( 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_d...
### Context: CREATE TABLE mountain ( Name VARCHAR, Mountain_ID VARCHAR ) CREATE TABLE climber ( Name VARCHAR, Mountain_ID VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the names of mountains that do not have any climber. ### Query: SELECT Nam...
### 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 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 regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NA...
### Context: CREATE TABLE table_4235 ( "Series #" real, "Season #" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (million)" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
### Context: CREATE TABLE table_name_87 ( date INTEGER, catalog VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the lowest date for catalog of 6561910008-1 ### Query: SELECT MIN(date) FROM table_name_87 WHERE catalog = "6561910008-1"
### Context: CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug...
### Context: CREATE TABLE t_kc22 ( MED_EXP_DET_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, MED_EXP_BILL_ID text, SOC_SRT_DIRE_CD text, SOC_SRT_DIRE_NM text, DIRE_TYPE number, CHA_ITEM_LEV number, MED_INV_ITEM_TYPE text, MED_DIRE_CD text, MED_...
### Context: CREATE TABLE table_name_31 ( catalogno VARCHAR, remark VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Catalogno was #160 us? ### Query: SELECT catalogno FROM table_name_31 WHERE remark = "#160 us"
### Context: CREATE TABLE stadium ( id int, name text, Home_Games int, Average_Attendance real, Total_Attendance real, Capacity_Percentage real ) CREATE TABLE injury_accident ( game_id int, id int, Player text, Injury text, Number_of_matches text, Source text ) CREATE T...
### Context: CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, ...
### Context: CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime ...
### 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 medicine ( id int, name text, Trade_Name text, FDA_approved text ) CREATE TABLE enzyme ( id int, name text, Location text, Product text, Chromosome text, OMIM int, Porphyria text ) CREATE TABLE medicine_enzyme_interaction ( enzyme_id int, m...
### 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 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_32639 ( "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 home team has a score of 11.9 ...
### 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 appellations ( No INTEGER, Appelation TEXT, County TEXT, State TEXT, Area TEXT, isAVA TEXT ) CREATE TABLE wine ( No INTEGER, Grape TEXT, Winery TEXT, Appelation TEXT, State TEXT, Name TEXT, Year INTEGER, Price INTEGER, Score INTEGER,...
### Context: CREATE TABLE table_17236 ( "Rnd" real, "Circuit" text, "WSC Winning Team" text, "GT1 Winning Team" text, "GT2 Winning Team" text, "GT3 Winning Team" text, "Results" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the GT2 ...
### Context: CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, ...
### Context: CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE transfers ( row_id number, subject_id nu...
### Context: CREATE TABLE table_15780049_8 ( date VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the date for sacramento ### Query: SELECT date FROM table_15780049_8 WHERE team = "Sacramento"
### 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 microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time...
### Context: CREATE TABLE fare ( fare_id int, from_airport varchar, to_airport varchar, fare_basis_code text, fare_airline text, restriction_code text, one_direction_cost int, round_trip_cost int, round_trip_required varchar ) CREATE TABLE food_service ( meal_code text, meal...
### Context: CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text...
### Context: CREATE TABLE table_203_538 ( id number, "flight" text, "date" text, "payload nickname" text, "payload" text, "orbit" text, "result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in what year did the first h ii flight take place...
### Context: CREATE TABLE table_256286_54 ( meas_num INTEGER, no_votes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the no votes was 322682, what was the max meas. number? ### Query: SELECT MAX(meas_num) FROM table_256286_54 WHERE no_votes = 322682
### Context: CREATE TABLE table_name_23 ( record VARCHAR, score VARCHAR, home VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Record has a Score of 2 4, and a Home of quebec nordiques? ### Query: SELECT record FROM table_name_23 WHERE score = "2–4"...
### Context: CREATE TABLE repair ( repair_ID int, name text, Launch_Date text, Notes text ) CREATE TABLE machine ( Machine_ID int, Making_Year int, Class text, Team text, Machine_series text, value_points real, quality_rank int ) CREATE TABLE repair_assignment ( technic...
### 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_10798421_1 ( village__german_ VARCHAR, village__slovenian_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Provide me with the name of all the village (German) that are part of the village (Slovenian) with sele borovnica. ### ...
### Context: CREATE TABLE table_name_9 ( tournament VARCHAR, opponent_in_final VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In which Tournament was Mansour Bahrami Eric Winogradsky ### Query: SELECT tournament FROM table_name_9 WHERE opponent_in_final = "...
### Context: CREATE TABLE table_80025 ( "Model" text, "Seats" text, "Period" text, "Built" real, "Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Between which years were there 241 fokker 70 model cabins built? ### Query: SELECT "Period" FR...
### Context: CREATE TABLE table_name_51 ( remixed_by VARCHAR, year VARCHAR, version VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which long version was remixed in 1986? ### Query: SELECT remixed_by FROM table_name_51 WHERE year = 1986 AND version = "l...
### Context: CREATE TABLE table_8823 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is City, when Country is 'Kuwait'? ### Query: SELECT "City" FROM table_8823 WHERE "Country" ...
### Context: CREATE TABLE table_2159571_2 ( reason_for_change VARCHAR, district VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every reason for change for the Washington 3rd District? ### Query: SELECT reason_for_change FROM table_2159571_2 WHERE di...
### Context: CREATE TABLE table_train_116 ( "id" int, "mini_mental_state_examination_mmse" int, "hemoglobin_a1c_hba1c" float, "body_weight" float, "hepatic_disease" bool, "geriatric_depression_scale_gds" int, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tab...
### Context: CREATE TABLE table_17157 ( "Player" text, "No.(s)" text, "Height in Ft." text, "Position" text, "Years for Rockets" text, "School/Club Team/Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which school, club team, or country ...
### Context: CREATE TABLE table_16751596_12 ( republican VARCHAR, dates_administered VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On November 14, 2007, how many different Republican: Jeff Sessions are there? ### Query: SELECT COUNT(republican) AS :_jeff_s...
### Context: CREATE TABLE table_60863 ( "Round" real, "Circuit" text, "Date" text, "Pole Position" text, "Fastest Lap" text, "Winning Driver" text, "Winning Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had the pole position on 7 ...
### Context: CREATE TABLE table_203_538 ( id number, "flight" text, "date" text, "payload nickname" text, "payload" text, "orbit" text, "result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- no flight other than what flight was canceled ? ...
### Context: CREATE TABLE table_55684 ( "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. -- When was the game at Essendon? ###...
### 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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number,...
### Context: CREATE TABLE table_72675 ( "Round" text, "Race" real, "Circuit" text, "Date" text, "Pole Position" text, "Fastest Lap" text, "Winning driver" text, "Winning team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which race num...
### Context: CREATE TABLE table_name_50 ( score VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score when 43,746 attended? ### Query: SELECT score FROM table_name_50 WHERE attendance = "43,746"
### Context: CREATE TABLE diagnoses ( 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_d...
### Context: CREATE TABLE table_13755296_1 ( season__number INTEGER, directed_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the season number of the episode directed by Dan Attias? ### Query: SELECT MIN(season__number) FROM table_13755296_1 WHERE...
### Context: CREATE TABLE mzjzjlb ( YLJGDM text, JZLSH text, KH text, KLX number, MJZH text, HZXM text, NLS number, NLY number, ZSEBZ number, JZZTDM number, JZZTMC text, JZJSSJ time, TXBZ number, ZZBZ number, WDBZ number, JZKSBM text, JZKSMC text, ...
### Context: CREATE TABLE Enrolled_in ( StuID INTEGER, CID VARCHAR(7), Grade VARCHAR(2) ) CREATE TABLE Faculty ( FacID INTEGER, Lname VARCHAR(15), Fname VARCHAR(15), Rank VARCHAR(15), Sex VARCHAR(1), Phone INTEGER, Room VARCHAR(5), Building VARCHAR(13) ) CREATE TABLE Member...
### Context: CREATE TABLE sampledata15 ( sample_pk number, state text, year text, month text, day text, site text, commod text, source_id text, variety text, origin text, country text, disttype text, commtype text, claim text, quantity number, growst text,...
### Context: CREATE TABLE table_name_95 ( dissolved VARCHAR, elected VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was dissolved that was elected in 1553? ### Query: SELECT dissolved FROM table_name_95 WHERE elected = "1553"
### Context: CREATE TABLE person_info ( CSD text, CSRQ time, GJDM text, GJMC text, JGDM text, JGMC text, MZDM text, MZMC text, RYBH text, XBDM number, XBMC text, XLDM text, XLMC text, XM text, ZYLBDM text, ZYMC text ) CREATE TABLE zyjzjlb ( CYBQDM tex...
### Context: CREATE TABLE t_kc22 ( MED_EXP_DET_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, MED_EXP_BILL_ID text, SOC_SRT_DIRE_CD text, SOC_SRT_DIRE_NM text, DIRE_TYPE number, CHA_ITEM_LEV number, MED_INV_ITEM_TYPE text, MED_DIRE_CD text, MED_...
### Context: CREATE TABLE table_32554 ( "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 venue saw a crowd larger than ...
### Context: CREATE TABLE table_name_5 ( jury_points VARCHAR, televote_points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Jury Points value when there were 3 Televote Points? ### Query: SELECT jury_points FROM table_name_5 WHERE televote_poi...
### 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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_ti...
### Context: CREATE TABLE table_name_58 ( position VARCHAR, appearances VARCHAR, leeds_career VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position does the player who has made 244 appearances with a Leeds career of 1981 1989 play? ### Query: SEL...
### Context: CREATE TABLE table_name_16 ( loss VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Record of 89-67 had what loss? ### Query: SELECT loss FROM table_name_16 WHERE record = "89-67"
### Context: CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE requirement ( requirement_id int...
### 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_203_308 ( id number, "athlete" text, "nation" text, "olympics" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in what year was karine ruby '...
### Context: CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, ...
### Context: CREATE TABLE Statements ( Statement_ID INTEGER, Statement_Details VARCHAR(255) ) CREATE TABLE Accounts ( Account_ID INTEGER, Statement_ID INTEGER, Account_Details VARCHAR(255) ) CREATE TABLE Ref_Document_Types ( Document_Type_Code CHAR(15), Document_Type_Name VARCHAR(255), ...
### Context: CREATE TABLE table_name_81 ( elected VARCHAR, party VARCHAR, district VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Party of republican, and a District of 7th is what elected? ### Query: SELECT elected FROM table_name_81 WHERE party = "rep...
### Context: CREATE TABLE table_name_80 ( drawn INTEGER, lost VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Drawn has a Lost larger than 8, and Points smaller than 7? ### Query: SELECT SUM(drawn) FROM table_name_80 WHERE lost > 8 ...
### Context: CREATE TABLE table_name_94 ( attendance INTEGER, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest attendance on November 18? ### Query: SELECT MIN(attendance) FROM table_name_94 WHERE date = "november 18"
### Context: CREATE TABLE table_19427 ( "State/UT Code" real, "India/State/UT" text, "Literate Persons (%)" text, "Males (%)" text, "Females (%)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the percentage of literate people where india is...
### Context: CREATE TABLE table_5341 ( "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Gold of 0, and a Bronze smaller than 0 and what is the sum of the silver? ### Query: SELECT SUM(...
### Context: CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_flight text, arrival_time int, connections int, departure_time int, dual_carrier text, flight_days text, ...
### Context: CREATE TABLE Sales ( sales_transaction_id INTEGER, sales_details VARCHAR(255) ) CREATE TABLE Purchases ( purchase_transaction_id INTEGER, purchase_details VARCHAR(255) ) CREATE TABLE Ref_Transaction_Types ( transaction_type_code VARCHAR(10), transaction_type_description VARCHAR(80...
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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, ...
### Context: CREATE TABLE diagnoses ( 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_d...
### 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 table_3625 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What party represents the district with john g. jackson? ##...
### Context: CREATE TABLE table_18217753_1 ( series__number VARCHAR, us_viewers__millions_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many series had viewers totaling 23.93 million? ### Query: SELECT COUNT(series__number) FROM table_18217753_1 WHERE...
### Context: CREATE TABLE table_name_10 ( distance VARCHAR, stage VARCHAR, winner VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What distance did giovanni lombardi win after stage 5? ### Query: SELECT distance FROM table_name_10 WHERE stage > 5 AND win...
### Context: CREATE TABLE table_43063 ( "Date" text, "Cover model" text, "Centerfold model" text, "Interview subject" text, "20 Questions" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the Interview Subject when the 20 Questions was William...
### Context: CREATE TABLE table_name_31 ( attendance VARCHAR, visitor VARCHAR, home VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people were at Washington's home game against Miami? ### Query: SELECT COUNT(attendance) FROM table_name_31 WHERE...
### Context: CREATE TABLE characteristics ( characteristic_id number, characteristic_type_code text, characteristic_data_type text, characteristic_name text, other_characteristic_details text ) CREATE TABLE ref_colors ( color_code text, color_description text ) CREATE TABLE product_charact...
### Context: CREATE TABLE stores ( store_id text, address_id number, marketing_region_code text, store_name text, store_phone text, store_email_address text, other_details text ) CREATE TABLE bookings ( booking_id number, customer_id number, workshop_group_id text, status_co...
### Context: CREATE TABLE table_name_21 ( actor VARCHAR, duration VARCHAR, soap_opera VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which actor played on Home and Away for 20 years? ### Query: SELECT actor FROM table_name_21 WHERE duration = "20 years"...
### Context: CREATE TABLE table_name_41 ( monotone VARCHAR, clone_independence VARCHAR, pareto_efficiency VARCHAR, non_dictatorship VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the monotone when pareto efficiency is yes, non-dictatorship is...
### 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 university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text...
### Context: CREATE TABLE table_40941 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-25" real, "Events" real, "Cuts made" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of top-25s for tournaments that had 0 wins, 1...
### Context: CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, ...