text
stringlengths
197
8.39k
### Context: CREATE TABLE Orders ( order_id INTEGER, customer_id INTEGER, date_order_placed DATETIME, order_details VARCHAR(255) ) CREATE TABLE Financial_Transactions ( transaction_id INTEGER, account_id INTEGER, invoice_number INTEGER, transaction_type VARCHAR(15), transaction_date...
### Context: CREATE TABLE table_1702 ( "Series #" real, "Title" text, "Directed by" text, "Written by" text, "U.S. viewers (million)" text, "Original airdate" text, "Production Code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When there ...
### Context: CREATE TABLE table_26336739_1 ( result VARCHAR, elected VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result for the district with an election in 1986 ### Query: SELECT result FROM table_26336739_1 WHERE elected = 1986
### Context: CREATE TABLE problems ( problem_id number, product_id number, closure_authorised_by_staff_id number, reported_by_staff_id number, date_problem_reported time, date_problem_closed time, problem_description text, other_problem_details text ) CREATE TABLE problem_log ( prob...
### Context: CREATE TABLE table_name_78 ( week INTEGER, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of weeks that the opponent was the Denver Broncos? ### Query: SELECT AVG(week) FROM table_name_78 WHERE opponent = "de...
### Context: CREATE TABLE hz_info_zyjzjlb ( JZLSH number, YLJGDM number, zyjzjlb_id number ) 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, ...
### 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 table_4380 ( "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 amount of Gold from guatemala and silver smaller than 0? ### ...
### Context: CREATE TABLE table_name_41 ( loss VARCHAR, long VARCHAR, name VARCHAR, gain VARCHAR, avg_g VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of losses Jackson, T., who had more than 27 gain, an avg/g smaller tha...
### Context: CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JOB_ID varchar(10), SALARY decimal(8,2), COMMISSION_PCT decimal(2,2), MANAGER_ID decimal(6,0), DEPARTMEN...
### Context: CREATE TABLE table_171356_2 ( status VARCHAR, official_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many statuses are listed for the parish officially named Gagetown? ### Query: SELECT COUNT(status) FROM table_171356_2 WHERE official...
### Context: CREATE TABLE Accounts ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many accounts do we have? ### Query: SELECT COUNT(*) FROM Accounts
### Context: CREATE TABLE table_name_16 ( pick__number INTEGER, pl_gp INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the pick # of the player with a PI GP less than 0? ### Query: SELECT SUM(pick__number) FROM table_name_16 WHERE pl_gp < 0
### Context: CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, out...
### Context: CREATE TABLE table_7792 ( "Name" text, "Team" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the grid sum with more than 50 laps? ### Query: SELECT SUM("Grid") FROM table_7792 WHER...
### Context: CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE Badges ( Id number, UserId number, ...
### Context: CREATE TABLE Product_Suppliers ( total_amount_purchased INTEGER, total_value_purchased INTEGER, supplier_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the average amount purchased and value purchased for the supplier who supplie...
### Context: CREATE TABLE table_name_83 ( visa_3 VARCHAR, visa_1 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Visa 3 has gui finkler as Visa 1? ### Query: SELECT visa_3 FROM table_name_83 WHERE visa_1 = "gui finkler"
### Context: CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE...
### 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 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 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 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_16278 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How m...
### Context: CREATE TABLE settlements ( settlement_id number, claim_id number, date_claim_made time, date_claim_settled time, amount_claimed number, amount_settled number, customer_policy_id number ) CREATE TABLE payments ( payment_id number, settlement_id number, payment_method...
### 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 table_name_86 ( total_capacity__mwe_ INTEGER, power_plant VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- At the power plant located in ramakkalmedu, what is the sum of the total capacity (MWe)? ### Query: SELECT SUM(total_capacity_...
### Context: CREATE TABLE table_41866 ( "Peel" text, "Wins" real, "Byes" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Draws has a Wins of 10, and a Peel of south mandurah, and a Byes larger th...
### Context: CREATE TABLE table_71698 ( "Builder" text, "Model" text, "Length (ft/m)" text, "Order Year" text, "Fuel Propulsion" text, "Fleet Series (Quantity)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Fleet Series (Quantity) has an ...
### Context: CREATE TABLE table_name_15 ( venue VARCHAR, runner_up VARCHAR, winner VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the venue of the game where hibernian won and the rangers were the runner-up? ### Query: SELECT venue FROM table_na...
### Context: CREATE TABLE accounts ( account_id number, customer_id number, account_name text, other_account_details text ) CREATE TABLE customers_cards ( card_id number, customer_id number, card_type_code text, card_number text, date_valid_from time, date_valid_to time, oth...
### Context: CREATE TABLE film_text ( film_id number, title text, description text ) CREATE TABLE address ( address_id number, address text, address2 text, district text, city_id number, postal_code text, phone text, last_update time ) CREATE TABLE inventory ( inventory...
### Context: CREATE TABLE table_203_288 ( id number, "season" text, "premiere date" text, "the winner" text, "runner-up" text, "finalists" text, "contestants in order of elimination" text, "number of contestants" text, "number of concerts" number ) -- Using valid SQLite, answer the...
### Context: CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE food_service ( meal_code text, meal_number int, compartment text, meal_description varchar ) CREATE TABLE flight_fare ( flight_...
### Context: CREATE TABLE table_22733636_1 ( tournament_winner VARCHAR, regular_season_winner VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When Princeton was the regular season winner, who was the tournament winner? ### Query: SELECT tournament_winner FRO...
### Context: CREATE TABLE table_10638523_1 ( mid_hill_zone VARCHAR, particulars_and_characteristics VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For mid-hill zone what is the altitude? ### Query: SELECT mid_hill_zone FROM table_10638523_1 WHERE particular...
### Context: CREATE TABLE mzjzjlb_jybgb ( YLJGDM_MZJZJLB text, BGDH number, YLJGDM number ) 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, XLM...
### Context: CREATE TABLE table_name_98 ( visitor VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Visitor in the game with a Record of 11 49 7? ### Query: SELECT visitor FROM table_name_98 WHERE record = "11–49–7"
### Context: CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admissi...
### Context: CREATE TABLE table_name_85 ( highest_point VARCHAR, canton VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Canton of Vaud's highest point? ### Query: SELECT highest_point FROM table_name_85 WHERE canton = "vaud"
### Context: CREATE TABLE table_59116 ( "Benalla DFL" text, "Wins" real, "Losses" real, "Draws" real, "Byes" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the average byes of Bonnie Doon having more than 16 wins? ### Q...
### Context: CREATE TABLE table_name_1 ( elevation VARCHAR, route VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Elevation of the mountain on Route 62? ### Query: SELECT elevation FROM table_name_1 WHERE route = 62
### Context: CREATE TABLE table_name_49 ( standard_name VARCHAR, version VARCHAR, downstream_rate VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the standard name with an ADSL2 version and a 01.5 1.5 mbit/s downstream rate? ### Query: SELECT stan...
### Context: CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE SuggestedEdits ( I...
### 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_21321804_3 ( pick__number INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number any of the players were picked at? ### Query: SELECT MAX(pick__number) FROM table_21321804_3
### Context: CREATE TABLE table_name_55 ( read_by VARCHAR, un__abridged VARCHAR, author VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who read the unabridged novel written by John D. Fitzgerald? ### Query: SELECT read_by FROM table_name_55 WHERE un__ab...
### Context: CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, Unsure_rate real ) CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height real, ...
### Context: CREATE TABLE table_7089 ( "Rank" real, "Name" text, "Population 1991" real, "Population 2001" real, "Population 2007" real, "State" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest population in 1991 in Baden Bei W...
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) CREATE TABLE jybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH text, BGJGDM text, BGJGMC text, BGRGH text, BGRQ time, BGRXM text, BGSJ time, CJRQ time, JSBBRQ...
### Context: CREATE TABLE table_1013129_11 ( college_junior_club_team VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What club team is Per Gustafsson play for? ### Query: SELECT college_junior_club_team FROM table_1013129_11 WHERE player = "...
### 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 intakeoutput ...
### Context: CREATE TABLE table_name_73 ( rank INTEGER, silver VARCHAR, nation VARCHAR, bronze VARCHAR, gold VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rank when bronze was more than 0, gold more than 1, Nation is japan, and silve...
### Context: CREATE TABLE table_34798 ( "Games" real, "Drawn" real, "Lost" real, "Points difference" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Games have a Lost of 6, and Points smaller than 7? ### Query: SELECT SUM("Ga...
### Context: CREATE TABLE table_name_52 ( team_record VARCHAR, result VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Team Record, when the Result is l 0 24? ### Query: SELECT team_record FROM table_name_52 WHERE result = "l 0–24"
### Context: CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE...
### Context: CREATE TABLE hosting_city ( year number, match_id number, host_city text ) CREATE TABLE match ( match_id number, date text, venue text, score text, result text, competition text ) CREATE TABLE city ( city_id number, city text, hanzi text, hanyu_pinyin t...
### Context: CREATE TABLE table_73113 ( "Song" text, "Porsgrunn" real, "Bergen" real, "Bod\u00f8" real, "Stavanger" real, "\u00c5lesund" real, "Elverum" real, "Troms\u00f8" real, "Fredrikstad" real, "Trondheim" real, "Oslo" real, "Total" real ) -- Using valid SQLite, an...
### Context: CREATE TABLE table_name_67 ( tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the results from 2003 that has a 2012 result of 1r and a 2004 result of 2r and from the Australian Open? ### Query: SELECT 2003 FROM table_name_67 WHERE ...
### Context: CREATE TABLE table_name_8 ( league VARCHAR, sport VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Sport of gaelic football and hurling is what league? ### Query: SELECT league FROM table_name_8 WHERE sport = "gaelic football and hurling"
### Context: CREATE TABLE table_name_93 ( mixed_doubles VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which mixed doubles was featured in 2006? ### Query: SELECT mixed_doubles FROM table_name_93 WHERE year = 2006
### Context: CREATE TABLE table_47792 ( "Year" real, "Date" text, "Winner" text, "Result" text, "Loser" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who lost when the philadelphia eagles won at lincoln financial field on septe...
### Context: CREATE TABLE table_train_173 ( "id" int, "hiv_infection" bool, "hemoglobin_a1c_hba1c" float, "hepatitis_c" bool, "hepatitis_b" bool, "cirrhosis" bool, "renal_disease" bool, "hepatic_disease" bool, "allergy_to_egg" bool, "estimated_glomerular_filtration_rate_egfr" int...
### Context: CREATE TABLE table_72521 ( "School" text, "Winners" real, "Finalists" real, "Total Finals" real, "Year of last win" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many total finals where there when the last win was in 2012-13? ### ...
### Context: CREATE TABLE table_36346 ( "Throne Name" text, "Title" text, "Born-Died" text, "Entered office" text, "Left office" text, "Family Relations" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did the king who entered office in 1012...
### Context: CREATE TABLE table_46027 ( "Date" text, "Time" text, "Score" text, "Set 1" text, "Set 2" text, "Set 3" text, "Total" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Set 1 of 25 20, what was Set 2? ### Query: SELECT "Set 2" FROM ...
### Context: CREATE TABLE table_name_91 ( pick VARCHAR, player VARCHAR, round VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number for the pick of the player Wayne Fowler and a round after 7? ### Query: SELECT COUNT(pick) FROM table_n...
### Context: CREATE TABLE table_10748727_1 ( season VARCHAR, team_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What years did art grand prix compete? ### Query: SELECT season FROM table_10748727_1 WHERE team_name = "ART Grand Prix"
### Context: CREATE TABLE table_37576 ( "Name" text, "Style" text, "Opened" real, "Manufacturer" text, "Themed Area" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which average Opened has a Manufacturer of vekoma? ### Query: SELECT AVG("Opened") F...
### 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_204_669 ( id number, "rank" number, "athlete" text, "nationality" text, "time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which athlete from kenya participated but came in third place ? ### Query: SELECT "athlete...
### Context: CREATE TABLE table_50887 ( "Player" text, "Country" text, "Year(s) won" text, "Total" real, "To par" text, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who won in 1991? ### Query: SELECT "Player" FROM table_50887 WHERE "...
### Context: CREATE TABLE mzjzjlb_jybgb ( YLJGDM_MZJZJLB text, BGDH number, YLJGDM number ) CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) CREATE TABLE jybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH text, BGJGDM text, BGJGMC t...
### Context: CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, La...
### Context: CREATE TABLE Order_Items ( order_item_id INTEGER, order_id INTEGER, product_id INTEGER, order_quantity VARCHAR(80) ) CREATE TABLE Customers ( customer_id INTEGER, payment_method_code VARCHAR(15), customer_number VARCHAR(20), customer_name VARCHAR(80), customer_address V...
### Context: CREATE TABLE table_71437 ( "Result" text, "Date" text, "Race" text, "Venue" text, "Group" text, "Distance" text, "Weight (kg)" real, "Jockey" text, "Winner/2nd" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which race h...
### Context: CREATE TABLE table_2668401_12 ( result VARCHAR, incumbent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result for Andrew Gregg? ### Query: SELECT result FROM table_2668401_12 WHERE incumbent = "Andrew Gregg"
### Context: CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, ...
### Context: CREATE TABLE table_name_83 ( theaters INTEGER, rank INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the Theaters that has a Rank larger than 7? ### Query: SELECT MAX(theaters) FROM table_name_83 WHERE rank > 7
### Context: CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admissi...
### Context: CREATE TABLE table_24795 ( "Pilot" text, "Organization" text, "Total Flights" real, "USAF space flights" real, "FAI space flights" real, "Max Mach" text, "Max speed (mph)" real, "Max altitude (miles)" text ) -- Using valid SQLite, answer the following questions for the tab...
### Context: CREATE TABLE table_13923 ( "SEASON" text, "TEAM" text, "LEAGUE" text, "GAMES" text, "GOALS" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the league listed that has goals of 10? ### Query: SELECT "LEAGUE" FROM table_13923 WHER...
### 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 hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) CREATE TABLE jybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH text, BGJGDM text, BGJGMC text, BGRGH text, BGRQ time, BGRXM text, BGSJ time, CJRQ time, JSBBRQ...
### Context: CREATE TABLE jyjgzbb ( JYZBLSH text, YLJGDM text, BGDH text, BGRQ time, JYRQ time, JCRGH text, JCRXM text, SHRGH text, SHRXM text, JCXMMC text, JCZBDM text, JCFF text, JCZBMC text, JCZBJGDX text, JCZBJGDL number, JCZBJGDW text, SBBM text, ...
### Context: CREATE TABLE table_47238 ( "1998" text, "2000" text, "2004" text, "2007" text, "2011" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 1998 value if the 2000 value is 25? ### Query: SELECT "1998" FROM table_47238 WHERE "2000"...
### Context: CREATE TABLE table_name_12 ( finals_venue__surface_ VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where was the 1966 final played? ### Query: SELECT finals_venue__surface_ FROM table_name_12 WHERE year = 1966
### Context: CREATE TABLE table_name_22 ( round INTEGER, pick__number VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Round, when Pick # is greater than 70, and when Position is Tackle? ### Query: SELECT AVG(round) F...
### Context: CREATE TABLE airport_aircraft ( ID int, Airport_ID int, Aircraft_ID int ) CREATE TABLE match ( Round real, Location text, Country text, Date text, Fastest_Qualifying text, Winning_Pilot text, Winning_Aircraft text ) CREATE TABLE aircraft ( Aircraft_ID int(11), ...
### Context: CREATE TABLE table_27816 ( "Position" real, "Sail Number" text, "Yacht" text, "State/Country" text, "Yacht Type" text, "LOA (Metres)" text, "Skipper" text, "Elapsed Time d:hh:mm:ss" text ) -- Using valid SQLite, answer the following questions for the tables provided above....
### Context: CREATE TABLE Faculty_Participates_in ( FacID INTEGER, actid INTEGER ) CREATE TABLE Participates_in ( stuid INTEGER, actid INTEGER ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor I...
### Context: CREATE TABLE table_15554 ( "Year" real, "Award" text, "Category" text, "Recipient(s)" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the award for the Choice TV: Breakout Star Female category? ### Query: SELECT "...
### 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_31439 ( "model" text, "Sonnet" text, "Apple" text, "NUpowr 117" text, "NUpowr 167" text, "NUpowr 183" text, "NUpowr G3" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When maker is the model what is the nupowr...
### Context: CREATE TABLE table_72427 ( "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 is the result for south carolina 4? ### Query: SELECT...
### Context: CREATE TABLE table_53731 ( "Outcome" text, "Date" real, "Tournament" text, "Partner" text, "Opponents in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Score in the final with an Out...
### Context: 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, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, ha...
### Context: CREATE TABLE table_name_67 ( score VARCHAR, date VARCHAR, away_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Score, when Date is '13 March 1985', and when Away Team is 'Millwall'? ### Query: SELECT score FROM table_name_67 WHE...
### Context: CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime tim...