text
stringlengths
197
8.39k
### Context: CREATE TABLE table_54008 ( "Year" text, "TCKL" real, "SACK" real, "P/KO RET" real, "YARDS" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total of TCKL in 2000 with a P/KO RET less than 14? ### Query: SELECT COUNT("TCKL") F...
### Context: CREATE TABLE has_allergy ( stuid number, allergy text ) CREATE TABLE allergy_type ( allergy text, allergytype text ) CREATE TABLE student ( stuid number, lname text, fname text, age number, sex text, major number, advisor number, city_code text ) -- Using...
### 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 comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat...
### Context: CREATE TABLE table_name_85 ( points INTEGER, points_against VARCHAR, losses VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average Points when the Points Against is 594, and Losses is more than 3? ### Query: SELECT AVG(points) F...
### 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 diagnoses ( 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_d...
### Context: CREATE TABLE table_name_32 ( date VARCHAR, competition VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- On what date was a friendly match held at Auckland? ### Query: SELECT date FROM table_name_32 WHERE competition = "friendly...
### Context: CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gender text, age text, ethnicity text, h...
### 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 departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) ...
### Context: CREATE TABLE table_76665 ( "Round #" real, "Pick" real, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which pick came from Texas El-Paso? ### Query: SELECT SUM("Pick") FROM table_76665 WHERE "...
### Context: CREATE TABLE table_13565 ( "Year" real, "Stage" real, "Start of stage" text, "Distance (km)" text, "Category of climb" text, "Stage winner" text, "Yellow jersey" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the distanc...
### 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 PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TA...
### 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 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_48 ( model_number VARCHAR, socket VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What model number uses standard voltage socket? ### Query: SELECT model_number FROM table_name_48 WHERE socket = "standard voltage"
### Context: CREATE TABLE event ( ID int, Name text, Stadium_ID int, Year text ) CREATE TABLE stadium ( ID int, name text, Capacity int, City text, Country text, Opening_year int ) CREATE TABLE record ( ID int, Result text, Swimmer_ID int, Event_ID int ) CREATE...
### Context: CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_labitems ...
### Context: CREATE TABLE player_award ( player_id text, award_id text, year number, league_id text, tie text, notes text ) CREATE TABLE player ( player_id text, birth_year text, birth_month text, birth_day text, birth_country text, birth_state text, birth_city text,...
### Context: CREATE TABLE table_18847456_2 ( opponents INTEGER, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points did the opposing team score on Dec. 19, 1982? ### Query: SELECT MAX(opponents) FROM table_18847456_2 WHERE date = "Dec. 19"
### Context: CREATE TABLE table_name_14 ( company VARCHAR, director VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What company does Simon Stone direct earlier than 2011? ### Query: SELECT company FROM table_name_14 WHERE director = "simon...
### 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 prescriptions ( subject_id text...
### Context: CREATE TABLE Customer_Orders ( order_id INTEGER, customer_id INTEGER, order_status_code VARCHAR(10), order_date DATETIME ) CREATE TABLE Supplier_Addresses ( supplier_id INTEGER, address_id INTEGER, date_from DATETIME, date_to DATETIME ) CREATE TABLE Products ( product_...
### Context: CREATE TABLE table_name_73 ( distance VARCHAR, time VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Distance has a Time of 2:20.00? ### Query: SELECT distance FROM table_name_73 WHERE time = "2:20.00"
### Context: CREATE TABLE table_train_279 ( "id" int, "systolic_blood_pressure_sbp" int, "hemoglobin_a1c_hba1c" float, "estimated_glomerular_filtration_rate_egfr" int, "fasting_plasma_glucose" int, "diastolic_blood_pressure_dbp" int, "body_mass_index_bmi" float, "NOUSE" float ) -- Usin...
### 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_17989 ( "No." real, "Air Date" text, "Rating" text, "Share" real, "18-49 (Rating/Share)" text, "Viewers (m)" text, "Night" real, "Timeslot" real, "Overall" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -...
### 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_12039 ( "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. -- Who did Hawthorn play against at th...
### 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_243664_1 ( game_cost VARCHAR, real_life_eventual_outcome VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the game cost for merged with new york central to form penn central ### Query: SELECT game_cost FROM table_243664_1 ...
### Context: CREATE TABLE table_name_64 ( year VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Year has a Rank of 25? ### Query: SELECT year FROM table_name_64 WHERE rank = "25"
### Context: CREATE TABLE driver ( home_city VARCHAR, age INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show home city where at least two drivers older than 40 are from. ### Query: SELECT home_city FROM driver WHERE age > 40 GROUP BY home_city HAVING COUNT...
### Context: CREATE TABLE home_game ( year INTEGER, league_id TEXT, team_id TEXT, park_id TEXT, span_first TEXT, span_last TEXT, games INTEGER, openings INTEGER, attendance INTEGER ) CREATE TABLE college ( college_id TEXT, name_full TEXT, city TEXT, state TEXT, c...
### Context: CREATE TABLE table_204_414 ( id number, "name" text, "armenian" text, "location" text, "# of prisoners designed for" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- besides vardashen , what other correctional facility...
### Context: CREATE TABLE table_204_842 ( id number, "institution" text, "city" text, "state" text, "team name" text, "affiliation" text, "enrollment" number, "home conference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which state h...
### 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_9987 ( "Team" text, "Region" text, "Coach" text, "Home ground" text, "Capacity" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the home ground in region NZL? ### Query: SELECT "Home ground" FROM table_9987 WH...
### 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 Services ( Service_ID INTEGER, Service_name VARCHAR(40) ) CREATE TABLE First_Notification_of_Loss ( FNOL_ID INTEGER, Customer_ID INTEGER, Policy_ID INTEGER, Service_ID INTEGER ) CREATE TABLE Settlements ( Settlement_ID INTEGER, Claim_ID INTEGER, Effective_...
### Context: CREATE TABLE table_50635 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What player has the score of 67-72=139? ### Query: SELECT "Player" FROM table_50635 WHERE "Sc...
### Context: CREATE TABLE Rating ( rID int, mID int, stars int, ratingDate date ) CREATE TABLE Movie ( mID int, title text, year int, director text ) CREATE TABLE Reviewer ( rID int, name text ) -- Using valid SQLite, answer the following questions for the tables provided abo...
### Context: CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propulsion varchar, wide_body varchar, wing_span int, length int, weight int, capacity int, pay_load int, cruising_speed in...
### Context: CREATE TABLE table_203_55 ( id number, "japanese title" text, "western title" text, "regions" text, "release" number, "platform(s)" text, "genre" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- when was the last super chinese gam...
### Context: CREATE TABLE table_52952 ( "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 the top crowd when colling...
### Context: CREATE TABLE table_45773 ( "Rank" text, "Figures" text, "Player" text, "Opponent" text, "Venue" text, "Season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Venue, when Figures is 5/29? ### Query: SELECT "Venue" FROM table...
### Context: CREATE TABLE assets ( asset_id number, maintenance_contract_id number, supplier_company_id number, asset_details text, asset_make text, asset_model text, asset_acquired_date time, asset_disposed_date time, other_asset_details text ) CREATE TABLE parts ( part_id numb...
### 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_22514845_4 ( reporters VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who are the reporters for the year of 1984? ### Query: SELECT reporters FROM table_22514845_4 WHERE year = 1984
### Context: CREATE TABLE table_name_47 ( name VARCHAR, losses VARCHAR, matches VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who has 5 losses and has played 11 matches? ### Query: SELECT name FROM table_name_47 WHERE losses = "5" AND matches = "11"
### 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 university ( school_id number, school text, location text, founded number, affiliation text, enrollment number, nickname text, primary_conference text ) CREATE TABLE basketball_match ( team_id number, school_id number, team_name text, acc_regula...
### Context: CREATE TABLE table_204_628 ( id number, "trial number" text, "date" text, "name of trial" text, "celebrity/ies taking part" text, "winner/number of stars" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- jan and scot...
### Context: CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gend...
### Context: CREATE TABLE table_204_506 ( id number, "seasons" number, "team" text, "ch.wins" number, "promotions" number, "relegations" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- other than scafati basket , who appeared in 9 seasons ? ##...
### Context: CREATE TABLE table_80181 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What finish qualified at 141.071? ### Query: SELECT "Finish" FROM table_80181 WHER...
### Context: CREATE TABLE table_name_68 ( constructor VARCHAR, grid VARCHAR, laps VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the constructor for grid less than 20 and Laps of 6 ### Query: SELECT constructor FROM table_name_68 WHERE grid < 20 ...
### Context: CREATE TABLE table_67405 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What chassis has more than 0 points? ### Query: SELECT "Chassis" FROM table_67405 WHERE "Poi...
### Context: CREATE TABLE table_27754 ( "Series" real, "Season" text, "Played in" text, "First Match" text, "Tests played (sched)" text, "Tests won by Australia" real, "Tests won by England" real, "Tests drawn" real, "Series result" text, "Holder at series end" text ) -- Using ...
### Context: CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE char...
### Context: CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TABLE diagnoses_icd (...
### Context: CREATE TABLE table_name_1 ( runners_up VARCHAR, result VARCHAR, champions VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Runners-up of the game with a Result of 4 1 and Champions of Wonju Dongbu Promy? ### Query: SELECT runners_...
### Context: CREATE TABLE diagnoses ( 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_d...
### Context: CREATE TABLE Acceptance ( Submission_ID int, Workshop_ID int, Result text ) CREATE TABLE workshop ( Workshop_ID int, Date text, Venue text, Name text ) CREATE TABLE submission ( Submission_ID int, Scores real, Author text, College text ) -- Using valid SQLite...
### Context: CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, ...
### 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_58753 ( "\"Long\" vowels" text, "17th c." text, "American" text, "British" text, "Australian" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the American pronunciation when the Australian is ? ### Query: SELEC...
### Context: CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid...
### Context: CREATE TABLE table_name_97 ( class VARCHAR, wheels VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the value for the item 'Class' when the value of the item 'Wheels' is 137? ### Query: SELECT class FROM table_name_97 WHERE wheels = 137
### Context: CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 ...
### Context: CREATE TABLE table_204_654 ( id number, "year" number, "song" text, "u.s." number, "u.s.\nr&b" number, "u.s.\nac" number, "uk" number, "album" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many songs from the album inte...
### Context: CREATE TABLE table_60904 ( "Name" text, "Mail transfer agent" text, "Mail storage type" text, "IMAP server" text, "IMAP shared" text, "Calendar format" text, "Calendar shared" text, "IM server" text, "WebDAV" text, "Web UI" text, "Contacts shared" text, "File...
### Context: CREATE TABLE table_204_959 ( id number, "club" text, "founded" number, "nickname" text, "location" text, "home ground" text, "entered competition" number, "most recent promotion" number ) -- Using valid SQLite, answer the following questions for the tables provided above. ...
### Context: CREATE TABLE table_59677 ( "Abbr" text, "Common English" text, "French" text, "Italian" text, "Romansh" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the italian word for Glarus? ### Query: SELECT "Italian" FROM table_59677 WH...
### Context: CREATE TABLE Reservations ( Code INTEGER, Room TEXT, CheckIn TEXT, CheckOut TEXT, Rate REAL, LastName TEXT, FirstName TEXT, Adults INTEGER, Kids INTEGER ) CREATE TABLE Rooms ( RoomId TEXT, roomName TEXT, beds INTEGER, bedType TEXT, maxOccupancy INTEG...
### 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 advisor ( s_ID varchar(5), i_ID varchar(5) ) CREATE TABLE student ( ID varchar(5), name varchar(20), dept_name varchar(20), tot_cred numeric(3,0) ) CREATE TABLE teaches ( ID varchar(5), course_id varchar(8), sec_id varchar(8), semester varchar(6), ...
### 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 Transactions ( transaction_id INTEGER, investor_id INTEGER, transaction_type_code VARCHAR(10), date_of_transaction DATETIME, amount_of_transaction DECIMAL(19,4), share_count VARCHAR(40), other_details VARCHAR(255) ) CREATE TABLE Investors ( investor_id INTEGER,...
### Context: CREATE TABLE table_name_34 ( year VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was the score 269? ### Query: SELECT COUNT(year) FROM table_name_34 WHERE score = 269
### Context: CREATE TABLE fare ( fare_id int, from_airport varchar, to_airport varchar, fare_basis_code text, fare_airline text, restriction_code text, one_direction_cost int, round_trip_cost int, round_trip_required varchar ) CREATE TABLE days ( days_code varchar, day_name ...
### Context: CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE ...
### Context: CREATE TABLE table_53326 ( "Unit" text, "Reactor Type" text, "Net Capacity" text, "Gross Capacity" text, "Construction Start" text, "Grid Connection" text, "Commercial Operation" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables pro...
### Context: CREATE TABLE table_21917 ( "Year" real, "Date" text, "Driver" text, "Manufacturer" text, "Laps" real, "Miles (km)" text, "Race Time" text, "Average Speed (mph)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was th...
### Context: CREATE TABLE director ( did int, gender text, name text, nationality text, birth_city text, birth_year int ) CREATE TABLE copyright ( id int, msid int, cid int ) CREATE TABLE genre ( gid int, genre text ) CREATE TABLE writer ( wid int, gender text, ...
### Context: CREATE TABLE table_28394 ( "Institution" text, "Location" text, "Nickname" text, "Founded" real, "Type" text, "Enrollment" real, "Joined MAC" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What institution(s) are located in wilk...
### 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 tweets ( uid VARCHAR ) CREATE TABLE user_profiles ( name VARCHAR, uid VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the name of the user who tweeted more than once, and number of tweets tweeted by them. ### Query: SELECT...
### Context: CREATE TABLE table_name_56 ( season VARCHAR, runner_up VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the season for runner up of judean rebels ### Query: SELECT season FROM table_name_56 WHERE runner_up = "judean rebels"
### Context: CREATE TABLE table_name_14 ( tournament VARCHAR, runner_s__up VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Howard Twitty was the runner-up of what tournament? ### Query: SELECT tournament FROM table_name_14 WHERE runner_s__up = "howard twitty...
### Context: CREATE TABLE table_298550_1 ( population__1_july_2005_est_ INTEGER, area__km²_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest value for population when area is 9104? ### Query: SELECT MAX(population__1_july_2005_est_) FROM t...
### Context: CREATE TABLE table_8970 ( "City" text, "Chinese" text, "Pinyin" text, "Province" text, "Urban Population (2010)" real, "Administrative Population (2010)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the urban population fo...
### Context: CREATE TABLE table_67449 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the smallest week that had a result of t 17 17? ### Query: SELECT MIN("Week") FROM ...
### 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 airline ( airline_code varchar, airline_name text, note text ) CREATE T...
### Context: CREATE TABLE table_name_28 ( revenue__ INTEGER, team VARCHAR, rank VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average revenue for Bayern Munich with a rank greater than 4? ### Query: SELECT AVG(revenue__) AS $m_ FROM table_n...
### 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_15606 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the qual for rank 18 in 1964? ### Query: SELECT "Qual" FROM table_15606 WH...
### Context: CREATE TABLE table_name_61 ( high_points VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had the highest points on March 27? ### Query: SELECT high_points FROM table_name_61 WHERE date = "march 27"
### Context: CREATE TABLE table_78115 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Rams points" real, "Opponents" real, "Record" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the attendance wh...