text
stringlengths
197
8.39k
### 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_1341549_33 ( first_elected VARCHAR, district VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many first elected with district being new york2 ### Query: SELECT COUNT(first_elected) FROM table_1341549_33 WHERE district = "N...
### Context: CREATE TABLE table_27128 ( "Wind farm" text, "Installed capacity (MW)" text, "Turbine Manufacturer" text, "County" text, "Date in Service" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the turbine manufacturer of the wind farm ...
### 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 personfriend ( name text, friend text, year number ) CREATE TABLE person ( name text, age number, city text, gender text, job text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many friends does Dan have? ### ...
### Context: CREATE TABLE table_name_53 ( react INTEGER, country VARCHAR, lane VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest react of the athlete from the United States who has a lane less than 4? ### Query: SELECT MIN(react) FROM ta...
### Context: CREATE TABLE table_57029 ( "Country" text, "Release Date" real, "Music Label" text, "Media" text, "Catalogue Number" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the release date by Virgin? ### Query: SELECT AVG("Release Date...
### Context: CREATE TABLE table_16137 ( "Sepal length" text, "Sepal width" text, "Petal length" text, "Petal width" text, "Species" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the sepal length for sepal width of 2.8 and petal length of 5.1 ...
### 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_203_18 ( id number, "year" number, "film" text, "role" text, "co-star" text, "director" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many movies has ahsan been in ? ### Query: SELECT COUNT...
### Context: CREATE TABLE table_71005 ( "Language" text, "Number" text, "percentage (%)" text, "males" text, "females" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the percentage which has females of 2 ### Query: SELECT "percentage (%)" FROM...
### Context: CREATE TABLE table_12157 ( "Draft" real, "Round" text, "Pick" real, "Player" text, "Nationality" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Pick, when Round is '6', when Nationality is 'Canada', when Draft is greater than 19...
### Context: CREATE TABLE table_34779 ( "County" text, "Monument name" text, "Year built" real, "City or Town" text, "Latitude" text, "Longitude" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the City or Town of the monument with a Long...
### Context: CREATE TABLE table_name_52 ( years_for_jazz VARCHAR, school_club_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What years did the Utah Jazz Player from Southern Methodist, Play? ### Query: SELECT years_for_jazz FROM table_name_52 WHERE sc...
### Context: CREATE TABLE roles ( role_code text, role_name text, role_description text ) CREATE TABLE document_locations ( document_id number, location_code text, date_in_location_from time, date_in_locaton_to time ) CREATE TABLE ref_calendar ( calendar_date time, day_number numbe...
### 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_name_21 ( rank VARCHAR, points VARCHAR, nation VARCHAR, sp VARCHAR, fs VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rank for more than 120.44 points in East Germany and a SP+FS of 3? ### Query: SELEC...
### Context: CREATE TABLE table_name_69 ( player VARCHAR, round INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Player has a Round smaller than 2? ### Query: SELECT player FROM table_name_69 WHERE round < 2
### Context: CREATE TABLE table_24456 ( "No." real, "#" real, "Title" text, "Directed by" text, "Written by" text, "U.S. viewers (million)" text, "Original air date" text, "Production code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- ...
### Context: CREATE TABLE table_name_35 ( pba_team VARCHAR, pick VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the PBA team with a Pick that is 4? ### Query: SELECT pba_team FROM table_name_35 WHERE pick = 4
### Context: CREATE TABLE table_name_57 ( top_10 INTEGER, cuts_made VARCHAR, top_25 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the average top-10 for cuts made of 10 and top-25 more than 6 ### Query: SELECT AVG(top_10) FROM table_name_57 WHERE ...
### Context: CREATE TABLE table_23284271_9 ( game INTEGER, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many games had been played when the Mavericks had a 46-22 record? ### Query: SELECT MAX(game) FROM table_23284271_9 WHERE record = "46-22"
### Context: CREATE TABLE table_70204 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What type of engine does a 1951 alfa romeo 159m chasis have? ### Query: SELECT "Engine" FROM...
### 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 table_64613 ( "Name" text, "Nationality" text, "1.85" text, "1.93" text, "Height" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the 1.93 that is 2.05 in height? ### Query: SELECT "1.93" FROM table_64613 WHERE "Hei...
### Context: CREATE TABLE table_21129 ( "English name" text, "Irish name" text, "Numeral" text, "Reverse" text, "Introduction" text, "Withdrawal" text, "\u00a31 Fraction" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the reverse whe...
### Context: CREATE TABLE table_27223 ( "School" text, "Nickname" text, "Location" text, "Colors" text, "Type" text, "Membership Tenure" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What school is in Jeromesville? ### Query:...
### Context: CREATE TABLE table_2878 ( "#" real, "Title" text, "Director" text, "Writer(s)" text, "Original air date" text, "Production Code" text, "U.S. viewers (millions)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who directed the epi...
### Context: CREATE TABLE table_203_165 ( 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 total gold medal have been given ? ### Que...
### 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_94 ( employee__real_name_ VARCHAR, role VARCHAR, pick__number VARCHAR, brand__from_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the real name of the male wrestler from Raw with a pick # smaller than 6? ...
### 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_59913 ( "Squad No." real, "Name" text, "Position" text, "League Apps" text, "League Goals" real, "FA Cup Apps" text, "FA Cup Goals" real, "League Cup Apps" text, "League Cup Goals" real, "FLT Apps" text, "FLT Goals" real, "Total Apps" text,...
### Context: CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDis...
### Context: CREATE TABLE table_2840500_1 ( position VARCHAR, nationality VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many positions does the draft pick whose nationality is Czech Republic play? ### Query: SELECT COUNT(position) FROM table_2840500_1 ...
### Context: CREATE TABLE sportsinfo ( stuid number, sportname text, hoursperweek number, gamesplayed number, onscholarship text ) CREATE TABLE plays_games ( stuid number, gameid number, hours_played number ) CREATE TABLE student ( stuid number, lname text, fname text, ...
### Context: CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE semester ( semester_id int, semester varchar, year int ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) C...
### Context: CREATE TABLE table_8199 ( "Team" text, "Head coach" text, "Team captain" text, "Kitmaker" text, "Shirt sponsor" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the team captain of tus koblenz? ### Query: SELECT "Team captain" FR...
### Context: CREATE TABLE table_7952 ( "Type" text, "Name" text, "Title" text, "Royal house" text, "From" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Royal house is named Elah? ### Query: SELECT "Royal house" FROM table_7952 WHERE "Name" =...
### Context: CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, l...
### 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_dev_48 ( "id" int, "gender" string, "systolic_blood_pressure_sbp" int, "hiv_infection" bool, "body_weight" float, "diabetic" string, "active_hepatitis" bool, "diastolic_blood_pressure_dbp" int, "liver_disease" bool, "high_density_lipoprotein_choles...
### Context: CREATE TABLE table_25246990_5 ( original_us_air_date VARCHAR, us_viewers__millions_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many different original U.S. air dates appear where the U.S. viewers were 2.5 million? ### Query: SELECT COUN...
### Context: CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE prescriptions ( row_id number, subject_id number, h...
### 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_CLINIC_ID text, ME...
### Context: CREATE TABLE table_name_43 ( rank INTEGER, studio_s_ VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Tell me the average rank for dharma productions before 2013 ### Query: SELECT AVG(rank) FROM table_name_43 WHERE studio_s_ = "...
### Context: CREATE TABLE table_34415 ( "Country" text, "Project Name" text, "Year startup" text, "Operator" text, "Peak" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the operator for peak 90, in startup year 2010 for the project named Aos...
### Context: CREATE TABLE Payments ( Payment_ID INTEGER, Settlement_ID INTEGER, Payment_Method_Code VARCHAR(255), Date_Payment_Made DATE, Amount_Payment INTEGER ) CREATE TABLE Settlements ( Settlement_ID INTEGER, Claim_ID INTEGER, Date_Claim_Made DATE, Date_Claim_Settled DATE, A...
### Context: CREATE TABLE qtb ( CLINIC_ID 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, INSURED_STS text, INSU_TYPE...
### Context: CREATE TABLE table_14187 ( "Constituency number" text, "Name" text, "Reserved for ( SC / ST /None)" text, "District" text, "Number of electorates (2009)" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the number of electorates (...
### Context: CREATE TABLE table_name_14 ( years_as_tallest VARCHAR, height_metres___ft VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the Years as tallest that has Height metres / ft of 01.0 27 / 90? ### Query: SELECT years_as_tallest FROM table_name_1...
### Context: CREATE TABLE table_53476 ( "Grid" real, "Driver" text, "Constructor" text, "Qual" real, "Rank" real, "Laps" real, "Time/Retired" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who constructed Joe James car when his rank was more...
### Context: CREATE TABLE table_name_37 ( result VARCHAR, venue VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the result when the venue is singapore on september 8, 1996? ### Query: SELECT result FROM table_name_37 WHERE venue = "...
### Context: CREATE TABLE table_name_61 ( result VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the result of the game that was played on 3,4,5 Jul 1902? ### Query: SELECT result FROM table_name_61 WHERE date = "3,4,5 jul 1902"
### Context: CREATE TABLE table_name_31 ( winner VARCHAR, winter_olympics VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Winner has a Winter Olympics of 1968? ### Query: SELECT winner FROM table_name_31 WHERE winter_olympics = "1968"
### Context: CREATE TABLE table_1966992_1 ( administrative_capital VARCHAR, census_2006_population VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the administrative capital that has a 2006 census population of 249425? ### Query: SELECT administrativ...
### Context: CREATE TABLE table_name_79 ( res VARCHAR, time VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the resolution of the fight against kiuma kunioku with a time of 15:00? ### Query: SELECT res FROM table_name_79 WHERE ...
### Context: CREATE TABLE table_73370 ( "Election" text, "Mayor" text, "Seat no 1" text, "Seat no 2" text, "Seat no 3" text, "Seat no 4" text, "Seat no 5" text, "Seat no 6" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is seat no 1 ...
### Context: CREATE TABLE table_8645 ( "Frequency" text, "Call sign" text, "Branding" text, "Format" text, "Owner" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Branding of the Frequency owned by Sound of Faith Broadcasting Group? ### ...
### Context: CREATE TABLE table_name_29 ( election INTEGER, president VARCHAR, inhabitants VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the lowest election result for President Leonardo Marras with an area smaller than 227,063 people? ### Que...
### Context: CREATE TABLE table_10470082_7 ( villains VARCHAR, storyteller VARCHAR, director VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who are the villains in the episodes where Megan is the storyteller and Lorette LeBlanc is the director? ### Quer...
### Context: CREATE TABLE table_name_76 ( team__number2 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is 1st Leg, when Team #2 is 'Emelec'? ### Query: SELECT 1 AS st_leg FROM table_name_76 WHERE team__number2 = "emelec"
### 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_17058151_5 ( game VARCHAR, location_attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In how many game was the attendance at Staples Center 18,997? ### Query: SELECT COUNT(game) FROM table_17058151_5 WHERE location_at...
### Context: CREATE TABLE table_name_1 ( medal VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Medal had a Name of manuel felix diaz? ### Query: SELECT medal FROM table_name_1 WHERE name = "manuel felix diaz"
### Context: CREATE TABLE table_name_51 ( player VARCHAR, overall INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had the smallest overall under 22? ### Query: SELECT player FROM table_name_51 WHERE overall < 22
### Context: CREATE TABLE table_43043 ( "Date" text, "Time" text, "Home" text, "Away" text, "Score" text, "Ground" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Date, when Away is High Park Demons? ### Query: SELECT "Date" FROM table_4...
### 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 lab ( ...
### Context: CREATE TABLE table_name_83 ( record VARCHAR, opponent VARCHAR, time VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The match of at Michael's Eighth Avenue venue against Tim Coleman that went 3:00 has what record? ### Quer...
### Context: CREATE TABLE addresses ( address_id number, line_1_number_building text, city text, zip_postcode text, state_province_county text, country text ) CREATE TABLE customer_payments ( customer_id number, datetime_payment time, payment_method_code text, amount_payment num...
### Context: CREATE TABLE table_16866 ( "Player" text, "No." real, "Nationality" text, "Position" text, "Years for Jazz" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- During which years did Jim Farmer play for Jazz? ##...
### 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 table_2679061_7 ( college_junior_club_team VARCHAR, nhl_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where are the Buffalo Sabres from? ### Query: SELECT college_junior_club_team FROM table_2679061_7 WHERE nhl_team = "Buffal...
### Context: CREATE TABLE shop ( shop_id number, shop_name text, location text, open_date text, open_year number ) CREATE TABLE device ( device_id number, device text, carrier text, package_version text, applications text, software_platform text ) CREATE TABLE stock ( s...
### Context: CREATE TABLE table_48630 ( "Game" real, "Date" text, "Team" text, "Score" text, "Record" text, "Streak" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the date of the game number 22? ### Query: SELECT "Date" FROM table_486...
### 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 allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE intakeoutput ( intakeoutputid number, patientunitstayid number, cellpath text, celllabel text, cellvaluenumeric number, intakeoutp...
### Context: CREATE TABLE table_name_31 ( location VARCHAR, score VARCHAR, record VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which location has a Score of 3 2, and a Record of 3 2 3? ### Query: SELECT location FROM table_name_31 WHERE score = "3–2" ...
### Context: CREATE TABLE table_36703 ( "Conference" text, "Division" text, "Team" text, "City" text, "Home Stadium" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the Conference which Division is south, and the Home Stadium is g...
### Context: CREATE TABLE table_name_17 ( doha_ VARCHAR, _qatar VARCHAR, snatch VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Doha, Qatar when the snatch is total? ### Query: SELECT doha_, _qatar FROM table_name_17 WHERE snatch = "total"
### Context: CREATE TABLE table_name_18 ( place VARCHAR, player VARCHAR, to_par VARCHAR, score VARCHAR, country VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When Bunky Henry of the United States scored higher than 67 and his To par was e, what ...
### Context: CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, in...
### Context: CREATE TABLE weekly_weather ( station_id int, day_of_week text, high_temperature int, low_temperature int, precipitation real, wind_speed_mph int ) CREATE TABLE train ( id int, train_number int, name text, origin text, destination text, time text, interv...
### Context: CREATE TABLE table_11342 ( "Round" text, "Pick" text, "Player" text, "Position" text, "Nationality" text, "Team" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What nationality is the player from the College of C...
### Context: CREATE TABLE Undergoes ( Patient INTEGER, Procedures INTEGER, Stay INTEGER, DateUndergoes DATETIME, Physician INTEGER, AssistingNurse INTEGER ) CREATE TABLE Prescribes ( Physician INTEGER, Patient INTEGER, Medication INTEGER, Date DATETIME, Appointment INTEGER, ...
### Context: CREATE TABLE table_13836704_6 ( rank VARCHAR, freight___metric_tonnes__ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rank of the airport with freight ( metric tonnes ) of 255121? ### Query: SELECT rank FROM table_13836704_6 WHERE ...
### 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 time_zone ( time_zone_code text, ti...
### 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 d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE d_icd_procedures ( row_id num...
### Context: CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, ...
### Context: CREATE TABLE table_name_14 ( losses VARCHAR, points VARCHAR, games VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the total number of losses with less than 19 points and more than 36 games? ### Query: SELECT COUNT(losses) FROM table_...
### 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 editor ( Editor_ID int, Name text, Age real ) CREATE TABLE journal_committee ( Editor_ID int, Journal_ID int, Work_Type text ) CREATE TABLE journal ( Journal_ID int, Date text, Theme text, Sales int ) -- Using valid SQLite, answer the following quest...
### Context: CREATE TABLE table_8310 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text, "Money ( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What country was the game in when the player was Craig Stadler? ### Qu...
### Context: CREATE TABLE table_14498 ( "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. -- What years does the school have that's in Makikihi? ### Qu...
### 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. -- how many relegations did andrea costa imola undergo ? ### ...
### Context: CREATE TABLE gwyjzb ( 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_name_41 ( place VARCHAR, language VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where is Croatian spoken? ### Query: SELECT place FROM table_name_41 WHERE language = "croatian"
### Context: CREATE TABLE table_67319 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Time" text, "Att." text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the record at the game held on May 1st with a loss of...
### 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_name_40 ( outgoing_manager VARCHAR, replaced_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the outgoing manager for craig brewster ### Query: SELECT outgoing_manager FROM table_name_40 WHERE replaced_by = "craig br...