text
stringlengths
197
8.39k
### Context: CREATE TABLE table_name_56 ( circuit VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Circuit is on July 24? ### Query: SELECT circuit FROM table_name_56 WHERE date = "july 24"
### Context: CREATE TABLE table_78525 ( "Superlative" text, "Actor" text, "Record Set" text, "Year" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was the the youngest nominee a winner? ### Query: SELECT "Year" FROM table_78...
### Context: CREATE TABLE Participants ( Participant_ID VARCHAR, Participant_Type_Code VARCHAR, Participant_Details VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are all the the participant ids, type code and details? ### Query: SELECT Participant...
### Context: CREATE TABLE table_name_92 ( award_category VARCHAR, nominated_won VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what category was an award won in 2007? ### Query: SELECT award_category FROM table_name_92 WHERE nominated_w...
### Context: CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses ( 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_name_48 ( november VARCHAR, february VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is in November where February is willy rey? ### Query: SELECT november FROM table_name_48 WHERE february = "willy rey"
### Context: CREATE TABLE table_62712 ( "Year" real, "Class" text, "Team" text, "Machine" text, "Points" real, "Rank" text, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many wins for the year that is later than 1987 and has poin...
### Context: CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) ...
### Context: CREATE TABLE table_name_68 ( total INTEGER, silver VARCHAR, nation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many medals for spain with 1 silver? ### Query: SELECT SUM(total) FROM table_name_68 WHERE silver = "1" AND nation = "spai...
### Context: CREATE TABLE t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_ID number ) 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, I...
### Context: CREATE TABLE table_21969 ( "Parish (Prestegjeld)" text, "Sub-Parish (Sokn)" text, "Church Name" text, "Year Built" real, "Location of the Church" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the parish for 1908 ### Query: SELECT...
### Context: CREATE TABLE table_name_99 ( against INTEGER, byes INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which against has the lowest when byes are larger than 0? ### Query: SELECT MIN(against) FROM table_name_99 WHERE byes > 0
### Context: CREATE TABLE table_name_42 ( record VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the Record that has the Date of december 15? ### Query: SELECT record FROM table_name_42 WHERE date = "december 15"
### Context: CREATE TABLE table_name_39 ( sub_parish__sokn_ VARCHAR, location_of_the_church VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Sub-Parish called that has a church located in Fresvik? ### Query: SELECT sub_parish__sokn_ FROM table_nam...
### 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_33 ( rank INTEGER, total VARCHAR, bronze VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Rank has a Total of 1 and a Bronze larger than 0? ### Query: SELECT MAX(rank) FROM table_name_33 WHERE total = 1 AND bronz...
### Context: CREATE TABLE table_11602885_1 ( date VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the game in Mexico played? ### Query: SELECT date FROM table_11602885_1 WHERE location = "Mexico"
### Context: CREATE TABLE table_name_23 ( home_team VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the home side's score at western oval? ### Query: SELECT home_team AS score FROM table_name_23 WHERE venue = "western oval"
### 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 PostFeedback ( Id number, PostId number, ...
### Context: CREATE TABLE table_69156 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text, "Losing bonus" text, "Points" text ) -- Using valid SQLite, answer the followin...
### Context: CREATE TABLE d_labitems ( row_id number, itemid number, label text ) 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, ...
### Context: CREATE TABLE table_32053 ( "Title" text, "Year" real, "ISBN" text, "Volume" text, "Strips" text, "Pages" real, "Colors" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the average pages for ISBN of 978-0-9766580-5-4 ### Q...
### Context: CREATE TABLE table_65911 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number of gold medals won by a team that won fewer than 2 s...
### Context: CREATE TABLE table_15890 ( "Player" text, "Years Played" text, "Total W-L" text, "Singles W-L" text, "Doubles W-L" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the doubles w-l for player seol jae-min (none) ### Query: SELECT "...
### Context: CREATE TABLE table_name_89 ( record VARCHAR, february VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record after the game on Feb 10? ### Query: SELECT record FROM table_name_89 WHERE february = 10
### Context: CREATE TABLE table_203_485 ( id number, "year" text, "show" text, "role" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which was the only television show gauri starred in , in which she played herself ? ### Query: SELECT...
### Context: CREATE TABLE PendingFlags ( Id number, FlagTypeId number, PostId number, CreationDate time, CloseReasonTypeId number, CloseAsOffTopicReasonTypeId number, DuplicateOfQuestionId number, BelongsOnBaseHostAddress text ) CREATE TABLE CloseReasonTypes ( Id number, Name te...
### 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 ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE Posts ( Id number, PostTypeId number, A...
### 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 treatmen...
### Context: CREATE TABLE table_name_26 ( city VARCHAR, year_joined VARCHAR, conference_joined VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What city joined the Independents conference after 1963? ### Query: SELECT city FROM table_name_26 WHERE year_j...
### Context: CREATE TABLE table_name_30 ( english_name VARCHAR, year_signed VARCHAR, chinese_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the English name for the Chinese name of later than 1974? ### Query: SELECT english_name FROM table_...
### Context: CREATE TABLE table_name_4 ( laps INTEGER, grid VARCHAR, manufacturer VARCHAR, time_retired VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest laps that has a manufacturer of yamaha, and a time/retired of +1:08.312, and a g...
### 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_47 ( length___ft__ VARCHAR, length___m__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the length in feet when the length in meters is 64.2? ### Query: SELECT length___ft__ FROM table_name_47 WHERE length___m__ ...
### Context: CREATE TABLE table_name_33 ( d_41 VARCHAR, r_51 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the D 41 and R 51 of r 11 ### Query: SELECT d_41 FROM table_name_33 WHERE r_51 = "r 11"
### Context: CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, Unsure_rate real ) CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height real, ...
### Context: CREATE TABLE table_44057 ( "Year" real, "$10 \u2013 1/10 oz." text, "$25 \u2013 1/4 oz." real, "$50 \u2013 1/2 oz." real, "$100 \u2013 1 oz." text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE LOWEST $50-1/2 OZ COIN WITH A 1997 ...
### Context: CREATE TABLE table_7286 ( "Position" text, "2014" text, "2013" text, "2012" text, "2011" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who held the same position in 2014 that Danielle Button held in 2013? ### Query: SELECT "2014" FROM...
### Context: CREATE TABLE table_56027 ( "Rd #" real, "Pick #" real, "Player" text, "Team (League)" text, "Reg GP" real, "Pl GP" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the average Rd number for dane jackson with a pick number over ...
### Context: CREATE TABLE PersonFriend ( friend VARCHAR, name VARCHAR ) CREATE TABLE Person ( name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who are the friends of Bob? ### Query: SELECT T2.friend FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.na...
### Context: CREATE TABLE table_name_34 ( constructor VARCHAR, race VARCHAR, winning_driver VARCHAR, pole_position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the constructor for winning driver of jim clark, pole position of graham hill and...
### Context: CREATE TABLE table_11601 ( "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 the away team's score when ...
### Context: CREATE TABLE table_name_45 ( general_classification VARCHAR, mountains_classification VARCHAR, points_classification VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What general classification has david de la fuente as mountains classificatio...
### Context: CREATE TABLE table_4025 ( "Representative" text, "Party" text, "Years" text, "Congress" text, "District Home" text, "Occupation" text, "Electoral history" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What frame of time is list...
### Context: CREATE TABLE table_name_63 ( team VARCHAR, laps VARCHAR, grid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What team has more than 49 laps and a grid of 8? ### Query: SELECT team FROM table_name_63 WHERE laps > 49 AND grid = 8
### Context: CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) CREATE TABLE Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Return a bar c...
### Context: CREATE TABLE table_name_81 ( year VARCHAR, pigs INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years had fewer than 2089.2 pigs? ### Query: SELECT COUNT(year) FROM table_name_81 WHERE pigs < 2089.2
### 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 actor ( Actor_ID int, Name text, Musical_ID int, Character text, Duration text, age int ) CREATE TABLE musical ( Musical_ID int, Name text, Year int, Award text, Category text, Nominee text, Result text ) -- Using valid SQLite, answer the ...
### Context: CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE PostsWithDeleted ( Id number, PostTyp...
### Context: CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age numb...
### Context: CREATE TABLE invoices ( customer_id VARCHAR ) CREATE TABLE customers ( first_name VARCHAR, last_name VARCHAR, id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find out the top 10 customers by total number of orders. List customers' fir...
### Context: CREATE TABLE table_name_80 ( score_points VARCHAR, rank_points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Score points has a Rank points of defending champion? ### Query: SELECT score_points FROM table_name_80 WHERE rank_points = "defe...
### Context: CREATE TABLE table_51587 ( "Condition" text, "Prothrombin time" text, "Partial thromboplastin time" text, "Bleeding time" text, "Platelet count" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want to know the condition with Prothrombi...
### Context: CREATE TABLE table_14609295_4 ( season VARCHAR, overall VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What season was the overall record 29-7? ### Query: SELECT season FROM table_14609295_4 WHERE overall = "29-7"
### 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 table_203_287 ( id number, "rank" number, "area" text, "date" text, "presenter" text, "seven wonders covered" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name of the first presenter on this chart ? ### Q...
### Context: CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE ReviewTaskTypes ( Id number, Name text, Description text ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE PostLinks ( Id number, CreationDate ...
### Context: CREATE TABLE table_18003 ( "Year" real, "Dates" text, "Champion" text, "Score" real, "To par" text, "Margin of victory" text, "Purse ( $ )" real, "Winners share ($)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the...
### 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 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 course ( course_id int, name varchar, department varchar, number varchar, credits varchar, advisory_requirement varchar, enforced_requirement varchar, description varchar, num_semesters int, num_enrolled int, has_discussion varchar, has_lab varch...
### Context: CREATE TABLE table_73608 ( "County" text, "Kerry%" text, "Kerry#" real, "Bush%" text, "Bush#" real, "Others%" text, "Others#" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different counts of the votes for Bush are the...
### Context: CREATE TABLE customers ( customer_details VARCHAR, customer_id VARCHAR ) CREATE TABLE policies ( customer_id VARCHAR, policy_type_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the names of customers who either have an deputy ...
### Context: CREATE TABLE table_6814 ( "Position" real, "Club" text, "Games played" real, "Wins" real, "Draws" real, "Loses" real, "Goals scored" real, "Goals conceded" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wh...
### Context: CREATE TABLE table_24129 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Black Knights points" real, "Opponents" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the date for 6-2 record ### Query:...
### Context: CREATE TABLE table_name_19 ( sub_parish__sokn_ VARCHAR, year_built VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Sub-Parish has a church built in 1866? ### Query: SELECT sub_parish__sokn_ FROM table_name_19 WHERE year_built = "1866"
### 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_55927 ( "Position" real, "Club" text, "Played" real, "Points" text, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real ) -- Using valid SQLite, answer the following questions for the tables pr...
### Context: CREATE TABLE table_6386 ( "Rank" real, "Name" text, "Attempts" real, "Net Yds" real, "Yds/Att" real, "Touchdowns" real, "Long" real, "Start" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many attempts did the player ran...
### Context: CREATE TABLE captain ( Captain_ID int, Name text, Ship_ID int, age text, Class text, Rank text ) CREATE TABLE Ship ( Ship_ID int, Name text, Type text, Built_Year real, Class text, Flag text ) -- Using valid SQLite, answer the following questions for the t...
### Context: CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, Revie...
### Context: CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, RevisionGUID other ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTyp...
### Context: CREATE TABLE table_name_24 ( notes VARCHAR, time___sec__ VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Notes have a Time larger than 23.34, and a Rank of 8? ### Query: SELECT notes FROM table_name_24 WHERE time___sec__ ...
### Context: CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid n...
### Context: 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 d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE admi...
### Context: CREATE TABLE t_kc21_t_kc24 ( MED_CLINIC_ID text, MED_SAFE_PAY_ID number ) 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, ...
### Context: CREATE TABLE table_name_62 ( number VARCHAR, school_club_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many total players came from the school/club team of De La Salle? ### Query: SELECT COUNT(number) FROM table_name_62 WHERE school_c...
### Context: CREATE TABLE table_204_95 ( id number, "name" text, "title" text, "first year\nin this position" number, "years at nebraska" text, "alma mater" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which coach started in the same year as c...
### Context: CREATE TABLE table_13564637_5 ( points_for VARCHAR, club VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were all the points for Tonyrefail RFC? ### Query: SELECT points_for FROM table_13564637_5 WHERE club = "Tonyrefail RFC"
### Context: CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE d_items ( row_i...
### Context: CREATE TABLE table_name_64 ( date VARCHAR, opponents VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the date for zi yan jie zheng opponent ### Query: SELECT date FROM table_name_64 WHERE opponents = "zi yan jie zheng"
### Context: CREATE TABLE Apartment_Facilities ( apt_id INTEGER, facility_code CHAR(15) ) CREATE TABLE Apartment_Bookings ( apt_booking_id INTEGER, apt_id INTEGER, guest_id INTEGER, booking_status_code CHAR(15), booking_start_date DATETIME, booking_end_date DATETIME ) CREATE TABLE View...
### Context: CREATE TABLE media_types ( id VARCHAR, name VARCHAR ) CREATE TABLE tracks ( name VARCHAR, genre_id VARCHAR, media_type_id VARCHAR ) CREATE TABLE genres ( id VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List ...
### Context: CREATE TABLE table_name_4 ( years_as_tallest VARCHAR, floors INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the years as tallest when floors are larger than 18 ### Query: SELECT years_as_tallest FROM table_name_4 WHERE floors > 18
### Context: CREATE TABLE table_name_18 ( grid INTEGER, driver VARCHAR, laps VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the low grid for gerhard berger for laps over 56? ### Query: SELECT MIN(grid) FROM table_name_18 WHERE driver = "gerhard ...
### Context: CREATE TABLE table_73390 ( "District" text, "Vacator" text, "Reason for change" text, "Successor" text, "Date successor seated" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the successor for the Kentucky 2nd district? ### Que...
### Context: CREATE TABLE jyjgzbb ( BGDH text, BGRQ time, CKZFWDX text, CKZFWSX number, CKZFWXX number, JCFF text, JCRGH text, JCRXM text, JCXMMC text, JCZBDM text, JCZBJGDL number, JCZBJGDW text, JCZBJGDX text, JCZBMC text, JLDW text, JYRQ time, JYZBL...
### Context: CREATE TABLE table_27923 ( "meas. num" real, "passed" text, "YES votes" real, "NO votes" real, "% YES" text, "Const. Amd.?" text, "type" text, "description" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result ...
### Context: CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE patients ( row_id number, subject_id number, gender ...
### Context: CREATE TABLE table_169766_13 ( new_returning_same_network VARCHAR, previous_network VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the NBC network, what was the new/returning/same network status? ### Query: SELECT new_returning_same_network...
### Context: CREATE TABLE employee ( eid number, name text, salary number ) CREATE TABLE certificate ( eid number, aid number ) CREATE TABLE aircraft ( aid number, name text, distance number ) CREATE TABLE flight ( flno number, origin text, destination text, distance n...
### Context: CREATE TABLE hz_info_mzjzjlb ( JZLSH number, YLJGDM number, mzjzjlb_id number ) CREATE TABLE jyjgzbb ( BGDH text, BGRQ time, CKZFWDX text, CKZFWSX number, CKZFWXX number, JCFF text, JCRGH text, JCRXM text, JCXMMC text, JCZBDM text, JCZBJGDL number, ...
### Context: CREATE TABLE table_62675 ( "Position" real, "Team" text, "Played" real, "Drawn" real, "Lost" real, "Goals For" real, "Goals Against" real, "Goal Difference" text, "Points 1" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
### Context: CREATE TABLE table_12040 ( "Rank" real, "Player" text, "Country" text, "Earnings ( $ )" real, "Events" real, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest rank of the player who played 30 events and made ...
### Context: CREATE TABLE table_30737 ( "Region name" text, "State name" text, "Region #" real, "Page count" real, "Regional Page #" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which region has a regional page # of 1-3, 5-7, 9-11, 13-15? ### Que...
### 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 zyjzjlb ( YLJGDM text, JZLSH text, MZJZLSH text, KH text, KLX number, HZXM text, WDBZ number, RYDJSJ time, RYTJDM number, RYTJMC text, JZKSDM text, JZKSMC text, RZBQDM text, RZBQMC text, RYCWH text, CYKSDM text, CYKSMC text, ...
### 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 View_Unit_Status ( ...