instruction
stringlengths
151
7.46k
output
stringlengths
2
4.44k
source
stringclasses
26 values
CREATE TABLE departments ( department_id number, department_name text, manager_id number, location_id number ) CREATE TABLE job_history ( employee_id number, start_date time, end_date time, job_id text, department_id number ) CREATE TABLE countries ( country_id text, countr...
SELECT first_name, last_name FROM employees WHERE salary > (SELECT salary FROM employees WHERE employee_id = 163)
spider
CREATE TABLE table_name_28 ( lifespan VARCHAR, state VARCHAR, representative VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the lifespan of Representative Harry P. O'neill from the state of Pennsylvania?
SELECT lifespan FROM table_name_28 WHERE state = "pennsylvania" AND representative = "harry p. o'neill"
sql_create_context
CREATE TABLE table_24446718_3 ( awardee_s_ VARCHAR, name_of_award VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the awardees for best special effects
SELECT awardee_s_ FROM table_24446718_3 WHERE name_of_award = "Best Special Effects"
sql_create_context
CREATE TABLE table_name_91 ( match VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What match had 8 points?
SELECT match FROM table_name_91 WHERE points = "8"
sql_create_context
CREATE TABLE table_176524_2 ( population INTEGER, area_km_2 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the minimum population of the parish with a 750.51 km area?
SELECT MIN(population) FROM table_176524_2 WHERE area_km_2 = "750.51"
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 COUNT(*) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '0444106' AND t_kc21.IN_HOSP_DATE BETWEEN '2010-12-18' AND '2020-06-03' AND t_kc21.CLINIC_TYPE = '住院'
css
CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE employees ( EMPLOYEE_ID decimal(6,0), FIRST_NAME varchar(20), LAST_NAME varchar(25), EMAIL varchar(25), PHONE_NUMBER varchar(20), HIRE_DATE date, JO...
SELECT HIRE_DATE, SUM(DEPARTMENT_ID) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY SUM(DEPARTMENT_ID) DESC
nvbench
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) ) CREATE TABLE Ref_Address_Types ( address_type_code VARCHAR(15), address_type_description VARCHAR(80) ) CREATE TABLE...
SELECT date_address_from, COUNT(date_address_from) FROM Student_Addresses ORDER BY monthly_rental DESC
nvbench
CREATE TABLE table_name_82 ( entrant VARCHAR, year VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Entrant older than 1950 has points smaller than 7?
SELECT entrant FROM table_name_82 WHERE year > 1950 AND points < 7
sql_create_context
CREATE TABLE table_22910 ( "Carrier" text, "Standard" text, "Frequency" text, "Connection speed" text, "Launch date (dd.mm.yyyy)" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the launch date is 14.09.2005, and the frequency is 900mhz and 1800...
SELECT COUNT("Carrier") FROM table_22910 WHERE "Frequency" = '900MHz and 1800MHz' AND "Launch date (dd.mm.yyyy)" = '14.09.2005'
wikisql
CREATE TABLE table_name_66 ( circuit VARCHAR, winning_driver VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which circuit did Michael Andretti win?
SELECT circuit FROM table_name_66 WHERE winning_driver = "michael andretti"
sql_create_context
CREATE TABLE ENROLLED_IN ( Grade VARCHAR, StuID VARCHAR ) CREATE TABLE STUDENT ( LName VARCHAR, StuID VARCHAR ) CREATE TABLE GRADECONVERSION ( gradepoint INTEGER, lettergrade VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the average g...
SELECT AVG(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = "Smith"
sql_create_context
CREATE TABLE table_name_75 ( canada_singles VARCHAR, year VARCHAR, us_ac VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Canada singles in 1979 with a US A.C. of 24?
SELECT canada_singles FROM table_name_75 WHERE year = 1979 AND us_ac = "24"
sql_create_context
CREATE TABLE table_37762 ( "Year" real, "Class" text, "Team" text, "Points" real, "Rank" text, "Wins" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many wins had less than 91 points in 25th rank?
SELECT "Wins" FROM table_37762 WHERE "Points" < '91' AND "Rank" = '25th'
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 jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW 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 jyb...
css
CREATE TABLE table_name_6 ( floors INTEGER, name VARCHAR, rank VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average amount of floors of the building that is ranked larger than 30, a year prior to 1977 and an address of 100...
SELECT AVG(floors) FROM table_name_6 WHERE rank > 30 AND year < 1977 AND name = "100 van ness avenue"
sql_create_context
CREATE TABLE routes ( rid number, dst_apid number, dst_ap text, src_apid number, src_ap text, alid number, airline text, codeshare text ) CREATE TABLE airlines ( alid number, name text, iata text, icao text, callsign text, country text, active text ) CREATE ...
SELECT COUNT(*) FROM airlines
spider
CREATE TABLE table_64645 ( "Name" text, "Nickname" text, "Location" text, "Home ground(s)" text, "Coach" text, "Captain" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Name has the Location of Bayswater?
SELECT "Name" FROM table_64645 WHERE "Location" = 'bayswater'
wikisql
CREATE TABLE table_54018 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Leading scorer" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the date of the game in which the home team was the Grizzlies and the visi...
SELECT "Date" FROM table_54018 WHERE "Home" = 'grizzlies' AND "Visitor" = 'timberwolves'
wikisql
CREATE TABLE table_5486 ( "Frequency" real, "Callsign" text, "Brand" text, "Format" text, "City of License" text, "Website" text, "Webcast" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Tejano webcast has a callsign of KBDR?
SELECT "Webcast" FROM table_5486 WHERE "Format" = 'tejano' AND "Callsign" = 'kbdr'
wikisql
CREATE TABLE d_icd_procedures ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE d_icd_diagnoses ( row_id number, icd9_code text, short_title text, long_title text ) CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number,...
SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT t1.itemid FROM (SELECT outputevents.itemid, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM outputevents WHERE STRFTIME('%y', outputevents.charttime) <= '2103' GROUP BY outputevents.itemid) AS t1 WHERE t1.c1 <= 3)
mimic_iii
CREATE TABLE table_203_135 ( id number, "institution" text, "location" text, "founded" number, "type" text, "enrollment" number, "joined" number, "nickname" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the last school to be fou...
SELECT "institution" FROM table_203_135 ORDER BY "founded" DESC LIMIT 1
squall
CREATE TABLE table_name_84 ( total INTEGER, gold VARCHAR, bronze VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What average Total has a Gold award of 13 and a Bronze award less than 13?
SELECT AVG(total) FROM table_name_84 WHERE gold = 13 AND bronze < 13
sql_create_context
CREATE TABLE ftxmzjzjlb ( 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, MZZYZD...
SELECT * FROM hz_info JOIN txmzjzjlb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX WHERE hz_info.RYBH = '92492816' AND hz_info.YLJGDM = '2726098' AND txmzjzjlb.JZZDSM LIKE '%扁桃体炎%' UNION SELECT * FROM hz_info JOIN ftxmzjzjlb ON hz_info.YLJGDM = ftxmzjzjlb.YLJGDM AND ...
css
CREATE TABLE table_60889 ( "Team" text, "Club home city" text, "2006\u201307 Season" text, "Stadium" text, "Stadium capacity" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Stadium, when Club Home City is 'Pe ', and when 2006-07 Season is '1...
SELECT "Stadium" FROM table_60889 WHERE "Club home city" = 'peć' AND "2006\u201307 Season" = '1st'
wikisql
CREATE TABLE table_name_99 ( year INTEGER, entrant VARCHAR, points VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What year did Austria-Marlboro BRM get more than 0 points?
SELECT AVG(year) FROM table_name_99 WHERE entrant = "austria-marlboro brm" AND points > 0
sql_create_context
CREATE TABLE table_name_5 ( total VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many total appearances did Grant Brebner have?
SELECT total FROM table_name_5 WHERE name = "grant brebner"
sql_create_context
CREATE TABLE table_34099 ( "Game" real, "February" real, "Opponent" text, "Score" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average February that has 56 as the game?
SELECT AVG("February") FROM table_34099 WHERE "Game" = '56'
wikisql
CREATE TABLE Has_Allergy ( StuID INTEGER, Allergy VARCHAR(20) ) CREATE TABLE Allergy_Type ( Allergy VARCHAR(20), AllergyType VARCHAR(20) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1), Major INTEGER, Advisor INTEGER...
SELECT T1.Allergy, COUNT(T1.Allergy) FROM Allergy_Type AS T1 JOIN Has_Allergy AS T2 ON T1.Allergy = T2.Allergy JOIN Student AS T3 ON T3.StuID = T2.StuID WHERE T3.Fname = "Lisa" GROUP BY T1.Allergy ORDER BY T1.Allergy
nvbench
CREATE TABLE table_name_47 ( avg_speed VARCHAR, winning_driver VARCHAR, make VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the average speed of Tony Stewart's winning Chevrolet Impala?
SELECT avg_speed FROM table_name_47 WHERE winning_driver = "tony stewart" AND make = "chevrolet impala"
sql_create_context
CREATE TABLE table_66167 ( "Rank:" real, "Premier:" text, "Party:" text, "Assumed Office:" text, "Left Office:" text, "TOTAL Time in Office:" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the total time in office when the assumed office...
SELECT "TOTAL Time in Office:" FROM table_66167 WHERE "Assumed Office:" = '1 november 1856'
wikisql
CREATE TABLE table_48548 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the score for the Tie no. 12?
SELECT "Score" FROM table_48548 WHERE "Tie no" = '12'
wikisql
CREATE TABLE table_name_15 ( method VARCHAR, round INTEGER ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which method was used in a round greater than 3?
SELECT method FROM table_name_15 WHERE round > 3
sql_create_context
CREATE TABLE table_name_63 ( wins INTEGER, top_10 VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many total wins are associated with events with 1 top-10?
SELECT SUM(wins) FROM table_name_63 WHERE top_10 = 1
sql_create_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, MZZYZDZZBM...
SELECT jyjgzbb.JCFF FROM hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb 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 AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGDH = jyjgzbb.BGDH WHERE hz_in...
css
CREATE TABLE Customers ( Customer_ID VARCHAR(100), Address_ID INTEGER, Customer_Name VARCHAR(255), Customer_Phone VARCHAR(255), Customer_Email_Address VARCHAR(255), Other_Details VARCHAR(255) ) CREATE TABLE Products ( Product_ID VARCHAR(100), Product_Name VARCHAR(255), Product_Price...
SELECT Service_Type_Description, COUNT(Service_Type_Description) FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Price > 100 GROUP BY Service_Type_Description ORDER BY Service_Type_Description DESC
nvbench
CREATE TABLE table_58384 ( "Ship" text, "Pennant number" text, "Laid down" text, "Launched" text, "Completed" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When is the completed date of the destroyer with a pennant number h59?
SELECT "Completed" FROM table_58384 WHERE "Pennant number" = 'h59'
wikisql
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 t_kc21.MED_ORG_DEPT_NM, t_kc21.IN_DIAG_DIS_NM, AVG(t_kc21.PERSON_AGE) FROM t_kc21 WHERE t_kc21.MED_SER_ORG_NO = '8862206' GROUP BY t_kc21.MED_ORG_DEPT_NM, t_kc21.IN_DIAG_DIS_NM HAVING AVG(t_kc21.PERSON_AGE) < 5
css
CREATE TABLE bdmzjzjlb ( CYBQDM text, CYBQMC text, CYCWH text, CYKSDM text, CYKSMC text, CYSJ time, CYZTDM number, HZXM text, JZKSDM text, JZKSMC text, JZLSH number, KH text, KLX number, MZBMLX number, MZJZLSH text, MZZDBM text, MZZDMC text, MZZYZD...
SELECT jybgb.BBCJBW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN 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 = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE person_info.XM = '凤飞尘' AND jy...
css
CREATE TABLE table_70272 ( "Name" text, "League" real, "Play-offs" real, "FA Cup" real, "League Cup" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What's the total number of League Cup with a Play-off larger than 2, and a Name of ...
SELECT COUNT("League Cup") FROM table_70272 WHERE "Play-offs" > '2' AND "Name" = 'mitch cook category:articles with hcards'
wikisql
CREATE TABLE table_1057262_1 ( commodity VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the minimum amount for wool for 2001-02?
SELECT MIN(2001 AS _02) FROM table_1057262_1 WHERE commodity = "Wool"
sql_create_context
CREATE TABLE PostHistoryTypes ( Id number, Name text ) CREATE TABLE Votes ( Id number, PostId number, VoteTypeId number, UserId number, CreationDate time, BountyAmount number ) CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden ...
SELECT TagName, COUNT(ClosedPost.Id) / CAST(COUNT(*) AS FLOAT) AS ClosedRatio, COUNT(*) AS QuestionCount FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON PostTags.PostId = Posts.Id LEFT JOIN Posts AS ClosedPost ON Posts.Id = ClosedPost.Id AND ClosedPost.ClosedDate != '' WHERE Posts.PostType...
sede
CREATE TABLE table_name_99 ( constituency_number VARCHAR, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which constituency number has a name of Timarni?
SELECT constituency_number FROM table_name_99 WHERE name = "timarni"
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 * FROM jybgb WHERE jybgb.JZLSH = '35405343075'
css
CREATE TABLE table_name_51 ( place VARCHAR, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the place of the player with a 72-70-67=209 score?
SELECT place FROM table_name_51 WHERE score = 72 - 70 - 67 = 209
sql_create_context
CREATE TABLE table_name_69 ( name VARCHAR, round VARCHAR, position VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the name of the ot position player with a round greater than 4?
SELECT name FROM table_name_69 WHERE round > 4 AND position = "ot"
sql_create_context
CREATE TABLE t_kc21 ( MED_CLINIC_ID text, OVERALL_CD_ORG text, OVERALL_CD_PERSON text, COMP_ID text, PERSON_ID text, PERSON_NM text, IDENTITY_CARD text, SOC_SRT_CARD text, PERSON_SEX number, PERSON_AGE number, IN_HOSP_DATE time, OUT_HOSP_DATE time, DIFF_PLACE_FLG numb...
SELECT t_kc21.MED_ORG_DEPT_CD, AVG(t_kc24.OVE_PAY / t_kc24.MED_AMOUT) FROM t_kc21 JOIN t_kc24 ON t_kc21.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE t_kc21.MED_SER_ORG_NO = '7336183' GROUP BY t_kc21.MED_ORG_DEPT_CD
css
CREATE TABLE table_name_58 ( gold_coast VARCHAR, auckland VARCHAR, adelaide VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Gold Coast has Auckland cancelled, and Adelaide yes?
SELECT gold_coast FROM table_name_58 WHERE auckland = "cancelled" AND adelaide = "yes"
sql_create_context
CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE Badges ( Id number, UserId number, Name text, Date time, Class number, TagBased boolean ) CREATE TABL...
SELECT TIME_TO_STR(Posts.CreationDate, '%h') AS Hour, COUNT(Posts.Id) AS Questions FROM Posts WHERE PostTypeId = 1 GROUP BY TIME_TO_STR(Posts.CreationDate, '%h') ORDER BY TIME_TO_STR(Posts.CreationDate, '%h')
sede
CREATE TABLE table_20857 ( "Year" real, "Date" text, "Driver" text, "Team" text, "Manufacturer" text, "Laps" text, "Miles (km)" text, "Race time" text, "Average speed (mph)" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided abov...
SELECT "Driver" FROM table_20857 WHERE "Date" = 'June 23' AND "Team" = 'Penske Racing'
wikisql
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 INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND prescriptions.formulary_drug_cd = "GLYC1R"
mimicsql_data
CREATE TABLE table_name_7 ( points INTEGER, chassis VARCHAR, year VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For a year earlier than 1991 and a reynard 91d chassis, what's the highest points?
SELECT MAX(points) FROM table_name_7 WHERE chassis = "reynard 91d" AND year < 1991
sql_create_context
CREATE TABLE PostLinks ( Id number, CreationDate time, PostId number, RelatedPostId number, LinkTypeId number ) CREATE TABLE PostHistory ( Id number, PostHistoryTypeId number, PostId number, RevisionGUID other, CreationDate time, UserId number, UserDisplayName text, ...
SELECT 'Migrated Here', COUNT(*) AS "total" FROM Posts AS P JOIN PostHistory AS H ON P.Id = H.PostId WHERE PostTypeId = 1 AND h.PostHistoryTypeId = 36 UNION SELECT 'Migrated Away', COUNT(*) AS "total" FROM Posts AS P JOIN PostHistory AS H ON P.Id = H.PostId WHERE PostTypeId = 1 AND h.PostHistoryTypeId = 35 UNION SELECT...
sede
CREATE TABLE table_name_1 ( chart_positions VARCHAR, format VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What chart positions did the album reach when ep was the format?
SELECT chart_positions FROM table_name_1 WHERE format = "ep"
sql_create_context
CREATE TABLE table_name_63 ( college VARCHAR, pick__number VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which College has Player Mark Brown and a Pick # greater than 195?
SELECT college FROM table_name_63 WHERE pick__number > 195 AND player = "mark brown"
sql_create_context
CREATE TABLE table_name_6 ( court_rank VARCHAR, lineage VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Court Rank of Son of Norihiro's Lineage?
SELECT court_rank FROM table_name_6 WHERE lineage = "son of norihiro"
sql_create_context
CREATE TABLE On_Call ( Nurse INTEGER, BlockFloor INTEGER, BlockCode INTEGER, OnCallStart DATETIME, OnCallEnd DATETIME ) CREATE TABLE Affiliated_With ( Physician INTEGER, Department INTEGER, PrimaryAffiliation BOOLEAN ) CREATE TABLE Medication ( Code INTEGER, Name VARCHAR(30), ...
SELECT T1.Name, COUNT(T1.Name) FROM Physician AS T1 JOIN Trained_In AS T2 ON T1.EmployeeID = T2.Physician JOIN Procedures AS T3 ON T3.Code = T2.Treatment WHERE T3.Cost > 5000 GROUP BY T1.Name ORDER BY T1.Name DESC
nvbench
CREATE TABLE flight_leg ( flight_id int, leg_number int, leg_flight int ) CREATE TABLE dual_carrier ( main_airline varchar, low_flight_number int, high_flight_number int, dual_airline varchar, service_name text ) CREATE TABLE state ( state_code text, state_name text, countr...
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_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'OAKLAND' AND flight.arrival_time = 1700 AND flight.to_airport = AIRPORT_SERVICE_1.airpo...
atis
CREATE TABLE table_name_74 ( pick__number VARCHAR, cfl_team VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the pick number for Peter Moore of the Montreal Alouettes?
SELECT pick__number FROM table_name_74 WHERE cfl_team = "montreal alouettes" AND player = "peter moore"
sql_create_context
CREATE TABLE table_32941 ( "Region" text, "Year" real, "Label" text, "Format" text, "Catalog" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What catalog came out after 2000?
SELECT "Catalog" FROM table_32941 WHERE "Year" > '2000'
wikisql
CREATE TABLE transfers ( row_id number, subject_id number, hadm_id number, icustay_id number, eventtype text, careunit text, wardid number, intime time, outtime time ) CREATE TABLE inputevents_cv ( row_id number, subject_id number, hadm_id number, icustay_id number, ...
SELECT MAX(chartevents.valuenum) 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 = 25668)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'admi...
mimic_iii
CREATE TABLE table_name_98 ( pick VARCHAR, nationality VARCHAR, round VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Pick has a Nationality of canada, and a Round of 5?
SELECT pick FROM table_name_98 WHERE nationality = "canada" AND round = 5
sql_create_context
CREATE TABLE table_17765264_1 ( record VARCHAR, attendance VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was their record when the attendance at the game was 14489?
SELECT record FROM table_17765264_1 WHERE attendance = 14489
sql_create_context
CREATE TABLE table_name_62 ( percentage_of_votes VARCHAR, number_of_votes_received VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What percentage of the vote was 1,255,153 of received votes?
SELECT percentage_of_votes FROM table_name_62 WHERE number_of_votes_received = "1,255,153"
sql_create_context
CREATE TABLE DEPARTMENT ( DNO VARCHAR, DName VARCHAR ) CREATE TABLE MEMBER_OF ( DNO VARCHAR, FacID VARCHAR ) CREATE TABLE FACULTY ( Lname VARCHAR, FacID VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Find the last names of faculties who are...
SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = "Computer Science"
sql_create_context
CREATE TABLE city ( city_code varchar, city_name varchar, state_code varchar, country_name varchar, time_zone_code varchar ) CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE airport ( airport_code varchar, ...
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, date_day, days, flight WHERE (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'DENVER' AND date_day.day_number = 21 AND date_day.month_number = 2 AND da...
atis
CREATE TABLE instructor ( instructor_id int, name varchar, uniqname varchar ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total_gpa float, entered_as varchar, admit_term int, pre...
SELECT DISTINCT course.department, course.name, course.number, semester.semester FROM course INNER JOIN area ON course.course_id = area.course_id INNER JOIN course_offering ON course.course_id = course_offering.course_id INNER JOIN semester ON semester.semester_id = course_offering.semester WHERE area.area LIKE '%compu...
advising
CREATE TABLE ta ( campus_job_id int, student_id int, location varchar ) CREATE TABLE gsi ( course_offering_id int, student_id int ) CREATE TABLE student ( student_id int, lastname varchar, firstname varchar, program_id int, declare_major varchar, total_credit int, total...
SELECT COUNT(*) > 0, program_course.workload FROM course, program_course WHERE course.department = 'MCDB' AND course.number = 300 AND program_course.course_id = course.course_id AND program_course.workload > 3
advising
CREATE TABLE table_47424 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which tournaments was Ryan Palmer in as a runner-up?
SELECT "Tournament" FROM table_47424 WHERE "Runner(s)-up" = 'ryan palmer'
wikisql
CREATE TABLE table_7028 ( "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 is the lowest Rank with more than 0 bronze, 8 silver, and a total of 19, with less than ...
SELECT MIN("Rank") FROM table_7028 WHERE "Bronze" > '0' AND "Silver" = '8' AND "Total" = '19' AND "Gold" < '9'
wikisql
CREATE TABLE table_16874 ( "Player" text, "No." real, "Nationality" text, "Position" text, "Years for Jazz" text, "School/Club Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What position did Lamar Green play?
SELECT "Position" FROM table_16874 WHERE "Player" = 'Lamar Green'
wikisql
CREATE TABLE wine ( No INTEGER, Grape TEXT, Winery TEXT, Appelation TEXT, State TEXT, Name TEXT, Year INTEGER, Price INTEGER, Score INTEGER, Cases INTEGER, Drink TEXT ) CREATE TABLE appellations ( No INTEGER, Appelation TEXT, County TEXT, State TEXT, Area...
SELECT MAX(Price), MAX(Score) FROM wine GROUP BY MAX(Price)
nvbench
CREATE TABLE table_name_46 ( authority VARCHAR, roll VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the authority for roll of 96?
SELECT authority FROM table_name_46 WHERE roll = 96
sql_create_context
CREATE TABLE table_39271 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Name of draft Pick #10?
SELECT "Name" FROM table_39271 WHERE "Pick #" = '10'
wikisql
CREATE TABLE procedures ( 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 diagnoses ( ...
SELECT demographic.admission_location, demographic.admittime FROM demographic WHERE demographic.name = "Richard Gundlach"
mimicsql_data
CREATE TABLE regions ( REGION_ID decimal(5,0), REGION_NAME varchar(25) ) CREATE TABLE jobs ( JOB_ID varchar(10), JOB_TITLE varchar(35), MIN_SALARY decimal(6,0), MAX_SALARY decimal(6,0) ) CREATE TABLE locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varc...
SELECT HIRE_DATE, AVG(DEPARTMENT_ID) FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY AVG(DEPARTMENT_ID) DESC
nvbench
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE d_labitems ( row_id number, itemid number, label text ) CREATE TABLE procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code...
SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 85895) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'sodium, whole blood') AND DATETIME(labevents.charttime, 'start of month') = DATE...
mimic_iii
CREATE TABLE table_19418696_3 ( attempts INTEGER, name VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many attempts for Bobby Layne?
SELECT MIN(attempts) FROM table_19418696_3 WHERE name = "Bobby Layne"
sql_create_context
CREATE TABLE qtb ( CLINIC_ID text, COMP_ID text, DATA_ID text, DIFF_PLACE_FLG number, FERTILITY_STS number, FLX_MED_ORG_ID text, HOSP_LEV number, HOSP_STS number, IDENTITY_CARD text, INPT_AREA_BED text, INSURED_IDENTITY number, INSURED_STS text, INSU_TYPE text, IN...
SELECT qtb.MED_ORG_DEPT_CD, qtb.IN_DIAG_DIS_CD, MIN(t_kc24.ILL_PAY) FROM qtb JOIN t_kc24 ON qtb.MED_CLINIC_ID = t_kc24.MED_CLINIC_ID WHERE qtb.MED_SER_ORG_NO = '9742956' GROUP BY qtb.MED_ORG_DEPT_CD, qtb.IN_DIAG_DIS_CD UNION SELECT gyb.MED_ORG_DEPT_CD, gyb.IN_DIAG_DIS_CD, MIN(t_kc24.ILL_PAY) FROM gyb JOIN t_kc24 ON gyb...
css
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_Name, All_Games_Percent FROM basketball_match ORDER BY All_Games_Percent
nvbench
CREATE TABLE table_69056 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who lost when the mariners played on September 12?
SELECT "Loss" FROM table_69056 WHERE "Opponent" = 'mariners' AND "Date" = 'september 12'
wikisql
CREATE TABLE table_22614 ( "Team" text, "Outgoing manager" text, "Manner of departure" text, "Date of vacancy" text, "Replaced by" text, "Date of appointment" text, "Position in table" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- At what d...
SELECT "Date of vacancy" FROM table_22614 WHERE "Position in table" = '23rd'
wikisql
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 demographic (...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.drug = "Aripiprazole"
mimicsql_data
CREATE TABLE table_78959 ( "Position" real, "Club" text, "Played" real, "Points" real, "Wins" real, "Draws" real, "Losses" real, "Goals for" real, "Goals against" real, "Goal Difference" real ) -- Using valid SQLite, answer the following questions for the tables provided above....
SELECT COUNT("Losses") FROM table_78959 WHERE "Goals for" < '73' AND "Wins" < '11' AND "Points" > '24' AND "Position" > '15'
wikisql
CREATE TABLE table_75835 ( "Episode #" real, "Title" text, "Air Date" text, "Rating" real, "Share" real, "18\u201349" real, "Viewers" real, "Rank" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Air Date that has a 18 49 large...
SELECT "Air Date" FROM table_75835 WHERE "18\u201349" > '1.9' AND "Viewers" < '7.54' AND "Rating" < '4.9'
wikisql
CREATE TABLE jybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH text, BGJGDM text, BGJGMC text, BGRGH text, BGRQ time, BGRXM text, BGSJ time, CJRQ time, JSBBRQSJ time, JSBBSJ time, JYBBH text, JYJGMC text, JYJSGH text, JYJSQM text, JY...
SELECT jybgb.BGDH FROM hz_info JOIN txmzjzjlb JOIN jybgb ON hz_info.YLJGDM = txmzjzjlb.YLJGDM AND hz_info.KH = txmzjzjlb.KH AND hz_info.KLX = txmzjzjlb.KLX AND txmzjzjlb.YLJGDM = jybgb.YLJGDM_MZJZJLB AND txmzjzjlb.JZLSH = jybgb.JZLSH_MZJZJLB WHERE hz_info.RYBH = '55593756' AND NOT jybgb.BGDH IN (SELECT jyjgzbb.BGDH FRO...
css
CREATE TABLE table_23157997_13 ( mountains_classification VARCHAR, youth_classification VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many Mountains Classifications were in the race with Mike Northey as Youth Classification?
SELECT COUNT(mountains_classification) FROM table_23157997_13 WHERE youth_classification = "Mike Northey"
sql_create_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 locations ( LOCATION_ID decimal(4,0), STREET_ADDRESS varchar(40), POSTAL_CODE varchar(12), CITY varchar(30), STATE_PROVINCE varchar(25...
SELECT FIRST_NAME, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY DEPARTMENT_ID DESC
nvbench
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 jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM person_info JOIN hz_info JOIN mzjzjlb JOIN jybgb JOIN jyjgzbb JOIN jybgb_jyjgzbb 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 = jybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = j...
css
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 COUNT(*) FROM gwyjzb JOIN t_kc22 ON gwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE gwyjzb.PERSON_ID = '77333677' AND t_kc22.STA_DATE BETWEEN '2008-05-03' AND '2011-05-06' AND t_kc22.MED_INV_ITEM_TYPE = '检查费' UNION SELECT COUNT(*) FROM fgwyjzb JOIN t_kc22 ON fgwyjzb.MED_CLINIC_ID = t_kc22.MED_CLINIC_ID WHERE f...
css
CREATE TABLE table_72728 ( "Series #" real, "Season #" real, "Title" text, "Directed by:" text, "Written by:" text, "Original air date" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did season 9 originally air?
SELECT "Original air date" FROM table_72728 WHERE "Season #" = '9'
wikisql
CREATE TABLE table_67232 ( "Outcome" text, "Date" text, "Surface" text, "Partner" text, "Opponents" text, "Score" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the opponents for 24 july 2011
SELECT "Opponents" FROM table_67232 WHERE "Date" = '24 july 2011'
wikisql
CREATE TABLE zyjybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH number, BGJGDM text, BGJGMC text, BGRGH text, BGRQ time, BGRXM text, BGSJ time, CJRQ time, JSBBRQSJ time, JSBBSJ time, JYBBH text, JYJGMC text, JYJSGH text, JYJSQM text, ...
SELECT jyjgzbb.JCZBJGDL, jyjgzbb.JCZBJGDW FROM hz_info JOIN mzjzjlb JOIN zyjybgb JOIN jyjgzbb ON hz_info.YLJGDM = mzjzjlb.YLJGDM AND hz_info.KH = mzjzjlb.KH AND hz_info.KLX = mzjzjlb.KLX AND mzjzjlb.YLJGDM = zyjybgb.YLJGDM_MZJZJLB AND mzjzjlb.JZLSH = zyjybgb.JZLSH_MZJZJLB AND zyjybgb.YLJGDM = jyjgzbb.YLJGDM AND zyjybgb...
css
CREATE TABLE table_4808 ( "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. -- Who is the away side when north melbourne is the ...
SELECT "Away team" FROM table_4808 WHERE "Home team" = 'north melbourne'
wikisql
CREATE TABLE jybgb ( BBCJBW text, BBDM text, BBMC text, BBZT number, BGDH text, BGJGDM text, BGJGMC text, BGRGH text, BGRQ time, BGRXM text, BGSJ time, CJRQ time, JSBBRQSJ time, JSBBSJ time, JYBBH text, JYJGMC text, JYJSGH text, JYJSQM text, JY...
SELECT jyjgzbb.JCRGH, jyjgzbb.JCRXM FROM hz_info JOIN wdmzjzjlb JOIN jybgb JOIN jyjgzbb 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 AND jybgb.YLJGDM = jyjgzbb.YLJGDM AND jybgb.BGD...
css
CREATE TABLE table_16279520_1 ( length VARCHAR, release VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the length time of the 3.5 release?
SELECT length FROM table_16279520_1 WHERE release = "3.5"
sql_create_context
CREATE TABLE table_name_45 ( g27_racing_wheel VARCHAR, g25_racing_wheel VARCHAR, driving_force_ex VARCHAR, driving_force_pro VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Driving Force EX of no, and a Driving Force Pro of no, and a G25 Racing Wheel ...
SELECT g27_racing_wheel FROM table_name_45 WHERE driving_force_ex = "no" AND driving_force_pro = "no" AND g25_racing_wheel = "no"
sql_create_context
CREATE TABLE table_6339 ( "Name" text, "Circuit" text, "Date" text, "Winning driver" text, "Winning constructor" text, "Report" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Winning constructor has a Winning driver of felice nazzaro?
SELECT "Winning constructor" FROM table_6339 WHERE "Winning driver" = 'felice nazzaro'
wikisql
CREATE TABLE table_78289 ( "Disaster" text, "Year" text, "Countries Affected" text, "Scale of Disaster" text, "People Assisted" text, "Nature of Help" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the scale of disaster for the USA?
SELECT "Scale of Disaster" FROM table_78289 WHERE "Countries Affected" = 'usa'
wikisql
CREATE TABLE table_name_26 ( date VARCHAR, attendance VARCHAR, home VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was date was the attendance larger than 875 against Platense?
SELECT date FROM table_name_26 WHERE attendance > 875 AND home = "platense"
sql_create_context