text
stringlengths
197
8.39k
### Context: CREATE TABLE table_43041 ( "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 Away, when Home is Guelph Gargoyles? ### Query: SELECT "Away" FROM table_4...
### Context: CREATE TABLE classroom ( building varchar(15), room_number varchar(7), capacity numeric(4,0) ) CREATE TABLE instructor ( ID varchar(5), name varchar(20), dept_name varchar(20), salary numeric(8,2) ) CREATE TABLE department ( dept_name varchar(20), building varchar(15),...
### Context: CREATE TABLE table_10812938_5 ( pick__number INTEGER, cfl_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the pick number of the player from Toronto Argonauts? ### Query: SELECT MIN(pick__number) FROM table_10812938_5 WHERE cfl_team ...
### Context: CREATE TABLE table_65371 ( "Name" text, "Team" text, "Qual 1" text, "Qual 2" text, "Best" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the the Best of rodolfo lav n ### Query: SELECT "Best" FROM table_65371 WHERE "Name" = 'rodol...
### Context: CREATE TABLE table_11391954_3 ( Half INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the minimum number for the half marathon (womens)? ### Query: SELECT MIN(Half) AS marathon__womens_ FROM table_11391954_3
### Context: CREATE TABLE table_29678 ( "Tournament" text, "Games played" real, "Points per game" text, "Rebounds per game" text, "Assists per game" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many points per game did he have when he had 1.5 ...
### Context: CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long...
### Context: CREATE TABLE table_26739 ( "Series No." real, "Episode No." real, "Title" text, "Directed by" text, "Written by" text, "UK Ratings (BBC2 Rank)" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who wrote t...
### Context: CREATE TABLE table_44686 ( "Conference" text, "Bids" real, "Record" text, "Win %" real, "Quarterfinals" text, "Semifinals" text, "Final" text, "Champions" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Bids, when Cha...
### Context: CREATE TABLE t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_ID number ) 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, I...
### Context: CREATE TABLE table_name_12 ( silver VARCHAR, republic VARCHAR, total VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me total number of Silver that has the Republic of latvian ssr, and the Total larger than 6? ### Query: SELECT ...
### Context: CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE outputevents ( ...
### Context: CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_ca...
### Context: CREATE TABLE table_1816947_2 ( highest_attendance_away VARCHAR, average_attendance_home VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the home attendance is 3.123, what's the highest away attendance? ### Query: SELECT highest_attendance_a...
### 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 hz_info ( KH text, ...
### Context: CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime time ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresult...
### Context: CREATE TABLE table_16048129_5 ( number_of_families VARCHAR, _percentage_of_total_deportees VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many total families are there in regions with 5.8 percent of the population being made up of deportees?...
### Context: CREATE TABLE table_19827 ( "North Carolina" text, "273.7%" text, "South Carolina" text, "132.1%" text, "Mississippi" text, "95.8%" text, "Wisconsin" text, "59.4%" text, "Vermont" text, "32.5%" text ) -- Using valid SQLite, answer the following questions for the tab...
### Context: CREATE TABLE table_52581 ( "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. -- Name the surface for score of 7 6(4), 6 1 ### Query: SELECT "Surface" FROM ...
### Context: CREATE TABLE requirement ( requirement_id int, requirement varchar, college varchar ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE student_record ( student_id int, course_id int, semester int, ...
### 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_20052 ( "Position" real, "Team" text, "Points" real, "Played" real, "Won" real, "Drawn" real, "Lost" real, "For" real, "Against" real, "Difference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Wh...
### Context: CREATE TABLE table_203_354 ( id number, "party" text, "candidate(s)" text, "votes" number, "percentage" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in the 1996 forum , which candidate had the least votes ? ### Query: SELECT "candi...
### Context: CREATE TABLE table_57677 ( "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. -- When fitzroy was the home team, how...
### Context: CREATE TABLE table_name_18 ( week__number VARCHAR, original_artist VARCHAR, theme VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Week # when the Beatles were the original artist and the theme was The Beatles? ### Query: SELECT w...
### Context: CREATE TABLE table_42239 ( "Television service" text, "Country" text, "Language" text, "Content" text, "HDTV" text, "Package/Option" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the content when the package/option is quals...
### Context: CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE medication ( medicationid number, patientunitstayid number, drugname text, dosage text, routeadmin text, drugstarttime time, drugstoptime...
### Context: CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, dose_val_rx text, dose_unit_rx text, route text ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, ...
### Context: CREATE TABLE table_18236 ( "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. -- To what party does Cardiss Collins belong? ### Query: SELE...
### Context: CREATE TABLE table_204_721 ( id number, "rank" number, "wrestler" text, "no. of reigns" number, "combined\ndefenses" number, "combined\ndays" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the difference in the number of c...
### 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 medicati...
### Context: CREATE TABLE table_10695 ( "Party" text, "1999 Election" real, "2003 Election" real, "2007 Election" real, "May 2010" real, "2011 Election" real, "May 2012" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which election, in 2003 ...
### Context: CREATE TABLE hz_info_mzjzjlb ( JZLSH number, YLJGDM number, mzjzjlb_id number ) 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, XL...
### Context: CREATE TABLE table_29218221_2 ( rank VARCHAR, tues_31_may VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rank of the rider whose Tues 31 May time was 19' 02.34 118.903mph? ### Query: SELECT rank FROM table_29218221_2 WHERE tues_31_m...
### 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 Customer_Event_Notes ( Customer_Event_Note_ID INTEGER, Customer_Event_ID INTEGER, service_type_code CHAR(15), resident_id INTEGER, property_id INTEGER, date_moved_in DATETIME ) CREATE TABLE Timed_Status_of_Things ( thing_id INTEGER, Date_and_Date DATETIME, ...
### Context: CREATE TABLE table_54180 ( "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 day is st kilda the home side?...
### Context: CREATE TABLE table_name_78 ( works_number INTEGER, type VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total works number of the locomotive with 0-6-4t type after 1875? ### Query: SELECT SUM(works_number) FROM tabl...
### Context: CREATE TABLE table_15318 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many laps were in 1958? ### Query: SELECT SUM("Laps") FROM table_15318 WHERE "...
### 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_name_66 ( competition VARCHAR, final_position VARCHAR, final_round VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What competition had a final round in the finals and the final position winners? ### Query: SELECT competit...
### Context: CREATE TABLE table_14950 ( "Code Name" text, "Function (figure)" text, "Real Name" text, "Birthplace" text, "Serial number" text, "Primary military speciality" text, "Secondary military speciality" text ) -- Using valid SQLite, answer the following questions for the tables pro...
### Context: CREATE TABLE table_name_40 ( height_feet___m VARCHAR, street_address VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is listsed as the Height feet/m and has a Street address of 2345 Grand Avenue? ### Query: SELECT height_feet___m FROM table...
### Context: CREATE TABLE table_23235767_4 ( surface VARCHAR, championship VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the surface for philadelphia ### Query: SELECT surface FROM table_23235767_4 WHERE championship = "Philadelphia"
### Context: CREATE TABLE table_name_73 ( result VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the result of the game against Ayr United? ### Query: SELECT result FROM table_name_73 WHERE opponent = "ayr united"
### Context: CREATE TABLE table_name_76 ( no_5 VARCHAR, no_4 VARCHAR, no_1 VARCHAR, no_8 VARCHAR, no_2 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When Chloe was number 8, Olivia was number 2, Emma was number 1, and Ava was number 4, who was n...
### Context: CREATE TABLE table_71532 ( "name" text, "type" text, "elevation" text, "USGS Map" text, "GNIS ID" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What type has a GNIS ID of 1139805 ### Query: SELECT "type" FROM table_71532 WHERE "GNIS I...
### Context: CREATE TABLE table_name_84 ( away_captain VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the captain of the away team at Adelaide Oval? ### Query: SELECT away_captain FROM table_name_84 WHERE venue = "adelaide oval"
### Context: CREATE TABLE table_30496 ( "Name" text, "Corporate name" text, "Regional district" text, "Incorporation date (city)" text, "Population (2011)" real, "Population (2006)" real, "Change (%)" text, "Area (km\u00b2)" text, "Population density" text ) -- Using valid SQLite, ...
### Context: CREATE TABLE table_name_50 ( col__m_ INTEGER, peak VARCHAR, prominence__m_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the lowest Col (m) with a Peak of pico basil , and a Prominence (m) smaller than 3,011? ### Query: SELECT MIN(col...
### Context: CREATE TABLE table_204_842 ( id number, "institution" text, "city" text, "state" text, "team name" text, "affiliation" text, "enrollment" number, "home conference" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which state i...
### Context: CREATE TABLE table_name_12 ( away_team VARCHAR, home_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the home team of South Melbourne? ### Query: SELECT away_team FROM table_name_12 WHERE home_team = "south melbourne"
### Context: CREATE TABLE table_797 ( "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. -- When was incumbent John N. Tillman first elected? ### Query:...
### Context: CREATE TABLE table_name_15 ( date VARCHAR, opponent VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the date when bye was opponent ### Query: SELECT date FROM table_name_15 WHERE opponent = "bye"
### Context: CREATE TABLE table_name_57 ( gold INTEGER, total VARCHAR, silver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the low gold total for under 2 total and over 0 silvers? ### Query: SELECT MIN(gold) FROM table_name_57 WHERE total < 2 ...
### Context: CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE labevents ( row_id numb...
### 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 lab ( subject_id text, hadm...
### Context: CREATE TABLE Invoice_Items ( Invoice_Item_ID INTEGER, Invoice_ID INTEGER, Order_ID INTEGER, Order_Item_ID INTEGER, Product_ID INTEGER, Order_Quantity INTEGER, Other_Item_Details VARCHAR(255) ) CREATE TABLE Order_Items ( Order_Item_ID INTEGER, Order_ID INTEGER, Produ...
### Context: CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid number, last_wardid number, intime time, outtime time ) CREATE TABLE prescriptions ( row_id number, subject_id ...
### Context: CREATE TABLE manager_award ( player_id text, award_id text, year number, league_id text, tie text, notes number ) CREATE TABLE all_star ( player_id text, year number, game_num number, game_id text, team_id text, league_id text, gp number, starting_po...
### Context: CREATE TABLE table_36229 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" real, "Time" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many rounds did the match go for t...
### 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 regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME ...
### Context: CREATE TABLE table_204_455 ( id number, "rd." number, "grand prix" text, "date" text, "location" text, "pole position" text, "fastest lap" text, "winning driver" text, "constructor" text, "report" text ) -- Using valid SQLite, answer the following questions for the...
### Context: CREATE TABLE Player ( pID numeric(5,0), pName varchar(20), yCard varchar(3), HS numeric(5,0) ) CREATE TABLE Tryout ( pID numeric(5,0), cName varchar(20), pPos varchar(8), decision varchar(3) ) CREATE TABLE College ( cName varchar(20), state varchar(2), enr nume...
### Context: CREATE TABLE table_46943 ( "Year" real, "Men's Open" text, "Women's Open" text, "Mixed Open" text, "Men's u20" text, "Women's u20" text, "Senior Mixed" text, "Men's 30" text, "Women's 30" text, "Men's 35" text, "Women's 35" text, "Men's 40" text, "Women's...
### Context: CREATE TABLE table_204_891 ( id number, "name" text, "hanzi" text, "population (2005)" number, "area (km2)" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which divisions had a population below 15,000 in 2005 ? ### Query: SELECT "nam...
### Context: CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) 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_co...
### Context: CREATE TABLE table_9370 ( "Year" text, "Starts" real, "Wins" real, "Top Fives" real, "Top Tens" real, "Poles" real, "Rank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of top fives in 2010 when casey m...
### 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 prescriptions ( subject_id text, hadm_id text, icustay_id text, drug_type text, drug text, formulary_drug...
### Context: CREATE TABLE table_name_60 ( opponent VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent on the game on April 14, 2007? ### Query: SELECT opponent FROM table_name_60 WHERE date = "april 14, 2007"
### 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 chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, ...
### Context: CREATE TABLE paperkeyphrase ( paperid int, keyphraseid int ) CREATE TABLE cite ( citingpaperid int, citedpaperid int ) CREATE TABLE paper ( paperid int, title varchar, venueid int, year int, numciting int, numcitedby int, journalid int ) CREATE TABLE writes ( ...
### Context: CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ...
### Context: CREATE TABLE district ( District_ID int, District_name text, Headquartered_City text, City_Population real, City_Area real ) CREATE TABLE store ( Store_ID int, Store_Name text, Type text, Area_size real, Number_of_product_category real, Ranking int ) CREATE TAB...
### Context: CREATE TABLE table_35656 ( "Year" real, "League" text, "Class" text, "Record" text, "Finish" text, "Manager" text, "Playoffs" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Manager of lyman lamb / marty berghammer is in what lea...
### Context: CREATE TABLE table_train_243 ( "id" int, "c_peptide_level" float, "finger_stick_measurements" bool, "diabetic" string, "fasting_blood_glucose_fbg" float, "hypoglycemia" bool, "insulin_requirement" float, "triglyceride_tg" float, "a1c" float, "age" float, "NOUSE" ...
### Context: CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE allergy ( allergyid number, patientunitstayid number, drugname text, allergyname text, allergytime time ) CREATE TABLE diagnosis ( diagnosis...
### Context: CREATE TABLE table_6069 ( "Player" text, "Position" text, "Date of Birth (Age)" text, "Caps" real, "Club/province" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the club/province of player Alberto Sgarbi, who played wing, with ...
### Context: CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE icustays ( row_id number, subject_id number, hadm_id number, icustay_id number, first_careunit text, last_careunit text, first_wardid...
### Context: CREATE TABLE table_name_54 ( laps VARCHAR, rider VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of Laps, when Ride is Aleix Espargaro? ### Query: SELECT COUNT(laps) FROM table_name_54 WHERE rider = "aleix espargaro"
### Context: CREATE TABLE table_39354 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Partner" text, "Opponents in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which opponent in th...
### Context: CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE PostTags ( PostId number, TagId number ) CREATE TABLE Tags ( Id number, TagName ...
### Context: CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, MarkdownPostOwnerGuidance text, MarkdownPrivilegedUserGuidance text, MarkdownConcensusDescription text, CreationDate time, CreationModeratorId number, ...
### Context: CREATE TABLE course_prerequisite ( pre_course_id int, course_id int ) CREATE TABLE jobs ( job_id int, job_title varchar, description varchar, requirement varchar, city varchar, state varchar, country varchar, zip int ) CREATE TABLE comment_instructor ( instruct...
### Context: CREATE TABLE table_19487 ( "Pick #" real, "NFL Team" text, "Player" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which team does Robert Brooks play with? ### Query: SELECT "NFL Team" FROM table_19487 ...
### Context: CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug t...
### Context: CREATE TABLE table_name_82 ( club VARCHAR, country VARCHAR, goals VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What club was in Netherlands and had 22 goals? ### Query: SELECT club FROM table_name_82 WHERE country = "netherlands" AND goal...
### Context: CREATE TABLE table_name_37 ( loss VARCHAR, opponent VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who lost when the mariners played on September 12? ### Query: SELECT loss FROM table_name_37 WHERE opponent = "mariners" AND da...
### Context: CREATE TABLE table_test_2 ( "id" int, "loss_of_consciousness" bool, "gender" string, "bleeding" int, "systolic_blood_pressure_sbp" int, "stroke" bool, "renal_disease" bool, "hemorrhagic_diathesis" bool, "transient_ischemic_attack" bool, "creatinine_clearance_cl" floa...
### Context: CREATE TABLE table_name_26 ( title VARCHAR, label VARCHAR, year VARCHAR, Nr VARCHAR, st VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the song title from 1963 on the Pacific Jazz label, and a Label-Nr of st-81? ### Query: S...
### Context: CREATE TABLE table_58076 ( "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 is the total Crowd with a Home...
### Context: CREATE TABLE hz_info_zyjzjlb ( JZLSH number, YLJGDM number, zyjzjlb_id number ) 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, ...
### Context: CREATE TABLE table_26301697_2 ( represents VARCHAR, height__cm_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the represents for 1.76 cm ### Query: SELECT represents FROM table_26301697_2 WHERE height__cm_ = "1.76"
### Context: CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE labevents ( row_id number, subject_id number, hadm_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE patients ( row_id number, subject_id...
### Context: CREATE TABLE table_name_18 ( year INTEGER, competition VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year was the Competition of World Junior Championships with a 20th (qf) position? ### Query: SELECT AVG(year) FROM ...
### Context: CREATE TABLE jybgb ( YLJGDM text, YLJGDM_MZJZJLB text, YLJGDM_ZYJZJLB text, BGDH text, BGRQ time, JYLX number, JZLSH text, JZLSH_MZJZJLB text, JZLSH_ZYJZJLB text, JZLX number, KSBM text, KSMC text, SQRGH text, SQRXM text, BGRGH text, BGRXM tex...
### 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 STUDENT ( STU_NUM int, STU_LNAME varchar(15), STU_FNAME varchar(15), STU_INIT varchar(1), STU_DOB datetime, STU_HRS int, STU_CLASS varchar(2), STU_GPA float(8), STU_TRANSFER numeric, DEPT_CODE varchar(18), STU_PHONE varchar(4), PROF_NUM int ) CR...
### Context: CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time, admission_type text, admission_location text, discharge_location text, insurance text, language text, marital_status text, ethnicity text, age numb...