text
stringlengths
147
1.06k
source
dict
### INSTRUCTION What are the id and zip code of the address with the highest monthly rental? ### INPUT CREATE TABLE Student_Addresses (address_id VARCHAR); CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR) ### OUTPUT SELECT T2.address_id, T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id ORDER BY monthly_rental DESC LIMIT 1
{ "input": "CREATE TABLE Student_Addresses (address_id VARCHAR); CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR)", "instruction": "What are the id and zip code of the address with the highest monthly rental?", "output": "SELECT T2.address_id, T1.zip_postcode FROM Addresses AS T1 JOIN Student_Addresses AS T2 ON T1.address_id = T2.address_id ORDER BY monthly_rental DESC LIMIT 1" }
### INSTRUCTION Where's the first round that southern mississippi shows up during the draft? ### INPUT CREATE TABLE table_name_31 (round INTEGER, school_club_team VARCHAR) ### OUTPUT SELECT MIN(round) FROM table_name_31 WHERE school_club_team = "southern mississippi"
{ "input": "CREATE TABLE table_name_31 (round INTEGER, school_club_team VARCHAR)", "instruction": "Where's the first round that southern mississippi shows up during the draft?", "output": "SELECT MIN(round) FROM table_name_31 WHERE school_club_team = \"southern mississippi\"" }
### INSTRUCTION What bombing happened in Brighton, UK? ### INPUT CREATE TABLE table_name_98 (event VARCHAR, location VARCHAR) ### OUTPUT SELECT event FROM table_name_98 WHERE location = "brighton, uk"
{ "input": "CREATE TABLE table_name_98 (event VARCHAR, location VARCHAR)", "instruction": "What bombing happened in Brighton, UK?", "output": "SELECT event FROM table_name_98 WHERE location = \"brighton, uk\"" }
### INSTRUCTION What Singapore League Cup does Masahiro Fukasawa have? ### INPUT CREATE TABLE table_name_99 (singapore_league_cup VARCHAR, name VARCHAR) ### OUTPUT SELECT singapore_league_cup FROM table_name_99 WHERE name = "masahiro fukasawa"
{ "input": "CREATE TABLE table_name_99 (singapore_league_cup VARCHAR, name VARCHAR)", "instruction": "What Singapore League Cup does Masahiro Fukasawa have?", "output": "SELECT singapore_league_cup FROM table_name_99 WHERE name = \"masahiro fukasawa\"" }
### INSTRUCTION How many undergraduates are there in "San Jose State University" in year 2004? ### INPUT CREATE TABLE discipline_enrollments (undergraduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR) ### OUTPUT SELECT SUM(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = "San Jose State University"
{ "input": "CREATE TABLE discipline_enrollments (undergraduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR)", "instruction": "How many undergraduates are there in \"San Jose State University\" in year 2004?", "output": "SELECT SUM(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = \"San Jose State University\"" }
### INSTRUCTION What is the sum of the years when the winner was prof. priyambada mohanty hejmadi from orissa? ### INPUT CREATE TABLE table_name_95 (year INTEGER, state VARCHAR, name VARCHAR) ### OUTPUT SELECT SUM(year) FROM table_name_95 WHERE state = "orissa" AND name = "prof. priyambada mohanty hejmadi"
{ "input": "CREATE TABLE table_name_95 (year INTEGER, state VARCHAR, name VARCHAR)", "instruction": "What is the sum of the years when the winner was prof. priyambada mohanty hejmadi from orissa?", "output": "SELECT SUM(year) FROM table_name_95 WHERE state = \"orissa\" AND name = \"prof. priyambada mohanty hejmadi\"" }
### INSTRUCTION Which college does the player jon hameister-ries play for? ### INPUT CREATE TABLE table_name_93 (college VARCHAR, player VARCHAR) ### OUTPUT SELECT college FROM table_name_93 WHERE player = "jon hameister-ries"
{ "input": "CREATE TABLE table_name_93 (college VARCHAR, player VARCHAR)", "instruction": "Which college does the player jon hameister-ries play for?", "output": "SELECT college FROM table_name_93 WHERE player = \"jon hameister-ries\"" }
### INSTRUCTION How many new entries when the leagues entering in the round are tff third league & turkish regional amateur league? ### INPUT CREATE TABLE table_name_87 (new_entries_this_round VARCHAR, leagues_entering_at_this_round VARCHAR) ### OUTPUT SELECT new_entries_this_round FROM table_name_87 WHERE leagues_entering_at_this_round = "tff third league & turkish regional amateur league"
{ "input": "CREATE TABLE table_name_87 (new_entries_this_round VARCHAR, leagues_entering_at_this_round VARCHAR)", "instruction": "How many new entries when the leagues entering in the round are tff third league & turkish regional amateur league?", "output": "SELECT new_entries_this_round FROM table_name_87 WHERE leagues_entering_at_this_round = \"tff third league & turkish regional amateur league\"" }
### INSTRUCTION What is the episode number of the episode broadcast on 21 September 2001? ### INPUT CREATE TABLE table_name_79 (episode_number VARCHAR, broadcast_date VARCHAR) ### OUTPUT SELECT episode_number FROM table_name_79 WHERE broadcast_date = "21 september 2001"
{ "input": "CREATE TABLE table_name_79 (episode_number VARCHAR, broadcast_date VARCHAR)", "instruction": "What is the episode number of the episode broadcast on 21 September 2001?", "output": "SELECT episode_number FROM table_name_79 WHERE broadcast_date = \"21 september 2001\"" }
### INSTRUCTION Who created One Night in Lisbon in 1941? ### INPUT CREATE TABLE table_name_78 (theatre VARCHAR, _studio VARCHAR, _or_network VARCHAR, date VARCHAR, title VARCHAR) ### OUTPUT SELECT theatre, _studio, _or_network FROM table_name_78 WHERE date = "1941" AND title = "one night in lisbon"
{ "input": "CREATE TABLE table_name_78 (theatre VARCHAR, _studio VARCHAR, _or_network VARCHAR, date VARCHAR, title VARCHAR)", "instruction": "Who created One Night in Lisbon in 1941?", "output": "SELECT theatre, _studio, _or_network FROM table_name_78 WHERE date = \"1941\" AND title = \"one night in lisbon\"" }
### INSTRUCTION which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing jessica stein )? ### INPUT CREATE TABLE table_name_40 (category VARCHAR, result VARCHAR, lost_to VARCHAR) ### OUTPUT SELECT category FROM table_name_40 WHERE result = "nominated" AND lost_to = "jennifer westfeldt ( kissing jessica stein )"
{ "input": "CREATE TABLE table_name_40 (category VARCHAR, result VARCHAR, lost_to VARCHAR)", "instruction": "which Category has a Result of nominated, and a Lost to of jennifer westfeldt ( kissing jessica stein )?", "output": "SELECT category FROM table_name_40 WHERE result = \"nominated\" AND lost_to = \"jennifer westfeldt ( kissing jessica stein )\"" }
### INSTRUCTION Which of the first parties has second member as Charles Robert Colvile, and a liberal second party? ### INPUT CREATE TABLE table_name_50 (first_party VARCHAR, second_member VARCHAR, second_party VARCHAR) ### OUTPUT SELECT first_party FROM table_name_50 WHERE second_member = "charles robert colvile" AND second_party = "liberal"
{ "input": "CREATE TABLE table_name_50 (first_party VARCHAR, second_member VARCHAR, second_party VARCHAR)", "instruction": "Which of the first parties has second member as Charles Robert Colvile, and a liberal second party?", "output": "SELECT first_party FROM table_name_50 WHERE second_member = \"charles robert colvile\" AND second_party = \"liberal\"" }
### INSTRUCTION What is Score, when Player is "Bob Murphy"? ### INPUT CREATE TABLE table_name_9 (score VARCHAR, player VARCHAR) ### OUTPUT SELECT score FROM table_name_9 WHERE player = "bob murphy"
{ "input": "CREATE TABLE table_name_9 (score VARCHAR, player VARCHAR)", "instruction": "What is Score, when Player is \"Bob Murphy\"?", "output": "SELECT score FROM table_name_9 WHERE player = \"bob murphy\"" }
### INSTRUCTION What are the first name, last name and id of the player with the most all star game experiences? Also list the count. ### INPUT CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE all_star (player_id VARCHAR) ### OUTPUT SELECT T1.name_first, T1.name_last, T1.player_id, COUNT(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE player (name_first VARCHAR, name_last VARCHAR, player_id VARCHAR); CREATE TABLE all_star (player_id VARCHAR)", "instruction": "What are the first name, last name and id of the player with the most all star game experiences? Also list the count.", "output": "SELECT T1.name_first, T1.name_last, T1.player_id, COUNT(*) FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id GROUP BY T1.player_id ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What nation has a sport of weightlifting and a pinyin of kùkè qúndǎo? ### INPUT CREATE TABLE table_name_24 (nation VARCHAR, sport VARCHAR, pinyin VARCHAR) ### OUTPUT SELECT nation FROM table_name_24 WHERE sport = "weightlifting" AND pinyin = "kùkè qúndǎo"
{ "input": "CREATE TABLE table_name_24 (nation VARCHAR, sport VARCHAR, pinyin VARCHAR)", "instruction": "What nation has a sport of weightlifting and a pinyin of kùkè qúndǎo?", "output": "SELECT nation FROM table_name_24 WHERE sport = \"weightlifting\" AND pinyin = \"kùkè qúndǎo\"" }
### INSTRUCTION In which district is anna university - tiruchirappalli campus, whose website is http://www.annauniv.edu, located? ### INPUT CREATE TABLE table_name_3 (district VARCHAR, weblink VARCHAR, college_or_campus_name VARCHAR) ### OUTPUT SELECT district FROM table_name_3 WHERE weblink = "http://www.annauniv.edu" AND college_or_campus_name = "anna university - tiruchirappalli campus"
{ "input": "CREATE TABLE table_name_3 (district VARCHAR, weblink VARCHAR, college_or_campus_name VARCHAR)", "instruction": "In which district is anna university - tiruchirappalli campus, whose website is http://www.annauniv.edu, located?", "output": "SELECT district FROM table_name_3 WHERE weblink = \"http://www.annauniv.edu\" AND college_or_campus_name = \"anna university - tiruchirappalli campus\"" }
### INSTRUCTION What is the Lane of the Athlete from Great Britain with a Reaction time of less than 0.218 and a Time larger than 44.74? ### INPUT CREATE TABLE table_name_82 (lane INTEGER, nationality VARCHAR, reaction_time VARCHAR, time VARCHAR) ### OUTPUT SELECT SUM(lane) FROM table_name_82 WHERE reaction_time < 0.218 AND time > 44.74 AND nationality = "great britain"
{ "input": "CREATE TABLE table_name_82 (lane INTEGER, nationality VARCHAR, reaction_time VARCHAR, time VARCHAR)", "instruction": "What is the Lane of the Athlete from Great Britain with a Reaction time of less than 0.218 and a Time larger than 44.74?", "output": "SELECT SUM(lane) FROM table_name_82 WHERE reaction_time < 0.218 AND time > 44.74 AND nationality = \"great britain\"" }
### INSTRUCTION What date did the episode directed by Victor Cook and Written by Brat Jennett air in the U.S.? ### INPUT CREATE TABLE table_28511558_2 (original_air_date__us_ VARCHAR, directed_by VARCHAR, written_by VARCHAR) ### OUTPUT SELECT original_air_date__us_ FROM table_28511558_2 WHERE directed_by = "Victor Cook" AND written_by = "Brat Jennett"
{ "input": "CREATE TABLE table_28511558_2 (original_air_date__us_ VARCHAR, directed_by VARCHAR, written_by VARCHAR)", "instruction": "What date did the episode directed by Victor Cook and Written by Brat Jennett air in the U.S.?", "output": "SELECT original_air_date__us_ FROM table_28511558_2 WHERE directed_by = \"Victor Cook\" AND written_by = \"Brat Jennett\"" }
### INSTRUCTION What average points for highers has 0 has points for ordinary, and Ng as the grade, and less than 0 as points for foundation? ### INPUT CREATE TABLE table_name_25 (points_for_higher INTEGER, points_for_foundation VARCHAR, points_for_ordinary VARCHAR, grade VARCHAR) ### OUTPUT SELECT AVG(points_for_higher) FROM table_name_25 WHERE points_for_ordinary = 0 AND grade = "ng" AND points_for_foundation < 0
{ "input": "CREATE TABLE table_name_25 (points_for_higher INTEGER, points_for_foundation VARCHAR, points_for_ordinary VARCHAR, grade VARCHAR)", "instruction": "What average points for highers has 0 has points for ordinary, and Ng as the grade, and less than 0 as points for foundation?", "output": "SELECT AVG(points_for_higher) FROM table_name_25 WHERE points_for_ordinary = 0 AND grade = \"ng\" AND points_for_foundation < 0" }
### INSTRUCTION What is Scotland's winner? ### INPUT CREATE TABLE table_name_37 (winner VARCHAR, country VARCHAR) ### OUTPUT SELECT winner FROM table_name_37 WHERE country = "scotland"
{ "input": "CREATE TABLE table_name_37 (winner VARCHAR, country VARCHAR)", "instruction": "What is Scotland's winner?", "output": "SELECT winner FROM table_name_37 WHERE country = \"scotland\"" }
### INSTRUCTION What year did Canada get a silver in the olympics in the Men's Coxless Pair event? ### INPUT CREATE TABLE table_name_65 (year INTEGER, event VARCHAR, championship VARCHAR, nation VARCHAR, result VARCHAR) ### OUTPUT SELECT MIN(year) FROM table_name_65 WHERE nation = "canada" AND result = "silver" AND championship = "olympics" AND event = "men's coxless pair"
{ "input": "CREATE TABLE table_name_65 (year INTEGER, event VARCHAR, championship VARCHAR, nation VARCHAR, result VARCHAR)", "instruction": "What year did Canada get a silver in the olympics in the Men's Coxless Pair event?", "output": "SELECT MIN(year) FROM table_name_65 WHERE nation = \"canada\" AND result = \"silver\" AND championship = \"olympics\" AND event = \"men's coxless pair\"" }
### INSTRUCTION What percentage of the population is below 50% of the median income in the region where 10.4% of the population earns below 40% of the median income? ### INPUT CREATE TABLE table_25042332_16 (below_50_percentage_of_median_income VARCHAR, below_40_percentage_of_median_income VARCHAR) ### OUTPUT SELECT COUNT(below_50_percentage_of_median_income) FROM table_25042332_16 WHERE below_40_percentage_of_median_income = "10.4%"
{ "input": "CREATE TABLE table_25042332_16 (below_50_percentage_of_median_income VARCHAR, below_40_percentage_of_median_income VARCHAR)", "instruction": "What percentage of the population is below 50% of the median income in the region where 10.4% of the population earns below 40% of the median income?", "output": "SELECT COUNT(below_50_percentage_of_median_income) FROM table_25042332_16 WHERE below_40_percentage_of_median_income = \"10.4%\"" }
### INSTRUCTION Who directed Bunker Hill Bunny? ### INPUT CREATE TABLE table_name_77 (director VARCHAR, title VARCHAR) ### OUTPUT SELECT director FROM table_name_77 WHERE title = "bunker hill bunny"
{ "input": "CREATE TABLE table_name_77 (director VARCHAR, title VARCHAR)", "instruction": "Who directed Bunker Hill Bunny?", "output": "SELECT director FROM table_name_77 WHERE title = \"bunker hill bunny\"" }
### INSTRUCTION Which league cup apps has FA as the cup apps of 5? ### INPUT CREATE TABLE table_name_83 (league_cup_apps VARCHAR, fa_cup_apps VARCHAR) ### OUTPUT SELECT league_cup_apps FROM table_name_83 WHERE fa_cup_apps = "5"
{ "input": "CREATE TABLE table_name_83 (league_cup_apps VARCHAR, fa_cup_apps VARCHAR)", "instruction": "Which league cup apps has FA as the cup apps of 5?", "output": "SELECT league_cup_apps FROM table_name_83 WHERE fa_cup_apps = \"5\"" }
### INSTRUCTION Which Locomotive Entered Service in November 1984 and has an Operator of Southern Shorthaul Railroad? ### INPUT CREATE TABLE table_name_59 (locomotive VARCHAR, operator VARCHAR, entered_service VARCHAR) ### OUTPUT SELECT locomotive FROM table_name_59 WHERE operator = "southern shorthaul railroad" AND entered_service = "november 1984"
{ "input": "CREATE TABLE table_name_59 (locomotive VARCHAR, operator VARCHAR, entered_service VARCHAR)", "instruction": "Which Locomotive Entered Service in November 1984 and has an Operator of Southern Shorthaul Railroad?", "output": "SELECT locomotive FROM table_name_59 WHERE operator = \"southern shorthaul railroad\" AND entered_service = \"november 1984\"" }
### INSTRUCTION Can you tell me the lowest Rank that has the Nationality of australia, and the Name of leisel jones, and the Lane larger than 4? ### INPUT CREATE TABLE table_name_49 (rank INTEGER, lane VARCHAR, nationality VARCHAR, name VARCHAR) ### OUTPUT SELECT MIN(rank) FROM table_name_49 WHERE nationality = "australia" AND name = "leisel jones" AND lane > 4
{ "input": "CREATE TABLE table_name_49 (rank INTEGER, lane VARCHAR, nationality VARCHAR, name VARCHAR)", "instruction": "Can you tell me the lowest Rank that has the Nationality of australia, and the Name of leisel jones, and the Lane larger than 4?", "output": "SELECT MIN(rank) FROM table_name_49 WHERE nationality = \"australia\" AND name = \"leisel jones\" AND lane > 4" }
### INSTRUCTION Who has friends that are older than the average age? Print their friends and their ages as well ### INPUT CREATE TABLE person (age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR) ### OUTPUT SELECT DISTINCT T2.name, T2.friend, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT AVG(age) FROM person)
{ "input": "CREATE TABLE person (age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR)", "instruction": "Who has friends that are older than the average age? Print their friends and their ages as well", "output": "SELECT DISTINCT T2.name, T2.friend, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT AVG(age) FROM person)" }
### INSTRUCTION Name number of stellar classification for 3 neptune planets < 1 au ### INPUT CREATE TABLE table_2296507_1 (stellar_classification VARCHAR, system VARCHAR) ### OUTPUT SELECT COUNT(stellar_classification) FROM table_2296507_1 WHERE system = "3 Neptune planets < 1 AU"
{ "input": "CREATE TABLE table_2296507_1 (stellar_classification VARCHAR, system VARCHAR)", "instruction": "Name number of stellar classification for 3 neptune planets < 1 au", "output": "SELECT COUNT(stellar_classification) FROM table_2296507_1 WHERE system = \"3 Neptune planets < 1 AU\"" }
### INSTRUCTION Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name. ### INPUT CREATE TABLE CARS_DATA (Id VARCHAR, Horsepower INTEGER, Cylinders VARCHAR); CREATE TABLE CAR_NAMES (MakeId VARCHAR, Make VARCHAR); CREATE TABLE CARS_DATA (Horsepower INTEGER) ### OUTPUT SELECT T2.MakeId, T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT MIN(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3
{ "input": "CREATE TABLE CARS_DATA (Id VARCHAR, Horsepower INTEGER, Cylinders VARCHAR); CREATE TABLE CAR_NAMES (MakeId VARCHAR, Make VARCHAR); CREATE TABLE CARS_DATA (Horsepower INTEGER)", "instruction": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.", "output": "SELECT T2.MakeId, T2.Make FROM CARS_DATA AS T1 JOIN CAR_NAMES AS T2 ON T1.Id = T2.MakeId WHERE T1.Horsepower > (SELECT MIN(Horsepower) FROM CARS_DATA) AND T1.Cylinders <= 3" }
### INSTRUCTION What was the date of the game against Norway with a 1:1 result? ### INPUT CREATE TABLE table_name_31 (date VARCHAR, opponent VARCHAR, results¹ VARCHAR) ### OUTPUT SELECT date FROM table_name_31 WHERE opponent = "norway" AND results¹ = "1:1"
{ "input": "CREATE TABLE table_name_31 (date VARCHAR, opponent VARCHAR, results¹ VARCHAR)", "instruction": "What was the date of the game against Norway with a 1:1 result?", "output": "SELECT date FROM table_name_31 WHERE opponent = \"norway\" AND results¹ = \"1:1\"" }
### INSTRUCTION What year at the US Open Cup quarterfinals, were the playoffs in the semifinals for the USL second division? ### INPUT CREATE TABLE table_1939202_2 (year VARCHAR, us_open_cup VARCHAR, league VARCHAR, playoffs VARCHAR) ### OUTPUT SELECT year FROM table_1939202_2 WHERE league = "USL Second division" AND playoffs = "Semifinals" AND us_open_cup = "Quarterfinals"
{ "input": "CREATE TABLE table_1939202_2 (year VARCHAR, us_open_cup VARCHAR, league VARCHAR, playoffs VARCHAR)", "instruction": "What year at the US Open Cup quarterfinals, were the playoffs in the semifinals for the USL second division?", "output": "SELECT year FROM table_1939202_2 WHERE league = \"USL Second division\" AND playoffs = \"Semifinals\" AND us_open_cup = \"Quarterfinals\"" }
### INSTRUCTION What was the report for an away team of Sydney Spirit and score of 96-87? ### INPUT CREATE TABLE table_name_16 (report VARCHAR, away_team VARCHAR, score VARCHAR) ### OUTPUT SELECT report FROM table_name_16 WHERE away_team = "sydney spirit" AND score = "96-87"
{ "input": "CREATE TABLE table_name_16 (report VARCHAR, away_team VARCHAR, score VARCHAR)", "instruction": "What was the report for an away team of Sydney Spirit and score of 96-87?", "output": "SELECT report FROM table_name_16 WHERE away_team = \"sydney spirit\" AND score = \"96-87\"" }
### INSTRUCTION What year was the Drama Desk award won by nominee George Hearn? ### INPUT CREATE TABLE table_name_44 (year VARCHAR, nominee VARCHAR, award VARCHAR, result VARCHAR) ### OUTPUT SELECT year FROM table_name_44 WHERE award = "drama desk award" AND result = "won" AND nominee = "george hearn"
{ "input": "CREATE TABLE table_name_44 (year VARCHAR, nominee VARCHAR, award VARCHAR, result VARCHAR)", "instruction": "What year was the Drama Desk award won by nominee George Hearn?", "output": "SELECT year FROM table_name_44 WHERE award = \"drama desk award\" AND result = \"won\" AND nominee = \"george hearn\"" }
### INSTRUCTION Who is enrolled in a Bachelor degree program? List the first name, middle name, last name. ### INPUT CREATE TABLE Degree_Programs (degree_program_id VARCHAR, degree_summary_name VARCHAR); CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR, degree_program_id VARCHAR) ### OUTPUT SELECT DISTINCT T1.first_name, T1.middle_name, T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'
{ "input": "CREATE TABLE Degree_Programs (degree_program_id VARCHAR, degree_summary_name VARCHAR); CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR, degree_program_id VARCHAR)", "instruction": "Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.", "output": "SELECT DISTINCT T1.first_name, T1.middle_name, T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'" }
### INSTRUCTION What is the first and last name of the student participating in the most activities? ### INPUT CREATE TABLE Student (fname VARCHAR, lname VARCHAR, StuID VARCHAR); CREATE TABLE Participates_in (StuID VARCHAR) ### OUTPUT SELECT T1.fname, T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Student (fname VARCHAR, lname VARCHAR, StuID VARCHAR); CREATE TABLE Participates_in (StuID VARCHAR)", "instruction": "What is the first and last name of the student participating in the most activities?", "output": "SELECT T1.fname, T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID = T2.StuID GROUP BY T1.StuID ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION Which player had 252 appearances ### INPUT CREATE TABLE table_24565004_7 (name VARCHAR, appearances¹ VARCHAR) ### OUTPUT SELECT name FROM table_24565004_7 WHERE appearances¹ = 252
{ "input": "CREATE TABLE table_24565004_7 (name VARCHAR, appearances¹ VARCHAR)", "instruction": "Which player had 252 appearances", "output": "SELECT name FROM table_24565004_7 WHERE appearances¹ = 252" }
### INSTRUCTION Find the names of Japanese constructors that have once earned more than 5 points? ### INPUT CREATE TABLE constructorstandings (constructorid VARCHAR, points VARCHAR); CREATE TABLE constructors (name VARCHAR, constructorid VARCHAR, nationality VARCHAR) ### OUTPUT SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = "Japanese" AND T2.points > 5
{ "input": "CREATE TABLE constructorstandings (constructorid VARCHAR, points VARCHAR); CREATE TABLE constructors (name VARCHAR, constructorid VARCHAR, nationality VARCHAR)", "instruction": "Find the names of Japanese constructors that have once earned more than 5 points?", "output": "SELECT T1.name FROM constructors AS T1 JOIN constructorstandings AS T2 ON T1.constructorid = T2.constructorid WHERE T1.nationality = \"Japanese\" AND T2.points > 5" }
### INSTRUCTION Which Total has a Nation of united states, and a Bronze larger than 3? ### INPUT CREATE TABLE table_name_4 (total INTEGER, nation VARCHAR, bronze VARCHAR) ### OUTPUT SELECT MAX(total) FROM table_name_4 WHERE nation = "united states" AND bronze > 3
{ "input": "CREATE TABLE table_name_4 (total INTEGER, nation VARCHAR, bronze VARCHAR)", "instruction": "Which Total has a Nation of united states, and a Bronze larger than 3?", "output": "SELECT MAX(total) FROM table_name_4 WHERE nation = \"united states\" AND bronze > 3" }
### INSTRUCTION What are the distinct name of the mills built by the architects who have also built a bridge longer than 80 meters? ### INPUT CREATE TABLE architect (Id VARCHAR); CREATE TABLE mill (name VARCHAR, architect_id VARCHAR); CREATE TABLE bridge (architect_id VARCHAR, length_meters INTEGER) ### OUTPUT SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id JOIN bridge AS T3 ON T3.architect_id = T2.id WHERE T3.length_meters > 80
{ "input": "CREATE TABLE architect (Id VARCHAR); CREATE TABLE mill (name VARCHAR, architect_id VARCHAR); CREATE TABLE bridge (architect_id VARCHAR, length_meters INTEGER)", "instruction": "What are the distinct name of the mills built by the architects who have also built a bridge longer than 80 meters?", "output": "SELECT DISTINCT T1.name FROM mill AS T1 JOIN architect AS t2 ON T1.architect_id = T2.id JOIN bridge AS T3 ON T3.architect_id = T2.id WHERE T3.length_meters > 80" }
### INSTRUCTION Which Payments were processed with Visa? List the payment Id, the date and the amount. ### INPUT CREATE TABLE Payments (Payment_ID VARCHAR, Date_Payment_Made VARCHAR, Amount_Payment VARCHAR, Payment_Method_Code VARCHAR) ### OUTPUT SELECT Payment_ID, Date_Payment_Made, Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa'
{ "input": "CREATE TABLE Payments (Payment_ID VARCHAR, Date_Payment_Made VARCHAR, Amount_Payment VARCHAR, Payment_Method_Code VARCHAR)", "instruction": "Which Payments were processed with Visa? List the payment Id, the date and the amount.", "output": "SELECT Payment_ID, Date_Payment_Made, Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa'" }
### INSTRUCTION How many distinct characteristic names does the product "cumin" have? ### INPUT CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR) ### OUTPUT SELECT COUNT(DISTINCT t3.characteristic_name) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = "sesame"
{ "input": "CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, characteristic_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)", "instruction": "How many distinct characteristic names does the product \"cumin\" have?", "output": "SELECT COUNT(DISTINCT t3.characteristic_name) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t1.product_name = \"sesame\"" }
### INSTRUCTION What is the total number of years won by Justin Leonard with a to par under 9? ### INPUT CREATE TABLE table_name_95 (year_s__won VARCHAR, player VARCHAR, to_par VARCHAR) ### OUTPUT SELECT COUNT(year_s__won) FROM table_name_95 WHERE player = "justin leonard" AND to_par < 9
{ "input": "CREATE TABLE table_name_95 (year_s__won VARCHAR, player VARCHAR, to_par VARCHAR)", "instruction": "What is the total number of years won by Justin Leonard with a to par under 9?", "output": "SELECT COUNT(year_s__won) FROM table_name_95 WHERE player = \"justin leonard\" AND to_par < 9" }
### INSTRUCTION What is the name of the wrestler with the fewest days held? ### INPUT CREATE TABLE wrestler (Name VARCHAR, Days_held VARCHAR) ### OUTPUT SELECT Name FROM wrestler ORDER BY Days_held LIMIT 1
{ "input": "CREATE TABLE wrestler (Name VARCHAR, Days_held VARCHAR)", "instruction": "What is the name of the wrestler with the fewest days held?", "output": "SELECT Name FROM wrestler ORDER BY Days_held LIMIT 1" }
### INSTRUCTION Who answered the 20 questions on 10-07? ### INPUT CREATE TABLE table_1566852_8 (date VARCHAR) ### OUTPUT SELECT 20 AS _questions FROM table_1566852_8 WHERE date = "10-07"
{ "input": "CREATE TABLE table_1566852_8 (date VARCHAR)", "instruction": "Who answered the 20 questions on 10-07?", "output": "SELECT 20 AS _questions FROM table_1566852_8 WHERE date = \"10-07\"" }
### INSTRUCTION Where did Collingwood play ae the away team? ### INPUT CREATE TABLE table_name_57 (venue VARCHAR, away_team VARCHAR) ### OUTPUT SELECT venue FROM table_name_57 WHERE away_team = "collingwood"
{ "input": "CREATE TABLE table_name_57 (venue VARCHAR, away_team VARCHAR)", "instruction": "Where did Collingwood play ae the away team?", "output": "SELECT venue FROM table_name_57 WHERE away_team = \"collingwood\"" }
### INSTRUCTION Find all the songs produced by artists with first name "Marianne". ### INPUT CREATE TABLE Songs (Title VARCHAR, SongId VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, firstname VARCHAR) ### OUTPUT SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.firstname = "Marianne"
{ "input": "CREATE TABLE Songs (Title VARCHAR, SongId VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, firstname VARCHAR)", "instruction": "Find all the songs produced by artists with first name \"Marianne\".", "output": "SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.firstname = \"Marianne\"" }
### INSTRUCTION What is the booking status code of the apartment with apartment number "Suite 634"? ### INPUT CREATE TABLE Apartments (apt_id VARCHAR, apt_number VARCHAR); CREATE TABLE Apartment_Bookings (booking_status_code VARCHAR, apt_id VARCHAR) ### OUTPUT SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = "Suite 634"
{ "input": "CREATE TABLE Apartments (apt_id VARCHAR, apt_number VARCHAR); CREATE TABLE Apartment_Bookings (booking_status_code VARCHAR, apt_id VARCHAR)", "instruction": "What is the booking status code of the apartment with apartment number \"Suite 634\"?", "output": "SELECT T1.booking_status_code FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_number = \"Suite 634\"" }
### INSTRUCTION What RolePlay actor played the same role Alison Pargeter played in the original production? ### INPUT CREATE TABLE table_17827271_1 (roleplay VARCHAR, actor_in_original_production VARCHAR) ### OUTPUT SELECT roleplay FROM table_17827271_1 WHERE actor_in_original_production = "Alison Pargeter"
{ "input": "CREATE TABLE table_17827271_1 (roleplay VARCHAR, actor_in_original_production VARCHAR)", "instruction": "What RolePlay actor played the same role Alison Pargeter played in the original production?", "output": "SELECT roleplay FROM table_17827271_1 WHERE actor_in_original_production = \"Alison Pargeter\"" }
### INSTRUCTION What entrant has a year earlier than 1960 and a veritas straight-6 engine? ### INPUT CREATE TABLE table_name_77 (entrant VARCHAR, year VARCHAR, engine VARCHAR) ### OUTPUT SELECT entrant FROM table_name_77 WHERE year < 1960 AND engine = "veritas straight-6"
{ "input": "CREATE TABLE table_name_77 (entrant VARCHAR, year VARCHAR, engine VARCHAR)", "instruction": "What entrant has a year earlier than 1960 and a veritas straight-6 engine?", "output": "SELECT entrant FROM table_name_77 WHERE year < 1960 AND engine = \"veritas straight-6\"" }
### INSTRUCTION Find the unit of measurement and product category code of product named "chervil". ### INPUT CREATE TABLE ref_product_categories (unit_of_measure VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_name VARCHAR) ### OUTPUT SELECT t2.unit_of_measure, t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = "chervil"
{ "input": "CREATE TABLE ref_product_categories (unit_of_measure VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_name VARCHAR)", "instruction": "Find the unit of measurement and product category code of product named \"chervil\".", "output": "SELECT t2.unit_of_measure, t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = \"chervil\"" }
### INSTRUCTION Which Release price (USD ) has a GPU frequency of 650–1150 mhz and a sSpec number of sr0pq(e1)? ### INPUT CREATE TABLE table_name_20 (release_price___usd__ VARCHAR, gpu_frequency VARCHAR, sspec_number VARCHAR) ### OUTPUT SELECT release_price___usd__ FROM table_name_20 WHERE gpu_frequency = "650–1150 mhz" AND sspec_number = "sr0pq(e1)"
{ "input": "CREATE TABLE table_name_20 (release_price___usd__ VARCHAR, gpu_frequency VARCHAR, sspec_number VARCHAR)", "instruction": "Which Release price (USD ) has a GPU frequency of 650–1150 mhz and a sSpec number of sr0pq(e1)?", "output": "SELECT release_price___usd__ FROM table_name_20 WHERE gpu_frequency = \"650–1150 mhz\" AND sspec_number = \"sr0pq(e1)\"" }
### INSTRUCTION What's the largest Fall 08 number when fall 09 is less than 82, fall 06 is 5, and fall 05 is less than 3? ### INPUT CREATE TABLE table_name_96 (fall_08 INTEGER, fall_05 VARCHAR, fall_09 VARCHAR, fall_06 VARCHAR) ### OUTPUT SELECT MAX(fall_08) FROM table_name_96 WHERE fall_09 < 82 AND fall_06 = 5 AND fall_05 < 3
{ "input": "CREATE TABLE table_name_96 (fall_08 INTEGER, fall_05 VARCHAR, fall_09 VARCHAR, fall_06 VARCHAR)", "instruction": "What's the largest Fall 08 number when fall 09 is less than 82, fall 06 is 5, and fall 05 is less than 3?", "output": "SELECT MAX(fall_08) FROM table_name_96 WHERE fall_09 < 82 AND fall_06 = 5 AND fall_05 < 3" }
### INSTRUCTION Which contact channel has been used by the customer with name "Tillman Ernser"? ### INPUT CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customer_contact_channels (customer_id VARCHAR) ### OUTPUT SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Tillman Ernser"
{ "input": "CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customer_contact_channels (customer_id VARCHAR)", "instruction": "Which contact channel has been used by the customer with name \"Tillman Ernser\"?", "output": "SELECT DISTINCT channel_code FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = \"Tillman Ernser\"" }
### INSTRUCTION What is the Model Number, when the Voltage is 3.45 V, and when the Frequency is 133 MHZ? ### INPUT CREATE TABLE table_name_86 (model_number VARCHAR, voltage VARCHAR, frequency VARCHAR) ### OUTPUT SELECT model_number FROM table_name_86 WHERE voltage = "3.45 v" AND frequency = "133 mhz"
{ "input": "CREATE TABLE table_name_86 (model_number VARCHAR, voltage VARCHAR, frequency VARCHAR)", "instruction": "What is the Model Number, when the Voltage is 3.45 V, and when the Frequency is 133 MHZ?", "output": "SELECT model_number FROM table_name_86 WHERE voltage = \"3.45 v\" AND frequency = \"133 mhz\"" }
### INSTRUCTION How far did p. carbery run to get 2nd? ### INPUT CREATE TABLE table_name_67 (distance VARCHAR, jockey VARCHAR, result VARCHAR) ### OUTPUT SELECT distance FROM table_name_67 WHERE jockey = "p. carbery" AND result = "2nd"
{ "input": "CREATE TABLE table_name_67 (distance VARCHAR, jockey VARCHAR, result VARCHAR)", "instruction": "How far did p. carbery run to get 2nd?", "output": "SELECT distance FROM table_name_67 WHERE jockey = \"p. carbery\" AND result = \"2nd\"" }
### INSTRUCTION What are the countries having at least one car maker? List name and id. ### INPUT CREATE TABLE CAR_MAKERS (Country VARCHAR); CREATE TABLE COUNTRIES (CountryName VARCHAR, CountryId VARCHAR) ### OUTPUT SELECT T1.CountryName, T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING COUNT(*) >= 1
{ "input": "CREATE TABLE CAR_MAKERS (Country VARCHAR); CREATE TABLE COUNTRIES (CountryName VARCHAR, CountryId VARCHAR)", "instruction": "What are the countries having at least one car maker? List name and id.", "output": "SELECT T1.CountryName, T1.CountryId FROM COUNTRIES AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.CountryId HAVING COUNT(*) >= 1" }
### INSTRUCTION What is the highest number supporting prohibition in British Columbia when the percent opposing is more than 10.8, the percent supporting is less than 72.2, number against is less than 4,756? ### INPUT CREATE TABLE table_name_43 (for_prohibition INTEGER, against_prohibition VARCHAR, jurisdiction VARCHAR, percent_against VARCHAR, percent_for VARCHAR) ### OUTPUT SELECT MAX(for_prohibition) FROM table_name_43 WHERE percent_against > 10.8 AND percent_for < 72.2 AND jurisdiction = "british columbia" AND against_prohibition < 4 OFFSET 756
{ "input": "CREATE TABLE table_name_43 (for_prohibition INTEGER, against_prohibition VARCHAR, jurisdiction VARCHAR, percent_against VARCHAR, percent_for VARCHAR)", "instruction": "What is the highest number supporting prohibition in British Columbia when the percent opposing is more than 10.8, the percent supporting is less than 72.2, number against is less than 4,756?", "output": "SELECT MAX(for_prohibition) FROM table_name_43 WHERE percent_against > 10.8 AND percent_for < 72.2 AND jurisdiction = \"british columbia\" AND against_prohibition < 4 OFFSET 756" }
### INSTRUCTION What is the average lane for Kenya with react larger than 0.212? ### INPUT CREATE TABLE table_name_79 (lane INTEGER, nationality VARCHAR, react VARCHAR) ### OUTPUT SELECT AVG(lane) FROM table_name_79 WHERE nationality = "kenya" AND react > 0.212
{ "input": "CREATE TABLE table_name_79 (lane INTEGER, nationality VARCHAR, react VARCHAR)", "instruction": "What is the average lane for Kenya with react larger than 0.212?", "output": "SELECT AVG(lane) FROM table_name_79 WHERE nationality = \"kenya\" AND react > 0.212" }
### INSTRUCTION What is the Mayor of Riva del Garda in 2010? ### INPUT CREATE TABLE table_name_37 (mayor VARCHAR, election VARCHAR, municipality VARCHAR) ### OUTPUT SELECT mayor FROM table_name_37 WHERE election = 2010 AND municipality = "riva del garda"
{ "input": "CREATE TABLE table_name_37 (mayor VARCHAR, election VARCHAR, municipality VARCHAR)", "instruction": "What is the Mayor of Riva del Garda in 2010?", "output": "SELECT mayor FROM table_name_37 WHERE election = 2010 AND municipality = \"riva del garda\"" }
### INSTRUCTION What is the average Total Freshwater Withdrawal (km 3 /yr), when Industrial Use (m 3 /p/yr)(in %) is 337(63%), and when Per Capita Withdrawal (m 3 /p/yr) is greater than 535? ### INPUT CREATE TABLE table_name_5 (total_freshwater_withdrawal__km_3__yr_ INTEGER, industrial_use__m_3__p_yr__in__percentage_ VARCHAR, per_capita_withdrawal__m_3__p_yr_ VARCHAR) ### OUTPUT SELECT AVG(total_freshwater_withdrawal__km_3__yr_) FROM table_name_5 WHERE industrial_use__m_3__p_yr__in__percentage_ = "337(63%)" AND per_capita_withdrawal__m_3__p_yr_ > 535
{ "input": "CREATE TABLE table_name_5 (total_freshwater_withdrawal__km_3__yr_ INTEGER, industrial_use__m_3__p_yr__in__percentage_ VARCHAR, per_capita_withdrawal__m_3__p_yr_ VARCHAR)", "instruction": "What is the average Total Freshwater Withdrawal (km 3 /yr), when Industrial Use (m 3 /p/yr)(in %) is 337(63%), and when Per Capita Withdrawal (m 3 /p/yr) is greater than 535?", "output": "SELECT AVG(total_freshwater_withdrawal__km_3__yr_) FROM table_name_5 WHERE industrial_use__m_3__p_yr__in__percentage_ = \"337(63%)\" AND per_capita_withdrawal__m_3__p_yr_ > 535" }
### INSTRUCTION Which events id does not have any participant with detail 'Kenyatta Kuhn'? ### INPUT CREATE TABLE Participants (Participant_ID VARCHAR); CREATE TABLE EVENTS (event_id VARCHAR, Participant_Details VARCHAR); CREATE TABLE Participants_in_Events (event_id VARCHAR, Participant_ID VARCHAR) ### OUTPUT SELECT event_id FROM EVENTS EXCEPT SELECT T1.event_id FROM Participants_in_Events AS T1 JOIN Participants AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE Participant_Details = 'Kenyatta Kuhn'
{ "input": "CREATE TABLE Participants (Participant_ID VARCHAR); CREATE TABLE EVENTS (event_id VARCHAR, Participant_Details VARCHAR); CREATE TABLE Participants_in_Events (event_id VARCHAR, Participant_ID VARCHAR)", "instruction": "Which events id does not have any participant with detail 'Kenyatta Kuhn'?", "output": "SELECT event_id FROM EVENTS EXCEPT SELECT T1.event_id FROM Participants_in_Events AS T1 JOIN Participants AS T2 ON T1.Participant_ID = T2.Participant_ID WHERE Participant_Details = 'Kenyatta Kuhn'" }
### INSTRUCTION Show the average transaction amount for different transaction types. ### INPUT CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR, amount_of_transaction INTEGER) ### OUTPUT SELECT transaction_type_code, AVG(amount_of_transaction) FROM TRANSACTIONS GROUP BY transaction_type_code
{ "input": "CREATE TABLE TRANSACTIONS (transaction_type_code VARCHAR, amount_of_transaction INTEGER)", "instruction": "Show the average transaction amount for different transaction types.", "output": "SELECT transaction_type_code, AVG(amount_of_transaction) FROM TRANSACTIONS GROUP BY transaction_type_code" }
### INSTRUCTION What is the sum of League Goals, when Position is "DF", when League Cup Apps is "0", when Total Apps is "7", and when FLT Goals is less than 0? ### INPUT CREATE TABLE table_name_95 (league_goals INTEGER, flt_goals VARCHAR, total_apps VARCHAR, position VARCHAR, league_cup_apps VARCHAR) ### OUTPUT SELECT SUM(league_goals) FROM table_name_95 WHERE position = "df" AND league_cup_apps = "0" AND total_apps = "7" AND flt_goals < 0
{ "input": "CREATE TABLE table_name_95 (league_goals INTEGER, flt_goals VARCHAR, total_apps VARCHAR, position VARCHAR, league_cup_apps VARCHAR)", "instruction": "What is the sum of League Goals, when Position is \"DF\", when League Cup Apps is \"0\", when Total Apps is \"7\", and when FLT Goals is less than 0?", "output": "SELECT SUM(league_goals) FROM table_name_95 WHERE position = \"df\" AND league_cup_apps = \"0\" AND total_apps = \"7\" AND flt_goals < 0" }
### INSTRUCTION What are the first names and last names of the students that minor in the department with DNO 140. ### INPUT CREATE TABLE STUDENT (Fname VARCHAR, Lname VARCHAR, StuID VARCHAR); CREATE TABLE MINOR_IN (StuID VARCHAR, DNO VARCHAR) ### OUTPUT SELECT T2.Fname, T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140
{ "input": "CREATE TABLE STUDENT (Fname VARCHAR, Lname VARCHAR, StuID VARCHAR); CREATE TABLE MINOR_IN (StuID VARCHAR, DNO VARCHAR)", "instruction": "What are the first names and last names of the students that minor in the department with DNO 140.", "output": "SELECT T2.Fname, T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140" }
### INSTRUCTION What is the percentage of total area in the ecozone that the percentage protected is 8.06? ### INPUT CREATE TABLE table_15555661_2 (percentage_of_total_area VARCHAR, percentage_protected VARCHAR) ### OUTPUT SELECT percentage_of_total_area FROM table_15555661_2 WHERE percentage_protected = "8.06"
{ "input": "CREATE TABLE table_15555661_2 (percentage_of_total_area VARCHAR, percentage_protected VARCHAR)", "instruction": "What is the percentage of total area in the ecozone that the percentage protected is 8.06?", "output": "SELECT percentage_of_total_area FROM table_15555661_2 WHERE percentage_protected = \"8.06\"" }
### INSTRUCTION Tell me the total number of attendance for result of l 18-6 ### INPUT CREATE TABLE table_name_3 (attendance VARCHAR, result VARCHAR) ### OUTPUT SELECT COUNT(attendance) FROM table_name_3 WHERE result = "l 18-6"
{ "input": "CREATE TABLE table_name_3 (attendance VARCHAR, result VARCHAR)", "instruction": "Tell me the total number of attendance for result of l 18-6", "output": "SELECT COUNT(attendance) FROM table_name_3 WHERE result = \"l 18-6\"" }
### INSTRUCTION what is the league goals when the fa cup goals is higher than 0, the fa cup apps is 2 and the league apps is 45? ### INPUT CREATE TABLE table_name_50 (league_goals VARCHAR, league_apps VARCHAR, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR) ### OUTPUT SELECT league_goals FROM table_name_50 WHERE fa_cup_goals > 0 AND fa_cup_apps = "2" AND league_apps = "45"
{ "input": "CREATE TABLE table_name_50 (league_goals VARCHAR, league_apps VARCHAR, fa_cup_goals VARCHAR, fa_cup_apps VARCHAR)", "instruction": "what is the league goals when the fa cup goals is higher than 0, the fa cup apps is 2 and the league apps is 45?", "output": "SELECT league_goals FROM table_name_50 WHERE fa_cup_goals > 0 AND fa_cup_apps = \"2\" AND league_apps = \"45\"" }
### INSTRUCTION What is the density (hab/km²) with a population censo 2007(hab) of 336.293*? ### INPUT CREATE TABLE table_name_4 (density__hab__km²__ VARCHAR, population_censo_2007_hab_ VARCHAR) ### OUTPUT SELECT density__hab__km²__ FROM table_name_4 WHERE population_censo_2007_hab_ = "336.293*"
{ "input": "CREATE TABLE table_name_4 (density__hab__km²__ VARCHAR, population_censo_2007_hab_ VARCHAR)", "instruction": "What is the density (hab/km²) with a population censo 2007(hab) of 336.293*?", "output": "SELECT density__hab__km²__ FROM table_name_4 WHERE population_censo_2007_hab_ = \"336.293*\"" }
### INSTRUCTION What was the score of the game that had a loss of Chad Fox (3–3)? ### INPUT CREATE TABLE table_name_68 (score VARCHAR, loss VARCHAR) ### OUTPUT SELECT score FROM table_name_68 WHERE loss = "chad fox (3–3)"
{ "input": "CREATE TABLE table_name_68 (score VARCHAR, loss VARCHAR)", "instruction": "What was the score of the game that had a loss of Chad Fox (3–3)?", "output": "SELECT score FROM table_name_68 WHERE loss = \"chad fox (3–3)\"" }
### INSTRUCTION What is the code for a Le Haut-Saint-Laurent municipality that has 16 or more regions? ### INPUT CREATE TABLE table_name_14 (code INTEGER, regional_county_municipality VARCHAR, region VARCHAR) ### OUTPUT SELECT MIN(code) FROM table_name_14 WHERE regional_county_municipality = "le haut-saint-laurent" AND region > 16
{ "input": "CREATE TABLE table_name_14 (code INTEGER, regional_county_municipality VARCHAR, region VARCHAR)", "instruction": "What is the code for a Le Haut-Saint-Laurent municipality that has 16 or more regions?", "output": "SELECT MIN(code) FROM table_name_14 WHERE regional_county_municipality = \"le haut-saint-laurent\" AND region > 16" }
### INSTRUCTION What is the position of club Melilla CF, with a goal difference smaller than -10? ### INPUT CREATE TABLE table_name_63 (position INTEGER, club VARCHAR, goal_difference VARCHAR) ### OUTPUT SELECT SUM(position) FROM table_name_63 WHERE club = "melilla cf" AND goal_difference < -10
{ "input": "CREATE TABLE table_name_63 (position INTEGER, club VARCHAR, goal_difference VARCHAR)", "instruction": "What is the position of club Melilla CF, with a goal difference smaller than -10?", "output": "SELECT SUM(position) FROM table_name_63 WHERE club = \"melilla cf\" AND goal_difference < -10" }
### INSTRUCTION How many viewers did the episode directed by David Nutter draw in? ### INPUT CREATE TABLE table_14929574_3 (us_viewers__million_ VARCHAR, directed_by VARCHAR) ### OUTPUT SELECT us_viewers__million_ FROM table_14929574_3 WHERE directed_by = "David Nutter"
{ "input": "CREATE TABLE table_14929574_3 (us_viewers__million_ VARCHAR, directed_by VARCHAR)", "instruction": "How many viewers did the episode directed by David Nutter draw in?", "output": "SELECT us_viewers__million_ FROM table_14929574_3 WHERE directed_by = \"David Nutter\"" }
### INSTRUCTION What is the Date that has MARTIN of 7–9% and no Undecided? ### INPUT CREATE TABLE table_name_93 (date VARCHAR, undecided VARCHAR, martin VARCHAR) ### OUTPUT SELECT date FROM table_name_93 WHERE undecided = "–" AND martin = "7–9%"
{ "input": "CREATE TABLE table_name_93 (date VARCHAR, undecided VARCHAR, martin VARCHAR)", "instruction": "What is the Date that has MARTIN of 7–9% and no Undecided?", "output": "SELECT date FROM table_name_93 WHERE undecided = \"–\" AND martin = \"7–9%\"" }
### INSTRUCTION What is the album number for the record 情歌没有告诉你, simplified from the traditional Chinese name? ### INPUT CREATE TABLE table_name_66 (album_number VARCHAR, chinese__simplified_ VARCHAR) ### OUTPUT SELECT album_number FROM table_name_66 WHERE chinese__simplified_ = "情歌没有告诉你"
{ "input": "CREATE TABLE table_name_66 (album_number VARCHAR, chinese__simplified_ VARCHAR)", "instruction": "What is the album number for the record 情歌没有告诉你, simplified from the traditional Chinese name?", "output": "SELECT album_number FROM table_name_66 WHERE chinese__simplified_ = \"情歌没有告诉你\"" }
### INSTRUCTION How many stations are called radyo5 101.9 news fm? ### INPUT CREATE TABLE table_17822401_1 (location VARCHAR, branding VARCHAR) ### OUTPUT SELECT COUNT(location) FROM table_17822401_1 WHERE branding = "Radyo5 101.9 News FM"
{ "input": "CREATE TABLE table_17822401_1 (location VARCHAR, branding VARCHAR)", "instruction": "How many stations are called radyo5 101.9 news fm?", "output": "SELECT COUNT(location) FROM table_17822401_1 WHERE branding = \"Radyo5 101.9 News FM\"" }
### INSTRUCTION Which customer, who has made at least one payment, has spent the least money? List his or her first name, last name, and the id. ### INPUT CREATE TABLE payment (customer_id VARCHAR); CREATE TABLE customer (first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR) ### OUTPUT SELECT T1.first_name, T1.last_name, T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY SUM(amount) LIMIT 1
{ "input": "CREATE TABLE payment (customer_id VARCHAR); CREATE TABLE customer (first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR)", "instruction": "Which customer, who has made at least one payment, has spent the least money? List his or her first name, last name, and the id.", "output": "SELECT T1.first_name, T1.last_name, T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY SUM(amount) LIMIT 1" }
### INSTRUCTION What commercial operation that has a gross capacity of 1,126 mw, and a unit of tianwan-4? ### INPUT CREATE TABLE table_name_95 (commercial_operation VARCHAR, gross_capacity VARCHAR, unit VARCHAR) ### OUTPUT SELECT commercial_operation FROM table_name_95 WHERE gross_capacity = "1,126 mw" AND unit = "tianwan-4"
{ "input": "CREATE TABLE table_name_95 (commercial_operation VARCHAR, gross_capacity VARCHAR, unit VARCHAR)", "instruction": "What commercial operation that has a gross capacity of 1,126 mw, and a unit of tianwan-4?", "output": "SELECT commercial_operation FROM table_name_95 WHERE gross_capacity = \"1,126 mw\" AND unit = \"tianwan-4\"" }
### INSTRUCTION How many heats had 2 lanes, a rank above 75, and nationality of Madagascar? ### INPUT CREATE TABLE table_name_48 (heat VARCHAR, nationality VARCHAR, lane VARCHAR, rank VARCHAR) ### OUTPUT SELECT COUNT(heat) FROM table_name_48 WHERE lane = 2 AND rank > 75 AND nationality = "madagascar"
{ "input": "CREATE TABLE table_name_48 (heat VARCHAR, nationality VARCHAR, lane VARCHAR, rank VARCHAR)", "instruction": "How many heats had 2 lanes, a rank above 75, and nationality of Madagascar?", "output": "SELECT COUNT(heat) FROM table_name_48 WHERE lane = 2 AND rank > 75 AND nationality = \"madagascar\"" }
### INSTRUCTION Show the manager name for gas stations belonging to the ExxonMobil company. ### INPUT CREATE TABLE gas_station (manager_name VARCHAR, station_id VARCHAR); CREATE TABLE station_company (company_id VARCHAR, station_id VARCHAR); CREATE TABLE company (company_id VARCHAR, company VARCHAR) ### OUTPUT SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.company = 'ExxonMobil'
{ "input": "CREATE TABLE gas_station (manager_name VARCHAR, station_id VARCHAR); CREATE TABLE station_company (company_id VARCHAR, station_id VARCHAR); CREATE TABLE company (company_id VARCHAR, company VARCHAR)", "instruction": "Show the manager name for gas stations belonging to the ExxonMobil company.", "output": "SELECT T3.manager_name FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id JOIN gas_station AS T3 ON T1.station_id = T3.station_id WHERE T2.company = 'ExxonMobil'" }
### INSTRUCTION What is the sum of lost when against is less than 37, drawn is more than 2, and played is more than 20? ### INPUT CREATE TABLE table_name_93 (lost VARCHAR, played VARCHAR, against VARCHAR, drawn VARCHAR) ### OUTPUT SELECT COUNT(lost) FROM table_name_93 WHERE against < 37 AND drawn > 2 AND played > 20
{ "input": "CREATE TABLE table_name_93 (lost VARCHAR, played VARCHAR, against VARCHAR, drawn VARCHAR)", "instruction": "What is the sum of lost when against is less than 37, drawn is more than 2, and played is more than 20?", "output": "SELECT COUNT(lost) FROM table_name_93 WHERE against < 37 AND drawn > 2 AND played > 20" }
### INSTRUCTION Please show the record formats of orchestras in ascending order of count. ### INPUT CREATE TABLE orchestra (Major_Record_Format VARCHAR) ### OUTPUT SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*)
{ "input": "CREATE TABLE orchestra (Major_Record_Format VARCHAR)", "instruction": "Please show the record formats of orchestras in ascending order of count.", "output": "SELECT Major_Record_Format FROM orchestra GROUP BY Major_Record_Format ORDER BY COUNT(*)" }
### INSTRUCTION Which catalogue has essential, castle music as it's label? ### INPUT CREATE TABLE table_name_46 (catalogue VARCHAR, label VARCHAR) ### OUTPUT SELECT catalogue FROM table_name_46 WHERE label = "essential, castle music"
{ "input": "CREATE TABLE table_name_46 (catalogue VARCHAR, label VARCHAR)", "instruction": "Which catalogue has essential, castle music as it's label?", "output": "SELECT catalogue FROM table_name_46 WHERE label = \"essential, castle music\"" }
### INSTRUCTION What is the constructor for time/retired of handling? ### INPUT CREATE TABLE table_name_99 (constructor VARCHAR, time_retired VARCHAR) ### OUTPUT SELECT constructor FROM table_name_99 WHERE time_retired = "handling"
{ "input": "CREATE TABLE table_name_99 (constructor VARCHAR, time_retired VARCHAR)", "instruction": "What is the constructor for time/retired of handling?", "output": "SELECT constructor FROM table_name_99 WHERE time_retired = \"handling\"" }
### INSTRUCTION what's the maximum purse( $ ) with score value of 204 (-9) ### INPUT CREATE TABLE table_11621915_1 (purse__ INTEGER, score VARCHAR) ### OUTPUT SELECT MAX(purse__) AS $__ FROM table_11621915_1 WHERE score = "204 (-9)"
{ "input": "CREATE TABLE table_11621915_1 (purse__ INTEGER, score VARCHAR)", "instruction": "what's the maximum purse( $ ) with score value of 204 (-9)", "output": "SELECT MAX(purse__) AS $__ FROM table_11621915_1 WHERE score = \"204 (-9)\"" }
### INSTRUCTION Find the kind of program which most number of students are enrolled in? ### INPUT CREATE TABLE Student_Enrolment (degree_program_id VARCHAR); CREATE TABLE Degree_Programs (degree_summary_name VARCHAR, degree_program_id VARCHAR) ### OUTPUT SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY COUNT(*) DESC LIMIT 1
{ "input": "CREATE TABLE Student_Enrolment (degree_program_id VARCHAR); CREATE TABLE Degree_Programs (degree_summary_name VARCHAR, degree_program_id VARCHAR)", "instruction": "Find the kind of program which most number of students are enrolled in?", "output": "SELECT T1.degree_summary_name FROM Degree_Programs AS T1 JOIN Student_Enrolment AS T2 ON T1.degree_program_id = T2.degree_program_id GROUP BY T1.degree_summary_name ORDER BY COUNT(*) DESC LIMIT 1" }
### INSTRUCTION What is the record of the game on 13 May? ### INPUT CREATE TABLE table_name_70 (record VARCHAR, date VARCHAR) ### OUTPUT SELECT record FROM table_name_70 WHERE date = "13 may"
{ "input": "CREATE TABLE table_name_70 (record VARCHAR, date VARCHAR)", "instruction": "What is the record of the game on 13 May?", "output": "SELECT record FROM table_name_70 WHERE date = \"13 may\"" }
### INSTRUCTION WHAT IS THE GRID OF HONDA, WITH 24 LAPS AND Time/Retired of +13.997? ### INPUT CREATE TABLE table_name_22 (grid VARCHAR, time_retired VARCHAR, manufacturer VARCHAR, laps VARCHAR) ### OUTPUT SELECT grid FROM table_name_22 WHERE manufacturer = "honda" AND laps = "24" AND time_retired = "+13.997"
{ "input": "CREATE TABLE table_name_22 (grid VARCHAR, time_retired VARCHAR, manufacturer VARCHAR, laps VARCHAR)", "instruction": "WHAT IS THE GRID OF HONDA, WITH 24 LAPS AND Time/Retired of +13.997?", "output": "SELECT grid FROM table_name_22 WHERE manufacturer = \"honda\" AND laps = \"24\" AND time_retired = \"+13.997\"" }
### INSTRUCTION What is the sigma (with 1.5σ shift) when there are 69% defective? ### INPUT CREATE TABLE table_222448_1 (sigma__with_15σ_shift_ VARCHAR, percent_defective VARCHAR) ### OUTPUT SELECT sigma__with_15σ_shift_ FROM table_222448_1 WHERE percent_defective = "69%"
{ "input": "CREATE TABLE table_222448_1 (sigma__with_15σ_shift_ VARCHAR, percent_defective VARCHAR)", "instruction": "What is the sigma (with 1.5σ shift) when there are 69% defective?", "output": "SELECT sigma__with_15σ_shift_ FROM table_222448_1 WHERE percent_defective = \"69%\"" }
### INSTRUCTION What is the number of the votes of the election before 2004 with edward mahama as the candidate with 3.0% share of votes? ### INPUT CREATE TABLE table_name_74 (number_of_votes VARCHAR, share_of_votes VARCHAR, candidate VARCHAR, election VARCHAR) ### OUTPUT SELECT number_of_votes FROM table_name_74 WHERE candidate = "edward mahama" AND election < 2004 AND share_of_votes = "3.0%"
{ "input": "CREATE TABLE table_name_74 (number_of_votes VARCHAR, share_of_votes VARCHAR, candidate VARCHAR, election VARCHAR)", "instruction": "What is the number of the votes of the election before 2004 with edward mahama as the candidate with 3.0% share of votes?", "output": "SELECT number_of_votes FROM table_name_74 WHERE candidate = \"edward mahama\" AND election < 2004 AND share_of_votes = \"3.0%\"" }
### INSTRUCTION Which study included autoimmune disease and inflammation? ### INPUT CREATE TABLE table_name_41 (name VARCHAR, indication VARCHAR) ### OUTPUT SELECT name FROM table_name_41 WHERE indication = "autoimmune disease and inflammation"
{ "input": "CREATE TABLE table_name_41 (name VARCHAR, indication VARCHAR)", "instruction": "Which study included autoimmune disease and inflammation?", "output": "SELECT name FROM table_name_41 WHERE indication = \"autoimmune disease and inflammation\"" }
### INSTRUCTION What is Trailing Party % Votes, when Party Won is "Bharatiya Janta Party", and when Trailing Party is "Indian National Congress"? ### INPUT CREATE TABLE table_name_74 (trailing_party VARCHAR, votes VARCHAR, party_won VARCHAR) ### OUTPUT SELECT trailing_party % votes FROM table_name_74 WHERE party_won = "bharatiya janta party" AND trailing_party = "indian national congress"
{ "input": "CREATE TABLE table_name_74 (trailing_party VARCHAR, votes VARCHAR, party_won VARCHAR)", "instruction": "What is Trailing Party % Votes, when Party Won is \"Bharatiya Janta Party\", and when Trailing Party is \"Indian National Congress\"?", "output": "SELECT trailing_party % votes FROM table_name_74 WHERE party_won = \"bharatiya janta party\" AND trailing_party = \"indian national congress\"" }
### INSTRUCTION How many laps were there for a grid of 13? ### INPUT CREATE TABLE table_name_35 (laps VARCHAR, grid VARCHAR) ### OUTPUT SELECT COUNT(laps) FROM table_name_35 WHERE grid = 13
{ "input": "CREATE TABLE table_name_35 (laps VARCHAR, grid VARCHAR)", "instruction": "How many laps were there for a grid of 13?", "output": "SELECT COUNT(laps) FROM table_name_35 WHERE grid = 13" }
### INSTRUCTION What location is listed from 2005-2010? ### INPUT CREATE TABLE table_26476336_2 (location VARCHAR, years VARCHAR) ### OUTPUT SELECT location FROM table_26476336_2 WHERE years = "2005-2010"
{ "input": "CREATE TABLE table_26476336_2 (location VARCHAR, years VARCHAR)", "instruction": "What location is listed from 2005-2010?", "output": "SELECT location FROM table_26476336_2 WHERE years = \"2005-2010\"" }
### INSTRUCTION What was the highest score of t5 place finisher brandt jobe? ### INPUT CREATE TABLE table_name_51 (score INTEGER, place VARCHAR, player VARCHAR) ### OUTPUT SELECT MAX(score) FROM table_name_51 WHERE place = "t5" AND player = "brandt jobe"
{ "input": "CREATE TABLE table_name_51 (score INTEGER, place VARCHAR, player VARCHAR)", "instruction": "What was the highest score of t5 place finisher brandt jobe?", "output": "SELECT MAX(score) FROM table_name_51 WHERE place = \"t5\" AND player = \"brandt jobe\"" }
### INSTRUCTION Who was the successor for vacant louisiana 5th ### INPUT CREATE TABLE table_2417340_4 (successor VARCHAR, vacator VARCHAR, district VARCHAR) ### OUTPUT SELECT successor FROM table_2417340_4 WHERE vacator = "Vacant" AND district = "Louisiana 5th"
{ "input": "CREATE TABLE table_2417340_4 (successor VARCHAR, vacator VARCHAR, district VARCHAR)", "instruction": "Who was the successor for vacant louisiana 5th", "output": "SELECT successor FROM table_2417340_4 WHERE vacator = \"Vacant\" AND district = \"Louisiana 5th\"" }
### INSTRUCTION What team was the home team on 27 june 1981, at vfl park? ### INPUT CREATE TABLE table_name_88 (home_team VARCHAR, date VARCHAR, venue VARCHAR) ### OUTPUT SELECT home_team FROM table_name_88 WHERE date = "27 june 1981" AND venue = "vfl park"
{ "input": "CREATE TABLE table_name_88 (home_team VARCHAR, date VARCHAR, venue VARCHAR)", "instruction": "What team was the home team on 27 june 1981, at vfl park?", "output": "SELECT home_team FROM table_name_88 WHERE date = \"27 june 1981\" AND venue = \"vfl park\"" }
### INSTRUCTION Show the record companies shared by orchestras founded before 2003 and after 2003. ### INPUT CREATE TABLE orchestra (Record_Company VARCHAR, Year_of_Founded INTEGER) ### OUTPUT SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003
{ "input": "CREATE TABLE orchestra (Record_Company VARCHAR, Year_of_Founded INTEGER)", "instruction": "Show the record companies shared by orchestras founded before 2003 and after 2003.", "output": "SELECT Record_Company FROM orchestra WHERE Year_of_Founded < 2003 INTERSECT SELECT Record_Company FROM orchestra WHERE Year_of_Founded > 2003" }
### INSTRUCTION What is the capacity at the nop aquatic centre, established after 1929? ### INPUT CREATE TABLE table_name_8 (capacity VARCHAR, venue VARCHAR, established VARCHAR) ### OUTPUT SELECT COUNT(capacity) FROM table_name_8 WHERE venue = "nop aquatic centre" AND established > 1929
{ "input": "CREATE TABLE table_name_8 (capacity VARCHAR, venue VARCHAR, established VARCHAR)", "instruction": "What is the capacity at the nop aquatic centre, established after 1929?", "output": "SELECT COUNT(capacity) FROM table_name_8 WHERE venue = \"nop aquatic centre\" AND established > 1929" }
### INSTRUCTION what's the party with incumbent being william e. evans ### INPUT CREATE TABLE table_1342359_5 (party VARCHAR, incumbent VARCHAR) ### OUTPUT SELECT party FROM table_1342359_5 WHERE incumbent = "William E. Evans"
{ "input": "CREATE TABLE table_1342359_5 (party VARCHAR, incumbent VARCHAR)", "instruction": "what's the party with incumbent being william e. evans", "output": "SELECT party FROM table_1342359_5 WHERE incumbent = \"William E. Evans\"" }
### INSTRUCTION what's the date entered service with ships name koningin wilhelmina ### INPUT CREATE TABLE table_11662133_3 (date_entered_service VARCHAR, ships_name VARCHAR) ### OUTPUT SELECT date_entered_service FROM table_11662133_3 WHERE ships_name = "Koningin Wilhelmina"
{ "input": "CREATE TABLE table_11662133_3 (date_entered_service VARCHAR, ships_name VARCHAR)", "instruction": " what's the date entered service with ships name koningin wilhelmina", "output": "SELECT date_entered_service FROM table_11662133_3 WHERE ships_name = \"Koningin Wilhelmina\"" }