text
stringlengths
197
8.39k
### Context: CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE cost ( costid number,...
### Context: CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, ...
### Context: CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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, JCZB...
### Context: CREATE TABLE table_name_59 ( number_of_cpus VARCHAR, memory__gb_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Number of CPUs has a Memory (GB) of 0.5 16? ### Query: SELECT number_of_cpus FROM table_name_59 WHERE memory__gb_ = "0.5–16"
### Context: CREATE TABLE table_19035 ( "Club" text, "Played" text, "Won" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Tries for" text, "Tries against" text, "Try bonus" text, "Losing bonus" text, "Points" text ) -- Using valid SQLite, ans...
### Context: CREATE TABLE table_69939 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which record has 5:00 as the time, jes...
### Context: CREATE TABLE table_254776_1 ( type VARCHAR, location VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What type of school is in swarthmore, pennsylvania? ### Query: SELECT type FROM table_254776_1 WHERE location = "Swarthmore, Pennsylvania"
### Context: CREATE TABLE table_69799 ( "Rank" real, "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What nation has the most bronze medals with over 11 total medals? ### Query: S...
### Context: CREATE TABLE table_5042 ( "Score" real, "Opposition" text, "Venue" text, "City" text, "Year" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score when the opposition was sussex after 1890? ### Query: SELECT "Score" FROM ta...
### Context: CREATE TABLE table_12340907_1 ( crime_rate_per_1 INTEGER, cost_per_capita VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which crime rate per 1,000 people is associated with a cost per capita of $152? ### Query: SELECT MAX(crime_rate_per_1), 00...
### Context: CREATE TABLE table_51320 ( "Draw" real, "Song" text, "Artist" text, "Jury (Points)" text, "Televotes (Points)" text, "Total Points" real, "Place" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the lowest total points Kar...
### 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 cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) C...
### 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_13053 ( "Opposing Teams" text, "Against" real, "Date" text, "Venue" text, "Status" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total against on 15/10/1999? ### Query: SELECT SUM("Against") FROM table_1...
### Context: CREATE TABLE table_name_6 ( laps INTEGER, time_retired VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of laps that has a time/retired that is +19.475? ### Query: SELECT SUM(laps) FROM table_name_6 WHERE time_retired = "+19.475"
### Context: CREATE TABLE table_name_35 ( matches INTEGER, average VARCHAR, best_bowling VARCHAR, wickets VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest number of matches for Australia when the wickets are more t...
### Context: CREATE TABLE table_12441518_1 ( main_cast_seasons VARCHAR, portrayed_by VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What seasons does Kevin Jonas appear? ### Query: SELECT main_cast_seasons FROM table_12441518_1 WHERE portrayed_by = "Kevin J...
### Context: CREATE TABLE table_19477 ( "Date Released" text, "Polling institute" text, "Socialist" text, "Social Democratic" text, "Peoples Party" text, "Green-Communist" text, "Left Bloc" text, "Lead" text ) -- Using valid SQLite, answer the following questions for the tables provide...
### Context: CREATE TABLE status ( station_id INTEGER, bikes_available INTEGER, docks_available INTEGER, time TEXT ) CREATE TABLE station ( id INTEGER, name TEXT, lat NUMERIC, long NUMERIC, dock_count INTEGER, city TEXT, installation_date TEXT ) CREATE TABLE trip ( id I...
### 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_name_65 ( outcome VARCHAR, partner VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the outcome of the tournament with partner ilie n stase? ### Query: SELECT outcome FROM table_name_65 WHERE partner = "ilie năstase"
### Context: CREATE TABLE airport_service ( city_code varchar, airport_code varchar, miles_distant int, direction varchar, minutes_distant int ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text )...
### 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 projects ( project_id number, project_details text ) CREATE TABLE ref_document_types ( document_type_code text, document_type_name text, document_type_description text ) CREATE TABLE documents ( document_id number, document_type_code text, project_id number, ...
### Context: CREATE TABLE table_49716 ( "Date" text, "Opponent" text, "Score" text, "Leading Scorer" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many attended during the game with a score of 80-94? ### Q...
### Context: CREATE TABLE table_55679 ( "Riding" text, "Candidate" text, "Gender" text, "Residence" text, "Occupation" text, "Votes" real, "Rank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many votes did 3rd ranking candidate Mary Lo...
### Context: CREATE TABLE table_33571 ( "Type" text, "Suffix" text, "Valency change" text, "Example" text, "Meaning" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Suffix of the intensive and valency change of 0? ### Query: SELECT "Suff...
### Context: CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE vitalperiodic ( vitalperiodicid number, patientunitstayid number, temperature number, sao2 number, heartrate number, respiration n...
### Context: CREATE TABLE table_7768 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the player from the United States with a score of 70-70-71=211? ### Query: SELECT "Pla...
### 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_68282 ( "Representative" text, "Title" text, "Presentation of credentials" text, "Termination of mission" text, "Appointed by" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the representative appointed by george...
### Context: CREATE TABLE table_17323042_5 ( record VARCHAR, team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the team's record when they faced orlando? ### Query: SELECT record FROM table_17323042_5 WHERE team = "Orlando"
### 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 ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewTaskStateId number, PostId number, SuggestedEditId number, CompletedByReviewTaskId number ) CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE Users...
### Context: CREATE TABLE student_record ( student_id int, course_id int, semester int, grade varchar, how varchar, transfer_source varchar, earn_credit varchar, repeat_term varchar, test_id varchar ) CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id...
### 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_22479 ( "Township" text, "County" text, "Pop. (2010)" real, "Land ( sqmi )" text, "Water (sqmi)" text, "Latitude" text, "Longitude" text, "GEO ID" real, "ANSI code" real ) -- Using valid SQLite, answer the following questions for the tables provided ...
### 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_name_65 ( wins INTEGER, losses INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest win for losses less than 2? ### Query: SELECT MAX(wins) FROM table_name_65 WHERE losses < 2
### Context: CREATE TABLE table_24029 ( "Ep." real, "Season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Prod. Code" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the production code for novemb...
### Context: CREATE TABLE table_27418 ( "Club" text, "Location" text, "Stadium" text, "Capacity" real, "Manager" text, "Kitmaker" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many capacities are given for FF Jaro club? ### Query: SELECT C...
### Context: CREATE TABLE table_58037 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent on week 3? ### Query: SELECT "Opponent" FROM table_58037 WHERE "Week"...
### Context: CREATE TABLE table_23882 ( "Game" real, "Date" text, "Opponent" text, "Result" text, "Bruins points" real, "Opponents" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What game did the Bruins have 56 points? ### Q...
### Context: CREATE TABLE table_68287 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the to par that has jimmy hines as the player? ### Query: SELECT "To par" FROM table_...
### Context: CREATE TABLE table_name_20 ( city___state VARCHAR, winner VARCHAR, circuit VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is City / State, when Winner is 'Rohan Onslow', and when Circuit is 'Oran Park Raceway'? ### Query: SELECT city__...
### Context: CREATE TABLE Allergy_Type ( Allergy VARCHAR(20), AllergyType VARCHAR(20) ) CREATE TABLE Has_Allergy ( StuID INTEGER, Allergy VARCHAR(20) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Ad...
### Context: CREATE TABLE fzzmzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH number, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM tex...
### Context: CREATE TABLE table_name_75 ( score INTEGER, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Score is the lowest one that has a Year of 1868? ### Query: SELECT MIN(score) FROM table_name_75 WHERE year = 1868
### Context: CREATE TABLE table_204_616 ( 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 mzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH text, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM text, ...
### Context: CREATE TABLE Students_in_Detention ( student_id INTEGER, detention_id INTEGER, incident_id INTEGER ) CREATE TABLE Assessment_Notes ( notes_id INTEGER, student_id INTEGER, teacher_id INTEGER, date_of_notes DATETIME, text_of_notes VARCHAR(255), other_details VARCHAR(255) ...
### Context: CREATE TABLE record ( ID int, Result text, Swimmer_ID int, Event_ID int ) CREATE TABLE stadium ( ID int, name text, Capacity int, City text, Country text, Opening_year int ) CREATE TABLE swimmer ( ID int, name text, Nationality text, meter_100 real,...
### Context: CREATE TABLE policies ( start_date INTEGER ) CREATE TABLE customers ( customer_details VARCHAR, customer_id VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which customer is associated with the latest policy? ### Query: SELECT t2.customer_d...
### Context: CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE flight_stop ( flight_id int, stop_number int, stop_days text, ...
### Context: CREATE TABLE table_35892 ( "Stage" text, "Winner" text, "General classification" text, "Points classification" text, "Mountains classification" text, "Young rider classification" text, "Team classification" text, "Combativity award" text ) -- Using valid SQLite, answer the...
### Context: CREATE TABLE days ( days_code varchar, day_name varchar ) 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 equipment_sequenc...
### Context: CREATE TABLE table_203_804 ( id number, "pos" text, "no" number, "driver" text, "constructor" text, "laps" number, "time/retired" text, "grid" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what driver completed the least ...
### Context: CREATE TABLE table_12722302_2 ( original_air_date VARCHAR, no VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the original air date for no. 2? ### Query: SELECT original_air_date FROM table_12722302_2 WHERE no = 2
### 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 Drama_Workshop_Groups ( Store_Name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show all the Store_Name of drama workshop groups. ### Query: SELECT Store_Name FROM Drama_Workshop_Groups
### Context: CREATE TABLE table_name_81 ( year INTEGER, engine VARCHAR, chassis VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the latest year that has an engine of cosworth v8, with a chassis of hesketh 308e? ### Query: SELECT MAX(year) FROM ta...
### Context: CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE airport ( airport_code varchar, airport_name text, airport_location text, state_code varchar, country_name varchar, ...
### Context: CREATE TABLE table_name_31 ( attendance VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many people were in attendance on March 4? ### Query: SELECT attendance FROM table_name_31 WHERE date = "march 4"
### Context: CREATE TABLE table_name_23 ( round INTEGER, overall VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average round of a player with an overall of 138? ### Query: SELECT AVG(round) FROM table_name_23 WHERE overall = "138"
### Context: CREATE TABLE table_65625 ( "Club" text, "Total points" text, "Bonus points" text, "Match points" text, "Games" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Diff" text ) -- Using valid SQLite, answer the following questions for the tab...
### Context: CREATE TABLE t_kc22 ( AMOUNT number, CHA_ITEM_LEV number, DATA_ID text, DIRE_TYPE number, DOSE_FORM text, DOSE_UNIT text, EACH_DOSAGE text, EXP_OCC_DATE time, FLX_MED_ORG_ID text, FXBZ number, HOSP_DOC_CD text, HOSP_DOC_NM text, MED_DIRE_CD text, MED_...
### Context: CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden b...
### Context: CREATE TABLE table_74791 ( "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 crowd size when there ...
### 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 departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE employees ...
### Context: CREATE TABLE table_25561038_1 ( races VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many series awarded 15 points? ### Query: SELECT COUNT(races) FROM table_25561038_1 WHERE points = "15"
### Context: CREATE TABLE table_name_83 ( attendance VARCHAR, home VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of attendance for games where buffalo was the home team? ### Query: SELECT COUNT(attendance) FROM table_name_83 WHERE ...
### Context: CREATE TABLE table_name_84 ( royal_house VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which royal house corresponds to Polyxenos Epiphanes Soter? ### Query: SELECT royal_house FROM table_name_84 WHERE name = "polyxenos epiphanes...
### Context: CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE patients ( row_id num...
### Context: CREATE TABLE table_name_31 ( company_name VARCHAR, hardware_model VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What company makes the Nokia 700? ### Query: SELECT company_name FROM table_name_31 WHERE hardware_model = "nokia 700"
### Context: CREATE TABLE table_21593 ( "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 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_14562 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Date has a Record of 7-9? ### Query: SELECT "Date" FROM table_1456...
### Context: CREATE TABLE table_285 ( "Stage (Winner)" text, "General classification" text, "Mountains classification" text, "Points classification" text, "Combination classification" text, "Team Classification" text ) -- Using valid SQLite, answer the following questions for the tables provid...
### Context: CREATE TABLE classroom ( building text, room_number text, capacity number ) CREATE TABLE prereq ( course_id text, prereq_id text ) CREATE TABLE time_slot ( time_slot_id text, day text, start_hr number, start_min number, end_hr number, end_min number ) CREATE T...
### 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 diagnoses ( 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_25938117_1 ( tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the 1st prize for senior pga championship ### Query: SELECT 1 AS st_prize___$__ FROM table_25938117_1 WHERE tournament = "Senior PGA Championship"
### 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_21313498_1 ( title VARCHAR, production_code VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the name of the episode which the production code is 62015-08-162 ### Query: SELECT title FROM table_21313498_1 WHERE producti...
### 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 Person ( name varchar(20), age INTEGER, city TEXT, gender TEXT, job TEXT ) CREATE TABLE PersonFriend ( name varchar(20), friend varchar(20), year INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the numbe...
### Context: CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE PostsWithDeleted ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, O...
### Context: CREATE TABLE table_17894 ( "No" real, "Player" text, "Height" text, "Position" text, "Year born" real, "Current Club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what's the height with position being forward and current club bein...
### Context: CREATE TABLE table_204_658 ( id number, "week" number, "date" text, "kickoff" text, "opponent" text, "results\nfinal score" text, "results\nteam record" text, "game site" text, "attendance" number ) -- Using valid SQLite, answer the following questions for the tables p...
### Context: CREATE TABLE table_203_549 ( id number, "player" text, "team" text, "date" text, "opponent" text, "venue" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- on what date did the detroit tigers play the cleveland indians ? ### Query: SE...
### Context: CREATE TABLE university ( School_ID int, School text, Location text, Founded real, Affiliation text, Enrollment real, Nickname text, Primary_conference text ) CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text...
### Context: CREATE TABLE wdmzjzjlb ( HXPLC number, HZXM text, JLSJ time, JZJSSJ time, JZKSBM text, JZKSMC text, JZKSRQ time, JZLSH number, JZZDBM text, JZZDSM text, JZZTDM number, JZZTMC text, KH text, KLX number, MJZH text, ML number, MZZYZDZZBM text...
### Context: CREATE TABLE state ( state_code text, state_name text, country_name text ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) ...
### Context: CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, ...
### Context: CREATE TABLE table_71487 ( "Team 1" text, "Agg." text, "Team 2" text, "1st leg" text, "2nd leg" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For an aggregate of 1-3, what was the 2nd leg? ### Query: SELECT "2nd leg" FROM table_71487 ...
### Context: CREATE TABLE roller_coaster ( LENGTH VARCHAR, Height VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What are the lengths and heights of roller coasters? ### Query: SELECT LENGTH, Height FROM roller_coaster
### Context: CREATE TABLE table_24082 ( "Medal of Honor" text, "Coast Guard Cross" text, "Navy Cross" text, "Distinguished Service Cross" text, "Air Force Cross" text, "Homeland Security Distinguished Service Medal" text ) -- Using valid SQLite, answer the following questions for the tables pr...
### Context: CREATE TABLE table_79334 ( "Country" text, "Total Drivers" real, "Championship Titles" text, "Race entries (Starts)" text, "Poles" real, "Wins" real, "Podiums" real, "Fastest Laps" real, "Points" text ) -- Using valid SQLite, answer the following questions for the tabl...