text
stringlengths
197
8.39k
### Context: CREATE TABLE table_name_16 ( venue VARCHAR, status VARCHAR, against VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Venue, when Status is 'Test Match', and when Against is '12'? ### Query: SELECT venue FROM table_name_16 WHERE status...
### Context: CREATE TABLE table_name_71 ( gold INTEGER, rank VARCHAR, silver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the least gold when the rank is 10 and silver is less than 0? ### Query: SELECT MIN(gold) FROM table_name_71 WHERE rank =...
### Context: CREATE TABLE table_name_57 ( score VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score in the September 20 game? ### Query: SELECT score FROM table_name_57 WHERE date = "september 20"
### 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 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_6962 ( "Date" text, "Time" text, "Home" text, "Away" text, "Score" text, "Ground" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Date with an Away that is broadview hawks? ### Query: SELECT "Date" FRO...
### Context: CREATE TABLE table_20244 ( "Date" text, "Cover model" text, "Centerfold model" text, "Interview subject" text, "20 Questions" text, "Pictorials" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the date for oliver stone ### Quer...
### 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_name_50 ( drawn INTEGER, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number drawn when the position was 12? ### Query: SELECT MAX(drawn) FROM table_name_50 WHERE position = 12
### Context: CREATE TABLE table_204_55 ( id number, "date" text, "time" text, "opponent#" text, "rank#" text, "site" text, "tv" text, "result" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total in a...
### 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 CloseReasonTypes ( 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 numb...
### Context: CREATE TABLE table_name_75 ( nationality VARCHAR, event VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the nationality of the athlete that ran the 10000 m event? ### Query: SELECT nationality FROM table_name_75 WHERE event = "10000 m"
### Context: CREATE TABLE Nurse ( EmployeeID INTEGER, Name VARCHAR(30), Position VARCHAR(30), Registered BOOLEAN, SSN INTEGER ) CREATE TABLE Room ( RoomNumber INTEGER, RoomType VARCHAR(30), BlockFloor INTEGER, BlockCode INTEGER, Unavailable BOOLEAN ) CREATE TABLE On_Call ( ...
### Context: CREATE TABLE table_17156199_1 ( year__ceremony_ VARCHAR, original_title VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years was the original title was (swopnodanay)? ### Query: SELECT COUNT(year__ceremony_) FROM table_17156199_1 WHERE...
### 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 d_items ( row_id number, itemid number, ...
### Context: CREATE TABLE table_75919 ( "Name" text, "Height" text, "Position" text, "Year" text, "Home Town" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what year of school is the player from Fayetteville, NC? ### Query: SELECT "Year" FROM t...
### Context: CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) C...
### Context: CREATE TABLE table_203_737 ( id number, "#" number, "employer" text, "# of employees" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many employees does the first three employers have combined ? ### Query: SELECT SUM("# of employees"...
### Context: CREATE TABLE table_46807 ( "Team 1" text, "Score" text, "Team 2" text, "1st round" text, "2nd round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Score, when 1st Round is 2 - 0, and when Team 2 is Stade Brestois (D1)? ### Que...
### Context: CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE FlagTy...
### Context: CREATE TABLE table_name_80 ( cast VARCHAR, director VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the cast for b. reeves eason and joseph kane ### Query: SELECT cast FROM table_name_80 WHERE director = "b. reeves eason and joseph kane"
### Context: CREATE TABLE table_72580 ( "Cardinal direction" text, "Burmese" text, "Sanskrit" text, "English" text, "Planet" text, "Sign" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the cardinal direction associated with Venus? ### Q...
### Context: CREATE TABLE table_name_69 ( score VARCHAR, to_par VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Score has a To par of 3, and a Player of santiago luna? ### Query: SELECT score FROM table_name_69 WHERE to_par = "–3" A...
### Context: CREATE TABLE table_name_96 ( game INTEGER, opponent VARCHAR, december VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which game has an opponent of Phoenix Coyotes and was before Dec 9? ### Query: SELECT AVG(game) FROM table_name_96 WHERE op...
### Context: CREATE TABLE table_203_229 ( id number, "pick #" number, "nfl team" text, "player" text, "position" text, "college" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many different players are listed in this table ? ### Query: SEL...
### Context: CREATE TABLE table_10759 ( "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. -- In the game where the away team sco...
### Context: CREATE TABLE table_13764346_1 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest population recorded back in 2002? ### Query: SELECT MIN(2002 AS _population) FROM table_13764346_1
### Context: CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, ...
### Context: CREATE TABLE table_5214 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Record" text, "Venue" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Result of w 16-10* o.t. had what attendance? ### Query...
### Context: CREATE TABLE table_38777 ( "Surname" text, "First" text, "D.O.B." text, "Bats" text, "Throws" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When is Biddle's DOB? ### Query: SELECT "D.O.B." FROM table_38777 WHERE "...
### Context: CREATE TABLE table_69889 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Try BP" text, "Losing BP" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the Lost that has Losing BP of 5, and the Try BP of 0? ### ...
### Context: CREATE TABLE table_16843 ( "Player" text, "No." real, "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 played 2004-05 ### Query: SELECT "Play...
### Context: CREATE TABLE table_203_203 ( id number, "year" number, "majors" number, "atp wins" number, "total wins" number, "earnings (us$)" number, "money list rank" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in which year was the le...
### Context: CREATE TABLE table_49789 ( "Tournament" text, "2008" text, "2010" text, "2011" text, "2012" text, "2013" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What shows for 2011 when 2012 is q1, and a 2010 is 4r? ### Query: SELECT "2011"...
### Context: CREATE TABLE table_22866 ( "Game" real, "Date" text, "Opponent" 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 ...
### Context: CREATE TABLE table_25622 ( "Player" text, "Class Year" real, "Position" text, "Teams" text, "Career" text, "Highlight(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What class year was the player who played for Buffalo from? ##...
### Context: CREATE TABLE table_48126 ( "Year" real, "A-Side" text, "B-Side" text, "Label" text, "US Pop" text, "Album" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Album has a Label of tumbleweed 1014? ### Query: SELECT "Album" FROM ta...
### Context: CREATE TABLE table_203_447 ( id number, "constituency" number, "region" text, "name" text, "party" text, "last elected" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was not last elected in either 2005 or 2009 ? ### Query: S...
### Context: CREATE TABLE table_name_68 ( record VARCHAR, home VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was their record when they were at Pittsburgh? ### Query: SELECT record FROM table_name_68 WHERE home = "pittsburgh"
### Context: CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text )...
### Context: CREATE TABLE table_22344463_2 ( date_of_birth VARCHAR, height VARCHAR, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the height is 185cm and the home team is Heaton Mersey, what is the date of birth? ### Query: SELECT date_of_...
### Context: CREATE TABLE table_name_12 ( surface VARCHAR, tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the type of Surface for the New Zealand F1 Futures Tournament? ### Query: SELECT surface FROM table_name_12 WHERE tournament = "new ...
### 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 table_name_62 ( label VARCHAR, date VARCHAR, region VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Label of the release on June 12, 2008 in Cyprus? ### Query: SELECT label FROM table_name_62 WHERE date = "june 12, 2...
### 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_87 ( wins INTEGER, goals_scored VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the highest win when there were more than 64 goals scored and a position smaller than 2? ### Query: SELECT MAX...
### Context: CREATE TABLE artist ( Artist_ID int, Name text, Country text, Year_Join int, Age int ) CREATE TABLE exhibition ( Exhibition_ID int, Year int, Theme text, Artist_ID int, Ticket_Price real ) CREATE TABLE exhibition_record ( Exhibition_ID int, Date text, 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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age tex...
### Context: CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE flight_fare ( flight_id int, fare_id int ) CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_...
### Context: CREATE TABLE table_name_69 ( reg_gp INTEGER, pl_gp VARCHAR, rd__number VARCHAR, pick__number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest reg gp of the player with a round # more than 2, a pick # of 80, and a PI GP l...
### Context: CREATE TABLE pitStops ( raceId INTEGER, driverId INTEGER, stop INTEGER, lap INTEGER, time TEXT, duration TEXT, milliseconds INTEGER ) CREATE TABLE seasons ( year INTEGER, url TEXT ) CREATE TABLE constructors ( constructorId INTEGER, constructorRef TEXT, nam...
### 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 jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_N...
### Context: CREATE TABLE table_20439 ( "Engine type" text, "Scenario" text, "SFC in lb/(lbf\u00b7h)" text, "SFC in g/(kN\u00b7s)" text, "Specific impulse (s)" real, "Effective exhaust velocity (m/s)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
### Context: CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE area ( course_id int, are...
### Context: CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( row_id number, subject_id number, h...
### 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 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 bdmzjzjlb ( 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 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 table_17766 ( "Player" text, "League" real, "Scottish Cup" real, "League Cup" real, "Challenge Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the tourney where the winner is kevin mckinlay? #...
### Context: CREATE TABLE table_name_70 ( result_f___a VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result F-A on 5 August 1990? ### Query: SELECT result_f___a FROM table_name_70 WHERE date = "5 august 1990"
### Context: CREATE TABLE table_name_35 ( time INTEGER, country VARCHAR, lane VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the highest time for spain and lane larger than 8 ### Query: SELECT MAX(time) FROM table_name_35 WHERE country = "spain"...
### Context: CREATE TABLE table_name_49 ( results¹ VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what results are dated december 19? ### Query: SELECT results¹ FROM table_name_49 WHERE date = "december 19"
### Context: CREATE TABLE institution ( TYPE VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show the institution type with the largest number of institutions. ### Query: SELECT TYPE FROM institution GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1
### Context: CREATE TABLE film_market_estimation ( Estimation_ID int, Low_Estimate real, High_Estimate real, Film_ID int, Type text, Market_ID int, Year int ) CREATE TABLE market ( Market_ID int, Country text, Number_cities int ) CREATE TABLE film ( Film_ID int, Title t...
### Context: CREATE TABLE jybgb ( YLJGDM text, YLJGDM_MZJZJLB text, YLJGDM_ZYJZJLB text, BGDH text, BGRQ time, JYLX number, JZLSH text, JZLSH_MZJZJLB text, JZLSH_ZYJZJLB text, JZLX number, KSBM text, KSMC text, SQRGH text, SQRXM text, BGRGH text, BGRXM tex...
### Context: CREATE TABLE table_name_67 ( venue VARCHAR, result VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In which venue was the result a draw? ### Query: SELECT venue FROM table_name_67 WHERE result = "draw"
### 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_3 ( crowd INTEGER, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Fitzroy's smallest crowd size? ### Query: SELECT MIN(crowd) FROM table_name_3 WHERE home_team = "fitzroy"
### Context: CREATE TABLE table_14630 ( "Name" text, "Country" text, "Type" text, "Moving from" text, "Transfer window" text, "Ends" real, "Transfer fee" text, "Source" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the source of...
### Context: CREATE TABLE ref_colors ( color_description VARCHAR, color_code VARCHAR ) CREATE TABLE products ( color_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the description of the color used by least products? ### Query: SELECT t2.c...
### Context: CREATE TABLE zyjzjlb ( CYBQDM text, CYBQMC text, CYCWH text, CYKSDM text, CYKSMC text, CYSJ time, CYZTDM number, HZXM text, JZKSDM text, JZKSMC text, JZLSH text, KH text, KLX number, MZBMLX number, MZJZLSH text, MZZDBM text, MZZDMC text, ...
### Context: CREATE TABLE 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_1341423_38 ( candidates VARCHAR, district VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the candidates in district Pennsylvania 3? ### Query: SELECT candidates FROM table_1341423_38 WHERE district = "Pennsylvania 3"
### Context: CREATE TABLE table_name_69 ( date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many 1st prizes have a Date of aug 17? ### Query: SELECT COUNT(1 AS st_prize___) AS $__ FROM table_name_69 WHERE date = "aug 17"
### Context: CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId numbe...
### 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_203_447 ( id number, "constituency" number, "region" text, "name" text, "party" text, "last elected" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which region is listed below atacama ? ### Query: SELECT "regi...
### Context: CREATE TABLE table_71848 ( "7:00" text, "7:30" text, "8:00" text, "8:30" text, "9:00" text, "9:30" text, "10:00" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is on at 8:00 before the 9:00 showing of Chuck? ### Query: SEL...
### Context: CREATE TABLE restaurant_type ( restypeid number, restypename text, restypedescription text ) CREATE TABLE type_of_restaurant ( resid number, restypeid number ) CREATE TABLE restaurant ( resid number, resname text, address text, rating number ) CREATE TABLE visits_rest...
### Context: CREATE TABLE table_train_4 ( "id" int, "pregnancy_or_lactation" bool, "severe_sepsis" bool, "acute_venous_thromboembolism_vte" bool, "allergy_to_carbapenem" bool, "septic_shock" bool, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for th...
### Context: CREATE TABLE table_57266 ( "Year" real, "Network" text, "Lap-by-lap" text, "s Color commentator" text, "Pre-Race Host" text, "Ratings" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the Year is smaller than 2004, and Mike Joy i...
### Context: CREATE TABLE routes ( rid number, dst_apid number, dst_ap text, src_apid number, src_ap text, alid number, airline text, codeshare text ) CREATE TABLE airlines ( alid number, name text, iata text, icao text, callsign text, country text, active te...
### Context: CREATE TABLE jybgb_jyjgzbb ( JYZBLSH number, YLJGDM text, jyjgzbb_id number ) 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, JZZT...
### Context: CREATE TABLE table_name_98 ( game VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Games have a Score of 3 3 ot? ### Query: SELECT COUNT(game) FROM table_name_98 WHERE score = "3–3 ot"
### Context: CREATE TABLE table_name_72 ( position VARCHAR, pick VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position did pick 14 play? ### Query: SELECT position FROM table_name_72 WHERE pick = 14
### Context: CREATE TABLE table_name_83 ( frequency_mhz INTEGER, city_of_license VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average frequency mhz of the loomis, south dakota city license? ### Query: SELECT AVG(frequency_mhz) FROM table_name_...
### Context: 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 prescriptions ( row_id number, subject_id number, hadm_id number, startda...
### Context: CREATE TABLE table_name_20 ( home_team VARCHAR, tie_no VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Home team of Tie no 2? ### Query: SELECT home_team FROM table_name_20 WHERE tie_no = "2"
### 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_26882866_1 ( points INTEGER, standing VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the leaast points for standing 5th ### Query: SELECT MIN(points) FROM table_26882866_1 WHERE standing = "5th"
### Context: CREATE TABLE table_59115 ( "Benalla DFL" text, "Wins" real, "Losses" real, "Draws" real, "Byes" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest number against when the draws are less than 0? ### ...
### Context: CREATE TABLE table_19929970_1 ( directed_by VARCHAR, production_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who directed the episode with production code 4akj01? ### Query: SELECT directed_by FROM table_19929970_1 WHERE production_code ...
### Context: CREATE TABLE station ( Station_ID int, Name text, Annual_entry_exit real, Annual_interchanges real, Total_Passengers real, Location text, Main_Services text, Number_of_Platforms int ) CREATE TABLE train ( Train_ID int, Name text, Time text, Service text ) C...
### Context: CREATE TABLE table_9750 ( "Result" text, "Opponent" text, "Date" text, "Promotor" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which date has the promoter Frank Moloney and the opponent Georgi Iliev? ### Query: SELEC...
### Context: CREATE TABLE table_204_870 ( id number, "product" text, "main functionality" text, "input format" text, "output format" text, "platform" text, "license and cost" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- w...
### Context: CREATE TABLE table_20811 ( "Official #" real, "TF1 #" real, "French title" text, "English title" text, "Air date (France)" text, "Original Beechwood Bunny Tale / Source material" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What i...
### Context: CREATE TABLE table_1359 ( "N\u00b0" real, "Television service" text, "Country" text, "Language" text, "Content" text, "DAR" text, "HDTV" text, "PPV" text, "Package/Option" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- D...