text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
What shows for gold when the rank is less than 3, and silver less than 1?
### INPUT
CREATE TABLE table_name_62 (gold INTEGER, rank VARCHAR, silver VARCHAR)
### OUTPUT
SELECT SUM(gold) FROM table_name_62 WHERE rank < 3 AND silver < 1 | {
"input": "CREATE TABLE table_name_62 (gold INTEGER, rank VARCHAR, silver VARCHAR)",
"instruction": "What shows for gold when the rank is less than 3, and silver less than 1?",
"output": "SELECT SUM(gold) FROM table_name_62 WHERE rank < 3 AND silver < 1"
} |
### INSTRUCTION
What was the result during the week # of top 8?
### INPUT
CREATE TABLE table_name_26 (result VARCHAR, week__number VARCHAR)
### OUTPUT
SELECT result FROM table_name_26 WHERE week__number = "top 8" | {
"input": "CREATE TABLE table_name_26 (result VARCHAR, week__number VARCHAR)",
"instruction": "What was the result during the week # of top 8?",
"output": "SELECT result FROM table_name_26 WHERE week__number = \"top 8\""
} |
### INSTRUCTION
Find the name of students who have taken the prerequisite course of the course with title International Finance.
### INPUT
CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR); CREATE TABLE prereq (prereq_id VARCHAR, course_id VARCHAR); CREATE TABLE takes (id VARCHAR, course_id VARCHAR)
### OUTPUT
SELECT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE T2.course_id IN (SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id = T4.course_id WHERE T3.title = 'International Finance') | {
"input": "CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE course (course_id VARCHAR, title VARCHAR); CREATE TABLE prereq (prereq_id VARCHAR, course_id VARCHAR); CREATE TABLE takes (id VARCHAR, course_id VARCHAR)",
"instruction": "Find the name of students who have taken the prerequisite course of the course with title International Finance.",
"output": "SELECT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id = T2.id WHERE T2.course_id IN (SELECT T4.prereq_id FROM course AS T3 JOIN prereq AS T4 ON T3.course_id = T4.course_id WHERE T3.title = 'International Finance')"
} |
### INSTRUCTION
What are the name and phone of the customer with the most ordered product quantity?
### INPUT
CREATE TABLE order_items (order_id VARCHAR, order_quantity INTEGER); CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)
### OUTPUT
SELECT T1.customer_name, T1.customer_phone FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T3.order_id = T2.order_id GROUP BY T1.customer_id ORDER BY SUM(T3.order_quantity) DESC LIMIT 1 | {
"input": "CREATE TABLE order_items (order_id VARCHAR, order_quantity INTEGER); CREATE TABLE customers (customer_name VARCHAR, customer_phone VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)",
"instruction": "What are the name and phone of the customer with the most ordered product quantity?",
"output": "SELECT T1.customer_name, T1.customer_phone FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T3.order_id = T2.order_id GROUP BY T1.customer_id ORDER BY SUM(T3.order_quantity) DESC LIMIT 1"
} |
### INSTRUCTION
What is the role code with the largest number of employees?
### INPUT
CREATE TABLE Employees (role_code VARCHAR)
### OUTPUT
SELECT role_code FROM Employees GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Employees (role_code VARCHAR)",
"instruction": "What is the role code with the largest number of employees?",
"output": "SELECT role_code FROM Employees GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Which Avg/G is the lowest one that has a Long smaller than 47, and a Name of frank murphy, and a Gain smaller than 569?
### INPUT
CREATE TABLE table_name_86 (avg_g INTEGER, gain VARCHAR, long VARCHAR, name VARCHAR)
### OUTPUT
SELECT MIN(avg_g) FROM table_name_86 WHERE long < 47 AND name = "frank murphy" AND gain < 569 | {
"input": "CREATE TABLE table_name_86 (avg_g INTEGER, gain VARCHAR, long VARCHAR, name VARCHAR)",
"instruction": "Which Avg/G is the lowest one that has a Long smaller than 47, and a Name of frank murphy, and a Gain smaller than 569?",
"output": "SELECT MIN(avg_g) FROM table_name_86 WHERE long < 47 AND name = \"frank murphy\" AND gain < 569"
} |
### INSTRUCTION
What is the highest rank with the notes of sa/b, and a time of 6:39.07?
### INPUT
CREATE TABLE table_name_56 (rank INTEGER, notes VARCHAR, time VARCHAR)
### OUTPUT
SELECT MAX(rank) FROM table_name_56 WHERE notes = "sa/b" AND time = "6:39.07" | {
"input": "CREATE TABLE table_name_56 (rank INTEGER, notes VARCHAR, time VARCHAR)",
"instruction": "What is the highest rank with the notes of sa/b, and a time of 6:39.07?",
"output": "SELECT MAX(rank) FROM table_name_56 WHERE notes = \"sa/b\" AND time = \"6:39.07\""
} |
### INSTRUCTION
What was the winner share (in $) in the year when Se Ri Pak (2) was the champion?
### INPUT
CREATE TABLE table_229059_2 (winners_share__ INTEGER, champion VARCHAR)
### OUTPUT
SELECT MIN(winners_share__) AS $_ FROM table_229059_2 WHERE champion = "Se Ri Pak (2)" | {
"input": "CREATE TABLE table_229059_2 (winners_share__ INTEGER, champion VARCHAR)",
"instruction": "What was the winner share (in $) in the year when Se Ri Pak (2) was the champion?",
"output": "SELECT MIN(winners_share__) AS $_ FROM table_229059_2 WHERE champion = \"Se Ri Pak (2)\""
} |
### INSTRUCTION
What is the maximum 1985 GDP for the region where 1990 GDP is less than 267, 2000 GDP is 333 and 2005 GDP is less than 658?
### INPUT
CREATE TABLE table_name_88 (Id VARCHAR)
### OUTPUT
SELECT MAX(1985) FROM table_name_88 WHERE 1990 < 267 AND 2000 = 333 AND 2005 < 658 | {
"input": "CREATE TABLE table_name_88 (Id VARCHAR)",
"instruction": "What is the maximum 1985 GDP for the region where 1990 GDP is less than 267, 2000 GDP is 333 and 2005 GDP is less than 658?",
"output": "SELECT MAX(1985) FROM table_name_88 WHERE 1990 < 267 AND 2000 = 333 AND 2005 < 658"
} |
### INSTRUCTION
WHAT WAS THE LOWEST CAR # WITH SON-E-WA, AND 2012 START YEAR?
### INPUT
CREATE TABLE table_name_11 (car__number INTEGER, current_car VARCHAR, year_started VARCHAR)
### OUTPUT
SELECT MIN(car__number) FROM table_name_11 WHERE current_car = "son-e-wa" AND year_started < 2012 | {
"input": "CREATE TABLE table_name_11 (car__number INTEGER, current_car VARCHAR, year_started VARCHAR)",
"instruction": "WHAT WAS THE LOWEST CAR # WITH SON-E-WA, AND 2012 START YEAR?",
"output": "SELECT MIN(car__number) FROM table_name_11 WHERE current_car = \"son-e-wa\" AND year_started < 2012"
} |
### INSTRUCTION
The final match played against Evie Dominikovic was played on what surface?
### INPUT
CREATE TABLE table_name_54 (surface VARCHAR, opponent_in_the_final VARCHAR)
### OUTPUT
SELECT surface FROM table_name_54 WHERE opponent_in_the_final = "evie dominikovic" | {
"input": "CREATE TABLE table_name_54 (surface VARCHAR, opponent_in_the_final VARCHAR)",
"instruction": "The final match played against Evie Dominikovic was played on what surface?",
"output": "SELECT surface FROM table_name_54 WHERE opponent_in_the_final = \"evie dominikovic\""
} |
### INSTRUCTION
How many people wrote episode 9 in the season that was directed by Ernest Dickerson?
### INPUT
CREATE TABLE table_29219286_1 (written_by VARCHAR, directed_by VARCHAR, no_in_season VARCHAR)
### OUTPUT
SELECT COUNT(written_by) FROM table_29219286_1 WHERE directed_by = "Ernest Dickerson" AND no_in_season = 9 | {
"input": "CREATE TABLE table_29219286_1 (written_by VARCHAR, directed_by VARCHAR, no_in_season VARCHAR)",
"instruction": "How many people wrote episode 9 in the season that was directed by Ernest Dickerson?",
"output": "SELECT COUNT(written_by) FROM table_29219286_1 WHERE directed_by = \"Ernest Dickerson\" AND no_in_season = 9"
} |
### INSTRUCTION
Name the least cuts for top-5 more than 2 with top 25 less than 6 and top 10 less than 11
### INPUT
CREATE TABLE table_name_90 (cuts_made INTEGER, top_25 VARCHAR, top_10 VARCHAR, top_5 VARCHAR)
### OUTPUT
SELECT MIN(cuts_made) FROM table_name_90 WHERE top_10 < 11 AND top_5 > 2 AND top_25 < 6 | {
"input": "CREATE TABLE table_name_90 (cuts_made INTEGER, top_25 VARCHAR, top_10 VARCHAR, top_5 VARCHAR)",
"instruction": "Name the least cuts for top-5 more than 2 with top 25 less than 6 and top 10 less than 11",
"output": "SELECT MIN(cuts_made) FROM table_name_90 WHERE top_10 < 11 AND top_5 > 2 AND top_25 < 6"
} |
### INSTRUCTION
What is the event year radek štěpánek was the round and there were less than 3 aces?
### INPUT
CREATE TABLE table_name_92 (event VARCHAR, round VARCHAR, aces VARCHAR)
### OUTPUT
SELECT COUNT(event) FROM table_name_92 WHERE round = "radek štěpánek" AND NOT aces < 3 | {
"input": "CREATE TABLE table_name_92 (event VARCHAR, round VARCHAR, aces VARCHAR)",
"instruction": "What is the event year radek štěpánek was the round and there were less than 3 aces?",
"output": "SELECT COUNT(event) FROM table_name_92 WHERE round = \"radek štěpánek\" AND NOT aces < 3"
} |
### INSTRUCTION
What is the highest Rank with a density less than 376.37, the province was valverde, and an Area larger than 823?
### INPUT
CREATE TABLE table_name_68 (rank INTEGER, area VARCHAR, density VARCHAR, province VARCHAR)
### OUTPUT
SELECT MAX(rank) FROM table_name_68 WHERE density < 376.37 AND province = "valverde" AND area > 823 | {
"input": "CREATE TABLE table_name_68 (rank INTEGER, area VARCHAR, density VARCHAR, province VARCHAR)",
"instruction": "What is the highest Rank with a density less than 376.37, the province was valverde, and an Area larger than 823?",
"output": "SELECT MAX(rank) FROM table_name_68 WHERE density < 376.37 AND province = \"valverde\" AND area > 823"
} |
### INSTRUCTION
What is Week 14 Nov 24, that has Week 11 Nov 3 of USC (6-2)?
### INPUT
CREATE TABLE table_name_44 (week_14_nov_24 VARCHAR, week_11_nov_3 VARCHAR)
### OUTPUT
SELECT week_14_nov_24 FROM table_name_44 WHERE week_11_nov_3 = "usc (6-2)" | {
"input": "CREATE TABLE table_name_44 (week_14_nov_24 VARCHAR, week_11_nov_3 VARCHAR)",
"instruction": "What is Week 14 Nov 24, that has Week 11 Nov 3 of USC (6-2)?",
"output": "SELECT week_14_nov_24 FROM table_name_44 WHERE week_11_nov_3 = \"usc (6-2)\""
} |
### INSTRUCTION
If the residence is Chagrin falls, who is the representative?
### INPUT
CREATE TABLE table_26131768_4 (representative VARCHAR, residence VARCHAR)
### OUTPUT
SELECT representative FROM table_26131768_4 WHERE residence = "Chagrin Falls" | {
"input": "CREATE TABLE table_26131768_4 (representative VARCHAR, residence VARCHAR)",
"instruction": "If the residence is Chagrin falls, who is the representative?",
"output": "SELECT representative FROM table_26131768_4 WHERE residence = \"Chagrin Falls\""
} |
### INSTRUCTION
Which visitor visited on February 21?
### INPUT
CREATE TABLE table_name_14 (visitor VARCHAR, date VARCHAR)
### OUTPUT
SELECT visitor FROM table_name_14 WHERE date = "february 21" | {
"input": "CREATE TABLE table_name_14 (visitor VARCHAR, date VARCHAR)",
"instruction": "Which visitor visited on February 21?",
"output": "SELECT visitor FROM table_name_14 WHERE date = \"february 21\""
} |
### INSTRUCTION
How many fast laps are in 6 races with 30 points in the World Series by Nissan?
### INPUT
CREATE TABLE table_name_28 (fast_laps VARCHAR, points VARCHAR, series VARCHAR, races VARCHAR)
### OUTPUT
SELECT fast_laps FROM table_name_28 WHERE series = "world series by nissan" AND races = "6" AND points = "30" | {
"input": "CREATE TABLE table_name_28 (fast_laps VARCHAR, points VARCHAR, series VARCHAR, races VARCHAR)",
"instruction": "How many fast laps are in 6 races with 30 points in the World Series by Nissan?",
"output": "SELECT fast_laps FROM table_name_28 WHERE series = \"world series by nissan\" AND races = \"6\" AND points = \"30\""
} |
### INSTRUCTION
What Colors has a School of zeigler high school?
### INPUT
CREATE TABLE table_name_17 (colors VARCHAR, school VARCHAR)
### OUTPUT
SELECT colors FROM table_name_17 WHERE school = "zeigler high school" | {
"input": "CREATE TABLE table_name_17 (colors VARCHAR, school VARCHAR)",
"instruction": "What Colors has a School of zeigler high school?",
"output": "SELECT colors FROM table_name_17 WHERE school = \"zeigler high school\""
} |
### INSTRUCTION
What is Result, when Venue is Sydney Cricket Ground, and when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?
### INPUT
CREATE TABLE table_name_31 (result VARCHAR, venue VARCHAR, date VARCHAR)
### OUTPUT
SELECT result FROM table_name_31 WHERE venue = "sydney cricket ground" AND date = "23,24,26,27,28,29 feb, 1 mar 1912" | {
"input": "CREATE TABLE table_name_31 (result VARCHAR, venue VARCHAR, date VARCHAR)",
"instruction": "What is Result, when Venue is Sydney Cricket Ground, and when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?",
"output": "SELECT result FROM table_name_31 WHERE venue = \"sydney cricket ground\" AND date = \"23,24,26,27,28,29 feb, 1 mar 1912\""
} |
### INSTRUCTION
Who won when V. A. Muthiah was the runner-up?
### INPUT
CREATE TABLE table_22756549_1 (winner VARCHAR, runner_up_a VARCHAR)
### OUTPUT
SELECT winner FROM table_22756549_1 WHERE runner_up_a = "V. A. Muthiah" | {
"input": "CREATE TABLE table_22756549_1 (winner VARCHAR, runner_up_a VARCHAR)",
"instruction": "Who won when V. A. Muthiah was the runner-up?",
"output": "SELECT winner FROM table_22756549_1 WHERE runner_up_a = \"V. A. Muthiah\""
} |
### INSTRUCTION
What is Highest Attendance, when Rank is 90, and when Venue Name is Infineon Raceway?
### INPUT
CREATE TABLE table_name_69 (highest_attendance VARCHAR, rank VARCHAR, venue_name VARCHAR)
### OUTPUT
SELECT highest_attendance FROM table_name_69 WHERE rank = 90 AND venue_name = "infineon raceway" | {
"input": "CREATE TABLE table_name_69 (highest_attendance VARCHAR, rank VARCHAR, venue_name VARCHAR)",
"instruction": "What is Highest Attendance, when Rank is 90, and when Venue Name is Infineon Raceway?",
"output": "SELECT highest_attendance FROM table_name_69 WHERE rank = 90 AND venue_name = \"infineon raceway\""
} |
### INSTRUCTION
What is the Percentage Lost for the contestant with a starting weight above 102 kg who lost 46.9 kg?
### INPUT
CREATE TABLE table_name_93 (percentage_lost VARCHAR, starting_weight__kg_ VARCHAR, weight_lost__kg_ VARCHAR)
### OUTPUT
SELECT percentage_lost FROM table_name_93 WHERE starting_weight__kg_ > 102 AND weight_lost__kg_ = 46.9 | {
"input": "CREATE TABLE table_name_93 (percentage_lost VARCHAR, starting_weight__kg_ VARCHAR, weight_lost__kg_ VARCHAR)",
"instruction": "What is the Percentage Lost for the contestant with a starting weight above 102 kg who lost 46.9 kg?",
"output": "SELECT percentage_lost FROM table_name_93 WHERE starting_weight__kg_ > 102 AND weight_lost__kg_ = 46.9"
} |
### INSTRUCTION
What's the name of the county where 54.6% voted for Bush?
### INPUT
CREATE TABLE table_1304443_2 (county VARCHAR, bush_percentage VARCHAR)
### OUTPUT
SELECT county FROM table_1304443_2 WHERE bush_percentage = "54.6%" | {
"input": "CREATE TABLE table_1304443_2 (county VARCHAR, bush_percentage VARCHAR)",
"instruction": "What's the name of the county where 54.6% voted for Bush?",
"output": "SELECT county FROM table_1304443_2 WHERE bush_percentage = \"54.6%\""
} |
### INSTRUCTION
What is the total number of interview scores that have an evening gown score of 9.543 and an average that is bigger than 9.521?
### INPUT
CREATE TABLE table_name_59 (interview INTEGER, evening_gown VARCHAR, average VARCHAR)
### OUTPUT
SELECT SUM(interview) FROM table_name_59 WHERE evening_gown = 9.543 AND average > 9.521 | {
"input": "CREATE TABLE table_name_59 (interview INTEGER, evening_gown VARCHAR, average VARCHAR)",
"instruction": "What is the total number of interview scores that have an evening gown score of 9.543 and an average that is bigger than 9.521?",
"output": "SELECT SUM(interview) FROM table_name_59 WHERE evening_gown = 9.543 AND average > 9.521"
} |
### INSTRUCTION
In the 2012 (85th) Ceremony, what was the Original title of the film not nominated?
### INPUT
CREATE TABLE table_name_66 (original_title VARCHAR, result VARCHAR, year__ceremony_ VARCHAR)
### OUTPUT
SELECT original_title FROM table_name_66 WHERE result = "not nominated" AND year__ceremony_ = "2012 (85th)" | {
"input": "CREATE TABLE table_name_66 (original_title VARCHAR, result VARCHAR, year__ceremony_ VARCHAR)",
"instruction": "In the 2012 (85th) Ceremony, what was the Original title of the film not nominated?",
"output": "SELECT original_title FROM table_name_66 WHERE result = \"not nominated\" AND year__ceremony_ = \"2012 (85th)\""
} |
### INSTRUCTION
How many viewers in millions did the Alison McDonald episode get?
### INPUT
CREATE TABLE table_26961951_4 (us_viewers__million_ VARCHAR, written_by VARCHAR)
### OUTPUT
SELECT us_viewers__million_ FROM table_26961951_4 WHERE written_by = "Alison McDonald" | {
"input": "CREATE TABLE table_26961951_4 (us_viewers__million_ VARCHAR, written_by VARCHAR)",
"instruction": "How many viewers in millions did the Alison McDonald episode get?",
"output": "SELECT us_viewers__million_ FROM table_26961951_4 WHERE written_by = \"Alison McDonald\""
} |
### INSTRUCTION
How much is the total assets of a company based in Stockholm, Sweden with a market capitalization smaller than 39.8 with revenues greater than 5.8 and profit of 1.1?
### INPUT
CREATE TABLE table_name_14 (s_asset__billion_ VARCHAR, profits__billion_$_ VARCHAR, revenue__billion_$__ VARCHAR, headquarters VARCHAR, market_value__billion_$_ VARCHAR)
### OUTPUT
SELECT COUNT(s_asset__billion_) AS $_ FROM table_name_14 WHERE headquarters = "stockholm, sweden" AND market_value__billion_$_ < 39.8 AND revenue__billion_$__ > 5.8 AND profits__billion_$_ = 1.1 | {
"input": "CREATE TABLE table_name_14 (s_asset__billion_ VARCHAR, profits__billion_$_ VARCHAR, revenue__billion_$__ VARCHAR, headquarters VARCHAR, market_value__billion_$_ VARCHAR)",
"instruction": "How much is the total assets of a company based in Stockholm, Sweden with a market capitalization smaller than 39.8 with revenues greater than 5.8 and profit of 1.1?",
"output": "SELECT COUNT(s_asset__billion_) AS $_ FROM table_name_14 WHERE headquarters = \"stockholm, sweden\" AND market_value__billion_$_ < 39.8 AND revenue__billion_$__ > 5.8 AND profits__billion_$_ = 1.1"
} |
### INSTRUCTION
How many totals have 0 as Gold, a bronze greater than 1, and a silver less than 1?
### INPUT
CREATE TABLE table_name_94 (total VARCHAR, silver VARCHAR, gold VARCHAR, bronze VARCHAR)
### OUTPUT
SELECT COUNT(total) FROM table_name_94 WHERE gold = 0 AND bronze > 1 AND silver < 1 | {
"input": "CREATE TABLE table_name_94 (total VARCHAR, silver VARCHAR, gold VARCHAR, bronze VARCHAR)",
"instruction": "How many totals have 0 as Gold, a bronze greater than 1, and a silver less than 1?",
"output": "SELECT COUNT(total) FROM table_name_94 WHERE gold = 0 AND bronze > 1 AND silver < 1"
} |
### INSTRUCTION
What was date of appointment for Ergün Penbe?
### INPUT
CREATE TABLE table_27091128_2 (date_of_appointment VARCHAR, replaced_by VARCHAR)
### OUTPUT
SELECT date_of_appointment FROM table_27091128_2 WHERE replaced_by = "Ergün Penbe" | {
"input": "CREATE TABLE table_27091128_2 (date_of_appointment VARCHAR, replaced_by VARCHAR)",
"instruction": "What was date of appointment for Ergün Penbe? ",
"output": "SELECT date_of_appointment FROM table_27091128_2 WHERE replaced_by = \"Ergün Penbe\""
} |
### INSTRUCTION
What was the lowest city population for the district of rajanpur district with a area of 6 km squared and a serial number less than 29?
### INPUT
CREATE TABLE table_name_15 (city_population__2009_ INTEGER, serial_no VARCHAR, city_area_km_2__ VARCHAR, district VARCHAR)
### OUTPUT
SELECT MIN(city_population__2009_) FROM table_name_15 WHERE city_area_km_2__ = 6 AND district = "rajanpur district" AND serial_no < 29 | {
"input": "CREATE TABLE table_name_15 (city_population__2009_ INTEGER, serial_no VARCHAR, city_area_km_2__ VARCHAR, district VARCHAR)",
"instruction": "What was the lowest city population for the district of rajanpur district with a area of 6 km squared and a serial number less than 29?",
"output": "SELECT MIN(city_population__2009_) FROM table_name_15 WHERE city_area_km_2__ = 6 AND district = \"rajanpur district\" AND serial_no < 29"
} |
### INSTRUCTION
What is the score of the match on November 15, 2011?
### INPUT
CREATE TABLE table_name_44 (score VARCHAR, date VARCHAR)
### OUTPUT
SELECT score FROM table_name_44 WHERE date = "november 15, 2011" | {
"input": "CREATE TABLE table_name_44 (score VARCHAR, date VARCHAR)",
"instruction": "What is the score of the match on November 15, 2011?",
"output": "SELECT score FROM table_name_44 WHERE date = \"november 15, 2011\""
} |
### INSTRUCTION
If the episode was written by Tim Balme, what was the original air date?
### INPUT
CREATE TABLE table_23114705_3 (original_air_date VARCHAR, written_by VARCHAR)
### OUTPUT
SELECT original_air_date FROM table_23114705_3 WHERE written_by = "Tim Balme" | {
"input": "CREATE TABLE table_23114705_3 (original_air_date VARCHAR, written_by VARCHAR)",
"instruction": "If the episode was written by Tim Balme, what was the original air date?",
"output": "SELECT original_air_date FROM table_23114705_3 WHERE written_by = \"Tim Balme\""
} |
### INSTRUCTION
How many people vacated to successor Dave E. Satterfield, Jr. (d)?
### INPUT
CREATE TABLE table_2159547_3 (vacator VARCHAR, successor VARCHAR)
### OUTPUT
SELECT COUNT(vacator) FROM table_2159547_3 WHERE successor = "Dave E. Satterfield, Jr. (D)" | {
"input": "CREATE TABLE table_2159547_3 (vacator VARCHAR, successor VARCHAR)",
"instruction": "How many people vacated to successor Dave E. Satterfield, Jr. (d)?",
"output": "SELECT COUNT(vacator) FROM table_2159547_3 WHERE successor = \"Dave E. Satterfield, Jr. (D)\""
} |
### INSTRUCTION
How many Touchdowns have a rec of 10, and an Opponent of oregon state, and an Average smaller than 19.7?
### INPUT
CREATE TABLE table_name_57 (s_touchdown VARCHAR, average VARCHAR, rec VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT COUNT(s_touchdown) FROM table_name_57 WHERE rec = 10 AND opponent = "oregon state" AND average < 19.7 | {
"input": "CREATE TABLE table_name_57 (s_touchdown VARCHAR, average VARCHAR, rec VARCHAR, opponent VARCHAR)",
"instruction": "How many Touchdowns have a rec of 10, and an Opponent of oregon state, and an Average smaller than 19.7?",
"output": "SELECT COUNT(s_touchdown) FROM table_name_57 WHERE rec = 10 AND opponent = \"oregon state\" AND average < 19.7"
} |
### INSTRUCTION
Find the names of the artists who are from Bangladesh and have never received rating higher than 7.
### INPUT
CREATE TABLE artist (artist_name VARCHAR, country VARCHAR, rating INTEGER); CREATE TABLE song (artist_name VARCHAR, country VARCHAR, rating INTEGER)
### OUTPUT
SELECT DISTINCT artist_name FROM artist WHERE country = "Bangladesh" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 7 | {
"input": "CREATE TABLE artist (artist_name VARCHAR, country VARCHAR, rating INTEGER); CREATE TABLE song (artist_name VARCHAR, country VARCHAR, rating INTEGER)",
"instruction": "Find the names of the artists who are from Bangladesh and have never received rating higher than 7.",
"output": "SELECT DISTINCT artist_name FROM artist WHERE country = \"Bangladesh\" EXCEPT SELECT DISTINCT artist_name FROM song WHERE rating > 7"
} |
### INSTRUCTION
What place in the United States has a To par of e?
### INPUT
CREATE TABLE table_name_39 (place VARCHAR, country VARCHAR, to_par VARCHAR)
### OUTPUT
SELECT place FROM table_name_39 WHERE country = "united states" AND to_par = "e" | {
"input": "CREATE TABLE table_name_39 (place VARCHAR, country VARCHAR, to_par VARCHAR)",
"instruction": "What place in the United States has a To par of e?",
"output": "SELECT place FROM table_name_39 WHERE country = \"united states\" AND to_par = \"e\""
} |
### INSTRUCTION
What are the names of tourist attractions that can be reached by bus or is at address 254 Ottilie Junction?
### INPUT
CREATE TABLE Tourist_Attractions (Name VARCHAR, Location_ID VARCHAR, How_to_Get_There VARCHAR); CREATE TABLE Locations (Location_ID VARCHAR, Address VARCHAR)
### OUTPUT
SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = "254 Ottilie Junction" OR T2.How_to_Get_There = "bus" | {
"input": "CREATE TABLE Tourist_Attractions (Name VARCHAR, Location_ID VARCHAR, How_to_Get_There VARCHAR); CREATE TABLE Locations (Location_ID VARCHAR, Address VARCHAR)",
"instruction": "What are the names of tourist attractions that can be reached by bus or is at address 254 Ottilie Junction?",
"output": "SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = \"254 Ottilie Junction\" OR T2.How_to_Get_There = \"bus\""
} |
### INSTRUCTION
Name how other lyers say enga ullale
### INPUT
CREATE TABLE table_name_22 (how_other_iyers_say_it VARCHAR, how_ashtagrama_iyers_say_it VARCHAR)
### OUTPUT
SELECT how_other_iyers_say_it FROM table_name_22 WHERE how_ashtagrama_iyers_say_it = "enga ullale" | {
"input": "CREATE TABLE table_name_22 (how_other_iyers_say_it VARCHAR, how_ashtagrama_iyers_say_it VARCHAR)",
"instruction": "Name how other lyers say enga ullale",
"output": "SELECT how_other_iyers_say_it FROM table_name_22 WHERE how_ashtagrama_iyers_say_it = \"enga ullale\""
} |
### INSTRUCTION
what is the display size for the calculator ti-82?
### INPUT
CREATE TABLE table_11703336_1 (display_size VARCHAR, calculator VARCHAR)
### OUTPUT
SELECT display_size FROM table_11703336_1 WHERE calculator = "TI-82" | {
"input": "CREATE TABLE table_11703336_1 (display_size VARCHAR, calculator VARCHAR)",
"instruction": "what is the display size for the calculator ti-82?",
"output": "SELECT display_size FROM table_11703336_1 WHERE calculator = \"TI-82\""
} |
### INSTRUCTION
What is the average attendance for the New York Jets?
### INPUT
CREATE TABLE table_name_98 (attendance INTEGER, opponent VARCHAR)
### OUTPUT
SELECT AVG(attendance) FROM table_name_98 WHERE opponent = "new york jets" | {
"input": "CREATE TABLE table_name_98 (attendance INTEGER, opponent VARCHAR)",
"instruction": "What is the average attendance for the New York Jets?",
"output": "SELECT AVG(attendance) FROM table_name_98 WHERE opponent = \"new york jets\""
} |
### INSTRUCTION
For teams that played 5 games, what was the smallest number of wins?
### INPUT
CREATE TABLE table_14288212_1 (win INTEGER, played VARCHAR)
### OUTPUT
SELECT MIN(win) FROM table_14288212_1 WHERE played = 5 | {
"input": "CREATE TABLE table_14288212_1 (win INTEGER, played VARCHAR)",
"instruction": "For teams that played 5 games, what was the smallest number of wins?",
"output": "SELECT MIN(win) FROM table_14288212_1 WHERE played = 5"
} |
### INSTRUCTION
What grand prix was held at Granollers?
### INPUT
CREATE TABLE table_name_32 (designated_grand_prix VARCHAR, track VARCHAR)
### OUTPUT
SELECT designated_grand_prix FROM table_name_32 WHERE track = "granollers" | {
"input": "CREATE TABLE table_name_32 (designated_grand_prix VARCHAR, track VARCHAR)",
"instruction": "What grand prix was held at Granollers?",
"output": "SELECT designated_grand_prix FROM table_name_32 WHERE track = \"granollers\""
} |
### INSTRUCTION
What is the batting team with the batting partnets of thilina kandamby and rangana herath?
### INPUT
CREATE TABLE table_11303072_5 (batting_team VARCHAR, batting_partners VARCHAR)
### OUTPUT
SELECT batting_team FROM table_11303072_5 WHERE batting_partners = "Thilina Kandamby and Rangana Herath" | {
"input": "CREATE TABLE table_11303072_5 (batting_team VARCHAR, batting_partners VARCHAR)",
"instruction": "What is the batting team with the batting partnets of thilina kandamby and rangana herath?",
"output": "SELECT batting_team FROM table_11303072_5 WHERE batting_partners = \"Thilina Kandamby and Rangana Herath\""
} |
### INSTRUCTION
Name the points classification for predictor-lotto and stage 1
### INPUT
CREATE TABLE table_name_65 (points_classification VARCHAR, team_classification VARCHAR, stage VARCHAR)
### OUTPUT
SELECT points_classification FROM table_name_65 WHERE team_classification = "predictor-lotto" AND stage = "1" | {
"input": "CREATE TABLE table_name_65 (points_classification VARCHAR, team_classification VARCHAR, stage VARCHAR)",
"instruction": "Name the points classification for predictor-lotto and stage 1",
"output": "SELECT points_classification FROM table_name_65 WHERE team_classification = \"predictor-lotto\" AND stage = \"1\""
} |
### INSTRUCTION
What is the s default argument without a pseudorandom number generation and no eval function?
### INPUT
CREATE TABLE table_name_37 (s_default_argument VARCHAR, pseudorandom_number_generation VARCHAR, eval_function VARCHAR)
### OUTPUT
SELECT s_default_argument FROM table_name_37 WHERE pseudorandom_number_generation = "no" AND eval_function = "no" | {
"input": "CREATE TABLE table_name_37 (s_default_argument VARCHAR, pseudorandom_number_generation VARCHAR, eval_function VARCHAR)",
"instruction": "What is the s default argument without a pseudorandom number generation and no eval function?",
"output": "SELECT s_default_argument FROM table_name_37 WHERE pseudorandom_number_generation = \"no\" AND eval_function = \"no\""
} |
### INSTRUCTION
What was the away teams score at Princes Park?
### INPUT
CREATE TABLE table_name_37 (away_team VARCHAR, venue VARCHAR)
### OUTPUT
SELECT away_team AS score FROM table_name_37 WHERE venue = "princes park" | {
"input": "CREATE TABLE table_name_37 (away_team VARCHAR, venue VARCHAR)",
"instruction": "What was the away teams score at Princes Park?",
"output": "SELECT away_team AS score FROM table_name_37 WHERE venue = \"princes park\""
} |
### INSTRUCTION
What is the total number of games at Toronto with less than 31 points?
### INPUT
CREATE TABLE table_name_87 (game VARCHAR, location VARCHAR, points VARCHAR)
### OUTPUT
SELECT COUNT(game) FROM table_name_87 WHERE location = "toronto" AND points < 31 | {
"input": "CREATE TABLE table_name_87 (game VARCHAR, location VARCHAR, points VARCHAR)",
"instruction": "What is the total number of games at Toronto with less than 31 points?",
"output": "SELECT COUNT(game) FROM table_name_87 WHERE location = \"toronto\" AND points < 31"
} |
### INSTRUCTION
What's the average of shows that had a timeslot rank greater that 3 but still had a smaller viewership less than 4.87?
### INPUT
CREATE TABLE table_name_29 (share INTEGER, viewers__m_ VARCHAR, timeslot VARCHAR)
### OUTPUT
SELECT AVG(share) FROM table_name_29 WHERE RANK(timeslot) > 3 AND viewers__m_ < 4.87 | {
"input": "CREATE TABLE table_name_29 (share INTEGER, viewers__m_ VARCHAR, timeslot VARCHAR)",
"instruction": "What's the average of shows that had a timeslot rank greater that 3 but still had a smaller viewership less than 4.87?",
"output": "SELECT AVG(share) FROM table_name_29 WHERE RANK(timeslot) > 3 AND viewers__m_ < 4.87"
} |
### INSTRUCTION
How many votes for the candidate after 1992, 1.59% of the vote, and the office of us representative 4?
### INPUT
CREATE TABLE table_name_2 (popular_votes INTEGER, year VARCHAR, office VARCHAR, percentage VARCHAR)
### OUTPUT
SELECT AVG(popular_votes) FROM table_name_2 WHERE office = "us representative 4" AND percentage = "1.59%" AND year > 1992 | {
"input": "CREATE TABLE table_name_2 (popular_votes INTEGER, year VARCHAR, office VARCHAR, percentage VARCHAR)",
"instruction": "How many votes for the candidate after 1992, 1.59% of the vote, and the office of us representative 4?",
"output": "SELECT AVG(popular_votes) FROM table_name_2 WHERE office = \"us representative 4\" AND percentage = \"1.59%\" AND year > 1992"
} |
### INSTRUCTION
How many teams eliminated béziers from competition?
### INPUT
CREATE TABLE table_28068063_3 (match_points VARCHAR, eliminated_from_competition VARCHAR)
### OUTPUT
SELECT COUNT(match_points) FROM table_28068063_3 WHERE eliminated_from_competition = "Béziers" | {
"input": "CREATE TABLE table_28068063_3 (match_points VARCHAR, eliminated_from_competition VARCHAR)",
"instruction": "How many teams eliminated béziers from competition?",
"output": "SELECT COUNT(match_points) FROM table_28068063_3 WHERE eliminated_from_competition = \"Béziers\""
} |
### INSTRUCTION
What is the mascot for the school founded in 1923 with the school colors of blue, red & white?
### INPUT
CREATE TABLE table_12434380_1 (mascot VARCHAR, founded VARCHAR, school_colors VARCHAR)
### OUTPUT
SELECT mascot FROM table_12434380_1 WHERE founded = 1923 AND school_colors = "Blue, Red & White" | {
"input": "CREATE TABLE table_12434380_1 (mascot VARCHAR, founded VARCHAR, school_colors VARCHAR)",
"instruction": "What is the mascot for the school founded in 1923 with the school colors of blue, red & white?",
"output": "SELECT mascot FROM table_12434380_1 WHERE founded = 1923 AND school_colors = \"Blue, Red & White\""
} |
### INSTRUCTION
Can you tell me the Name that has the DCSF number of 2117?
### INPUT
CREATE TABLE table_name_11 (name VARCHAR, dcsf_number VARCHAR)
### OUTPUT
SELECT name FROM table_name_11 WHERE dcsf_number = 2117 | {
"input": "CREATE TABLE table_name_11 (name VARCHAR, dcsf_number VARCHAR)",
"instruction": "Can you tell me the Name that has the DCSF number of 2117?",
"output": "SELECT name FROM table_name_11 WHERE dcsf_number = 2117"
} |
### INSTRUCTION
what is the latitude of the feature of longitude 80.0e
### INPUT
CREATE TABLE table_16799784_7 (latitude VARCHAR, longitude VARCHAR)
### OUTPUT
SELECT latitude FROM table_16799784_7 WHERE longitude = "80.0E" | {
"input": "CREATE TABLE table_16799784_7 (latitude VARCHAR, longitude VARCHAR)",
"instruction": "what is the latitude of the feature of longitude 80.0e",
"output": "SELECT latitude FROM table_16799784_7 WHERE longitude = \"80.0E\""
} |
### INSTRUCTION
Find the products which have problems reported by both Lacey Bosco and Kenton Champlin?
### INPUT
CREATE TABLE product (product_name VARCHAR, product_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (product_id VARCHAR, reported_by_staff_id VARCHAR)
### OUTPUT
SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = "Lacey" AND T3.staff_last_name = "Bosco" INTERSECT SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = "Kenton" AND T3.staff_last_name = "Champlin" | {
"input": "CREATE TABLE product (product_name VARCHAR, product_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (product_id VARCHAR, reported_by_staff_id VARCHAR)",
"instruction": "Find the products which have problems reported by both Lacey Bosco and Kenton Champlin?",
"output": "SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = \"Lacey\" AND T3.staff_last_name = \"Bosco\" INTERSECT SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = \"Kenton\" AND T3.staff_last_name = \"Champlin\""
} |
### INSTRUCTION
What is the name of the ship sunk on 5 May 1943 from the United Kingdom sunk by an u-266 with 0 casualties?
### INPUT
CREATE TABLE table_name_23 (name VARCHAR, casualties VARCHAR, sunk_by… VARCHAR, date VARCHAR, nationality VARCHAR)
### OUTPUT
SELECT name FROM table_name_23 WHERE date = "5 may 1943" AND nationality = "united kingdom" AND sunk_by… = "u-266" AND casualties = "0" | {
"input": "CREATE TABLE table_name_23 (name VARCHAR, casualties VARCHAR, sunk_by… VARCHAR, date VARCHAR, nationality VARCHAR)",
"instruction": "What is the name of the ship sunk on 5 May 1943 from the United Kingdom sunk by an u-266 with 0 casualties?",
"output": "SELECT name FROM table_name_23 WHERE date = \"5 may 1943\" AND nationality = \"united kingdom\" AND sunk_by… = \"u-266\" AND casualties = \"0\""
} |
### INSTRUCTION
What mountains classification corresponds to Mark Cavendish and the Garmin-Chipotle-H30?
### INPUT
CREATE TABLE table_name_80 (mountains_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR)
### OUTPUT
SELECT mountains_classification FROM table_name_80 WHERE general_classification = "mark cavendish" AND team_classification = "garmin-chipotle-h30" | {
"input": "CREATE TABLE table_name_80 (mountains_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR)",
"instruction": "What mountains classification corresponds to Mark Cavendish and the Garmin-Chipotle-H30?",
"output": "SELECT mountains_classification FROM table_name_80 WHERE general_classification = \"mark cavendish\" AND team_classification = \"garmin-chipotle-h30\""
} |
### INSTRUCTION
Find the last name of the staff member who processed the complaint of the cheapest product.
### INPUT
CREATE TABLE products (product_id VARCHAR, product_price VARCHAR); CREATE TABLE complaints (staff_id VARCHAR, product_id VARCHAR); CREATE TABLE staff (last_name VARCHAR, staff_id VARCHAR)
### OUTPUT
SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id JOIN products AS t3 ON t2.product_id = t3.product_id ORDER BY t3.product_price LIMIT 1 | {
"input": "CREATE TABLE products (product_id VARCHAR, product_price VARCHAR); CREATE TABLE complaints (staff_id VARCHAR, product_id VARCHAR); CREATE TABLE staff (last_name VARCHAR, staff_id VARCHAR)",
"instruction": "Find the last name of the staff member who processed the complaint of the cheapest product.",
"output": "SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id = t2.staff_id JOIN products AS t3 ON t2.product_id = t3.product_id ORDER BY t3.product_price LIMIT 1"
} |
### INSTRUCTION
Who is the second where the third of Kelly Wood (e) Anna Sloan (Jr)?
### INPUT
CREATE TABLE table_name_80 (second VARCHAR, third VARCHAR)
### OUTPUT
SELECT second FROM table_name_80 WHERE third = "kelly wood (e) anna sloan (jr)" | {
"input": "CREATE TABLE table_name_80 (second VARCHAR, third VARCHAR)",
"instruction": "Who is the second where the third of Kelly Wood (e) Anna Sloan (Jr)?",
"output": "SELECT second FROM table_name_80 WHERE third = \"kelly wood (e) anna sloan (jr)\""
} |
### INSTRUCTION
What is the status of donor payment in the country where there are 6 children per donor and no data on allowed recipients?
### INPUT
CREATE TABLE table_16175217_1 (donor_payment VARCHAR, children_per_donor VARCHAR, allowed_recipients VARCHAR)
### OUTPUT
SELECT donor_payment FROM table_16175217_1 WHERE children_per_donor = "6 children" AND allowed_recipients = "no data" | {
"input": "CREATE TABLE table_16175217_1 (donor_payment VARCHAR, children_per_donor VARCHAR, allowed_recipients VARCHAR)",
"instruction": "What is the status of donor payment in the country where there are 6 children per donor and no data on allowed recipients?",
"output": "SELECT donor_payment FROM table_16175217_1 WHERE children_per_donor = \"6 children\" AND allowed_recipients = \"no data\""
} |
### INSTRUCTION
What are the duration of the longest and shortest pop tracks in milliseconds?
### INPUT
CREATE TABLE TRACK (GenreId VARCHAR); CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR)
### OUTPUT
SELECT MAX(Milliseconds), MIN(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = "Pop" | {
"input": "CREATE TABLE TRACK (GenreId VARCHAR); CREATE TABLE GENRE (GenreId VARCHAR, Name VARCHAR)",
"instruction": "What are the duration of the longest and shortest pop tracks in milliseconds?",
"output": "SELECT MAX(Milliseconds), MIN(Milliseconds) FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId WHERE T1.Name = \"Pop\""
} |
### INSTRUCTION
What is the total number of Bronze, when Gold is greater than 0, when Rank is 4, and when Total is greater than 4?
### INPUT
CREATE TABLE table_name_59 (bronze VARCHAR, total VARCHAR, gold VARCHAR, rank VARCHAR)
### OUTPUT
SELECT COUNT(bronze) FROM table_name_59 WHERE gold > 0 AND rank = "4" AND total > 4 | {
"input": "CREATE TABLE table_name_59 (bronze VARCHAR, total VARCHAR, gold VARCHAR, rank VARCHAR)",
"instruction": "What is the total number of Bronze, when Gold is greater than 0, when Rank is 4, and when Total is greater than 4?",
"output": "SELECT COUNT(bronze) FROM table_name_59 WHERE gold > 0 AND rank = \"4\" AND total > 4"
} |
### INSTRUCTION
What is the 1st leg score when US Mbila Nzambi is team 1?
### INPUT
CREATE TABLE table_name_3 (team_1 VARCHAR)
### OUTPUT
SELECT 1 AS st_leg FROM table_name_3 WHERE team_1 = "us mbila nzambi" | {
"input": "CREATE TABLE table_name_3 (team_1 VARCHAR)",
"instruction": "What is the 1st leg score when US Mbila Nzambi is team 1?",
"output": "SELECT 1 AS st_leg FROM table_name_3 WHERE team_1 = \"us mbila nzambi\""
} |
### INSTRUCTION
What is the number of goals against when the goal difference was less than 43, the Wins less than 13, and losses more than 14?
### INPUT
CREATE TABLE table_name_44 (goals_against VARCHAR, losses VARCHAR, goal_difference VARCHAR, wins VARCHAR)
### OUTPUT
SELECT goals_against FROM table_name_44 WHERE goal_difference < 43 AND wins < 13 AND losses > 14 | {
"input": "CREATE TABLE table_name_44 (goals_against VARCHAR, losses VARCHAR, goal_difference VARCHAR, wins VARCHAR)",
"instruction": "What is the number of goals against when the goal difference was less than 43, the Wins less than 13, and losses more than 14?",
"output": "SELECT goals_against FROM table_name_44 WHERE goal_difference < 43 AND wins < 13 AND losses > 14"
} |
### INSTRUCTION
Find the addresses and author IDs of the course authors that teach at least two courses.
### INPUT
CREATE TABLE Courses (author_id VARCHAR); CREATE TABLE Course_Authors_and_Tutors (address_line_1 VARCHAR, author_id VARCHAR)
### OUTPUT
SELECT T1.address_line_1, T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id HAVING COUNT(*) >= 2 | {
"input": "CREATE TABLE Courses (author_id VARCHAR); CREATE TABLE Course_Authors_and_Tutors (address_line_1 VARCHAR, author_id VARCHAR)",
"instruction": "Find the addresses and author IDs of the course authors that teach at least two courses.",
"output": "SELECT T1.address_line_1, T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id HAVING COUNT(*) >= 2"
} |
### INSTRUCTION
How many points associated with a Best time of 01:46.367?
### INPUT
CREATE TABLE table_name_76 (points INTEGER, best_time VARCHAR)
### OUTPUT
SELECT AVG(points) FROM table_name_76 WHERE best_time = "01:46.367" | {
"input": "CREATE TABLE table_name_76 (points INTEGER, best_time VARCHAR)",
"instruction": "How many points associated with a Best time of 01:46.367?",
"output": "SELECT AVG(points) FROM table_name_76 WHERE best_time = \"01:46.367\""
} |
### INSTRUCTION
What year was Metroid Prime Hunters 5 released?
### INPUT
CREATE TABLE table_name_7 (year INTEGER, title VARCHAR)
### OUTPUT
SELECT SUM(year) FROM table_name_7 WHERE title = "metroid prime hunters 5" | {
"input": "CREATE TABLE table_name_7 (year INTEGER, title VARCHAR)",
"instruction": "What year was Metroid Prime Hunters 5 released?",
"output": "SELECT SUM(year) FROM table_name_7 WHERE title = \"metroid prime hunters 5\""
} |
### INSTRUCTION
What is the Week when anke huber chanda rubin shows for Semi finalists, and the Runner-up is meredith mcgrath larisa savchenko?
### INPUT
CREATE TABLE table_name_2 (week_of VARCHAR, semi_finalists VARCHAR, runner_up VARCHAR)
### OUTPUT
SELECT week_of FROM table_name_2 WHERE semi_finalists = "anke huber chanda rubin" AND runner_up = "meredith mcgrath larisa savchenko" | {
"input": "CREATE TABLE table_name_2 (week_of VARCHAR, semi_finalists VARCHAR, runner_up VARCHAR)",
"instruction": "What is the Week when anke huber chanda rubin shows for Semi finalists, and the Runner-up is meredith mcgrath larisa savchenko?",
"output": "SELECT week_of FROM table_name_2 WHERE semi_finalists = \"anke huber chanda rubin\" AND runner_up = \"meredith mcgrath larisa savchenko\""
} |
### INSTRUCTION
Name province of 1936 viana do castelo
### INPUT
CREATE TABLE table_221375_1 (province_of_1936 VARCHAR, district VARCHAR)
### OUTPUT
SELECT province_of_1936 FROM table_221375_1 WHERE district = "Viana do Castelo" | {
"input": "CREATE TABLE table_221375_1 (province_of_1936 VARCHAR, district VARCHAR)",
"instruction": "Name province of 1936 viana do castelo",
"output": "SELECT province_of_1936 FROM table_221375_1 WHERE district = \"Viana do Castelo\""
} |
### INSTRUCTION
What are the notes of the satellite whose nssdc id number is 1959-002a?
### INPUT
CREATE TABLE table_191323_2 (notes VARCHAR, nssdc_id_no VARCHAR)
### OUTPUT
SELECT notes FROM table_191323_2 WHERE nssdc_id_no = "1959-002A" | {
"input": "CREATE TABLE table_191323_2 (notes VARCHAR, nssdc_id_no VARCHAR)",
"instruction": "What are the notes of the satellite whose nssdc id number is 1959-002a?",
"output": "SELECT notes FROM table_191323_2 WHERE nssdc_id_no = \"1959-002A\""
} |
### INSTRUCTION
What is the average area of the city that has a density less than than 206.2 and an altitude of less than 85?
### INPUT
CREATE TABLE table_name_14 (area__km_2__ INTEGER, density__inhabitants_km_2__ VARCHAR, altitude__mslm_ VARCHAR)
### OUTPUT
SELECT AVG(area__km_2__) FROM table_name_14 WHERE density__inhabitants_km_2__ < 206.2 AND altitude__mslm_ < 85 | {
"input": "CREATE TABLE table_name_14 (area__km_2__ INTEGER, density__inhabitants_km_2__ VARCHAR, altitude__mslm_ VARCHAR)",
"instruction": "What is the average area of the city that has a density less than than 206.2 and an altitude of less than 85?",
"output": "SELECT AVG(area__km_2__) FROM table_name_14 WHERE density__inhabitants_km_2__ < 206.2 AND altitude__mslm_ < 85"
} |
### INSTRUCTION
What is the date of vacancy for 10 december 2007 when quit?
### INPUT
CREATE TABLE table_11713303_2 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR)
### OUTPUT
SELECT date_of_vacancy FROM table_11713303_2 WHERE date_of_appointment = "10 December 2007" AND manner_of_departure = "Quit" | {
"input": "CREATE TABLE table_11713303_2 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR)",
"instruction": "What is the date of vacancy for 10 december 2007 when quit?",
"output": "SELECT date_of_vacancy FROM table_11713303_2 WHERE date_of_appointment = \"10 December 2007\" AND manner_of_departure = \"Quit\""
} |
### INSTRUCTION
What is the region 1 release that has july 20, 2009 as the region 2?
### INPUT
CREATE TABLE table_name_39 (region_1_release VARCHAR, region_2_release VARCHAR)
### OUTPUT
SELECT region_1_release FROM table_name_39 WHERE region_2_release = "july 20, 2009" | {
"input": "CREATE TABLE table_name_39 (region_1_release VARCHAR, region_2_release VARCHAR)",
"instruction": "What is the region 1 release that has july 20, 2009 as the region 2?",
"output": "SELECT region_1_release FROM table_name_39 WHERE region_2_release = \"july 20, 2009\""
} |
### INSTRUCTION
How many ERP W is it that has a Call sign of w273bs?
### INPUT
CREATE TABLE table_name_40 (erp_w INTEGER, call_sign VARCHAR)
### OUTPUT
SELECT SUM(erp_w) FROM table_name_40 WHERE call_sign = "w273bs" | {
"input": "CREATE TABLE table_name_40 (erp_w INTEGER, call_sign VARCHAR)",
"instruction": "How many ERP W is it that has a Call sign of w273bs?",
"output": "SELECT SUM(erp_w) FROM table_name_40 WHERE call_sign = \"w273bs\""
} |
### INSTRUCTION
What date was Millwall the home team?
### INPUT
CREATE TABLE table_name_29 (date VARCHAR, home_team VARCHAR)
### OUTPUT
SELECT date FROM table_name_29 WHERE home_team = "millwall" | {
"input": "CREATE TABLE table_name_29 (date VARCHAR, home_team VARCHAR)",
"instruction": "What date was Millwall the home team?",
"output": "SELECT date FROM table_name_29 WHERE home_team = \"millwall\""
} |
### INSTRUCTION
What was the score in the final, that Víctor Pecci was the opponent and winner after 1984?
### INPUT
CREATE TABLE table_name_92 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR, date VARCHAR, outcome VARCHAR)
### OUTPUT
SELECT score_in_the_final FROM table_name_92 WHERE date > 1984 AND outcome = "winner" AND opponent_in_the_final = "víctor pecci" | {
"input": "CREATE TABLE table_name_92 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR, date VARCHAR, outcome VARCHAR)",
"instruction": "What was the score in the final, that Víctor Pecci was the opponent and winner after 1984?",
"output": "SELECT score_in_the_final FROM table_name_92 WHERE date > 1984 AND outcome = \"winner\" AND opponent_in_the_final = \"víctor pecci\""
} |
### INSTRUCTION
What date did NY Rangers play at home?
### INPUT
CREATE TABLE table_name_12 (date VARCHAR, home VARCHAR)
### OUTPUT
SELECT date FROM table_name_12 WHERE home = "ny rangers" | {
"input": "CREATE TABLE table_name_12 (date VARCHAR, home VARCHAR)",
"instruction": "What date did NY Rangers play at home?",
"output": "SELECT date FROM table_name_12 WHERE home = \"ny rangers\""
} |
### INSTRUCTION
What is the average goals when the last appearance was before 1984, there were more than 17 appearances, the first appearance was before 1961 and the position was mf?
### INPUT
CREATE TABLE table_name_52 (goals INTEGER, position VARCHAR, first_appearance VARCHAR, last_appearance VARCHAR, appearances VARCHAR)
### OUTPUT
SELECT AVG(goals) FROM table_name_52 WHERE last_appearance < 1984 AND appearances > 17 AND first_appearance < 1961 AND position = "mf" | {
"input": "CREATE TABLE table_name_52 (goals INTEGER, position VARCHAR, first_appearance VARCHAR, last_appearance VARCHAR, appearances VARCHAR)",
"instruction": "What is the average goals when the last appearance was before 1984, there were more than 17 appearances, the first appearance was before 1961 and the position was mf?",
"output": "SELECT AVG(goals) FROM table_name_52 WHERE last_appearance < 1984 AND appearances > 17 AND first_appearance < 1961 AND position = \"mf\""
} |
### INSTRUCTION
Who directed the film that Avie Luthra received an award for?
### INPUT
CREATE TABLE table_name_63 (director_s_ VARCHAR, recipient VARCHAR)
### OUTPUT
SELECT director_s_ FROM table_name_63 WHERE recipient = "avie luthra" | {
"input": "CREATE TABLE table_name_63 (director_s_ VARCHAR, recipient VARCHAR)",
"instruction": "Who directed the film that Avie Luthra received an award for?",
"output": "SELECT director_s_ FROM table_name_63 WHERE recipient = \"avie luthra\""
} |
### INSTRUCTION
What is the largest number of stories in Recife completed later than 2007 with a height less than 135 meters?
### INPUT
CREATE TABLE table_name_38 (stories INTEGER, height__m_ VARCHAR, location VARCHAR, year_of_completion VARCHAR)
### OUTPUT
SELECT MAX(stories) FROM table_name_38 WHERE location = "recife" AND year_of_completion > 2007 AND height__m_ < 135 | {
"input": "CREATE TABLE table_name_38 (stories INTEGER, height__m_ VARCHAR, location VARCHAR, year_of_completion VARCHAR)",
"instruction": "What is the largest number of stories in Recife completed later than 2007 with a height less than 135 meters?",
"output": "SELECT MAX(stories) FROM table_name_38 WHERE location = \"recife\" AND year_of_completion > 2007 AND height__m_ < 135"
} |
### INSTRUCTION
who is the player when the place is t5 and the score is 69-66-71=206?
### INPUT
CREATE TABLE table_name_51 (player VARCHAR, place VARCHAR, score VARCHAR)
### OUTPUT
SELECT player FROM table_name_51 WHERE place = "t5" AND score = 69 - 66 - 71 = 206 | {
"input": "CREATE TABLE table_name_51 (player VARCHAR, place VARCHAR, score VARCHAR)",
"instruction": "who is the player when the place is t5 and the score is 69-66-71=206?",
"output": "SELECT player FROM table_name_51 WHERE place = \"t5\" AND score = 69 - 66 - 71 = 206"
} |
### INSTRUCTION
On what date did the match against Flavio Cipolla, played on a clay surface, occur?
### INPUT
CREATE TABLE table_name_58 (date VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
### OUTPUT
SELECT date FROM table_name_58 WHERE surface = "clay" AND opponent_in_the_final = "flavio cipolla" | {
"input": "CREATE TABLE table_name_58 (date VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)",
"instruction": "On what date did the match against Flavio Cipolla, played on a clay surface, occur?",
"output": "SELECT date FROM table_name_58 WHERE surface = \"clay\" AND opponent_in_the_final = \"flavio cipolla\""
} |
### INSTRUCTION
When debra j. fisher & erica messer are the writers and the director is patrick norris what is the series number?
### INPUT
CREATE TABLE table_17467147_1 (series__number VARCHAR, directed_by VARCHAR, written_by VARCHAR)
### OUTPUT
SELECT series__number FROM table_17467147_1 WHERE directed_by = "Patrick Norris" AND written_by = "Debra J. Fisher & Erica Messer" | {
"input": "CREATE TABLE table_17467147_1 (series__number VARCHAR, directed_by VARCHAR, written_by VARCHAR)",
"instruction": "When debra j. fisher & erica messer are the writers and the director is patrick norris what is the series number?",
"output": "SELECT series__number FROM table_17467147_1 WHERE directed_by = \"Patrick Norris\" AND written_by = \"Debra J. Fisher & Erica Messer\""
} |
### INSTRUCTION
WHAT IS THE TO PAR FOR GEOFF OGILVY WITH A PLACE OF T3?
### INPUT
CREATE TABLE table_name_94 (to_par VARCHAR, place VARCHAR, player VARCHAR)
### OUTPUT
SELECT to_par FROM table_name_94 WHERE place = "t3" AND player = "geoff ogilvy" | {
"input": "CREATE TABLE table_name_94 (to_par VARCHAR, place VARCHAR, player VARCHAR)",
"instruction": "WHAT IS THE TO PAR FOR GEOFF OGILVY WITH A PLACE OF T3?",
"output": "SELECT to_par FROM table_name_94 WHERE place = \"t3\" AND player = \"geoff ogilvy\""
} |
### INSTRUCTION
Which Set 1 has a Date of 24 may, and a Total of 57–75?
### INPUT
CREATE TABLE table_name_37 (set_1 VARCHAR, date VARCHAR, total VARCHAR)
### OUTPUT
SELECT set_1 FROM table_name_37 WHERE date = "24 may" AND total = "57–75" | {
"input": "CREATE TABLE table_name_37 (set_1 VARCHAR, date VARCHAR, total VARCHAR)",
"instruction": "Which Set 1 has a Date of 24 may, and a Total of 57–75?",
"output": "SELECT set_1 FROM table_name_37 WHERE date = \"24 may\" AND total = \"57–75\""
} |
### INSTRUCTION
WHAT SAN PAULO CAREER HAD SMALLER THAN 201 APPEARANCES, SMALLER THAN 2 GOALS, AND FOR RICARDO ROCHA?
### INPUT
CREATE TABLE table_name_45 (são_paulo_career VARCHAR, name VARCHAR, appearances VARCHAR, goals VARCHAR)
### OUTPUT
SELECT são_paulo_career FROM table_name_45 WHERE appearances < 201 AND goals < 2 AND name = "ricardo rocha" | {
"input": "CREATE TABLE table_name_45 (são_paulo_career VARCHAR, name VARCHAR, appearances VARCHAR, goals VARCHAR)",
"instruction": "WHAT SAN PAULO CAREER HAD SMALLER THAN 201 APPEARANCES, SMALLER THAN 2 GOALS, AND FOR RICARDO ROCHA?",
"output": "SELECT são_paulo_career FROM table_name_45 WHERE appearances < 201 AND goals < 2 AND name = \"ricardo rocha\""
} |
### INSTRUCTION
What was the result for the contestant whose background was as a business major?
### INPUT
CREATE TABLE table_19810459_1 (result VARCHAR, background VARCHAR)
### OUTPUT
SELECT result FROM table_19810459_1 WHERE background = "Business major" | {
"input": "CREATE TABLE table_19810459_1 (result VARCHAR, background VARCHAR)",
"instruction": "What was the result for the contestant whose background was as a business major?",
"output": "SELECT result FROM table_19810459_1 WHERE background = \"Business major\""
} |
### INSTRUCTION
Which Incumbent has a District of California 5?
### INPUT
CREATE TABLE table_name_99 (incumbent VARCHAR, district VARCHAR)
### OUTPUT
SELECT incumbent FROM table_name_99 WHERE district = "california 5" | {
"input": "CREATE TABLE table_name_99 (incumbent VARCHAR, district VARCHAR)",
"instruction": "Which Incumbent has a District of California 5?",
"output": "SELECT incumbent FROM table_name_99 WHERE district = \"california 5\""
} |
### INSTRUCTION
What is the total rank for New Zealand, when less than 1 bronze medals were won?
### INPUT
CREATE TABLE table_name_56 (rank INTEGER, nation VARCHAR, bronze VARCHAR)
### OUTPUT
SELECT SUM(rank) FROM table_name_56 WHERE nation = "new zealand" AND bronze < 1 | {
"input": "CREATE TABLE table_name_56 (rank INTEGER, nation VARCHAR, bronze VARCHAR)",
"instruction": "What is the total rank for New Zealand, when less than 1 bronze medals were won?",
"output": "SELECT SUM(rank) FROM table_name_56 WHERE nation = \"new zealand\" AND bronze < 1"
} |
### INSTRUCTION
who is the constructor when the driver is juan pablo montoya?
### INPUT
CREATE TABLE table_name_41 (constructor VARCHAR, driver VARCHAR)
### OUTPUT
SELECT constructor FROM table_name_41 WHERE driver = "juan pablo montoya" | {
"input": "CREATE TABLE table_name_41 (constructor VARCHAR, driver VARCHAR)",
"instruction": "who is the constructor when the driver is juan pablo montoya?",
"output": "SELECT constructor FROM table_name_41 WHERE driver = \"juan pablo montoya\""
} |
### INSTRUCTION
Find the name and age of the person who is a friend of both Dan and Alice.
### INPUT
CREATE TABLE Person (name VARCHAR, age VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)
### OUTPUT
SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice' | {
"input": "CREATE TABLE Person (name VARCHAR, age VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR)",
"instruction": "Find the name and age of the person who is a friend of both Dan and Alice.",
"output": "SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Dan' INTERSECT SELECT T1.name, T1.age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.name WHERE T2.friend = 'Alice'"
} |
### INSTRUCTION
When the Nokia corporation had an accreditation level of joyn, what was the accreditation type?
### INPUT
CREATE TABLE table_name_5 (accreditation_type VARCHAR, accreditation_level VARCHAR, company_name VARCHAR)
### OUTPUT
SELECT accreditation_type FROM table_name_5 WHERE accreditation_level = "joyn" AND company_name = "nokia corporation" | {
"input": "CREATE TABLE table_name_5 (accreditation_type VARCHAR, accreditation_level VARCHAR, company_name VARCHAR)",
"instruction": "When the Nokia corporation had an accreditation level of joyn, what was the accreditation type?",
"output": "SELECT accreditation_type FROM table_name_5 WHERE accreditation_level = \"joyn\" AND company_name = \"nokia corporation\""
} |
### INSTRUCTION
What musical performances aired on 5 April 2010?
### INPUT
CREATE TABLE table_26733129_1 (musical_performance VARCHAR, air_date VARCHAR)
### OUTPUT
SELECT musical_performance FROM table_26733129_1 WHERE air_date = "5 April 2010" | {
"input": "CREATE TABLE table_26733129_1 (musical_performance VARCHAR, air_date VARCHAR)",
"instruction": "What musical performances aired on 5 April 2010?",
"output": "SELECT musical_performance FROM table_26733129_1 WHERE air_date = \"5 April 2010\""
} |
### INSTRUCTION
What are the entry names of catalog with the attribute possessed by most entries.
### INPUT
CREATE TABLE Catalog_Contents_Additional_Attributes (catalog_entry_id VARCHAR, attribute_value VARCHAR); CREATE TABLE Catalog_Contents (catalog_entry_name VARCHAR, catalog_entry_id VARCHAR); CREATE TABLE Catalog_Contents_Additional_Attributes (attribute_value VARCHAR)
### OUTPUT
SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY COUNT(*) DESC LIMIT 1) | {
"input": "CREATE TABLE Catalog_Contents_Additional_Attributes (catalog_entry_id VARCHAR, attribute_value VARCHAR); CREATE TABLE Catalog_Contents (catalog_entry_name VARCHAR, catalog_entry_id VARCHAR); CREATE TABLE Catalog_Contents_Additional_Attributes (attribute_value VARCHAR)",
"instruction": "What are the entry names of catalog with the attribute possessed by most entries.",
"output": "SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id = t2.catalog_entry_id WHERE t2.attribute_value = (SELECT attribute_value FROM Catalog_Contents_Additional_Attributes GROUP BY attribute_value ORDER BY COUNT(*) DESC LIMIT 1)"
} |
### INSTRUCTION
Who was the winner for the world championship formula 1 at the venue, circuit de monaco?
### INPUT
CREATE TABLE table_name_89 (winner VARCHAR, notes VARCHAR, venue VARCHAR)
### OUTPUT
SELECT winner FROM table_name_89 WHERE notes = "world championship formula 1" AND venue = "circuit de monaco" | {
"input": "CREATE TABLE table_name_89 (winner VARCHAR, notes VARCHAR, venue VARCHAR)",
"instruction": "Who was the winner for the world championship formula 1 at the venue, circuit de monaco?",
"output": "SELECT winner FROM table_name_89 WHERE notes = \"world championship formula 1\" AND venue = \"circuit de monaco\""
} |
### INSTRUCTION
List the names of all the distinct customers who bought a keyboard.
### INPUT
CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)
### OUTPUT
SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id JOIN products AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = "keyboard" | {
"input": "CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)",
"instruction": "List the names of all the distinct customers who bought a keyboard.",
"output": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id = T2.customer_id JOIN order_items AS T3 ON T2.order_id = T3.order_id JOIN products AS T4 ON T3.product_id = T4.product_id WHERE T4.product_name = \"keyboard\""
} |
### INSTRUCTION
What is Term Start, when Born-Died is Prime Ministers 1939 - 1943?
### INPUT
CREATE TABLE table_name_53 (term_start VARCHAR, born_died VARCHAR)
### OUTPUT
SELECT term_start FROM table_name_53 WHERE born_died = "prime ministers 1939 - 1943" | {
"input": "CREATE TABLE table_name_53 (term_start VARCHAR, born_died VARCHAR)",
"instruction": "What is Term Start, when Born-Died is Prime Ministers 1939 - 1943?",
"output": "SELECT term_start FROM table_name_53 WHERE born_died = \"prime ministers 1939 - 1943\""
} |
### INSTRUCTION
what is the date of vacancy when the manner of departure is contract terminated, the position in table is 23rd and the date of appointment is 31 december 2008?
### INPUT
CREATE TABLE table_name_4 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR)
### OUTPUT
SELECT date_of_vacancy FROM table_name_4 WHERE manner_of_departure = "contract terminated" AND position_in_table = "23rd" AND date_of_appointment = "31 december 2008" | {
"input": "CREATE TABLE table_name_4 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR, position_in_table VARCHAR)",
"instruction": "what is the date of vacancy when the manner of departure is contract terminated, the position in table is 23rd and the date of appointment is 31 december 2008?",
"output": "SELECT date_of_vacancy FROM table_name_4 WHERE manner_of_departure = \"contract terminated\" AND position_in_table = \"23rd\" AND date_of_appointment = \"31 december 2008\""
} |
### INSTRUCTION
What was the average number of people born in other EU states in millions, when the number of people born in a non EU state in millions was 31.368, and when the total population in millions was higher than 501.098?
### INPUT
CREATE TABLE table_name_88 (born_in_other_eu_state__millions_ INTEGER, born_in_a_non_eu_state__millions_ VARCHAR, total_population__millions_ VARCHAR)
### OUTPUT
SELECT AVG(born_in_other_eu_state__millions_) FROM table_name_88 WHERE born_in_a_non_eu_state__millions_ = 31.368 AND total_population__millions_ > 501.098 | {
"input": "CREATE TABLE table_name_88 (born_in_other_eu_state__millions_ INTEGER, born_in_a_non_eu_state__millions_ VARCHAR, total_population__millions_ VARCHAR)",
"instruction": "What was the average number of people born in other EU states in millions, when the number of people born in a non EU state in millions was 31.368, and when the total population in millions was higher than 501.098?",
"output": "SELECT AVG(born_in_other_eu_state__millions_) FROM table_name_88 WHERE born_in_a_non_eu_state__millions_ = 31.368 AND total_population__millions_ > 501.098"
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.