text
stringlengths
197
8.39k
### 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_70598 ( "Poll source" text, "Date(s) administered" text, "Tom Campbell*" text, "Meg Whitman" text, "Steve Poizner" text, "Peter Foy*" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did Meg Whitman get 60%? #...
### Context: CREATE TABLE table_name_17 ( episode_number VARCHAR, podcast_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the episode number of the episode that aired on August 8, 2005? ### Query: SELECT episode_number FROM table_name_17 WHERE p...
### Context: CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time...
### Context: CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_ID decimal(10,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), ...
### 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_47300 ( "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. -- What is the score on 23 November 1983 with exeter city as the away team? ### Query: SELEC...
### Context: CREATE TABLE table_name_38 ( height VARCHAR, date_of_birth VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Height of the Player with a Date of Birth of 1982-07-05? ### Query: SELECT height FROM table_name_38 WHERE date_of_birth = "19...
### Context: CREATE TABLE table_name_67 ( source VARCHAR, cartridge VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Source, when Cartridge is .375 remington ultra magnum? ### Query: SELECT source FROM table_name_67 WHERE cartridge = ".375 remington u...
### Context: CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE student_record...
### Context: CREATE TABLE table_14009909_1 ( counties_represented VARCHAR, first_elected VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which country has a delegate who was first elected in 2006? ### Query: SELECT counties_represented FROM table_14009909_1 ...
### Context: CREATE TABLE table_36916 ( "Nation" text, "Skip" text, "Third" text, "Second" text, "Lead" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Second has a Skip of barbora vojtusova? ### Query: SELECT "Second" FROM table_36916 WHERE "...
### Context: CREATE TABLE band ( id number, firstname text, lastname text ) CREATE TABLE albums ( aid number, title text, year number, label text, type text ) CREATE TABLE tracklists ( albumid number, position number, songid number ) CREATE TABLE performance ( songid n...
### Context: CREATE TABLE table_name_52 ( opponent VARCHAR, week VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent at the week 6 game? ### Query: SELECT opponent FROM table_name_52 WHERE week = 6
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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...
### Context: CREATE TABLE table_30882 ( "Network" text, "Flagship" text, "Programming" text, "Region" text, "Origin" text, "Owner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which network serves the Guerrero region ### Query: SELECT "Networ...
### Context: CREATE TABLE table_42793 ( "Name" text, "Innings" real, "Runs Scored" real, "Balls Faced" real, "Average" real, "S.R." real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What kind of Average has a S.R. of 70.43 and Runs Scored smaller t...
### Context: CREATE TABLE table_name_40 ( quantity INTEGER, number_s_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average quantity that has 1104 as the number(s)? ### Query: SELECT AVG(quantity) FROM table_name_40 WHERE number_s_ = "1104"
### Context: CREATE TABLE table_name_30 ( player VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the player with a score of 72-68-70=210? ### Query: SELECT player FROM table_name_30 WHERE score = 72 - 68 - 70 = 210
### Context: CREATE TABLE table_name_30 ( lost VARCHAR, losing_bonus VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Lost with a Losing Bonus that is 4? ### Query: SELECT lost FROM table_name_30 WHERE losing_bonus = "4"
### Context: CREATE TABLE table_22825058_23 ( round VARCHAR, opponents VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the round for john van lottum martin verkerk ### Query: SELECT round FROM table_22825058_23 WHERE opponents = "John Van Lottum Martin ...
### Context: CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime ...
### 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 vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE medicati...
### Context: CREATE TABLE Rooms ( RoomId TEXT, roomName TEXT, beds INTEGER, bedType TEXT, maxOccupancy INTEGER, basePrice INTEGER, decor TEXT ) CREATE TABLE Reservations ( Code INTEGER, Room TEXT, CheckIn TEXT, CheckOut TEXT, Rate REAL, LastName TEXT, FirstName T...
### Context: CREATE TABLE table_name_56 ( example VARCHAR, type VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the example with the associative type? ### Query: SELECT example FROM table_name_56 WHERE type = "associative"
### Context: CREATE TABLE table_17432 ( "Model/Engine" text, "Capacity" text, "Cylinders/Valves" text, "Power/rpm" text, "Torque (Nm)/rpm" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the torque formula for the model/engine which has 1,753...
### Context: CREATE TABLE table_48771 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is To Par, when Score is 70, and when Player is 'Craig Stadler'? ### Query: SELECT "To p...
### Context: CREATE TABLE table_name_75 ( passengers INTEGER, airport VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the least passengers from the Dallas/Fort Worth International (DFW) airport? ### Query: SELECT MIN(passengers) FROM table_name_75 WH...
### 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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_ti...
### Context: CREATE TABLE table_35208 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score in the game where the Blazer...
### Context: CREATE TABLE table_name_97 ( smoke_point VARCHAR, total_fat VARCHAR, monounsaturated_fat VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smoke point with a total fat of 100g, and monounsaturated fat of 46g? ### Query: SELECT smok...
### Context: CREATE TABLE table_13313 ( "Number" real, "Sanskrit" text, "International Alphabet of Sanskrit Transliteration" text, "Sanskrit gloss" text, "Western name" text, "Greek" text, "Gloss" text, "Tattva (Element)" text, "Quality" text, "Ruling Planet" text ) -- Using va...
### Context: CREATE TABLE table_76548 ( "Game" real, "Date" text, "Score" text, "Location" text, "Time" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many games have an Attendance of 19,190? ### Query: SELECT COUNT("Game...
### Context: CREATE TABLE appellations ( No INTEGER, Appelation TEXT, County TEXT, State TEXT, Area TEXT, isAVA TEXT ) CREATE TABLE grapes ( ID INTEGER, Grape TEXT, Color TEXT ) CREATE TABLE wine ( No INTEGER, Grape TEXT, Winery TEXT, Appelation TEXT, State TEXT...
### Context: CREATE TABLE entrepreneur ( entrepreneur_id number, people_id number, company text, money_requested number, investor text ) CREATE TABLE people ( people_id number, name text, height number, weight number, date_of_birth text ) -- Using valid SQLite, answer the foll...
### Context: CREATE TABLE table_name_83 ( record VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where the time is 2:46, what is the record? ### Query: SELECT record FROM table_name_83 WHERE time = "2:46"
### Context: CREATE TABLE table_name_90 ( output VARCHAR, ir_leds VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the output with no IR LEDs? ### Query: SELECT output FROM table_name_90 WHERE ir_leds = "no"
### Context: CREATE TABLE table_66429 ( "Millewa" text, "Wins" real, "Forfeits" real, "Losses" real, "Draws" real, "Against" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Forfeits have Wins smaller than 8, and Losses larger than 16? #...
### Context: CREATE TABLE table_52575 ( "Player" text, "Tries" text, "Conv" text, "Pens" text, "Drop" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the venue that has conv of 5 players on 20 points ### Query...
### Context: CREATE TABLE table_18446 ( "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 was the result of the election in which Walter E. Roge...
### 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 lab ( labid n...
### Context: CREATE TABLE table_name_83 ( against INTEGER, central_murray VARCHAR, losses VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the most againsts with more than 11 losses and central murray is Nyah Nyah West Utd? ### Query: SELECT MAX(...
### Context: CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE a...
### Context: CREATE TABLE table_47637 ( "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 Venue of the 2009 Gulf Cup of Nations? ### Query: SELECT "Venue" FROM table_47...
### Context: CREATE TABLE table_name_28 ( away_team VARCHAR, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score against home team, Richmond? ### Query: SELECT away_team AS score FROM table_name_28 WHERE home_team = "richmond"
### Context: CREATE TABLE table_47047 ( "Rank" real, "Title" text, "Studio" text, "Director(s)" text, "Worldwide Gross" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which title had rank 9? ### Query: SELECT "Title" FROM table_47047 WHERE "Rank" =...
### 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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_ti...
### 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 PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE PostNotices ( Id number, PostId number, Po...
### Context: CREATE TABLE table_261927_2 ( type VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different types are allocated to the institution in Bridgewater, Massachusetts? ### Query: SELECT COUNT(type) FROM table_261927_2 WHERE...
### Context: CREATE TABLE table_1341865_44 ( incumbent VARCHAR, district VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many incumbent with district being tennessee 5 ### Query: SELECT COUNT(incumbent) FROM table_1341865_44 WHERE district = "Tennessee 5...
### Context: CREATE TABLE compartment_class ( compartment varchar, class_type varchar ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) ...
### 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 regions ( REGION_ID de...
### Context: CREATE TABLE table_13530 ( "Frequency" text, "Call sign" text, "Branding" text, "Format" text, "Owner" text, "Language/Rebroadcast" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the frequency when the format is contemporary...
### Context: CREATE TABLE table_66625 ( "City of license" text, "Identifier" text, "Frequency" text, "Power" text, "Class" text, "RECNet" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the RECNet with a Class of B and the City of License...
### Context: CREATE TABLE table_46716 ( "Season" text, "Competition" text, "Round" text, "Club" text, "1st Leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 1st leg of the uefa intertoto cup competition with club silkeborg? ### Query:...
### Context: CREATE TABLE table_49591 ( "Date" text, "Opponent" text, "Venue" text, "Result" text, "Attendance" real, "Competition" text, "Man of the Match" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For what competition was the venue aw...
### Context: CREATE TABLE table_2114 ( "Institution" text, "Location" text, "Founded" real, "Type" text, "Enrollment" real, "Nickname" text, "Joined" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years are listed under joined for t...
### Context: CREATE TABLE table_name_85 ( genre VARCHAR, artist VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What genre is Led Zeppelin? ### Query: SELECT genre FROM table_name_85 WHERE artist = "led zeppelin"
### Context: CREATE TABLE loan ( loan_id text, loan_type text, cust_id text, branch_id text, amount number ) CREATE TABLE bank ( branch_id number, bname text, no_of_customers number, city text, state text ) CREATE TABLE customer ( cust_id text, cust_name text, acc_t...
### Context: CREATE TABLE payments ( amount_due INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average amount due for all the payments? ### Query: SELECT AVG(amount_due) FROM payments
### Context: CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE state ( state_code te...
### Context: CREATE TABLE date_day ( month_number int, day_number int, year int, day_name varchar ) CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE days ( days_code varchar, day...
### Context: CREATE TABLE table_name_95 ( rank INTEGER, lost VARCHAR, played VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Rank has a Lost smaller than 12, and a Played larger than 20, and an Avg Points larger than 1.73? ### Query: SELECT MAX(ran...
### 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 microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE vitalperiodic ...
### Context: CREATE TABLE table_22824312_1 ( class VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What class was ren alde? ### Query: SELECT class FROM table_22824312_1 WHERE player = "Ren Alde"
### Context: CREATE TABLE table_name_88 ( league VARCHAR, league_position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What league has a position of 8/13? ### Query: SELECT league FROM table_name_88 WHERE league_position = "8/13"
### Context: CREATE TABLE table_7476 ( "Region" text, "Date" text, "Label" text, "Format" text, "Catalog" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the label from the Netherlands? ### Query: SELECT "Label" FROM table_7476 WHERE "Region...
### Context: CREATE TABLE table_2139390_2 ( team VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the team for june 20 ### Query: SELECT team FROM table_2139390_2 WHERE date = "June 20"
### Context: CREATE TABLE table_name_71 ( representative VARCHAR, lifespan VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Representative had a Lifespan of 1795 1866? ### Query: SELECT representative FROM table_name_71 WHERE lifespan = "1795–1866"
### 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 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, JSBBRQSJ time, JSBBSJ time, JYBBH text, JYJGMC text, JYJSGH text, JYJSQM...
### Context: CREATE TABLE table_name_64 ( name__pinyin_ VARCHAR, name__wade_giles_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Name (pinyin) is named fu-ching? ### Query: SELECT name__pinyin_ FROM table_name_64 WHERE name__wade_giles_ = "fu-ching"
### Context: CREATE TABLE table_28126 ( "Sec" real, "Offence" text, "Definition, example or notes" text, "Civilian?" text, "Summary Hearing?" text, "Max. sentence at Court Martial" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the summm...
### Context: CREATE TABLE Rooms ( roomName VARCHAR, decor VARCHAR, bedtype VARCHAR, basePrice VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the names and decor of rooms that have a king bed. Sort the list by their price. ### Query: SELECT room...
### Context: CREATE TABLE table_13956521_2 ( writer_s_ VARCHAR, original_airdate VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the the writer(s) with original airdate being february 7, 2001 ### Query: SELECT writer_s_ FROM table_13956521_2 WHERE ori...
### Context: CREATE TABLE table_16643 ( "Edition" real, "Zone" text, "Round" text, "Date" text, "Against" text, "Surface" text, "Opponent" text, "Outcome" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the res...
### 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 advisor ( s_id text, i_id text ) CREATE TABLE classroom ( building text, room_number text, capacity number ) CREATE TABLE time_slot ( time_slot_id text, day text, start_hr number, start_min number, end_hr number, end_min number ) CREATE TABLE teac...
### Context: CREATE TABLE table_31095 ( "Name" text, "Occupation" text, "Gender" text, "Prison connection" text, "Played by" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many prisons is Joan Leaven connected with? ### Query...
### Context: CREATE TABLE d_labitems ( row_id number, itemid number, label text ) 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 ( ...
### 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_17628022_2 ( pregame_analysts VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who did pregame analysis in 2002? ### Query: SELECT pregame_analysts FROM table_17628022_2 WHERE year = 2002
### Context: CREATE TABLE table_74818 ( "Week" real, "Date" text, "Kickoff (ET)" text, "Opponent" text, "Result" text, "Record" text, "Game site" text, "NFL Recap" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Opponent has a Game ...
### Context: CREATE TABLE table_name_19 ( runner_s__up VARCHAR, margin_of_victory VARCHAR, winning_score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is runner-up where the winning score is 6 (65-70-70-69=274) and the margin of victory is 3 strokes...
### Context: CREATE TABLE table_name_99 ( attendance INTEGER, points VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many attended the game against the sharks with over 86 points? ### Query: SELECT AVG(attendance) FROM table_name_99...
### Context: CREATE TABLE table_name_38 ( player VARCHAR, position VARCHAR, college VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the quarterback for Arkansas State? ### Query: SELECT player FROM table_name_38 WHERE position = "quarterback" AND ...
### Context: CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, good_feedback int, tough_tests int, heavy_papers int, cares_for_students int, heavy...
### 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 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, JSBBRQSJ time, JSBBSJ time, JYBBH text, JYJGMC text, JYJSGH text, JYJSQM...
### Context: CREATE TABLE table_name_97 ( location VARCHAR, county VARCHAR, school VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which location is in 71 St. Joseph county with South Bend Washington school? ### Query: SELECT location FROM table_name_97 ...
### 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_17270 ( "Series #" real, "Season #" real, "Title" text, "Directed by" text, "Written by" text, "Musical guest and song" text, "Original air date" text, "Production code" text ) -- Using valid SQLite, answer the following questions for the tables provided...
### Context: CREATE TABLE table_name_14 ( runner VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many 5K wins did Emily Chebet, who had more than 2 total, have? ### Query: SELECT SUM(5 AS k_wins) FROM table_name_14 WHERE runner = "emily ch...
### Context: CREATE TABLE jobs ( job_id text, job_title text, min_salary number, max_salary number ) CREATE TABLE departments ( department_id number, department_name text, manager_id number, location_id number ) CREATE TABLE regions ( region_id number, region_name text ) CREAT...
### Context: CREATE TABLE table_name_22 ( year INTEGER, result VARCHAR, extra VARCHAR, tournament VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average year that anna thompson had an 8th place result in team competitio...
### Context: CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ...