text
stringlengths
197
8.39k
### Context: CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, cul...
### Context: CREATE TABLE table_name_95 ( club VARCHAR, league_division VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What club has a league/division of fourth division? ### Query: SELECT club FROM table_name_95 WHERE league_division = "fourth division"
### Context: CREATE TABLE geographic ( city_name varchar, county varchar, region varchar ) CREATE TABLE restaurant ( id int, name varchar, food_type varchar, city_name varchar, rating "decimal ) CREATE TABLE location ( restaurant_id int, house_number int, street_name varcha...
### Context: CREATE TABLE table_261906_2 ( institution VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What institution(s) are located in wilkes-barre, pennsylvania? ### Query: SELECT institution FROM table_261906_2 WHERE location = "Wilkes...
### Context: CREATE TABLE table_54543 ( "Pick #" real, "Player" text, "Nationality" text, "Position" text, "League from" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which league has a pick number larger than 204 from Canada and LW as the position...
### Context: CREATE TABLE table_21015 ( "Model number" text, "sSpec number" text, "Frequency" text, "GPU frequency" text, "L2 cache" text, "I/O bus" text, "Memory" text, "Voltage" text, "TDP" text, "Socket" text, "Release date" text, "Part number(s)" text, "Release pr...
### Context: CREATE TABLE table_66292 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the to par for japan ### Query: SELECT "To par" FROM table_66...
### 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_name_96 ( december INTEGER, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which December is the lowest one that has Points of 52? ### Query: SELECT MIN(december) FROM table_name_96 WHERE points = 52
### Context: CREATE TABLE table_17382360_9 ( high_rebounds VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had the high rebounds in the game with a final score of w 140-108? ### Query: SELECT high_rebounds FROM table_17382360_9 WHERE score...
### Context: CREATE TABLE table_67547 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which score has a Date of august 17? ### Query: SELECT "Score" FROM tabl...
### Context: CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propulsion varchar, wide_body varchar, wing_span int, length int, weight int, capacity int, pay_load int, cruising_speed in...
### Context: CREATE TABLE table_name_89 ( losses INTEGER, goals_for VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the highest losses when the goal was smaller than 45 and the points was smaller than 18? ### Query: SELECT MAX(l...
### Context: CREATE TABLE table_name_57 ( number_of_electorates__2009_ VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of electorates (2009) for Katol? ### Query: SELECT COUNT(number_of_electorates__2009_) FROM table_na...
### Context: CREATE TABLE table_name_86 ( home_team VARCHAR, tie_no VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What home team had 2 ties? ### Query: SELECT home_team FROM table_name_86 WHERE tie_no = "2"
### Context: CREATE TABLE zyjzjlb_jybgb ( YLJGDM_ZYJZJLB text, BGDH number, YLJGDM number ) CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) CREATE TABLE jyjgzbb ( BGDH text, BGRQ time, CKZFWDX text, CKZFWSX number, CKZFWXX number, JCFF text, ...
### Context: CREATE TABLE Course_Authors_and_Tutors ( author_id INTEGER, author_tutor_ATB VARCHAR(3), login_name VARCHAR(40), password VARCHAR(40), personal_name VARCHAR(80), middle_name VARCHAR(80), family_name VARCHAR(80), gender_mf VARCHAR(1), address_line_1 VARCHAR(80) ) CREATE ...
### Context: CREATE TABLE table_name_58 ( date VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- with a record of 73-82 what was the date? ### Query: SELECT date FROM table_name_58 WHERE record = "73-82"
### Context: CREATE TABLE table_80239 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points for the cooper car company after 1959? ### Query: SELECT SUM("Points") FROM ...
### Context: CREATE TABLE table_26754 ( "Year" real, "Tournaments played" real, "Cuts made" real, "Wins" real, "2nd" real, "3rd" real, "Top 10s" real, "Best finish" text, "Earnings ($)" real, "Money list rank" real, "Scoring average" text, "Scoring rank" real ) -- Using...
### Context: CREATE TABLE table_23557 ( "Year" real, "Starts" real, "Wins" real, "Top 10" real, "Poles" real, "Avg. Start" text, "Avg. Finish" text, "Winnings" text, "Position" text, "Team(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
### Context: CREATE TABLE table_test_31 ( "id" int, "ejection_fraction_ef" int, "macular_disease" bool, "systemic" bool, "alt" float, "iud" bool, "condom_with_spermicide" bool, "gender" string, "meropenem" bool, "non_q_wave_myocardial_infarction" bool, "hbcab" bool, "unst...
### Context: CREATE TABLE table_2024 ( "Discipline" text, "Degree/Diploma" text, "Total Seats" real, "Recognised Seats" real, "Permitted Seats" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the recognised seats for pharmacology ### Query: SEL...
### Context: CREATE TABLE weather ( date TEXT, max_temperature_f INTEGER, mean_temperature_f INTEGER, min_temperature_f INTEGER, max_dew_point_f INTEGER, mean_dew_point_f INTEGER, min_dew_point_f INTEGER, max_humidity INTEGER, mean_humidity INTEGER, min_humidity INTEGER, max_...
### Context: CREATE TABLE table_name_31 ( stadium VARCHAR, year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the stadium past 2012? ### Query: SELECT stadium FROM table_name_31 WHERE year > 2012
### Context: CREATE TABLE table_name_73 ( chassis VARCHAR, engine VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What company made the chassis when Ferrari made the engine and there were 25 points? ### Query: SELECT chassis FROM table_na...
### Context: CREATE TABLE table_name_12 ( total_population VARCHAR, male INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total population with less than 789 males? ### Query: SELECT COUNT(total_population) FROM table_name_12 WHERE male < 789
### Context: CREATE TABLE table_name_96 ( closure_date VARCHAR, on_air_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the ensemble closed that went on air in June 2003? ### Query: SELECT closure_date FROM table_name_96 WHERE on_air_date = "jun...
### Context: CREATE TABLE table_78415 ( "Home team" text, "Home team score" text, "Away team" text, "Away team score" text, "Venue" text, "Crowd" real, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What did carlton score while away? ...
### 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_name_20 ( date VARCHAR, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date did Collingwood play at home? ### Query: SELECT date FROM table_name_20 WHERE home_team = "collingwood"
### Context: CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, ...
### Context: CREATE TABLE department_stores ( dept_store_id number, dept_store_chain_id number, store_name text, store_address text, store_phone text, store_email text ) CREATE TABLE addresses ( address_id number, address_details text ) CREATE TABLE customers ( customer_id number, ...
### Context: CREATE TABLE table_7366 ( "Position" text, "Jersey #" real, "Name" text, "Height (cm)" real, "Weight (kg)" real, "Birthdate" text, "Birthplace" text, "1983\u20131984 Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What ...
### Context: CREATE TABLE table_name_67 ( monarch VARCHAR, heir VARCHAR, reason VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the Monarch whose Heir is Robert Curthose when the Reason is that the father became king? ### Query: SELECT monarch FRO...
### Context: CREATE TABLE table_64071 ( "Province, Community" text, "Contestant" text, "Height" real, "Hometown" text, "Geographical Regions" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What contestant is from santo domingo este and has height sm...
### Context: CREATE TABLE table_26283 ( "Episode" text, "Director" text, "Writer" text, "Original air date" text, "Ratings (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the original air date if the ratings is 1.92 million? ### ...
### Context: CREATE TABLE MediaType ( MediaTypeId integer, Name varchar(120) ) CREATE TABLE Invoice ( InvoiceId integer, CustomerId integer, InvoiceDate datetime, BillingAddress varchar(70), BillingCity varchar(40), BillingState varchar(40), BillingCountry varchar(40), BillingPo...
### Context: CREATE TABLE table_3333 ( "Settlement" text, "Cyrillic Name Other Names" text, "Type" text, "Population (2011)" real, "Largest ethnic group (2002)" text, "Dominant religion (2002)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name...
### Context: CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime...
### Context: CREATE TABLE paperkeyphrase ( paperid int, keyphraseid int ) CREATE TABLE paperfield ( fieldid int, paperid int ) CREATE TABLE venue ( venueid int, venuename varchar ) CREATE TABLE journal ( journalid int, journalname varchar ) CREATE TABLE cite ( citingpaperid int, ...
### Context: CREATE TABLE table_204_144 ( id number, "represent" number, "contestant" text, "age" number, "height" text, "hometown" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many contestants were below 1.75 mts ? ### Query: SELECT COUN...
### Context: CREATE TABLE table_10477224_1 ( sepal_length VARCHAR, sepal_width VARCHAR, petal_width VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the sepal lengh when sepal width is 2.9 and petal width 1.3 ### Query: SELECT sepal_length FROM table...
### Context: CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number...
### 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 ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name ...
### Context: CREATE TABLE table_name_37 ( france VARCHAR, _percentage_people_under_18__2005_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE FRANCE WITH PEOPLE UNDER 18 OF SUB-SAHARAN AFRICA? ### Query: SELECT france FROM table_name_37 WHERE _per...
### 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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_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, ...
### Context: CREATE TABLE table_name_43 ( score VARCHAR, tie_no VARCHAR, away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score when the Tie no is replay, and the away team is York City? ### Query: SELECT score FROM table_name_43 WHE...
### Context: CREATE TABLE table_20097 ( "Name" text, "Position" text, "Number" real, "School/Club Team" text, "Season" real, "Acquisition via" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the position for judy-ann ramirez ### Query: SELE...
### Context: CREATE TABLE table_name_8 ( total INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average total that is 1st in 2010? ### Query: SELECT AVG(total) FROM table_name_8 WHERE 2010 = "1st"
### Context: CREATE TABLE table_name_68 ( gold INTEGER, silver INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team has the lowest gold and 0 silver? ### Query: SELECT MIN(gold) FROM table_name_68 WHERE silver < 0
### 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 lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, val...
### Context: CREATE TABLE table_name_10 ( date VARCHAR, road_team VARCHAR, game VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Date of Game 5 with Road Team St. Louis? ### Query: SELECT date FROM table_name_10 WHERE road_team = "st. louis" A...
### Context: CREATE TABLE table_name_93 ( different_holders INTEGER, country VARCHAR, giro_wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the least different holders when the country is ireland and giro wins is less than 1? ### Query: SELEC...
### Context: CREATE TABLE table_57027 ( "Country" text, "Release Date" real, "Music Label" text, "Media" text, "Catalogue Number" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the release date by Editions EG in the Netherlands? ### Query: ...
### Context: CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Ba...
### Context: CREATE TABLE table_204_681 ( id number, "2011 rank" number, "2010 rank" number, "2009 rank" number, "2008 rank" number, "2007 rank" number, "company (country)" text, "2011 arms sales (us$ m.)" number, "2010 arms sales (us$ m.)" number, "2009 arms sales (us$ m.)" numb...
### Context: CREATE TABLE table_35145 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Date" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What time is associated with the event ...
### Context: CREATE TABLE person_info ( RYBH text, XBDM number, XBMC text, XM text, CSRQ time, CSD text, MZDM text, MZMC text, GJDM text, GJMC text, JGDM text, JGMC text, XLDM text, XLMC text, ZYLBDM text, ZYMC text ) CREATE TABLE hz_info ( KH text, ...
### Context: CREATE TABLE driverStandings ( driverStandingsId INTEGER, raceId INTEGER, driverId INTEGER, points REAL, position INTEGER, positionText TEXT, wins INTEGER ) CREATE TABLE constructors ( constructorId INTEGER, constructorRef TEXT, name TEXT, nationality TEXT, ...
### Context: CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, ...
### Context: CREATE TABLE table_77865 ( "CERCLIS ID" text, "Name" text, "County" text, "Proposed" text, "Listed" text, "Construction completed" text, "Partially deleted" text, "Deleted" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- when...
### Context: CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostL...
### Context: CREATE TABLE Customer_Orders ( Order_ID INTEGER, Customer_ID INTEGER, Store_ID INTEGER, Order_Date DATETIME, Planned_Delivery_Date DATETIME, Actual_Delivery_Date DATETIME, Other_Order_Details VARCHAR(255) ) CREATE TABLE Drama_Workshop_Groups ( Workshop_Group_ID INTEGER, ...
### Context: CREATE TABLE table_19131921_1 ( station VARCHAR, frequency VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which station has the frequency of 107.3? ### Query: SELECT station FROM table_19131921_1 WHERE frequency = "107.3"
### Context: CREATE TABLE table_train_189 ( "id" int, "alt" float, "hyperglycemia" bool, "liver_disease" bool, "smoking" bool, "alcohol_abuse" bool, "drug_abuse" bool, "triglyceride_tg" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables prov...
### Context: CREATE TABLE table_name_76 ( month VARCHAR, us__2013_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which month in 2013 did the U.S. use the ruby birthstone? ### Query: SELECT month FROM table_name_76 WHERE us__2013_ = "ruby"
### Context: CREATE TABLE table_76880 ( "Name" text, "Built" text, "Listed" text, "Location" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what year was the bridge in Lovell built? ### Query: SELECT "Built" FROM table_76880 WHERE...
### Context: CREATE TABLE table_43370 ( "Season" text, "Competition" text, "Round" text, "Opponent" text, "Series" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Opponent with a Round of q2, in the 2005 06 season? ### Query: SELECT "Opp...
### 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 aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propulsion varchar, wide_body varchar, wing_span int, length int, weight int, capacity int, pay_load int, cruising_speed in...
### Context: CREATE TABLE t_kc24 ( MED_SAFE_PAY_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, REF_SLT_FLG number, CLINIC_SLT_DATE time, COMP_ID text, PERSON_ID text, FLX_MED_ORG_ID text, INSU_TYPE text, MED_AMOUT number, PER_ACC_PAY number, ...
### Context: CREATE TABLE table_name_80 ( build_date VARCHAR, total_produced VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the build date when total produced is 2? ### Query: SELECT build_date FROM table_name_80 WHERE total_produced = 2
### Context: CREATE TABLE table_37938 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which position had fewer rounds than 3, and an overall of less than 48? ...
### Context: CREATE TABLE table_204_524 ( id number, "season" text, "tier" number, "division" text, "place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many years has this team been a part of the 1s aut . pref . division ? ### Query: SELECT ...
### Context: CREATE TABLE Students ( student_id INTEGER, date_of_registration DATETIME, date_of_latest_logon DATETIME, login_name VARCHAR(40), password VARCHAR(10), personal_name VARCHAR(40), middle_name VARCHAR(40), family_name VARCHAR(40) ) CREATE TABLE Course_Authors_and_Tutors ( ...
### Context: CREATE TABLE table_name_48 ( week VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which week's game was attended by 33,057 people? ### Query: SELECT week FROM table_name_48 WHERE attendance = "33,057"
### Context: CREATE TABLE table_1979203_1 ( branding VARCHAR, _virtual_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name of the branding where the virtual is 13.1 ### Query: SELECT branding FROM table_1979203_1 WHERE _virtual_ = "13.1"
### Context: CREATE TABLE table_name_66 ( date VARCHAR, partner VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Date has a Partner of daniella dominikovic? ### Query: SELECT date FROM table_name_66 WHERE partner = "daniella dominikovic"
### 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 Visits_Restaurant ( StuID INTEGER, ResID INTEGER, Time TIMESTAMP, Spent FLOAT ) CREA...
### Context: CREATE TABLE table_18808 ( "Rank by average" real, "Competition finish" real, "Couple" text, "Total" real, "Number of dances" real, "Average" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- tell the mean of the times competition for ...
### Context: CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE program ( program_id in...
### Context: CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE cost ( row_id number, subject_id number,...
### Context: CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE TagSynonyms ( ...
### Context: CREATE TABLE table_name_78 ( d_47 VARCHAR, d_41 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the D 47 for D 41 being r 21 ### Query: SELECT d_47 FROM table_name_78 WHERE d_41 = "r 21"
### Context: CREATE TABLE table_name_20 ( goals_against INTEGER, drawn INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many goals against when the draws are fewer than 3? ### Query: SELECT MAX(goals_against) FROM table_name_20 WHERE drawn < 3
### 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 lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, val...
### Context: CREATE TABLE table_47848 ( "Date" text, "Venue" text, "Result" text, "Scored" real, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many times did Sham Kwok Fai score in the game that was played on 22 February 2006? ##...
### Context: CREATE TABLE Sales ( sales_transaction_id INTEGER, sales_details VARCHAR(255) ) CREATE TABLE Transactions ( transaction_id INTEGER, investor_id INTEGER, transaction_type_code VARCHAR(10), date_of_transaction DATETIME, amount_of_transaction DECIMAL(19,4), share_count VARCHAR...
### Context: CREATE TABLE table_203_506 ( id number, "opponent" text, "played" number, "won" number, "lost" number, "drawn" number, "% won overall" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- teams where the number of games played was the...
### Context: CREATE TABLE technician ( technician_id real, Name text, Team text, Starting_Year real, Age int ) CREATE TABLE machine ( Machine_ID int, Making_Year int, Class text, Team text, Machine_series text, value_points real, quality_rank int ) CREATE TABLE repair_a...
### Context: CREATE TABLE table_78898 ( "Name" text, "Wins" real, "Start" text, "Duration" text, "Defeated by" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many wins, on average, were defeated by furuichi? ### Query: SELECT AVG("Wins") FROM t...
### Context: CREATE TABLE table_name_88 ( heat INTEGER, nationality VARCHAR, lane VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the least number of heats with more than 8 lanes for the Nationality of Germany? ### Query: SELECT MIN(heat) FROM t...
### Context: CREATE TABLE t_kc24 ( MED_SAFE_PAY_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, REF_SLT_FLG number, CLINIC_SLT_DATE time, COMP_ID text, PERSON_ID text, FLX_MED_ORG_ID text, INSU_TYPE text, MED_AMOUT number, PER_ACC_PAY number, ...
### Context: CREATE TABLE personfriend ( name text, friend text, year number ) CREATE TABLE person ( name text, age number, city text, gender text, job text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the ages of all of Zach's fr...
### Context: CREATE TABLE table_name_98 ( driver VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What driver has grid number 18? ### Query: SELECT driver FROM table_name_98 WHERE grid = 18
### Context: CREATE TABLE table_20156 ( "Kinship" text, "Proto-Austronesian" text, "Proto-Malayo-Polynesian" text, "Proto-Oceanic" text, "Proto-Polynesian" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the proto oceanic for *fafine ### Query:...
### Context: CREATE TABLE table_34403 ( "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. -- Which Position has a Round larger than 6, and a Player of ne...