text
stringlengths
197
8.39k
### Context: CREATE TABLE table_32125 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-25" real, "Events" real, "Cuts made" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the smallest number of wins for the Totals Tournament with a T...
### Context: CREATE TABLE table_29565541_2 ( pa VARCHAR, w VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When 6 is the w what is the pa? ### Query: SELECT pa FROM table_29565541_2 WHERE w = 6
### Context: CREATE TABLE table_35152 ( "Season" text, "Record" text, "Pct." real, "Games" real, "Attendance" real, "Average" real, "Sellouts" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many attendance numbers had more than 15 games,...
### Context: CREATE TABLE table_name_10 ( saves INTEGER, save__percentage VARCHAR, goals_against VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many saves did the player with a 92.3% save rate and 217 goals have? ### Query: SELECT SUM(saves) FROM ta...
### Context: CREATE TABLE table_27637 ( "Series #" real, "Title" text, "Director" text, "Writer" text, "Air Date" text, "Production Code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the production code of the episode written by Brend...
### Context: CREATE TABLE table_name_44 ( record VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the record after the January 6 game? ### Query: SELECT record FROM table_name_44 WHERE date = "january 6"
### Context: CREATE TABLE table_19317584_2 ( city_and_venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who came in 3rd place in Kr ko , Slovenia Matije Gubca Stadium ### Query: SELECT 3 AS rd_placed FROM table_19317584_2 WHERE city_and_venue = "Krško , Slov...
### Context: CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offeri...
### Context: CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_dose text ) CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age tex...
### Context: CREATE TABLE table_name_79 ( captain VARCHAR, shirt_sponsor VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- One2one is the shirt sponsor for the captain of what team? ### Query: SELECT captain FROM table_name_79 WHERE shirt_sponsor = "one2one"
### Context: CREATE TABLE table_name_72 ( race_title VARCHAR, circuit VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the title of the race at Oran Park Raceway? ### Query: SELECT race_title FROM table_name_72 WHERE circuit = "oran park raceway"
### Context: CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, cost number ) CREATE TAB...
### Context: CREATE TABLE table_2093 ( "Season" text, "Final Venue" text, "Champion" text, "Result" text, "Finalist" text, "MVP" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the finalist in the season 2007-08? ### Query: SELECT "Final...
### Context: CREATE TABLE table_204_379 ( id number, "year" text, "title" text, "hangul" text, "network" text, "further info" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the show previous to music bank in 2009 ### Query: SELECT "tit...
### Context: CREATE TABLE gsi ( course_offering_id int, student_id int ) 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 )...
### Context: CREATE TABLE Accounts ( account_id INTEGER, customer_id INTEGER, account_name VARCHAR(50), other_account_details VARCHAR(255) ) CREATE TABLE Financial_Transactions ( transaction_id INTEGER, previous_transaction_id INTEGER, account_id INTEGER, card_id INTEGER, transactio...
### Context: CREATE TABLE table_203_52 ( id number, "pos" text, "no" number, "driver" text, "constructor" text, "laps" number, "time/retired" text, "grid" number, "points" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who earned t...
### 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 ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnsw...
### Context: CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text,...
### Context: CREATE TABLE table_name_14 ( year_built__converted VARCHAR, _ VARCHAR, no_built__converted VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the year built for number built of 10 ### Query: SELECT year_built__converted * _ FROM table_n...
### Context: CREATE TABLE table_name_36 ( height VARCHAR, players VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How tall is Ye Fei? ### Query: SELECT height FROM table_name_36 WHERE players = "ye fei"
### Context: CREATE TABLE table_name_91 ( surface VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the surface for the May 10, 2009 tournament? ### Query: SELECT surface FROM table_name_91 WHERE date = "may 10, 2009"
### 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_name_31 ( wins INTEGER, byes INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average of wins when the byes are less than 0? ### Query: SELECT AVG(wins) FROM table_name_31 WHERE byes < 0
### 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 CloseReasonTypes ( Id number, Name text, ...
### Context: CREATE TABLE table_name_91 ( score VARCHAR, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score when york city was the home team? ### Query: SELECT score FROM table_name_91 WHERE home_team = "york city"
### Context: CREATE TABLE table_203_729 ( id number, "township" text, "fips" number, "population\ncenter" text, "population" number, "population\ndensity\n/km2 (/sq mi)" text, "land area\nkm2 (sq mi)" text, "water area\nkm2 (sq mi)" text, "water %" text, "geographic coordinates" ...
### Context: CREATE TABLE t_kc22 ( MED_EXP_DET_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, MED_EXP_BILL_ID text, SOC_SRT_DIRE_CD text, SOC_SRT_DIRE_NM text, DIRE_TYPE number, CHA_ITEM_LEV number, MED_INV_ITEM_TYPE text, MED_DIRE_CD text, MED_...
### Context: CREATE TABLE table_2921 ( "Song 1 title" text, "Artist 1" text, "Song 2 title" text, "Artist 2" text, "Mix artist" text, "Guitar part?" text, "Mix pack" text, "Release date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- If ...
### Context: CREATE TABLE table_68998 ( "Name" text, "Years" text, "Gender" text, "Area" text, "Authority" text, "Decile" real, "Roll" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the highest roll for coed and authority of state integ...
### Context: CREATE TABLE table_56838 ( "CERCLIS ID" text, "Name" text, "County" text, "Proposed" text, "Listed" text, "Construction completed" text, "Partially deleted" text, "Deleted" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What...
### Context: CREATE TABLE table_name_7 ( college_junior_club_team__league_ VARCHAR, player VARCHAR, round VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the college/junior/club team (league) of lw position player mark miller...
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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, ...
### Context: CREATE TABLE table_6865 ( "Number on map" real, "Name" text, "Colour" text, "Construction commenced" real, "Population" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest population for the neighborhood with the color blu...
### 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_44574 ( "Skip" text, "Third" text, "Second" text, "Lead" text, "City" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- WHAT IS THE LEAD WITH THIRD AS TARA GEORGE? ### Query: SELECT "Lead" FROM table_44574 WHERE "Third"...
### Context: CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE program_requirement ( program_id in...
### Context: CREATE TABLE table_2293402_2 ( location VARCHAR, founded VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the location that was founded 1798 ### Query: SELECT location FROM table_2293402_2 WHERE founded = 1798
### 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 vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration number, systemicsystolic number, systemicdiastolic number, systemicmean number, observationtime time ) CREATE TABLE cost ( ...
### Context: CREATE TABLE table_204_392 ( id number, "#" number, "stadium" text, "capacity" number, "city" text, "country" text, "domed or retractable roof" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which stadium has the highest capacit...
### Context: CREATE TABLE table_67908 ( "Tournament" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 2013 value with a qf in 2011? ###...
### Context: CREATE TABLE driver ( Driver_ID int, Name text, Party text, Home_city text, Age int ) CREATE TABLE school ( School_ID int, Grade text, School text, Location text, Type text ) CREATE TABLE school_bus ( School_ID int, Driver_ID int, Years_Working int, ...
### Context: CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE...
### Context: CREATE TABLE table_name_35 ( awards VARCHAR, year VARCHAR, competition VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What award was in the year after 2009 with a competition of Digi Wwwow Awards? ### Query: SELECT awards FROM table_name_35...
### Context: CREATE TABLE table_27110 ( "Name" text, "Nationality" text, "Position" text, "Appearances" real, "Starts" real, "Minutes" real, "Goals" real, "Assists" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the lowest goals...
### Context: CREATE TABLE table_203_42 ( id number, "model" text, "class" text, "length" text, "fuel" text, "starting price" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- does the tour take diesel or gas ? ### Query: SELECT "fuel" FROM table_2...
### 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_204_158 ( id number, "official name" text, "designation" text, "area km2" number, "population" number, "parish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which city has the largest population ? ### Query: SE...
### Context: CREATE TABLE table_name_87 ( _number_100 INTEGER, season VARCHAR, against VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which # 100 has a Season of 1991, and an Against of surrey? ### Query: SELECT MAX(_number_100) FROM table_name_87 WHERE...
### Context: CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE cost ( co...
### Context: CREATE TABLE table_18274425_1 ( directed_by VARCHAR, written_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who were the director/s of episodes written by Mike Daniels? ### Query: SELECT directed_by FROM table_18274425_1 WHERE written_by = "...
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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, JSBBRQ...
### Context: CREATE TABLE table_name_62 ( losing_bonus VARCHAR, points_against VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Losing bonus has a Points against of 588? ### Query: SELECT losing_bonus FROM table_name_62 WHERE points_against = "588"
### Context: CREATE TABLE table_29848 ( "Game" real, "Date" text, "Team" 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 abov...
### Context: CREATE TABLE PROFESSOR ( EMP_NUM int, DEPT_CODE varchar(10), PROF_OFFICE varchar(50), PROF_EXTENSION varchar(4), PROF_HIGH_DEGREE varchar(5) ) CREATE TABLE COURSE ( CRS_CODE varchar(10), DEPT_CODE varchar(10), CRS_DESCRIPTION varchar(35), CRS_CREDIT float(8) ) CREATE T...
### Context: CREATE TABLE table_19072602_2 ( match_no VARCHAR, team_europe VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many match numbers have team europe listed as osku palermaa? ### Query: SELECT COUNT(match_no) FROM table_19072602_2 WHERE team_eur...
### Context: CREATE TABLE party ( party_id number, minister text, took_office text, left_office text, region_id number, party_name text ) CREATE TABLE region ( region_id number, region_name text, date text, label text, format text, catalogue text ) CREATE TABLE member (...
### 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 labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum numb...
### Context: CREATE TABLE table_22834834_12 ( year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the latest year that data is available for? ### Query: SELECT MAX(year) FROM table_22834834_12
### Context: CREATE TABLE table_16976547_2 ( finish VARCHAR, eliminated VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the finish for patani ### Query: SELECT finish FROM table_16976547_2 WHERE eliminated = "Patani"
### 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_71883 ( "Date" text, "Visiting team" text, "Final score" text, "Host team" text, "Stadium" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Stadium held on november 29? ### Query: SELECT "Stadium" FROM tabl...
### 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 allergy ...
### Context: CREATE TABLE table_27723228_11 ( location_attendance VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the location and attendance of the game against Dallas? ### Query: SELECT location_attendance FROM table_27723228_11 WHER...
### Context: CREATE TABLE table_157826_1 ( county VARCHAR, city_town VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In which county is the city/town of Halden located? ### Query: SELECT county FROM table_157826_1 WHERE city_town = "Halden"
### Context: CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE...
### Context: CREATE TABLE 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_train_197 ( "id" int, "dyscrasia" bool, "gender" string, "bleeding" int, "hemoglobin_a1c_hba1c" float, "diabetic" string, "body_mass_index_bmi" float, "age" float, "NOUSE" float ) -- Using valid SQLite, answer the following questions for the tables p...
### 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 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_name_65 ( date_sent VARCHAR, constellation VARCHAR, designation_hd VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What date sent has cygnus as a constellation, and hd 190360 as a designation HD? ### Query: SELECT date_sen...
### Context: CREATE TABLE table_204_79 ( id number, "season" text, "tier" number, "division" text, "place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the difference in placing between the 1988/89 season and the last season before it ? ...
### Context: CREATE TABLE table_26957063_3 ( common_name VARCHAR, length__aa_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the common name of the animal whose length (AA) is 1323? ### Query: SELECT common_name FROM table_26957063_3 WHERE length__a...
### Context: CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDa...
### Context: CREATE TABLE Engineer_Skills ( engineer_id INTEGER, skill_id INTEGER ) CREATE TABLE Fault_Log_Parts ( fault_log_entry_id INTEGER, part_fault_id INTEGER, fault_status VARCHAR(10) ) CREATE TABLE Asset_Parts ( asset_id INTEGER, part_id INTEGER ) CREATE TABLE Maintenance_Engineer...
### 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_71866 ( "Team" text, "1st Match" text, "Matches" text, "Lost" text, "% Won" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the lost for matches of 1 928 ### Query: SELECT "Lost" FROM table_71866 WHERE "Matches" ...
### Context: CREATE TABLE table_name_20 ( nationality VARCHAR, college_junior_club_team__league_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the nationality of the player from the Ohio State University (NCAA) Team? ### Query: SELECT nationality F...
### Context: CREATE TABLE table_63121 ( "Rank" real, "Heat" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What lane did the barbados swimmer compete in before heat 3? ### Query: SELECT...
### Context: CREATE TABLE table_38116 ( "Outcome" text, "Date" text, "Surface" text, "Partner" text, "Opponent in the Final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Partner on June 17, 2012? ### Query: SELECT "...
### Context: CREATE TABLE table_203_551 ( id number, "goal" number, "date" text, "venue" text, "opponent" text, "score" text, "result" text, "competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in what year did d m szalai make hi...
### Context: CREATE TABLE table_name_41 ( scorers VARCHAR, venue VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Scorers have a Venue of A, and an Opponent of arsenal? ### Query: SELECT scorers FROM table_name_41 WHERE venue = "a"...
### Context: CREATE TABLE table_22385461_8 ( end__utc_ VARCHAR, duration VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the end (UTC) if the duration is 6 hours, 55 minutes? ### Query: SELECT end__utc_ FROM table_22385461_8 WHERE duration = "6 hours...
### Context: CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDura...
### Context: CREATE TABLE table_20453681_1 ( county VARCHAR, mccain_percentage VARCHAR, obama_percentage VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the county where McCain got 60.6% and Obama got 37.3%? ### Query: SELECT county FROM table_204...
### Context: CREATE TABLE table_74844 ( "Date" text, "Venue" text, "Score" text, "Result" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which result's venue was in Rotterdam, Netherlands? ### Query: SELECT "Result" FROM table_7...
### Context: CREATE TABLE table_54809 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the leading scorer in the game where th...
### Context: CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_t...
### Context: CREATE TABLE customers ( customer_id number, coupon_id number, good_or_bad_customer text, first_name text, last_name text, gender_mf text, date_became_customer time, date_last_hire time ) CREATE TABLE payments ( payment_id number, booking_id number, customer_id ...
### Context: CREATE TABLE table_17304308_1 ( fin_pos VARCHAR, points VARCHAR, time_retired VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number of fin pos for 12 points of accident ### Query: SELECT COUNT(fin_pos) FROM table_17304308_1 W...
### 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 intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutputtime time ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, cul...
### Context: CREATE TABLE table_13619135_8 ( game INTEGER, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What number game of the season was played on April 12? ### Query: SELECT MAX(game) FROM table_13619135_8 WHERE date = "April 12"
### 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 employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varc...
### Context: CREATE TABLE table_39774 ( "Date" text, "Cover model" text, "Centerfold model" text, "20 Questions" text, "Pictorials" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which over model has a 20 Questions of edward burns? ### Query: SELEC...
### Context: CREATE TABLE table_name_67 ( capacity__thousands_of_metric_tons_ VARCHAR, county VARCHAR, mine VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the capacity of the Pinto Valley mine in Gila county? ### Query: SELECT capacity__thousand...
### Context: CREATE TABLE table_name_90 ( laws_against_homosexuality VARCHAR, penalty VARCHAR, country VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What law has a penalty of in Iraq? ### Query: SELECT laws_against_homosexuality FROM table_name_90 WHER...
### Context: CREATE TABLE table_26561506_1 ( written_by VARCHAR, no VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who wrote episode number 28? ### Query: SELECT written_by FROM table_26561506_1 WHERE no = 28