instruction
stringlengths
151
7.46k
output
stringlengths
2
4.44k
source
stringclasses
26 values
CREATE TABLE table_15366768_1 ( n___n__ VARCHAR, nuclide VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the total number of N for the element with nuclide of 141 pr?
SELECT COUNT(n___n__) FROM table_15366768_1 WHERE nuclide = "141 Pr"
sql_create_context
CREATE TABLE table_11951237_2 ( title VARCHAR, original_air_date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many episodes originally aired on August 31, 1995?
SELECT COUNT(title) FROM table_11951237_2 WHERE original_air_date = "August 31, 1995"
sql_create_context
CREATE TABLE table_19789597_6 ( record VARCHAR, high_rebounds VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the record in the game where McWilliams (8) did the most high rebounds?
SELECT record FROM table_19789597_6 WHERE high_rebounds = "McWilliams (8)"
sql_create_context
CREATE TABLE people ( Name VARCHAR, People_ID VARCHAR ) CREATE TABLE debate ( Date VARCHAR, Venue VARCHAR, Debate_ID VARCHAR ) CREATE TABLE debate_people ( Debate_ID VARCHAR, Negative VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show ...
SELECT T3.Name, T2.Date, T2.Venue FROM debate_people AS T1 JOIN debate AS T2 ON T1.Debate_ID = T2.Debate_ID JOIN people AS T3 ON T1.Negative = T3.People_ID ORDER BY T3.Name
sql_create_context
CREATE TABLE area ( course_id int, area varchar ) CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE course ( course_id int, name varchar, dep...
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, semester WHERE course.course_id = course_offering.course_id AND course.department = 'EECS' AND course.number BETWEEN 300 AND 300 + 100 AND semester.semester = 'FA' AND semester.semester_id = course_offering.semester AND semester...
advising
CREATE TABLE table_name_94 ( championships INTEGER, years_won VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who won the ABA Championship in 1971?
SELECT MIN(championships) FROM table_name_94 WHERE years_won = "1971"
sql_create_context
CREATE TABLE table_25046766_3 ( title VARCHAR, original_airdate_uk VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the title of the episode that aired on October 7, 1965?
SELECT title FROM table_25046766_3 WHERE original_airdate_uk = "October 7, 1965"
sql_create_context
CREATE TABLE PostTypes ( Id number, Name text ) CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefin...
SELECT PostId AS "post_link", Text FROM Comments WHERE UserId = '##UserId##' AND Text LIKE '%fuck%'
sede
CREATE TABLE table_29513 ( "Year" text, "Summits" text, "Country" text, "Continent" text, "Elevation ft" real, "Elevation m" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the elevation in september 2009?
SELECT "Elevation m" FROM table_29513 WHERE "Year" = 'September 2009'
wikisql
CREATE TABLE table_51064 ( "Model number" text, "sSpec number" text, "Frequency" text, "GPU frequency" text, "L2 cache" text, "I/O bus" text, "Memory" text, "Socket" text, "Release date" text, "Part number(s)" text ) -- Using valid SQLite, answer the following questions for the...
SELECT "Release date" FROM table_51064 WHERE "sSpec number" = 'slbze(c0)slbr8'
wikisql
CREATE TABLE Apartment_Facilities ( apt_id INTEGER, facility_code CHAR(15) ) CREATE TABLE Apartments ( apt_id INTEGER, building_id INTEGER, apt_type_code CHAR(15), apt_number CHAR(10), bathroom_count INTEGER, bedroom_count INTEGER, room_count CHAR(5) ) CREATE TABLE View_Unit_Status...
SELECT guest_first_name, COUNT(guest_first_name) FROM Apartment_Bookings AS T1 JOIN Guests AS T2 ON T1.guest_id = T2.guest_id GROUP BY guest_first_name ORDER BY guest_first_name DESC
nvbench
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_items ( row_id number, itemid number, label text, linksto text ) CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id numb...
SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 67480) AND prescriptions.drug = 'ns'
mimic_iii
CREATE TABLE table_39916 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Points difference" text, "Tries For" text, "Tries Against" text, "Try Bonus" text, "Losing Bonus" text, "Points" text ) -- Using valid SQLite, an...
SELECT "Points" FROM table_39916 WHERE "Tries For" = '21'
wikisql
CREATE TABLE table_name_36 ( date_of_designation VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Date of designation has a Name of kurume?
SELECT date_of_designation FROM table_name_36 WHERE name = "kurume"
sql_create_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 number, F...
SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.t_kc21_PERSON_ID = '02519154' AND t_kc22.MED_CLINIC_ID IN (SELECT t_kc22.MED_CLINIC_ID FROM t_kc22 WHERE t_kc22.AMOUNT >= 6518.86)
css
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_mzjzjlb ( JZLSH number, ...
SELECT jyjgzbb.CKZFWXX, jyjgzbb.CKZFWSX FROM mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN hz_info_mzjzjlb ON hz_info_mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH AND hz_info_mzjzjlb.JZLSH = mzjzjlb.JZLSH AND hz_info_mzjzjlb.YLJGDM ...
css
CREATE TABLE table_38973 ( "Preseason" text, "Week 1 Aug 26" text, "Week 2 Sept 2" text, "Week 3 Sept 8" text, "Week 4 Sept 15" text, "Week 5 Sept 22" text, "Week 6 Sept 29" text, "Week 7 Oct 6" text, "Week 8 Oct 13" text, "Week 9 Oct 20" text, "Week 10 Oct 27" text, "Wee...
SELECT "Week 9 Oct 20" FROM table_38973 WHERE "Week 17 (Final) Jan 4" = 'michigan (10-3)'
wikisql
CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE cost ( row_id number, subject_id number, hadm_id number, event_type text, event_id number, chargetime time, ...
SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 1918) AND microbiologyevents.spec_type_desc = 'blood culture' AND DATETIME(microbiologyevents.charttime) <= DATETIME(CURRENT_TIME(), '-1 year')
mimic_iii
CREATE TABLE table_name_27 ( events INTEGER, top_5 VARCHAR, top_10 VARCHAR, tournament VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of events of PGA Championship tournaments with a top-5 less than 0?
SELECT AVG(events) FROM table_name_27 WHERE top_10 = 0 AND tournament = "pga championship" AND top_5 < 0
sql_create_context
CREATE TABLE table_57033 ( "Date" text, "Tournament" text, "Location" text, "Purse( $ )" real, "Winner" text, "Score" text, "1st Prize( $ )" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For the gte northwest classic with the score of 207 (...
SELECT AVG("1st Prize( $ )") FROM table_57033 WHERE "Score" = '207 (-9)' AND "Tournament" = 'gte northwest classic'
wikisql
CREATE TABLE table_203_729 ( id number, "township" text, "fips" number, "population\ncenter" text, "population" number, "population\ndensity\n/km2 (/sq mi)" text, "land area\nkm2 (sq mi)" text, "water area\nkm2 (sq mi)" text, "water %" text, "geographic coordinates" text ) -- U...
SELECT COUNT("township") FROM table_203_729 WHERE "water %" >= 0.50
squall
CREATE TABLE table_204_371 ( id number, "team" text, "competition" text, "category" text, "appearances\nstart" number, "appearances\nsub" number, "goals" number, "team record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was yoich...
SELECT "competition" FROM table_204_371 ORDER BY id LIMIT 1
squall
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, value_unit text,...
SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_location = "PHYS REFERRAL/NORMAL DELI" AND demographic.discharge_location = "SNF"
mimicsql_data
CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE treatment ( treatmentid number, patientunitstayid number, treatmentname text, treatmenttime time ) CREATE TABLE lab ( labid number, pat...
SELECT intakeoutput.celllabel FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '016-16960')) AND intakeoutput.cellpath LIKE '%intake%' AND S...
eicu
CREATE TABLE table_name_35 ( tournament VARCHAR, top_25 VARCHAR, cuts_made VARCHAR, wins VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What tournament did Bill Rogers play in when he had less than 7 Cuts, 0 Wins, and less than 1 Top-25?
SELECT tournament FROM table_name_35 WHERE cuts_made < 7 AND wins = 0 AND top_25 < 1
sql_create_context
CREATE TABLE t_kc21_t_kc22 ( MED_CLINIC_ID text, MED_EXP_DET_ID number ) 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, H...
SELECT t_kc21.MED_SER_ORG_NO FROM t_kc21 WHERE t_kc21.PERSON_ID = '13281397' GROUP BY t_kc21.MED_SER_ORG_NO ORDER BY COUNT(*) DESC
css
CREATE TABLE table_36434 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Stadium" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the record on august 24?
SELECT "Record" FROM table_36434 WHERE "Date" = 'august 24'
wikisql
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, LastEditorDisplayName text...
WITH USER_BY_TAG AS (SELECT ROW_NUMBER() OVER (ORDER BY COUNT(*) DESC) AS Rank, Reputation, u.Id, COUNT(*) AS UpVotes FROM Tags AS t INNER JOIN PostTags AS pt ON pt.TagId = t.Id INNER JOIN Posts AS p ON p.ParentId = pt.PostId INNER JOIN Votes AS v ON v.PostId = p.Id AND VoteTypeId = 2 INNER JOIN Users AS u ON u.Id = p....
sede
CREATE TABLE table_69448 ( "Tournament" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text ) -- Using valid SQLite, answer the following questions for the t...
SELECT "2006" FROM table_69448 WHERE "2003" = 'a' AND "2012" = 'a'
wikisql
CREATE TABLE table_32599 ( "Name" text, "Party" text, "Province (Division)" text, "Date appointed" text, "Appointed by" text, "Left office" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who appointed the conservative from Ontario on June 18, 19...
SELECT "Appointed by" FROM table_32599 WHERE "Party" = 'conservative' AND "Province (Division)" = 'ontario' AND "Date appointed" = 'june 18, 1993'
wikisql
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, MZZYZDZZBM...
SELECT * FROM hz_info JOIN zzmzjzjlb JOIN jybgb JOIN jyjgzbb ON hz_info.YLJGDM = zzmzjzjlb.YLJGDM AND hz_info.KH = zzmzjzjlb.KH AND hz_info.KLX = zzmzjzjlb.KLX AND zzmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND zzmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz_i...
css
CREATE TABLE patients ( row_id number, subject_id number, gender text, dob time, dod time ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE admissions ( row_id number, subject_id number, h...
SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 99080) AND microbiologyevents.spec_type_desc = 'staph aureus screen' AND DATETIME(microbiologyevents.charttime) <= DATETIME(CURRENT_TIME(), '-95 month')
mimic_iii
CREATE TABLE hz_info ( KH text, KLX number, RYBH text, YLJGDM text ) 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 te...
SELECT jybgb.BGDH FROM hz_info JOIN mzjzjlb JOIN jybgb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '45065975' AND jybgb.BGRQ BETWEEN '2003-05-03' AND '2009-05-24' UNION...
css
CREATE TABLE table_34533 ( "Name" text, "Town/City" text, "Borough" text, "Region" text, "Type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Name of the Multiple Type museum in Anchorage?
SELECT "Name" FROM table_34533 WHERE "Town/City" = 'anchorage' AND "Type" = 'multiple'
wikisql
CREATE TABLE program_course ( program_id int, course_id int, workload int, category varchar ) CREATE TABLE course_tags_count ( course_id int, clear_grading int, pop_quiz int, group_projects int, inspirational int, long_lectures int, extra_credit int, few_tests int, g...
SELECT DISTINCT department FROM course WHERE name LIKE '%Anthropology of Religion%'
advising
CREATE TABLE table_name_94 ( draws INTEGER, goal_difference VARCHAR, losses VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For a goal difference greater than 3 and fewer than 8 losses, what is the most draws scored?
SELECT MAX(draws) FROM table_name_94 WHERE goal_difference > 3 AND losses < 8
sql_create_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, internship varch...
SELECT COUNT(*) > 0 FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND course.department = 'NESLANG' AND course.number = 420 AND instructor.name LIKE '%Hyosang Kang%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering...
advising
CREATE TABLE table_43711 ( "Call sign" text, "Frequency MHz" real, "City of license" text, "ERP W" real, "FCC info" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which call sign has ERP Wlarger than 250, and Frequency MHZ smaller than 99.3?
SELECT "Call sign" FROM table_43711 WHERE "ERP W" > '250' AND "Frequency MHz" < '99.3'
wikisql
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, MZZYZDZZMC ...
SELECT jybgb.BBCJBW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN mzjzjlb_jybgb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = mzjzjlb_jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB AND mzjz...
css
CREATE TABLE table_22347090_6 ( production_code VARCHAR, us_viewers__million_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the production code for the episode that had 1.32 million U.S. viewers?
SELECT production_code FROM table_22347090_6 WHERE us_viewers__million_ = "1.32"
sql_create_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, value_unit text,...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.age < "86" AND procedures.short_title = "Sm bowel endoscopy NEC"
mimicsql_data
CREATE TABLE table_28117 ( "Series #" real, "Season #" real, "Title" text, "Director" text, "Writer(s)" text, "Airdate" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the title of the episode that aired on May 10, 1958?
SELECT "Title" FROM table_28117 WHERE "Airdate" = 'May 10, 1958'
wikisql
CREATE TABLE month ( month_number int, month_name text ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE days ( days_code varchar, day_name varchar ) CREATE TABLE airport_servic...
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SAN FRANCISCO' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = ...
atis
CREATE TABLE person_info ( RYBH text, XBDM number, XBMC text, XM text, CSRQ time, CSD text, MZDM text, MZMC text, GJDM text, GJMC text, JGDM text, JGMC text, XLDM text, XLMC text, ZYLBDM text, ZYMC text ) CREATE TABLE jybgb ( YLJGDM text, YLJGDM_M...
SELECT JZJSSJ FROM mzjzjlb WHERE JZLSH = '47178546840'
css
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 employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), ...
SELECT HIRE_DATE, SUM(EMPLOYEE_ID) FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) ORDER BY SUM(EMPLOYEE_ID)
nvbench
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, religion text, ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.dob_year < "2058"
mimicsql_data
CREATE TABLE table_name_90 ( rank VARCHAR, start VARCHAR, laps VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the rank when the start is 10 and the laps are fewer than 192?
SELECT rank FROM table_name_90 WHERE start = "10" AND laps < 192
sql_create_context
CREATE TABLE basketball_match ( Team_ID int, School_ID int, Team_Name text, ACC_Regular_Season text, ACC_Percent text, ACC_Home text, ACC_Road text, All_Games text, All_Games_Percent int, All_Home text, All_Road text, All_Neutral text ) CREATE TABLE university ( Scho...
SELECT Team_ID, ACC_Percent FROM basketball_match GROUP BY ACC_Regular_Season
nvbench
CREATE TABLE table_name_8 ( losses VARCHAR, games VARCHAR, team_name VARCHAR, season VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the total losses for the vancouver burrards in the 1947 season with fewer than 24 games?
SELECT COUNT(losses) FROM table_name_8 WHERE team_name = "vancouver burrards" AND season = "1947" AND games < 24
sql_create_context
CREATE TABLE table_name_42 ( service_charge VARCHAR, designation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the service chage of the boat howitzers with a 12-pdr light destination?
SELECT service_charge FROM table_name_42 WHERE designation = "12-pdr light"
sql_create_context
CREATE TABLE table_174491_2 ( winter_olympics VARCHAR, holmenkollen VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year is Winter Olympics when Holmenkollen is 1957, 1960?
SELECT winter_olympics FROM table_174491_2 WHERE holmenkollen = "1957, 1960"
sql_create_context
CREATE TABLE table_67605 ( "Name" text, "Hanzi" text, "Area(km\u00b2)" real, "Population" real, "Villages" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which town has the most villages with the hanzi and a population larger than 24,802?
SELECT MAX("Villages") FROM table_67605 WHERE "Hanzi" = '南流乡' AND "Population" > '24,802'
wikisql
CREATE TABLE table_65025 ( "Rank" real, "Athletes" text, "Country" text, "Time" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the rank of the person with a time of 1:44.757?
SELECT MAX("Rank") FROM table_65025 WHERE "Time" = '1:44.757'
wikisql
CREATE TABLE table_48603 ( "Year" real, "Track" text, "250 cc" text, "500 cc" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What track has a 250 cc of sito pons?
SELECT "Track" FROM table_48603 WHERE "250 cc" = 'sito pons'
wikisql
CREATE TABLE table_50702 ( "Place" text, "Player" text, "Country" text, "Score" text, "To par" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- With a To par of 2, what is Johnny Miller's Place?
SELECT "Place" FROM table_50702 WHERE "To par" = '–2' AND "Player" = 'johnny miller'
wikisql
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 admissions ( row_id number, subject_id number, hadm_id number, admittime time, d...
SELECT microbiologyevents.charttime FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 86786 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND microbiologyevents.spec_type_desc = 'sputum' ORDER BY microb...
mimic_iii
CREATE TABLE zzmzjzjlb ( 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, MZZYZDZ...
SELECT zzmzjzjlb.KH, zzmzjzjlb.KLX FROM zzmzjzjlb WHERE zzmzjzjlb.JZLSH = '18195078262' UNION SELECT fzzmzjzjlb.KH, fzzmzjzjlb.KLX FROM fzzmzjzjlb WHERE fzzmzjzjlb.JZLSH = '18195078262'
css
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_title text ) ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Poisoning by penicillins" AND lab.flag = "delta"
mimicsql_data
CREATE TABLE table_name_79 ( round INTEGER, method VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the sum of Round(s), when Method is 'Submission (Banana Split)'?
SELECT SUM(round) FROM table_name_79 WHERE method = "submission (banana split)"
sql_create_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, KLX number,...
SELECT jybgb.BGDH FROM hz_info JOIN wdmzjzjlb JOIN jybgb ON hz_info.YLJGDM = wdmzjzjlb.YLJGDM AND hz_info.KH = wdmzjzjlb.KH AND hz_info.KLX = wdmzjzjlb.KLX AND wdmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND wdmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '06227779' AND jybgb.BGRQ BETWEEN '2008-03-13' AND '2016-...
css
CREATE TABLE table_78782 ( "Date" text, "Venue" text, "Score" text, "Competition" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who reported the game on 6 october?
SELECT "Report" FROM table_78782 WHERE "Date" = '6 october'
wikisql
CREATE TABLE zyjzjlb ( YLJGDM text, JZLSH text, MZJZLSH text, KH text, KLX number, HZXM text, WDBZ number, RYDJSJ time, RYTJDM number, RYTJMC text, JZKSDM text, JZKSMC text, RZBQDM text, RZBQMC text, RYCWH text, CYKSDM text, CYKSMC text, CYBQDM tex...
SELECT mzjzjlb.JZLSH FROM person_info JOIN hz_info JOIN mzjzjlb ON person_info.RYBH = hz_info.RYBH AND hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX WHERE person_info.XM = '孔傲晴' AND hz_info.YLJGDM = '9262295' AND mzjzjlb.JZKSMC LIKE '%遗传%'
css
CREATE TABLE submission ( Submission_ID int, Scores real, Author text, College text ) CREATE TABLE workshop ( Workshop_ID int, Date text, Venue text, Name text ) CREATE TABLE Acceptance ( Submission_ID int, Workshop_ID int, Result text ) -- Using valid SQLite, answer the ...
SELECT Author, COUNT(DISTINCT T1.Workshop_ID) FROM Acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID ORDER BY COUNT(DISTINCT T1.Workshop_ID) DESC
nvbench
CREATE TABLE table_78198 ( "Date" text, "Location" text, "Opponent" text, "Score" text, "Competition" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score from the game where Algeria is the opponent at Porto-Novo?
SELECT "Score" FROM table_78198 WHERE "Opponent" = 'algeria' AND "Location" = 'porto-novo'
wikisql
CREATE TABLE table_20866024_2 ( model_type VARCHAR, model_designation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What model type has 97100 model designation?
SELECT model_type FROM table_20866024_2 WHERE model_designation = "97100"
sql_create_context
CREATE TABLE table_67279 ( "Club" text, "Played" text, "Drawn" text, "Lost" text, "Points for" text, "Points against" text, "Bonus points" text, "Points" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who is the club that had 617 points ...
SELECT "Club" FROM table_67279 WHERE "Drawn" = '0' AND "Points for" = '617'
wikisql
CREATE TABLE table_37590 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was home when Detroit was visiting with a score of 4 1?
SELECT "Home" FROM table_37590 WHERE "Visitor" = 'detroit' AND "Score" = '4 – 1'
wikisql
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, MZZYZDZZBM...
SELECT jybgb.JYSQJGMC, jybgb.JYJGMC FROM jybgb WHERE jybgb.BGDH = '21931181267'
css
CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE admissions ( row_id number, subject_id number, ...
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT transfers.hadm_id FROM transfers WHERE transfers.careunit = 'ccu' AND STRFTIME('%y', transfers.intime) = '2102')
mimic_iii
CREATE TABLE table_name_18 ( fastest_lap VARCHAR, winning_driver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When Michael Schumacher won the race, who had the fastest lap?
SELECT fastest_lap FROM table_name_18 WHERE winning_driver = "michael schumacher"
sql_create_context
CREATE TABLE event ( ID int, Name text, Stadium_ID int, Year text ) 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, meter_200 text...
SELECT meter_200, AVG(meter_100) FROM swimmer GROUP BY meter_200 ORDER BY meter_200 DESC
nvbench
CREATE TABLE equipment_sequence ( aircraft_code_sequence varchar, aircraft_code varchar ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, ...
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DALLAS' AND CITY_2.cit...
atis
CREATE TABLE table_25611 ( "Season" text, "Name" text, "Teams" real, "Relegated to League" text, "Promoted to League" text, "Promoted from League" text, "Relegated from League" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the name for...
SELECT "Name" FROM table_25611 WHERE "Promoted to League" = 'Doncaster Newbury'
wikisql
CREATE TABLE table_25010 ( "Year" real, "Song title" text, "Artist" text, "Master recording" text, "NA/UK/AUS/JPN/NL tier" text, "European tier" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the number of master recording for doobie brothe...
SELECT COUNT("Master recording") FROM table_25010 WHERE "Artist" = 'Doobie Brothers The Doobie Brothers'
wikisql
CREATE TABLE table_51788 ( "Tournament" text, "Wins" real, "Top-5" real, "Top-10" real, "Top-25" real, "Events" real, "Cuts made" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the most number of cuts made that had more than 7 events...
SELECT MAX("Cuts made") FROM table_51788 WHERE "Events" = '7' AND "Top-25" > '2'
wikisql
CREATE TABLE restriction ( restriction_code text, advance_purchase int, stopovers text, saturday_stay_required text, minimum_stay int, maximum_stay int, application text, no_discounts text ) CREATE TABLE flight ( aircraft_code_sequence text, airline_code varchar, airline_fli...
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, airport_service AS AIRPORT_SERVICE_2, city AS CITY_0, city AS CITY_1, city AS CITY_2, flight, flight_stop WHERE ((CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND CI...
atis
CREATE TABLE table_55947 ( "Year" real, "Title" text, "Role" text, "Studio" text, "Director" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What title was directed by Raoul Walsh later than 1945?
SELECT "Title" FROM table_55947 WHERE "Director" = 'raoul walsh' AND "Year" > '1945'
wikisql
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, time_zone_name ...
SELECT DISTINCT fare.fare_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, fare, flight, flight_fare WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'PITTSBURGH' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.c...
atis
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_title text ) ...
SELECT demographic.dischtime FROM demographic WHERE demographic.name = "Stephanie Suchan"
mimicsql_data
CREATE TABLE table_54707 ( "Catches" text, "Player" text, "Versus" text, "Venue" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had a versus of sri lanka?
SELECT "Player" FROM table_54707 WHERE "Versus" = 'sri lanka'
wikisql
CREATE TABLE diagnosis ( diagnosisid number, patientunitstayid number, diagnosisname text, diagnosistime time, icd9code text ) CREATE TABLE microlab ( microlabid number, patientunitstayid number, culturesite text, organism text, culturetakentime time ) CREATE TABLE lab ( la...
SELECT COUNT(DISTINCT t1.uniquepid) FROM (SELECT patient.uniquepid, COUNT(*) AS c1 FROM patient WHERE patient.patientunitstayid = (SELECT treatment.patientunitstayid FROM treatment WHERE treatment.treatmentname = 'thrombectomy' AND STRFTIME('%y', treatment.treatmenttime) = '2105') GROUP BY patient.uniquepid) AS t1 WHER...
eicu
CREATE TABLE film_actor ( actor_id number, film_id number, last_update time ) CREATE TABLE film ( film_id number, title text, description text, release_year time, language_id number, original_language_id number, rental_duration number, rental_rate number, length number, ...
SELECT title, rental_rate FROM film ORDER BY rental_rate DESC LIMIT 1
spider
CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, CreationDate time, DeletionDate time, ReviewT...
SELECT Answer.Score, Question.Title FROM Posts AS Question JOIN Posts AS Answer ON Question.Id = Answer.ParentId WHERE Question.PostTypeId = 1 AND Answer.PostTypeId = 2 AND Question.ClosedDate IS NULL AND (Question.Tags LIKE '%<amazon-%' OR Question.Tags LIKE '%<aws-%') AND Answer.OwnerUserId = '##UserId##' AND CAST(TI...
sede
CREATE TABLE table_name_89 ( president VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was president Year of 2002-2003, second semester?
SELECT president FROM table_name_89 WHERE year = "2002-2003, second semester"
sql_create_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_DIRE_NM text,...
SELECT COUNT(*) FROM (SELECT t_kc21.MED_ORG_DEPT_CD FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '0169842' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2001-12-21' AND '2004-06-02' GROUP BY t_kc21.MED_ORG_DEPT_CD HAVING SUM(t_kc24.MED_AMOUT) >= 7232.0) AS T
css
CREATE TABLE apartments ( apt_id number, building_id number, apt_type_code text, apt_number text, bathroom_count number, bedroom_count number, room_count text ) CREATE TABLE view_unit_status ( apt_id number, apt_booking_id number, status_date time, available_yn others ) CRE...
SELECT AVG(room_count) FROM apartments WHERE apt_type_code = "Studio"
spider
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 procedures ( ...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "6" AND diagnoses.icd9_code = "5849"
mimicsql_data
CREATE TABLE cost ( costid number, uniquepid text, patienthealthsystemstayid number, eventtype text, eventid number, chargetime time, cost number ) CREATE TABLE lab ( labid number, patientunitstayid number, labname text, labresult number, labresulttime time ) CREATE TAB...
SELECT COUNT(*) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '007-15837')) AND intakeoutput.cellpath LIKE '%output%' AND intakeoutput.ce...
eicu
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 prescriptions ( subject_id text, hadm_id...
SELECT demographic.marital_status, demographic.gender FROM demographic WHERE demographic.name = "Kenneth Koeller"
mimicsql_data
CREATE TABLE table_name_84 ( top_speed__km_h_ INTEGER, model VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the top speed of the model 1.8 20v t?
SELECT SUM(top_speed__km_h_) FROM table_name_84 WHERE model = "1.8 20v t"
sql_create_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, MED_DIRE_CD tex...
SELECT SUM(t_kc24.MED_AMOUT), SUM(t_kc24.OVE_PAY) FROM t_kc21 JOIN t_kc24 JOIN t_kc21_t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc21_t_kc24.MED_CLINIC_ID AND t_kc21_t_kc24.MED_SAFE_PAY_ID = t_kc24.MED_SAFE_PAY_ID WHERE t_kc21.MED_SER_ORG_NO = '8337353' AND t_kc24.CLINIC_SLT_DATE BETWEEN '2002-09-25' AND '2014-10-08'
css
CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, amount number ) CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE...
SELECT COUNT(*) > 0 FROM chartevents WHERE chartevents.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 8016)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [diast...
mimic_iii
CREATE TABLE table_15908 ( "Member" text, "Headquarters" text, "Classification" text, "Chapters" real, "Founded" text, "UCCFS" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Where is the headquarters of Alpha Nu Omega
SELECT "Headquarters" FROM table_15908 WHERE "Member" = 'Alpha Nu Omega'
wikisql
CREATE TABLE table_name_56 ( fate VARCHAR, nationality VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was Yugoslavia's fate?
SELECT fate FROM table_name_56 WHERE nationality = "yugoslavia"
sql_create_context
CREATE TABLE offering_instructor ( offering_instructor_id int, offering_id int, instructor_id int ) CREATE TABLE comment_instructor ( instructor_id int, student_id int, score int, comment_text varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE cours...
SELECT DISTINCT course_offering.end_time, course_offering.section_number, course_offering.start_time FROM course, course_offering, semester WHERE course_offering.start_time > '10:00' AND course.course_id = course_offering.course_id AND course.department = 'CLIMATE' AND course.number = 440 AND semester.semester = 'WN' A...
advising
CREATE TABLE table_12791809_1 ( super_b_capacity_reached_ VARCHAR, _citation_needed_ VARCHAR, freight_carried_s_tonne VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When was the super b capacity reached when the freight carried s tonne was 198818?
SELECT super_b_capacity_reached_ AS "_citation_needed_" FROM table_12791809_1 WHERE freight_carried_s_tonne = 198818
sql_create_context
CREATE TABLE table_name_36 ( years VARCHAR, goals VARCHAR, games VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year had more than 2 goals and 11 (2) games?
SELECT years FROM table_name_36 WHERE goals > 2 AND games = "11 (2)"
sql_create_context
CREATE TABLE instruments ( bandmateid VARCHAR ) CREATE TABLE Band ( id VARCHAR, lastname VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find all the instruments ever used by the musician with last name 'Heilo'?
SELECT instrument FROM instruments AS T1 JOIN Band AS T2 ON T1.bandmateid = T2.id WHERE T2.lastname = "Heilo"
sql_create_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, MZZYZDZZMC ...
SELECT zyjzjlb.ZYZDBM, zyjzjlb.ZYZDMC FROM hz_info JOIN zyjzjlb ON hz_info.YLJGDM = zyjzjlb.YLJGDM AND hz_info.KH = zyjzjlb.KH AND hz_info.KLX = zyjzjlb.KLX WHERE hz_info.RYBH = '07162961'
css
CREATE TABLE injury_accident ( game_id int, id int, Player text, Injury text, Number_of_matches text, Source text ) CREATE TABLE game ( stadium_id int, id int, Season int, Date text, Home_team text, Away_team text, Score text, Competition text ) CREATE TABLE sta...
SELECT Season, COUNT(Season) FROM game GROUP BY Home_team ORDER BY Season DESC
nvbench