instruction
stringlengths
0
1.06k
input
stringlengths
33
7.14k
response
stringlengths
2
4.44k
source
stringclasses
25 values
text
stringlengths
302
8.5k
How many games have been played when there are 13 wins and 45 goals were conceded?
CREATE TABLE table_13067 ( "Position" real, "Club" text, "Games played" real, "Wins" real, "Draws" real, "Loses" real, "Goals scored" real, "Goals conceded" real, "Points" real )
SELECT "Games played" FROM table_13067 WHERE "Wins" = '13' AND "Goals conceded" = '45'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many games have been played when there are 13 wins and 45 goals were conceded? ### Input: CREATE TABLE table_13067 ( ...
Where is the game site for the game that had a packers record of 2-3?
CREATE TABLE table_34084 ( "Week" real, "Date" text, "Opponent" text, "Time / Time Zone" text, "Game Site" text, "Final Score" text, "Record" text, "Match Report" text )
SELECT "Game Site" FROM table_34084 WHERE "Record" = '2-3'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Where is the game site for the game that had a packers record of 2-3? ### Input: CREATE TABLE table_34084 ( "Week" real,...
what is DL 's schedule of morning flights to ATLANTA
CREATE TABLE ground_service ( city_code text, airport_code text, transport_type text, ground_fare int ) CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE date_day ( month_number int, day_number int, year int, day_name var...
SELECT DISTINCT flight.flight_id FROM airport_service, city, flight WHERE (city.city_code = airport_service.city_code AND city.city_name = 'ATLANTA' AND flight.departure_time BETWEEN 0 AND 1200 AND flight.to_airport = airport_service.airport_code) AND flight.airline_code = 'DL'
atis
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is DL 's schedule of morning flights to ATLANTA ### Input: CREATE TABLE ground_service ( city_code text, airpor...
What is the place of the player who scored less than 70?
CREATE TABLE table_47178 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
SELECT "Place" FROM table_47178 WHERE "Score" < '70'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the place of the player who scored less than 70? ### Input: CREATE TABLE table_47178 ( "Place" text, "Player...
What is the location of the game with a 6-11-8 record?
CREATE TABLE table_name_71 ( location VARCHAR, record VARCHAR )
SELECT location FROM table_name_71 WHERE record = "6-11-8"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the location of the game with a 6-11-8 record? ### Input: CREATE TABLE table_name_71 ( location VARCHAR, rec...
On what date was the DVD released for the season with fewer than 13 episodes that aired before season 8?
CREATE TABLE table_name_74 ( dvd_release_date VARCHAR, season VARCHAR, episodes VARCHAR )
SELECT dvd_release_date FROM table_name_74 WHERE season < 8 AND episodes < 13
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: On what date was the DVD released for the season with fewer than 13 episodes that aired before season 8? ### Input: CREATE T...
Which country has a rank of 5?
CREATE TABLE table_1111 ( "Rank" real, "Country" text, "UNWTO Region" text, "International tourist arrivals (2012)" text, "International tourist arrivals (2011)" text, "Change (2011 to 2012)" text, "Change (2010 to 2011)" text )
SELECT "Country" FROM table_1111 WHERE "Rank" = '5'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which country has a rank of 5? ### Input: CREATE TABLE table_1111 ( "Rank" real, "Country" text, "UNWTO Region" ...
Who was the opponent with a score of 109 108?
CREATE TABLE table_name_7 ( opponent VARCHAR, score VARCHAR )
SELECT opponent FROM table_name_7 WHERE score = "109–108"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the opponent with a score of 109 108? ### Input: CREATE TABLE table_name_7 ( opponent VARCHAR, score VARCHAR...
Percentage of questions with at least one answer (restrict dates).
CREATE TABLE ReviewRejectionReasons ( Id number, Name text, Description text, PostTypeId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE ReviewTasks ( Id number, ReviewTaskTypeId number, Creation...
SELECT TIME_TO_STR(CreationDate, '%j'), CAST(SUM(CASE WHEN AnswerCount > 0 THEN 1 ELSE 0 END) AS FLOAT) / COUNT(Posts.Id) AS Ratio FROM Posts WHERE (PostTypeId = 1 AND CreationDate >= '##Date1##' AND CreationDate <= '##Date2##') GROUP BY TIME_TO_STR(CreationDate, '%j') ORDER BY TIME_TO_STR(CreationDate, '%j')
sede
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Percentage of questions with at least one answer (restrict dates). ### Input: CREATE TABLE ReviewRejectionReasons ( Id n...
how many patients diagnosed with short title other alter consciousnes have had ascites fluid lab test?
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.short_title = "Other alter consciousnes" AND lab.fluid = "Ascites"
mimicsql_data
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many patients diagnosed with short title other alter consciousnes have had ascites fluid lab test? ### Input: CREATE TAB...
What is the easiest class to fulfill the MDE requirement for me ?
CREATE TABLE course_offering ( offering_id int, course_id int, semester int, section_number int, start_time time, end_time time, monday varchar, tuesday varchar, wednesday varchar, thursday varchar, friday varchar, saturday varchar, sunday varchar, has_final_proje...
SELECT DISTINCT course.department, course.name, course.number, program_course.workload, program_course.workload FROM course, program_course WHERE program_course.category LIKE '%MDE%' AND program_course.course_id = course.course_id AND program_course.workload = (SELECT MIN(PROGRAM_COURSEalias1.workload) FROM program_cou...
advising
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the easiest class to fulfill the MDE requirement for me ? ### Input: CREATE TABLE course_offering ( offering_id ...
How many games had 22 points?
CREATE TABLE table_18018214_4 ( games_played VARCHAR, points VARCHAR )
SELECT COUNT(games_played) FROM table_18018214_4 WHERE points = 22
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many games had 22 points? ### Input: CREATE TABLE table_18018214_4 ( games_played VARCHAR, points VARCHAR ) ### ...
Tell me the circuit for 10 may for targa florio
CREATE TABLE table_name_79 ( circuit VARCHAR, date VARCHAR, name VARCHAR )
SELECT circuit FROM table_name_79 WHERE date = "10 may" AND name = "targa florio"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Tell me the circuit for 10 may for targa florio ### Input: CREATE TABLE table_name_79 ( circuit VARCHAR, date VARCHA...
What are all the different product names, and how many complains has each received?
CREATE TABLE customers ( customer_id number, customer_type_code text, address_line_1 text, address_line_2 text, town_city text, state text, email_address text, phone_number text ) CREATE TABLE products ( product_id number, parent_product_id number, product_category_code text...
SELECT t1.product_name, COUNT(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id = t2.product_id GROUP BY t1.product_name
spider
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are all the different product names, and how many complains has each received? ### Input: CREATE TABLE customers ( ...
Who was the visiting team who played at the hubert h. humphrey metrodome stadium?
CREATE TABLE table_68754 ( "Date" text, "Visiting Team" text, "Final Score" text, "Host Team" text, "Stadium" text )
SELECT "Visiting Team" FROM table_68754 WHERE "Stadium" = 'hubert h. humphrey metrodome'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the visiting team who played at the hubert h. humphrey metrodome stadium? ### Input: CREATE TABLE table_68754 ( ...
What is the attendance that has a record of 43-28?
CREATE TABLE table_name_86 ( attendance VARCHAR, record VARCHAR )
SELECT attendance FROM table_name_86 WHERE record = "43-28"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the attendance that has a record of 43-28? ### Input: CREATE TABLE table_name_86 ( attendance VARCHAR, recor...
How many POS when the average is 1.8529?
CREATE TABLE table_25887826_17 ( pos INTEGER, avg VARCHAR )
SELECT MAX(pos) FROM table_25887826_17 WHERE avg = "1.8529"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many POS when the average is 1.8529? ### Input: CREATE TABLE table_25887826_17 ( pos INTEGER, avg VARCHAR ) ### ...
who is the away team when played at junction oval?
CREATE TABLE table_name_41 ( away_team VARCHAR, venue VARCHAR )
SELECT away_team FROM table_name_41 WHERE venue = "junction oval"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: who is the away team when played at junction oval? ### Input: CREATE TABLE table_name_41 ( away_team VARCHAR, venue ...
What league was involved in 2008?
CREATE TABLE table_73331 ( "Year" real, "Division" real, "League" text, "Reg. Season" text, "Playoffs" text, "National Open" text )
SELECT "League" FROM table_73331 WHERE "Year" = '2008'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What league was involved in 2008? ### Input: CREATE TABLE table_73331 ( "Year" real, "Division" real, "League" t...
What is the Place of the Player with a Score of 67?
CREATE TABLE table_78597 ( "Place" text, "Player" text, "Country" text, "Score" real, "To par" text )
SELECT "Place" FROM table_78597 WHERE "Score" = '67'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Place of the Player with a Score of 67? ### Input: CREATE TABLE table_78597 ( "Place" text, "Player" tex...
Who was the color commentator for Eric Dickerson and Melissa Stark in 2001?
CREATE TABLE table_name_42 ( color_commentator_s_ VARCHAR, sideline_reporter_s_ VARCHAR, year VARCHAR )
SELECT color_commentator_s_ FROM table_name_42 WHERE sideline_reporter_s_ = "eric dickerson and melissa stark" AND year = 2001
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the color commentator for Eric Dickerson and Melissa Stark in 2001? ### Input: CREATE TABLE table_name_42 ( colo...
Which school is located in trafalgar?
CREATE TABLE table_name_73 ( school VARCHAR, location VARCHAR )
SELECT school FROM table_name_73 WHERE location = "trafalgar"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which school is located in trafalgar? ### Input: CREATE TABLE table_name_73 ( school VARCHAR, location VARCHAR ) ###...
What is the highest lost entry that has a drawn entry less than 6, goals against less than 44, and a points 1 entry of 27?
CREATE TABLE table_name_40 ( lost INTEGER, points_1 VARCHAR, drawn VARCHAR, goals_against VARCHAR )
SELECT MAX(lost) FROM table_name_40 WHERE drawn < 6 AND goals_against < 44 AND points_1 = "27"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the highest lost entry that has a drawn entry less than 6, goals against less than 44, and a points 1 entry of 27? #...
What was the result on October 4, 1993?
CREATE TABLE table_39710 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text )
SELECT "Result" FROM table_39710 WHERE "Date" = 'october 4, 1993'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the result on October 4, 1993? ### Input: CREATE TABLE table_39710 ( "Week" real, "Date" text, "Opponen...
What is the sum of laps for Derek Warwick?
CREATE TABLE table_name_20 ( laps INTEGER, driver VARCHAR )
SELECT SUM(laps) FROM table_name_20 WHERE driver = "derek warwick"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the sum of laps for Derek Warwick? ### Input: CREATE TABLE table_name_20 ( laps INTEGER, driver VARCHAR ) ##...
What is the highest round with a guard position and an overall greater than 71?
CREATE TABLE table_39003 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text )
SELECT MAX("Round") FROM table_39003 WHERE "Position" = 'guard' AND "Overall" > '71'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the highest round with a guard position and an overall greater than 71? ### Input: CREATE TABLE table_39003 ( "R...
Windy hill is the home to what team?
CREATE TABLE table_name_85 ( home_team VARCHAR, venue VARCHAR )
SELECT home_team FROM table_name_85 WHERE venue = "windy hill"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Windy hill is the home to what team? ### Input: CREATE TABLE table_name_85 ( home_team VARCHAR, venue VARCHAR ) ### ...
for patients id 2560, specify the icd9 code and primary disease.
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 demographic.diagnosis, procedures.short_title FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.subject_id = "2560"
mimicsql_data
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: for patients id 2560, specify the icd9 code and primary disease. ### Input: CREATE TABLE prescriptions ( subject_id text...
what is the price of bot the via and tour models combined ?
CREATE TABLE table_203_42 ( id number, "model" text, "class" text, "length" text, "fuel" text, "starting price" text )
SELECT SUM("starting price") FROM table_203_42 WHERE "model" IN ('via', 'tour')
squall
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the price of bot the via and tour models combined ? ### Input: CREATE TABLE table_203_42 ( id number, "model...
What was the election date for Arthur Hodges?
CREATE TABLE table_1329532_2 ( date_of_election VARCHAR, elected_successor VARCHAR )
SELECT date_of_election FROM table_1329532_2 WHERE elected_successor = "Arthur Hodges"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the election date for Arthur Hodges? ### Input: CREATE TABLE table_1329532_2 ( date_of_election VARCHAR, el...
Who was performer 3 with karen maruyama as performer 2?
CREATE TABLE table_6207 ( "Date" text, "Episode" real, "Performer 1" text, "Performer 2" text, "Performer 3" text, "Performer 4" text )
SELECT "Performer 3" FROM table_6207 WHERE "Performer 2" = 'karen maruyama'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was performer 3 with karen maruyama as performer 2? ### Input: CREATE TABLE table_6207 ( "Date" text, "Episode" ...
tell me the dose of ns (syringe) that patient 30267 was prescribed in their last hospital encounter?
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 procedures_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime t...
SELECT SUM(prescriptions.dose_val_rx) FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30267 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND prescriptions.drug = 'ns (syringe)'
mimic_iii
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: tell me the dose of ns (syringe) that patient 30267 was prescribed in their last hospital encounter? ### Input: CREATE TABLE...
What was the date of the game with a result of won 4-2?
CREATE TABLE table_name_15 ( date VARCHAR, result VARCHAR )
SELECT date FROM table_name_15 WHERE result = "won 4-2"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What was the date of the game with a result of won 4-2? ### Input: CREATE TABLE table_name_15 ( date VARCHAR, result...
Name the result for willis alston
CREATE TABLE table_73999 ( "District" text, "Incumbent" text, "Party" text, "First elected" text, "Result" text, "Candidates" text )
SELECT "Result" FROM table_73999 WHERE "Incumbent" = 'Willis Alston'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the result for willis alston ### Input: CREATE TABLE table_73999 ( "District" text, "Incumbent" text, "Part...
Show all statement id and the number of accounts for each statement.
CREATE TABLE documents_with_expenses ( document_id number, budget_type_code text, document_details text ) CREATE TABLE projects ( project_id number, project_details text ) CREATE TABLE statements ( statement_id number, statement_details text ) CREATE TABLE ref_budget_codes ( budget_ty...
SELECT statement_id, COUNT(*) FROM accounts GROUP BY statement_id
spider
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Show all statement id and the number of accounts for each statement. ### Input: CREATE TABLE documents_with_expenses ( d...
what is procedure short title of subject id 8323?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT procedures.short_title FROM procedures WHERE procedures.subject_id = "8323"
mimicsql_data
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is procedure short title of subject id 8323? ### Input: CREATE TABLE demographic ( subject_id text, hadm_id tex...
How many debut albums did mike mohede have?
CREATE TABLE table_1646960_3 ( debut_album VARCHAR, winner VARCHAR )
SELECT COUNT(debut_album) FROM table_1646960_3 WHERE winner = "Mike Mohede"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many debut albums did mike mohede have? ### Input: CREATE TABLE table_1646960_3 ( debut_album VARCHAR, winner VA...
When the a o was 2012, who was the county?
CREATE TABLE table_29566 ( "A\u00f1o" real, "Trabajo nominado" text, "Premio" text, "Categor\u00eda" text, "Country" text, "Resultado" text )
SELECT "Country" FROM table_29566 WHERE "A\u00f1o" = '2012'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: When the a o was 2012, who was the county? ### Input: CREATE TABLE table_29566 ( "A\u00f1o" real, "Trabajo nominado"...
What league had a finish of 2nd and 3 losses?
CREATE TABLE table_77175 ( "Season" real, "League" text, "Finish" text, "Wins" real, "Losses" real, "Ties" real )
SELECT "League" FROM table_77175 WHERE "Finish" = '2nd' AND "Losses" = '3'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What league had a finish of 2nd and 3 losses? ### Input: CREATE TABLE table_77175 ( "Season" real, "League" text, ...
What is the city of license that has lp as the class?
CREATE TABLE table_41555 ( "City of license" text, "Identifier" text, "Frequency" text, "Power" text, "Class" text, "RECNet" text )
SELECT "City of license" FROM table_41555 WHERE "Class" = 'lp'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the city of license that has lp as the class? ### Input: CREATE TABLE table_41555 ( "City of license" text, ...
What is Fitzroy's Home team Crowd?
CREATE TABLE table_name_90 ( crowd INTEGER, home_team VARCHAR )
SELECT SUM(crowd) FROM table_name_90 WHERE home_team = "fitzroy"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is Fitzroy's Home team Crowd? ### Input: CREATE TABLE table_name_90 ( crowd INTEGER, home_team VARCHAR ) ### Re...
Who did the housemate that nominated Carol Roopali in week 1 nominate in week 8?
CREATE TABLE table_65573 ( "Week 1" text, "Week 3" text, "Week 4" text, "Week 6" text, "Week 7" text, "Week 8" text, "Week 9" text, "Week 10" text, "Final Week 12" text )
SELECT "Week 8" FROM table_65573 WHERE "Week 1" = 'carol roopali'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who did the housemate that nominated Carol Roopali in week 1 nominate in week 8? ### Input: CREATE TABLE table_65573 ( "...
what are the four most frequently ordered procedures for patients who were previously diagnosed with pure hypercholesterolem within 2 months, in 2101?
CREATE TABLE diagnoses_icd ( row_id number, subject_id number, hadm_id number, icd9_code text, charttime time ) CREATE TABLE microbiologyevents ( row_id number, subject_id number, hadm_id number, charttime time, spec_type_desc text, org_name text ) CREATE TABLE outputevents...
SELECT d_icd_procedures.short_title FROM d_icd_procedures WHERE d_icd_procedures.icd9_code IN (SELECT t3.icd9_code FROM (SELECT t2.icd9_code, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM (SELECT admissions.subject_id, diagnoses_icd.charttime FROM diagnoses_icd JOIN admissions ON diagnoses_icd.hadm_id = admissi...
mimic_iii
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what are the four most frequently ordered procedures for patients who were previously diagnosed with pure hypercholesterolem...
Name the total number of awardees for best screenplay
CREATE TABLE table_3059 ( "Name of Award" text, "Name of Film" text, "Language" text, "Awardee(s)" text, "Cash Prize" text )
SELECT COUNT("Awardee(s)") FROM table_3059 WHERE "Name of Award" = 'Best Screenplay'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the total number of awardees for best screenplay ### Input: CREATE TABLE table_3059 ( "Name of Award" text, "Na...
What is the lowest value for Olympics, when Sailors is greater than 1, when First OG is after 1948, and when Class is 'Flying Dutchman'?
CREATE TABLE table_name_80 ( olympics_so_far INTEGER, class VARCHAR, sailors VARCHAR, first_og VARCHAR )
SELECT MIN(olympics_so_far) FROM table_name_80 WHERE sailors > 1 AND first_og > 1948 AND class = "flying dutchman"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the lowest value for Olympics, when Sailors is greater than 1, when First OG is after 1948, and when Class is 'Flyin...
What is the most points that the Maserati 250F chassis scored in years after 1955?
CREATE TABLE table_70779 ( "Year" real, "Entrant" text, "Chassis" text, "Engine" text, "Points" real )
SELECT MAX("Points") FROM table_70779 WHERE "Chassis" = 'maserati 250f' AND "Year" > '1955'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the most points that the Maserati 250F chassis scored in years after 1955? ### Input: CREATE TABLE table_70779 ( ...
what is the name of a drug patient 94229 had been prescribed two times in the current hospital encounter?
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 number ) CREATE ...
SELECT t1.drug FROM (SELECT prescriptions.drug, COUNT(prescriptions.startdate) AS c1 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 94229 AND admissions.dischtime IS NULL) GROUP BY prescriptions.drug) AS t1 WHERE t1.c1 = 2
mimic_iii
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the name of a drug patient 94229 had been prescribed two times in the current hospital encounter? ### Input: CREATE ...
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, return a line chart about the change of employee_id over hire_date , and list in ascending by the X.
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, EMPLOYEE_ID FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 ORDER BY HIRE_DATE
nvbench
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not ...
What population density (per km) that has 84 as the population (2006)?
CREATE TABLE table_13796 ( "Name" text, "Population (2011)" real, "Population (2006)" text, "Change (%)" text, "Land area (km\u00b2)" text, "Population density (per km\u00b2)" text )
SELECT "Population density (per km\u00b2)" FROM table_13796 WHERE "Population (2006)" = '84'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What population density (per km) that has 84 as the population (2006)? ### Input: CREATE TABLE table_13796 ( "Name" text...
What is the number of Ashmolean with 14s Harrison, and image less than 542?
CREATE TABLE table_67358 ( "Image" real, "Smith" text, "Ashmolean" real, "Foster" real, "Hahland" real, "Dinsmoor" text, "Hofkes-Brukker" text, "Harrison" text, "Cooper" text, "BM/Corbett" text )
SELECT COUNT("Ashmolean") FROM table_67358 WHERE "Harrison" = '14s' AND "Image" < '542'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the number of Ashmolean with 14s Harrison, and image less than 542? ### Input: CREATE TABLE table_67358 ( "Image...
What is the year (ceremony) for the film title Eldra?
CREATE TABLE table_26385848_1 ( year__ceremony_ VARCHAR, film_title VARCHAR )
SELECT year__ceremony_ FROM table_26385848_1 WHERE film_title = "Eldra"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the year (ceremony) for the film title Eldra? ### Input: CREATE TABLE table_26385848_1 ( year__ceremony_ VARCHAR...
Name the club/province for steve borthwick
CREATE TABLE table_name_51 ( club_province VARCHAR, player VARCHAR )
SELECT club_province FROM table_name_51 WHERE player = "steve borthwick"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the club/province for steve borthwick ### Input: CREATE TABLE table_name_51 ( club_province VARCHAR, player VAR...
How many ages have Maureen Connolly Brinker as the player?
CREATE TABLE table_197638_7 ( age VARCHAR, player VARCHAR )
SELECT COUNT(age) FROM table_197638_7 WHERE player = "Maureen Connolly Brinker"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many ages have Maureen Connolly Brinker as the player? ### Input: CREATE TABLE table_197638_7 ( age VARCHAR, pla...
Who was the coach in 1953?
CREATE TABLE table_37980 ( "Year" text, "Conference" text, "Overall Record" text, "Conference Record" text, "Coach" text )
SELECT "Coach" FROM table_37980 WHERE "Year" = '1953'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was the coach in 1953? ### Input: CREATE TABLE table_37980 ( "Year" text, "Conference" text, "Overall Record...
Technology Trends (# Questions per Tag).
CREATE TABLE Comments ( Id number, PostId number, Score number, Text text, CreationDate time, UserDisplayName text, UserId number, ContentLicense text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text,...
SELECT Tags.TagName, Tags.Count FROM Tags WHERE Tags.TagName = 'angularjs' OR Tags.TagName = 'angular' OR Tags.TagName = 'reactjs' OR Tags.TagName = 'vue.js' OR Tags.TagName = 'vuejs2' OR Tags.TagName = 'ember.js' OR Tags.TagName = 'backbone.js' OR Tags.TagName = 'polymer'
sede
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Technology Trends (# Questions per Tag). ### Input: CREATE TABLE Comments ( Id number, PostId number, Score numb...
Which customer's name contains 'Alex'? Find the full name.
CREATE TABLE order_items ( order_id number, product_id number, order_quantity text ) CREATE TABLE customer_contact_channels ( customer_id number, channel_code text, active_from_date time, active_to_date time, contact_number text ) CREATE TABLE customers ( customer_id number, pa...
SELECT customer_name FROM customers WHERE customer_name LIKE "%Alex%"
spider
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which customer's name contains 'Alex'? Find the full name. ### Input: CREATE TABLE order_items ( order_id number, pr...
how many patients whose admission type is elective have got the lab test named sodium, urine done?
CREATE TABLE lab ( subject_id text, hadm_id text, itemid text, charttime text, flag text, value_unit text, label text, fluid text ) CREATE TABLE procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) CREATE TABLE prescription...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND lab.label = "Sodium, Urine"
mimicsql_data
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many patients whose admission type is elective have got the lab test named sodium, urine done? ### Input: CREATE TABLE l...
Who was Team 2 when Team 1 was Am rica?
CREATE TABLE table_name_88 ( team_2 VARCHAR, team_1 VARCHAR )
SELECT team_2 FROM table_name_88 WHERE team_1 = "américa"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who was Team 2 when Team 1 was Am rica? ### Input: CREATE TABLE table_name_88 ( team_2 VARCHAR, team_1 VARCHAR ) ###...
A bar chart showing the number of male and female faculty, rank y-axis in asc order.
CREATE TABLE Faculty ( FacID INTEGER, Lname VARCHAR(15), Fname VARCHAR(15), Rank VARCHAR(15), Sex VARCHAR(1), Phone INTEGER, Room VARCHAR(5), Building VARCHAR(13) ) CREATE TABLE Student ( StuID INTEGER, LName VARCHAR(12), Fname VARCHAR(12), Age INTEGER, Sex VARCHAR(1...
SELECT Sex, COUNT(*) FROM Faculty GROUP BY Sex ORDER BY COUNT(*)
nvbench
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: A bar chart showing the number of male and female faculty, rank y-axis in asc order. ### Input: CREATE TABLE Faculty ( F...
how many jamaicans were granted british citizenship in 1998 ?
CREATE TABLE table_203_467 ( id number, "year" number, "numer of jamaicans\ngranted british\ncitizenship" number, "naturalisation\nby residence" number, "naturalisation\nby marriage" number, "registration\nof a minor child" number, "registration\nby other means" number )
SELECT "numer of jamaicans\ngranted british\ncitizenship" FROM table_203_467 WHERE "year" = 1998
squall
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many jamaicans were granted british citizenship in 1998 ? ### Input: CREATE TABLE table_203_467 ( id number, "ye...
Which nation is where rider phillip dutton from?
CREATE TABLE table_22551 ( "Nation" text, "Rider" text, "Horse" text, "Cross Country Penalties" text, "Total Penalties" text, "Total Team Penalties" text, "Team Rank" real )
SELECT "Nation" FROM table_22551 WHERE "Rider" = 'Phillip Dutton'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which nation is where rider phillip dutton from? ### Input: CREATE TABLE table_22551 ( "Nation" text, "Rider" text, ...
My own Edits on my posts.
CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTaskResultTypeId number, CreationDate time, RejectionReasonId number, Comment text ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, ...
SELECT t.Name, h.CreationDate, PostId AS "post_link" FROM PostHistory AS h JOIN PostHistoryTypes AS t ON t.Id = PostHistoryTypeId WHERE PostId IN (SELECT Id FROM Posts WHERE OwnerUserId = '##UserId##') AND h.UserId = '##UserId##' AND PostHistoryTypeId IN (4, 5, 6, 7, 8, 9) ORDER BY h.CreationDate DESC
sede
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: My own Edits on my posts. ### Input: CREATE TABLE ReviewTaskResults ( Id number, ReviewTaskId number, ReviewTask...
please tell me the flights between BOSTON and PHILADELPHIA next thursday
CREATE TABLE class_of_service ( booking_class varchar, rank int, class_description text ) CREATE TABLE airline ( airline_code varchar, airline_name text, note text ) CREATE TABLE code_description ( code varchar, description text ) CREATE TABLE flight_stop ( flight_id int, stop...
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 = 'PHILADELPHIA' AND date_day.day_number = 24 AND date_day.month_number = 5 ...
atis
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: please tell me the flights between BOSTON and PHILADELPHIA next thursday ### Input: CREATE TABLE class_of_service ( book...
Which address has 44 floors?
CREATE TABLE table_name_70 ( street_address VARCHAR, floors VARCHAR )
SELECT street_address FROM table_name_70 WHERE floors = 44
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which address has 44 floors? ### Input: CREATE TABLE table_name_70 ( street_address VARCHAR, floors VARCHAR ) ### Re...
Answers who's question is tagged 'regex' and is likely just a new regex.
CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE CloseAsOffTopicReasonTypes ( Id number, IsUniversal boolean, InputTitle text, MarkdownInputGuidance text, Mark...
SELECT a.Id AS "post_link", a.Score AS "answer_score", LENGTH(a.Body) AS "answer_length", a.Body AS "answer_body" FROM Posts AS a INNER JOIN Posts AS q ON q.Id = a.ParentId WHERE a.PostTypeId = 2 AND q.Tags LIKE '%<regex>%' AND (a.Body LIKE '<pre><code>%' OR a.Body LIKE '<p><code>%') AND LENGTH(a.Body) <= 100 GROUP BY ...
sede
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Answers who's question is tagged 'regex' and is likely just a new regex. ### Input: CREATE TABLE PostNoticeTypes ( Id nu...
how many iso/iec were published before the year 2000 ?
CREATE TABLE table_204_200 ( id number, "iso/iec standard" text, "title" text, "status" text, "description" text, "wg" number )
SELECT COUNT("iso/iec standard") FROM table_204_200 WHERE "status" < 2000
squall
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many iso/iec were published before the year 2000 ? ### Input: CREATE TABLE table_204_200 ( id number, "iso/iec s...
Name the minimum enrollment for montana tech of the university of montana
CREATE TABLE table_15851155_1 ( enrollment INTEGER, school VARCHAR )
SELECT MIN(enrollment) FROM table_15851155_1 WHERE school = "Montana Tech of the University of Montana"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the minimum enrollment for montana tech of the university of montana ### Input: CREATE TABLE table_15851155_1 ( enr...
Find the name of the most popular party form.
CREATE TABLE party_forms ( form_id VARCHAR ) CREATE TABLE forms ( form_name VARCHAR, form_id VARCHAR )
SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id = t2.form_id GROUP BY t2.form_id ORDER BY COUNT(*) DESC LIMIT 1
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Find the name of the most popular party form. ### Input: CREATE TABLE party_forms ( form_id VARCHAR ) CREATE TABLE form...
What tail number was on the an-26, with 25/25 fatalities?
CREATE TABLE table_42152 ( "Location" text, "Aircraft" text, "Tail number" text, "Aircraft damage" text, "Fatalities" text )
SELECT "Tail number" FROM table_42152 WHERE "Aircraft" = 'an-26' AND "Fatalities" = '25/25'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What tail number was on the an-26, with 25/25 fatalities? ### Input: CREATE TABLE table_42152 ( "Location" text, "Ai...
what tournament has 2000 of 3r?
CREATE TABLE table_56433 ( "Tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text...
SELECT "Tournament" FROM table_56433 WHERE "2000" = '3r'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what tournament has 2000 of 3r? ### Input: CREATE TABLE table_56433 ( "Tournament" text, "1989" text, "1990" tex...
The Athlete Shin Yeong-eun with a rank larger than 3 and notes of FD had what time?
CREATE TABLE table_13944 ( "Rank" real, "Athlete" text, "Country" text, "Time" text, "Notes" text )
SELECT "Time" FROM table_13944 WHERE "Rank" > '3' AND "Notes" = 'fd' AND "Athlete" = 'shin yeong-eun'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: The Athlete Shin Yeong-eun with a rank larger than 3 and notes of FD had what time? ### Input: CREATE TABLE table_13944 ( ...
Show the draft pick numbers and draft classes of players whose positions are defenders in a bar chart.
CREATE TABLE match_season ( Season real, Player text, Position text, Country int, Team int, Draft_Pick_Number int, Draft_Class text, College text ) CREATE TABLE player ( Player_ID int, Player text, Years_Played text, Total_WL text, Singles_WL text, Doubles_WL tex...
SELECT Draft_Class, Draft_Pick_Number FROM match_season WHERE Position = "Defender"
nvbench
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Show the draft pick numbers and draft classes of players whose positions are defenders in a bar chart. ### Input: CREATE TAB...
Who is the runner-up from Milwaukee?
CREATE TABLE table_7774 ( "Date" text, "Event" text, "City" text, "Oil Pattern" text, "Winner (Title #)" text, "Runner-up" text, "Score" text )
SELECT "Runner-up" FROM table_7774 WHERE "City" = 'milwaukee'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Who is the runner-up from Milwaukee? ### Input: CREATE TABLE table_7774 ( "Date" text, "Event" text, "City" text...
What is the amount of trees, that require replacement when the district is motovilikhinsky?
CREATE TABLE table_72092 ( "District" text, "Total amount of trees" real, "Prevailing types, %" text, "Amount of old trees" text, "Amount of trees, that require replacement" text )
SELECT "Amount of trees, that require replacement" FROM table_72092 WHERE "District" = 'Motovilikhinsky'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the amount of trees, that require replacement when the district is motovilikhinsky? ### Input: CREATE TABLE table_72...
What is the average issue price with from Toronto maple leafs gift set, and a Mintage of 3527?
CREATE TABLE table_name_73 ( issue_price INTEGER, special_notes VARCHAR, mintage VARCHAR )
SELECT AVG(issue_price) FROM table_name_73 WHERE special_notes = "from toronto maple leafs gift set" AND mintage = "3527"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the average issue price with from Toronto maple leafs gift set, and a Mintage of 3527? ### Input: CREATE TABLE table...
provide the number of patients whose gender is f and procedure short title is iv infusion clofarabine?
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 procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.gender = "F" AND procedures.short_title = "IV infusion clofarabine"
mimicsql_data
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: provide the number of patients whose gender is f and procedure short title is iv infusion clofarabine? ### Input: CREATE TAB...
How many assists did Steve Walker have?
CREATE TABLE table_name_4 ( assists VARCHAR, player VARCHAR )
SELECT assists FROM table_name_4 WHERE player = "steve walker"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: How many assists did Steve Walker have? ### Input: CREATE TABLE table_name_4 ( assists VARCHAR, player VARCHAR ) ###...
Show the invoice number and the number of transactions for each invoice. Show the correlation.
CREATE TABLE Orders ( order_id INTEGER, customer_id INTEGER, date_order_placed DATETIME, order_details VARCHAR(255) ) CREATE TABLE Order_Items ( order_item_id INTEGER, order_id INTEGER, product_id INTEGER, product_quantity VARCHAR(50), other_order_item_details VARCHAR(255) ) CREATE...
SELECT invoice_number, COUNT(*) FROM Financial_Transactions GROUP BY invoice_number
nvbench
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Show the invoice number and the number of transactions for each invoice. Show the correlation. ### Input: CREATE TABLE Order...
Which round has a record of 5-3 (1)?
CREATE TABLE table_name_51 ( round INTEGER, record VARCHAR )
SELECT MIN(round) FROM table_name_51 WHERE record = "5-3 (1)"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which round has a record of 5-3 (1)? ### Input: CREATE TABLE table_name_51 ( round INTEGER, record VARCHAR ) ### Res...
how many patients had iv drip drug route?
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.route = "IV DRIP"
mimicsql_data
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many patients had iv drip drug route? ### Input: CREATE TABLE diagnoses ( subject_id text, hadm_id text, icd...
Name the fsb for atom z540
CREATE TABLE table_21017 ( "Model number" text, "sSpec number" text, "Frequency" text, "L2 cache" text, "FSB" text, "Mult." text, "Voltage" text, "TDP" text, "Socket" text, "Release date" text, "Part number(s)" text, "Release price ( USD )" text )
SELECT "FSB" FROM table_21017 WHERE "Model number" = 'Atom Z540'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the fsb for atom z540 ### Input: CREATE TABLE table_21017 ( "Model number" text, "sSpec number" text, "Freq...
Display the proportion of the job title for all those jobs in department 80 using a pie chart.
CREATE TABLE departments ( DEPARTMENT_ID decimal(4,0), DEPARTMENT_NAME varchar(30), MANAGER_ID decimal(6,0), LOCATION_ID decimal(4,0) ) 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...
SELECT JOB_TITLE, COUNT(JOB_TITLE) FROM employees AS T1 JOIN jobs AS T2 ON T1.JOB_ID = T2.JOB_ID WHERE T1.DEPARTMENT_ID = 80 GROUP BY JOB_TITLE
nvbench
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Display the proportion of the job title for all those jobs in department 80 using a pie chart. ### Input: CREATE TABLE depar...
What rounds did Gordini participate in?
CREATE TABLE table_name_74 ( rounds VARCHAR, constructor VARCHAR )
SELECT rounds FROM table_name_74 WHERE constructor = "gordini"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What rounds did Gordini participate in? ### Input: CREATE TABLE table_name_74 ( rounds VARCHAR, constructor VARCHAR ...
Show each apartment type code, and the maximum and minimum number of rooms for each type.
CREATE TABLE Apartments ( apt_type_code VARCHAR, room_count INTEGER )
SELECT apt_type_code, MAX(room_count), MIN(room_count) FROM Apartments GROUP BY apt_type_code
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Show each apartment type code, and the maximum and minimum number of rooms for each type. ### Input: CREATE TABLE Apartments...
What languages were spoken in the film 'FireDancer'?
CREATE TABLE table_17155250_1 ( language_s_ VARCHAR, film_title_used_in_nomination VARCHAR )
SELECT language_s_ FROM table_17155250_1 WHERE film_title_used_in_nomination = "FireDancer"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What languages were spoken in the film 'FireDancer'? ### Input: CREATE TABLE table_17155250_1 ( language_s_ VARCHAR, ...
how many drivers drove all the rounds ?
CREATE TABLE table_203_406 ( id number, "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text )
SELECT COUNT("driver") FROM table_203_406 WHERE "rounds" = 'all'
squall
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: how many drivers drove all the rounds ? ### Input: CREATE TABLE table_203_406 ( id number, "entrant" text, "cons...
what is the total number of patients who had unspecified chronic pulmonary heart disease?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Chronic pulmonary heart disease, unspecified"
mimicsql_data
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: what is the total number of patients who had unspecified chronic pulmonary heart disease? ### Input: CREATE TABLE demographi...
What are the full names and salaries for any employees earning less than 6000?
CREATE TABLE jobs ( job_id text, job_title text, min_salary number, max_salary number ) CREATE TABLE countries ( country_id text, country_name text, region_id number ) CREATE TABLE regions ( region_id number, region_name text ) CREATE TABLE departments ( department_id number, ...
SELECT first_name, last_name, salary FROM employees WHERE salary < 6000
spider
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What are the full names and salaries for any employees earning less than 6000? ### Input: CREATE TABLE jobs ( job_id tex...
What is the position for Jani Lajunen?
CREATE TABLE table_name_78 ( position VARCHAR, player VARCHAR )
SELECT position FROM table_name_78 WHERE player = "jani lajunen"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the position for Jani Lajunen? ### Input: CREATE TABLE table_name_78 ( position VARCHAR, player VARCHAR ) ##...
Top 50 users from Rajkot.
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 number ) CRE...
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Reputation FROM Users WHERE LOWER(Location) LIKE '%pune%' OR UPPER(Location) LIKE '%PUNE' ORDER BY Reputation DESC LIMIT 500
sede
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Top 50 users from Rajkot. ### Input: CREATE TABLE Users ( Id number, Reputation number, CreationDate time, D...
Which Losses is the lowest one that has a Season smaller than 1920, and Draws larger than 0?
CREATE TABLE table_name_75 ( losses INTEGER, season VARCHAR, draws VARCHAR )
SELECT MIN(losses) FROM table_name_75 WHERE season < 1920 AND draws > 0
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which Losses is the lowest one that has a Season smaller than 1920, and Draws larger than 0? ### Input: CREATE TABLE table_n...
What date did NY Rangers play at home?
CREATE TABLE table_52784 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text )
SELECT "Date" FROM table_52784 WHERE "Home" = 'ny rangers'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What date did NY Rangers play at home? ### Input: CREATE TABLE table_52784 ( "Date" text, "Visitor" text, "Score...
Which team was played on April 20?
CREATE TABLE table_11961582_10 ( team VARCHAR, date VARCHAR )
SELECT team FROM table_11961582_10 WHERE date = "April 20"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Which team was played on April 20? ### Input: CREATE TABLE table_11961582_10 ( team VARCHAR, date VARCHAR ) ### Resp...
Name the block A for shuji kondo
CREATE TABLE table_name_93 ( block_a VARCHAR, toshizo VARCHAR )
SELECT block_a FROM table_name_93 WHERE toshizo = "shuji kondo"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the block A for shuji kondo ### Input: CREATE TABLE table_name_93 ( block_a VARCHAR, toshizo VARCHAR ) ### Resp...
Name the colors for north canton
CREATE TABLE table_28737 ( "School" text, "Nickname" text, "Location" text, "Colors" text, "Join Date" real )
SELECT "Colors" FROM table_28737 WHERE "Location" = 'North Canton'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Name the colors for north canton ### Input: CREATE TABLE table_28737 ( "School" text, "Nickname" text, "Location...
the sum of Events that has a Rank larger than 5 is 3
CREATE TABLE table_5000 ( "Rank" real, "Player" text, "Country" text, "Earnings ( $ )" real, "Events" real, "Wins" real )
SELECT SUM("Events") FROM table_5000 WHERE "Rank" > '5'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: the sum of Events that has a Rank larger than 5 is 3 ### Input: CREATE TABLE table_5000 ( "Rank" real, "Player" text...
What is the Team when antonio davis (8) had the high rebounds?
CREATE TABLE table_42106 ( "Game" real, "Date" text, "Team" text, "Score" text, "High points" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT "Team" FROM table_42106 WHERE "High rebounds" = 'antonio davis (8)'
wikisql
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the Team when antonio davis (8) had the high rebounds? ### Input: CREATE TABLE table_42106 ( "Game" real, "D...
Tell me what the notes are for South Australia
CREATE TABLE table_1000181_1 ( notes VARCHAR, current_slogan VARCHAR )
SELECT notes FROM table_1000181_1 WHERE current_slogan = "SOUTH AUSTRALIA"
sql_create_context
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: Tell me what the notes are for South Australia ### Input: CREATE TABLE table_1000181_1 ( notes VARCHAR, current_slog...
For those records from the products and each product's manufacturer, return a bar chart about the distribution of founder and the average of price , and group by attribute founder, sort from high to low by the X-axis please.
CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL ) CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER )
SELECT Founder, AVG(Price) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder DESC
nvbench
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: For those records from the products and each product's manufacturer, return a bar chart about the distribution of founder an...
where was the last race listing frank kimmel held ?
CREATE TABLE table_204_630 ( id number, "no" number, "date" text, "race" text, "track" text, "winner" text, "reports" text )
SELECT "track" FROM table_204_630 WHERE "winner" = 'frank kimmel' ORDER BY "date" DESC LIMIT 1
squall
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: where was the last race listing frank kimmel held ? ### Input: CREATE TABLE table_204_630 ( id number, "no" number, ...