text
stringlengths
197
8.39k
### Context: CREATE TABLE table_38891 ( "Date" text, "City" text, "Opponent" text, "Results\u00b9" text, "Type of game" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What city held the game with a result of 1:0? ### Query: SELECT "City" FROM table...
### Context: CREATE TABLE table_13848 ( "Model number" text, "sSpec number" text, "Cores" text, "Frequency" text, "Turbo" text, "L2 cache" text, "L3 cache" text, "GPU model" text, "GPU frequency" text, "Socket" text, "I/O bus" text, "Release date" text, "Part number(s...
### Context: CREATE TABLE table_14288212_1 ( team VARCHAR, points_for VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many teams scored exactly 38 points ### Query: SELECT COUNT(team) FROM table_14288212_1 WHERE points_for = 38
### Context: CREATE TABLE table_14981 ( "Stage" text, "Time" text, "Name" text, "Length" text, "Winner" text, "Rally leader" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Time in the Mina Clavero 2 Stage? ### Query: SELECT "Time" ...
### Context: CREATE TABLE table_3353 ( "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 is every descri...
### Context: CREATE TABLE table_68084 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What United States player holds the place of t8?` ### Query: SELECT "Player" FROM table_68084...
### 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_29555 ( "Season" text, "Points per Game" text, "Total Yards per Game" text, "Rushing Yards per Game" text, "Passing Yards per Game" text, "Sacks" text, "Interceptions" text ) -- Using valid SQLite, answer the following questions for the tables provided above...
### Context: CREATE TABLE table_204_103 ( id number, "medal" text, "name" text, "sport" text, "event" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which two silver medalists had 2 weightlifting silver medals each ? ### Query: SELECT "name" FROM t...
### Context: CREATE TABLE table_49104 ( "Rider" text, "Manufacturer" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Laps have a Manufacturer of suzuki, and a Grid smaller than 16? ### Query: SELE...
### Context: CREATE TABLE table_name_29 ( winner VARCHAR, event VARCHAR, country VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the Winner of the French Polynesia Billabong Pro Event? ### Query: SELECT winner FROM table_name_29 WHERE event = "bi...
### Context: CREATE TABLE table_15078 ( "Episode" text, "First aired" text, "Entrepreneur(s)" text, "Company or product name" text, "Money requested (\u00a3)" real, "Investing Dragon(s)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what invest...
### Context: CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, predicted_graduation_semester int, degree varchar, minor varchar, int...
### Context: CREATE TABLE orders ( order_id VARCHAR, customer_id VARCHAR, date_order_placed VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what are the order id and customer id of the oldest order? ### Query: SELECT order_id, customer_id FROM orders ORD...
### Context: CREATE TABLE customer_policies ( policy_id number, customer_id number, policy_type_code text, start_date time, end_date time ) CREATE TABLE customers ( customer_id number, customer_details text ) CREATE TABLE payments ( payment_id number, settlement_id number, paym...
### Context: CREATE TABLE table_4232 ( "Pick #" real, "MLS team" text, "Player" text, "Position" text, "Affiliation" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many pick# does the university of akron reading united michigan bucks affiliation...
### Context: CREATE TABLE table_54952 ( "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. -- In games where st kilda was the awa...
### Context: CREATE TABLE table_16536 ( "Episode Titles" text, "First air date" text, "Reward" text, "Immunity" text, "Exiled" text, "Eliminated" text, "Vote" text, "Finish" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the re...
### Context: CREATE TABLE table_49309 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Tyres" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which engine of Rob Walker Racing Team has 47 points and F tyres? ### Quer...
### Context: CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, ...
### Context: CREATE TABLE table_40955 ( "Position" text, "Jersey number" real, "Name v t e" text, "Height (cm)" real, "Weight (kg)" real, "Birthplace" text, "1995-96 team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the average J...
### Context: CREATE TABLE table_203_341 ( id number, "season" text, "champion" text, "runner-up" text, "score" text, "third place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what are the total amounts of times that prokom trefl sopot is list...
### Context: CREATE TABLE t_kc21_t_kc24 ( MED_CLINIC_ID text, MED_SAFE_PAY_ID number ) CREATE TABLE t_kc24 ( ACCOUNT_DASH_DATE time, ACCOUNT_DASH_FLG number, CASH_PAY number, CIVIL_SUBSIDY number, CKC102 number, CLINIC_ID text, CLINIC_SLT_DATE time, COMP_ID text, COM_ACC_PAY...
### Context: CREATE TABLE table_15327489_1 ( riders VARCHAR, team_name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the rdiers for jir team scot motogp ### Query: SELECT riders FROM table_15327489_1 WHERE team_name = "JiR Team Scot MotoGP"
### Context: CREATE TABLE table_24235 ( "Name" text, "Municipal status" text, "Census division" text, "Population (2011)" real, "Population (2006)" real, "Change (%)" text, "Area (km\u00b2)" text, "Population density" text ) -- Using valid SQLite, answer the following questions for the...
### Context: CREATE TABLE rating ( rid number, mid number, stars number, ratingdate time ) CREATE TABLE movie ( mid number, title text, year number, director text ) CREATE TABLE reviewer ( rid number, name text ) -- Using valid SQLite, answer the following questions for the t...
### Context: CREATE TABLE table_name_35 ( score VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score on 6 February 2008? ### Query: SELECT score FROM table_name_35 WHERE date = "6 february 2008"
### Context: CREATE TABLE table_15840 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year did Elf Team Tyrrell have 39 points and a Tyrrell 007 Chassis? ### Query: SELECT S...
### Context: CREATE TABLE Financial_Transactions ( transaction_id INTEGER, account_id INTEGER, invoice_number INTEGER, transaction_type VARCHAR(15), transaction_date DATETIME, transaction_amount DECIMAL(19,4), transaction_comment VARCHAR(255), other_transaction_details VARCHAR(255) ) CR...
### Context: CREATE TABLE table_19309079_2 ( year VARCHAR, qatari_male VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many years were there 97 qatari male births? ### Query: SELECT COUNT(year) FROM table_19309079_2 WHERE qatari_male = 97
### 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_43269 ( "Date" text, "Label" text, "Format" text, "Country" text, "Catalog" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Label name that has a Country of uk and the Catalog is bpg 62988? ### Query: SELE...
### Context: CREATE TABLE table_28059992_6 ( college VARCHAR, cfl_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What college did the player who was drafted by Calgary go to? ### Query: SELECT college FROM table_28059992_6 WHERE cfl_team = "Calgary"
### 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 person_info ( CSD text, CSRQ time, GJDM text, GJMC text, JGDM text, JGMC text, MZDM text, MZMC text, RYBH text, XBDM number, XBMC text, XLDM text, XLMC text, XM text, ZYLBDM text, ZYMC text ) CREATE TABLE jyjgzbb ( BGDH text,...
### Context: CREATE TABLE table_1745843_9 ( part_1 VARCHAR, verb_meaning VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the part one for to give ### Query: SELECT part_1 FROM table_1745843_9 WHERE verb_meaning = "to give"
### Context: CREATE TABLE table_name_94 ( score VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score when the opponent was irena pavlovic and the surface was hard? ### Query: SELECT score FROM...
### Context: CREATE TABLE table_name_79 ( to_par VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In the game that has a score of 71-71-70-73=285 what is the to par? ### Query: SELECT to_par FROM table_name_79 WHERE score = 71 - 71 - 70 - 73 = ...
### 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_31322 ( "SAR No." real, "Builder" text, "Year" real, "Works No." real, "Firebox" text, "Driver Diameter" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For what year is the SAR no. 874? ### Query: SELECT "Year" F...
### 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 medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, ...
### Context: CREATE TABLE table_51325 ( "Driver" text, "Constructor" text, "Laps" real, "Time/Retired" text, "Grid" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was Mike Hailwood's highest laps when he had a grid more than 7? ### Query: SELE...
### 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 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_27721 ( "Institution" text, "Location" text, "Nickname" text, "Founded" real, "Type" text, "Enrollment" real, "Joined" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the University founded that joined...
### 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_name_79 ( fatalities VARCHAR, epicenter VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What number of Fatalities did the Epicenter M zandar n have? ### Query: SELECT fatalities FROM table_name_79 WHERE epicenter = "māzandarān...
### Context: CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE PostHistory...
### Context: CREATE TABLE table_79820 ( "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 place did Jimmy Reece finish in 1957? ### Query: SELECT "Finish" FROM table_7...
### 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 inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, ...
### Context: CREATE TABLE table_name_80 ( score VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What source has july 1 as the date? ### Query: SELECT score FROM table_name_80 WHERE date = "july 1"
### Context: CREATE TABLE table_31861 ( "Year" real, "Tournament" text, "Venue" text, "Result" text, "Extra" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result for the year 1999? ### Query: SELECT "Result" FROM table_31861 WHERE "Yea...
### Context: CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text...
### Context: CREATE TABLE table_63230 ( "School" text, "Location" text, "Mascot" text, "County" real, "Enrollment" text, "IHSAA Class" text, "Year Joined" real, "Previous Conference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which s...
### Context: CREATE TABLE table_204_77 ( id number, "number" text, "builder" text, "type" text, "date" text, "works number" number, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what builder comes before ss & iw ? ### Query: SELECT...
### Context: CREATE TABLE table_10288 ( "Tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text, "Win %" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which 2009 had a 2011 of SF? ### Query: SELE...
### Context: CREATE TABLE table_name_68 ( pick__number VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the pick # for william loftus? ### Query: SELECT pick__number FROM table_name_68 WHERE player = "william loftus"
### Context: CREATE TABLE t_kc24 ( MED_SAFE_PAY_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, MED_CLINIC_ID text, REF_SLT_FLG number, CLINIC_SLT_DATE time, COMP_ID text, PERSON_ID text, FLX_MED_ORG_ID text, INSU_TYPE text, MED_AMOUT number, PER_ACC_PAY number, ...
### Context: CREATE TABLE table_43758 ( "Position" real, "Name" text, "Played" real, "Drawn" real, "Lost" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Drawn has a Position of 2, and a Lost larger than 2? ### Query: SELECT...
### Context: CREATE TABLE table_204_320 ( id number, "rank" number, "nation" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many nations share the seventh rank ? ### Query...
### 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_63263 ( "City of license" text, "Identifier" text, "Frequency" text, "Power" text, "Class" text, "RECNet" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the class when the power is 22500 watts? ### Query:...
### Context: CREATE TABLE table_37022 ( "Player" text, "League" real, "Malaysia Cup" real, "FA Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which FA Cup has a Malaysia Cup larger than 0, and a Total of 8? ### Query: SELECT SUM(...
### Context: CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varc...
### Context: CREATE TABLE View_Unit_Status ( apt_id INTEGER, apt_booking_id INTEGER, status_date DATETIME, available_yn BIT ) CREATE TABLE Apartment_Facilities ( apt_id INTEGER, facility_code CHAR(15) ) CREATE TABLE Guests ( guest_id INTEGER, gender_code CHAR(1), guest_first_name V...
### Context: CREATE TABLE table_name_56 ( round INTEGER, circuit VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the average round for the oulton park circuit? ### Query: SELECT AVG(round) FROM table_name_56 WHERE circuit = "oulton park"
### Context: CREATE TABLE table_16275828_4 ( sanction VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who sanctioned the event in lincoln, illinois? ### Query: SELECT sanction FROM table_16275828_4 WHERE location = "Lincoln, Illinois"
### Context: CREATE TABLE table_test_19 ( "id" int, "gender" string, "left_ventricular_ejection_fraction_lvef" int, "systolic_blood_pressure_sbp" int, "acute_infectious" bool, "hypertensive_retinopathy" bool, "leukocyte_count" int, "severe_uncontrolled_hypertension" bool, "chronic_in...
### Context: CREATE TABLE table_name_59 ( position VARCHAR, against VARCHAR, played VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many positions have an against of less than 27, and a played number of less than 8? ### Query: SELECT COUNT(position) ...
### Context: CREATE TABLE table_13978 ( "Stadium" text, "Capacity" real, "City" text, "Region" text, "Home Team" text, "Opened" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What capacity opened lessed than 1937 and is located in the region of ...
### Context: CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCoun...
### Context: CREATE TABLE table_name_62 ( province VARCHAR, iata VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Province has a IATA of aku? ### Query: SELECT province FROM table_name_62 WHERE iata = "aku"
### Context: CREATE TABLE mzjzjlb ( YLJGDM text, JZLSH text, KH text, KLX number, MJZH text, HZXM text, NLS number, NLY number, ZSEBZ number, JZZTDM number, JZZTMC text, JZJSSJ time, TXBZ number, ZZBZ number, WDBZ number, JZKSBM text, JZKSMC text, ...
### Context: CREATE TABLE table_46659 ( "Player" text, "Country" text, "Year(s) won" text, "Total" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Country, when To Par is '+11'? ### Query: SELECT "Country" FROM table_46659 WHE...
### Context: CREATE TABLE table_204_270 ( id number, "transmitter" text, "kw" number, "bbca" number, "bbcb" number, "d3&4" number, "sdn" number, "arqa" number, "arqb" number, "pol." text, "a.g." text ) -- Using valid SQLite, answer the following questions for the tables pro...
### Context: CREATE TABLE table_62271 ( "Draw" real, "Language" text, "Artist" text, "Song" text, "English translation" text, "National final" text, "Place" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the langua...
### 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 t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_ID number ) CREATE TABLE t_kc24 ( ACCOUNT_DASH_DATE time, ACCOUNT_DASH_FLG number, CASH_PAY number, CIVIL_SUBSIDY number, CKC102 number, CLINIC_ID text, CLINIC_SLT_DATE time, COMP_ID text, COM_ACC_PAY ...
### Context: CREATE TABLE table_78907 ( "Date" text, "Tournament" text, "Surface" text, "Opponent in the final" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Score of the Tournament with Opponent in the final of Martin Spo...
### Context: CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE patient ( uniquepid text, patienthealthsystemstayid number, patientunitstayid number, gende...
### Context: CREATE TABLE table_name_93 ( score VARCHAR, december VARCHAR, game VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Score has a December smaller than 14, and a Game of 12? ### Query: SELECT score FROM table_name_93 WHERE december < 14 A...
### Context: CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstop...
### Context: CREATE TABLE table_2668401_17 ( first_elected VARCHAR, district VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the incumbent from the Virginia 10 district first elected? ### Query: SELECT first_elected FROM table_2668401_17 WHERE distr...
### Context: CREATE TABLE table_39098 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which pick number had a round of less than 7, an overall of less than 127...
### Context: CREATE TABLE table_5393 ( "Frequency" real, "Callsign" text, "Brand" text, "Format" text, "City of License" text, "Website" text, "Webcast" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest frequency from uncion...
### Context: CREATE TABLE table_2754 ( "Team" text, "SEC Wins" real, "SEC Losses" real, "Percentage" text, "Home Record" text, "Road Record" text, "Overall Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the home record of the ...
### 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_51308 ( "Player" text, "Team" text, "Opponent" text, "Year" real, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's melbourne's average year? ### Query: SELECT AVG("Year") FROM table_51308 WHERE "Team" = ...
### 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_22514845_2 ( race_caller VARCHAR, trophy_presentation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the total number for race caller for bob costas and charlsie cantey ### Query: SELECT COUNT(race_caller) FROM table_225...
### 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 diagnosi...
### Context: CREATE TABLE table_20515 ( "RR Romaja" text, "M\u2013R Romaja" text, "Hangul/Chosongul" text, "Hanja" text, "ISO" text, "Area" text, "Capital" text, "Region" text, "Country" text ) -- Using valid SQLite, answer the following questions for the tables provided above. --...
### 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 PostTypes ( Id number, Name text ) 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, ...
### Context: CREATE TABLE table_18332 ( "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 district is Charles H. Wilson the incumbent of? ### Q...
### Context: CREATE TABLE table_282 ( "car plates (since 1937)" text, "Voivodeship Separate city" text, "Capital" text, "Area in 1000km\u00b2 (1930)" text, "Population in 1000 (1931)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List population wh...
### Context: CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug_cd text, route text, drug_...
### Context: CREATE TABLE 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...