text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
Find the names and number of works of the three artists who have produced the most songs.
### INPUT
CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR)
### OUTPUT
SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 3 | {
"input": "CREATE TABLE song (artist_name VARCHAR); CREATE TABLE artist (artist_name VARCHAR)",
"instruction": "Find the names and number of works of the three artists who have produced the most songs.",
"output": "SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 3"
} |
### INSTRUCTION
What is the customer first, last name and id with least number of accounts.
### INPUT
CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)
### OUTPUT
SELECT T2.customer_first_name, T2.customer_last_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1 | {
"input": "CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)",
"instruction": "What is the customer first, last name and id with least number of accounts.",
"output": "SELECT T2.customer_first_name, T2.customer_last_name, T1.customer_id FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY COUNT(*) LIMIT 1"
} |
### INSTRUCTION
How may players played for the Grizzlies from 2000-2002?
### INPUT
CREATE TABLE table_16494599_1 (no VARCHAR, years_for_grizzlies VARCHAR)
### OUTPUT
SELECT COUNT(no) FROM table_16494599_1 WHERE years_for_grizzlies = "2000-2002" | {
"input": "CREATE TABLE table_16494599_1 (no VARCHAR, years_for_grizzlies VARCHAR)",
"instruction": "How may players played for the Grizzlies from 2000-2002?",
"output": "SELECT COUNT(no) FROM table_16494599_1 WHERE years_for_grizzlies = \"2000-2002\""
} |
### INSTRUCTION
Tell me the tournament for outcome of winner and score of 4-6 6-3 10-5
### INPUT
CREATE TABLE table_name_90 (tournament VARCHAR, outcome VARCHAR, score VARCHAR)
### OUTPUT
SELECT tournament FROM table_name_90 WHERE outcome = "winner" AND score = "4-6 6-3 10-5" | {
"input": "CREATE TABLE table_name_90 (tournament VARCHAR, outcome VARCHAR, score VARCHAR)",
"instruction": "Tell me the tournament for outcome of winner and score of 4-6 6-3 10-5",
"output": "SELECT tournament FROM table_name_90 WHERE outcome = \"winner\" AND score = \"4-6 6-3 10-5\""
} |
### INSTRUCTION
What is the number of people in attendance at Oakland-Alameda County Coliseum, and game is 2?
### INPUT
CREATE TABLE table_name_83 (attendance INTEGER, location VARCHAR, game VARCHAR)
### OUTPUT
SELECT SUM(attendance) FROM table_name_83 WHERE location = "oakland-alameda county coliseum" AND game = 2 | {
"input": "CREATE TABLE table_name_83 (attendance INTEGER, location VARCHAR, game VARCHAR)",
"instruction": "What is the number of people in attendance at Oakland-Alameda County Coliseum, and game is 2?",
"output": "SELECT SUM(attendance) FROM table_name_83 WHERE location = \"oakland-alameda county coliseum\" AND game = 2"
} |
### INSTRUCTION
Who is the crew chief of team Chip Ganassi Racing with Felix Sabates, which has Casey Mears as the driver?
### INPUT
CREATE TABLE table_name_10 (crew_chief VARCHAR, team VARCHAR, driver_s_ VARCHAR)
### OUTPUT
SELECT crew_chief FROM table_name_10 WHERE team = "chip ganassi racing with felix sabates" AND driver_s_ = "casey mears" | {
"input": "CREATE TABLE table_name_10 (crew_chief VARCHAR, team VARCHAR, driver_s_ VARCHAR)",
"instruction": "Who is the crew chief of team Chip Ganassi Racing with Felix Sabates, which has Casey Mears as the driver?",
"output": "SELECT crew_chief FROM table_name_10 WHERE team = \"chip ganassi racing with felix sabates\" AND driver_s_ = \"casey mears\""
} |
### INSTRUCTION
which episode was Transmitted on friday if the episode of "414 insanely twisted shadow planet" was transmitted on tuesday?
### INPUT
CREATE TABLE table_18173916_8 (friday VARCHAR, tuesday VARCHAR)
### OUTPUT
SELECT friday FROM table_18173916_8 WHERE tuesday = "414 Insanely Twisted Shadow Planet" | {
"input": "CREATE TABLE table_18173916_8 (friday VARCHAR, tuesday VARCHAR)",
"instruction": "which episode was Transmitted on friday if the episode of \"414 insanely twisted shadow planet\" was transmitted on tuesday? ",
"output": "SELECT friday FROM table_18173916_8 WHERE tuesday = \"414 Insanely Twisted Shadow Planet\""
} |
### INSTRUCTION
How many characteristics does the product named "laurel" have?
### INPUT
CREATE TABLE CHARACTERISTICS (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(*) 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 = "laurel" | {
"input": "CREATE TABLE CHARACTERISTICS (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 characteristics does the product named \"laurel\" have?",
"output": "SELECT COUNT(*) 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 = \"laurel\""
} |
### INSTRUCTION
Which event has a distance of ft10in (m)?
### INPUT
CREATE TABLE table_name_88 (event VARCHAR, distance VARCHAR)
### OUTPUT
SELECT event FROM table_name_88 WHERE distance = "ft10in (m)" | {
"input": "CREATE TABLE table_name_88 (event VARCHAR, distance VARCHAR)",
"instruction": "Which event has a distance of ft10in (m)?",
"output": "SELECT event FROM table_name_88 WHERE distance = \"ft10in (m)\""
} |
### INSTRUCTION
Show the names of the buildings that have more than one company offices.
### INPUT
CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Companies (id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR)
### OUTPUT
SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id HAVING COUNT(*) > 1 | {
"input": "CREATE TABLE buildings (name VARCHAR, id VARCHAR); CREATE TABLE Companies (id VARCHAR); CREATE TABLE Office_locations (building_id VARCHAR, company_id VARCHAR)",
"instruction": "Show the names of the buildings that have more than one company offices.",
"output": "SELECT T2.name FROM Office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN Companies AS T3 ON T1.company_id = T3.id GROUP BY T1.building_id HAVING COUNT(*) > 1"
} |
### INSTRUCTION
Name the pole position for belgian grand prix
### INPUT
CREATE TABLE table_name_75 (pole_position VARCHAR, grand_prix VARCHAR)
### OUTPUT
SELECT pole_position FROM table_name_75 WHERE grand_prix = "belgian grand prix" | {
"input": "CREATE TABLE table_name_75 (pole_position VARCHAR, grand_prix VARCHAR)",
"instruction": "Name the pole position for belgian grand prix",
"output": "SELECT pole_position FROM table_name_75 WHERE grand_prix = \"belgian grand prix\""
} |
### INSTRUCTION
Who was the Kit manufacturer that was has shirts sponsored by Walkers?
### INPUT
CREATE TABLE table_name_63 (kit_manufacturer VARCHAR, shirt_sponsor VARCHAR)
### OUTPUT
SELECT kit_manufacturer FROM table_name_63 WHERE shirt_sponsor = "walkers" | {
"input": "CREATE TABLE table_name_63 (kit_manufacturer VARCHAR, shirt_sponsor VARCHAR)",
"instruction": "Who was the Kit manufacturer that was has shirts sponsored by Walkers?",
"output": "SELECT kit_manufacturer FROM table_name_63 WHERE shirt_sponsor = \"walkers\""
} |
### INSTRUCTION
What are the titles and directors of the movies whose star is greater than the average stars of the movies directed by James Cameron?
### INPUT
CREATE TABLE Rating (mID VARCHAR, stars INTEGER); CREATE TABLE Movie (title VARCHAR, director VARCHAR, mID VARCHAR)
### OUTPUT
SELECT T2.title, T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars > (SELECT AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = "James Cameron") | {
"input": "CREATE TABLE Rating (mID VARCHAR, stars INTEGER); CREATE TABLE Movie (title VARCHAR, director VARCHAR, mID VARCHAR)",
"instruction": "What are the titles and directors of the movies whose star is greater than the average stars of the movies directed by James Cameron?",
"output": "SELECT T2.title, T2.director FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars > (SELECT AVG(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.director = \"James Cameron\")"
} |
### INSTRUCTION
What player has a no pick position in 1976?
### INPUT
CREATE TABLE table_name_33 (player VARCHAR, position VARCHAR, year VARCHAR)
### OUTPUT
SELECT player FROM table_name_33 WHERE position = "no pick" AND year = 1976 | {
"input": "CREATE TABLE table_name_33 (player VARCHAR, position VARCHAR, year VARCHAR)",
"instruction": "What player has a no pick position in 1976?",
"output": "SELECT player FROM table_name_33 WHERE position = \"no pick\" AND year = 1976"
} |
### INSTRUCTION
who are all the winning constructors where fastest lap is riccardo patrese and location is interlagos
### INPUT
CREATE TABLE table_1137704_2 (winning_constructor VARCHAR, fastest_lap VARCHAR, location VARCHAR)
### OUTPUT
SELECT winning_constructor FROM table_1137704_2 WHERE fastest_lap = "Riccardo Patrese" AND location = "Interlagos" | {
"input": "CREATE TABLE table_1137704_2 (winning_constructor VARCHAR, fastest_lap VARCHAR, location VARCHAR)",
"instruction": "who are all the winning constructors where fastest lap is riccardo patrese and location is interlagos",
"output": "SELECT winning_constructor FROM table_1137704_2 WHERE fastest_lap = \"Riccardo Patrese\" AND location = \"Interlagos\""
} |
### INSTRUCTION
Where did Tyler Haws, 2009 Utah Mr. Basketball, go to high school?
### INPUT
CREATE TABLE table_name_89 (high_school VARCHAR, utah_mr_basketball VARCHAR, year VARCHAR)
### OUTPUT
SELECT high_school FROM table_name_89 WHERE utah_mr_basketball = "tyler haws" AND year = 2009 | {
"input": "CREATE TABLE table_name_89 (high_school VARCHAR, utah_mr_basketball VARCHAR, year VARCHAR)",
"instruction": "Where did Tyler Haws, 2009 Utah Mr. Basketball, go to high school?",
"output": "SELECT high_school FROM table_name_89 WHERE utah_mr_basketball = \"tyler haws\" AND year = 2009"
} |
### INSTRUCTION
Who were Petrova's opponents with Vania King?
### INPUT
CREATE TABLE table_27611593_5 (opponents VARCHAR, partner VARCHAR)
### OUTPUT
SELECT opponents FROM table_27611593_5 WHERE partner = "Vania King" | {
"input": "CREATE TABLE table_27611593_5 (opponents VARCHAR, partner VARCHAR)",
"instruction": "Who were Petrova's opponents with Vania King?",
"output": "SELECT opponents FROM table_27611593_5 WHERE partner = \"Vania King\""
} |
### INSTRUCTION
Name the number of area where population density 2010 for 514
### INPUT
CREATE TABLE table_14986292_1 (area__km²_ VARCHAR, population_density_2010___km²_ VARCHAR)
### OUTPUT
SELECT COUNT(area__km²_) FROM table_14986292_1 WHERE population_density_2010___km²_ = 514 | {
"input": "CREATE TABLE table_14986292_1 (area__km²_ VARCHAR, population_density_2010___km²_ VARCHAR)",
"instruction": "Name the number of area where population density 2010 for 514",
"output": "SELECT COUNT(area__km²_) FROM table_14986292_1 WHERE population_density_2010___km²_ = 514"
} |
### INSTRUCTION
What is the date for the grass surface final against Nathan Healey?
### INPUT
CREATE TABLE table_name_41 (date VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
### OUTPUT
SELECT date FROM table_name_41 WHERE surface = "grass" AND opponent_in_the_final = "nathan healey" | {
"input": "CREATE TABLE table_name_41 (date VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)",
"instruction": "What is the date for the grass surface final against Nathan Healey?",
"output": "SELECT date FROM table_name_41 WHERE surface = \"grass\" AND opponent_in_the_final = \"nathan healey\""
} |
### INSTRUCTION
What is the rank of the qual 141.471?
### INPUT
CREATE TABLE table_name_3 (rank VARCHAR, qual VARCHAR)
### OUTPUT
SELECT rank FROM table_name_3 WHERE qual = "141.471" | {
"input": "CREATE TABLE table_name_3 (rank VARCHAR, qual VARCHAR)",
"instruction": "What is the rank of the qual 141.471?",
"output": "SELECT rank FROM table_name_3 WHERE qual = \"141.471\""
} |
### INSTRUCTION
What is the title of the episode with the original air date of 28 September 1969?
### INPUT
CREATE TABLE table_1439096_1 (title VARCHAR, original_air_date__atv_ VARCHAR)
### OUTPUT
SELECT title FROM table_1439096_1 WHERE original_air_date__atv_ = "28 September 1969" | {
"input": "CREATE TABLE table_1439096_1 (title VARCHAR, original_air_date__atv_ VARCHAR)",
"instruction": "What is the title of the episode with the original air date of 28 September 1969?",
"output": "SELECT title FROM table_1439096_1 WHERE original_air_date__atv_ = \"28 September 1969\""
} |
### INSTRUCTION
What is the Record that has a Home of detroit red wings, and a Score of 1–2 on december 29?
### INPUT
CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR, home VARCHAR, score VARCHAR)
### OUTPUT
SELECT record FROM table_name_23 WHERE home = "detroit red wings" AND score = "1–2" AND date = "december 29" | {
"input": "CREATE TABLE table_name_23 (record VARCHAR, date VARCHAR, home VARCHAR, score VARCHAR)",
"instruction": "What is the Record that has a Home of detroit red wings, and a Score of 1–2 on december 29?",
"output": "SELECT record FROM table_name_23 WHERE home = \"detroit red wings\" AND score = \"1–2\" AND date = \"december 29\""
} |
### INSTRUCTION
What is the high lap total for tyrrell - yamaha, and a Time/Retired of + 1 lap?
### INPUT
CREATE TABLE table_name_42 (laps INTEGER, constructor VARCHAR, time_retired VARCHAR)
### OUTPUT
SELECT MAX(laps) FROM table_name_42 WHERE constructor = "tyrrell - yamaha" AND time_retired = "+ 1 lap" | {
"input": "CREATE TABLE table_name_42 (laps INTEGER, constructor VARCHAR, time_retired VARCHAR)",
"instruction": "What is the high lap total for tyrrell - yamaha, and a Time/Retired of + 1 lap?",
"output": "SELECT MAX(laps) FROM table_name_42 WHERE constructor = \"tyrrell - yamaha\" AND time_retired = \"+ 1 lap\""
} |
### INSTRUCTION
Name the date when the surface was clay and the score was 6–1, 6–2 and runner-up
### INPUT
CREATE TABLE table_name_6 (date VARCHAR, outcome VARCHAR, surface VARCHAR, score VARCHAR)
### OUTPUT
SELECT date FROM table_name_6 WHERE surface = "clay" AND score = "6–1, 6–2" AND outcome = "runner-up" | {
"input": "CREATE TABLE table_name_6 (date VARCHAR, outcome VARCHAR, surface VARCHAR, score VARCHAR)",
"instruction": "Name the date when the surface was clay and the score was 6–1, 6–2 and runner-up",
"output": "SELECT date FROM table_name_6 WHERE surface = \"clay\" AND score = \"6–1, 6–2\" AND outcome = \"runner-up\""
} |
### INSTRUCTION
What season was an episode directed by wendey stanzler?
### INPUT
CREATE TABLE table_25716399_1 (no_in_season INTEGER, directed_by VARCHAR)
### OUTPUT
SELECT MAX(no_in_season) FROM table_25716399_1 WHERE directed_by = "Wendey Stanzler" | {
"input": "CREATE TABLE table_25716399_1 (no_in_season INTEGER, directed_by VARCHAR)",
"instruction": "What season was an episode directed by wendey stanzler?",
"output": "SELECT MAX(no_in_season) FROM table_25716399_1 WHERE directed_by = \"Wendey Stanzler\""
} |
### INSTRUCTION
What is the highest grid value with constructor Mclaren - Mercedes, driver David Coulthard, and has fewer than 66 laps?
### INPUT
CREATE TABLE table_name_99 (grid INTEGER, laps VARCHAR, constructor VARCHAR, driver VARCHAR)
### OUTPUT
SELECT MAX(grid) FROM table_name_99 WHERE constructor = "mclaren - mercedes" AND driver = "david coulthard" AND laps < 66 | {
"input": "CREATE TABLE table_name_99 (grid INTEGER, laps VARCHAR, constructor VARCHAR, driver VARCHAR)",
"instruction": "What is the highest grid value with constructor Mclaren - Mercedes, driver David Coulthard, and has fewer than 66 laps?",
"output": "SELECT MAX(grid) FROM table_name_99 WHERE constructor = \"mclaren - mercedes\" AND driver = \"david coulthard\" AND laps < 66"
} |
### INSTRUCTION
Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order.
### INPUT
CREATE TABLE Courses (subject_id VARCHAR); CREATE TABLE Subjects (subject_name VARCHAR, subject_id VARCHAR)
### OUTPUT
SELECT T1.subject_id, T2.subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*) | {
"input": "CREATE TABLE Courses (subject_id VARCHAR); CREATE TABLE Subjects (subject_name VARCHAR, subject_id VARCHAR)",
"instruction": "Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order.",
"output": "SELECT T1.subject_id, T2.subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id ORDER BY COUNT(*)"
} |
### INSTRUCTION
Which Size has a County of 62 perry?
### INPUT
CREATE TABLE table_name_69 (size INTEGER, county VARCHAR)
### OUTPUT
SELECT MAX(size) FROM table_name_69 WHERE county = "62 perry" | {
"input": "CREATE TABLE table_name_69 (size INTEGER, county VARCHAR)",
"instruction": "Which Size has a County of 62 perry?",
"output": "SELECT MAX(size) FROM table_name_69 WHERE county = \"62 perry\""
} |
### INSTRUCTION
For how many years did Detroit have a passenger fare of $307.29?
### INPUT
CREATE TABLE table_name_99 (year INTEGER, detroit__dtw_ VARCHAR)
### OUTPUT
SELECT SUM(year) FROM table_name_99 WHERE detroit__dtw_ = "$307.29" | {
"input": "CREATE TABLE table_name_99 (year INTEGER, detroit__dtw_ VARCHAR)",
"instruction": "For how many years did Detroit have a passenger fare of $307.29?",
"output": "SELECT SUM(year) FROM table_name_99 WHERE detroit__dtw_ = \"$307.29\""
} |
### INSTRUCTION
What is 2011, when 2012 is "1R"?
### INPUT
CREATE TABLE table_name_73 (Id VARCHAR)
### OUTPUT
SELECT 2011 FROM table_name_73 WHERE 2012 = "1r" | {
"input": "CREATE TABLE table_name_73 (Id VARCHAR)",
"instruction": "What is 2011, when 2012 is \"1R\"?",
"output": "SELECT 2011 FROM table_name_73 WHERE 2012 = \"1r\""
} |
### INSTRUCTION
Who is the coach of the 2012 Gold Coast Titans season?
### INPUT
CREATE TABLE table_name_4 (coach VARCHAR, details VARCHAR)
### OUTPUT
SELECT coach FROM table_name_4 WHERE details = "2012 gold coast titans season" | {
"input": "CREATE TABLE table_name_4 (coach VARCHAR, details VARCHAR)",
"instruction": "Who is the coach of the 2012 Gold Coast Titans season?",
"output": "SELECT coach FROM table_name_4 WHERE details = \"2012 gold coast titans season\""
} |
### INSTRUCTION
Which Location has a Record of 5–2–1?
### INPUT
CREATE TABLE table_name_31 (location VARCHAR, record VARCHAR)
### OUTPUT
SELECT location FROM table_name_31 WHERE record = "5–2–1" | {
"input": "CREATE TABLE table_name_31 (location VARCHAR, record VARCHAR)",
"instruction": "Which Location has a Record of 5–2–1?",
"output": "SELECT location FROM table_name_31 WHERE record = \"5–2–1\""
} |
### INSTRUCTION
What is the enrollment at the school of Hamilton community?
### INPUT
CREATE TABLE table_name_3 (enrollment INTEGER, school VARCHAR)
### OUTPUT
SELECT AVG(enrollment) FROM table_name_3 WHERE school = "hamilton community" | {
"input": "CREATE TABLE table_name_3 (enrollment INTEGER, school VARCHAR)",
"instruction": "What is the enrollment at the school of Hamilton community?",
"output": "SELECT AVG(enrollment) FROM table_name_3 WHERE school = \"hamilton community\""
} |
### INSTRUCTION
On what Date were the Results¹ 4:0?
### INPUT
CREATE TABLE table_name_47 (date VARCHAR, results¹ VARCHAR)
### OUTPUT
SELECT date FROM table_name_47 WHERE results¹ = "4:0" | {
"input": "CREATE TABLE table_name_47 (date VARCHAR, results¹ VARCHAR)",
"instruction": "On what Date were the Results¹ 4:0?",
"output": "SELECT date FROM table_name_47 WHERE results¹ = \"4:0\""
} |
### INSTRUCTION
What is Highest Days, when Launch Date is 23 January 2010?
### INPUT
CREATE TABLE table_name_16 (days INTEGER, launch_date VARCHAR)
### OUTPUT
SELECT MAX(days) FROM table_name_16 WHERE launch_date = "23 january 2010" | {
"input": "CREATE TABLE table_name_16 (days INTEGER, launch_date VARCHAR)",
"instruction": "What is Highest Days, when Launch Date is 23 January 2010?",
"output": "SELECT MAX(days) FROM table_name_16 WHERE launch_date = \"23 january 2010\""
} |
### INSTRUCTION
What is the location of the Durfee Mill No. 1, built before 1872 ?
### INPUT
CREATE TABLE table_name_7 (location VARCHAR, built VARCHAR, name VARCHAR)
### OUTPUT
SELECT location FROM table_name_7 WHERE built < 1872 AND name = "durfee mill no. 1" | {
"input": "CREATE TABLE table_name_7 (location VARCHAR, built VARCHAR, name VARCHAR)",
"instruction": "What is the location of the Durfee Mill No. 1, built before 1872 ?",
"output": "SELECT location FROM table_name_7 WHERE built < 1872 AND name = \"durfee mill no. 1\""
} |
### INSTRUCTION
What is the smallest sales area (m²) that has €4,094/m² and more than 2 stores?
### INPUT
CREATE TABLE table_name_20 (sales_area__m²_ INTEGER, sales_per_area VARCHAR, no_of_stores VARCHAR)
### OUTPUT
SELECT MIN(sales_area__m²_) FROM table_name_20 WHERE sales_per_area = "€4,094/m²" AND no_of_stores > 2 | {
"input": "CREATE TABLE table_name_20 (sales_area__m²_ INTEGER, sales_per_area VARCHAR, no_of_stores VARCHAR)",
"instruction": "What is the smallest sales area (m²) that has €4,094/m² and more than 2 stores?",
"output": "SELECT MIN(sales_area__m²_) FROM table_name_20 WHERE sales_per_area = \"€4,094/m²\" AND no_of_stores > 2"
} |
### INSTRUCTION
Which language is the most popular in Aruba?
### INPUT
CREATE TABLE country (Code VARCHAR, Name VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)
### OUTPUT
SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = "Aruba" ORDER BY Percentage DESC LIMIT 1 | {
"input": "CREATE TABLE country (Code VARCHAR, Name VARCHAR); CREATE TABLE countrylanguage (Language VARCHAR, CountryCode VARCHAR)",
"instruction": "Which language is the most popular in Aruba?",
"output": "SELECT T2.Language FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T1.Name = \"Aruba\" ORDER BY Percentage DESC LIMIT 1"
} |
### INSTRUCTION
Who is the Artist with an Issue Price (BU) [Clarification Needed] of n/a along with a Year larger than 2004, and Mintage (Proof) of 25,000?
### INPUT
CREATE TABLE table_name_53 (artist VARCHAR, mintage__proof_ VARCHAR, year VARCHAR, issue_price__bu_ VARCHAR, _clarification_needed_ VARCHAR)
### OUTPUT
SELECT artist FROM table_name_53 WHERE issue_price__bu_[_clarification_needed_] = "n/a" AND year > 2004 AND mintage__proof_ = "25,000" | {
"input": "CREATE TABLE table_name_53 (artist VARCHAR, mintage__proof_ VARCHAR, year VARCHAR, issue_price__bu_ VARCHAR, _clarification_needed_ VARCHAR)",
"instruction": "Who is the Artist with an Issue Price (BU) [Clarification Needed] of n/a along with a Year larger than 2004, and Mintage (Proof) of 25,000?",
"output": "SELECT artist FROM table_name_53 WHERE issue_price__bu_[_clarification_needed_] = \"n/a\" AND year > 2004 AND mintage__proof_ = \"25,000\""
} |
### INSTRUCTION
Tell me the sum of earnings for rank less than 1
### INPUT
CREATE TABLE table_name_63 (earnings__ INTEGER, rank INTEGER)
### OUTPUT
SELECT SUM(earnings__) AS $__ FROM table_name_63 WHERE rank < 1 | {
"input": "CREATE TABLE table_name_63 (earnings__ INTEGER, rank INTEGER)",
"instruction": "Tell me the sum of earnings for rank less than 1",
"output": "SELECT SUM(earnings__) AS $__ FROM table_name_63 WHERE rank < 1"
} |
### INSTRUCTION
Find the names and descriptions of courses that belong to the subject named "Computer Science".
### INPUT
CREATE TABLE Courses (course_name VARCHAR, course_description VARCHAR, subject_id VARCHAR); CREATE TABLE Subjects (subject_id VARCHAR, subject_name VARCHAR)
### OUTPUT
SELECT T1.course_name, T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = "Computer Science" | {
"input": "CREATE TABLE Courses (course_name VARCHAR, course_description VARCHAR, subject_id VARCHAR); CREATE TABLE Subjects (subject_id VARCHAR, subject_name VARCHAR)",
"instruction": "Find the names and descriptions of courses that belong to the subject named \"Computer Science\".",
"output": "SELECT T1.course_name, T1.course_description FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id WHERE T2.subject_name = \"Computer Science\""
} |
### INSTRUCTION
What is the highest total cargo of an airport ranked larger than 19 with a code of BKK/VTBS?
### INPUT
CREATE TABLE table_name_18 (total_cargo__metric_tonnes_ INTEGER, code__iata_icao_ VARCHAR, rank VARCHAR)
### OUTPUT
SELECT MAX(total_cargo__metric_tonnes_) FROM table_name_18 WHERE code__iata_icao_ = "bkk/vtbs" AND rank > 19 | {
"input": "CREATE TABLE table_name_18 (total_cargo__metric_tonnes_ INTEGER, code__iata_icao_ VARCHAR, rank VARCHAR)",
"instruction": "What is the highest total cargo of an airport ranked larger than 19 with a code of BKK/VTBS?",
"output": "SELECT MAX(total_cargo__metric_tonnes_) FROM table_name_18 WHERE code__iata_icao_ = \"bkk/vtbs\" AND rank > 19"
} |
### INSTRUCTION
What is the result of the game that was played at Soldier Field?
### INPUT
CREATE TABLE table_name_90 (result VARCHAR, game_site VARCHAR)
### OUTPUT
SELECT result FROM table_name_90 WHERE game_site = "soldier field" | {
"input": "CREATE TABLE table_name_90 (result VARCHAR, game_site VARCHAR)",
"instruction": "What is the result of the game that was played at Soldier Field?",
"output": "SELECT result FROM table_name_90 WHERE game_site = \"soldier field\""
} |
### INSTRUCTION
Who was the captain of the away team at Adelaide Oval?
### INPUT
CREATE TABLE table_name_84 (away_captain VARCHAR, venue VARCHAR)
### OUTPUT
SELECT away_captain FROM table_name_84 WHERE venue = "adelaide oval" | {
"input": "CREATE TABLE table_name_84 (away_captain VARCHAR, venue VARCHAR)",
"instruction": "Who was the captain of the away team at Adelaide Oval?",
"output": "SELECT away_captain FROM table_name_84 WHERE venue = \"adelaide oval\""
} |
### INSTRUCTION
Please show each industry and the corresponding number of companies in that industry.
### INPUT
CREATE TABLE Companies (Industry VARCHAR)
### OUTPUT
SELECT Industry, COUNT(*) FROM Companies GROUP BY Industry | {
"input": "CREATE TABLE Companies (Industry VARCHAR)",
"instruction": "Please show each industry and the corresponding number of companies in that industry.",
"output": "SELECT Industry, COUNT(*) FROM Companies GROUP BY Industry"
} |
### INSTRUCTION
How many points were there scored on October 27?
### INPUT
CREATE TABLE table_23308178_4 (points INTEGER, date VARCHAR)
### OUTPUT
SELECT MAX(points) FROM table_23308178_4 WHERE date = "October 27" | {
"input": "CREATE TABLE table_23308178_4 (points INTEGER, date VARCHAR)",
"instruction": "How many points were there scored on October 27?",
"output": "SELECT MAX(points) FROM table_23308178_4 WHERE date = \"October 27\""
} |
### INSTRUCTION
What is the color description of the product with name "catnip"?
### INPUT
CREATE TABLE products (color_code VARCHAR, product_name VARCHAR); CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR)
### OUTPUT
SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = "catnip" | {
"input": "CREATE TABLE products (color_code VARCHAR, product_name VARCHAR); CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR)",
"instruction": "What is the color description of the product with name \"catnip\"?",
"output": "SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t1.product_name = \"catnip\""
} |
### INSTRUCTION
What is the population for the Irish Name Leitir mealláin?
### INPUT
CREATE TABLE table_101196_1 (population VARCHAR, irish_name VARCHAR)
### OUTPUT
SELECT population FROM table_101196_1 WHERE irish_name = "Leitir Mealláin" | {
"input": "CREATE TABLE table_101196_1 (population VARCHAR, irish_name VARCHAR)",
"instruction": "What is the population for the Irish Name Leitir mealláin?",
"output": "SELECT population FROM table_101196_1 WHERE irish_name = \"Leitir Mealláin\""
} |
### INSTRUCTION
Find the name of the person who has friends with age above 40 but not under age 30?
### INPUT
CREATE TABLE Person (name VARCHAR, age INTEGER); 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 IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30) | {
"input": "CREATE TABLE Person (name VARCHAR, age INTEGER); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)",
"instruction": "Find the name of the person who has friends with age above 40 but not under age 30?",
"output": "SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age > 40) EXCEPT SELECT T1.name FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend IN (SELECT name FROM Person WHERE age < 30)"
} |
### INSTRUCTION
Show the description of transaction type with code "PUR".
### INPUT
CREATE TABLE Ref_Transaction_Types (transaction_type_description VARCHAR, transaction_type_code VARCHAR)
### OUTPUT
SELECT transaction_type_description FROM Ref_Transaction_Types WHERE transaction_type_code = "PUR" | {
"input": "CREATE TABLE Ref_Transaction_Types (transaction_type_description VARCHAR, transaction_type_code VARCHAR)",
"instruction": "Show the description of transaction type with code \"PUR\".",
"output": "SELECT transaction_type_description FROM Ref_Transaction_Types WHERE transaction_type_code = \"PUR\""
} |
### INSTRUCTION
Who was the Interview Subject on the Date when there were Pictorials of Christie Brinkley?
### INPUT
CREATE TABLE table_name_89 (interview_subject VARCHAR, pictorials VARCHAR)
### OUTPUT
SELECT interview_subject FROM table_name_89 WHERE pictorials = "christie brinkley" | {
"input": "CREATE TABLE table_name_89 (interview_subject VARCHAR, pictorials VARCHAR)",
"instruction": "Who was the Interview Subject on the Date when there were Pictorials of Christie Brinkley?",
"output": "SELECT interview_subject FROM table_name_89 WHERE pictorials = \"christie brinkley\""
} |
### INSTRUCTION
How many different nationalities do conductors have?
### INPUT
CREATE TABLE conductor (Nationality VARCHAR)
### OUTPUT
SELECT COUNT(DISTINCT Nationality) FROM conductor | {
"input": "CREATE TABLE conductor (Nationality VARCHAR)",
"instruction": "How many different nationalities do conductors have?",
"output": "SELECT COUNT(DISTINCT Nationality) FROM conductor"
} |
### INSTRUCTION
What is the Time/Retired for a Grid smaller than 10, a Laps larger than 20, and a Constructor of talbot-lago - talbot?
### INPUT
CREATE TABLE table_name_89 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)
### OUTPUT
SELECT time_retired FROM table_name_89 WHERE grid < 10 AND laps > 20 AND constructor = "talbot-lago - talbot" | {
"input": "CREATE TABLE table_name_89 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR)",
"instruction": "What is the Time/Retired for a Grid smaller than 10, a Laps larger than 20, and a Constructor of talbot-lago - talbot?",
"output": "SELECT time_retired FROM table_name_89 WHERE grid < 10 AND laps > 20 AND constructor = \"talbot-lago - talbot\""
} |
### INSTRUCTION
how many times is the team tauro and played less than 18?
### INPUT
CREATE TABLE table_name_85 (place VARCHAR, team VARCHAR, played VARCHAR)
### OUTPUT
SELECT COUNT(place) FROM table_name_85 WHERE team = "tauro" AND played < 18 | {
"input": "CREATE TABLE table_name_85 (place VARCHAR, team VARCHAR, played VARCHAR)",
"instruction": "how many times is the team tauro and played less than 18?",
"output": "SELECT COUNT(place) FROM table_name_85 WHERE team = \"tauro\" AND played < 18"
} |
### INSTRUCTION
What is Result, when Competition is 2010 FIFA World Cup Qualification, and when Date is 10 September 2008?
### INPUT
CREATE TABLE table_name_37 (result VARCHAR, competition VARCHAR, date VARCHAR)
### OUTPUT
SELECT result FROM table_name_37 WHERE competition = "2010 fifa world cup qualification" AND date = "10 september 2008" | {
"input": "CREATE TABLE table_name_37 (result VARCHAR, competition VARCHAR, date VARCHAR)",
"instruction": "What is Result, when Competition is 2010 FIFA World Cup Qualification, and when Date is 10 September 2008?",
"output": "SELECT result FROM table_name_37 WHERE competition = \"2010 fifa world cup qualification\" AND date = \"10 september 2008\""
} |
### INSTRUCTION
What is the dominant religion in Gornji Tavankut?
### INPUT
CREATE TABLE table_2562572_26 (dominant_religion__2002_ VARCHAR, settlement VARCHAR)
### OUTPUT
SELECT dominant_religion__2002_ FROM table_2562572_26 WHERE settlement = "Gornji Tavankut" | {
"input": "CREATE TABLE table_2562572_26 (dominant_religion__2002_ VARCHAR, settlement VARCHAR)",
"instruction": "What is the dominant religion in Gornji Tavankut?",
"output": "SELECT dominant_religion__2002_ FROM table_2562572_26 WHERE settlement = \"Gornji Tavankut\""
} |
### INSTRUCTION
What is the name of the school in Lucas ?
### INPUT
CREATE TABLE table_25987797_1 (location VARCHAR, school VARCHAR)
### OUTPUT
SELECT location FROM table_25987797_1 WHERE school = "Lucas" | {
"input": "CREATE TABLE table_25987797_1 (location VARCHAR, school VARCHAR)",
"instruction": "What is the name of the school in Lucas ? ",
"output": "SELECT location FROM table_25987797_1 WHERE school = \"Lucas\""
} |
### INSTRUCTION
What place was Dave Stockton when he had a to par of +1?
### INPUT
CREATE TABLE table_name_10 (place VARCHAR, to_par VARCHAR, player VARCHAR)
### OUTPUT
SELECT place FROM table_name_10 WHERE to_par = "+1" AND player = "dave stockton" | {
"input": "CREATE TABLE table_name_10 (place VARCHAR, to_par VARCHAR, player VARCHAR)",
"instruction": "What place was Dave Stockton when he had a to par of +1?",
"output": "SELECT place FROM table_name_10 WHERE to_par = \"+1\" AND player = \"dave stockton\""
} |
### INSTRUCTION
Which Manufacturer has a Laps of 21, a Grid larger than 16, and a Rider of akira ryō?
### INPUT
CREATE TABLE table_name_89 (manufacturer VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR)
### OUTPUT
SELECT manufacturer FROM table_name_89 WHERE laps = 21 AND grid > 16 AND rider = "akira ryō" | {
"input": "CREATE TABLE table_name_89 (manufacturer VARCHAR, rider VARCHAR, laps VARCHAR, grid VARCHAR)",
"instruction": "Which Manufacturer has a Laps of 21, a Grid larger than 16, and a Rider of akira ryō?",
"output": "SELECT manufacturer FROM table_name_89 WHERE laps = 21 AND grid > 16 AND rider = \"akira ryō\""
} |
### INSTRUCTION
How many different values of total power are there for the unit whose construction started on 01.03.1977 and whose commercial operation started on 01.02.1984?
### INPUT
CREATE TABLE table_12983929_1 (total_power VARCHAR, construction_start VARCHAR, commercial_operation VARCHAR)
### OUTPUT
SELECT COUNT(total_power) FROM table_12983929_1 WHERE construction_start = "01.03.1977" AND commercial_operation = "01.02.1984" | {
"input": "CREATE TABLE table_12983929_1 (total_power VARCHAR, construction_start VARCHAR, commercial_operation VARCHAR)",
"instruction": "How many different values of total power are there for the unit whose construction started on 01.03.1977 and whose commercial operation started on 01.02.1984?",
"output": "SELECT COUNT(total_power) FROM table_12983929_1 WHERE construction_start = \"01.03.1977\" AND commercial_operation = \"01.02.1984\""
} |
### INSTRUCTION
How many GDPs as of 2012 after PPP values are associated with a 2012 value of 23113?
### INPUT
CREATE TABLE table_30133_3 (gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ VARCHAR)
### OUTPUT
SELECT COUNT(gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_) FROM table_30133_3 WHERE 2012 = 23113 | {
"input": "CREATE TABLE table_30133_3 (gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ VARCHAR)",
"instruction": "How many GDPs as of 2012 after PPP values are associated with a 2012 value of 23113?",
"output": "SELECT COUNT(gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_) FROM table_30133_3 WHERE 2012 = 23113"
} |
### INSTRUCTION
Other income sources of 2%, and a State pensions of 7%, and a Working tax credit of 2%, and a Employment ( salaries & wages) of 66% has what occupational pensions?
### INPUT
CREATE TABLE table_name_34 (occupational_pensions VARCHAR, working_tax_credit VARCHAR, employment___salaries_ VARCHAR, _wages_ VARCHAR, other_income_sources VARCHAR, state_pensions VARCHAR)
### OUTPUT
SELECT occupational_pensions FROM table_name_34 WHERE other_income_sources = "2%" AND state_pensions = "7%" AND working_tax_credit = "2%" AND employment___salaries_ & _wages_ = "66%" | {
"input": "CREATE TABLE table_name_34 (occupational_pensions VARCHAR, working_tax_credit VARCHAR, employment___salaries_ VARCHAR, _wages_ VARCHAR, other_income_sources VARCHAR, state_pensions VARCHAR)",
"instruction": "Other income sources of 2%, and a State pensions of 7%, and a Working tax credit of 2%, and a Employment ( salaries & wages) of 66% has what occupational pensions?",
"output": "SELECT occupational_pensions FROM table_name_34 WHERE other_income_sources = \"2%\" AND state_pensions = \"7%\" AND working_tax_credit = \"2%\" AND employment___salaries_ & _wages_ = \"66%\""
} |
### INSTRUCTION
Which round 5 Grand Prix had Daijiro Hiura at pole position?
### INPUT
CREATE TABLE table_18303274_1 (grand_prix VARCHAR, pole_position VARCHAR, round VARCHAR)
### OUTPUT
SELECT grand_prix FROM table_18303274_1 WHERE pole_position = "Daijiro Hiura" AND round = 5 | {
"input": "CREATE TABLE table_18303274_1 (grand_prix VARCHAR, pole_position VARCHAR, round VARCHAR)",
"instruction": "Which round 5 Grand Prix had Daijiro Hiura at pole position? ",
"output": "SELECT grand_prix FROM table_18303274_1 WHERE pole_position = \"Daijiro Hiura\" AND round = 5"
} |
### INSTRUCTION
What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11?
### INPUT
CREATE TABLE table_name_30 (pole_position VARCHAR, fastest_lap VARCHAR, round VARCHAR)
### OUTPUT
SELECT pole_position FROM table_name_30 WHERE fastest_lap = "rubens barrichello" AND round > 11 | {
"input": "CREATE TABLE table_name_30 (pole_position VARCHAR, fastest_lap VARCHAR, round VARCHAR)",
"instruction": "What pole position was Rubens Barrichello when he had the fastest lap and a round larger than 11?",
"output": "SELECT pole_position FROM table_name_30 WHERE fastest_lap = \"rubens barrichello\" AND round > 11"
} |
### INSTRUCTION
On June 17 in Tiger stadium, what was the average home run?
### INPUT
CREATE TABLE table_name_43 (home_run INTEGER, location VARCHAR, date VARCHAR)
### OUTPUT
SELECT AVG(home_run) FROM table_name_43 WHERE location = "tiger stadium" AND date = "june 17" | {
"input": "CREATE TABLE table_name_43 (home_run INTEGER, location VARCHAR, date VARCHAR)",
"instruction": "On June 17 in Tiger stadium, what was the average home run?",
"output": "SELECT AVG(home_run) FROM table_name_43 WHERE location = \"tiger stadium\" AND date = \"june 17\""
} |
### INSTRUCTION
Find the id and last name of the teacher that has the most detentions with detention type code "AFTER"?
### INPUT
CREATE TABLE Detention (teacher_id VARCHAR, detention_type_code VARCHAR); CREATE TABLE Teachers (last_name VARCHAR, teacher_id VARCHAR)
### OUTPUT
SELECT T1.teacher_id, T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T1.detention_type_code = "AFTER" GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Detention (teacher_id VARCHAR, detention_type_code VARCHAR); CREATE TABLE Teachers (last_name VARCHAR, teacher_id VARCHAR)",
"instruction": "Find the id and last name of the teacher that has the most detentions with detention type code \"AFTER\"?",
"output": "SELECT T1.teacher_id, T2.last_name FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T1.detention_type_code = \"AFTER\" GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What is the name of the club when the played number is 22, and the try bonus was 0?
### INPUT
CREATE TABLE table_name_62 (club VARCHAR, played VARCHAR, try_bonus VARCHAR)
### OUTPUT
SELECT club FROM table_name_62 WHERE played = "22" AND try_bonus = "0" | {
"input": "CREATE TABLE table_name_62 (club VARCHAR, played VARCHAR, try_bonus VARCHAR)",
"instruction": "What is the name of the club when the played number is 22, and the try bonus was 0?",
"output": "SELECT club FROM table_name_62 WHERE played = \"22\" AND try_bonus = \"0\""
} |
### INSTRUCTION
What is the high 10 profile number when the high profile is 80?
### INPUT
CREATE TABLE table_237036_2 (high_10_profile INTEGER, high_profile VARCHAR)
### OUTPUT
SELECT MAX(high_10_profile) FROM table_237036_2 WHERE high_profile = 80 | {
"input": "CREATE TABLE table_237036_2 (high_10_profile INTEGER, high_profile VARCHAR)",
"instruction": "What is the high 10 profile number when the high profile is 80?",
"output": "SELECT MAX(high_10_profile) FROM table_237036_2 WHERE high_profile = 80"
} |
### INSTRUCTION
how many times was the population estimate 2005 have an area (km2) more than 8,023.74?
### INPUT
CREATE TABLE table_name_26 (population_estimate_2005 VARCHAR, area__km_2__ INTEGER)
### OUTPUT
SELECT COUNT(population_estimate_2005) FROM table_name_26 WHERE area__km_2__ > 8 OFFSET 023.74 | {
"input": "CREATE TABLE table_name_26 (population_estimate_2005 VARCHAR, area__km_2__ INTEGER)",
"instruction": "how many times was the population estimate 2005 have an area (km2) more than 8,023.74?",
"output": "SELECT COUNT(population_estimate_2005) FROM table_name_26 WHERE area__km_2__ > 8 OFFSET 023.74"
} |
### INSTRUCTION
Which Event has 5th Position in the European Championships Competition?
### INPUT
CREATE TABLE table_name_49 (event VARCHAR, competition VARCHAR, position VARCHAR)
### OUTPUT
SELECT event FROM table_name_49 WHERE competition = "european championships" AND position = "5th" | {
"input": "CREATE TABLE table_name_49 (event VARCHAR, competition VARCHAR, position VARCHAR)",
"instruction": "Which Event has 5th Position in the European Championships Competition?",
"output": "SELECT event FROM table_name_49 WHERE competition = \"european championships\" AND position = \"5th\""
} |
### INSTRUCTION
What are the email addresses of teachers whose address has zip code "918"?
### INPUT
CREATE TABLE Addresses (address_id VARCHAR, zip_postcode VARCHAR); CREATE TABLE Teachers (email_address VARCHAR, address_id VARCHAR)
### OUTPUT
SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = "918" | {
"input": "CREATE TABLE Addresses (address_id VARCHAR, zip_postcode VARCHAR); CREATE TABLE Teachers (email_address VARCHAR, address_id VARCHAR)",
"instruction": "What are the email addresses of teachers whose address has zip code \"918\"?",
"output": "SELECT T2.email_address FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T1.zip_postcode = \"918\""
} |
### INSTRUCTION
How many schools are named otafuku tholi?
### INPUT
CREATE TABLE table_16799784_4 (year_named VARCHAR, name VARCHAR)
### OUTPUT
SELECT COUNT(year_named) FROM table_16799784_4 WHERE name = "Otafuku Tholi" | {
"input": "CREATE TABLE table_16799784_4 (year_named VARCHAR, name VARCHAR)",
"instruction": "How many schools are named otafuku tholi?",
"output": "SELECT COUNT(year_named) FROM table_16799784_4 WHERE name = \"Otafuku Tholi\""
} |
### INSTRUCTION
Which Nanquan has a Nandao smaller than 9.44, and a Rank smaller than 9, and a Total larger than 18.68?
### INPUT
CREATE TABLE table_name_27 (nanquan INTEGER, total VARCHAR, nandao VARCHAR, rank VARCHAR)
### OUTPUT
SELECT MIN(nanquan) FROM table_name_27 WHERE nandao < 9.44 AND rank < 9 AND total > 18.68 | {
"input": "CREATE TABLE table_name_27 (nanquan INTEGER, total VARCHAR, nandao VARCHAR, rank VARCHAR)",
"instruction": "Which Nanquan has a Nandao smaller than 9.44, and a Rank smaller than 9, and a Total larger than 18.68?",
"output": "SELECT MIN(nanquan) FROM table_name_27 WHERE nandao < 9.44 AND rank < 9 AND total > 18.68"
} |
### INSTRUCTION
What's the fed tax that has a total tax greater than 33.2, a minimum sales tax less than 41.01 and in Vancouver, BC?
### INPUT
CREATE TABLE table_name_85 (federal_excise_tax___cad INTEGER, minimum_tax_incl_sales_taxes__cad¢_l_ VARCHAR, total_excise_tax__cad¢_l_ VARCHAR, government VARCHAR)
### OUTPUT
SELECT AVG(federal_excise_tax___cad) AS ¢___l__ FROM table_name_85 WHERE total_excise_tax__cad¢_l_ > 33.2 AND government = "vancouver, bc" AND minimum_tax_incl_sales_taxes__cad¢_l_ < 41.01 | {
"input": "CREATE TABLE table_name_85 (federal_excise_tax___cad INTEGER, minimum_tax_incl_sales_taxes__cad¢_l_ VARCHAR, total_excise_tax__cad¢_l_ VARCHAR, government VARCHAR)",
"instruction": "What's the fed tax that has a total tax greater than 33.2, a minimum sales tax less than 41.01 and in Vancouver, BC?",
"output": "SELECT AVG(federal_excise_tax___cad) AS ¢___l__ FROM table_name_85 WHERE total_excise_tax__cad¢_l_ > 33.2 AND government = \"vancouver, bc\" AND minimum_tax_incl_sales_taxes__cad¢_l_ < 41.01"
} |
### INSTRUCTION
what is the attendance where the game site is kingdome?
### INPUT
CREATE TABLE table_16729076_1 (attendance INTEGER, game_site VARCHAR)
### OUTPUT
SELECT MIN(attendance) FROM table_16729076_1 WHERE game_site = "Kingdome" | {
"input": "CREATE TABLE table_16729076_1 (attendance INTEGER, game_site VARCHAR)",
"instruction": "what is the attendance where the game site is kingdome?",
"output": "SELECT MIN(attendance) FROM table_16729076_1 WHERE game_site = \"Kingdome\""
} |
### INSTRUCTION
What was marlboro brm's lowest points by using brm p160b?
### INPUT
CREATE TABLE table_name_60 (points INTEGER, entrant VARCHAR, chassis VARCHAR)
### OUTPUT
SELECT MIN(points) FROM table_name_60 WHERE entrant = "marlboro brm" AND chassis = "brm p160b" | {
"input": "CREATE TABLE table_name_60 (points INTEGER, entrant VARCHAR, chassis VARCHAR)",
"instruction": "What was marlboro brm's lowest points by using brm p160b?",
"output": "SELECT MIN(points) FROM table_name_60 WHERE entrant = \"marlboro brm\" AND chassis = \"brm p160b\""
} |
### INSTRUCTION
What are the heights of body builders with total score smaller than 315?
### INPUT
CREATE TABLE people (Height VARCHAR, People_ID VARCHAR); CREATE TABLE body_builder (People_ID VARCHAR, Total INTEGER)
### OUTPUT
SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total < 315 | {
"input": "CREATE TABLE people (Height VARCHAR, People_ID VARCHAR); CREATE TABLE body_builder (People_ID VARCHAR, Total INTEGER)",
"instruction": "What are the heights of body builders with total score smaller than 315?",
"output": "SELECT T2.Height FROM body_builder AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID WHERE T1.Total < 315"
} |
### INSTRUCTION
What's the total attendance in rink hockey when the average attendance was smaller than 4850?
### INPUT
CREATE TABLE table_name_80 (total_attendance VARCHAR, average_attendance VARCHAR, sport VARCHAR)
### OUTPUT
SELECT total_attendance FROM table_name_80 WHERE average_attendance < 4850 AND sport = "rink hockey" | {
"input": "CREATE TABLE table_name_80 (total_attendance VARCHAR, average_attendance VARCHAR, sport VARCHAR)",
"instruction": "What's the total attendance in rink hockey when the average attendance was smaller than 4850?",
"output": "SELECT total_attendance FROM table_name_80 WHERE average_attendance < 4850 AND sport = \"rink hockey\""
} |
### INSTRUCTION
Name the number for service dates for hoosier energy for petersburg
### INPUT
CREATE TABLE table_23958917_1 (in_service_dates VARCHAR, owner_s___2009_ VARCHAR, location VARCHAR)
### OUTPUT
SELECT COUNT(in_service_dates) FROM table_23958917_1 WHERE owner_s___2009_ = "Hoosier Energy" AND location = "Petersburg" | {
"input": "CREATE TABLE table_23958917_1 (in_service_dates VARCHAR, owner_s___2009_ VARCHAR, location VARCHAR)",
"instruction": "Name the number for service dates for hoosier energy for petersburg",
"output": "SELECT COUNT(in_service_dates) FROM table_23958917_1 WHERE owner_s___2009_ = \"Hoosier Energy\" AND location = \"Petersburg\""
} |
### INSTRUCTION
What is the To par of the United States, when the Total was 145, in 2004?
### INPUT
CREATE TABLE table_name_21 (to_par VARCHAR, year_s__won VARCHAR, country VARCHAR, total VARCHAR)
### OUTPUT
SELECT to_par FROM table_name_21 WHERE country = "united states" AND total = 145 AND year_s__won = "2004" | {
"input": "CREATE TABLE table_name_21 (to_par VARCHAR, year_s__won VARCHAR, country VARCHAR, total VARCHAR)",
"instruction": "What is the To par of the United States, when the Total was 145, in 2004?",
"output": "SELECT to_par FROM table_name_21 WHERE country = \"united states\" AND total = 145 AND year_s__won = \"2004\""
} |
### INSTRUCTION
Tell me the total number of picks for position of m of williams college
### INPUT
CREATE TABLE table_name_9 (pick__number VARCHAR, position VARCHAR, affiliation VARCHAR)
### OUTPUT
SELECT COUNT(pick__number) FROM table_name_9 WHERE position = "m" AND affiliation = "williams college" | {
"input": "CREATE TABLE table_name_9 (pick__number VARCHAR, position VARCHAR, affiliation VARCHAR)",
"instruction": "Tell me the total number of picks for position of m of williams college",
"output": "SELECT COUNT(pick__number) FROM table_name_9 WHERE position = \"m\" AND affiliation = \"williams college\""
} |
### INSTRUCTION
What is the date the high rebounds were by lamarcus aldridge (6)?
### INPUT
CREATE TABLE table_27734769_8 (date VARCHAR, high_rebounds VARCHAR)
### OUTPUT
SELECT date FROM table_27734769_8 WHERE high_rebounds = "LaMarcus Aldridge (6)" | {
"input": "CREATE TABLE table_27734769_8 (date VARCHAR, high_rebounds VARCHAR)",
"instruction": "What is the date the high rebounds were by lamarcus aldridge (6)?",
"output": "SELECT date FROM table_27734769_8 WHERE high_rebounds = \"LaMarcus Aldridge (6)\""
} |
### INSTRUCTION
What's the highest annual interchange for wimbledon railway station?
### INPUT
CREATE TABLE table_name_82 (annual_interchanges__millions__2011_12 INTEGER, railway_station VARCHAR)
### OUTPUT
SELECT MAX(annual_interchanges__millions__2011_12) FROM table_name_82 WHERE railway_station = "wimbledon" | {
"input": "CREATE TABLE table_name_82 (annual_interchanges__millions__2011_12 INTEGER, railway_station VARCHAR)",
"instruction": "What's the highest annual interchange for wimbledon railway station?",
"output": "SELECT MAX(annual_interchanges__millions__2011_12) FROM table_name_82 WHERE railway_station = \"wimbledon\""
} |
### INSTRUCTION
Find the id and local authority of the station with has the highest average high temperature.
### INPUT
CREATE TABLE weekly_weather (station_id VARCHAR); CREATE TABLE station (id VARCHAR, local_authority VARCHAR)
### OUTPUT
SELECT t2.id, t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id ORDER BY AVG(high_temperature) DESC LIMIT 1 | {
"input": "CREATE TABLE weekly_weather (station_id VARCHAR); CREATE TABLE station (id VARCHAR, local_authority VARCHAR)",
"instruction": "Find the id and local authority of the station with has the highest average high temperature.",
"output": "SELECT t2.id, t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id ORDER BY AVG(high_temperature) DESC LIMIT 1"
} |
### INSTRUCTION
How many episodes were written by Tom Scharpling and Daniel Dratch?
### INPUT
CREATE TABLE table_25716397_1 (no_in_season VARCHAR, written_by VARCHAR)
### OUTPUT
SELECT COUNT(no_in_season) FROM table_25716397_1 WHERE written_by = "Tom Scharpling and Daniel Dratch" | {
"input": "CREATE TABLE table_25716397_1 (no_in_season VARCHAR, written_by VARCHAR)",
"instruction": "How many episodes were written by Tom Scharpling and Daniel Dratch?",
"output": "SELECT COUNT(no_in_season) FROM table_25716397_1 WHERE written_by = \"Tom Scharpling and Daniel Dratch\""
} |
### INSTRUCTION
What was the location and attendance with a score of w 89–86 (ot)?
### INPUT
CREATE TABLE table_name_62 (location_attendance VARCHAR, score VARCHAR)
### OUTPUT
SELECT location_attendance FROM table_name_62 WHERE score = "w 89–86 (ot)" | {
"input": "CREATE TABLE table_name_62 (location_attendance VARCHAR, score VARCHAR)",
"instruction": "What was the location and attendance with a score of w 89–86 (ot)?",
"output": "SELECT location_attendance FROM table_name_62 WHERE score = \"w 89–86 (ot)\""
} |
### INSTRUCTION
Find the name of students who didn't take any course from Biology department.
### INPUT
CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR); CREATE TABLE takes (id VARCHAR, course_id VARCHAR)
### OUTPUT
SELECT name FROM student WHERE NOT id IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.dept_name = 'Biology') | {
"input": "CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR); CREATE TABLE takes (id VARCHAR, course_id VARCHAR)",
"instruction": "Find the name of students who didn't take any course from Biology department.",
"output": "SELECT name FROM student WHERE NOT id IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.dept_name = 'Biology')"
} |
### INSTRUCTION
Which position has a club of Meralomas and a player named David Biddle?
### INPUT
CREATE TABLE table_name_59 (position VARCHAR, club_province VARCHAR, player VARCHAR)
### OUTPUT
SELECT position FROM table_name_59 WHERE club_province = "meralomas" AND player = "david biddle" | {
"input": "CREATE TABLE table_name_59 (position VARCHAR, club_province VARCHAR, player VARCHAR)",
"instruction": "Which position has a club of Meralomas and a player named David Biddle?",
"output": "SELECT position FROM table_name_59 WHERE club_province = \"meralomas\" AND player = \"david biddle\""
} |
### INSTRUCTION
Which exaltation has a fall of moon?
### INPUT
CREATE TABLE table_name_21 (exaltation VARCHAR, fall VARCHAR)
### OUTPUT
SELECT exaltation FROM table_name_21 WHERE fall = "moon" | {
"input": "CREATE TABLE table_name_21 (exaltation VARCHAR, fall VARCHAR)",
"instruction": "Which exaltation has a fall of moon?",
"output": "SELECT exaltation FROM table_name_21 WHERE fall = \"moon\""
} |
### INSTRUCTION
Name the number of location attendance for 36-29 record
### INPUT
CREATE TABLE table_27902171_8 (location_attendance VARCHAR, record VARCHAR)
### OUTPUT
SELECT COUNT(location_attendance) FROM table_27902171_8 WHERE record = "36-29" | {
"input": "CREATE TABLE table_27902171_8 (location_attendance VARCHAR, record VARCHAR)",
"instruction": "Name the number of location attendance for 36-29 record",
"output": "SELECT COUNT(location_attendance) FROM table_27902171_8 WHERE record = \"36-29\""
} |
### INSTRUCTION
Tell me the name for round of e
### INPUT
CREATE TABLE table_name_29 (name VARCHAR, round VARCHAR)
### OUTPUT
SELECT name FROM table_name_29 WHERE round = "e" | {
"input": "CREATE TABLE table_name_29 (name VARCHAR, round VARCHAR)",
"instruction": "Tell me the name for round of e",
"output": "SELECT name FROM table_name_29 WHERE round = \"e\""
} |
### INSTRUCTION
What is the latest year joined with a Conference championships of 5, and an Institution of university of north carolina?
### INPUT
CREATE TABLE table_name_84 (joined INTEGER, conference_championships VARCHAR, institution VARCHAR)
### OUTPUT
SELECT MAX(joined) FROM table_name_84 WHERE conference_championships = 5 AND institution = "university of north carolina" | {
"input": "CREATE TABLE table_name_84 (joined INTEGER, conference_championships VARCHAR, institution VARCHAR)",
"instruction": "What is the latest year joined with a Conference championships of 5, and an Institution of university of north carolina?",
"output": "SELECT MAX(joined) FROM table_name_84 WHERE conference_championships = 5 AND institution = \"university of north carolina\""
} |
### INSTRUCTION
On what surface was Ivan Lendl a partner with a runner-up outcome and final score of 2–6, 6–7?
### INPUT
CREATE TABLE table_name_66 (surface VARCHAR, score_in_the_final VARCHAR, outcome VARCHAR, partner VARCHAR)
### OUTPUT
SELECT surface FROM table_name_66 WHERE outcome = "runner-up" AND partner = "ivan lendl" AND score_in_the_final = "2–6, 6–7" | {
"input": "CREATE TABLE table_name_66 (surface VARCHAR, score_in_the_final VARCHAR, outcome VARCHAR, partner VARCHAR)",
"instruction": "On what surface was Ivan Lendl a partner with a runner-up outcome and final score of 2–6, 6–7?",
"output": "SELECT surface FROM table_name_66 WHERE outcome = \"runner-up\" AND partner = \"ivan lendl\" AND score_in_the_final = \"2–6, 6–7\""
} |
### INSTRUCTION
Who is the incumbent that has been in office since before 1996 and was again re-elected?
### INPUT
CREATE TABLE table_name_90 (incumbent VARCHAR, results VARCHAR, first_elected VARCHAR)
### OUTPUT
SELECT incumbent FROM table_name_90 WHERE results = "re-elected" AND first_elected < 1996 | {
"input": "CREATE TABLE table_name_90 (incumbent VARCHAR, results VARCHAR, first_elected VARCHAR)",
"instruction": "Who is the incumbent that has been in office since before 1996 and was again re-elected?",
"output": "SELECT incumbent FROM table_name_90 WHERE results = \"re-elected\" AND first_elected < 1996"
} |
### INSTRUCTION
Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.
### INPUT
CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
### OUTPUT
SELECT T1.name, T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance | {
"input": "CREATE TABLE checking (balance INTEGER, custid VARCHAR); CREATE TABLE savings (balance INTEGER, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)",
"instruction": "Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.",
"output": "SELECT T1.name, T3.balance + T2.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid WHERE T3.balance < T2.balance"
} |
### INSTRUCTION
For the attendance of 2 january 1999 with a home team of plymouth argyle what is the tie no. ?
### INPUT
CREATE TABLE table_name_5 (tie_no VARCHAR, attendance VARCHAR, home_team VARCHAR)
### OUTPUT
SELECT tie_no FROM table_name_5 WHERE attendance = "2 january 1999" AND home_team = "plymouth argyle" | {
"input": "CREATE TABLE table_name_5 (tie_no VARCHAR, attendance VARCHAR, home_team VARCHAR)",
"instruction": "For the attendance of 2 january 1999 with a home team of plymouth argyle what is the tie no. ?",
"output": "SELECT tie_no FROM table_name_5 WHERE attendance = \"2 january 1999\" AND home_team = \"plymouth argyle\""
} |
### INSTRUCTION
Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order.
### INPUT
CREATE TABLE Apartments (apt_type_code VARCHAR)
### OUTPUT
SELECT apt_type_code, COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*) | {
"input": "CREATE TABLE Apartments (apt_type_code VARCHAR)",
"instruction": "Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order.",
"output": "SELECT apt_type_code, COUNT(*) FROM Apartments GROUP BY apt_type_code ORDER BY COUNT(*)"
} |
### INSTRUCTION
How many votes did Yvetta Kadakas & Ivo Linna, who had less than 4 draws, have?
### INPUT
CREATE TABLE table_name_93 (votes INTEGER, draw VARCHAR, artist VARCHAR)
### OUTPUT
SELECT SUM(votes) FROM table_name_93 WHERE draw < 4 AND artist = "yvetta kadakas & ivo linna" | {
"input": "CREATE TABLE table_name_93 (votes INTEGER, draw VARCHAR, artist VARCHAR)",
"instruction": "How many votes did Yvetta Kadakas & Ivo Linna, who had less than 4 draws, have?",
"output": "SELECT SUM(votes) FROM table_name_93 WHERE draw < 4 AND artist = \"yvetta kadakas & ivo linna\""
} |
### INSTRUCTION
Which TNS-Sofres 5/26/09 has an Ipsos 5/25/09 of 1%?
### INPUT
CREATE TABLE table_name_82 (tns_sofres_5_26_09 VARCHAR, ipsos_5_25_09 VARCHAR)
### OUTPUT
SELECT tns_sofres_5_26_09 FROM table_name_82 WHERE ipsos_5_25_09 = "1%" | {
"input": "CREATE TABLE table_name_82 (tns_sofres_5_26_09 VARCHAR, ipsos_5_25_09 VARCHAR)",
"instruction": "Which TNS-Sofres 5/26/09 has an Ipsos 5/25/09 of 1%?",
"output": "SELECT tns_sofres_5_26_09 FROM table_name_82 WHERE ipsos_5_25_09 = \"1%\""
} |
### INSTRUCTION
What is the Datacenter for the Memory modules: hot addition Feature that has Yes listed for Itanium?
### INPUT
CREATE TABLE table_name_85 (datacenter VARCHAR, itanium VARCHAR, features VARCHAR)
### OUTPUT
SELECT datacenter FROM table_name_85 WHERE itanium = "yes" AND features = "memory modules: hot addition" | {
"input": "CREATE TABLE table_name_85 (datacenter VARCHAR, itanium VARCHAR, features VARCHAR)",
"instruction": "What is the Datacenter for the Memory modules: hot addition Feature that has Yes listed for Itanium?",
"output": "SELECT datacenter FROM table_name_85 WHERE itanium = \"yes\" AND features = \"memory modules: hot addition\""
} |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
- Downloads last month
- 30