text
stringlengths
197
8.39k
### 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_38083 ( "Rank" real, "Club" text, "Seasons" real, "Played" real, "Drew" real, "Lost" real, "Points" real, "Avg. Points" real, "Goals for" real, "Goals against" real, "Goal diff" real ) -- Using valid SQLite, answer the following questions for...
### Context: CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime...
### Context: CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description tex...
### Context: CREATE TABLE table_204_939 ( id number, "year" number, "chassis" text, "engine" text, "start" text, "finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- did 1979 or 1985 have the larger finish place ? ### Query: SELECT "year" FR...
### 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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE ...
### 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 cost ( ...
### 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 t_kc21 ( CLINIC_ID text, CLINIC_TYPE text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURE...
### Context: CREATE TABLE table_53826 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the Runner(s)-up on the Date 4 Oct 2009? ### Query: SELECT...
### 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 Discount_Coupons ( coupon_amount VARCHAR, coupon_id VARCHAR ) CREATE TABLE customers ( coupon_id VARCHAR, good_or_bad_customer VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the coupon amount of the coupons owned b...
### Context: CREATE TABLE table_52982 ( "Season" text, "Pyramid Level" text, "Regular Season 1" text, "Playoffs 1" text, "Regular Season 2" text, "Playoffs 2" text, "Copa M\u00e9xico" text, "CONCACAF" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
### Context: CREATE TABLE table_name_21 ( position VARCHAR, height_in_ft VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Position, when Height in Ft. is 6-10? ### Query: SELECT position FROM table_name_21 WHERE height_in_ft = "6-10"
### Context: CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, hospitalid number, wardid number, admissionheight number, admissionweight number, dischargeweight number, hospitaladmitti...
### Context: CREATE TABLE table_name_4 ( tournament VARCHAR, outcome VARCHAR, surface VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Tournament has an Outcome of winner, and a Surface of hard (i)? ### Query: SELECT tournament FROM table_name_4 WHE...
### 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 table_35889 ( "Date" text, "Competition" text, "Opponents" text, "Venue" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent at the away game with a score of 5-4? ### Query: SELECT "Opponents"...
### Context: CREATE TABLE table_35200 ( "Year" real, "Class" text, "Team" text, "Points" real, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When is the most recent year with more than 27 points and more than 5 wins? ### Query: SELECT MAX("...
### Context: CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel te...
### 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 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_1231892_4 ( number_in_series VARCHAR, broadcast_order VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the number of episodes with a broadcast order s04 e07? ### Query: SELECT COUNT(number_in_series) FROM table_1231892_4...
### Context: CREATE TABLE table_52247 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who constructed the car with laps more than 70 and a time/retired of +12.535? ### Que...
### Context: CREATE TABLE table_73062 ( "Parliament" text, "Name" text, "Period in office" text, "Birth and death years" text, "General election contested" real, "Constituency contested" text, "Political party" text ) -- Using valid SQLite, answer the following questions for the tables pro...
### 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 icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE cost ( row_id number, subject_id number, ...
### Context: CREATE TABLE table_204_526 ( id number, "name" text, "#" number, "position" text, "height" text, "weight" number, "year" text, "home town" text, "high school" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the n...
### Context: CREATE TABLE table_73692 ( "Series #" real, "Season #" text, "Episode" text, "Directed by" text, "Written by" text, "Original air date" text, "Viewers (in millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If the season n...
### Context: CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE ReviewTaskResultTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE ReviewTaskStates ( Id...
### Context: CREATE TABLE table_70255 ( "Institution" text, "Main Campus Location" text, "Founded" real, "Mascot" text, "School Colors" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which School Colors were Founded of 1969, with an Institution of b...
### Context: CREATE TABLE county_public_safety ( county_id number, name text, population number, police_officers number, residents_per_officer number, case_burden number, crime_rate number, police_force text, location text ) CREATE TABLE city ( city_id number, county_id numb...
### Context: CREATE TABLE table_name_72 ( car__number VARCHAR, driver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Brendan Gaughan's Car #? ### Query: SELECT car__number FROM table_name_72 WHERE driver = "brendan gaughan"
### Context: CREATE TABLE table_train_247 ( "id" int, "mini_mental_state_examination_mmse" int, "creatinine_consistently" float, "creatinine_clearance_cl" float, "seizure_disorder" bool, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provi...
### 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 medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel te...
### 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 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 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(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE departme...
### Context: 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 ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days te...
### Context: CREATE TABLE table_51234 ( "Driver" text, "Car #" real, "Make" text, "Points" real, "Laps" real, "Winnings" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many laps did Jeff Burton have when he drove car with a # over 9 and more...
### Context: CREATE TABLE zyb ( CLINIC_ID 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, INSURED_STS text, INSU_TYPE...
### Context: CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) CREATE TABLE Reviewer ( rID int, name text ) CREATE TABLE Movie ( mID int, title text, year int, director text ) -- Using valid SQLite, answer the following questions for the tables provided abo...
### Context: CREATE TABLE table_36946 ( "Season" text, "Tropical Lows" real, "Tropical Cyclones" real, "Severe Tropical Cyclones" real, "Strongest storm" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the least number of tropical cyclones wh...
### 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_name_55 ( years VARCHAR, decile VARCHAR, area VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which years have a Decile larger than 4, and an Area of thames? ### Query: SELECT years FROM table_name_55 WHERE decile > 4 AND ...
### Context: CREATE TABLE organisations ( organisation_id number, organisation_type text, organisation_details text ) CREATE TABLE project_outcomes ( project_id number, outcome_code text, outcome_details text ) CREATE TABLE research_outcomes ( outcome_code text, outcome_description tex...
### Context: CREATE TABLE table_50227 ( "Player" text, "Sacks" real, "Ints" real, "Int Yds" real, "Int LG" real, "Int TD" real, "Fumb R." real, "Fumb Yds" real, "Fumb LG" real, "Fumb TD" real, "Fumb F." real ) -- Using valid SQLite, answer the following questions for the ta...
### Context: CREATE TABLE table_name_51 ( role VARCHAR, registration VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the role of the aircraft that has a registration of s5-hpb? ### Query: SELECT role FROM table_name_51 WHERE registration = "s5-hpb"
### 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_99 ( points VARCHAR, laps VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points have 88 laps and a grid of 14? ### Query: SELECT points FROM table_name_99 WHERE laps = "88" AND grid = "14"
### Context: CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE d_icd_procedures ( row_id num...
### Context: CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, in...
### Context: CREATE TABLE gyb ( CLINIC_ID 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, INSURED_STS text, INSU_TYPE...
### Context: CREATE TABLE table_train_36 ( "id" int, "do_not_resuscitate_dnr" bool, "active_infection" bool, "sepsis" bool, "vasospastic_diathesis" bool, "septic_shock" bool, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables provided abov...
### Context: CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE universi...
### Context: CREATE TABLE time_interval ( period text, begin_time int, end_time int ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, ...
### Context: CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE demographic ( subject_id text, ...
### Context: CREATE TABLE table_49763 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is score of a team with tie of 4? ### Query: SELECT "Score" FROM table_49763 W...
### Context: CREATE TABLE table_51611 ( "Date" text, "Opponents" text, "Score" text, "Competition" text, "Match Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the match report for July 10, 2005? ### Query: SELECT "Match Report" FROM...
### 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 countries ...
### Context: CREATE TABLE TagSynonyms ( Id number, SourceTagName text, TargetTagName text, CreationDate time, OwnerUserId number, AutoRenameCount number, LastAutoRename time, Score number, ApprovedByUserId number, ApprovalDate time ) CREATE TABLE PostFeedback ( Id number, ...
### Context: CREATE TABLE zyjzjlb ( CYBQDM text, CYBQMC text, CYCWH text, CYKSDM text, CYKSMC text, CYSJ time, CYZTDM number, HZXM text, JZKSDM text, JZKSMC text, JZLSH text, KH text, KLX number, MZBMLX number, MZJZLSH text, MZZDBM text, MZZDMC text, ...
### Context: CREATE TABLE table_80311 ( "Rank" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What shows for nationality when there is a rank larger than 6, and a Time of 2:14.95? ### Query...
### Context: CREATE TABLE t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_ID number ) 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 ...
### Context: CREATE TABLE table_54613 ( "Stage" real, "Date" text, "Course" text, "Distance" text, "Winner" text, "GC Leader" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the GC leader at vila - segovia? ### Query: SELECT "GC Leader" F...
### Context: CREATE TABLE t_kc21 ( MED_CLINIC_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, COMP_ID text, PERSON_ID text, PERSON_NM text, IDENTITY_CARD text, SOC_SRT_CARD text, PERSON_SEX number, PERSON_AGE number, IN_HOSP_DATE time, OUT_HOSP_DATE time, DIFF_P...
### Context: CREATE TABLE table_29041 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tabl...
### Context: CREATE TABLE table_1341598_22 ( result VARCHAR, incumbent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of results for james shannon? ### Query: SELECT COUNT(result) FROM table_1341598_22 WHERE incumbent = "James Shannon"
### Context: CREATE TABLE table_22856 ( "Year" real, "Worldwide" real, "Africa" real, "America" real, "Asia" real, "Australia" real, "Europe" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the latest year that Europe had 471895? ###...
### Context: CREATE TABLE table_73397 ( "State (class)" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date of successors formal installation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are all the states (class) when th...
### Context: CREATE TABLE people ( people_id number, sex text, name text, date_of_birth text, height number, weight number ) CREATE TABLE candidate ( candidate_id number, people_id number, poll_source text, date text, support_rate number, consider_rate number, oppose...
### Context: CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, ...
### Context: CREATE TABLE table_28780 ( "Year (Ceremony)" text, "English title" text, "Arabic title" text, "Director" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 2012 (85th) is the year (ceremony) how many results? ### Query:...
### Context: CREATE TABLE table_204_647 ( id number, "year" number, "film" text, "role" text, "language" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many languages has he been in that are in the telugu language ? ### Query: SELECT COUNT(*) F...
### Context: CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, ...
### 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_49550 ( "Volume:Issue" text, "Issue date(s)" text, "Weeks at number one" real, "Song" text, "Artist(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Song has an Issue date(s) of 29 may - 26 june? ### Query: S...
### Context: CREATE TABLE table_20620 ( "Missouri vs." text, "Overall Record" text, "at Columbia" text, "at Opponents Venue" text, "at Neutral Site" text, "Last 5 Meetings" text, "Last 10 Meetings" text, "Current Streak" text, "Since Joining SEC" text ) -- Using valid SQLite, answe...
### Context: CREATE TABLE table_2950964_1 ( title VARCHAR, _number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the title of book number 8? ### Query: SELECT title FROM table_2950964_1 WHERE _number = "8"
### Context: CREATE TABLE table_24800 ( "District" text, "Municipalities" real, "Parishes" real, "Province of 1936" text, "Region" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name province of 1936 viana do castelo ### Query: SELECT "Province of ...
### Context: CREATE TABLE table_name_22 ( oppose VARCHAR, poll_source VARCHAR, unsure VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What percentage of people were opposed to the candidate based on the Time Poll poll that showed 6% of people were unsure?...
### 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 song ( song_name varchar2(50), artist_name varchar2(50), country varchar2(20), f_id number(10), genre_is varchar2(20), rating number(10), languages varchar2(20), releasedate Date, resolution number(10) ) CREATE TABLE artist ( artist_name varchar2(50), ...
### Context: CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, int...
### Context: CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score...
### Context: CREATE TABLE table_name_57 ( years VARCHAR, runners_up VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the year of the competition in which Odd Grenland was the runner-up? ### Query: SELECT years FROM table_name_57 WHERE runners_up = "o...
### Context: CREATE TABLE table_79663 ( "Date" text, "Series" text, "Circuit" text, "City / State" text, "Winner" text, "Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the Winner of the Nissan Motorsport Australia Team at the Oran P...
### 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 diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE ...
### Context: CREATE TABLE table_name_97 ( attendance INTEGER, loss VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Loss of de la rosa (8 8) has what average attendance? ### Query: SELECT AVG(attendance) FROM table_name_97 WHERE loss = "de la rosa (8–8)"
### 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 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_23 ( ntsc_m VARCHAR, pal_m VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the NTSC M for Pal M 525/60? ### Query: SELECT ntsc_m FROM table_name_23 WHERE pal_m = "525/60"
### 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 mzjzjlb ( YLJGDM tex...
### Context: CREATE TABLE table_201_43 ( id number, "name" text, "canton" text, "district" text, "area\n(km2)" number, "population\n(as of 2005)" number, "date of law" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many diekirch district...
### 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_name_16 ( score VARCHAR, away_team VARCHAR, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score of the game which featured the gold coast blaze as the away team and the adelaide 36ers as the home te...
### Context: CREATE TABLE table_45414 ( "Position" real, "Name" text, "Played" real, "Drawn" real, "Lost" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the least drawn when the name is sv apfeldorf and the position is mor...
### Context: CREATE TABLE table_15778392_1 ( theme VARCHAR, week__number VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHERE THE WEEK NUMBER WAS TOP 8, WHAT WAS THE THEME? ### Query: SELECT theme FROM table_15778392_1 WHERE week__number = "Top 8"
### Context: CREATE TABLE table_name_87 ( Id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 2007 value with NMS in 2011? ### Query: SELECT 2007 FROM table_name_87 WHERE 2011 = "nms"