text
stringlengths
197
8.39k
### Context: CREATE TABLE table_72090 ( "District" text, "Total amount of trees" real, "Prevailing types, %" text, "Amount of old trees" text, "Amount of trees, that require replacement" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the amo...
### Context: CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departure_flight_number int, stop_time int ) 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 table_15887683_15 ( television_service VARCHAR, country VARCHAR, n° VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what television service are in the united kingdom and n is greater than 854.0? ### Query: SELECT television_serv...
### Context: CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE restriction ( restriction_c...
### Context: CREATE TABLE table_30407 ( "Season" text, "Host" text, "Mens Singles" text, "Womens Singles" text, "Mens Doubles" text, "Womens Doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people are women's singles in the seaso...
### Context: CREATE TABLE table_72843 ( "Poll Year" text, "Winner" text, "Second" text, "Third" text, "Fourth" text, "Fifth" text, "Sixth" text, "Seventh" text, "Eighth" text, "Ninth" text, "Tenth" text ) -- Using valid SQLite, answer the following questions for the tables ...
### Context: CREATE TABLE table_59559 ( "Show" text, "Date" text, "Official ratings (millions)" real, "Weekly rank" text, "Share" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Share has a weekly Rank of 8 and is dated 15 June? ### Query: SEL...
### Context: CREATE TABLE table_203_387 ( id number, "parish est" number, "church" text, "city" text, "current bldg begun" number, "weekly collections" text, "notes" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- our lady of the assumption...
### 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 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 jyjgzbb ( BGDH text,...
### Context: CREATE TABLE table_3897 ( "Position" real, "Driver" text, "Points" real, "Winnings" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many winnings does jeff gordon have? ### Query: SELECT "Winnings" FROM table_3897 WHE...
### Context: CREATE TABLE table_31826 ( "Rank" real, "Rider" text, "Team" text, "Speed" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the time/s of team Triumph in those races in which Triumph ranked higher than 4? ### Query: ...
### 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 table_6745 ( "Buechel & Manhart spelling (pronunciation)" text, "Ullrich" text, "Brandon University" text, "Deloria & Boas" text, "Dakota Mission" text, "Rood & Taylor" text, "Riggs" text, "Williamson" text, "University of Minnesota" text, "White Hat" te...
### Context: CREATE TABLE table_name_20 ( site VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Site had an Attendance of 45,000? ### Query: SELECT site FROM table_name_20 WHERE attendance = "45,000"
### Context: CREATE TABLE table_6581 ( "Celebrity" text, "Famous for" text, "Entered" text, "Exited" text, "Finished" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which celebrity who was famous for being the ex busted member and TV presenter exite...
### Context: CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ...
### 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_41737 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the lowest attendance at a week 15 game? ### Query: SELECT MIN("Attendance") FROM...
### Context: CREATE TABLE table_76887 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "Location" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date did Fleetcenter have a game lower than 9 with a score of 104-9...
### 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 course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varch...
### Context: CREATE TABLE table_name_11 ( podiums VARCHAR, races VARCHAR, final_placing VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Podium has 1 Race and a Final Place of 5th? ### Query: SELECT podiums FROM table_name_11 WHERE races = "1" AND f...
### Context: CREATE TABLE prereq ( course_id varchar(8), prereq_id varchar(8) ) CREATE TABLE advisor ( s_ID varchar(5), i_ID varchar(5) ) CREATE TABLE section ( course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), building varchar(15), room_number va...
### Context: CREATE TABLE salary ( year number, team_id text, league_id text, player_id text, salary number ) CREATE TABLE player ( player_id text, birth_year text, birth_month text, birth_day text, birth_country text, birth_state text, birth_city text, death_year te...
### Context: CREATE TABLE table_34849 ( "Tournament" text, "1981" text, "1982" text, "1983" text, "1984" text, "1985" text, "1986" text, "1987" text, "1988" text, "1989" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Tourna...
### Context: CREATE TABLE grapes ( ID INTEGER, Grape TEXT, Color TEXT ) CREATE TABLE appellations ( No INTEGER, Appelation TEXT, County TEXT, State TEXT, Area TEXT, isAVA TEXT ) CREATE TABLE wine ( No INTEGER, Grape TEXT, Winery TEXT, Appelation TEXT, State TEXT...
### 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_7 ( bronze INTEGER, rank VARCHAR, silver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Bronze is the lowest one that has a Rank of 3, and a Silver smaller than 2? ### Query: SELECT MIN(bronze) FROM table_name_...
### 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 job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID ...
### Context: CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admissi...
### Context: CREATE TABLE table_name_46 ( rank VARCHAR, athletes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rank of Manuel Cortina Mart nez? ### Query: SELECT rank FROM table_name_46 WHERE athletes = "manuel cortina martínez"
### 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 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_18113 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Results" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which party does the incumbent first elected in 1994 belon...
### Context: CREATE TABLE table_name_92 ( place VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Place that has a Date of 22 august 2004? ### Query: SELECT place FROM table_name_92 WHERE date = "22 august 2004"
### Context: CREATE TABLE degrees ( year number, campus number, degrees number ) CREATE TABLE faculty ( campus number, year number, faculty number ) CREATE TABLE enrollments ( campus number, year number, totalenrollment_ay number, fte_ay number ) CREATE TABLE discipline_enroll...
### Context: CREATE TABLE table_name_97 ( winner VARCHAR, course VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the winner for the Rome to Teramo course? ### Query: SELECT winner FROM table_name_97 WHERE course = "rome to teramo"
### Context: CREATE TABLE table_26200568_16 ( losses INTEGER, club VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many losses does Central Blues have? ### Query: SELECT MAX(losses) FROM table_26200568_16 WHERE club = "Central Blues"
### Context: CREATE TABLE table_68767 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the first year of the European Championships competition? ### Query: SELECT MIN("...
### Context: CREATE TABLE table_256286_23 ( meas_num INTEGER, description VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of the tax supervising and conservation bill? ### Query: SELECT MIN(meas_num) FROM table_256286_23 WHERE description ...
### Context: CREATE TABLE table_name_61 ( player VARCHAR, points VARCHAR, touchdowns VARCHAR, extra_points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Player has more than 1 Touchdowns with 0 Extra Points and less than 50 Points? ### Query: ...
### Context: CREATE TABLE table_name_54 ( score VARCHAR, home VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Score with a Home with hornets? ### Query: SELECT score FROM table_name_54 WHERE home = "hornets"
### 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 table_2615 ( "Stage" real, "Stage winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Malaysian rider classification" text, "Team classification" text, "Malaysian team classification" text ) -- Using val...
### Context: CREATE TABLE table_name_62 ( cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR, top_5 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many cuts were made when there weren't any wins but had a top-5 of 1 and a top 10 larger than 4? ### ...
### 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 ...
### Context: CREATE TABLE table_name_40 ( wins VARCHAR, podiums VARCHAR, series VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Wins has Podiums of 0, and a Series of masters of formula 3? ### Query: SELECT wins FROM table_name_40 WHERE podiums = "...
### Context: CREATE TABLE table_name_94 ( team VARCHAR, pick VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team picked 80? ### Query: SELECT team FROM table_name_94 WHERE pick = 80
### Context: CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, c...
### Context: CREATE TABLE table_73969 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "Patient Portrayer" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who d...
### Context: CREATE TABLE Student_Course_Enrolment ( registration_id INTEGER, student_id INTEGER, course_id INTEGER, date_of_enrolment DATETIME, date_of_completion DATETIME ) CREATE TABLE Course_Authors_and_Tutors ( author_id INTEGER, author_tutor_ATB VARCHAR(3), login_name VARCHAR(40),...
### Context: CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 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 prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug...
### Context: CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTas...
### 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_68002 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the margin of victory for the Mississippi Gulf Resort Clas...
### Context: CREATE TABLE table_204_741 ( id number, "rank" number, "name" text, "nationality" text, "1,62" text, "1,67" text, "1,72" text, "1,75" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the last ranked c...
### Context: CREATE TABLE table_38401 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many events resulted in a top-25 less than 2? ...
### Context: CREATE TABLE files ( f_id number, artist_name text, file_size text, duration text, formats text ) CREATE TABLE genre ( g_name text, rating text, most_popular_in text ) CREATE TABLE song ( song_name text, artist_name text, country text, f_id number, genr...
### Context: CREATE TABLE table_57940 ( "Year" text, "Driver" text, "Constructor" text, "Category" text, "Location" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the driver in 1955? ### Query: SELECT "Driver"...
### 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_204_465 ( id number, "#" number, "temple name" text, "hangul" text, "hanja" text, "period of reign" text, "personal name" text, "relationship" text, "note" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
### Context: CREATE TABLE table_23685152_2 ( record VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the record in the game against Eskimos? ### Query: SELECT record FROM table_23685152_2 WHERE opponent = "Eskimos"
### Context: CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, e...
### Context: CREATE TABLE table_name_42 ( date VARCHAR, opponent_number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the date when the opponent# is iowa? ### Query: SELECT date FROM table_name_42 WHERE opponent_number = "iowa"
### Context: CREATE TABLE CLASS ( CLASS_CODE varchar(5), CRS_CODE varchar(10), CLASS_SECTION varchar(2), CLASS_TIME varchar(20), CLASS_ROOM varchar(8), PROF_NUM int ) CREATE TABLE PROFESSOR ( EMP_NUM int, DEPT_CODE varchar(10), PROF_OFFICE varchar(50), PROF_EXTENSION varchar(4),...
### Context: CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, meter_700 text, Time text ) CREATE TABLE event ( ID int, Name text, Stadium_ID int, Year t...
### Context: CREATE TABLE table_1745843_8 ( class VARCHAR, part_4 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What class in the word with part 4 'giheizan'? ### Query: SELECT class FROM table_1745843_8 WHERE part_4 = "giheizan"
### Context: CREATE TABLE table_name_67 ( score VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score with the opponent being New Zealand Warriors? ### Query: SELECT score FROM table_name_67 WHERE opponent = "new zealand warrio...
### Context: CREATE TABLE table_name_43 ( shooter VARCHAR, event VARCHAR, rank_points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What shooter has wc munich as the event, and 8 as the rank points? ### Query: SELECT shooter FROM table_name_43 WHERE ev...
### Context: CREATE TABLE table_69604 ( "Polling Firm" text, "Date Published" text, "T. Papadopoulos" text, "D. Christofias" text, "I. Kasoulidis" text, "K. Themistokleous" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the percentage f...
### Context: CREATE TABLE Supplier_Addresses ( supplier_id INTEGER, address_id INTEGER, date_from DATETIME, date_to DATETIME ) CREATE TABLE Staff_Department_Assignments ( staff_id INTEGER, department_id INTEGER, date_assigned_from DATETIME, job_title_code VARCHAR(10), date_assigned_...
### Context: CREATE TABLE table_51787 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average top-25 value for majors that ha...
### Context: CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE treatment ( treat...
### Context: CREATE TABLE table_name_34 ( away_team VARCHAR, crowd INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team played in front of 28,536 at an away stadium? ### Query: SELECT away_team AS score FROM table_name_34 WHERE crowd > 28 OFFSET 536
### Context: CREATE TABLE table_204_866 ( id number, "name" text, "lifetime" text, "nationality" text, "notable as" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which nationality is top on the chart ### Query: SELECT "nationalit...
### Context: CREATE TABLE table_name_58 ( bronze INTEGER, total INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of bronze when the total is smaller than 1? ### Query: SELECT AVG(bronze) FROM table_name_58 WHERE total < 1
### Context: CREATE TABLE table_204_135 ( id number, "position" number, "club" text, "played" number, "points" number, "wins" number, "draws" number, "losses" number, "goals for" number, "goals against" number, "goal difference" number ) -- Using valid SQLite, answer the fo...
### Context: CREATE TABLE table_54656 ( "Name" text, "Scotland career" text, "Caps" real, "Goals" real, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average cap number in scotland in 1986 1998 leass than 69? ### Query: SELEC...
### Context: CREATE TABLE table_name_8 ( school VARCHAR, mascot VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What school has rebels as their mascot? ### Query: SELECT school FROM table_name_8 WHERE mascot = "rebels"
### 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 Employees ( Employee_ID INTEGER, Role_Code CHAR(15), Employee_Name VARCHAR(255), Gender_MFU CHAR(1), Date_of_Birth DATETIME, Other_Details VARCHAR(255) ) CREATE TABLE Ref_Locations ( Location_Code CHAR(15), Location_Name VARCHAR(255), Location_Description V...
### Context: CREATE TABLE table_name_69 ( silver INTEGER, gold VARCHAR, bronze VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Gold of 0, and a Bronze smaller than 0 and what is the sum of the silver? ### Query: SELECT SUM(silver) FROM table_name_69 WHER...
### Context: CREATE TABLE table_name_45 ( candidate VARCHAR, result VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the candidate that had 10 fired in week 2 (1-27-2005)? ### Query: SELECT candidate FROM table_name_45 WHERE result = "10 fired in week ...
### Context: CREATE TABLE Allergy_Type ( Allergy VARCHAR(20), AllergyType VARCHAR(20) ) CREATE TABLE Has_Allergy ( StuID INTEGER, Allergy VARCHAR(20) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Ad...
### 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_name_66 ( nation VARCHAR, bronze VARCHAR, silver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Bronze smaller than 5, and a Silver larger than 0 is which nation? ### Query: SELECT nation FROM table_name_66 WHERE bronze <...
### Context: CREATE TABLE table_57592 ( "Race" text, "Circuit" text, "Date" text, "Pole position" text, "Fastest lap" text, "Winning driver" text, "Constructor" text, "Tyre" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
### Context: CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, h...
### Context: CREATE TABLE table_17156 ( "Player" text, "No.(s)" text, "Height in Ft." text, "Position" text, "Years for Rockets" text, "School/Club Team/Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which years had a jersey number 55 ...
### Context: CREATE TABLE table_name_40 ( year INTEGER, points VARCHAR, entrant VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the earliest year with less than 3 points and Parmalat Forti Ford was the entrant? ### Query: SELECT MIN(year) FROM ta...
### Context: CREATE TABLE table_204_547 ( id number, "rank" number, "lane" number, "name" text, "nationality" text, "time" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- out of all their times , which one was fastest ? ### Q...
### Context: CREATE TABLE table_47704 ( "Date" text, "Flight" text, "Aircraft" text, "Registration" text, "Location" text, "Fatalities" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which flight had an aircraft of vickers viscount type 794? ##...
### Context: CREATE TABLE table_name_65 ( position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who held the Communications Rep position in 2011? ### Query: SELECT 2011 FROM table_name_65 WHERE position = "communications rep"
### Context: CREATE TABLE table_64769 ( "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 Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) -- Using valid SQLite, answer the following ques...
### 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_31143 ( "Season" real, "Winner" text, "Runner-up" text, "Third place" text, "Fourth place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the runner up the season that Sagawa Express came in fourth? ### Query...