text
stringlengths
197
8.39k
### Context: CREATE TABLE instructor ( ID varchar(5), name varchar(20), dept_name varchar(20), salary numeric(8,2) ) CREATE TABLE takes ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), year numeric(4,0), grade varchar(2) ) CREATE TABLE prereq ( ...
### Context: CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE aircraft ( aircraft_...
### Context: CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, ad...
### Context: CREATE TABLE table_46372 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Score" text, "Record" text, "Streak" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people attended the game w...
### Context: CREATE TABLE table_203_368 ( id number, "date" text, "opponent" text, "venue" text, "result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- on what date was the last game in which cardiff city f.c. scored 2 goals ? ### Query: SELECT "d...
### Context: CREATE TABLE table_name_84 ( crowd INTEGER, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest crowd seen by the mcg Venue? ### Query: SELECT MIN(crowd) FROM table_name_84 WHERE venue = "mcg"
### Context: CREATE TABLE table_1059743_1 ( play_off VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many games had a score value of 813.5 in post-season play? ### Query: SELECT COUNT(play_off) FROM table_1059743_1 WHERE points = "813.5"
### Context: CREATE TABLE table_32209 ( "Player" text, "Nationality" text, "Position" text, "From" text, "School/Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player is associated with Temple? ### Query: SELECT "Player" FROM table_3...
### Context: CREATE TABLE table_name_82 ( attendance INTEGER, opponent VARCHAR, week VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest attendance when the opponent is the Los Angeles Rams and the week is less than 11? ### Query: SELECT ...
### Context: CREATE TABLE table_23014923_1 ( season VARCHAR, primary__south__winners VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the primary (South) winners is Inter The Bloomfield, what is the season total number? ### Query: SELECT COUNT(season) FROM...
### Context: CREATE TABLE table_54232 ( "Draw" real, "Artist" text, "Song" text, "Points" real, "Place" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What draw for 'ljubav jedne ene' with under 153 points? ### Query: SELECT SUM("Draw") FROM table_...
### Context: CREATE TABLE table_11044765_1 ( location VARCHAR, mascot VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What city and state is the Lancers mascot located? ### Query: SELECT location FROM table_11044765_1 WHERE mascot = "Lancers"
### Context: CREATE TABLE table_14245 ( "Elector" text, "Place of birth" text, "Cardinalatial title" text, "Elevated" text, "Elevator" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is listed as the Place of birth for the Elector of Soffredo? ...
### Context: CREATE TABLE Invoices ( invoice_number INTEGER, order_id INTEGER, invoice_date DATETIME ) CREATE TABLE Invoice_Line_Items ( order_item_id INTEGER, invoice_number INTEGER, product_id INTEGER, product_title VARCHAR(80), product_quantity VARCHAR(50), product_price DECIMAL(...
### 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_48 ( score_in_the_final VARCHAR, partner VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Partner Tomas Behrend's Score in the final? ### Query: SELECT score_in_the_final FROM table_name_48 WHERE partner = "tomas b...
### 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 appointment ( appointmentid number, patient number, prepnurse number, physician number, start time, end time, examinationroom text ) CREATE TABLE affiliated_with ( physician number, department number, primaryaffiliation boolean ) CREATE TABLE medicatio...
### Context: CREATE TABLE table_78333 ( "engine name" text, "engine code(s)" text, "engine configuration" text, "displacement" text, "max. power at rpm" text, "max. torque at rpm" text, "production period" text ) -- Using valid SQLite, answer the following questions for the tables provided...
### 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_36 ( year INTEGER, notes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average of all the years when the notes are electronics brand? ### Query: SELECT AVG(year) FROM table_name_36 WHERE notes = "electronics...
### 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_1342292_2 ( district VARCHAR, first_elected VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the district with first elected being 1938 ### Query: SELECT district FROM table_1342292_2 WHERE first_elected = 1938
### 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 CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ...
### Context: CREATE TABLE table_6250 ( "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 above...
### Context: CREATE TABLE table_79839 ( "Tournament" text, "2000" text, "2001" text, "2002" text, "Career SR" text, "Career Win-Loss" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what year 2000 tournment did Angeles Montolio have a career w...
### Context: CREATE TABLE table_name_52 ( title VARCHAR, length VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which title is 3:38 long? ### Query: SELECT title FROM table_name_52 WHERE length = "3:38"
### Context: CREATE TABLE table_72977 ( "Aircraft" text, "1990" real, "destroyed" real, "damaged" real, "to Iran" real, "survived" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If 4 went to iran and the amount that survived was less than 12.0 h...
### 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 Apartments ( apt_id INTEGER, building_id INTEGER, apt_type_code CHAR(15), apt_number CHAR(10), bathroom_count INTEGER, bedroom_count INTEGER, room_count CHAR(5) ) CREATE TABLE Apartment_Facilities ( apt_id INTEGER, facility_code CHAR(15) ) CREATE TABLE Apa...
### Context: CREATE TABLE table_60770 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score of the 1998 FIFA World Cup qualification competition? ### Query: SELECT ...
### Context: CREATE TABLE table_381 ( "Member" text, "Electorate" text, "Province" text, "MPs term" text, "Election date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the election date where electorate is christchurch country ### Query: SE...
### Context: CREATE TABLE table_68712 ( "Rank" real, "Station" text, "City" text, "State" text, "Boardings and deboardings" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people boarded and de-boarded the Amtrak in Linthicum? ### Query: SE...
### Context: CREATE TABLE table_name_85 ( attendance INTEGER, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the attendance of the game that was played on September 27, 1964? ### Query: SELECT MAX(attendance) FROM table_name_85 WHERE date = "se...
### 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_27733909_1 ( date VARCHAR, game VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what are the times where the play is 5 ### Query: SELECT date FROM table_27733909_1 WHERE game = 5
### Context: CREATE TABLE table_name_37 ( place VARCHAR, year VARCHAR, champion VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Place, when Year is greater than 2006, and when Champion is 'Asvel'? ### Query: SELECT place FROM table_name_37 WHERE ...
### Context: CREATE TABLE table_204_599 ( id number, "party" text, "first duma" text, "second duma" text, "third duma" text, "fourth duma" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many third duma and fourth duma for nationalists ### Q...
### Context: CREATE TABLE table_name_82 ( incumbent VARCHAR, result VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the incumbent that retired to run for the senate democratic hold? ### Query: SELECT incumbent FROM table_name_82 WHERE result = "retir...
### Context: CREATE TABLE table_8858 ( "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 above...
### Context: CREATE TABLE Reservations ( Code INTEGER, Room TEXT, CheckIn TEXT, CheckOut TEXT, Rate REAL, LastName TEXT, FirstName TEXT, Adults INTEGER, Kids INTEGER ) CREATE TABLE Rooms ( RoomId TEXT, roomName TEXT, beds INTEGER, bedType TEXT, maxOccupancy INTEG...
### Context: CREATE TABLE table_18656 ( "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. -- What district has Riley Joseph Wilson as the incumbent? ##...
### Context: CREATE TABLE table_3225 ( "Pick #" real, "CFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What college did the Toronto Argonauts draft pick come from? ### Query: SELECT "College"...
### Context: CREATE TABLE table_71559 ( "D 48" text, "D 47" text, "D 46" text, "D 45" text, "D 44" text, "D 43" text, "D 42" text, "D 41" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the D43 associated with a D41 of r 21? ### ...
### Context: CREATE TABLE table_72296 ( "Episode" text, "Song choice" text, "Original artist" text, "Order #" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of the Top 3 episode? ### Query: SELECT "Result" FROM ta...
### Context: CREATE TABLE ENROLL ( CLASS_CODE varchar(5), STU_NUM int, ENROLL_GRADE varchar(50) ) CREATE TABLE STUDENT ( STU_NUM int, STU_LNAME varchar(15), STU_FNAME varchar(15), STU_INIT varchar(1), STU_DOB datetime, STU_HRS int, STU_CLASS varchar(2), STU_GPA float(8), ...
### Context: CREATE TABLE table_name_55 ( name VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which one has a rank bigger than 2, lane of 1, and is from Hong Kong? ### Query: SELECT name FROM table_na...
### 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_39964 ( "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 table_name_92 ( total INTEGER, bronze VARCHAR, silver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the largest total for a nation with 1 bronze and more than 1 silver? ### Query: SELECT MAX(total) FROM table_name_92 W...
### Context: CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, disch...
### Context: CREATE TABLE table_56101 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many laps had a grid of greater than 17 and retired due to collision? ### Query: ...
### Context: CREATE TABLE Faculty_Participates_in ( FacID INTEGER, actid INTEGER ) CREATE TABLE Faculty ( FacID INTEGER, Lname VARCHAR(15), Fname VARCHAR(15), Rank VARCHAR(15), Sex VARCHAR(1), Phone INTEGER, Room VARCHAR(5), Building VARCHAR(13) ) CREATE TABLE Activity ( ac...
### Context: CREATE TABLE table_1180228_1 ( num_of_discs VARCHAR, duration VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of discs where the run time was 4 hours 40 minutes? ### Query: SELECT COUNT(num_of_discs) FROM table_1180228_1...
### Context: CREATE TABLE gwyjzb ( CLINIC_ID text, CLINIC_TYPE text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURE...
### Context: CREATE TABLE procedures ( 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_...
### Context: CREATE TABLE table_name_70 ( wins INTEGER, ties VARCHAR, losses VARCHAR, years VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of wins for the person who coached from 1951 to 1956 and had less than 174 losses an...
### Context: CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE vitalperiodic ( vitalperiodi...
### Context: CREATE TABLE table_70654 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the team 2 with a 0-0 2nd leg? ### Query: SELECT "Team 2" FROM table_70654 WHERE "2n...
### Context: CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE ta ( campu...
### 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. -- how many songs were released aft...
### 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 patients ( row_id number, subject_id number, gender text, dob time, dod time ) 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_wa...
### Context: CREATE TABLE table_1682026_3 ( profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the profits (in billions) where the assets are 192.8 billion? ### Query: SELECT profits__billion_$_ FROM tabl...
### Context: CREATE TABLE procedures ( 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_...
### Context: CREATE TABLE t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_ID number ) CREATE TABLE t_kc21 ( CLINIC_ID text, CLINIC_TYPE text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, I...
### Context: CREATE TABLE table_19908651_3 ( pole_position VARCHAR, race_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was on the pole position in the Texaco/Havoline 200 race? ### Query: SELECT pole_position FROM table_19908651_3 WHERE race_name ...
### 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 t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_ID number ) CREATE TABLE t_kc22 ( AMOUNT number, CHA_ITEM_LEV number, DATA_ID text, DIRE_TYPE number, DOSE_FORM text, DOSE_UNIT text, EACH_DOSAGE text, EXP_OCC_DATE time, FLX_MED_ORG_ID text, FXBZ ...
### Context: CREATE TABLE 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 table_13498403_1 ( barrier VARCHAR, jockey VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How old is Darryll Holland's horse ### Query: SELECT barrier FROM table_13498403_1 WHERE jockey = "Darryll Holland"
### Context: CREATE TABLE table_name_72 ( record VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Record, when Date is 'November 22'? ### Query: SELECT record FROM table_name_72 WHERE date = "november 22"
### 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 diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE intakeoutput ( ...
### Context: CREATE TABLE betfront ( year number, datetime time, country text, competion text, match text, home_opening number, draw_opening number, away_opening number, home_closing number, draw_closing number, away_closing number ) CREATE TABLE football_data ( season t...
### Context: CREATE TABLE table_name_23 ( name VARCHAR, type VARCHAR, number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the name for the locomotive with a type of 2-8-0 and a number of 20? ### Query: SELECT name FROM table_name_23 WHERE typ...
### Context: CREATE TABLE film ( Studio VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the name of film studio that have the most number of films. ### Query: SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1
### Context: CREATE TABLE table_29641 ( "Rnd" real, "Circuit" text, "Sports +2.0 Winning Team" text, "Sports 2.0 Winning Team" text, "GT +2.0 Winning Team" text, "GT 2.0 Winning Team" text, "Results" text ) -- Using valid SQLite, answer the following questions for the tables provided above...
### Context: CREATE TABLE table_204_534 ( id number, "#" number, "name" text, "height" text, "weight (lbs.)" number, "position" text, "class" text, "hometown" text, "previous team(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- te...
### 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 table_name_34 ( circuit VARCHAR, winner VARCHAR, series VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Circuit in the ATCC Round 1 Series with Winner Jim Richards? ### Query: SELECT circuit FROM table_name_34 WHERE ...
### Context: CREATE TABLE table_27940569_1 ( laps INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the greatest number of laps run? ### Query: SELECT MAX(laps) FROM table_27940569_1
### Context: CREATE TABLE table_2508633_8 ( pick__number VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the pick number if the player is Gary Kubiak? ### Query: SELECT pick__number FROM table_2508633_8 WHERE player = "Gary Kubiak"
### 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_name_2 ( home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score for south melbourne at home? ### Query: SELECT home_team AS score FROM table_name_2 WHERE home_team = "south melbourne"
### Context: CREATE TABLE table_23548 ( "#" text, "Original title" text, "Directed by" text, "Written by" text, "Original airdate" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the production code for 'down to e...
### Context: CREATE TABLE Patient ( SSN INTEGER, Name VARCHAR(30), Address VARCHAR(30), Phone VARCHAR(30), InsuranceID INTEGER, PCP INTEGER ) CREATE TABLE Appointment ( AppointmentID INTEGER, Patient INTEGER, PrepNurse INTEGER, Physician INTEGER, Start DATETIME, End DATE...
### Context: CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVIN...
### Context: CREATE TABLE 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 jybgb_jyjgzbb ( JYZB...
### Context: CREATE TABLE table_34873 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What results has a week smaller than 2? ### Query: SELECT "Result" F...
### Context: CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, ...
### Context: CREATE TABLE table_47831 ( "Round" real, "Pick #" real, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the pick # for round 11? ### Query: SELECT "Pick #" FROM table_47831 WHERE "Round...
### 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 hall_of_fame ( player_id text, yearid number, votedby text, ballots number, needed number, votes number, inducted text, category text, needed_note text ) CREATE TABLE pitching_postseason ( player_id text, year number, round text, team_id tex...
### Context: CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID...
### Context: CREATE TABLE table_39345 ( "County" text, "1948" real, "1956" real, "1966" real, "1977" real, "1992" real, "2002" real, "2011" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which 1956 has a County of v lcea, and a 2011 smal...
### Context: CREATE TABLE table_21794 ( "Poll Source" text, "Dates administered" text, "Democrat: Jay Nixon" text, "Republican: Kenny Hulshof" text, "Lead Margin" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What poll source claimed that Republica...
### Context: CREATE TABLE job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) ...
### Context: CREATE TABLE table_11660 ( "Game" real, "Date" text, "Location" text, "Time" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which is the most recent game with an attendance larger than 65,042? ### Query: SELECT MAX("...