text
stringlengths
197
8.39k
### Context: CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE cost ( co...
### Context: CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE fare_basis ( fare_basis_code text, booking_class text, cla...
### Context: CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, reli...
### Context: CREATE TABLE table_204_672 ( id number, "year" number, "title" text, "label" text, "uk singles chart" number, "u.s. billboard hot 100 chart" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many top 10 uk charting singles did bl...
### Context: CREATE TABLE table_45229 ( "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_name_49 ( competition VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the competition with a score of 1-5? ### Query: SELECT competition FROM table_name_49 WHERE score = "1-5"
### Context: CREATE TABLE jybgb_jyjgzbb ( JYZBLSH number, YLJGDM text, jyjgzbb_id number ) 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 tex...
### 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_67003 ( "Season" text, "Northumberland Senior Cup" text, "Northumberland Senior Benevolent Bowl" text, "Northumberland Minor Cup" text, "Northumberland Women's Cup" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who w...
### Context: CREATE TABLE table_13605170_2 ( retired VARCHAR, aircraft_type VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many Curtiss XBTC aircraft are retired? ### Query: SELECT COUNT(retired) FROM table_13605170_2 WHERE aircraft_type = "Curtiss XBTC...
### 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_91 ( lost INTEGER, win__percentage VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the largest number Lost to david nalbandian with a Win Rate of 20%? ### Query: SELECT MAX(lost) FROM table_n...
### Context: CREATE TABLE table_62379 ( "Pick #" real, "Player" text, "Nationality" text, "Position" text, "NHL team" text, "Team from" text, "League from" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which NHL team has a League from of we...
### 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_56 ( silver INTEGER, bronze VARCHAR, gold VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Silver is the lowest one that has a Bronze smaller than 1, and a Gold larger than 0? ### Query: SELECT MIN(silver) FROM t...
### Context: CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVIN...
### Context: CREATE TABLE table_15450 ( "Goal" real, "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Venue has a Goal larger than 3, and a Competition of 2011 afc asian c...
### 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 departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME va...
### Context: CREATE TABLE table_name_4 ( outcome VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the outcome for the 1887? ### Query: SELECT outcome FROM table_name_4 WHERE year = 1887
### Context: CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE days ( days_code va...
### 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 market ( market_id number, country text, number_cities number ) CREATE TABLE film_market_estimation ( estimation_id number, low_estimate number, high_estimate number, film_id number, type text, market_id number, year number ) CREATE TABLE film ( fi...
### Context: CREATE TABLE table_1342393_41 ( result VARCHAR, incumbent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of the election for incumbent Cordell Hull? ### Query: SELECT result FROM table_1342393_41 WHERE incumbent = "Cordell H...
### Context: CREATE TABLE table_1973842_2 ( location VARCHAR, nickname VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where is the school with nickname Tigers located? ### Query: SELECT location FROM table_1973842_2 WHERE nickname = "Tigers"
### Context: CREATE TABLE table_name_52 ( pos VARCHAR, date_of_birth VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the position played by the man born on 1976-09-20? ### Query: SELECT pos FROM table_name_52 WHERE date_of_birth = "1976-09-20"
### Context: CREATE TABLE table_name_26 ( division VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Division has a Position of 6th? ### Query: SELECT division FROM table_name_26 WHERE position = "6th"
### Context: CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostTags ( ...
### Context: CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender tex...
### Context: CREATE TABLE station ( name VARCHAR, lat VARCHAR, city VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the name, latitude, and city of the station with the lowest latitude? ### Query: SELECT name, lat, city FROM station ORDER BY lat...
### Context: CREATE TABLE table_35192 ( "Year" text, "Team" text, "Apps" real, "Tries" real, "Goals" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of goals from 24 tries and 96 or greater points? ### Que...
### Context: CREATE TABLE table_48146 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location" text, "Attendance" real, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the highest attendance o...
### Context: CREATE TABLE table_15463188_17 ( position VARCHAR, season VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many players with a position are listed for the 2009 season? ### Query: SELECT COUNT(position) FROM table_15463188_17 WHERE season = "2...
### Context: CREATE TABLE Minor_in ( StuID INTEGER, DNO INTEGER ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Faculty ( FacID INTEGER, Lname ...
### Context: CREATE TABLE table_35830 ( "RNA Segment (Gene)" real, "Size ( s base pair )" real, "Protein" text, "Molecular weight kDa" text, "Location" text, "Copies per particle" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which location has...
### Context: 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, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURE...
### Context: CREATE TABLE table_23180638_1 ( oricon_albums_chart VARCHAR, debut_sales__copies_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which charts had debut sales of 101976? ### Query: SELECT oricon_albums_chart FROM table_23180638_1 WHERE debut_sal...
### Context: CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, Creatio...
### Context: CREATE TABLE table_name_73 ( theme VARCHAR, original_artist VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Theme when Fontella Bass was the original artist? ### Query: SELECT theme FROM table_name_73 WHERE original_artist = "fontell...
### Context: CREATE TABLE table_38129 ( "Player" text, "Touchdowns" real, "Extra points" real, "Field goals" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest amount of touchdowns when there is a total player and a n...
### Context: CREATE TABLE table_name_64 ( d_43_√ VARCHAR, d_49_√ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the D 43 with a D 49 with d 49 ? ### Query: SELECT d_43_√ FROM table_name_64 WHERE d_49_√ = "d 49 √"
### Context: CREATE TABLE table_name_72 ( points INTEGER, races VARCHAR, driver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of points that driver fernando alonso has in the season he had 20 races? ### Query: SELECT SUM(points) FROM...
### Context: CREATE TABLE table_24977 ( "Pick #" real, "Player" text, "Position" text, "Nationality" text, "NHL team" text, "College/junior/club team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many college/junior/clubteams have John gar...
### Context: CREATE TABLE table_name_83 ( year_active VARCHAR, role VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was the role of Rachel active in TV? ### Query: SELECT year_active FROM table_name_83 WHERE role = "rachel"
### Context: CREATE TABLE t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_ID number ) 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 ...
### Context: CREATE TABLE table_name_23 ( location VARCHAR, current_conference VARCHAR, institution VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where is the Belhaven College SSAC conference location? ### Query: SELECT location FROM table_name_23 WHER...
### Context: CREATE TABLE customers_policies ( customer_id number, policy_id number, date_opened time, date_closed time ) CREATE TABLE first_notification_of_loss ( fnol_id number, customer_id number, policy_id number, service_id number ) CREATE TABLE settlements ( settlement_id num...
### Context: CREATE TABLE table_name_8 ( report VARCHAR, circuit VARCHAR, race_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the report for circuit of kyalami for south african republic trophy ### Query: SELECT report FROM table_name_8 WHERE ...
### Context: CREATE TABLE table_59390 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What player placed t6 for the United States with a score of 67-69=136? ### Query: SELECT "Pla...
### Context: CREATE TABLE table_test_19 ( "id" int, "gender" string, "left_ventricular_ejection_fraction_lvef" int, "systolic_blood_pressure_sbp" int, "acute_infectious" bool, "hypertensive_retinopathy" bool, "leukocyte_count" int, "severe_uncontrolled_hypertension" bool, "chronic_in...
### Context: CREATE TABLE table_65645 ( "Date Released" text, "Polling institute" text, "Social Democratic" text, "Socialist" text, "Green-Communist" text, "Democratic and Social Centre" text, "Lead" text ) -- Using valid SQLite, answer the following questions for the tables provided above...
### Context: CREATE TABLE table_name_46 ( republican_ticket VARCHAR, socialist_ticket VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who's the Republican ticket with a Socialist ticket of edna mitchell blue? ### Query: SELECT republican_ticket FROM table_na...
### Context: CREATE TABLE table_24949975_1 ( stadium VARCHAR, home_team VARCHAR, result VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the stadium for the home team of shamrock rovers and result of 3 0? ### Query: SELECT stadium FROM table_2494...
### Context: CREATE TABLE player_college ( player_id text, college_id text, year number ) CREATE TABLE hall_of_fame ( player_id text, yearid number, votedby text, ballots number, needed number, votes number, inducted text, category text, needed_note text ) CREATE TABLE ...
### 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 jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) 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 location...
### Context: CREATE TABLE table_54147 ( "Year" real, "Artist" text, "Composition" text, "Mintage" real, "Issue Price" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the mintage having an issue price of $1,099.99, artist being Pamela Stagg? ...
### 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 person_info_hz_info ( RYBH text, KH number, KLX number, YLJGDM number ) 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 tex...
### Context: CREATE TABLE table_name_32 ( visitor VARCHAR, decision VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Visitor has a Decision of myre, and a Record of 44 7 15? ### Query: SELECT visitor FROM table_name_32 WHERE decision...
### Context: CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, Mark...
### Context: CREATE TABLE exhibition_record ( exhibition_id number, date text, attendance number ) CREATE TABLE exhibition ( exhibition_id number, year number, theme text, artist_id number, ticket_price number ) CREATE TABLE artist ( artist_id number, name text, country tex...
### Context: CREATE TABLE table_38363 ( "Season" text, "Player" text, "Position" text, "Nationality" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Position does the Team of KR and the Player of Marcus Walker have listed? ### Quer...
### Context: CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TAB...
### 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 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_name_61 ( week VARCHAR, result VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the week when the result was l 38-17 ### Query: SELECT week FROM table_name_61 WHERE result = "l 38-17"
### Context: CREATE TABLE table_64231 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent on November 15, 1981? ### Query: SELECT "Opponent" FROM table_64231 W...
### Context: CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname var...
### Context: CREATE TABLE problem_log ( problem_log_id number, assigned_to_staff_id number, problem_id number, problem_category_code text, problem_status_code text, log_entry_date time, log_entry_description text, log_entry_fix text, other_log_details text ) CREATE TABLE staff ( ...
### Context: CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, item...
### 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_7 ( country VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the country when the player is bill nary? ### Query: SELECT country FROM table_name_7 WHERE player = "bill nary"
### Context: CREATE TABLE table_16133 ( "No." real, "#" real, "Title" text, "Director" text, "Writer" text, "US air date" text, "Storyteller" text, "Villains" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the largest # for an ep...
### 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 hz_info ( KH text, ...
### Context: CREATE TABLE table_8403 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ($)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score of the player who earned $5,000? ### Query: SELECT "S...
### 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 person ( name text, age number, city text, gender text, job text ) CREATE TABLE personfriend ( name text, friend text, year number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- list the name, job title of all peopl...
### Context: CREATE TABLE table_33179 ( "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 is the crowd total when the ho...
### 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 requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar )...
### Context: CREATE TABLE table_9926 ( "Rank" real, "Title" text, "Studio" text, "Director(s)" text, "Worldwide Gross" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What studio has directors John Lasseter and Andrew Stanton? ### Query: SELECT "Stu...
### Context: CREATE TABLE mzb ( 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 table_34777 ( "County" text, "Monument name" text, "Year built" real, "City or Town" text, "Latitude" text, "Longitude" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What County was built after 1920 with a Latitude of ...
### Context: CREATE TABLE table_70347 ( "Outcome" text, "Date" text, "Surface" text, "Partner" text, "Opponents in final" text, "Score in final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the surface of the match that ended in a sco...
### Context: CREATE TABLE table_name_45 ( date VARCHAR, attendance INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What game had more than 50,324 in attendance? ### Query: SELECT date FROM table_name_45 WHERE attendance > 50 OFFSET 324
### Context: CREATE TABLE table_20456 ( "S No" real, "Team (A)" text, "Team (B)" text, "Winner" text, "Margin" text, "Match Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the team for oct 30, 1989 ### Query: SELECT "Team (B)" FROM ta...
### Context: CREATE TABLE table_70088 ( "Date" text, "Tournament" text, "Surface" text, "Partner" text, "Opponents in final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what surface was the 26 August 2001 tournament played? ...
### Context: CREATE TABLE mzb ( 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 table_16598 ( "No." real, "Episode" text, "Air Date" text, "Timeslot" text, "Rating" text, "Share" text, "18\u201349 (Rating/Share)" text, "Viewers (m)" text, "Rank (#)" text ) -- Using valid SQLite, answer the following questions for the tables provided a...
### Context: CREATE TABLE table_name_85 ( appearances INTEGER, goals VARCHAR, nationality VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the least amount of appearances by new zealand when they scored 4 goals? ### Query: SELECT MIN(appearances) ...
### Context: CREATE TABLE table_name_65 ( second VARCHAR, tenth VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE SECOND WITH A TENTH OF DAN BLACK? ### Query: SELECT second FROM table_name_65 WHERE tenth = "dan black"
### Context: CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE area ( ...
### Context: CREATE TABLE table_27579 ( "Player" text, "Games Played" real, "Rebounds" real, "Assists" real, "Steals" real, "Blocks" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest value for points? ### Que...
### Context: CREATE TABLE table_22480 ( "Township" text, "County" text, "Pop. (2010)" real, "Land ( sqmi )" text, "Water (sqmi)" text, "Latitude" text, "Longitude" text, "GEO ID" real, "ANSI code" real ) -- Using valid SQLite, answer the following questions for the tables provided ...
### Context: CREATE TABLE county ( County_Id int, County_name text, Population real, Zip_code text ) CREATE TABLE election ( Election_ID int, Counties_Represented text, District int, Delegate text, Party int, First_Elected real, Committee text ) CREATE TABLE party ( Par...
### Context: CREATE TABLE table_64281 ( "Year" text, "League" text, "Position" text, "Leading Scorer" text, "FA Cup" text, "FA Trophy" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the year when the position is 1/22 promoted and the lea...
### Context: CREATE TABLE table_name_90 ( team VARCHAR, fin_pos VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team had a finish position of 8? ### Query: SELECT team FROM table_name_90 WHERE fin_pos = "8"
### Context: CREATE TABLE table_203_418 ( id number, "#" number, "player" text, "position" text, "height" number, "current club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the tallest player on the chart ? ### Query: SELECT "player" ...
### Context: CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_t...