text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What was the location of the Havaianas Beachley Classic, held in Australia? ### INPUT CREATE TABLE table_name_99 (location VARCHAR, country VARCHAR, event VARCHAR) ### OUTPUT SELECT location FROM table_name_99 WHERE country = "australia" AND event = "havaianas beachley classic"
{ "input": "CREATE TABLE table_name_99 (location VARCHAR, country VARCHAR, event VARCHAR)", "instruction": "What was the location of the Havaianas Beachley Classic, held in Australia?", "output": "SELECT location FROM table_name_99 WHERE country = \"australia\" AND event = \"havaianas beachley classic\"" }
### INSTRUCTION What is Location, when Fastest Lap is Ben Spies, when Pole Position is Ben Spies, when Winner is Ben Spies, and when Date is Tooele, Utah? ### INPUT CREATE TABLE table_name_77 (location VARCHAR, date VARCHAR, winner VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR) ### OUTPUT SELECT location FROM table_name_77 WHERE fastest_lap = "ben spies" AND pole_position = "ben spies" AND winner = "ben spies" AND date = "tooele, utah"
{ "input": "CREATE TABLE table_name_77 (location VARCHAR, date VARCHAR, winner VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)", "instruction": "What is Location, when Fastest Lap is Ben Spies, when Pole Position is Ben Spies, when Winner is Ben Spies, and when Date is Tooele, Utah?", "output": "SELECT location FROM table_name_77 WHERE fastest_lap = \"ben spies\" AND pole_position = \"ben spies\" AND winner = \"ben spies\" AND date = \"tooele, utah\"" }
### INSTRUCTION What are the enrollment dates of all the tests that have result "Pass"? ### INPUT CREATE TABLE Student_Tests_Taken (registration_id VARCHAR, test_result VARCHAR); CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, registration_id VARCHAR) ### OUTPUT SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = "Pass"
{ "input": "CREATE TABLE Student_Tests_Taken (registration_id VARCHAR, test_result VARCHAR); CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, registration_id VARCHAR)", "instruction": "What are the enrollment dates of all the tests that have result \"Pass\"?", "output": "SELECT T1.date_of_enrolment FROM Student_Course_Enrolment AS T1 JOIN Student_Tests_Taken AS T2 ON T1.registration_id = T2.registration_id WHERE T2.test_result = \"Pass\"" }
### INSTRUCTION On what date was the Transitions Championship? ### INPUT CREATE TABLE table_name_46 (date VARCHAR, tournament VARCHAR) ### OUTPUT SELECT date FROM table_name_46 WHERE tournament = "transitions championship"
{ "input": "CREATE TABLE table_name_46 (date VARCHAR, tournament VARCHAR)", "instruction": "On what date was the Transitions Championship?", "output": "SELECT date FROM table_name_46 WHERE tournament = \"transitions championship\"" }
### INSTRUCTION How many Attendance has a Opponent of west bromwich albion, and a Result of 3 – 3, and a Match larger than 20? ### INPUT CREATE TABLE table_name_79 (attendance INTEGER, match VARCHAR, opponent VARCHAR, result VARCHAR) ### OUTPUT SELECT SUM(attendance) FROM table_name_79 WHERE opponent = "west bromwich albion" AND result = "3 – 3" AND match > 20
{ "input": "CREATE TABLE table_name_79 (attendance INTEGER, match VARCHAR, opponent VARCHAR, result VARCHAR)", "instruction": "How many Attendance has a Opponent of west bromwich albion, and a Result of 3 – 3, and a Match larger than 20?", "output": "SELECT SUM(attendance) FROM table_name_79 WHERE opponent = \"west bromwich albion\" AND result = \"3 – 3\" AND match > 20" }
### INSTRUCTION What is ion life network's PSIP Short Name? ### INPUT CREATE TABLE table_name_58 (psip_short_name VARCHAR, network VARCHAR) ### OUTPUT SELECT psip_short_name FROM table_name_58 WHERE network = "ion life"
{ "input": "CREATE TABLE table_name_58 (psip_short_name VARCHAR, network VARCHAR)", "instruction": "What is ion life network's PSIP Short Name?", "output": "SELECT psip_short_name FROM table_name_58 WHERE network = \"ion life\"" }
### INSTRUCTION On what date did Universitario win the Torneo Apertura round after 2003 at Estadio Alejandro Villanueva? ### INPUT CREATE TABLE table_name_45 (date VARCHAR, winner VARCHAR, competition_round VARCHAR, venue VARCHAR, season VARCHAR) ### OUTPUT SELECT date FROM table_name_45 WHERE venue = "estadio alejandro villanueva" AND season > 2003 AND competition_round = "torneo apertura" AND winner = "universitario"
{ "input": "CREATE TABLE table_name_45 (date VARCHAR, winner VARCHAR, competition_round VARCHAR, venue VARCHAR, season VARCHAR)", "instruction": "On what date did Universitario win the Torneo Apertura round after 2003 at Estadio Alejandro Villanueva?", "output": "SELECT date FROM table_name_45 WHERE venue = \"estadio alejandro villanueva\" AND season > 2003 AND competition_round = \"torneo apertura\" AND winner = \"universitario\"" }
### INSTRUCTION Which Game Site has a Date of october 17, 1999? ### INPUT CREATE TABLE table_name_1 (game_site VARCHAR, date VARCHAR) ### OUTPUT SELECT game_site FROM table_name_1 WHERE date = "october 17, 1999"
{ "input": "CREATE TABLE table_name_1 (game_site VARCHAR, date VARCHAR)", "instruction": "Which Game Site has a Date of october 17, 1999?", "output": "SELECT game_site FROM table_name_1 WHERE date = \"october 17, 1999\"" }
### INSTRUCTION What was album of the year after 2009? ### INPUT CREATE TABLE table_name_99 (result VARCHAR, year VARCHAR, category VARCHAR) ### OUTPUT SELECT result FROM table_name_99 WHERE year > 2009 AND category = "album of the year"
{ "input": "CREATE TABLE table_name_99 (result VARCHAR, year VARCHAR, category VARCHAR)", "instruction": "What was album of the year after 2009?", "output": "SELECT result FROM table_name_99 WHERE year > 2009 AND category = \"album of the year\"" }
### INSTRUCTION What is the name on the Republican ticket when the Workers ticket is edward lindgren? ### INPUT CREATE TABLE table_name_63 (republican_ticket VARCHAR, workers_ticket VARCHAR) ### OUTPUT SELECT republican_ticket FROM table_name_63 WHERE workers_ticket = "edward lindgren"
{ "input": "CREATE TABLE table_name_63 (republican_ticket VARCHAR, workers_ticket VARCHAR)", "instruction": "What is the name on the Republican ticket when the Workers ticket is edward lindgren?", "output": "SELECT republican_ticket FROM table_name_63 WHERE workers_ticket = \"edward lindgren\"" }
### INSTRUCTION What date was the match where Daniel Gimeno-Traver's partner was pere riba? ### INPUT CREATE TABLE table_name_26 (date VARCHAR, partner VARCHAR) ### OUTPUT SELECT date FROM table_name_26 WHERE partner = "pere riba"
{ "input": "CREATE TABLE table_name_26 (date VARCHAR, partner VARCHAR)", "instruction": "What date was the match where Daniel Gimeno-Traver's partner was pere riba?", "output": "SELECT date FROM table_name_26 WHERE partner = \"pere riba\"" }
### INSTRUCTION Who was the Visitor when the Home team was Anaheim on the Date of April 12? ### INPUT CREATE TABLE table_name_49 (visitor VARCHAR, home VARCHAR, date VARCHAR) ### OUTPUT SELECT visitor FROM table_name_49 WHERE home = "anaheim" AND date = "april 12"
{ "input": "CREATE TABLE table_name_49 (visitor VARCHAR, home VARCHAR, date VARCHAR)", "instruction": "Who was the Visitor when the Home team was Anaheim on the Date of April 12?", "output": "SELECT visitor FROM table_name_49 WHERE home = \"anaheim\" AND date = \"april 12\"" }
### INSTRUCTION What is the name of the algorithm with a directed/undirected of both and a subgraph-centric basis? ### INPUT CREATE TABLE table_name_12 (name VARCHAR, directed___undirected VARCHAR, basis VARCHAR) ### OUTPUT SELECT name FROM table_name_12 WHERE directed___undirected = "both" AND basis = "subgraph-centric"
{ "input": "CREATE TABLE table_name_12 (name VARCHAR, directed___undirected VARCHAR, basis VARCHAR)", "instruction": "What is the name of the algorithm with a directed/undirected of both and a subgraph-centric basis?", "output": "SELECT name FROM table_name_12 WHERE directed___undirected = \"both\" AND basis = \"subgraph-centric\"" }
### INSTRUCTION Find the last names of the students in third grade that are not taught by COVIN JEROME. ### INPUT CREATE TABLE list (lastname VARCHAR, classroom VARCHAR, grade VARCHAR); CREATE TABLE teachers (classroom VARCHAR, lastname VARCHAR, firstname VARCHAR) ### OUTPUT SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 3 AND T2.firstname <> "COVIN" AND T2.lastname <> "JEROME"
{ "input": "CREATE TABLE list (lastname VARCHAR, classroom VARCHAR, grade VARCHAR); CREATE TABLE teachers (classroom VARCHAR, lastname VARCHAR, firstname VARCHAR)", "instruction": "Find the last names of the students in third grade that are not taught by COVIN JEROME.", "output": "SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T1.grade = 3 AND T2.firstname <> \"COVIN\" AND T2.lastname <> \"JEROME\"" }
### INSTRUCTION Name the sex ratio lowest for population 4773138 ### INPUT CREATE TABLE table_231623_3 (sex_ratio INTEGER, population VARCHAR) ### OUTPUT SELECT MAX(sex_ratio) FROM table_231623_3 WHERE population = 4773138
{ "input": "CREATE TABLE table_231623_3 (sex_ratio INTEGER, population VARCHAR)", "instruction": "Name the sex ratio lowest for population 4773138", "output": "SELECT MAX(sex_ratio) FROM table_231623_3 WHERE population = 4773138" }
### INSTRUCTION Who is the winning team when the year is more than 2003, the score is 19½–14½ and the venue is harding park golf club? ### INPUT CREATE TABLE table_name_31 (winning_team VARCHAR, venue VARCHAR, year VARCHAR, score VARCHAR) ### OUTPUT SELECT winning_team FROM table_name_31 WHERE year > 2003 AND score = "19½–14½" AND venue = "harding park golf club"
{ "input": "CREATE TABLE table_name_31 (winning_team VARCHAR, venue VARCHAR, year VARCHAR, score VARCHAR)", "instruction": "Who is the winning team when the year is more than 2003, the score is 19½–14½ and the venue is harding park golf club?", "output": "SELECT winning_team FROM table_name_31 WHERE year > 2003 AND score = \"19½–14½\" AND venue = \"harding park golf club\"" }
### INSTRUCTION What week was the game played at Robert f. Kennedy memorial stadium with more than 54,633 people in attendance? ### INPUT CREATE TABLE table_name_71 (week VARCHAR, game_site VARCHAR, attendance VARCHAR) ### OUTPUT SELECT COUNT(week) FROM table_name_71 WHERE game_site = "robert f. kennedy memorial stadium" AND attendance > 54 OFFSET 633
{ "input": "CREATE TABLE table_name_71 (week VARCHAR, game_site VARCHAR, attendance VARCHAR)", "instruction": "What week was the game played at Robert f. Kennedy memorial stadium with more than 54,633 people in attendance?", "output": "SELECT COUNT(week) FROM table_name_71 WHERE game_site = \"robert f. kennedy memorial stadium\" AND attendance > 54 OFFSET 633" }
### INSTRUCTION Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages. ### INPUT CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR) ### OUTPUT SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2
{ "input": "CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)", "instruction": "Return the country name and the numbers of languages spoken for each country that speaks at least 3 languages.", "output": "SELECT COUNT(T2.Language), T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode GROUP BY T1.Name HAVING COUNT(*) > 2" }
### INSTRUCTION Name the lowest Time of jamaica with a Lane larger than 4 and a Rank smaller than 1? ### INPUT CREATE TABLE table_name_66 (time INTEGER, rank VARCHAR, nationality VARCHAR, lane VARCHAR) ### OUTPUT SELECT MIN(time) FROM table_name_66 WHERE nationality = "jamaica" AND lane > 4 AND rank < 1
{ "input": "CREATE TABLE table_name_66 (time INTEGER, rank VARCHAR, nationality VARCHAR, lane VARCHAR)", "instruction": "Name the lowest Time of jamaica with a Lane larger than 4 and a Rank smaller than 1?", "output": "SELECT MIN(time) FROM table_name_66 WHERE nationality = \"jamaica\" AND lane > 4 AND rank < 1" }
### INSTRUCTION What is the hand number of the hand where player 1 is south and the east wind is prevailing? ### INPUT CREATE TABLE table_26853172_1 (hand_number VARCHAR, player_1 VARCHAR, prevailing_wind VARCHAR) ### OUTPUT SELECT COUNT(hand_number) FROM table_26853172_1 WHERE player_1 = "South" AND prevailing_wind = "East"
{ "input": "CREATE TABLE table_26853172_1 (hand_number VARCHAR, player_1 VARCHAR, prevailing_wind VARCHAR)", "instruction": "What is the hand number of the hand where player 1 is south and the east wind is prevailing?", "output": "SELECT COUNT(hand_number) FROM table_26853172_1 WHERE player_1 = \"South\" AND prevailing_wind = \"East\"" }
### INSTRUCTION Which season had less than 25.4 viewers and had a viewer rank of #6? ### INPUT CREATE TABLE table_name_43 (season INTEGER, households_viewers__in_millions_ VARCHAR, viewer_rank___number_ VARCHAR) ### OUTPUT SELECT MIN(season) FROM table_name_43 WHERE households_viewers__in_millions_ < 25.4 AND viewer_rank___number_ = "#6"
{ "input": "CREATE TABLE table_name_43 (season INTEGER, households_viewers__in_millions_ VARCHAR, viewer_rank___number_ VARCHAR)", "instruction": "Which season had less than 25.4 viewers and had a viewer rank of #6?", "output": "SELECT MIN(season) FROM table_name_43 WHERE households_viewers__in_millions_ < 25.4 AND viewer_rank___number_ = \"#6\"" }
### INSTRUCTION Which projects have no outcome? List the project details. ### INPUT CREATE TABLE Project_outcomes (project_details VARCHAR, project_id VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR) ### OUTPUT SELECT project_details FROM Projects WHERE NOT project_id IN (SELECT project_id FROM Project_outcomes)
{ "input": "CREATE TABLE Project_outcomes (project_details VARCHAR, project_id VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR)", "instruction": "Which projects have no outcome? List the project details.", "output": "SELECT project_details FROM Projects WHERE NOT project_id IN (SELECT project_id FROM Project_outcomes)" }
### INSTRUCTION Find the name of accounts whose checking balance is below the average checking balance. ### INPUT CREATE TABLE accounts (name VARCHAR, custid VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER) ### OUTPUT SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM checking)
{ "input": "CREATE TABLE accounts (name VARCHAR, custid VARCHAR); CREATE TABLE checking (balance INTEGER); CREATE TABLE checking (custid VARCHAR, balance INTEGER)", "instruction": "Find the name of accounts whose checking balance is below the average checking balance.", "output": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM checking)" }
### INSTRUCTION display the full name (first and last name), and salary of those employees who working in any department located in London. ### INPUT CREATE TABLE locations (location_id VARCHAR, city VARCHAR); CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR) ### OUTPUT SELECT first_name, last_name, salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'
{ "input": "CREATE TABLE locations (location_id VARCHAR, city VARCHAR); CREATE TABLE employees (department_id VARCHAR); CREATE TABLE departments (department_id VARCHAR, location_id VARCHAR)", "instruction": "display the full name (first and last name), and salary of those employees who working in any department located in London.", "output": "SELECT first_name, last_name, salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'" }
### INSTRUCTION What is the lowest population of alessandria where the altitude is less than 197 and density is less than 461.8? ### INPUT CREATE TABLE table_name_37 (population INTEGER, density__inhabitants_km_2__ VARCHAR, altitude__mslm_ VARCHAR, city VARCHAR) ### OUTPUT SELECT MIN(population) FROM table_name_37 WHERE altitude__mslm_ < 197 AND city = "alessandria" AND density__inhabitants_km_2__ < 461.8
{ "input": "CREATE TABLE table_name_37 (population INTEGER, density__inhabitants_km_2__ VARCHAR, altitude__mslm_ VARCHAR, city VARCHAR)", "instruction": "What is the lowest population of alessandria where the altitude is less than 197 and density is less than 461.8?", "output": "SELECT MIN(population) FROM table_name_37 WHERE altitude__mslm_ < 197 AND city = \"alessandria\" AND density__inhabitants_km_2__ < 461.8" }
### INSTRUCTION Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled. ### INPUT CREATE TABLE Claims (Date_Claim_Made VARCHAR, Date_Claim_Settled VARCHAR, Amount_Claimed INTEGER) ### OUTPUT SELECT Date_Claim_Made, Date_Claim_Settled FROM Claims WHERE Amount_Claimed > (SELECT AVG(Amount_Claimed) FROM Claims)
{ "input": "CREATE TABLE Claims (Date_Claim_Made VARCHAR, Date_Claim_Settled VARCHAR, Amount_Claimed INTEGER)", "instruction": "Among all the claims, which claims have a claimed amount larger than the average? List the date the claim was made and the date it was settled.", "output": "SELECT Date_Claim_Made, Date_Claim_Settled FROM Claims WHERE Amount_Claimed > (SELECT AVG(Amount_Claimed) FROM Claims)" }
### INSTRUCTION What is Pocona Municipalities with 72 Totora municipalities and more than 74 pojo municipalities? ### INPUT CREATE TABLE table_name_98 (pocona_municipality VARCHAR, totora_municipality VARCHAR, pojo_municipality VARCHAR) ### OUTPUT SELECT COUNT(pocona_municipality) FROM table_name_98 WHERE totora_municipality = 72 AND pojo_municipality > 74
{ "input": "CREATE TABLE table_name_98 (pocona_municipality VARCHAR, totora_municipality VARCHAR, pojo_municipality VARCHAR)", "instruction": "What is Pocona Municipalities with 72 Totora municipalities and more than 74 pojo municipalities?", "output": "SELECT COUNT(pocona_municipality) FROM table_name_98 WHERE totora_municipality = 72 AND pojo_municipality > 74" }
### INSTRUCTION What is the average Games Played for Bo Oshoniyi, who had more than 1170 minutes and 10 loses? ### INPUT CREATE TABLE table_name_5 (games_played INTEGER, minutes VARCHAR, loses VARCHAR, player VARCHAR) ### OUTPUT SELECT AVG(games_played) FROM table_name_5 WHERE loses = 10 AND player = "bo oshoniyi" AND minutes > 1170
{ "input": "CREATE TABLE table_name_5 (games_played INTEGER, minutes VARCHAR, loses VARCHAR, player VARCHAR)", "instruction": "What is the average Games Played for Bo Oshoniyi, who had more than 1170 minutes and 10 loses?", "output": "SELECT AVG(games_played) FROM table_name_5 WHERE loses = 10 AND player = \"bo oshoniyi\" AND minutes > 1170" }
### INSTRUCTION What is the average number of gold medals Switzerland received when they ranked larger than 1st and received fewer than 10 bronze medals and more than 1 silver medal? ### INPUT CREATE TABLE table_name_90 (gold INTEGER, silver VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR) ### OUTPUT SELECT AVG(gold) FROM table_name_90 WHERE total > 1 AND bronze < 10 AND nation = "switzerland" AND silver > 1
{ "input": "CREATE TABLE table_name_90 (gold INTEGER, silver VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR)", "instruction": "What is the average number of gold medals Switzerland received when they ranked larger than 1st and received fewer than 10 bronze medals and more than 1 silver medal?", "output": "SELECT AVG(gold) FROM table_name_90 WHERE total > 1 AND bronze < 10 AND nation = \"switzerland\" AND silver > 1" }
### INSTRUCTION What's the series number of the episode originally viewed by 4.1 million people and written by Douglas Lieblein? ### INPUT CREATE TABLE table_18055005_1 (no_in_series VARCHAR, viewers__millions_ VARCHAR, written_by VARCHAR) ### OUTPUT SELECT no_in_series FROM table_18055005_1 WHERE viewers__millions_ = "4.1" AND written_by = "Douglas Lieblein"
{ "input": "CREATE TABLE table_18055005_1 (no_in_series VARCHAR, viewers__millions_ VARCHAR, written_by VARCHAR)", "instruction": "What's the series number of the episode originally viewed by 4.1 million people and written by Douglas Lieblein?", "output": "SELECT no_in_series FROM table_18055005_1 WHERE viewers__millions_ = \"4.1\" AND written_by = \"Douglas Lieblein\"" }
### INSTRUCTION What is the total number of laps for a team of team player's, and has a grid of 9, and points larger than 10? ### INPUT CREATE TABLE table_name_12 (laps VARCHAR, points VARCHAR, team VARCHAR, grid VARCHAR) ### OUTPUT SELECT COUNT(laps) FROM table_name_12 WHERE team = "team player's" AND grid = 9 AND points > 10
{ "input": "CREATE TABLE table_name_12 (laps VARCHAR, points VARCHAR, team VARCHAR, grid VARCHAR)", "instruction": "What is the total number of laps for a team of team player's, and has a grid of 9, and points larger than 10?", "output": "SELECT COUNT(laps) FROM table_name_12 WHERE team = \"team player's\" AND grid = 9 AND points > 10" }
### INSTRUCTION Which venue has a Score of 1–0, and a Competition of 2002 world cup qualifier? ### INPUT CREATE TABLE table_name_91 (venue VARCHAR, score VARCHAR, competition VARCHAR) ### OUTPUT SELECT venue FROM table_name_91 WHERE score = "1–0" AND competition = "2002 world cup qualifier"
{ "input": "CREATE TABLE table_name_91 (venue VARCHAR, score VARCHAR, competition VARCHAR)", "instruction": "Which venue has a Score of 1–0, and a Competition of 2002 world cup qualifier?", "output": "SELECT venue FROM table_name_91 WHERE score = \"1–0\" AND competition = \"2002 world cup qualifier\"" }
### INSTRUCTION What is the sambalpuri saree with a samaleswari temple as sambalpuri language? ### INPUT CREATE TABLE table_name_22 (sambalpuri_saree VARCHAR, sambalpuri_language VARCHAR) ### OUTPUT SELECT sambalpuri_saree FROM table_name_22 WHERE sambalpuri_language = "samaleswari temple"
{ "input": "CREATE TABLE table_name_22 (sambalpuri_saree VARCHAR, sambalpuri_language VARCHAR)", "instruction": "What is the sambalpuri saree with a samaleswari temple as sambalpuri language?", "output": "SELECT sambalpuri_saree FROM table_name_22 WHERE sambalpuri_language = \"samaleswari temple\"" }
### INSTRUCTION How many were the show's average weekly ranking when it reached No. 2 in average nightly ranking? ### INPUT CREATE TABLE table_15358729_6 (average_weekly_rank VARCHAR, average_nightly_rank VARCHAR) ### OUTPUT SELECT COUNT(average_weekly_rank) FROM table_15358729_6 WHERE average_nightly_rank = "No. 2"
{ "input": "CREATE TABLE table_15358729_6 (average_weekly_rank VARCHAR, average_nightly_rank VARCHAR)", "instruction": "How many were the show's average weekly ranking when it reached No. 2 in average nightly ranking?", "output": "SELECT COUNT(average_weekly_rank) FROM table_15358729_6 WHERE average_nightly_rank = \"No. 2\"" }
### INSTRUCTION What is home team Chelsea's Tie no? ### INPUT CREATE TABLE table_name_83 (tie_no VARCHAR, home_team VARCHAR) ### OUTPUT SELECT tie_no FROM table_name_83 WHERE home_team = "chelsea"
{ "input": "CREATE TABLE table_name_83 (tie_no VARCHAR, home_team VARCHAR)", "instruction": "What is home team Chelsea's Tie no?", "output": "SELECT tie_no FROM table_name_83 WHERE home_team = \"chelsea\"" }
### INSTRUCTION What is the number for combaya municipality when quiabaya municipality is 33? ### INPUT CREATE TABLE table_2509202_2 (combaya_municipality VARCHAR, quiabaya_municipality VARCHAR) ### OUTPUT SELECT combaya_municipality FROM table_2509202_2 WHERE quiabaya_municipality = "33"
{ "input": "CREATE TABLE table_2509202_2 (combaya_municipality VARCHAR, quiabaya_municipality VARCHAR)", "instruction": "What is the number for combaya municipality when quiabaya municipality is 33?", "output": "SELECT combaya_municipality FROM table_2509202_2 WHERE quiabaya_municipality = \"33\"" }
### INSTRUCTION What is Southern Illinois University Edwardsville's affiliation? ### INPUT CREATE TABLE table_name_48 (affiliation VARCHAR, institution VARCHAR) ### OUTPUT SELECT affiliation FROM table_name_48 WHERE institution = "southern illinois university edwardsville"
{ "input": "CREATE TABLE table_name_48 (affiliation VARCHAR, institution VARCHAR)", "instruction": "What is Southern Illinois University Edwardsville's affiliation?", "output": "SELECT affiliation FROM table_name_48 WHERE institution = \"southern illinois university edwardsville\"" }
### INSTRUCTION what is 2011 when the rank is less than 8 and the water park is ocean world? ### INPUT CREATE TABLE table_name_58 (rank VARCHAR, water_park VARCHAR) ### OUTPUT SELECT SUM(2011) FROM table_name_58 WHERE rank < 8 AND water_park = "ocean world"
{ "input": "CREATE TABLE table_name_58 (rank VARCHAR, water_park VARCHAR)", "instruction": "what is 2011 when the rank is less than 8 and the water park is ocean world?", "output": "SELECT SUM(2011) FROM table_name_58 WHERE rank < 8 AND water_park = \"ocean world\"" }
### INSTRUCTION List the id of students who never attends courses? ### INPUT CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE students (student_id VARCHAR) ### OUTPUT SELECT student_id FROM students WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance)
{ "input": "CREATE TABLE student_course_attendance (student_id VARCHAR); CREATE TABLE students (student_id VARCHAR)", "instruction": "List the id of students who never attends courses?", "output": "SELECT student_id FROM students WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance)" }
### INSTRUCTION What is the average Round for wide receiver r. jay soward and Overall smaller than 29? ### INPUT CREATE TABLE table_name_16 (round INTEGER, overall VARCHAR, position VARCHAR, name VARCHAR) ### OUTPUT SELECT AVG(round) FROM table_name_16 WHERE position = "wide receiver" AND name = "r. jay soward" AND overall < 29
{ "input": "CREATE TABLE table_name_16 (round INTEGER, overall VARCHAR, position VARCHAR, name VARCHAR)", "instruction": "What is the average Round for wide receiver r. jay soward and Overall smaller than 29?", "output": "SELECT AVG(round) FROM table_name_16 WHERE position = \"wide receiver\" AND name = \"r. jay soward\" AND overall < 29" }
### INSTRUCTION Which of the second parties has second member Charles Robert Colvile, a conservative first party, and first member William Mundy? ### INPUT CREATE TABLE table_name_31 (second_party VARCHAR, first_member VARCHAR, second_member VARCHAR, first_party VARCHAR) ### OUTPUT SELECT second_party FROM table_name_31 WHERE second_member = "charles robert colvile" AND first_party = "conservative" AND first_member = "william mundy"
{ "input": "CREATE TABLE table_name_31 (second_party VARCHAR, first_member VARCHAR, second_member VARCHAR, first_party VARCHAR)", "instruction": "Which of the second parties has second member Charles Robert Colvile, a conservative first party, and first member William Mundy?", "output": "SELECT second_party FROM table_name_31 WHERE second_member = \"charles robert colvile\" AND first_party = \"conservative\" AND first_member = \"william mundy\"" }
### INSTRUCTION WHAT YEAR HAS A BRONZE OF VALENTIN NOVIKOV? ### INPUT CREATE TABLE table_name_88 (year INTEGER, bronze VARCHAR) ### OUTPUT SELECT AVG(year) FROM table_name_88 WHERE bronze = "valentin novikov"
{ "input": "CREATE TABLE table_name_88 (year INTEGER, bronze VARCHAR)", "instruction": "WHAT YEAR HAS A BRONZE OF VALENTIN NOVIKOV?", "output": "SELECT AVG(year) FROM table_name_88 WHERE bronze = \"valentin novikov\"" }
### INSTRUCTION What is the theme for Audition week? ### INPUT CREATE TABLE table_26250176_1 (theme VARCHAR, week__number VARCHAR) ### OUTPUT SELECT theme FROM table_26250176_1 WHERE week__number = "Audition"
{ "input": "CREATE TABLE table_26250176_1 (theme VARCHAR, week__number VARCHAR)", "instruction": "What is the theme for Audition week?", "output": "SELECT theme FROM table_26250176_1 WHERE week__number = \"Audition\"" }
### INSTRUCTION Who did the Lyrics (l) / Music (m) for the song in 23 Place? ### INPUT CREATE TABLE table_name_76 (lyrics__l____music__m_ VARCHAR, place VARCHAR) ### OUTPUT SELECT lyrics__l____music__m_ FROM table_name_76 WHERE place = "23"
{ "input": "CREATE TABLE table_name_76 (lyrics__l____music__m_ VARCHAR, place VARCHAR)", "instruction": "Who did the Lyrics (l) / Music (m) for the song in 23 Place?", "output": "SELECT lyrics__l____music__m_ FROM table_name_76 WHERE place = \"23\"" }
### INSTRUCTION Which Opponent has a Method of tko, and a Location of elgin, illinois, usa on 2001-02-11? ### INPUT CREATE TABLE table_name_7 (opponent VARCHAR, date VARCHAR, method VARCHAR, location VARCHAR) ### OUTPUT SELECT opponent FROM table_name_7 WHERE method = "tko" AND location = "elgin, illinois, usa" AND date = "2001-02-11"
{ "input": "CREATE TABLE table_name_7 (opponent VARCHAR, date VARCHAR, method VARCHAR, location VARCHAR)", "instruction": "Which Opponent has a Method of tko, and a Location of elgin, illinois, usa on 2001-02-11?", "output": "SELECT opponent FROM table_name_7 WHERE method = \"tko\" AND location = \"elgin, illinois, usa\" AND date = \"2001-02-11\"" }
### INSTRUCTION What was the office up for election when Sylvia Weinstein ran under the Socialist Workers ticket? ### INPUT CREATE TABLE table_name_55 (office VARCHAR, socialist_workers_ticket VARCHAR) ### OUTPUT SELECT office FROM table_name_55 WHERE socialist_workers_ticket = "sylvia weinstein"
{ "input": "CREATE TABLE table_name_55 (office VARCHAR, socialist_workers_ticket VARCHAR)", "instruction": "What was the office up for election when Sylvia Weinstein ran under the Socialist Workers ticket?", "output": "SELECT office FROM table_name_55 WHERE socialist_workers_ticket = \"sylvia weinstein\"" }
### INSTRUCTION Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'. ### INPUT CREATE TABLE routes (dst_apid VARCHAR, alid VARCHAR); CREATE TABLE airports (apid VARCHAR, country VARCHAR); CREATE TABLE airlines (alid VARCHAR, name VARCHAR) ### OUTPUT SELECT COUNT(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines'
{ "input": "CREATE TABLE routes (dst_apid VARCHAR, alid VARCHAR); CREATE TABLE airports (apid VARCHAR, country VARCHAR); CREATE TABLE airlines (alid VARCHAR, name VARCHAR)", "instruction": "Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'.", "output": "SELECT COUNT(*) FROM routes AS T1 JOIN airports AS T2 ON T1.dst_apid = T2.apid JOIN airlines AS T3 ON T1.alid = T3.alid WHERE T2.country = 'Italy' AND T3.name = 'American Airlines'" }
### INSTRUCTION Round larger than 6, and a Pick # smaller than 25, and a College of southern Illinois has what position? ### INPUT CREATE TABLE table_name_48 (position VARCHAR, college VARCHAR, round VARCHAR, pick__number VARCHAR) ### OUTPUT SELECT position FROM table_name_48 WHERE round > 6 AND pick__number < 25 AND college = "southern illinois"
{ "input": "CREATE TABLE table_name_48 (position VARCHAR, college VARCHAR, round VARCHAR, pick__number VARCHAR)", "instruction": "Round larger than 6, and a Pick # smaller than 25, and a College of southern Illinois has what position?", "output": "SELECT position FROM table_name_48 WHERE round > 6 AND pick__number < 25 AND college = \"southern illinois\"" }
### INSTRUCTION What is the League Goals when the FA Cup Goals are 0, position is mf, League Cup Apps of 0, and name is Ben Thornley? ### INPUT CREATE TABLE table_name_98 (league_goals INTEGER, name VARCHAR, league_cup_apps VARCHAR, fa_cup_goals VARCHAR, position VARCHAR) ### OUTPUT SELECT AVG(league_goals) FROM table_name_98 WHERE fa_cup_goals = "0" AND position = "mf" AND league_cup_apps = "0" AND name = "ben thornley"
{ "input": "CREATE TABLE table_name_98 (league_goals INTEGER, name VARCHAR, league_cup_apps VARCHAR, fa_cup_goals VARCHAR, position VARCHAR)", "instruction": "What is the League Goals when the FA Cup Goals are 0, position is mf, League Cup Apps of 0, and name is Ben Thornley?", "output": "SELECT AVG(league_goals) FROM table_name_98 WHERE fa_cup_goals = \"0\" AND position = \"mf\" AND league_cup_apps = \"0\" AND name = \"ben thornley\"" }
### INSTRUCTION List the project details of the project both producing patent and paper as outcomes. ### INPUT CREATE TABLE Project_outcomes (project_id VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR) ### OUTPUT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent'
{ "input": "CREATE TABLE Project_outcomes (project_id VARCHAR, outcome_code VARCHAR); CREATE TABLE Projects (project_details VARCHAR, project_id VARCHAR)", "instruction": "List the project details of the project both producing patent and paper as outcomes.", "output": "SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Paper' INTERSECT SELECT T1.project_details FROM Projects AS T1 JOIN Project_outcomes AS T2 ON T1.project_id = T2.project_id WHERE T2.outcome_code = 'Patent'" }
### INSTRUCTION Who is Eric McClure's and Tristar Motorsports' crew chief? ### INPUT CREATE TABLE table_name_36 (crew_chief VARCHAR, team VARCHAR, driver_s_ VARCHAR) ### OUTPUT SELECT crew_chief FROM table_name_36 WHERE team = "tristar motorsports" AND driver_s_ = "eric mcclure"
{ "input": "CREATE TABLE table_name_36 (crew_chief VARCHAR, team VARCHAR, driver_s_ VARCHAR)", "instruction": "Who is Eric McClure's and Tristar Motorsports' crew chief?", "output": "SELECT crew_chief FROM table_name_36 WHERE team = \"tristar motorsports\" AND driver_s_ = \"eric mcclure\"" }
### INSTRUCTION Tell me the least Grid with points more than 11 and drivers being sébastien bourdais with laps less than 67 ### INPUT CREATE TABLE table_name_96 (grid INTEGER, laps VARCHAR, points VARCHAR, driver VARCHAR) ### OUTPUT SELECT MIN(grid) FROM table_name_96 WHERE points > 11 AND driver = "sébastien bourdais" AND laps < 67
{ "input": "CREATE TABLE table_name_96 (grid INTEGER, laps VARCHAR, points VARCHAR, driver VARCHAR)", "instruction": "Tell me the least Grid with points more than 11 and drivers being sébastien bourdais with laps less than 67", "output": "SELECT MIN(grid) FROM table_name_96 WHERE points > 11 AND driver = \"sébastien bourdais\" AND laps < 67" }
### INSTRUCTION What country had the total 18,900 (r)? ### INPUT CREATE TABLE table_10586064_2 (county VARCHAR, total VARCHAR) ### OUTPUT SELECT county FROM table_10586064_2 WHERE total = "18,900 (R)"
{ "input": "CREATE TABLE table_10586064_2 (county VARCHAR, total VARCHAR)", "instruction": "What country had the total 18,900 (r)?", "output": "SELECT county FROM table_10586064_2 WHERE total = \"18,900 (R)\"" }
### INSTRUCTION How many original air dates totaled 26.06 million viewers? ### INPUT CREATE TABLE table_18217753_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR) ### OUTPUT SELECT COUNT(original_air_date) FROM table_18217753_1 WHERE us_viewers__millions_ = "26.06"
{ "input": "CREATE TABLE table_18217753_1 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)", "instruction": "How many original air dates totaled 26.06 million viewers?", "output": "SELECT COUNT(original_air_date) FROM table_18217753_1 WHERE us_viewers__millions_ = \"26.06\"" }
### INSTRUCTION Name the total number of population 2000 census for mesquita ### INPUT CREATE TABLE table_14986292_1 (population_2000_census VARCHAR, administrative_division VARCHAR) ### OUTPUT SELECT COUNT(population_2000_census) FROM table_14986292_1 WHERE administrative_division = "Mesquita"
{ "input": "CREATE TABLE table_14986292_1 (population_2000_census VARCHAR, administrative_division VARCHAR)", "instruction": "Name the total number of population 2000 census for mesquita", "output": "SELECT COUNT(population_2000_census) FROM table_14986292_1 WHERE administrative_division = \"Mesquita\"" }
### INSTRUCTION What is the fewest amendments sponsored associated with 150 bills originally cosponsored and over 247 bills cosponsored? ### INPUT CREATE TABLE table_name_52 (all_amendments_sponsored INTEGER, bills_originally_cosponsored VARCHAR, all_bills_cosponsored VARCHAR) ### OUTPUT SELECT MIN(all_amendments_sponsored) FROM table_name_52 WHERE bills_originally_cosponsored = 150 AND all_bills_cosponsored > 247
{ "input": "CREATE TABLE table_name_52 (all_amendments_sponsored INTEGER, bills_originally_cosponsored VARCHAR, all_bills_cosponsored VARCHAR)", "instruction": "What is the fewest amendments sponsored associated with 150 bills originally cosponsored and over 247 bills cosponsored?", "output": "SELECT MIN(all_amendments_sponsored) FROM table_name_52 WHERE bills_originally_cosponsored = 150 AND all_bills_cosponsored > 247" }
### INSTRUCTION Which player has a College of arizona? ### INPUT CREATE TABLE table_name_83 (player VARCHAR, college VARCHAR) ### OUTPUT SELECT player FROM table_name_83 WHERE college = "arizona"
{ "input": "CREATE TABLE table_name_83 (player VARCHAR, college VARCHAR)", "instruction": "Which player has a College of arizona?", "output": "SELECT player FROM table_name_83 WHERE college = \"arizona\"" }
### INSTRUCTION What is the fewest points for positions with under 12 losses, goals against under 50, goal difference over 11, and under 30 played? ### INPUT CREATE TABLE table_name_22 (points INTEGER, played VARCHAR, goal_difference VARCHAR, losses VARCHAR, goals_against VARCHAR) ### OUTPUT SELECT MIN(points) FROM table_name_22 WHERE losses < 12 AND goals_against < 50 AND goal_difference > 11 AND played < 30
{ "input": "CREATE TABLE table_name_22 (points INTEGER, played VARCHAR, goal_difference VARCHAR, losses VARCHAR, goals_against VARCHAR)", "instruction": "What is the fewest points for positions with under 12 losses, goals against under 50, goal difference over 11, and under 30 played?", "output": "SELECT MIN(points) FROM table_name_22 WHERE losses < 12 AND goals_against < 50 AND goal_difference > 11 AND played < 30" }
### INSTRUCTION Find the name of persons who are friends with Bob. ### INPUT CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR) ### OUTPUT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob'
{ "input": "CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)", "instruction": "Find the name of persons who are friends with Bob.", "output": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Bob'" }
### INSTRUCTION Name the original air date for production code 1l16 ### INPUT CREATE TABLE table_25604014_9 (original_air_date VARCHAR, production_code VARCHAR) ### OUTPUT SELECT original_air_date FROM table_25604014_9 WHERE production_code = "1L16"
{ "input": "CREATE TABLE table_25604014_9 (original_air_date VARCHAR, production_code VARCHAR)", "instruction": "Name the original air date for production code 1l16", "output": "SELECT original_air_date FROM table_25604014_9 WHERE production_code = \"1L16\"" }
### INSTRUCTION What is the number of guests for the Viking Ingvar, built earlier than 1990? ### INPUT CREATE TABLE table_name_46 (guests INTEGER, ship_name VARCHAR, year_built VARCHAR) ### OUTPUT SELECT AVG(guests) FROM table_name_46 WHERE ship_name = "viking ingvar" AND year_built < 1990
{ "input": "CREATE TABLE table_name_46 (guests INTEGER, ship_name VARCHAR, year_built VARCHAR)", "instruction": "What is the number of guests for the Viking Ingvar, built earlier than 1990?", "output": "SELECT AVG(guests) FROM table_name_46 WHERE ship_name = \"viking ingvar\" AND year_built < 1990" }
### INSTRUCTION How many games were played where the height of the player is 1.92m? ### INPUT CREATE TABLE table_26847237_2 (games VARCHAR, height VARCHAR) ### OUTPUT SELECT COUNT(games) FROM table_26847237_2 WHERE height = "1.92m"
{ "input": "CREATE TABLE table_26847237_2 (games VARCHAR, height VARCHAR)", "instruction": "How many games were played where the height of the player is 1.92m?", "output": "SELECT COUNT(games) FROM table_26847237_2 WHERE height = \"1.92m\"" }
### INSTRUCTION How many different actors from the Second national tour year 2 played the character played by Oliver Tompsett from the original West End cast? ### INPUT CREATE TABLE table_19529639_3 (second_national_tour_year_2 VARCHAR, original_west_end_cast VARCHAR) ### OUTPUT SELECT COUNT(second_national_tour_year_2) FROM table_19529639_3 WHERE original_west_end_cast = "Oliver Tompsett"
{ "input": "CREATE TABLE table_19529639_3 (second_national_tour_year_2 VARCHAR, original_west_end_cast VARCHAR)", "instruction": "How many different actors from the Second national tour year 2 played the character played by Oliver Tompsett from the original West End cast?", "output": "SELECT COUNT(second_national_tour_year_2) FROM table_19529639_3 WHERE original_west_end_cast = \"Oliver Tompsett\"" }
### INSTRUCTION What is the sum of the places of the team with more than 49 points and less than 54 goals scored? ### INPUT CREATE TABLE table_name_70 (place__posición_ INTEGER, points__pts_ VARCHAR, goals_scored__gf_ VARCHAR) ### OUTPUT SELECT SUM(place__posición_) FROM table_name_70 WHERE points__pts_ > 49 AND goals_scored__gf_ < 54
{ "input": "CREATE TABLE table_name_70 (place__posición_ INTEGER, points__pts_ VARCHAR, goals_scored__gf_ VARCHAR)", "instruction": "What is the sum of the places of the team with more than 49 points and less than 54 goals scored?", "output": "SELECT SUM(place__posición_) FROM table_name_70 WHERE points__pts_ > 49 AND goals_scored__gf_ < 54" }
### INSTRUCTION What are the allergies and their types that the student with first name Lisa has? And order the result by name of allergies. ### INPUT CREATE TABLE Has_allergy (Allergy VARCHAR, StuID VARCHAR); CREATE TABLE Student (StuID VARCHAR, Fname VARCHAR); CREATE TABLE Allergy_type (Allergy VARCHAR, AllergyType VARCHAR) ### OUTPUT SELECT T1.Allergy, T1.AllergyType 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" ORDER BY T1.Allergy
{ "input": "CREATE TABLE Has_allergy (Allergy VARCHAR, StuID VARCHAR); CREATE TABLE Student (StuID VARCHAR, Fname VARCHAR); CREATE TABLE Allergy_type (Allergy VARCHAR, AllergyType VARCHAR)", "instruction": "What are the allergies and their types that the student with first name Lisa has? And order the result by name of allergies.", "output": "SELECT T1.Allergy, T1.AllergyType 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\" ORDER BY T1.Allergy" }
### INSTRUCTION I want the displacement for version of db ### INPUT CREATE TABLE table_name_28 (displacement VARCHAR, version VARCHAR) ### OUTPUT SELECT displacement FROM table_name_28 WHERE version = "db"
{ "input": "CREATE TABLE table_name_28 (displacement VARCHAR, version VARCHAR)", "instruction": "I want the displacement for version of db", "output": "SELECT displacement FROM table_name_28 WHERE version = \"db\"" }
### INSTRUCTION Name the team at the rose garden 20,565 ### INPUT CREATE TABLE table_23286158_8 (team VARCHAR, location_attendance VARCHAR) ### OUTPUT SELECT team FROM table_23286158_8 WHERE location_attendance = "Rose Garden 20,565"
{ "input": "CREATE TABLE table_23286158_8 (team VARCHAR, location_attendance VARCHAR)", "instruction": "Name the team at the rose garden 20,565", "output": "SELECT team FROM table_23286158_8 WHERE location_attendance = \"Rose Garden 20,565\"" }
### INSTRUCTION Show the name for regions and the number of storms for each region. ### INPUT CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR) ### OUTPUT SELECT T1.region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id
{ "input": "CREATE TABLE region (region_name VARCHAR, region_id VARCHAR); CREATE TABLE affected_region (region_id VARCHAR)", "instruction": "Show the name for regions and the number of storms for each region.", "output": "SELECT T1.region_name, COUNT(*) FROM region AS T1 JOIN affected_region AS T2 ON T1.region_id = T2.region_id GROUP BY T1.region_id" }
### INSTRUCTION What is the S Registered User, when Userpics Free is 6 [free] or 15 [plus]? ### INPUT CREATE TABLE table_name_98 (s_registered_user VARCHAR, userpics_free VARCHAR) ### OUTPUT SELECT s_registered_user FROM table_name_98 WHERE userpics_free = "6 [free] or 15 [plus]"
{ "input": "CREATE TABLE table_name_98 (s_registered_user VARCHAR, userpics_free VARCHAR)", "instruction": "What is the S Registered User, when Userpics Free is 6 [free] or 15 [plus]?", "output": "SELECT s_registered_user FROM table_name_98 WHERE userpics_free = \"6 [free] or 15 [plus]\"" }
### INSTRUCTION Find the name of the tryout players who are from the college with largest size. ### INPUT CREATE TABLE college (cName VARCHAR, enr VARCHAR); CREATE TABLE tryout (pID VARCHAR, cName VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR) ### OUTPUT SELECT T2.pName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T1.cName = (SELECT cName FROM college ORDER BY enr DESC LIMIT 1)
{ "input": "CREATE TABLE college (cName VARCHAR, enr VARCHAR); CREATE TABLE tryout (pID VARCHAR, cName VARCHAR); CREATE TABLE player (pName VARCHAR, pID VARCHAR)", "instruction": "Find the name of the tryout players who are from the college with largest size.", "output": "SELECT T2.pName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T1.cName = (SELECT cName FROM college ORDER BY enr DESC LIMIT 1)" }
### INSTRUCTION Name the candidates for new york 21 ### INPUT CREATE TABLE table_2668243_17 (candidates VARCHAR, district VARCHAR) ### OUTPUT SELECT candidates FROM table_2668243_17 WHERE district = "New York 21"
{ "input": "CREATE TABLE table_2668243_17 (candidates VARCHAR, district VARCHAR)", "instruction": "Name the candidates for new york 21", "output": "SELECT candidates FROM table_2668243_17 WHERE district = \"New York 21\"" }
### INSTRUCTION The graduate assistant who was in the 1st year at CU has what experience? ### INPUT CREATE TABLE table_name_29 (experience VARCHAR, year_at_cu VARCHAR, position VARCHAR) ### OUTPUT SELECT experience FROM table_name_29 WHERE year_at_cu = "1st" AND position = "graduate assistant"
{ "input": "CREATE TABLE table_name_29 (experience VARCHAR, year_at_cu VARCHAR, position VARCHAR)", "instruction": "The graduate assistant who was in the 1st year at CU has what experience?", "output": "SELECT experience FROM table_name_29 WHERE year_at_cu = \"1st\" AND position = \"graduate assistant\"" }
### INSTRUCTION What is the highest 4 hoops, 2 clubs of Belarus, which has a total less than 38.25? ### INPUT ### OUTPUT SELECT TOP('4 hoops 2 clubs') FROM table_name_14 WHERE nation = "belarus" AND total < 38.25
{ "input": "", "instruction": "What is the highest 4 hoops, 2 clubs of Belarus, which has a total less than 38.25?", "output": "SELECT TOP('4 hoops 2 clubs') FROM table_name_14 WHERE nation = \"belarus\" AND total < 38.25" }
### INSTRUCTION What is the Singapore Gross with a Producer that is 2000? ### INPUT CREATE TABLE table_name_72 (singapore_gross VARCHAR, producer VARCHAR) ### OUTPUT SELECT singapore_gross FROM table_name_72 WHERE producer = "2000"
{ "input": "CREATE TABLE table_name_72 (singapore_gross VARCHAR, producer VARCHAR)", "instruction": "What is the Singapore Gross with a Producer that is 2000?", "output": "SELECT singapore_gross FROM table_name_72 WHERE producer = \"2000\"" }
### INSTRUCTION What's the bronze count for South Africa (RSA) with a total more than 16? ### INPUT CREATE TABLE table_name_64 (bronze INTEGER, nation VARCHAR, total VARCHAR) ### OUTPUT SELECT MAX(bronze) FROM table_name_64 WHERE nation = "south africa (rsa)" AND total > 16
{ "input": "CREATE TABLE table_name_64 (bronze INTEGER, nation VARCHAR, total VARCHAR)", "instruction": "What's the bronze count for South Africa (RSA) with a total more than 16?", "output": "SELECT MAX(bronze) FROM table_name_64 WHERE nation = \"south africa (rsa)\" AND total > 16" }
### INSTRUCTION What are the description and credit of the course which the student whose last name is Smithson took? ### INPUT CREATE TABLE student (stu_num VARCHAR, stu_lname VARCHAR); CREATE TABLE course (crs_description VARCHAR, crs_credit VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR) ### OUTPUT SELECT T4.crs_description, T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num JOIN course AS T4 ON T4.crs_code = T1.crs_code WHERE T3.stu_lname = 'Smithson'
{ "input": "CREATE TABLE student (stu_num VARCHAR, stu_lname VARCHAR); CREATE TABLE course (crs_description VARCHAR, crs_credit VARCHAR, crs_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE enroll (class_code VARCHAR, stu_num VARCHAR)", "instruction": "What are the description and credit of the course which the student whose last name is Smithson took?", "output": "SELECT T4.crs_description, T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN student AS T3 ON T3.stu_num = T2.stu_num JOIN course AS T4 ON T4.crs_code = T1.crs_code WHERE T3.stu_lname = 'Smithson'" }
### INSTRUCTION What was the result of the game against the Miami Dolphins held at the Riverfront Stadium? ### INPUT CREATE TABLE table_name_46 (result VARCHAR, location VARCHAR, opponent VARCHAR) ### OUTPUT SELECT result FROM table_name_46 WHERE location = "riverfront stadium" AND opponent = "miami dolphins"
{ "input": "CREATE TABLE table_name_46 (result VARCHAR, location VARCHAR, opponent VARCHAR)", "instruction": "What was the result of the game against the Miami Dolphins held at the Riverfront Stadium?", "output": "SELECT result FROM table_name_46 WHERE location = \"riverfront stadium\" AND opponent = \"miami dolphins\"" }
### INSTRUCTION Where will the game at (ET) of 7:00 pm be at? ### INPUT CREATE TABLE table_name_2 (game_site VARCHAR, time___et__ VARCHAR) ### OUTPUT SELECT game_site FROM table_name_2 WHERE time___et__ = "7:00 pm"
{ "input": "CREATE TABLE table_name_2 (game_site VARCHAR, time___et__ VARCHAR)", "instruction": "Where will the game at (ET) of 7:00 pm be at?", "output": "SELECT game_site FROM table_name_2 WHERE time___et__ = \"7:00 pm\"" }
### INSTRUCTION How many engineer visits are required at most for a single fault log? List the number and the log entry id. ### INPUT CREATE TABLE Fault_Log (fault_log_entry_id VARCHAR); CREATE TABLE Engineer_Visits (fault_log_entry_id VARCHAR) ### OUTPUT SELECT COUNT(*), T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Fault_Log (fault_log_entry_id VARCHAR); CREATE TABLE Engineer_Visits (fault_log_entry_id VARCHAR)", "instruction": "How many engineer visits are required at most for a single fault log? List the number and the log entry id.", "output": "SELECT COUNT(*), T1.fault_log_entry_id FROM Fault_Log AS T1 JOIN Engineer_Visits AS T2 ON T1.fault_log_entry_id = T2.fault_log_entry_id GROUP BY T1.fault_log_entry_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION How many of the writers had 5.35 viewers? ### INPUT CREATE TABLE table_22053239_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR) ### OUTPUT SELECT COUNT(written_by) FROM table_22053239_1 WHERE us_viewers__millions_ = "5.35"
{ "input": "CREATE TABLE table_22053239_1 (written_by VARCHAR, us_viewers__millions_ VARCHAR)", "instruction": "How many of the writers had 5.35 viewers?", "output": "SELECT COUNT(written_by) FROM table_22053239_1 WHERE us_viewers__millions_ = \"5.35\"" }
### INSTRUCTION What was the home team's score when Geelong was the away team? ### INPUT CREATE TABLE table_name_1 (home_team VARCHAR, away_team VARCHAR) ### OUTPUT SELECT home_team AS score FROM table_name_1 WHERE away_team = "geelong"
{ "input": "CREATE TABLE table_name_1 (home_team VARCHAR, away_team VARCHAR)", "instruction": "What was the home team's score when Geelong was the away team?", "output": "SELECT home_team AS score FROM table_name_1 WHERE away_team = \"geelong\"" }
### INSTRUCTION What is the model of the engine d5244 t7? ### INPUT CREATE TABLE table_1147701_5 (model_name VARCHAR, engine_code VARCHAR) ### OUTPUT SELECT model_name FROM table_1147701_5 WHERE engine_code = "D5244 T7"
{ "input": "CREATE TABLE table_1147701_5 (model_name VARCHAR, engine_code VARCHAR)", "instruction": "What is the model of the engine d5244 t7?", "output": "SELECT model_name FROM table_1147701_5 WHERE engine_code = \"D5244 T7\"" }
### INSTRUCTION Tell me the tournament with a hard surface for 6–1, 6–2 ### INPUT CREATE TABLE table_name_99 (tournament VARCHAR, surface VARCHAR, score VARCHAR) ### OUTPUT SELECT tournament FROM table_name_99 WHERE surface = "hard" AND score = "6–1, 6–2"
{ "input": "CREATE TABLE table_name_99 (tournament VARCHAR, surface VARCHAR, score VARCHAR)", "instruction": "Tell me the tournament with a hard surface for 6–1, 6–2", "output": "SELECT tournament FROM table_name_99 WHERE surface = \"hard\" AND score = \"6–1, 6–2\"" }
### INSTRUCTION What is the lowest nightly rank for an episode after episode 1 with a rating/share of 2.6/8? ### INPUT CREATE TABLE table_name_91 (rank__night_ INTEGER, episode VARCHAR, rating VARCHAR) ### OUTPUT SELECT MIN(rank__night_) FROM table_name_91 WHERE rating / SHARE(18 - 49) = 2.6 / 8 AND episode > 1
{ "input": "CREATE TABLE table_name_91 (rank__night_ INTEGER, episode VARCHAR, rating VARCHAR)", "instruction": "What is the lowest nightly rank for an episode after episode 1 with a rating/share of 2.6/8?", "output": "SELECT MIN(rank__night_) FROM table_name_91 WHERE rating / SHARE(18 - 49) = 2.6 / 8 AND episode > 1" }
### INSTRUCTION what's the electorate where election date is 16 cannot handle non-empty timestamp argument! ### INPUT CREATE TABLE table_1193568_1 (electorate VARCHAR, election_date VARCHAR) ### OUTPUT SELECT electorate FROM table_1193568_1 WHERE election_date = "16 Cannot handle non-empty timestamp argument!"
{ "input": "CREATE TABLE table_1193568_1 (electorate VARCHAR, election_date VARCHAR)", "instruction": " what's the electorate where election date is 16 cannot handle non-empty timestamp argument!", "output": "SELECT electorate FROM table_1193568_1 WHERE election_date = \"16 Cannot handle non-empty timestamp argument!\"" }
### INSTRUCTION What is the most common birth place of people? ### INPUT CREATE TABLE people (Birth_Place VARCHAR) ### OUTPUT SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE people (Birth_Place VARCHAR)", "instruction": "What is the most common birth place of people?", "output": "SELECT Birth_Place FROM people GROUP BY Birth_Place ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the newest Season in which had 0 Podiums, and having 1 total of Races, as well as total wins larger than 0? ### INPUT CREATE TABLE table_name_65 (season INTEGER, wins VARCHAR, podiums VARCHAR, races VARCHAR) ### OUTPUT SELECT MAX(season) FROM table_name_65 WHERE podiums = 0 AND races = 1 AND wins > 0
{ "input": "CREATE TABLE table_name_65 (season INTEGER, wins VARCHAR, podiums VARCHAR, races VARCHAR)", "instruction": "What is the newest Season in which had 0 Podiums, and having 1 total of Races, as well as total wins larger than 0?", "output": "SELECT MAX(season) FROM table_name_65 WHERE podiums = 0 AND races = 1 AND wins > 0" }
### INSTRUCTION What is the average down (up to kbit/s) when the provider is willy.tel and the up (kbit/s) is more than 1984? ### INPUT CREATE TABLE table_name_73 (down__up_to_kbit_s_ INTEGER, provider VARCHAR, up__up_to_kbit_s_ VARCHAR) ### OUTPUT SELECT AVG(down__up_to_kbit_s_) FROM table_name_73 WHERE provider = "willy.tel" AND up__up_to_kbit_s_ > 1984
{ "input": "CREATE TABLE table_name_73 (down__up_to_kbit_s_ INTEGER, provider VARCHAR, up__up_to_kbit_s_ VARCHAR)", "instruction": "What is the average down (up to kbit/s) when the provider is willy.tel and the up (kbit/s) is more than 1984?", "output": "SELECT AVG(down__up_to_kbit_s_) FROM table_name_73 WHERE provider = \"willy.tel\" AND up__up_to_kbit_s_ > 1984" }
### INSTRUCTION What is the location of the race on 11 November? ### INPUT CREATE TABLE table_name_14 (location VARCHAR, date VARCHAR) ### OUTPUT SELECT location FROM table_name_14 WHERE date = "11 november"
{ "input": "CREATE TABLE table_name_14 (location VARCHAR, date VARCHAR)", "instruction": "What is the location of the race on 11 November?", "output": "SELECT location FROM table_name_14 WHERE date = \"11 november\"" }
### INSTRUCTION What year did Yuri Omeltchenko win Silver? ### INPUT CREATE TABLE table_name_57 (year VARCHAR, silver VARCHAR) ### OUTPUT SELECT year FROM table_name_57 WHERE silver = "yuri omeltchenko"
{ "input": "CREATE TABLE table_name_57 (year VARCHAR, silver VARCHAR)", "instruction": "What year did Yuri Omeltchenko win Silver?", "output": "SELECT year FROM table_name_57 WHERE silver = \"yuri omeltchenko\"" }
### INSTRUCTION Give me a list of distinct product ids from orders placed between 1975-01-01 and 1976-01-01? ### INPUT CREATE TABLE order_items (product_id VARCHAR, order_id VARCHAR); CREATE TABLE orders (order_id VARCHAR, date_order_placed VARCHAR) ### OUTPUT SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= "1975-01-01" AND T1.date_order_placed <= "1976-01-01"
{ "input": "CREATE TABLE order_items (product_id VARCHAR, order_id VARCHAR); CREATE TABLE orders (order_id VARCHAR, date_order_placed VARCHAR)", "instruction": "Give me a list of distinct product ids from orders placed between 1975-01-01 and 1976-01-01?", "output": "SELECT DISTINCT T2.product_id FROM orders AS T1 JOIN order_items AS T2 ON T1.order_id = T2.order_id WHERE T1.date_order_placed >= \"1975-01-01\" AND T1.date_order_placed <= \"1976-01-01\"" }
### INSTRUCTION Who was the opponents in the final on January 5, 2003, on a hard surface? ### INPUT CREATE TABLE table_name_19 (opponents_in_the_final VARCHAR, surface VARCHAR, date VARCHAR) ### OUTPUT SELECT opponents_in_the_final FROM table_name_19 WHERE surface = "hard" AND date = "january 5, 2003"
{ "input": "CREATE TABLE table_name_19 (opponents_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)", "instruction": "Who was the opponents in the final on January 5, 2003, on a hard surface?", "output": "SELECT opponents_in_the_final FROM table_name_19 WHERE surface = \"hard\" AND date = \"january 5, 2003\"" }
### INSTRUCTION Find each target user's name and average trust score. ### INPUT CREATE TABLE trust (target_u_id VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR) ### OUTPUT SELECT T1.name, AVG(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id GROUP BY T2.target_u_id
{ "input": "CREATE TABLE trust (target_u_id VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR)", "instruction": "Find each target user's name and average trust score.", "output": "SELECT T1.name, AVG(trust) FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id GROUP BY T2.target_u_id" }
### INSTRUCTION What is the Mintage of the 12.61 g Weight Ruby-Throated Hummingbird? ### INPUT CREATE TABLE table_name_88 (mintage VARCHAR, weight VARCHAR, theme VARCHAR) ### OUTPUT SELECT COUNT(mintage) FROM table_name_88 WHERE weight = "12.61 g" AND theme = "ruby-throated hummingbird"
{ "input": "CREATE TABLE table_name_88 (mintage VARCHAR, weight VARCHAR, theme VARCHAR)", "instruction": "What is the Mintage of the 12.61 g Weight Ruby-Throated Hummingbird?", "output": "SELECT COUNT(mintage) FROM table_name_88 WHERE weight = \"12.61 g\" AND theme = \"ruby-throated hummingbird\"" }
### INSTRUCTION What was the total crowd size for the him team footscray? ### INPUT CREATE TABLE table_name_95 (crowd VARCHAR, home_team VARCHAR) ### OUTPUT SELECT COUNT(crowd) FROM table_name_95 WHERE home_team = "footscray"
{ "input": "CREATE TABLE table_name_95 (crowd VARCHAR, home_team VARCHAR)", "instruction": "What was the total crowd size for the him team footscray?", "output": "SELECT COUNT(crowd) FROM table_name_95 WHERE home_team = \"footscray\"" }
### INSTRUCTION What is Date, when Opponent is @ Carolina Hurricanes? ### INPUT CREATE TABLE table_name_84 (date VARCHAR, opponent VARCHAR) ### OUTPUT SELECT date FROM table_name_84 WHERE opponent = "@ carolina hurricanes"
{ "input": "CREATE TABLE table_name_84 (date VARCHAR, opponent VARCHAR)", "instruction": "What is Date, when Opponent is @ Carolina Hurricanes?", "output": "SELECT date FROM table_name_84 WHERE opponent = \"@ carolina hurricanes\"" }
### INSTRUCTION What are the mm dimensions of the Plustek Mobileoffice D28 Corporate? ### INPUT CREATE TABLE table_16409745_1 (dimensions__mm_ VARCHAR, product VARCHAR) ### OUTPUT SELECT dimensions__mm_ FROM table_16409745_1 WHERE product = "Plustek MobileOffice D28 Corporate"
{ "input": "CREATE TABLE table_16409745_1 (dimensions__mm_ VARCHAR, product VARCHAR)", "instruction": "What are the mm dimensions of the Plustek Mobileoffice D28 Corporate?", "output": "SELECT dimensions__mm_ FROM table_16409745_1 WHERE product = \"Plustek MobileOffice D28 Corporate\"" }
### INSTRUCTION Which Score has a Home team of windsor & eton? ### INPUT CREATE TABLE table_name_30 (score VARCHAR, home_team VARCHAR) ### OUTPUT SELECT score FROM table_name_30 WHERE home_team = "windsor & eton"
{ "input": "CREATE TABLE table_name_30 (score VARCHAR, home_team VARCHAR)", "instruction": "Which Score has a Home team of windsor & eton?", "output": "SELECT score FROM table_name_30 WHERE home_team = \"windsor & eton\"" }
### INSTRUCTION What is the total PL G of player pennant, who has less than 7 CL G, less than 7 CL apps, and a FA YC of 0? ### INPUT CREATE TABLE table_name_74 (pl_g VARCHAR, player VARCHAR, fa_yc VARCHAR, cl_g VARCHAR, cl_apps VARCHAR) ### OUTPUT SELECT COUNT(pl_g) FROM table_name_74 WHERE cl_g < 7 AND cl_apps < 7 AND fa_yc = 0 AND player = "pennant"
{ "input": "CREATE TABLE table_name_74 (pl_g VARCHAR, player VARCHAR, fa_yc VARCHAR, cl_g VARCHAR, cl_apps VARCHAR)", "instruction": "What is the total PL G of player pennant, who has less than 7 CL G, less than 7 CL apps, and a FA YC of 0?", "output": "SELECT COUNT(pl_g) FROM table_name_74 WHERE cl_g < 7 AND cl_apps < 7 AND fa_yc = 0 AND player = \"pennant\"" }
### INSTRUCTION How many different amounts of winnings were there for the year when the team had an average finish of 17.4? ### INPUT CREATE TABLE table_2182562_2 (winnings VARCHAR, avg_finish VARCHAR) ### OUTPUT SELECT COUNT(winnings) FROM table_2182562_2 WHERE avg_finish = "17.4"
{ "input": "CREATE TABLE table_2182562_2 (winnings VARCHAR, avg_finish VARCHAR)", "instruction": "How many different amounts of winnings were there for the year when the team had an average finish of 17.4?", "output": "SELECT COUNT(winnings) FROM table_2182562_2 WHERE avg_finish = \"17.4\"" }