text
stringlengths
197
8.39k
### Context: CREATE TABLE table_61726 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Week has Attendance of 51,558? ### Query: SELECT MIN("Week") FROM table_61726 WHERE ...
### Context: CREATE TABLE railway ( Railway_ID int, Railway text, Builder text, Built text, Wheels text, Location text, ObjectNumber text ) CREATE TABLE manager ( Manager_ID int, Name text, Country text, Working_year_starts text, Age int, Level int ) CREATE TABLE ra...
### Context: CREATE TABLE table_63358 ( "Rank" real, "Lane" real, "Name" text, "Nationality" text, "Time" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average rank for 57.05 time? ### Query: SELECT AVG("Rank") FROM table_63358 WHERE "...
### Context: CREATE TABLE table_name_29 ( score VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Score, when Attendance is 3,416? ### Query: SELECT score FROM table_name_29 WHERE attendance = "3,416"
### Context: CREATE TABLE table_76004 ( "Rank" real, "Republic" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average total for teams with more than 1 gold, ranked over 3 and ...
### Context: CREATE TABLE event ( ID int, Name text, Stadium_ID int, Year text ) CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real, meter_200 text, meter_300 text, meter_400 text, meter_500 text, meter_600 text, meter_700 text, Time t...
### Context: CREATE TABLE region ( Region_id int, Region_code text, Region_name text ) CREATE TABLE storm ( Storm_ID int, Name text, Dates_active text, Max_speed int, Damage_millions_USD real, Number_Deaths int ) CREATE TABLE affected_region ( Region_id int, Storm_ID int, ...
### Context: CREATE TABLE table_18354 ( "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. -- List all candidates in elections where the incumbent politi...
### 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_58636 ( "Year" real, "Binibining Pilipinas-Universe" text, "Binibining Pilipinas-International" text, "Miss Maja Pilipinas" text, "First runner-up" text, "Second runner-up" text, "Third runner-up" text, "Fourth runner-up" text ) -- Using valid SQLite, an...
### 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_24257833_4 ( webkit_version VARCHAR, major_version VARCHAR, minor_version VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List all webkit versions when the major version was Safari 3, and the minor version was 3.1.2. ### Q...
### Context: CREATE TABLE table_18202 ( "District" text, "Incumbent" text, "Party" text, "First elected" real, "Status" text, "Opponent" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's Georgia5's first elected year? ### Query: SELECT MAX(...
### Context: CREATE TABLE table_name_21 ( result VARCHAR, streak VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the result with streak of won 6? ### Query: SELECT result FROM table_name_21 WHERE streak = "won 6"
### Context: CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, stop_airport text, arrival_time int, arrival_airline text, arrival_flight_number int, departure_time int, departure_airline text, departure_flight_number int, stop_time int ) CREATE TABLE...
### Context: CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytim...
### Context: CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE program ( program_id int, name varchar, co...
### Context: CREATE TABLE table_2181798_1 ( wins VARCHAR, starts VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of wins for 30 starts ### Query: SELECT COUNT(wins) FROM table_2181798_1 WHERE starts = 30
### Context: CREATE TABLE table_26733129_1 ( three_darts_challenge VARCHAR, air_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was in the three darts challenge that aired on 10 may 2010? ### Query: SELECT three_darts_challenge FROM table_26733129_1...
### Context: CREATE TABLE table_name_57 ( competition VARCHAR, position VARCHAR, notes VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Competition was 1st Position with 57.03 in Notes? ### Query: SELECT competition FROM table_name_57 WHERE position...
### Context: CREATE TABLE table_24115349_6 ( turnout__percentage VARCHAR, brown__percentage VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the turnout percentage in the place that had 44.6% vote for brown? ### Query: SELECT turnout__percentage FROM...
### Context: CREATE TABLE table_1140099_6 ( report VARCHAR, winning_driver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the report for the race that Mike Spence won. ### Query: SELECT report FROM table_1140099_6 WHERE winning_driver = "Mike Spence...
### Context: CREATE TABLE table_name_9 ( fastest_laps INTEGER, podiums VARCHAR, poles VARCHAR, races VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number of the fastest laps when there were 0 poles, more than 2 podiums, and more ...
### 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_21709 ( "Class" text, "Part 1" text, "Part 2" text, "Part 3" text, "Part 4" text, "Verb meaning" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the part 3 of the verb whose class is 4? ### Query: SELECT "P...
### Context: CREATE TABLE table_name_5 ( losses VARCHAR, no_result INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of losses with number result less than 0 ### Query: SELECT COUNT(losses) FROM table_name_5 WHERE no_result < 0
### Context: CREATE TABLE table_name_97 ( sitalsasthi_carnival VARCHAR, kosal VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sitalsasthi carnival with sonepur as kosal? ### Query: SELECT sitalsasthi_carnival FROM table_name_97 WHERE kosal = "son...
### Context: CREATE TABLE table_dev_49 ( "id" int, "gender" string, "systolic_blood_pressure_sbp" int, "renal_disease" bool, "diastolic_blood_pressure_dbp" int, "high_density_lipoprotein_cholesterol_hdl_c" int, "serum_creatinine" float, "waist_circumference" int, "triglyceride_tg" fl...
### Context: CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_...
### Context: CREATE TABLE table_12755786_8 ( league INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the least amount in the tournament? ### Query: SELECT MIN(league) AS Cup FROM table_12755786_8
### Context: CREATE TABLE table_237757_9 ( nasl_years VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What years did Bobby Moore play? ### Query: SELECT nasl_years FROM table_237757_9 WHERE player = "Bobby Moore"
### Context: CREATE TABLE table_27571406_1 ( f_laps VARCHAR, podiums VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the f/laps count for the team with 8 podiums? ### Query: SELECT f_laps FROM table_27571406_1 WHERE podiums = 8
### 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 lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, val...
### 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 artist ( Artist_ID int, Name text, Country text, Year_Join int, Age int ) CREATE TABLE exhibition_record ( Exhibition_ID int, Date text, Attendance int ) CREATE TABLE exhibition ( Exhibition_ID int, Year int, Theme text, Artist_ID int, Tick...
### 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_9939 ( "Tournament" text, "Surface" text, "Week" text, "Winner" text, "Finalist" text, "Semifinalists" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Tournament, on the Week of May 5? ### Query: SELEC...
### Context: CREATE TABLE table_69709 ( "City" text, "Country" text, "IATA" text, "ICAO" text, "Airport" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- for milan and the iata of lin what is the airport? ### Query: SELECT "Airport" FROM table_69709 ...
### Context: CREATE TABLE table_name_88 ( team_classification VARCHAR, general_classification VARCHAR, mountains_classification VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Team classification has a General classification of Vladimir Karpets and ...
### Context: CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE city ( city_code varchar, city_n...
### Context: CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, ...
### Context: CREATE TABLE table_24094 ( "Episode" text, "Broadcast date" text, "Run time" text, "Viewers (in millions)" text, "Archive" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total episode for runtime of 24:11 ### Query: SELECT COU...
### 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_26069 ( "Period" text, "Live births per year" text, "Deaths per year" text, "Natural change per year" text, "CBR*" text, "CDR*" text, "NC*" text, "TFR*" text, "IMR*" real, "Life expectancy total" text, "Life expectancy males" text, "Life ex...
### Context: CREATE TABLE table_20228 ( "Date" text, "Cover model" text, "Centerfold model" text, "Interview subject" text, "20 Questions" text, "Pictorials" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many centerfold models were there wh...
### Context: CREATE TABLE table_name_40 ( opened INTEGER, line_name VARCHAR, last_extension VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average opened year of line e, which had their last extension before 2003? ### Query: SELECT AVG(opene...
### 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 locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROV...
### 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_66596 ( "Name" text, "Labour" real, "Conservative" real, "Political party" text, "Electorate" real, "Constituency" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest electorate for the Conservativ...
### Context: CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CRE...
### 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 jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALA...
### Context: CREATE TABLE table_name_62 ( date VARCHAR, runner_s__up VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what Date was Patty Sheehan Runner(s)-up? ### Query: SELECT date FROM table_name_62 WHERE runner_s__up = "patty sheehan"
### Context: CREATE TABLE table_69816 ( "Country" text, "Chart" text, "Period" text, "Peak position" text, "Sales" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the sales with peak position of #24 ### Query: SELECT "Sales" FROM table_69816 WH...
### Context: CREATE TABLE table_59147 ( "Outcome" text, "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Surface of the match against Ya...
### 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 prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_...
### Context: CREATE TABLE Ref_locations ( location_name VARCHAR, location_code VARCHAR ) CREATE TABLE Document_locations ( location_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show the location name and code with the least documents. ### Query:...
### Context: CREATE TABLE table_name_24 ( game INTEGER, march VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- March of 26 has what lowest game? ### Query: SELECT MIN(game) FROM table_name_24 WHERE march = 26
### Context: CREATE TABLE table_train_271 ( "id" int, "renal_disease" bool, "hepatic_disease" bool, "smoking" bool, "coronary_artery_disease_cad" bool, "serum_creatinine" float, "body_mass_index_bmi" float, "myocardial_infarction" bool, "NOUSE" float ) -- Using valid SQLite, answer...
### Context: CREATE TABLE table_name_84 ( place VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What place did player mark brooks take? ### Query: SELECT place FROM table_name_84 WHERE player = "mark brooks"
### Context: CREATE TABLE table_name_25 ( wins INTEGER, scored VARCHAR, conceded VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of wins when scored was less than 26, and conceded was larger than 23? ### Query: SELECT SUM(wins) FROM ta...
### Context: CREATE TABLE table_57054 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Visitor played on January 17? ### Query: SELEC...
### Context: CREATE TABLE table_28859177_2 ( directed_by VARCHAR, original_air_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who directed the episode that aired November 21, 2003? ### Query: SELECT directed_by FROM table_28859177_2 WHERE original_air_...
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text, person_info_CSD text, person_info_CSRQ time, person_info_GJDM text, person_info_GJMC text, person_info_JGDM text, person_info_JGMC text, person_info_MZDM text, person_info_MZMC text, pers...
### Context: CREATE TABLE classroom ( building text, room_number text, capacity number ) CREATE TABLE department ( dept_name text, building text, budget number ) CREATE TABLE section ( course_id text, sec_id text, semester text, year number, building text, room_number t...
### Context: CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDis...
### 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 Course ( CID VARCHAR(7), CName VARCHAR(40), Credits INTEGER, Instructor INTEGER, ...
### Context: CREATE TABLE table_53037 ( "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 was South Melbourne's score as...
### Context: CREATE TABLE table_train_260 ( "id" int, "leukocyte_deficiencies" bool, "bleeding" int, "hemoglobin_a1c_hba1c" float, "leukocyte_dysfunction" bool, "renal_disease" bool, "hba1c" float, "serum_creatinine" float, "NOUSE" float ) -- Using valid SQLite, answer the followin...
### Context: CREATE TABLE table_28723146_2 ( category_wise VARCHAR, multi_lane VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is every category wise when the multi lane is 677? ### Query: SELECT category_wise FROM table_28723146_2 WHERE multi_lane = 67...
### Context: CREATE TABLE table_19948664_1 ( world_ranking__1_ VARCHAR, author___editor___source VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the wold ranking of the index by Transparency International? ### Query: SELECT world_ranking__1_ FROM tabl...
### Context: CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height real, Weight real ) CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, U...
### 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 table_1529260_2 ( year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest year listed? ### Query: SELECT MIN(year) FROM table_1529260_2
### Context: CREATE TABLE table_58540 ( "Candidate" text, "Party" text, "Votes #" real, "Votes %" text, "Ballots %" text, "Elected" text, "Appointed" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the vote % for Cliff Breitkreuz? ##...
### Context: CREATE TABLE table_191105_4 ( music_by VARCHAR, episode_title VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the music by for episode the Elbow Room? ### Query: SELECT music_by FROM table_191105_4 WHERE episode_title = "Elbow Room"
### 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 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_82 ( classification VARCHAR, dennis_kucinich VARCHAR, _percentage_of_all VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Classification, when Dennis Kucinich is '3%', and when % of All is '53%'? ### Query: SEL...
### 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 bdmzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH number, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM text...
### 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_13595 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the to par of player hunter mahan? ### Query: SELECT "To par" FROM table_13595 WHERE ...
### Context: CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment t...
### Context: CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, ...
### Context: CREATE TABLE t_kc21_t_kc24 ( MED_CLINIC_ID text, MED_SAFE_PAY_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 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_203_281 ( id number, "season" number, "pitcher" text, "decision" text, "final\nscore" text, "opponent" text, "location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who was the first astro to be the opening ...
### Context: CREATE TABLE Apartment_Buildings ( building_id INTEGER, building_short_name CHAR(15), building_full_name VARCHAR(80), building_description VARCHAR(255), building_address VARCHAR(255), building_manager VARCHAR(50), building_phone VARCHAR(80) ) CREATE TABLE Apartment_Bookings ( ...
### 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_79472 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opposing team in the game attended by 65,554? ### Query: SELECT "Opponent" FRO...
### Context: CREATE TABLE Lives_in ( stuid INTEGER, dormid INTEGER, room_number INTEGER ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER, city_code VARCHAR(3) ) CREATE TABLE Dorm_amenit...
### Context: CREATE TABLE table_name_68 ( engine VARCHAR, year VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the engine used before 1996 with 5 points? ### Query: SELECT engine FROM table_name_68 WHERE year < 1996 AND points = ...
### Context: CREATE TABLE table_name_42 ( comp VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the comp for the year 1989? ### Query: SELECT comp FROM table_name_42 WHERE year = "1989"
### Context: CREATE TABLE table_name_13 ( main_cast_seasons VARCHAR, portrayed_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which main cast seasons were portrayed by Joe Jonas? ### Query: SELECT main_cast_seasons FROM table_name_13 WHERE portrayed_by =...
### Context: CREATE TABLE table_name_44 ( issue_price VARCHAR, theme VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the issue price for the Trumpeter Swan set? ### Query: SELECT issue_price FROM table_name_44 WHERE theme = "trumpeter swan"
### Context: CREATE TABLE table_41664 ( "20 years" text, "2400 kWh/kW p y" real, "2200 kWh/kW p y" real, "2000 kWh/kW p y" real, "1800 kWh/kW p y" real, "1600 kWh/kW p y" real, "1400 kWh/kW p y" real, "1200 kWh/kW p y" real, "1000 kWh/kW p y" real, "800 kWh/kW p y" real ) -- Us...
### 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 employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER va...
### 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_...