text
stringlengths
197
8.39k
### Context: CREATE TABLE table_name_65 ( founded VARCHAR, school VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the year Airds High School was founded? ### Query: SELECT founded FROM table_name_65 WHERE school = "airds high school"
### Context: CREATE TABLE table_name_99 ( lead VARCHAR, nation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Lead has a Nation of croatia? ### Query: SELECT lead FROM table_name_99 WHERE nation = "croatia"
### Context: CREATE TABLE table_35841 ( "Rank" text, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Bronze has a Nation of spain? ### Query: SELECT MAX("Bronze") FROM table...
### Context: CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, ...
### Context: CREATE TABLE table_30332 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who directed ...
### Context: CREATE TABLE table_55682 ( "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 date of the game at Gee...
### Context: CREATE TABLE hz_info_zyjzjlb ( JZLSH number, YLJGDM number, zyjzjlb_id 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 text, XL...
### Context: CREATE TABLE reservations ( code number, room text, checkin text, checkout text, rate number, lastname text, firstname text, adults number, kids number ) CREATE TABLE rooms ( roomid text, roomname text, beds number, bedtype text, maxoccupancy number,...
### Context: CREATE TABLE table_17355628_7 ( score VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many games were played by team @ New Jersey? ### Query: SELECT COUNT(score) FROM table_17355628_7 WHERE team = "@ New Jersey"
### 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 medicati...
### Context: CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUser...
### Context: CREATE TABLE table_15189 ( "Year" real, "Population (Total)" real, "(Barcaldine)" real, "(Aramac)" real, "(Jericho)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average (Barcaldine) with a Population (Total) less than 3,5...
### Context: CREATE TABLE table_55842 ( "Year" real, "MRHMA" text, "USCA" text, "RTHK" text, "Joint Music Award" text, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Joint Music Awards were there with a RTHK of 1, in a Year befo...
### Context: CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, ...
### Context: CREATE TABLE faculty_participates_in ( facid number, actid number ) CREATE TABLE faculty ( facid number, lname text, fname text, rank text, sex text, phone number, room text, building text ) CREATE TABLE activity ( actid number, activity_name text ) CREATE...
### 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_name_97 ( total INTEGER, silver VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average total number of medals for a nation with 2 silver medals and a rank larger than 7? ### Query: SELECT AVG(tot...
### Context: CREATE TABLE table_11677691_6 ( hometown VARCHAR, school VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where is Norco HIgh School? ### Query: SELECT hometown FROM table_11677691_6 WHERE school = "Norco High school"
### Context: CREATE TABLE customer ( cust_ID varchar(3), cust_name varchar(20), acc_type char(1), acc_bal int, no_of_loans int, credit_score int, branch_ID int, state varchar(20) ) CREATE TABLE loan ( loan_ID varchar(3), loan_type varchar(15), cust_ID varchar(3), branch_...
### Context: CREATE TABLE table_name_10 ( nation VARCHAR, silver VARCHAR, total VARCHAR, gold VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which nation has 0 gold, a rank greater than 14, a total of 1, and silver less than 1? ###...
### Context: CREATE TABLE table_name_45 ( score VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the two-round score for Bob Tway? ### Query: SELECT score FROM table_name_45 WHERE player = "bob tway"
### Context: CREATE TABLE gyb ( CLINIC_ID text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, INSU_TYPE...
### Context: CREATE TABLE table_65365 ( "1953" text, "1954" text, "1955" text, "1956" text, "1957" text, "1958" text, "1959" text, "1960" text, "1961" text, "1962" text, "1963" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- w...
### 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_name_72 ( event VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Event, when Date is August 20-August 27? ### Query: SELECT event FROM table_name_72 WHERE date = "august 20-august 27"
### 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 patients ( row_id number, subject_id number, gender text, dob time, dod time ) C...
### Context: CREATE TABLE table_name_42 ( top_25 INTEGER, events INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the low number of top 25s in an event with over 15 appearances? ### Query: SELECT MIN(top_25) FROM table_name_42 WHERE events > 15
### Context: CREATE TABLE table_name_49 ( position VARCHAR, round VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the position of the player who was picked in round 22? ### Query: SELECT position FROM table_name_49 WHERE round = 22
### Context: CREATE TABLE table_4900 ( "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 did a home team score 9.9 (63)?...
### Context: 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, route text ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE proce...
### Context: CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, ...
### Context: CREATE TABLE table_28653 ( "Year (Ceremony)" text, "Film title" text, "Main Language(s)" text, "Director" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In the year (ceremony) 1998 (71st), what are all the main languages?...
### 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 locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25), COUNTRY_ID varchar(2) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID d...
### Context: CREATE TABLE editor ( editor_id number, name text, age number ) CREATE TABLE journal ( journal_id number, date text, theme text, sales number ) CREATE TABLE journal_committee ( editor_id number, journal_id number, work_type text ) -- Using valid SQLite, answer th...
### Context: CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age numb...
### Context: CREATE TABLE table_23392 ( "No. in series" text, "No. in season" real, "Family/families" text, "Location(s)" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did the episode with the Ririe family air for the...
### Context: CREATE TABLE table_10577579_2 ( mens_nickname VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Mens Nickname for the member location of Jacksonville, florida? ### Query: SELECT mens_nickname FROM table_10577579_2 WHE...
### Context: CREATE TABLE table_57042 ( "Year" real, "Tournament" text, "Venue" text, "Result" text, "Extra" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which venue resulted in 2nd before 2005? ### Query: SELECT "Venue" FROM table_57042 WHERE "R...
### Context: CREATE TABLE table_name_31 ( actor VARCHAR, soap_opera VARCHAR, years VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the actor for shortland street for the years 1993 1999, 2001 2003, 2007, 2009 ? ### Query: SELECT actor FROM table_n...
### Context: CREATE TABLE table_18600760_19 ( land___sqmi__ VARCHAR, longitude VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many lands with longitude of -100.895783 are? ### Query: SELECT COUNT(land___sqmi__) FROM table_18600760_19 WHERE longitude = "...
### Context: CREATE TABLE Reviewer ( rID int, name text ) CREATE TABLE Movie ( mID int, title text, year int, director text ) CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) -- Using valid SQLite, answer the following questions for the tables provided abo...
### Context: CREATE TABLE table_53528 ( "Position" real, "Club" text, "Played" real, "Points" text, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real ) -- Using valid SQLite, answer the following questions for the tables pr...
### Context: CREATE TABLE table_name_33 ( top_5 INTEGER, top_25 VARCHAR, cuts_made VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest Top-5, when Top-25 is less than 4, and when Cuts made is less than 7? ### Query: SELECT MIN(top_5) FROM ...
### Context: CREATE TABLE Financial_Transactions ( transaction_id INTEGER, previous_transaction_id INTEGER, account_id INTEGER, card_id INTEGER, transaction_type VARCHAR(15), transaction_date DATETIME, transaction_amount DOUBLE, transaction_comment VARCHAR(255), other_transaction_det...
### Context: CREATE TABLE table_203_830 ( id number, "year" number, "song" text, "chart positions\nus country" number, "chart positions\ncan country" number, "album" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which song of his reached number...
### Context: CREATE TABLE table_39096 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of overall figures when duke was the college and...
### Context: CREATE TABLE table_name_90 ( date VARCHAR, catalogue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date has a catalogue of asw 40362? ### Query: SELECT date FROM table_name_90 WHERE catalogue = "asw 40362"
### Context: CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CR...
### 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 employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varc...
### Context: CREATE TABLE table_9608 ( "Missouri vs." text, "Overall Record" text, "at Columbia" text, "at Opponent's Venue" text, "at Neutral Site" text, "Last 5 Meetings" text, "Last 10 Meetings" text, "Current Streak" text, "During Time in Big 12" text ) -- Using valid SQLite, a...
### Context: CREATE TABLE table_79073 ( "Number" real, "Year Start" real, "Year End" real, "Name" text, "Home Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Number has a Home Club of broomstones, and a Year End smaller than 1999? ### Qu...
### Context: CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description varchar, manufactu...
### Context: CREATE TABLE table_26150013_1 ( title VARCHAR, original_air_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many titles are there for the original air date April 3, 2012? ### Query: SELECT COUNT(title) FROM table_26150013_1 WHERE origin...
### Context: CREATE TABLE table_53847 ( "Species" text, "Strain" text, "Type" text, "Base Pairs" real, "Genes" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowst base pair with a Species of borrelia garinii, and a Genes larger than 832...
### Context: CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE program ( program_id int, ...
### Context: CREATE TABLE table_name_36 ( no_range VARCHAR, type VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the number range for 4vip ### Query: SELECT no_range FROM table_name_36 WHERE type = "4vip"
### Context: CREATE TABLE table_70725 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When is the record 5-4? ### Query: SELECT "Date" FROM table_70725 WHERE ...
### Context: CREATE TABLE table_name_39 ( winner VARCHAR, finalist VARCHAR, season VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the winner of the season before 2010 with Lietuvos Rytas as a finalist? ### Query: SELECT winner FROM table_name_39...
### Context: CREATE TABLE table_name_73 ( competition_or_tour VARCHAR, ground VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In which competition or tour was nordsj lland the opponent with a hr Ground? ### Query: SELECT competition_or_...
### Context: CREATE TABLE table_75222 ( "Game" real, "October" real, "Opponent" text, "Score" text, "Record" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what team has a score of 2 ### Query: SELECT "Score" FROM table_75222 WHE...
### 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 microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, ...
### Context: CREATE TABLE table_name_36 ( v_mph_ INTEGER, saffir_simpson_category VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the lowest V(mph) for a Saffir-Simpson of 4 in 2005? ### Query: SELECT MIN(v_mph_) FROM table_name_36...
### Context: CREATE TABLE Student_Tests_Taken ( registration_id INTEGER, date_test_taken DATETIME, test_result VARCHAR(255) ) CREATE TABLE Courses ( course_id INTEGER, author_id INTEGER, subject_id INTEGER, course_name VARCHAR(120), course_description VARCHAR(255) ) CREATE TABLE Studen...
### Context: CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewRejectionRea...
### 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 faculty ( facid number, lname text, fname text, rank text, sex text, phone number, room text, building text ) CREATE TABLE activity ( actid number, activity_name text ) CREATE TABLE participates_in ( stuid number, actid number ) CREATE TABLE f...
### Context: CREATE TABLE table_65958 ( "Township" text, "County" text, "Pop. (2010)" real, "Land ( sqmi )" real, "Water (sqmi)" real, "Latitude" real, "Longitude" real, "GEO ID" real, "ANSI code" real ) -- Using valid SQLite, answer the following questions for the tables provided ...
### 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 table_12279 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Tournament has a Opponent of piero luisi? ### Query: SELECT "T...
### Context: CREATE TABLE table_23538 ( "District" text, "Representative" text, "Party Change?" text, "Prior background" text, "Religion" text, "Birth year" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who has a religion of United Methodist an...
### Context: CREATE TABLE table_name_15 ( record VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Record on the Date May 8? ### Query: SELECT record FROM table_name_15 WHERE date = "may 8"
### Context: CREATE TABLE catalog_contents_additional_attributes ( catalog_entry_id number, catalog_level_number number, attribute_id number, attribute_value text ) CREATE TABLE attribute_definitions ( attribute_id number, attribute_name text, attribute_data_type text ) CREATE TABLE catalo...
### Context: CREATE TABLE table_name_57 ( goals INTEGER, games VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Goals have Games smaller than 41, and a Player of mark amos? ### Query: SELECT MIN(goals) FROM table_name_57 WHERE games ...
### Context: CREATE TABLE table_76104 ( "Features" text, "Foundation" text, "Standard" text, "Enterprise" text, "Datacenter" text, "Itanium" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Foundation has an Enterprise of 2? ### Query: SELE...
### Context: CREATE TABLE cinema ( Cinema_ID int, Name text, Openning_year int, Capacity int, Location text ) CREATE TABLE schedule ( Cinema_ID int, Film_ID int, Date text, Show_times_per_day int, Price float ) CREATE TABLE film ( Film_ID int, Rank_in_series int, Nu...
### 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 vitalperiodic...
### Context: CREATE TABLE table_73522 ( "Game" real, "Date" text, "Team" 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 abov...
### 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 zzmzjzjlb ( 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 table_11168 ( "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 day did South Melbourne play a...
### Context: CREATE TABLE table_69874 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team lost on May 1? ### Query: SELECT "Loss" FROM table_69874 WHERE "Date" = 'may 1'
### Context: CREATE TABLE table_57460 ( "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 did the home team score when t...
### Context: CREATE TABLE diagnoses ( 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_204_26 ( id number, "name" text, "position" text, "birth date/age at start of campaign" text, "games in campaign" text, "club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the next player listed after and...
### 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 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_train_11 ( "id" int, "pregnancy_or_lactation" bool, "severe_sepsis" bool, "active_infection" bool, "heart_disease" bool, "body_weight" float, "septic_shock" bool, "serum_aminotransferase_level_alt_ast" int, "NOUSE" float ) -- Using valid SQLite, answ...
### Context: CREATE TABLE table_204_724 ( id number, "outcome" text, "no." number, "date" text, "tournament" text, "surface" text, "partner" text, "opponents in the final" text, "score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provide...
### Context: CREATE TABLE election ( Election_ID int, Representative_ID int, Date text, Votes real, Vote_Percent real, Seats real, Place real ) CREATE TABLE representative ( Representative_ID int, Name text, State text, Party text, Lifespan text ) -- Using valid SQLite...
### Context: CREATE TABLE table_24650 ( "Year" real, "Starts" real, "Wins" real, "Top 5" real, "Top 10" real, "Poles" real, "Avg. Start" text, "Avg. Finish" text, "Winnings" text, "Position" text, "Team(s)" text ) -- Using valid SQLite, answer the following questions for th...
### Context: CREATE TABLE table_name_55 ( team VARCHAR, position_in_table VARCHAR, outgoing_manager VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Team that has a Position in table of 15th (a) and a Outgoing manager of claudio borghi? ### Query: S...
### Context: CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_N...
### Context: 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, route text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icusta...
### Context: CREATE TABLE Participants_in_Events ( event_id VARCHAR ) CREATE TABLE EVENTS ( event_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many events did not have any participants? ### Query: SELECT COUNT(*) FROM EVENTS WHERE NOT event_id IN ...
### Context: CREATE TABLE table_name_49 ( second_vice_president VARCHAR, inaugurated VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Second Vice President, when Inaugurated is '15 March 1935'? ### Query: SELECT second_vice_president FROM table_name_4...
### Context: CREATE TABLE table_27914606_1 ( season__number VARCHAR, us_viewers__millions_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of the episode in the season that had 7.19 millions of north american viewers? ### Query: SELECT sea...
### Context: CREATE TABLE climber ( Climber_ID int, Name text, Country text, Time text, Points real, Mountain_ID int ) CREATE TABLE mountain ( Mountain_ID int, Name text, Height real, Prominence real, Range text, Country text ) -- Using valid SQLite, answer the followi...
### Context: CREATE TABLE table_60166 ( "Model" text, "Screen size" text, "Bluetooth" text, "FM transmitter" text, "Flash" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the screen size of the s45 (Australia only) Model with no bluetooth? #...
### 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...