text
stringlengths
197
8.39k
### Context: CREATE TABLE Problems ( problem_id INTEGER, product_id INTEGER, closure_authorised_by_staff_id INTEGER, reported_by_staff_id INTEGER, date_problem_reported DATETIME, date_problem_closed DATETIME, problem_description VARCHAR(255), other_problem_details VARCHAR(255) ) CREATE ...
### Context: CREATE TABLE table_name_7 ( high_rebounds VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had the high rebounds when the score was l 122 93? ### Query: SELECT high_rebounds FROM table_name_7 WHERE score = "l 122–93"
### 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 microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time...
### Context: CREATE TABLE people ( People_ID int, Name text, Height real, Weight real, "Home Town" text ) CREATE TABLE perpetrator ( Perpetrator_ID int, People_ID int, Date text, Year real, Location text, Country text, Killed int, Injured int ) -- Using valid SQLit...
### 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_48131 ( "Event" text, "Year" real, "Category" text, "Work" text, "Outcome" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What category was the nominated in after 2008? ### Query: SELECT "Category" FROM table_48131 W...
### Context: CREATE TABLE table_26141 ( "Year" real, "Driver" text, "Constructor" text, "Location" text, "Formula" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year did Randy Lewis drive? ### Query: SELECT "Year" FROM tabl...
### Context: CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE Tags ( Id number, TagName tex...
### Context: CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) 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 jobs ( JOB_ID varchar(...
### 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 hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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, JZZTM...
### Context: CREATE TABLE table_name_86 ( date VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date has lost as the result and a competition of friendly with 1-2 as the score? ### Query: SELECT...
### 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 WINE ( Grape VARCHAR ) CREATE TABLE GRAPES ( Color VARCHAR, Grape VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the color of the grape whose wine products has the highest average price? ### Query: SELECT T1.Color FROM...
### Context: CREATE TABLE table_name_94 ( attendance VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Attendance of the game with a Score of 0 0? ### Query: SELECT attendance FROM table_name_94 WHERE score = "0 – 0"
### Context: CREATE TABLE table_name_54 ( location VARCHAR, classification VARCHAR, institution VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where is NCAA division ii Franklin Pierce University located at? ### Query: SELECT location FROM table_name_54...
### Context: CREATE TABLE table_59469 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On the date of 30/01/1991, when the away team was Liverpool, what was the score? ### Quer...
### Context: CREATE TABLE table_71753 ( "Election" text, "1st Member" text, "1st Party" text, "2nd Member" text, "2nd Party" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which 1st Member has an election in 1859 and a conservative 2nd Party? ### Q...
### Context: CREATE TABLE table_204_513 ( id number, "date" text, "time" text, "opponent#" text, "site" text, "tv" text, "result" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what time is the only game in august ? ...
### Context: CREATE TABLE BLOCK ( blockcode VARCHAR, blockfloor VARCHAR ) CREATE TABLE room ( blockfloor VARCHAR, blockcode VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the number of rooms for different block code? ### Query: SELECT COUNT(*)...
### Context: CREATE TABLE table_name_6 ( city VARCHAR, date VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want to know the city for guelferbytanus b and the 5th ### Query: SELECT city FROM table_name_6 WHERE date = "5th" AND name = "gue...
### Context: CREATE TABLE table_21269441_4 ( tournament_venue__city_ VARCHAR, regular_season_winner VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the tourney when Weber State won the regular season? ### Query: SELECT tournament_venue__city_ FROM ...
### 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 table_203_340 ( id number, "rank" number, "airport" text, "passengers handled" number, "% change 2011 / 12" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name of the only airport in portugal that is among the...
### Context: CREATE TABLE table_11677691_4 ( player VARCHAR, hometown VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many players hometown was Cincinnati, Ohio? ### Query: SELECT COUNT(player) FROM table_11677691_4 WHERE hometown = "Cincinnati, Ohio"
### Context: CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TAB...
### Context: CREATE TABLE table_8478 ( "Election" real, "Candidate" text, "Number of votes" text, "Share of votes" text, "Outcome of election" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the candidate with 73,494 votes? ### Query: SELECT ...
### Context: CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) CREATE TABLE has_amenity ( dormid number, amenid number ) CREATE TABLE dorm_amenity ( amenid number, amenity_name text ) CREAT...
### Context: CREATE TABLE table_name_11 ( shirt_no INTEGER, height VARCHAR, position VARCHAR, nationality VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the shirt no with a position of setter, a nationality of Italy, and height larger than 17...
### Context: CREATE TABLE table_name_65 ( streak VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Streak on December 30? ### Query: SELECT streak FROM table_name_65 WHERE date = "december 30"
### Context: CREATE TABLE table_4627 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What venue did the European Championships' 400 m Hurdles take place? ### Query: SELECT "Ve...
### Context: CREATE TABLE table_261954_1 ( type VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every type for the location of Roanoke, Virginia? ### Query: SELECT type FROM table_261954_1 WHERE location = "Roanoke, Virginia"
### 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 jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE locations ...
### Context: CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationDate time ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, Cre...
### Context: CREATE TABLE table_204_340 ( id number, "name" text, "year inducted" number, "position" text, "apps" number, "goals" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- did the hall of fame player awarded the year after tony coton earn...
### Context: CREATE TABLE Undergoes ( Patient INTEGER, Procedures INTEGER, Stay INTEGER, DateUndergoes DATETIME, Physician INTEGER, AssistingNurse INTEGER ) CREATE TABLE Prescribes ( Physician INTEGER, Patient INTEGER, Medication INTEGER, Date DATETIME, Appointment INTEGER, ...
### Context: CREATE TABLE table_name_61 ( top_10 VARCHAR, top_25 VARCHAR, wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many top-10 numbers had a top 25 of more than 6 with less than 2 wins? ### Query: SELECT COUNT(top_10) FROM table_name_61 W...
### Context: CREATE TABLE table_name_34 ( icao VARCHAR, iata VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the ICAO when the IATA is ist? ### Query: SELECT icao FROM table_name_34 WHERE iata = "ist"
### Context: CREATE TABLE player_award ( player_id text, award_id text, year number, league_id text, tie text, notes text ) CREATE TABLE hall_of_fame ( player_id text, yearid number, votedby text, ballots text, needed text, votes text, inducted text, category tex...
### Context: CREATE TABLE airlines ( alid number, name text, iata text, icao text, callsign text, country text, active text ) CREATE TABLE airports ( apid number, name text, city text, country text, x number, y number, elevation number, iata text, icao te...
### Context: CREATE TABLE table_name_66 ( player VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what player scored 69-72-68=209? ### Query: SELECT player FROM table_name_66 WHERE score = 69 - 72 - 68 = 209
### Context: CREATE TABLE table_name_28 ( date VARCHAR, home VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date was the game played against the home team Rockets? ### Query: SELECT date FROM table_name_28 WHERE home = "rockets"
### Context: CREATE TABLE fgwyjzb ( 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, INSUR...
### Context: CREATE TABLE table_name_63 ( field VARCHAR, result VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What field had results of w 18-12? ### Query: SELECT field FROM table_name_63 WHERE result = "w 18-12"
### Context: CREATE TABLE table_69509 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the loss with record of 38-53 ### Query: SELECT "Loss" FROM table_6...
### Context: 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 Dorm_amenity ( amenid INTEGER, amenity_name VARCHAR(25) ) CREATE TABLE Lives_in ( stuid ...
### 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 storm ( Storm_ID int, Name text, Dates_active text, Max_speed int, Damage_millions_USD real, Number_Deaths int ) CREATE TABLE affected_region ( Region_id int, Storm_ID int, Number_city_affected real ) CREATE TABLE region ( Region_id int, Region_cod...
### Context: CREATE TABLE table_name_83 ( date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the date with margin of victory of 1 stroke and tournament of legend financial group classic ### Query: SEL...
### 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 vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE allergy ...
### 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 demographic ( subject_id text, hadm_id text, name text, marital_status text, age tex...
### Context: CREATE TABLE table_name_39 ( date VARCHAR, home VARCHAR, visitor VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date was the game played with the Cavaliers at home and the Warriors visiting? ### Query: SELECT date FROM table_name_39 WH...
### Context: CREATE TABLE table_39667 ( "Rank" real, "Player" text, "Country" text, "Earnings ( $ )" real, "Events" real, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the largest events with earning less than $384,489 ranked mor...
### Context: CREATE TABLE table_name_49 ( number VARCHAR, fleet VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what number is associated with the baltic fleet and leninets ( )? ### Query: SELECT number FROM table_name_49 WHERE fleet = "bal...
### Context: CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE output...
### Context: CREATE TABLE table_name_27 ( home_team VARCHAR, away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which home team played in the matchup with an away team of Liverpool? ### Query: SELECT home_team FROM table_name_27 WHERE away_team = "liv...
### Context: CREATE TABLE table_name_60 ( attendance VARCHAR, result VARCHAR, week VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name for me the total number in attendance for week before 2 and result of t 24-24 ### Query: SELECT COUNT(attendance) FROM...
### Context: CREATE TABLE table_12434380_1 ( founded VARCHAR, institution VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the institution of Kansas city Kansas community college founded? ### Query: SELECT COUNT(founded) FROM table_12434380_1 WHERE i...
### Context: CREATE TABLE table_18018214_2 ( goals_conceded INTEGER, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the number of goals scored to equal 58. ### Query: SELECT MIN(goals_conceded) FROM table_18018214_2 WHERE points = 58
### Context: CREATE TABLE table_name_16 ( name VARCHAR, nationality VARCHAR, heat VARCHAR, lane VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the swimmer from Australia in lane 4 with a heat larger than 4? ### Query: SELECT name...
### Context: CREATE TABLE table_204_365 ( id number, "year" number, "single" text, "chart positions\nusa billboard hot dance club play" number, "chart positions\npolish charts" number, "album" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what ...
### Context: CREATE TABLE table_6847 ( "Rank" real, "Country" text, "Claimant" text, "Highest point" text, "Height" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which claimant's rank is 200? ### Query: SELECT "Claimant" FROM table_6847 WHERE "Ran...
### Context: CREATE TABLE table_name_98 ( event VARCHAR, days_held VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What event has unknown as the days held.? ### Query: SELECT event FROM table_name_98 WHERE days_held = "unknown"
### Context: CREATE TABLE table_1341897_6 ( first_elected INTEGER, district VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was James William Trimble first elected in the Arkansas 3 district? ### Query: SELECT MIN(first_elected) FROM table_1341897_6 WHE...
### Context: CREATE TABLE film ( film_id number, title text, studio text, director text, gross_in_dollar number ) CREATE TABLE market ( market_id number, country text, number_cities number ) CREATE TABLE film_market_estimation ( estimation_id number, low_estimate number, hi...
### Context: CREATE TABLE player ( Player_ID int, Player text, Years_Played text, Total_WL text, Singles_WL text, Doubles_WL text, Team int ) CREATE TABLE match_season ( Season real, Player text, Position text, Country int, Team int, Draft_Pick_Number int, Draft_...
### 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_icd_diagnoses ( row_id number, icd9_code text, short_title text, long...
### Context: CREATE TABLE table_name_46 ( drawn VARCHAR, against VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Drawn has an Against smaller than 20 and Points of 15? ### Query: SELECT drawn FROM table_name_46 WHERE against <...
### Context: CREATE TABLE table_17342 ( "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_61 ( tie_no VARCHAR, away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Tie number for the match that had away team of Scunthorpe & Lindsey United? ### Query: SELECT tie_no FROM table_name_61 WHERE away...
### Context: CREATE TABLE table_35850 ( "Name" text, "Hanzi" text, "Hanyu Pinyin" text, "Population (2010-11-01)" text, "Area (km\u00b2)" text, "Density (/km\u00b2)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Pinyin for the item ...
### Context: CREATE TABLE table_24425976_2 ( series VARCHAR, production_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many episodes in the series has a production code of 111? ### Query: SELECT COUNT(series) FROM table_24425976_2 WHERE production_...
### Context: CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE medication ( ...
### 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 jyjgzbb ( BGDH text, BGRQ time, CKZFWDX text, CKZFWSX number, CKZFWXX number, JCFF text, JCRGH text, JCRXM text, JCXMMC text, JCZBDM text, JCZBJGDL number, JCZBJGDW text, JCZBJGDX text, JCZBMC text, JLDW text, JYRQ time, JYZBL...
### Context: CREATE TABLE table_35412 ( "Constituency" text, "Electorate" real, "Turnout" text, "Spoilt" text, "Valid Poll" real, "Quota" text, "Seats" real, "Candidates" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the turnout...
### Context: CREATE TABLE table_78168 ( "Number" real, "Name" text, "Team" text, "Position" text, "Years with franchise" text, "Year retired" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the player in Position G on the Petron Blaze Boo...
### 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 playlist_tracks ( playlist_id INTEGER, track_id INTEGER ) CREATE TABLE invoice_lines ( id INTEGER, invoice_id INTEGER, track_id INTEGER, unit_price NUMERIC(10,2), quantity INTEGER ) CREATE TABLE invoices ( id INTEGER, customer_id INTEGER, invoice_date ...
### Context: CREATE TABLE table_19857 ( "Stage" real, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Combination classification" text, "Team classification" text ) -- Using valid SQLite, answer the following questions for the t...
### Context: CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE...
### Context: CREATE TABLE table_29085880_1 ( no VARCHAR, us_viewers__million_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which episode number saw 1.312 million U.S. Wviewers? ### Query: SELECT no FROM table_29085880_1 WHERE us_viewers__million_ = "1.312...
### 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 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_name_71 ( enrollment INTEGER, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the most enrollment in Hamilton? ### Query: SELECT MAX(enrollment) FROM table_name_71 WHERE location = "hamilton"
### Context: CREATE TABLE table_74781 ( "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. -- Who was the away team at the game a...
### Context: CREATE TABLE table_50347 ( "World Record" text, "Press" text, "103.5" text, "Roger Fran\u00e7ois" text, "Paris ( FRA )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the press like for the world olympic record holder Roger Fra...
### Context: CREATE TABLE table_366 ( "Date of Issue" text, "Theme" text, "Denomination" text, "Design" text, "Illustration" text, "Printing Process" text, "Paper Type" text, "First Day Cover Cancellation" text ) -- Using valid SQLite, answer the following questions for the tables prov...
### Context: CREATE TABLE table_12316 ( "Date" text, "Score" text, "Set 1" text, "Set 2" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Set 2 has a set one at 19:21? ### Query: SELECT "Set 2" FROM table_12316 WHERE "Set 1" = '19:...
### Context: CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE paperkeyphrase ( paperid int, keyphraseid int ) CREATE TABLE paperdataset ( paperid int, datasetid int ) CREATE TABLE author ( authorid int, ...
### Context: CREATE TABLE Settlements ( Settlement_ID INTEGER, Claim_ID INTEGER, Date_Claim_Made DATE, Date_Claim_Settled DATE, Amount_Claimed INTEGER, Amount_Settled INTEGER, Customer_Policy_ID INTEGER ) CREATE TABLE Payments ( Payment_ID INTEGER, Settlement_ID INTEGER, Payment...
### Context: CREATE TABLE table_37323 ( "District" real, "Incumbent" text, "2008 Status" text, "Democratic" text, "Republican" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Incumbent has a Republican of dan mansell? ### Query: SELECT "Incumb...
### 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_3 ( loss VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who did the Blue Jays lose to when their record was 36-20? ### Query: SELECT loss FROM table_name_3 WHERE record = "36-20"
### 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_49073 ( "Year" text, "2001" real, "2002" real, "2003" real, "2004" real, "2005" real, "2006" real, "2007" real, "2008" real, "2009" real, "2010" real, "2011" real, "2012" real ) -- Using valid SQLite, answer the following questions fo...
### 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_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, insp...
### Context: CREATE TABLE Tryout ( pID numeric(5,0), cName varchar(20), pPos varchar(8), decision varchar(3) ) CREATE TABLE Player ( pID numeric(5,0), pName varchar(20), yCard varchar(3), HS numeric(5,0) ) CREATE TABLE College ( cName varchar(20), state varchar(2), enr nume...
### Context: CREATE TABLE table_name_47 ( year VARCHAR, award VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years have an Award of press award? ### Query: SELECT COUNT(year) FROM table_name_47 WHERE award = "press award"