text
stringlengths
197
8.39k
### Context: CREATE TABLE table_203_163 ( id number, "year" number, "total" number, "serbs" text, "hungarians" text, "germans" text, "romanians" text, "slovaks" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many more hungarians live...
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) CREATE TABLE zyjzjlb_jybgb ( YLJGDM_ZYJZJLB text, BGDH number, YLJGDM number ) CREATE TABLE jyjgzbb ( BGDH text, BGRQ time, CKZFWDX text, CKZFWSX number, CKZFWXX number, JCFF text, ...
### Context: CREATE TABLE table_name_51 ( opponents VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the opponent on 26 october 1889? ### Query: SELECT opponents FROM table_name_51 WHERE date = "26 october 1889"
### Context: CREATE TABLE table_train_145 ( "id" int, "gender" string, "white_blood_cell_count_wbc" int, "elevated_intraocular_pressure" bool, "systolic_blood_pressure_sbp" int, "hemoglobin_a1c_hba1c" float, "stroke" bool, "platelets" int, "intraocular_pressure" int, "hematologic...
### Context: CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputG...
### Context: CREATE TABLE table_59201 ( "Year" real, "Lok Sabha" text, "Members of Parliament" text, "Party Won" text, "Winner's % votes" text, "Trailing Party" text, "Trailing Party % votes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wh...
### Context: CREATE TABLE Department_Stores ( dept_store_id INTEGER, dept_store_chain_id INTEGER, store_name VARCHAR(80), store_address VARCHAR(255), store_phone VARCHAR(80), store_email VARCHAR(80) ) CREATE TABLE Order_Items ( order_item_id INTEGER, order_id INTEGER, product_id INT...
### 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 countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE employees ( EMPLOYEE_ID ...
### Context: CREATE TABLE table_60625 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" real, "Money ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE SCORE WITH $85 FOR CLARENCE HACKNEY? ### Query: SELECT "S...
### Context: CREATE TABLE table_name_14 ( result VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Result has a Record of 5 4? ### Query: SELECT result FROM table_name_14 WHERE record = "5–4"
### Context: CREATE TABLE table_72630 ( "Scientific Linux Release" text, "Architectures" text, "RHEL base" text, "Scientific Linux release date" text, "RHEL release date" text, "Delay" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When is the r...
### Context: CREATE TABLE table_16729063_1 ( pick__number INTEGER, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What draft pick was Chris Brewer? ### Query: SELECT MIN(pick__number) FROM table_16729063_1 WHERE player = "Chris Brewer"
### Context: CREATE TABLE table_21767 ( "P" real, "Player" text, "Position" text, "League" real, "Copa del Rey" real, "Champions League" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In the Champions league is the forward posi...
### Context: CREATE TABLE time_slot ( time_slot_id varchar(4), day varchar(1), start_hr numeric(2), start_min numeric(2), end_hr numeric(2), end_min numeric(2) ) CREATE TABLE prereq ( course_id varchar(8), prereq_id varchar(8) ) CREATE TABLE teaches ( ID varchar(5), course_id v...
### Context: CREATE TABLE table_79382 ( "Year" real, "Game" text, "Genre" text, "Platform(s)" text, "Developer(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What game was in 2005? ### Query: SELECT "Game" FROM table_79382 WHERE "Year" = '2005'
### Context: CREATE TABLE table_57484 ( "Bowling" text, "Player" text, "Opponent" text, "Venue" text, "Season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the venue of season 1907? ### Query: SELECT "Venue" FROM table_57484 WHERE "Seaso...
### Context: CREATE TABLE table_name_7 ( field_goals INTEGER, touchdowns VARCHAR, extra_points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest field goals when there were more than 1 touchdown and 0 extra points? ### Query: SELECT MAX...
### 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...
### Context: CREATE TABLE table_14962287_1 ( fa_cup VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which fa cups had a total of 565 (7)? ### Query: SELECT fa_cup FROM table_14962287_1 WHERE total = "565 (7)"
### 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_43 ( school VARCHAR, mascot VARCHAR, size VARCHAR, county VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What school has a size less than 674, has a county of 19 dubois, and has the rangers as their mascot? ### Q...
### 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 table_28979895_4 ( opponents VARCHAR, partner VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the opponents for anabel medina garrigues ### Query: SELECT COUNT(opponents) FROM table_28979895_4 WHERE partner = "Anabel Medina Gar...
### Context: CREATE TABLE table_63237 ( "Engine" text, "Production" text, "Transmission" text, "Power" text, "Torque" text, "Acceleration 0\u2013100km/h (0\u201362mph)" text, "Top Speed" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is...
### Context: CREATE TABLE papers ( paperid number, title text ) CREATE TABLE authors ( authid number, lname text, fname text ) CREATE TABLE authorship ( authid number, instid number, paperid number, authorder number ) CREATE TABLE inst ( instid number, name text, count...
### Context: CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE Posts ( Id number, PostTypeId number, A...
### Context: CREATE TABLE table_27495117_3 ( position_in_table VARCHAR, outgoing_manager VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the position for outgoing manager alfredo merino ### Query: SELECT position_in_table FROM table_27495117_3 WHERE ...
### Context: CREATE TABLE table_name_21 ( att_cmp VARCHAR, td_int VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Att-Cmp has a TD-INT of 7-8? ### Query: SELECT att_cmp FROM table_name_21 WHERE td_int = "7-8"
### 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 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 cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, ce...
### Context: CREATE TABLE table_23601267_2 ( week VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What week did September 29 fall in? ### Query: SELECT COUNT(week) FROM table_23601267_2 WHERE date = "September 29"
### Context: CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE transfers ( row_id number, subject_id numb...
### Context: CREATE TABLE table_21311525_1 ( score VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score when the date was 17/07/2009? ### Query: SELECT score FROM table_21311525_1 WHERE date = "17/07/2009"
### Context: CREATE TABLE jybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH text, BGJGDM text, BGJGMC text, BGRGH text, BGRQ time, BGRXM text, BGSJ time, CJRQ time, JSBBRQSJ time, JSBBSJ time, JYBBH text, JYJGMC text, JYJSGH text, JYJSQM...
### Context: CREATE TABLE table_15720 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What engine was in the lotus 44 f2 Chassis? ### Query: SELECT "Engine" FROM table_15720 WHER...
### Context: CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time...
### Context: CREATE TABLE table_name_77 ( bolton_wanderers_career VARCHAR, apps VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Bolton Wanderers career has 293 Apps? ### Query: SELECT bolton_wanderers_career FROM table_name_77 WHERE apps = 293
### Context: CREATE TABLE table_name_45 ( date VARCHAR, week VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Date, when Week is 11? ### Query: SELECT date FROM table_name_45 WHERE week = 11
### Context: CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE PostNotices...
### 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 table_62102 ( "Club" text, "Season's Last Head Coach" text, "City" text, "Stadium" text, "2004-2005 season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the stadium for the team that was 6th in the liga in the 200...
### Context: CREATE TABLE table_name_85 ( position VARCHAR, affiliation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which position did the drafted player affiliated with UCLA play? ### Query: SELECT position FROM table_name_85 WHERE affiliation = "ucla"
### Context: CREATE TABLE club ( clubid number, clubname text, clubdesc text, clublocation text ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE member_of_club ( stuid nu...
### Context: CREATE TABLE table_80046 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Time" text, "Att." text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who lost with a time of 2:42? ### Query: SELECT "Loss" FROM t...
### Context: CREATE TABLE table_60208 ( "Season" text, "League" text, "Teams" text, "Home" text, "Away" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the teams for season 1950-51? ### Query: SELECT "Teams" FROM table_60208 WHERE "Season" =...
### Context: CREATE TABLE table_12029 ( "Race" text, "Length" text, "Class" text, "Circuit" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which race was on the Las Vegas Motor Speedway for 2 hours? ### Query: SELECT "Race" FROM table_...
### Context: CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 ...
### Context: CREATE TABLE table_46313 ( "from" text, "aircraft" text, "carrier" text, "air wing" text, "tail code" text, "area" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the tail code for the cva-34 carrier with an air wing of cvw-...
### Context: CREATE TABLE table_70124 ( "Status" text, "Name" text, "First Performance" text, "Last Performance" text, "Style" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date of the last performance for Liam Mower? ### Query: SELECT...
### 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_11821 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the date when the visitor is nets ### Que...
### Context: CREATE TABLE table_79343 ( "Rank" real, "Heat" real, "Name" text, "Nationality" text, "Result" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Nationality has a Heat smaller than 2, and a Rank of 15? ### Query: SELECT "Nationality...
### Context: CREATE TABLE table_2866509_1 ( written_by VARCHAR, production_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who are the writers of the episode whose production code is 176206? ### Query: SELECT written_by FROM table_2866509_1 WHERE produc...
### Context: CREATE TABLE table_name_8 ( line VARCHAR, ship VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the line that has lucania as the ship and 1894 as the date? ### Query: SELECT line FROM table_name_8 WHERE ship = "lucania" ...
### 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 table_24937583_1 ( wins INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the least amount of wins? ### Query: SELECT MIN(wins) FROM table_24937583_1
### Context: CREATE TABLE fzzmzjzjlb ( 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 tex...
### Context: CREATE TABLE table_41687 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries For" text, "Tries Against" text, "Try Bonus" text, "Losing Bonus" text, "Points" text ) -- Using valid SQLite, answer the followin...
### Context: CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE...
### Context: CREATE TABLE table_51409 ( "Year" real, "Film" text, "Role" text, "Leading Man" text, "Director" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the latest year for the role of joan gordon, aka francine la rue? ### Query: SELECT...
### Context: CREATE TABLE table_33983 ( "Tournament" text, "2006" text, "2007" text, "2008-12" text, "2013" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which 2013 has a 2006 of grand slam tournaments? ### Query: SELECT "2013" FROM table_33983 WH...
### 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_name_73 ( year VARCHAR, cross_code_debut VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what Year is Keith Smith's Cross Code Debut RL Test v Wales? ### Query: SELECT year FROM table_name_73 WHERE cross...
### Context: CREATE TABLE table_3650 ( "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. -- What is the pick # for nhl team vancouver canuck...
### Context: CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE patient ...
### Context: CREATE TABLE repair ( repair_ID int, name text, Launch_Date text, Notes text ) CREATE TABLE technician ( technician_id real, Name text, Team text, Starting_Year real, Age int ) CREATE TABLE repair_assignment ( technician_id int, repair_ID int, Machine_ID in...
### 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 table_76223 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Tie is from birmingham city? ### Query: SELECT "Tie no" FROM table_76223 WHERE "Hom...
### Context: CREATE TABLE table_65297 ( "Rank" real, "Lane" real, "Athlete" text, "Nationality" text, "Time" real, "React" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of time with a lane larger than 6, a nationality of canada,...
### Context: CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, d...
### Context: CREATE TABLE table_name_36 ( length VARCHAR, writer VARCHAR, release VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the length when James Swallow had a release longer than 2.1? ### Query: SELECT length FROM table_name_36 WHERE writ...
### Context: CREATE TABLE Services ( Service_ID INTEGER, Service_name VARCHAR(40) ) CREATE TABLE First_Notification_of_Loss ( FNOL_ID INTEGER, Customer_ID INTEGER, Policy_ID INTEGER, Service_ID INTEGER ) CREATE TABLE Settlements ( Settlement_ID INTEGER, Claim_ID INTEGER, Effective_...
### Context: CREATE TABLE table_47345 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was their record on Wed. Dec. 5, when they played in Boston Garden? #...
### Context: CREATE TABLE table_27155990_1 ( rank VARCHAR, project_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Project Name Pebble: E-Paper Watch for Iphone and Android was ranked how many times? ### Query: SELECT COUNT(rank) FROM table_27155990_1 W...
### Context: CREATE TABLE table_name_45 ( area VARCHAR, name VARCHAR, gender VARCHAR, decile VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which area served coed genders at Kaharoa school and had a Decile of 9? ### Query: SELECT area FROM table_nam...
### Context: CREATE TABLE table_name_18 ( withdrawn INTEGER, number VARCHAR, converted VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With a converted less than 1966 and a number of 32 (2nd), what is the largest number listed for withdrawn? ### Query: S...
### Context: CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, ...
### Context: CREATE TABLE table_52561 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What label released a CD in 1988? ### Query: SELECT "Label" FROM table_52561 WHERE "Date" = '1...
### Context: CREATE TABLE table_name_65 ( clubs_remaining INTEGER, round VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of clubs remaining in the second round? ### Query: SELECT MIN(clubs_remaining) FROM table_name_65 WHERE round = "secon...
### Context: CREATE TABLE table_name_86 ( points_classification VARCHAR, stage VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the points classification for stage of 18b ### Query: SELECT points_classification FROM table_name_86 WHERE stage = "18b"
### Context: CREATE TABLE table_name_4 ( visitor VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the visiting team when the record was 6 12 5 1? ### Query: SELECT visitor FROM table_name_4 WHERE record = "6–12–5–1"
### Context: CREATE TABLE table_1342379_20 ( district VARCHAR, incumbent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many districts does john j. douglass represent? ### Query: SELECT COUNT(district) FROM table_1342379_20 WHERE incumbent = "John J. Do...
### 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...
### 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_47917 ( "Round" real, "Pick" real, "Player" text, "Nationality" text, "College/Junior/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of Round, when Player is Tim Hunter (RW), and when Pick i...
### Context: CREATE TABLE table_70010 ( "Date" text, "City" text, "Country" text, "Venue" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which City has a Date on october 26, 2007 ### Query: SELECT "City" FROM table_70010 WHERE "D...
### Context: CREATE TABLE table_204_475 ( id number, "home team" text, "score" text, "away team" text, "date" text, "agg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- during the second leg , in how many matches was the winning score above 4 ? ...
### Context: CREATE TABLE table_name_59 ( home_team VARCHAR, away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the home team when Carlton was the away team? ### Query: SELECT home_team FROM table_name_59 WHERE away_team = "carlton"
### Context: CREATE TABLE table_16951593_1 ( original_air_date VARCHAR, no_in_season VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the original air date for number in season being 13 ### Query: SELECT original_air_date FROM table_16951593_1 WHERE no_i...
### 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 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_27378 ( "Pick #" real, "NFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many players were the running back draft pick for the New England Patriots? ### Que...
### Context: CREATE TABLE table_44247 ( "Fin. Pos" text, "Car No." text, "Driver" text, "Team" text, "Laps" text, "Time/Retired" text, "Grid" text, "Laps Led" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Driver...
### Context: CREATE TABLE table_name_51 ( record VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was their record when the attendance was 26,827? ### Query: SELECT record FROM table_name_51 WHERE attendance = "26,827"
### Context: CREATE TABLE table_25220821_4 ( thurs_3_june VARCHAR, wed_2_june VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 3 June time for the rider with 2 June time of 17' 45.11 127.525mph? ### Query: SELECT thurs_3_june FROM table_25220821_4...
### Context: CREATE TABLE entrepreneur ( Entrepreneur_ID int, People_ID int, Company text, Money_Requested real, Investor text ) CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, Date_of_Birth text ) -- Using valid SQLite, answer the following questions...
### Context: CREATE TABLE table_204_52 ( id number, "#" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times was the venue vasil levs...
### Context: CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE ...