text
stringlengths
197
8.39k
### Context: CREATE TABLE table_name_47 ( season VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What season had a 14th position? ### Query: SELECT season FROM table_name_47 WHERE position = "14th"
### Context: CREATE TABLE table_23242958_1 ( us_viewers__millions_ VARCHAR, production_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many millions of U.S. viewers watched the episode with the production code of 3AJN01? ### Query: SELECT us_viewers...
### Context: CREATE TABLE hz_info ( KH text, KLX number, YLJGDM text, RYBH text ) 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, ...
### 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 SuggestedEdi...
### Context: CREATE TABLE author ( authorid int, authorname varchar ) CREATE TABLE field ( fieldid int ) CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE writes ( paperid int, authorid int ) CREATE TABLE paperkeyphrase ( paperid int, keyphraseid int ) CRE...
### Context: CREATE TABLE table_12171145_1 ( mens_doubles VARCHAR, womens_doubles VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many mens doubles when womens doubles is catrine bengtsson margit borg? ### Query: SELECT COUNT(mens_doubles) FROM table_121...
### Context: CREATE TABLE table_34880 ( "Round" real, "Player" text, "Position" text, "Nationality" text, "College/Junior/Club Team (League)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the position of Pierre Daigneault? ### Query: SELEC...
### Context: 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, Name TEXT, Year INTEGER, Price INTEGER, Score INTEGER,...
### Context: CREATE TABLE table_7384 ( "Year" text, "Stamp duty reserve tax" text, "Standard Stamp Duty" text, "Standard Duties Total Revenue (in \u20acmillion)" real, "over Total Tax Revenue (in %)" text, "over GDP (in %)" real ) -- Using valid SQLite, answer the following questions for the t...
### Context: CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, ...
### Context: CREATE TABLE table_name_69 ( team VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Team with a Date with december 11? ### Query: SELECT team FROM table_name_69 WHERE date = "december 11"
### Context: CREATE TABLE table_17323092_7 ( high_points VARCHAR, location_attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many players had high points in the location/attendance FedexForum 11,498 respectively? ### Query: SELECT COUNT(high_poi...
### Context: CREATE TABLE table_name_2 ( national_titles VARCHAR, mascot VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of national titles for the team with doane tigers as the mascot? ### Query: SELECT COUNT(national_titles) FROM t...
### Context: CREATE TABLE table_32230 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which venue had the result 7-1? ### Query: SELECT "Venue" FROM table_32230 WHERE "Result" =...
### Context: CREATE TABLE manager_half ( player_id text, year number, team_id text, league_id text, inseason number, half number, g number, w number, l number, rank number ) CREATE TABLE fielding_postseason ( player_id text, year number, team_id text, league_id t...
### Context: CREATE TABLE table_9808 ( "Rank" real, "Title" text, "Studio" text, "Director" text, "Worldwide Gross" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What director has a worldwide gross of $149,022,650 and is ranked greater than 7? ###...
### Context: CREATE TABLE table_18512 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the candidates for result of lost renomination democra...
### Context: CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE PostsWithDeleted ( Id number, PostTyp...
### 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 lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE...
### Context: CREATE TABLE routes ( rid number, dst_apid number, dst_ap text, src_apid number, src_ap text, alid number, airline text, codeshare text ) CREATE TABLE airlines ( alid number, name text, iata text, icao text, callsign text, country text, active te...
### Context: CREATE TABLE table_31059 ( "Character" text, "Original Cast, 2009" text, "Revival Cast, 2010" text, "Wales Cast, 2012" text, "New Zealand Cast, 2012" text, "Australian Cast, 2012" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In th...
### Context: CREATE TABLE table_12939 ( "Driver" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest number of laps with more than 16 points? ### Query: SE...
### Context: CREATE TABLE table_2159506_4 ( successor VARCHAR, reason_for_change VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who are all successors when reason for change is died May 12, 1964? ### Query: SELECT successor FROM table_2159506_4 WHERE reason...
### Context: CREATE TABLE table_name_28 ( location VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the location of the school having the panthers as a mascot with an AAA for the IHSAA Class? ### Query: SELECT l...
### Context: CREATE TABLE table_name_22 ( losses INTEGER, draws VARCHAR, against VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the greatest number of losses when there are more than 0 draws and 1390 against matches? ### Query: SELECT MAX(losses...
### Context: CREATE TABLE table_7244 ( "Year" real, "Actor" text, "Award" text, "Series" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average year that Idris Elba was nominated for or won an award? ### Query: SELECT AVG...
### Context: CREATE TABLE table_32032 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was Jenson Button's constructor? ### Query: SELECT "Constructor" FROM table_3203...
### Context: CREATE TABLE greatermanchestercrime ( crimeid text, crimets time, location text, lsoa text, type text, outcome text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What s the most common type of crime? ### Query: SELECT type FROM greater...
### Context: CREATE TABLE table_32008 ( "Name" text, "Circuit" text, "Date" text, "Winning drivers" text, "Winning constructor" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the race on 9 July? ### Query: SEL...
### Context: CREATE TABLE table_33037 ( "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 largest crowd for an aw...
### Context: CREATE TABLE table_18458 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Result" text, "Candidates" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the candidate that was first elected in 1914? ### Q...
### Context: CREATE TABLE table_name_97 ( total INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was Andorra's total with less than 10 silver and more than 5 bronze? ### Query: SELECT SUM(total) FRO...
### Context: CREATE TABLE race ( name VARCHAR, CLASS VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show name, class, and date for all races. ### Query: SELECT name, CLASS, date FROM race
### Context: CREATE TABLE technician ( Team VARCHAR, Starting_Year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the team and starting year of technicians? ### Query: SELECT Team, Starting_Year FROM technician
### Context: CREATE TABLE host ( Host_ID int, Name text, Nationality text, Age text ) CREATE TABLE party ( Party_ID int, Party_Theme text, Location text, First_year text, Last_year text, Number_of_hosts int ) CREATE TABLE party_host ( Party_ID int, Host_ID int, Is_M...
### Context: CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, ...
### Context: CREATE TABLE 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 Player ( pID numeric(5,0), pName varchar(20), yCard varchar(3), HS numeric(5,0) ) CREATE TABLE Tryout ( pID numeric(5,0), cName varchar(20), pPos varchar(8), decision varchar(3) ) CREATE TABLE College ( cName varchar(20), state varchar(2), enr nume...
### Context: CREATE TABLE table_name_45 ( name VARCHAR, assists VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the Name that has the Assists of lake (154) lake (5.1 apg)? ### Query: SELECT name FROM table_name_45 WHERE assists = "lake (154) ...
### 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_4892 ( "Season" real, "Teams" real, "K League Classic" text, "K-League Cup" text, "FA Cup" text, "Manager" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What K League classic had less than 10 teams? ### Query: S...
### Context: CREATE TABLE table_name_43 ( religion VARCHAR, scheduled_tribe VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE RELIGION WITH A SCHEDULED TRIBE OF 0.90%? ### Query: SELECT religion FROM table_name_43 WHERE scheduled_tribe = "0.90%"
### Context: CREATE TABLE table_23377 ( "Year" text, "Division" text, "League" text, "Regular Season" text, "Playoffs" text, "Open Cup" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When final is the open cup what is the league? ### Query: SEL...
### Context: CREATE TABLE table_72944 ( "Player" text, "Team" text, "Matches" real, "Overs" text, "Runs" real, "Wickets" real, "Best" text, "Econ" text, "S/Rate" text, "4/inns" real, "5+/inns" real, "Average" text ) -- Using valid SQLite, answer the following questions ...
### 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 table_75564 ( "Name" text, "Pada 1" text, "Pada 2" text, "Pada 3" text, "Pada 4" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which Pada 3 has a Pada 2 of che? ### Query: SELECT "Pada 3" FROM table_75564 WHERE "Pada 2" =...
### Context: CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int...
### Context: CREATE TABLE table_27404 ( "Language" text, "Sorata Municipality" text, "Guanay Municipality" text, "Tacacoma Municipality" text, "Quiabaya Municipality" text, "Combaya Municipality" text, "Tipuani Municipality" text, "Mapiri Municipality" text, "Teoponte Municipality" t...
### Context: CREATE TABLE table_16153 ( "Country" text, "Membership (from 2010)" real, "Name of member organization" text, "Year current Scouting organization joined WOSM" text, "Year member organization was founded" text, "Admits boys/girls" text ) -- Using valid SQLite, answer the following ...
### Context: CREATE TABLE table_name_94 ( home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was Hawthorn's score as the home team? ### Query: SELECT home_team AS score FROM table_name_94 WHERE home_team = "hawthorn"
### 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 Documents_to_be_Destroyed ( Document_ID INTEGER, Destruction_Authorised_by_Employee_ID INTEGER, Destroyed_by_Employee_ID INTEGER, Planned_Destruction_Date DATETIME, Actual_Destruction_Date DATETIME, Other_Details VARCHAR(255) ) CREATE TABLE Ref_Document_Types ( Doc...
### Context: CREATE TABLE Products ( product_id INTEGER, product_type_code VARCHAR(15), product_name VARCHAR(80), product_price DOUBLE ) CREATE TABLE Contacts ( contact_id INTEGER, customer_id INTEGER, gender VARCHAR(1), first_name VARCHAR(80), last_name VARCHAR(50), contact_pho...
### 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_11514 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In the game where the home team was...
### Context: CREATE TABLE table_16575609_5 ( cfl_team VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What teak was Brady Browne drafted onto? ### Query: SELECT cfl_team FROM table_16575609_5 WHERE player = "Brady Browne"
### Context: CREATE TABLE table_name_12 ( tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What tournament has 1r as the 2011? ### Query: SELECT tournament FROM table_name_12 WHERE 2011 = "1r"
### Context: CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE intake...
### 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_43273 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Total medals for the Nation with 1 Silver and 0 Golds? ### Query: ...
### Context: CREATE TABLE constructorstandings ( constructorstandingsid number, raceid number, constructorid number, points number, position number, positiontext text, wins number ) CREATE TABLE constructorresults ( constructorresultsid number, raceid number, constructorid numbe...
### Context: CREATE TABLE table_name_77 ( founded VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different dates are there for founded teams for the venue of champion window field? ### Query: SELECT COUNT(founded) FROM table_name_77 ...
### Context: CREATE TABLE table_26736040_1 ( no_in_series INTEGER, directed_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number in series with director as Phil Abraham? ### Query: SELECT MAX(no_in_series) FROM table_26736040_1 WHERE...
### Context: CREATE TABLE Rooms ( RoomId TEXT, roomName TEXT, beds INTEGER, bedType TEXT, maxOccupancy INTEGER, basePrice INTEGER, decor TEXT ) CREATE TABLE Reservations ( Code INTEGER, Room TEXT, CheckIn TEXT, CheckOut TEXT, Rate REAL, LastName TEXT, FirstName T...
### Context: CREATE TABLE table_29295463_9 ( quarterfinalists VARCHAR, champion VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the quarter-finalists in the event where the champion was Terry Moor 3-6, 7-6, 6-2? ### Query: SELECT quarterfinalists FR...
### Context: CREATE TABLE table_69567 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the largest Attendance with a Loss of darling (0 1)? ### Query: ...
### Context: CREATE TABLE table_name_16 ( circuit VARCHAR, championship VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The 2001 NASCAR Winston Cup Series championship has what has a circuit? ### Query: SELECT circuit FROM table_name_16 WHERE championship = ...
### 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 microlab ( ...
### Context: CREATE TABLE table_31150 ( "Name/ designation" text, "Year of intro" real, "Country of origin" text, "Primary cartridge" text, "Major users" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country made the Flieger-Doppelpistole 1919...
### 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 table_name_35 ( money___ INTEGER, to_par VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest Money ($), when Top Par is E, and when Player is Ernie Els? ### Query: SELECT MAX(money___) AS $__ FROM...
### Context: CREATE TABLE table_11623 ( "State" text, "Interview" real, "Swimsuit" real, "Evening Gown" real, "Average" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest evening gown number in North Carolina with less than 9.214 int...
### Context: CREATE TABLE table_name_7 ( rank INTEGER, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's hale irwin's average rank? ### Query: SELECT AVG(rank) FROM table_name_7 WHERE player = "hale irwin"
### Context: CREATE TABLE table_204_662 ( id number, "week" number, "date" text, "opponent" text, "result" text, "attendance" number, "bye" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many games were n october 1990 ? ### Query: SELEC...
### Context: CREATE TABLE table_27588823_2 ( power__kw_ VARCHAR, callsign VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How much power does dwzf have? ### Query: SELECT power__kw_ FROM table_27588823_2 WHERE callsign = "DWZF"
### Context: CREATE TABLE table_204_288 ( id number, "region" text, "seed" number, "team" text, "coach" text, "finished" text, "final opponent" text, "score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which region is above the west ...
### 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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, rel...
### Context: CREATE TABLE 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_62 ( surface VARCHAR, tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Surface has a Tournament of olbia? ### Query: SELECT surface FROM table_name_62 WHERE tournament = "olbia"
### Context: CREATE TABLE table_name_53 ( athlete VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On 11 July 2003, which athlete performed? ### Query: SELECT athlete FROM table_name_53 WHERE date = "11 july 2003"
### Context: CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname 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_DIRE_CD text, MED_...
### Context: CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, ...
### Context: CREATE TABLE table_46961 ( "Name" text, "Premier League" real, "League Cup" real, "FA Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest league cup with more than 0 FA cups, a premier league less than ...
### Context: CREATE TABLE Plays_Games ( StuID INTEGER, GameID INTEGER, Hours_Played 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 SportsI...
### Context: CREATE TABLE table_204_335 ( id number, "outcome" text, "no." number, "date" number, "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 provi...
### Context: CREATE TABLE table_name_59 ( record VARCHAR, game VARCHAR, visitor VARCHAR, decision VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which game later than number 32 had both Ellis for the decision and Nashville as the visiting team? ### ...
### 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 labevents ( row_id number, subject_id number, hadm_id number, itemid number, ch...
### Context: CREATE TABLE table_name_31 ( date_made VARCHAR, type VARCHAR, gsr_class VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the date of creation of the locomotive of type 0-6-0 and GSR class of 441? ### Query: SELECT date_made FROM table...
### Context: CREATE TABLE table_26263322_1 ( age INTEGER, result VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the age when the result is fired in week 8 ### Query: SELECT MIN(age) FROM table_26263322_1 WHERE result = "Fired in week 8"
### Context: CREATE TABLE table_name_60 ( number_of_issues VARCHAR, end_month VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of Issues has a End month of oct-80? ### Query: SELECT COUNT(number_of_issues) FROM table_name_60 WHERE end...
### Context: CREATE TABLE table_name_46 ( college VARCHAR, position VARCHAR, overall VARCHAR, round VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the college that has an overall larger than 187 and a round smaller than 7 for the defensive end p...
### Context: CREATE TABLE table_21212 ( "No." real, "Hanyu" text, "Tongyong" text, "Pe\u030dh-\u014de-j\u012b" text, "Chinese" text, "Area (km\u00b2)" text, "No. of villages" real, "Population (2010)" real ) -- Using valid SQLite, answer the following questions for the tables provided ...
### Context: CREATE TABLE table_203_375 ( id number, "name" text, "year built" text, "country" text, "town" text, "height" text, "remarks" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what year was the last pylon in germany built ? ### Qu...
### Context: CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text...
### Context: CREATE TABLE table_4442 ( "Season" text, "Div." text, "Pos." text, "Pld." text, "Pts." text, "Play-offs" text, "Trophy" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the season for quarter-final position of 4th ### Que...
### Context: CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text ) CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text ) -- Using valid SQLite, answer the following questions for the t...
### Context: CREATE TABLE table_name_69 ( record VARCHAR, week VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Week larger than 5, and an opponent of at new york giants had what record? ### Query: SELECT record FROM table_name_69 WHERE ...