text
stringlengths
197
8.39k
### 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 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 lab ( subject_id text, hadm...
### Context: CREATE TABLE table_name_83 ( high_rebounds VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the high rebounds for the game that had a score of w 76-66? ### Query: SELECT high_rebounds FROM table_name_83 WHERE score = "w 76...
### Context: CREATE TABLE t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_ID number ) 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 ...
### Context: CREATE TABLE table_42593 ( "Title" text, "Length" text, "Writer" text, "Composer" text, "Arranger" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the composer of El Hanone? ### Query: SELECT "Composer" FROM table_42593 WHERE "Ti...
### Context: CREATE TABLE table_name_66 ( match VARCHAR, competition VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Match has a Competition of Group Stage on 2000-09-17? ### Query: SELECT match FROM table_name_66 WHERE competition = ...
### Context: CREATE TABLE table_43004 ( "Result" text, "Date" text, "Race" text, "Venue" text, "Group" text, "Distance" text, "Weight (kg)" real, "Time" text, "Jockey" text, "Winner/2nd" text ) -- Using valid SQLite, answer the following questions for the tables provided above....
### Context: CREATE TABLE table_name_63 ( lost VARCHAR, conv VARCHAR, span VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lost for span 2006- when conv is 0? ### Query: SELECT lost FROM table_name_63 WHERE conv = "0" AND span = "2006-"
### Context: CREATE TABLE table_name_62 ( circumstances VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the circumstances for the Baghlan location? ### Query: SELECT circumstances FROM table_name_62 WHERE location = "baghlan"
### Context: CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE cost ( row_id number,...
### Context: CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) -- Using valid SQLite, answer the following ques...
### 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 cite ( cited int, citing int ) CREATE TABLE publication_keyword ( kid int, pid int ) CREATE TABLE journal ( homepage varchar, jid int, name varchar ) CREATE TABLE organization ( continent varchar, homepage varchar, name varchar, oid int ) CREATE ...
### Context: CREATE TABLE Rating ( mID VARCHAR, stars INTEGER ) CREATE TABLE Movie ( title VARCHAR, director VARCHAR, mID VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the titles and directors of the movies whose star is greater than t...
### Context: CREATE TABLE table_name_99 ( home_captain VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the Home captain for the Test match of Australia in England at the Edgbaston Venue? ### Query: SELECT home_captain FROM table_name_9...
### 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_name_74 ( date VARCHAR, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On which date did Geelong play at home? ### Query: SELECT date FROM table_name_74 WHERE home_team = "geelong"
### Context: CREATE TABLE table_204_548 ( id number, "team" text, "basic elements" number, "tumbling" number, "stunts" number, "tosses" number, "pyramids" number, "deductions" number, "total score" number, "result" text ) -- Using valid SQLite, answer the following questions fo...
### Context: CREATE TABLE table_name_12 ( rank VARCHAR, nationality VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many ranks have a ationality of canada, and a Time of dns? ### Query: SELECT COUNT(rank) FROM table_name_12 WHERE nation...
### Context: CREATE TABLE table_24481478_1 ( kickoff VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What time did the game start on saturday, april 20? ### Query: SELECT kickoff FROM table_24481478_1 WHERE date = "Saturday, April 20"
### Context: CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) C...
### Context: CREATE TABLE table_63011 ( "Driver" text, "Navigator" text, "Vehicle" text, "Class" text, "Capacity" real, "Total Time" text, "Margin" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Capacity has a Class of cm22, and a Vehi...
### Context: CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time...
### Context: CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe text, Views number, UpVotes number, DownVotes number, ProfileImageUrl text, EmailHash text, AccountId ...
### Context: CREATE TABLE table_14347 ( "Pick" real, "Player" text, "Country of Origin*" text, "PBA team" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the sum of pick for philippines and erwin velez ### Query: SELECT SUM("Pic...
### Context: CREATE TABLE table_name_49 ( date VARCHAR, opponent_in_the_final VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Date of the match with Opponent in the final of Filip Pol ek? ### Query: SELECT date FROM table_name_49 WHERE opponent_i...
### Context: CREATE TABLE table_71699 ( "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 Fuel Propulsion has a Fleet Ser...
### 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 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 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_2383498_4 ( qld_cup_premierships VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the QLD Cup Premierships if team is Gold Coast Vikings? ### Query: SELECT qld_cup_premierships FROM table_2383498_4 WHERE t...
### Context: CREATE TABLE table_76958 ( "Date" text, "Opponent" text, "Site" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many spectators attended the game that ended in a result of w29-7? ### Query: SELECT "...
### Context: CREATE TABLE addresses ( address_id number, address_content text, city text, zip_postcode text, state_province_county text, country text, other_address_details text ) CREATE TABLE customer_addresses ( customer_id number, address_id number, date_address_from time, ...
### 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 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 table_name_52 ( language VARCHAR, publisher VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What language has 20th century fox as the publisher? ### Query: SELECT language FROM table_name_52 WHERE publisher = "20th century fox"
### Context: CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost ...
### Context: CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE gsi ...
### Context: CREATE TABLE table_name_51 ( opponent VARCHAR, november VARCHAR, game VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the Opponent that has the November larger than 26, and the Game larger than 18? ### Query: SELECT opponent ...
### Context: CREATE TABLE table_name_75 ( event VARCHAR, athlete VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which event was Tatyana Lebedeva in? ### Query: SELECT event FROM table_name_75 WHERE athlete = "tatyana lebedeva"
### Context: CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE countries ( COUNTRY_ID varchar(2), COUNTRY_NAME varchar(40), REGION_I...
### Context: CREATE TABLE table_name_61 ( losses INTEGER, team VARCHAR, draws VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number of losses for Presidente Hayes, when the draws were more than 4? ### Query: SELECT MAX(losses) FROM t...
### Context: CREATE TABLE table_29699 ( "Season" real, "Series" text, "Team" text, "Races" real, "Wins" real, "Poles" real, "F/Laps" real, "Podiums" real, "Points" text, "Position" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- H...
### Context: CREATE TABLE table_name_71 ( population INTEGER, area_km_2 VARCHAR, official_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average population vlue for an area smaller than 26.69 square km and has an official name of Rogersv...
### Context: CREATE TABLE table_203_613 ( id number, "formula" text, "color" text, "symmetry" text, "space group" text, "no" number, "pearson symbol" text, "a (pm)" number, "b (pm)" number, "c (pm)" number, "z" number, "density, g/cm3" number ) -- Using valid SQLite, an...
### Context: CREATE TABLE t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_ID number ) 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 ...
### Context: CREATE TABLE table_test_7 ( "id" int, "bleeding" int, "left_ventricular_ejection_fraction_lvef" int, "intra_aortic_balloon_pump_iabp" bool, "systolic_blood_pressure_sbp" int, "dialysis" bool, "intravenous_pressors" bool, "non_infarct_related_vessel" bool, "heart_disease"...
### Context: CREATE TABLE fare_basis ( fare_basis_code text, booking_class text, class_type text, premium text, economy text, discounted text, night text, season text, basis_days text ) CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TAB...
### Context: CREATE TABLE table_name_23 ( division VARCHAR, team_season VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which division were the Brewers a part of in the 1987 season? ### Query: SELECT division FROM table_name_23 WHERE team_season = "1987"
### Context: CREATE TABLE table_54661 ( "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 home team plays at victoria pa...
### Context: CREATE TABLE table_49768 ( "Game" real, "Date" text, "Opponent" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location/Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided ...
### Context: CREATE TABLE table_70400 ( "Year" real, "Division" text, "League" text, "Reg. Season" text, "Playoffs" text, "Open Cup" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What open cup did they play in when they finished 2nd, northeast ...
### Context: CREATE TABLE table_53878 ( "Interregnum began" text, "Interregnum ended" text, "Duration" text, "Count Palatine of Saxony" text, "Count Palatine of the Rhine" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the duration for Count...
### Context: CREATE TABLE table_name_3 ( game VARCHAR, score VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Game has a Score of 4 0 and Points of 44? ### Query: SELECT game FROM table_name_3 WHERE score = "4–0" AND points = 44
### Context: CREATE TABLE table_25991 ( "Player" text, "Games Played" real, "Minutes" real, "Field Goals" real, "Three Pointers" real, "Free Throws" real, "Rebounds" real, "Assists" real, "Blocks" real, "Steals" real, "Points" real ) -- Using valid SQLite, answer the follow...
### Context: CREATE TABLE table_16048 ( "\u2193 Function / Genus \u2192" text, "Shigella" text, "Salmonella" text, "Yersinia" text, "Escherichia" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the salmonella with shigella being ipgc ### Quer...
### Context: CREATE TABLE table_53515 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the visitor on March 24? ### Query: SELECT "Visitor" FROM table_53515 WHERE "Date" = 'mar...
### Context: CREATE TABLE table_15431959_1 ( no_in_season INTEGER, directed_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many seasons did Peter Deluise direct Stargate SG-1? ### Query: SELECT MAX(no_in_season) FROM table_15431959_1 WHERE directed_b...
### Context: CREATE TABLE repair_assignment ( technician_id int, repair_ID int, Machine_ID int ) CREATE TABLE technician ( technician_id real, Name text, Team text, Starting_Year real, Age int ) CREATE TABLE repair ( repair_ID int, name text, Launch_Date text, Notes tex...
### Context: CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE course_offering ( offering_id int, course_id int, s...
### Context: CREATE TABLE table_train_92 ( "id" int, "thyroid_disease" bool, "heart_disease" bool, "global_deterioration_scale" int, "rosen_modified_hachinski_ischemic_score" int, "hypertension" bool, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables prov...
### Context: CREATE TABLE table_name_38 ( games VARCHAR, goals_against VARCHAR, lost VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many games have more than 288 goals and less than 34 losses? ### Query: SELECT COUNT(games) FROM table_name_38 WHERE ...
### Context: CREATE TABLE table_name_45 ( date VARCHAR, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date did Melbourne play as the home team? ### Query: SELECT date FROM table_name_45 WHERE home_team = "melbourne"
### 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 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_53399 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the attendance on July 30? ### Query: SELECT AVG("Attendance") ...
### Context: CREATE TABLE table_16575609_1 ( position VARCHAR, cfl_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position did the winnipeg blue bombers draft? ### Query: SELECT position FROM table_16575609_1 WHERE cfl_team = "Winnipeg Blue Bomber...
### Context: CREATE TABLE table_29225103_2 ( gm_winning_team VARCHAR, ep_winning_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who the GM winning team when the EP winning team was #37 Porsche? ### Query: SELECT gm_winning_team FROM table_29225103_2 WH...
### Context: CREATE TABLE table_name_17 ( entrant VARCHAR, points VARCHAR, chassis VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What entrant had a Maserati 250F chassis and fewer than 6 points before 1957? ### Query: SELECT entrant F...
### 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 table_50075 ( "Nat." text, "Name" text, "Moving to" text, "Type" text, "Transfer window" text, "Transfer fee" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the transfer fee for rory loy? ### Query: SELECT "Tra...
### Context: CREATE TABLE table_8673 ( "Date" text, "Home" text, "Score" text, "Away" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the home team for the game with Platense as the away team and attendance under 529? ### ...
### Context: CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE patient ( uniquepid text, ...
### Context: CREATE TABLE document_structures ( document_structure_code text, parent_document_structure_code text, document_structure_description text ) CREATE TABLE document_sections ( section_id number, document_code text, section_sequence number, section_code text, section_title text...
### Context: CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate...
### Context: CREATE TABLE table_55203 ( "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 is south melbourne's home side...
### Context: CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, Comment text, Text text, ContentLicense text ) CREATE TABLE PostTypes ( Id number, Name text ) CREATE ...
### Context: CREATE TABLE table_name_37 ( game VARCHAR, season VARCHAR, result VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Game has a Result of win, and an Opponent of new hampshire, and a Season smaller than 2008? ### Que...
### Context: CREATE TABLE table_name_26 ( score VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the score on august 1 ### Query: SELECT score FROM table_name_26 WHERE date = "august 1"
### Context: CREATE TABLE table_1992924_3 ( spokesperson VARCHAR, year_s_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many spokesperson where in 2004 ### Query: SELECT COUNT(spokesperson) FROM table_1992924_3 WHERE year_s_ = 2004
### 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_81 ( driver VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who is the driver when grid is 11? ### Query: SELECT driver FROM table_name_81 WHERE grid = 11
### 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_name_4 ( position INTEGER, played INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest positioned with more than 9 played? ### Query: SELECT MIN(position) FROM table_name_4 WHERE played > 9
### Context: CREATE TABLE table_18255 ( "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's the district with first elected being 1972 ### Quer...
### Context: CREATE TABLE table_name_49 ( total INTEGER, egyptian_premier_league VARCHAR, egypt_cup VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest total for players with under 2 Egyptian Premier League goals and 0 Egypt Cup goals? ##...
### Context: CREATE TABLE table_name_70 ( _percentage_2006 INTEGER, seats_2001 VARCHAR, _percentage_2001 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When seats for 2001 is greater than 15 and % 2001 is greater than 100, what is the % 2006? ### Query:...
### Context: CREATE TABLE table_26896 ( "Team" text, "Truck(s)" text, "#" real, "Driver(s)" text, "Primary Sponsor(s)" text, "Listed Owner(s)" text, "Crew Chief" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the least listed owner for ...
### Context: CREATE TABLE Album ( AlbumId integer, Title varchar(160), ArtistId integer ) CREATE TABLE Artist ( ArtistId integer, Name varchar(120) ) CREATE TABLE Track ( TrackId integer, Name varchar(200), AlbumId integer, MediaTypeId integer, GenreId integer, Composer var...
### 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 prescriptions ( subject_id text...
### Context: CREATE TABLE table_name_6 ( format VARCHAR, single VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the format of the single, I Can't Stay? ### Query: SELECT format FROM table_name_6 WHERE single = "i can't stay"
### Context: CREATE TABLE table_name_95 ( league VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which League has a Venue of martin luther king, jr. recreation center? ### Query: SELECT league FROM table_name_95 WHERE venue = "martin luther ki...
### 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_20728138_1 ( _percentage_in_seats_contested VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 2003 seat number, when seats contested was at 38.23% ### Query: SELECT MIN(2003 AS _seats) FROM table_20728138_1 WHERE _percen...
### 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 job_history ( EMPLOYEE_ID decimal(6,0), START_DATE date, END_DATE date, JOB_ID varchar(10), DEPARTMENT_ID decimal(4,0) ) ...
### 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 transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit ...
### Context: CREATE TABLE table_name_67 ( winning_score VARCHAR, tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Winning score has a Tournament of walt disney world/oldsmobile classic? ### Query: SELECT winning_score FROM table_name_67 WHERE...
### Context: CREATE TABLE Claims ( Claim_ID INTEGER, Policy_ID INTEGER, Date_Claim_Made DATE, Date_Claim_Settled DATE, Amount_Claimed INTEGER, Amount_Settled INTEGER ) CREATE TABLE Customer_Policies ( Policy_ID INTEGER, Customer_ID INTEGER, Policy_Type_Code CHAR(15), Start_Date ...
### Context: CREATE TABLE table_73423 ( "Year" real, "Date" text, "Driver" text, "Team" text, "Manufacturer" text, "Laps" text, "Miles (km)" text, "Race Time" text, "Average Speed (mph)" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables ...
### Context: CREATE TABLE table_66012 ( "Ship" text, "Year" real, "Dates" text, "Line" text, "From" text, "Distance" text, "Days, hours, minutes" text, "Speed" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Days, hours, minut...