text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
How many people attended the game on May 10?
### INPUT
CREATE TABLE table_name_44 (attendance VARCHAR, date VARCHAR)
### OUTPUT
SELECT COUNT(attendance) FROM table_name_44 WHERE date = "may 10" | {
"input": "CREATE TABLE table_name_44 (attendance VARCHAR, date VARCHAR)",
"instruction": "How many people attended the game on May 10?",
"output": "SELECT COUNT(attendance) FROM table_name_44 WHERE date = \"may 10\""
} |
### INSTRUCTION
What time did bruce anstey complete in a honda 1000cc?
### INPUT
CREATE TABLE table_name_88 (time VARCHAR, machine VARCHAR, rider_s_ VARCHAR)
### OUTPUT
SELECT time FROM table_name_88 WHERE machine = "honda 1000cc" AND rider_s_ = "bruce anstey" | {
"input": "CREATE TABLE table_name_88 (time VARCHAR, machine VARCHAR, rider_s_ VARCHAR)",
"instruction": "What time did bruce anstey complete in a honda 1000cc?",
"output": "SELECT time FROM table_name_88 WHERE machine = \"honda 1000cc\" AND rider_s_ = \"bruce anstey\""
} |
### INSTRUCTION
What years did New Zealand win?
### INPUT
CREATE TABLE table_name_30 (year_s__won VARCHAR, country VARCHAR)
### OUTPUT
SELECT year_s__won FROM table_name_30 WHERE country = "new zealand" | {
"input": "CREATE TABLE table_name_30 (year_s__won VARCHAR, country VARCHAR)",
"instruction": "What years did New Zealand win?",
"output": "SELECT year_s__won FROM table_name_30 WHERE country = \"new zealand\""
} |
### INSTRUCTION
What Date performed has a Scores by each individual judge of 10 + 10 + 10 = 30, and a Main contestant of karanvir bohra?
### INPUT
CREATE TABLE table_name_19 (date_performed VARCHAR, main_contestant VARCHAR, scores_by_each_individual_judge VARCHAR)
### OUTPUT
SELECT date_performed FROM table_name_19 WHERE scores_by_each_individual_judge = 10 + 10 + 10 = 30 AND main_contestant = "karanvir bohra" | {
"input": "CREATE TABLE table_name_19 (date_performed VARCHAR, main_contestant VARCHAR, scores_by_each_individual_judge VARCHAR)",
"instruction": "What Date performed has a Scores by each individual judge of 10 + 10 + 10 = 30, and a Main contestant of karanvir bohra?",
"output": "SELECT date_performed FROM table_name_19 WHERE scores_by_each_individual_judge = 10 + 10 + 10 = 30 AND main_contestant = \"karanvir bohra\""
} |
### INSTRUCTION
Which Player has a Nationality of united states, and an Overall of 61 (from boston)?
### INPUT
CREATE TABLE table_name_79 (player VARCHAR, nationality VARCHAR, overall VARCHAR)
### OUTPUT
SELECT player FROM table_name_79 WHERE nationality = "united states" AND overall = "61 (from boston)" | {
"input": "CREATE TABLE table_name_79 (player VARCHAR, nationality VARCHAR, overall VARCHAR)",
"instruction": "Which Player has a Nationality of united states, and an Overall of 61 (from boston)?",
"output": "SELECT player FROM table_name_79 WHERE nationality = \"united states\" AND overall = \"61 (from boston)\""
} |
### INSTRUCTION
What is the year for the ocean?
### INPUT
CREATE TABLE table_name_47 (year VARCHAR, english_title VARCHAR)
### OUTPUT
SELECT year FROM table_name_47 WHERE english_title = "the ocean" | {
"input": "CREATE TABLE table_name_47 (year VARCHAR, english_title VARCHAR)",
"instruction": "What is the year for the ocean?",
"output": "SELECT year FROM table_name_47 WHERE english_title = \"the ocean\""
} |
### INSTRUCTION
How did the match end when she played with caroline wozniacki?
### INPUT
CREATE TABLE table_25505246_8 (outcome VARCHAR, partner VARCHAR)
### OUTPUT
SELECT outcome FROM table_25505246_8 WHERE partner = "Caroline Wozniacki" | {
"input": "CREATE TABLE table_25505246_8 (outcome VARCHAR, partner VARCHAR)",
"instruction": "How did the match end when she played with caroline wozniacki?",
"output": "SELECT outcome FROM table_25505246_8 WHERE partner = \"Caroline Wozniacki\""
} |
### INSTRUCTION
Which round has a win-loss result of loss and an edition of 2012 Fed Cup Europe/Africa Group I?
### INPUT
CREATE TABLE table_22656187_9 (round VARCHAR, w_l VARCHAR, edition VARCHAR)
### OUTPUT
SELECT round FROM table_22656187_9 WHERE w_l = "Loss" AND edition = "2012 Fed Cup Europe/Africa Group I" | {
"input": "CREATE TABLE table_22656187_9 (round VARCHAR, w_l VARCHAR, edition VARCHAR)",
"instruction": "Which round has a win-loss result of loss and an edition of 2012 Fed Cup Europe/Africa Group I?",
"output": "SELECT round FROM table_22656187_9 WHERE w_l = \"Loss\" AND edition = \"2012 Fed Cup Europe/Africa Group I\""
} |
### INSTRUCTION
What was the reward when immunity went to martin and finish is 13th voted out 8th jury member day 46?
### INPUT
CREATE TABLE table_25016824_2 (reward VARCHAR, immunity VARCHAR, finish VARCHAR)
### OUTPUT
SELECT reward FROM table_25016824_2 WHERE immunity = "Martin" AND finish = "13th voted Out 8th Jury Member Day 46" | {
"input": "CREATE TABLE table_25016824_2 (reward VARCHAR, immunity VARCHAR, finish VARCHAR)",
"instruction": "What was the reward when immunity went to martin and finish is 13th voted out 8th jury member day 46?",
"output": "SELECT reward FROM table_25016824_2 WHERE immunity = \"Martin\" AND finish = \"13th voted Out 8th Jury Member Day 46\""
} |
### INSTRUCTION
What is the organisation type and id of the organisation which has the most number of research staff?
### INPUT
CREATE TABLE Research_Staff (employer_organisation_id VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR, organisation_id VARCHAR)
### OUTPUT
SELECT T1.organisation_type, T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Research_Staff (employer_organisation_id VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR, organisation_id VARCHAR)",
"instruction": "What is the organisation type and id of the organisation which has the most number of research staff?",
"output": "SELECT T1.organisation_type, T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
what is the borough or A[›] Census area when the Name A[›] is jerome lake dam?
### INPUT
CREATE TABLE table_name_81 (borough_or_a VARCHAR, ›_ VARCHAR, name_a VARCHAR)
### OUTPUT
SELECT borough_or_a[›_] AS _census_area FROM table_name_81 WHERE name_a[›_] = "jerome lake dam" | {
"input": "CREATE TABLE table_name_81 (borough_or_a VARCHAR, ›_ VARCHAR, name_a VARCHAR)",
"instruction": "what is the borough or A[›] Census area when the Name A[›] is jerome lake dam?",
"output": "SELECT borough_or_a[›_] AS _census_area FROM table_name_81 WHERE name_a[›_] = \"jerome lake dam\""
} |
### INSTRUCTION
What is the GP winner with a place of genk, with race winners ben adriaenssen / ben van den bogaart?
### INPUT
CREATE TABLE table_name_30 (gp_winner VARCHAR, place VARCHAR, race_winners VARCHAR)
### OUTPUT
SELECT gp_winner FROM table_name_30 WHERE place = "genk" AND race_winners = "ben adriaenssen / ben van den bogaart" | {
"input": "CREATE TABLE table_name_30 (gp_winner VARCHAR, place VARCHAR, race_winners VARCHAR)",
"instruction": "What is the GP winner with a place of genk, with race winners ben adriaenssen / ben van den bogaart?",
"output": "SELECT gp_winner FROM table_name_30 WHERE place = \"genk\" AND race_winners = \"ben adriaenssen / ben van den bogaart\""
} |
### INSTRUCTION
What is the church name for the church located in Kyrkjebø?
### INPUT
CREATE TABLE table_178389_1 (church_name VARCHAR, location_of_the_church VARCHAR)
### OUTPUT
SELECT church_name FROM table_178389_1 WHERE location_of_the_church = "Kyrkjebø" | {
"input": "CREATE TABLE table_178389_1 (church_name VARCHAR, location_of_the_church VARCHAR)",
"instruction": "What is the church name for the church located in Kyrkjebø?",
"output": "SELECT church_name FROM table_178389_1 WHERE location_of_the_church = \"Kyrkjebø\""
} |
### INSTRUCTION
How many totals have a Silver of 40, and a Gold smaller than 39?
### INPUT
CREATE TABLE table_name_21 (total VARCHAR, silver VARCHAR, gold VARCHAR)
### OUTPUT
SELECT COUNT(total) FROM table_name_21 WHERE silver = 40 AND gold < 39 | {
"input": "CREATE TABLE table_name_21 (total VARCHAR, silver VARCHAR, gold VARCHAR)",
"instruction": "How many totals have a Silver of 40, and a Gold smaller than 39?",
"output": "SELECT COUNT(total) FROM table_name_21 WHERE silver = 40 AND gold < 39"
} |
### INSTRUCTION
What is the average number of bronze medals of the Philippines, which has more than 0 gold?
### INPUT
CREATE TABLE table_name_63 (bronze INTEGER, nation VARCHAR, gold VARCHAR)
### OUTPUT
SELECT AVG(bronze) FROM table_name_63 WHERE nation = "philippines" AND gold > 0 | {
"input": "CREATE TABLE table_name_63 (bronze INTEGER, nation VARCHAR, gold VARCHAR)",
"instruction": "What is the average number of bronze medals of the Philippines, which has more than 0 gold?",
"output": "SELECT AVG(bronze) FROM table_name_63 WHERE nation = \"philippines\" AND gold > 0"
} |
### INSTRUCTION
What is the position of the player who got 6 (4 in 34.49s) in the 6 atlas stones event?
### INPUT
CREATE TABLE table_24302700_6 (position VARCHAR, event_6_atlas_stones VARCHAR)
### OUTPUT
SELECT position FROM table_24302700_6 WHERE event_6_atlas_stones = "6 (4 in 34.49s)" | {
"input": "CREATE TABLE table_24302700_6 (position VARCHAR, event_6_atlas_stones VARCHAR)",
"instruction": "What is the position of the player who got 6 (4 in 34.49s) in the 6 atlas stones event?",
"output": "SELECT position FROM table_24302700_6 WHERE event_6_atlas_stones = \"6 (4 in 34.49s)\""
} |
### INSTRUCTION
Which party won in 2003, that had a swing to gain of less than 2.92 and which resulted in a ld hold?
### INPUT
CREATE TABLE table_name_26 (winning_party_2003 VARCHAR, swing_to_gain VARCHAR, result VARCHAR)
### OUTPUT
SELECT winning_party_2003 FROM table_name_26 WHERE swing_to_gain < 2.92 AND result = "ld hold" | {
"input": "CREATE TABLE table_name_26 (winning_party_2003 VARCHAR, swing_to_gain VARCHAR, result VARCHAR)",
"instruction": "Which party won in 2003, that had a swing to gain of less than 2.92 and which resulted in a ld hold?",
"output": "SELECT winning_party_2003 FROM table_name_26 WHERE swing_to_gain < 2.92 AND result = \"ld hold\""
} |
### INSTRUCTION
Name the winning score for pga championship
### INPUT
CREATE TABLE table_225880_1 (winning_score VARCHAR, championship VARCHAR)
### OUTPUT
SELECT winning_score FROM table_225880_1 WHERE championship = "PGA championship" | {
"input": "CREATE TABLE table_225880_1 (winning_score VARCHAR, championship VARCHAR)",
"instruction": "Name the winning score for pga championship",
"output": "SELECT winning_score FROM table_225880_1 WHERE championship = \"PGA championship\""
} |
### INSTRUCTION
What is the home of the match with a 0:2 result on 21.10.07?
### INPUT
CREATE TABLE table_name_28 (home VARCHAR, result VARCHAR, date VARCHAR)
### OUTPUT
SELECT home FROM table_name_28 WHERE result = "0:2" AND date = "21.10.07" | {
"input": "CREATE TABLE table_name_28 (home VARCHAR, result VARCHAR, date VARCHAR)",
"instruction": "What is the home of the match with a 0:2 result on 21.10.07?",
"output": "SELECT home FROM table_name_28 WHERE result = \"0:2\" AND date = \"21.10.07\""
} |
### INSTRUCTION
What are the Colt model numbers of the models named GAU-5A/A, with no bayonet lug, no case deflector and stock of 2nd generation?
### INPUT
CREATE TABLE table_12834315_1 (colt_model_no VARCHAR, name VARCHAR, case_deflector VARCHAR, bayonet_lug VARCHAR, stock VARCHAR)
### OUTPUT
SELECT colt_model_no FROM table_12834315_1 WHERE bayonet_lug = "No" AND stock = "2nd Generation" AND case_deflector = "No" AND name = "GAU-5A/A" | {
"input": "CREATE TABLE table_12834315_1 (colt_model_no VARCHAR, name VARCHAR, case_deflector VARCHAR, bayonet_lug VARCHAR, stock VARCHAR)",
"instruction": "What are the Colt model numbers of the models named GAU-5A/A, with no bayonet lug, no case deflector and stock of 2nd generation? ",
"output": "SELECT colt_model_no FROM table_12834315_1 WHERE bayonet_lug = \"No\" AND stock = \"2nd Generation\" AND case_deflector = \"No\" AND name = \"GAU-5A/A\""
} |
### INSTRUCTION
What is the average rating stars and title for the oldest movie?
### INPUT
CREATE TABLE Movie (title VARCHAR, mID VARCHAR, year VARCHAR); CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (YEAR INTEGER)
### OUTPUT
SELECT AVG(T1.stars), T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT MIN(YEAR) FROM Movie) | {
"input": "CREATE TABLE Movie (title VARCHAR, mID VARCHAR, year VARCHAR); CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (YEAR INTEGER)",
"instruction": "What is the average rating stars and title for the oldest movie?",
"output": "SELECT AVG(T1.stars), T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T2.year = (SELECT MIN(YEAR) FROM Movie)"
} |
### INSTRUCTION
When is the latest year that Real Colorado Foxes did not qualify for the playoffs but make it to Open Cup 2nd Round?
### INPUT
CREATE TABLE table_name_95 (year INTEGER, playoffs VARCHAR, open_cup VARCHAR)
### OUTPUT
SELECT MAX(year) FROM table_name_95 WHERE playoffs = "did not qualify" AND open_cup = "2nd round" | {
"input": "CREATE TABLE table_name_95 (year INTEGER, playoffs VARCHAR, open_cup VARCHAR)",
"instruction": "When is the latest year that Real Colorado Foxes did not qualify for the playoffs but make it to Open Cup 2nd Round?",
"output": "SELECT MAX(year) FROM table_name_95 WHERE playoffs = \"did not qualify\" AND open_cup = \"2nd round\""
} |
### INSTRUCTION
Find the busiest destination airport that runs most number of routes in China.
### INPUT
CREATE TABLE routes (dst_apid VARCHAR); CREATE TABLE airports (name VARCHAR, apid VARCHAR, country VARCHAR)
### OUTPUT
SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE routes (dst_apid VARCHAR); CREATE TABLE airports (name VARCHAR, apid VARCHAR, country VARCHAR)",
"instruction": "Find the busiest destination airport that runs most number of routes in China.",
"output": "SELECT T1.name FROM airports AS T1 JOIN routes AS T2 ON T1.apid = T2.dst_apid WHERE T1.country = 'China' GROUP BY T1.name ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What series number garnered 20.64 million viewers?
### INPUT
CREATE TABLE table_18217750_1 (series__number VARCHAR, us_viewers__millions_ VARCHAR)
### OUTPUT
SELECT series__number FROM table_18217750_1 WHERE us_viewers__millions_ = "20.64" | {
"input": "CREATE TABLE table_18217750_1 (series__number VARCHAR, us_viewers__millions_ VARCHAR)",
"instruction": "What series number garnered 20.64 million viewers?",
"output": "SELECT series__number FROM table_18217750_1 WHERE us_viewers__millions_ = \"20.64\""
} |
### INSTRUCTION
What is the tyre of real racing with leon team member koudai tsukakoshi?
### INPUT
CREATE TABLE table_name_24 (tyre VARCHAR, team VARCHAR, drivers VARCHAR)
### OUTPUT
SELECT tyre FROM table_name_24 WHERE team = "real racing with leon" AND drivers = "koudai tsukakoshi" | {
"input": "CREATE TABLE table_name_24 (tyre VARCHAR, team VARCHAR, drivers VARCHAR)",
"instruction": "What is the tyre of real racing with leon team member koudai tsukakoshi?",
"output": "SELECT tyre FROM table_name_24 WHERE team = \"real racing with leon\" AND drivers = \"koudai tsukakoshi\""
} |
### INSTRUCTION
What are the album titles for albums containing both 'Reggae' and 'Rock' genre tracks?
### INPUT
CREATE TABLE Genre (GenreID VARCHAR, Name VARCHAR); CREATE TABLE Track (AlbumId VARCHAR, GenreID VARCHAR); CREATE TABLE Album (Title VARCHAR, AlbumId VARCHAR)
### OUTPUT
SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Rock' | {
"input": "CREATE TABLE Genre (GenreID VARCHAR, Name VARCHAR); CREATE TABLE Track (AlbumId VARCHAR, GenreID VARCHAR); CREATE TABLE Album (Title VARCHAR, AlbumId VARCHAR)",
"instruction": "What are the album titles for albums containing both 'Reggae' and 'Rock' genre tracks?",
"output": "SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Reggae' INTERSECT SELECT T1.Title FROM Album AS T1 JOIN Track AS T2 ON T1.AlbumId = T2.AlbumId JOIN Genre AS T3 ON T2.GenreID = T3.GenreID WHERE T3.Name = 'Rock'"
} |
### INSTRUCTION
What is the total number for grid with a Suzuki GSX-R1000 K7 for +13.283?
### INPUT
CREATE TABLE table_name_35 (grid VARCHAR, bike VARCHAR, time VARCHAR)
### OUTPUT
SELECT COUNT(grid) FROM table_name_35 WHERE bike = "suzuki gsx-r1000 k7" AND time = "+13.283" | {
"input": "CREATE TABLE table_name_35 (grid VARCHAR, bike VARCHAR, time VARCHAR)",
"instruction": "What is the total number for grid with a Suzuki GSX-R1000 K7 for +13.283?",
"output": "SELECT COUNT(grid) FROM table_name_35 WHERE bike = \"suzuki gsx-r1000 k7\" AND time = \"+13.283\""
} |
### INSTRUCTION
What's the leader team in the Trofeo Fast Team in stage 20?
### INPUT
CREATE TABLE table_12261714_2 (trofeo_fast_team VARCHAR, stage VARCHAR)
### OUTPUT
SELECT trofeo_fast_team FROM table_12261714_2 WHERE stage = "20" | {
"input": "CREATE TABLE table_12261714_2 (trofeo_fast_team VARCHAR, stage VARCHAR)",
"instruction": "What's the leader team in the Trofeo Fast Team in stage 20?",
"output": "SELECT trofeo_fast_team FROM table_12261714_2 WHERE stage = \"20\""
} |
### INSTRUCTION
List the name of all the distinct customers who have orders with status "Packing".
### INPUT
CREATE TABLE orders (customer_id VARCHAR, order_status VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
### OUTPUT
SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = "Packing" | {
"input": "CREATE TABLE orders (customer_id VARCHAR, order_status VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)",
"instruction": "List the name of all the distinct customers who have orders with status \"Packing\".",
"output": "SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_status = \"Packing\""
} |
### INSTRUCTION
What year was the Grand Prix with an i8 engine and a cc displacement of 1500?
### INPUT
CREATE TABLE table_name_25 (year VARCHAR, displacement_cc VARCHAR, type VARCHAR, engine VARCHAR)
### OUTPUT
SELECT year FROM table_name_25 WHERE type = "grand prix" AND engine = "i8" AND displacement_cc = "1500" | {
"input": "CREATE TABLE table_name_25 (year VARCHAR, displacement_cc VARCHAR, type VARCHAR, engine VARCHAR)",
"instruction": "What year was the Grand Prix with an i8 engine and a cc displacement of 1500?",
"output": "SELECT year FROM table_name_25 WHERE type = \"grand prix\" AND engine = \"i8\" AND displacement_cc = \"1500\""
} |
### INSTRUCTION
Which Enrollment has a Primary Conference of mid-hoosier, and a County of 16 decatur, and an IHSAA Class of aa?
### INPUT
CREATE TABLE table_name_4 (enrollment VARCHAR, ihsaa_class VARCHAR, primary_conference VARCHAR, county VARCHAR)
### OUTPUT
SELECT enrollment FROM table_name_4 WHERE primary_conference = "mid-hoosier" AND county = "16 decatur" AND ihsaa_class = "aa" | {
"input": "CREATE TABLE table_name_4 (enrollment VARCHAR, ihsaa_class VARCHAR, primary_conference VARCHAR, county VARCHAR)",
"instruction": "Which Enrollment has a Primary Conference of mid-hoosier, and a County of 16 decatur, and an IHSAA Class of aa?",
"output": "SELECT enrollment FROM table_name_4 WHERE primary_conference = \"mid-hoosier\" AND county = \"16 decatur\" AND ihsaa_class = \"aa\""
} |
### INSTRUCTION
When 380 g/mi (236 g/km) is the dirty electric grid rocky mountains (denver) what is the u.s national average electric mix?
### INPUT
CREATE TABLE table_24620684_2 (us_national_average_electric_mix VARCHAR, dirty_electric_grid_rocky_mountains__denver_ VARCHAR)
### OUTPUT
SELECT us_national_average_electric_mix FROM table_24620684_2 WHERE dirty_electric_grid_rocky_mountains__denver_ = "380 g/mi (236 g/km)" | {
"input": "CREATE TABLE table_24620684_2 (us_national_average_electric_mix VARCHAR, dirty_electric_grid_rocky_mountains__denver_ VARCHAR)",
"instruction": "When 380 g/mi (236 g/km) is the dirty electric grid rocky mountains (denver) what is the u.s national average electric mix?",
"output": "SELECT us_national_average_electric_mix FROM table_24620684_2 WHERE dirty_electric_grid_rocky_mountains__denver_ = \"380 g/mi (236 g/km)\""
} |
### INSTRUCTION
What is the total number of Points that Peter Whitehead earned in a Ferrari 125?
### INPUT
CREATE TABLE table_name_42 (points INTEGER, entrant VARCHAR, chassis VARCHAR)
### OUTPUT
SELECT SUM(points) FROM table_name_42 WHERE entrant = "peter whitehead" AND chassis = "ferrari 125" | {
"input": "CREATE TABLE table_name_42 (points INTEGER, entrant VARCHAR, chassis VARCHAR)",
"instruction": "What is the total number of Points that Peter Whitehead earned in a Ferrari 125?",
"output": "SELECT SUM(points) FROM table_name_42 WHERE entrant = \"peter whitehead\" AND chassis = \"ferrari 125\""
} |
### INSTRUCTION
Rank smaller than 5, and a Time of 31’ 03.093 is what rider?
### INPUT
CREATE TABLE table_name_8 (rider VARCHAR, rank VARCHAR, time VARCHAR)
### OUTPUT
SELECT rider FROM table_name_8 WHERE rank < 5 AND time = "31’ 03.093" | {
"input": "CREATE TABLE table_name_8 (rider VARCHAR, rank VARCHAR, time VARCHAR)",
"instruction": "Rank smaller than 5, and a Time of 31’ 03.093 is what rider?",
"output": "SELECT rider FROM table_name_8 WHERE rank < 5 AND time = \"31’ 03.093\""
} |
### INSTRUCTION
What is the Constituency number for Bikhangaon with a Reserved for ( SC / ST /None) of st?
### INPUT
CREATE TABLE table_name_11 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
### OUTPUT
SELECT constituency_number FROM table_name_11 WHERE reserved_for___sc___st__none_ = "st" AND name = "bikhangaon" | {
"input": "CREATE TABLE table_name_11 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)",
"instruction": "What is the Constituency number for Bikhangaon with a Reserved for ( SC / ST /None) of st?",
"output": "SELECT constituency_number FROM table_name_11 WHERE reserved_for___sc___st__none_ = \"st\" AND name = \"bikhangaon\""
} |
### INSTRUCTION
What is the first name and the last name of the customer who made the earliest rental?
### INPUT
CREATE TABLE customer (first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR); CREATE TABLE rental (customer_id VARCHAR, rental_date VARCHAR)
### OUTPUT
SELECT T1.first_name, T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id = T2.customer_id ORDER BY T2.rental_date LIMIT 1 | {
"input": "CREATE TABLE customer (first_name VARCHAR, last_name VARCHAR, customer_id VARCHAR); CREATE TABLE rental (customer_id VARCHAR, rental_date VARCHAR)",
"instruction": "What is the first name and the last name of the customer who made the earliest rental?",
"output": "SELECT T1.first_name, T1.last_name FROM customer AS T1 JOIN rental AS T2 ON T1.customer_id = T2.customer_id ORDER BY T2.rental_date LIMIT 1"
} |
### INSTRUCTION
What is the original title of the Gypsy Magic film title used in nomination?
### INPUT
CREATE TABLE table_name_67 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
### OUTPUT
SELECT original_title FROM table_name_67 WHERE film_title_used_in_nomination = "gypsy magic" | {
"input": "CREATE TABLE table_name_67 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)",
"instruction": "What is the original title of the Gypsy Magic film title used in nomination?",
"output": "SELECT original_title FROM table_name_67 WHERE film_title_used_in_nomination = \"gypsy magic\""
} |
### INSTRUCTION
Which League Cup has a FA Cup of 5, and a Club of boston united, and a League smaller than 16?
### INPUT
CREATE TABLE table_name_18 (league INTEGER, fa_cup VARCHAR, club VARCHAR)
### OUTPUT
SELECT MAX(league) AS Cup FROM table_name_18 WHERE fa_cup = 5 AND club = "boston united" AND league < 16 | {
"input": "CREATE TABLE table_name_18 (league INTEGER, fa_cup VARCHAR, club VARCHAR)",
"instruction": "Which League Cup has a FA Cup of 5, and a Club of boston united, and a League smaller than 16?",
"output": "SELECT MAX(league) AS Cup FROM table_name_18 WHERE fa_cup = 5 AND club = \"boston united\" AND league < 16"
} |
### INSTRUCTION
When Richmond is the Away team, what did they score?
### INPUT
CREATE TABLE table_name_2 (away_team VARCHAR)
### OUTPUT
SELECT away_team AS score FROM table_name_2 WHERE away_team = "richmond" | {
"input": "CREATE TABLE table_name_2 (away_team VARCHAR)",
"instruction": "When Richmond is the Away team, what did they score?",
"output": "SELECT away_team AS score FROM table_name_2 WHERE away_team = \"richmond\""
} |
### INSTRUCTION
What is Sum of Score, when Player is Vijay Singh?
### INPUT
CREATE TABLE table_name_18 (score INTEGER, player VARCHAR)
### OUTPUT
SELECT SUM(score) FROM table_name_18 WHERE player = "vijay singh" | {
"input": "CREATE TABLE table_name_18 (score INTEGER, player VARCHAR)",
"instruction": "What is Sum of Score, when Player is Vijay Singh?",
"output": "SELECT SUM(score) FROM table_name_18 WHERE player = \"vijay singh\""
} |
### INSTRUCTION
Name the viewers for the episode directed by tony phelan
### INPUT
CREATE TABLE table_19501664_1 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
### OUTPUT
SELECT us_viewers__millions_ FROM table_19501664_1 WHERE directed_by = "Tony Phelan" | {
"input": "CREATE TABLE table_19501664_1 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)",
"instruction": "Name the viewers for the episode directed by tony phelan",
"output": "SELECT us_viewers__millions_ FROM table_19501664_1 WHERE directed_by = \"Tony Phelan\""
} |
### INSTRUCTION
What was the highest number of WJC Jews that had a WJC rank of 6 and a ARDA rank of more than 8?
### INPUT
CREATE TABLE table_name_1 (number_of_jews__wjc_ INTEGER, rank___wjc__ VARCHAR, rank__arda_ VARCHAR)
### OUTPUT
SELECT MAX(number_of_jews__wjc_) FROM table_name_1 WHERE rank___wjc__ = 6 AND rank__arda_ > 8 | {
"input": "CREATE TABLE table_name_1 (number_of_jews__wjc_ INTEGER, rank___wjc__ VARCHAR, rank__arda_ VARCHAR)",
"instruction": "What was the highest number of WJC Jews that had a WJC rank of 6 and a ARDA rank of more than 8?",
"output": "SELECT MAX(number_of_jews__wjc_) FROM table_name_1 WHERE rank___wjc__ = 6 AND rank__arda_ > 8"
} |
### INSTRUCTION
What is the highest number of loss with a 7 position and more than 45 goals?
### INPUT
CREATE TABLE table_name_73 (losses INTEGER, position VARCHAR, goals_for VARCHAR)
### OUTPUT
SELECT MAX(losses) FROM table_name_73 WHERE position = 7 AND goals_for > 45 | {
"input": "CREATE TABLE table_name_73 (losses INTEGER, position VARCHAR, goals_for VARCHAR)",
"instruction": "What is the highest number of loss with a 7 position and more than 45 goals?",
"output": "SELECT MAX(losses) FROM table_name_73 WHERE position = 7 AND goals_for > 45"
} |
### INSTRUCTION
What is the Record of the game on November 15 against Visitor Chicago Black Hawks with a Score of 1–3?
### INPUT
CREATE TABLE table_name_32 (record VARCHAR, date VARCHAR, score VARCHAR, visitor VARCHAR)
### OUTPUT
SELECT record FROM table_name_32 WHERE score = "1–3" AND visitor = "chicago black hawks" AND date = "november 15" | {
"input": "CREATE TABLE table_name_32 (record VARCHAR, date VARCHAR, score VARCHAR, visitor VARCHAR)",
"instruction": "What is the Record of the game on November 15 against Visitor Chicago Black Hawks with a Score of 1–3?",
"output": "SELECT record FROM table_name_32 WHERE score = \"1–3\" AND visitor = \"chicago black hawks\" AND date = \"november 15\""
} |
### INSTRUCTION
Do the Sky Calcio 5 channels have PPV?
### INPUT
CREATE TABLE table_15887683_4 (ppv VARCHAR, television_service VARCHAR)
### OUTPUT
SELECT ppv FROM table_15887683_4 WHERE television_service = "Sky Calcio 5" | {
"input": "CREATE TABLE table_15887683_4 (ppv VARCHAR, television_service VARCHAR)",
"instruction": "Do the Sky Calcio 5 channels have PPV?",
"output": "SELECT ppv FROM table_15887683_4 WHERE television_service = \"Sky Calcio 5\""
} |
### INSTRUCTION
What are the characters from the movie Suppressed Duck?
### INPUT
CREATE TABLE table_name_80 (characters VARCHAR, title VARCHAR)
### OUTPUT
SELECT characters FROM table_name_80 WHERE title = "suppressed duck" | {
"input": "CREATE TABLE table_name_80 (characters VARCHAR, title VARCHAR)",
"instruction": "What are the characters from the movie Suppressed Duck?",
"output": "SELECT characters FROM table_name_80 WHERE title = \"suppressed duck\""
} |
### INSTRUCTION
what is the name when the west or south terminus is ne 112 west of blue springs?
### INPUT
CREATE TABLE table_name_63 (name VARCHAR, west_or_south_terminus VARCHAR)
### OUTPUT
SELECT name FROM table_name_63 WHERE west_or_south_terminus = "ne 112 west of blue springs" | {
"input": "CREATE TABLE table_name_63 (name VARCHAR, west_or_south_terminus VARCHAR)",
"instruction": "what is the name when the west or south terminus is ne 112 west of blue springs?",
"output": "SELECT name FROM table_name_63 WHERE west_or_south_terminus = \"ne 112 west of blue springs\""
} |
### INSTRUCTION
Who is the Japanese voice actor of the Battle of the Planets of Keyop?
### INPUT
CREATE TABLE table_name_87 (japanese_voice_actor VARCHAR, battle_of_the_planets VARCHAR)
### OUTPUT
SELECT japanese_voice_actor FROM table_name_87 WHERE battle_of_the_planets = "keyop" | {
"input": "CREATE TABLE table_name_87 (japanese_voice_actor VARCHAR, battle_of_the_planets VARCHAR)",
"instruction": "Who is the Japanese voice actor of the Battle of the Planets of Keyop?",
"output": "SELECT japanese_voice_actor FROM table_name_87 WHERE battle_of_the_planets = \"keyop\""
} |
### INSTRUCTION
How much Voltage (kV) has a Country of argentina, and a Power (MW) larger than 30, and a Supply point of yacyretá?
### INPUT
CREATE TABLE table_name_44 (voltage__kv_ VARCHAR, supply_point VARCHAR, country VARCHAR, power__mw_ VARCHAR)
### OUTPUT
SELECT COUNT(voltage__kv_) FROM table_name_44 WHERE country = "argentina" AND power__mw_ > 30 AND supply_point = "yacyretá" | {
"input": "CREATE TABLE table_name_44 (voltage__kv_ VARCHAR, supply_point VARCHAR, country VARCHAR, power__mw_ VARCHAR)",
"instruction": "How much Voltage (kV) has a Country of argentina, and a Power (MW) larger than 30, and a Supply point of yacyretá?",
"output": "SELECT COUNT(voltage__kv_) FROM table_name_44 WHERE country = \"argentina\" AND power__mw_ > 30 AND supply_point = \"yacyretá\""
} |
### INSTRUCTION
What team placed second during the season where Western Australia placed fifth, South Australia placed sixth, and Tasmania placed fourth?
### INPUT
CREATE TABLE table_name_2 (second VARCHAR, fourth VARCHAR, fifth VARCHAR, sixth VARCHAR)
### OUTPUT
SELECT second FROM table_name_2 WHERE fifth = "western australia" AND sixth = "south australia" AND fourth = "tasmania" | {
"input": "CREATE TABLE table_name_2 (second VARCHAR, fourth VARCHAR, fifth VARCHAR, sixth VARCHAR)",
"instruction": "What team placed second during the season where Western Australia placed fifth, South Australia placed sixth, and Tasmania placed fourth?",
"output": "SELECT second FROM table_name_2 WHERE fifth = \"western australia\" AND sixth = \"south australia\" AND fourth = \"tasmania\""
} |
### INSTRUCTION
Name the number of troops for troops per $1 billion being 2.45
### INPUT
CREATE TABLE table_30108346_1 (number_of_troops VARCHAR, troops_per_$1_billion___usd___gdp VARCHAR)
### OUTPUT
SELECT COUNT(number_of_troops) FROM table_30108346_1 WHERE troops_per_$1_billion___usd___gdp = "2.45" | {
"input": "CREATE TABLE table_30108346_1 (number_of_troops VARCHAR, troops_per_$1_billion___usd___gdp VARCHAR)",
"instruction": "Name the number of troops for troops per $1 billion being 2.45",
"output": "SELECT COUNT(number_of_troops) FROM table_30108346_1 WHERE troops_per_$1_billion___usd___gdp = \"2.45\""
} |
### INSTRUCTION
What is 2001, when 1989 is "A", and when Tournament is "U.S. Open"?
### INPUT
CREATE TABLE table_name_94 (tournament VARCHAR)
### OUTPUT
SELECT 2001 FROM table_name_94 WHERE 1989 = "a" AND tournament = "u.s. open" | {
"input": "CREATE TABLE table_name_94 (tournament VARCHAR)",
"instruction": "What is 2001, when 1989 is \"A\", and when Tournament is \"U.S. Open\"?",
"output": "SELECT 2001 FROM table_name_94 WHERE 1989 = \"a\" AND tournament = \"u.s. open\""
} |
### INSTRUCTION
What is the Title, when the Lyricist(s) is Yarosake, and when the Composer(s) is Yarosake?
### INPUT
CREATE TABLE table_name_69 (title VARCHAR, lyricist_s_ VARCHAR, composer_s_ VARCHAR)
### OUTPUT
SELECT title FROM table_name_69 WHERE lyricist_s_ = "yarosake" AND composer_s_ = "yarosake" | {
"input": "CREATE TABLE table_name_69 (title VARCHAR, lyricist_s_ VARCHAR, composer_s_ VARCHAR)",
"instruction": "What is the Title, when the Lyricist(s) is Yarosake, and when the Composer(s) is Yarosake?",
"output": "SELECT title FROM table_name_69 WHERE lyricist_s_ = \"yarosake\" AND composer_s_ = \"yarosake\""
} |
### INSTRUCTION
Result of w 16-10* o.t. had what attendance?
### INPUT
CREATE TABLE table_name_27 (attendance VARCHAR, result VARCHAR)
### OUTPUT
SELECT attendance FROM table_name_27 WHERE result = "w 16-10* o.t." | {
"input": "CREATE TABLE table_name_27 (attendance VARCHAR, result VARCHAR)",
"instruction": "Result of w 16-10* o.t. had what attendance?",
"output": "SELECT attendance FROM table_name_27 WHERE result = \"w 16-10* o.t.\""
} |
### INSTRUCTION
What is Left Office, when Took Office is "11 June 2001", and when Minister is "Mirko Tremaglia"?
### INPUT
CREATE TABLE table_name_47 (left_office VARCHAR, took_office VARCHAR, minister VARCHAR)
### OUTPUT
SELECT left_office FROM table_name_47 WHERE took_office = "11 june 2001" AND minister = "mirko tremaglia" | {
"input": "CREATE TABLE table_name_47 (left_office VARCHAR, took_office VARCHAR, minister VARCHAR)",
"instruction": "What is Left Office, when Took Office is \"11 June 2001\", and when Minister is \"Mirko Tremaglia\"?",
"output": "SELECT left_office FROM table_name_47 WHERE took_office = \"11 june 2001\" AND minister = \"mirko tremaglia\""
} |
### INSTRUCTION
Which sport has most number of students on scholarship?
### INPUT
CREATE TABLE Sportsinfo (sportname VARCHAR, onscholarship VARCHAR)
### OUTPUT
SELECT sportname FROM Sportsinfo WHERE onscholarship = 'Y' GROUP BY sportname ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Sportsinfo (sportname VARCHAR, onscholarship VARCHAR)",
"instruction": "Which sport has most number of students on scholarship?",
"output": "SELECT sportname FROM Sportsinfo WHERE onscholarship = 'Y' GROUP BY sportname ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
How many wins have a Series of formula nippon, and a Position of 8th?
### INPUT
CREATE TABLE table_name_78 (wins VARCHAR, series VARCHAR, position VARCHAR)
### OUTPUT
SELECT wins FROM table_name_78 WHERE series = "formula nippon" AND position = "8th" | {
"input": "CREATE TABLE table_name_78 (wins VARCHAR, series VARCHAR, position VARCHAR)",
"instruction": "How many wins have a Series of formula nippon, and a Position of 8th?",
"output": "SELECT wins FROM table_name_78 WHERE series = \"formula nippon\" AND position = \"8th\""
} |
### INSTRUCTION
What is the average value for 2005, when the value for 2008 is greater than 0, when the value for 2007 is greater than 310, when the Average annual is 767, and when the Total is greater than 4,597?
### INPUT
CREATE TABLE table_name_38 (total VARCHAR, average_annual VARCHAR)
### OUTPUT
SELECT AVG(2005) FROM table_name_38 WHERE 2008 > 0 AND 2007 > 310 AND average_annual = 767 AND total > 4 OFFSET 597 | {
"input": "CREATE TABLE table_name_38 (total VARCHAR, average_annual VARCHAR)",
"instruction": "What is the average value for 2005, when the value for 2008 is greater than 0, when the value for 2007 is greater than 310, when the Average annual is 767, and when the Total is greater than 4,597?",
"output": "SELECT AVG(2005) FROM table_name_38 WHERE 2008 > 0 AND 2007 > 310 AND average_annual = 767 AND total > 4 OFFSET 597"
} |
### INSTRUCTION
How many appearances were made by people that had 5 goals and less than 7 rank?
### INPUT
CREATE TABLE table_name_95 (appearances VARCHAR, goals VARCHAR, rank VARCHAR)
### OUTPUT
SELECT COUNT(appearances) FROM table_name_95 WHERE goals = 5 AND rank < 7 | {
"input": "CREATE TABLE table_name_95 (appearances VARCHAR, goals VARCHAR, rank VARCHAR)",
"instruction": "How many appearances were made by people that had 5 goals and less than 7 rank?",
"output": "SELECT COUNT(appearances) FROM table_name_95 WHERE goals = 5 AND rank < 7"
} |
### INSTRUCTION
What is Lowest Crowd, when Home Team is Brisbane Lions?
### INPUT
CREATE TABLE table_name_5 (crowd INTEGER, home_team VARCHAR)
### OUTPUT
SELECT MIN(crowd) FROM table_name_5 WHERE home_team = "brisbane lions" | {
"input": "CREATE TABLE table_name_5 (crowd INTEGER, home_team VARCHAR)",
"instruction": "What is Lowest Crowd, when Home Team is Brisbane Lions?",
"output": "SELECT MIN(crowd) FROM table_name_5 WHERE home_team = \"brisbane lions\""
} |
### INSTRUCTION
A nucleus that is blue/black will specifically stain what?
### INPUT
CREATE TABLE table_13570_1 (specifically_stains VARCHAR, nucleus VARCHAR)
### OUTPUT
SELECT specifically_stains FROM table_13570_1 WHERE nucleus = "Blue/black" | {
"input": "CREATE TABLE table_13570_1 (specifically_stains VARCHAR, nucleus VARCHAR)",
"instruction": "A nucleus that is blue/black will specifically stain what?",
"output": "SELECT specifically_stains FROM table_13570_1 WHERE nucleus = \"Blue/black\""
} |
### INSTRUCTION
What is the record for the game against the New England Patriots with a recap?
### INPUT
CREATE TABLE table_name_90 (record VARCHAR, nfl_recap VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT record FROM table_name_90 WHERE nfl_recap = "recap" AND opponent = "new england patriots" | {
"input": "CREATE TABLE table_name_90 (record VARCHAR, nfl_recap VARCHAR, opponent VARCHAR)",
"instruction": "What is the record for the game against the New England Patriots with a recap?",
"output": "SELECT record FROM table_name_90 WHERE nfl_recap = \"recap\" AND opponent = \"new england patriots\""
} |
### INSTRUCTION
What is the sum of Year opened when the span feet is more than 1247, and the spam metres is 384?
### INPUT
CREATE TABLE table_name_13 (year_opened INTEGER, span_feet VARCHAR, span_metres VARCHAR)
### OUTPUT
SELECT SUM(year_opened) FROM table_name_13 WHERE span_feet > 1247 AND span_metres = 384 | {
"input": "CREATE TABLE table_name_13 (year_opened INTEGER, span_feet VARCHAR, span_metres VARCHAR)",
"instruction": "What is the sum of Year opened when the span feet is more than 1247, and the spam metres is 384?",
"output": "SELECT SUM(year_opened) FROM table_name_13 WHERE span_feet > 1247 AND span_metres = 384"
} |
### INSTRUCTION
What is the Purpose of the Callsign with a Freq currently of 4rph?
### INPUT
CREATE TABLE table_name_43 (purpose VARCHAR, freq_currently VARCHAR)
### OUTPUT
SELECT purpose FROM table_name_43 WHERE freq_currently = "4rph" | {
"input": "CREATE TABLE table_name_43 (purpose VARCHAR, freq_currently VARCHAR)",
"instruction": "What is the Purpose of the Callsign with a Freq currently of 4rph?",
"output": "SELECT purpose FROM table_name_43 WHERE freq_currently = \"4rph\""
} |
### INSTRUCTION
What is the name of the player for the 2010-2011 season, from a Free Agency and is Number 14?
### INPUT
CREATE TABLE table_name_13 (name VARCHAR, number VARCHAR, season VARCHAR, acquisition_via VARCHAR)
### OUTPUT
SELECT name FROM table_name_13 WHERE season = "2010-2011" AND acquisition_via = "free agency" AND number = "14" | {
"input": "CREATE TABLE table_name_13 (name VARCHAR, number VARCHAR, season VARCHAR, acquisition_via VARCHAR)",
"instruction": "What is the name of the player for the 2010-2011 season, from a Free Agency and is Number 14?",
"output": "SELECT name FROM table_name_13 WHERE season = \"2010-2011\" AND acquisition_via = \"free agency\" AND number = \"14\""
} |
### INSTRUCTION
Name the game cost for merged with new york central to form penn central
### INPUT
CREATE TABLE table_243664_1 (game_cost VARCHAR, real_life_eventual_outcome VARCHAR)
### OUTPUT
SELECT game_cost FROM table_243664_1 WHERE real_life_eventual_outcome = "Merged with New York Central to form Penn Central" | {
"input": "CREATE TABLE table_243664_1 (game_cost VARCHAR, real_life_eventual_outcome VARCHAR)",
"instruction": "Name the game cost for merged with new york central to form penn central",
"output": "SELECT game_cost FROM table_243664_1 WHERE real_life_eventual_outcome = \"Merged with New York Central to form Penn Central\""
} |
### INSTRUCTION
Find the name and id of the item with the highest average rating.
### INPUT
CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)
### OUTPUT
SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) DESC LIMIT 1 | {
"input": "CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER)",
"instruction": "Find the name and id of the item with the highest average rating.",
"output": "SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) DESC LIMIT 1"
} |
### INSTRUCTION
Find the name of the most popular party form.
### INPUT
CREATE TABLE party_forms (form_id VARCHAR); CREATE TABLE forms (form_name VARCHAR, form_id VARCHAR)
### OUTPUT
SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id = t2.form_id GROUP BY t2.form_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE party_forms (form_id VARCHAR); CREATE TABLE forms (form_name VARCHAR, form_id VARCHAR)",
"instruction": "Find the name of the most popular party form.",
"output": "SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id = t2.form_id GROUP BY t2.form_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Which driver had points over 252 in the season of 2012 with a percentage of possible points at 55.60%?
### INPUT
CREATE TABLE table_name_40 (driver VARCHAR, percentage_of_possible_points VARCHAR, points VARCHAR, season VARCHAR)
### OUTPUT
SELECT driver FROM table_name_40 WHERE points > 252 AND season = "2012" AND percentage_of_possible_points = "55.60%" | {
"input": "CREATE TABLE table_name_40 (driver VARCHAR, percentage_of_possible_points VARCHAR, points VARCHAR, season VARCHAR)",
"instruction": "Which driver had points over 252 in the season of 2012 with a percentage of possible points at 55.60%?",
"output": "SELECT driver FROM table_name_40 WHERE points > 252 AND season = \"2012\" AND percentage_of_possible_points = \"55.60%\""
} |
### INSTRUCTION
Which Franchise has a Percentage under 0.707, a Year larger than 1931, and the Finish was won 1998 World Series?
### INPUT
CREATE TABLE table_name_29 (franchise VARCHAR, finish VARCHAR, percentage VARCHAR, year VARCHAR)
### OUTPUT
SELECT franchise FROM table_name_29 WHERE percentage < 0.707 AND year > 1931 AND finish = "won 1998 world series" | {
"input": "CREATE TABLE table_name_29 (franchise VARCHAR, finish VARCHAR, percentage VARCHAR, year VARCHAR)",
"instruction": "Which Franchise has a Percentage under 0.707, a Year larger than 1931, and the Finish was won 1998 World Series?",
"output": "SELECT franchise FROM table_name_29 WHERE percentage < 0.707 AND year > 1931 AND finish = \"won 1998 world series\""
} |
### INSTRUCTION
What are all the title directed by reginald hudlin
### INPUT
CREATE TABLE table_21994729_3 (title VARCHAR, directed_by VARCHAR)
### OUTPUT
SELECT COUNT(title) FROM table_21994729_3 WHERE directed_by = "Reginald Hudlin" | {
"input": "CREATE TABLE table_21994729_3 (title VARCHAR, directed_by VARCHAR)",
"instruction": "What are all the title directed by reginald hudlin",
"output": "SELECT COUNT(title) FROM table_21994729_3 WHERE directed_by = \"Reginald Hudlin\""
} |
### INSTRUCTION
What are the names of the tourist attractions and the dates when the tourists named Vincent or Vivian visited there?
### INPUT
CREATE TABLE VISITORS (Tourist_ID VARCHAR, Tourist_Details VARCHAR); CREATE TABLE VISITS (Visit_Date VARCHAR, Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)
### OUTPUT
SELECT T1.Name, T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = "Vincent" OR T2.Tourist_Details = "Vivian" | {
"input": "CREATE TABLE VISITORS (Tourist_ID VARCHAR, Tourist_Details VARCHAR); CREATE TABLE VISITS (Visit_Date VARCHAR, Tourist_Attraction_ID VARCHAR, Tourist_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)",
"instruction": "What are the names of the tourist attractions and the dates when the tourists named Vincent or Vivian visited there?",
"output": "SELECT T1.Name, T3.Visit_Date FROM Tourist_Attractions AS T1 JOIN VISITORS AS T2 JOIN VISITS AS T3 ON T1.Tourist_Attraction_ID = T3.Tourist_Attraction_ID AND T2.Tourist_ID = T3.Tourist_ID WHERE T2.Tourist_Details = \"Vincent\" OR T2.Tourist_Details = \"Vivian\""
} |
### INSTRUCTION
what's the number of deputies with number of votes received being smaller than 1549176.2765483726 and election date being 1969
### INPUT
CREATE TABLE table_13746866_2 (number_of_deputies VARCHAR, number_of_votes_received VARCHAR, election_date VARCHAR)
### OUTPUT
SELECT number_of_deputies FROM table_13746866_2 WHERE number_of_votes_received < 1549176.2765483726 AND election_date = 1969 | {
"input": "CREATE TABLE table_13746866_2 (number_of_deputies VARCHAR, number_of_votes_received VARCHAR, election_date VARCHAR)",
"instruction": "what's the number of deputies with number of votes received being smaller than 1549176.2765483726 and election date being 1969",
"output": "SELECT number_of_deputies FROM table_13746866_2 WHERE number_of_votes_received < 1549176.2765483726 AND election_date = 1969"
} |
### INSTRUCTION
What is the call sign for 90.9 FM which is in Florida?
### INPUT
CREATE TABLE table_name_87 (call_sign VARCHAR, state VARCHAR, frequency VARCHAR)
### OUTPUT
SELECT call_sign FROM table_name_87 WHERE state = "florida" AND frequency = "90.9 fm" | {
"input": "CREATE TABLE table_name_87 (call_sign VARCHAR, state VARCHAR, frequency VARCHAR)",
"instruction": "What is the call sign for 90.9 FM which is in Florida?",
"output": "SELECT call_sign FROM table_name_87 WHERE state = \"florida\" AND frequency = \"90.9 fm\""
} |
### INSTRUCTION
Which skip (club) had 31 PA and 9 blank ends?
### INPUT
CREATE TABLE table_29546030_2 (skip__club_ VARCHAR, pa VARCHAR, blank_ends VARCHAR)
### OUTPUT
SELECT skip__club_ FROM table_29546030_2 WHERE pa = 31 AND blank_ends = 9 | {
"input": "CREATE TABLE table_29546030_2 (skip__club_ VARCHAR, pa VARCHAR, blank_ends VARCHAR)",
"instruction": "Which skip (club) had 31 PA and 9 blank ends?",
"output": "SELECT skip__club_ FROM table_29546030_2 WHERE pa = 31 AND blank_ends = 9"
} |
### INSTRUCTION
Who directed Predator that was filmed with Fox Studio?
### INPUT
CREATE TABLE table_name_29 (director VARCHAR, studio VARCHAR, title VARCHAR)
### OUTPUT
SELECT director FROM table_name_29 WHERE studio = "fox" AND title = "predator" | {
"input": "CREATE TABLE table_name_29 (director VARCHAR, studio VARCHAR, title VARCHAR)",
"instruction": "Who directed Predator that was filmed with Fox Studio?",
"output": "SELECT director FROM table_name_29 WHERE studio = \"fox\" AND title = \"predator\""
} |
### INSTRUCTION
When did svishtov , bulgaria disband?
### INPUT
CREATE TABLE table_242785_1 (date_disband VARCHAR, main_legionary_base VARCHAR)
### OUTPUT
SELECT date_disband FROM table_242785_1 WHERE main_legionary_base = "Svishtov , Bulgaria" | {
"input": "CREATE TABLE table_242785_1 (date_disband VARCHAR, main_legionary_base VARCHAR)",
"instruction": "When did svishtov , bulgaria disband?",
"output": "SELECT date_disband FROM table_242785_1 WHERE main_legionary_base = \"Svishtov , Bulgaria\""
} |
### INSTRUCTION
Which College/Junior/Club Team (League) has a Position of right wing, and a Round smaller than 3?
### INPUT
CREATE TABLE table_name_48 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR)
### OUTPUT
SELECT college_junior_club_team__league_ FROM table_name_48 WHERE position = "right wing" AND round < 3 | {
"input": "CREATE TABLE table_name_48 (college_junior_club_team__league_ VARCHAR, position VARCHAR, round VARCHAR)",
"instruction": "Which College/Junior/Club Team (League) has a Position of right wing, and a Round smaller than 3?",
"output": "SELECT college_junior_club_team__league_ FROM table_name_48 WHERE position = \"right wing\" AND round < 3"
} |
### INSTRUCTION
What genre is revolving doors of vengeance 酒店風雲?
### INPUT
CREATE TABLE table_name_30 (genre VARCHAR, english_title__chinese_title_ VARCHAR)
### OUTPUT
SELECT genre FROM table_name_30 WHERE english_title__chinese_title_ = "revolving doors of vengeance 酒店風雲" | {
"input": "CREATE TABLE table_name_30 (genre VARCHAR, english_title__chinese_title_ VARCHAR)",
"instruction": "What genre is revolving doors of vengeance 酒店風雲?",
"output": "SELECT genre FROM table_name_30 WHERE english_title__chinese_title_ = \"revolving doors of vengeance 酒店風雲\""
} |
### INSTRUCTION
What is the Latitude when the Diameter (km) is 13km, and the Longitude is 72.9° e?
### INPUT
CREATE TABLE table_name_94 (latitude VARCHAR, diameter__km_ VARCHAR, longitude VARCHAR)
### OUTPUT
SELECT latitude FROM table_name_94 WHERE diameter__km_ = "13km" AND longitude = "72.9° e" | {
"input": "CREATE TABLE table_name_94 (latitude VARCHAR, diameter__km_ VARCHAR, longitude VARCHAR)",
"instruction": "What is the Latitude when the Diameter (km) is 13km, and the Longitude is 72.9° e?",
"output": "SELECT latitude FROM table_name_94 WHERE diameter__km_ = \"13km\" AND longitude = \"72.9° e\""
} |
### INSTRUCTION
what is the lowest grid when the time retired is clutch, the driver is peter collins and the laps is smaller than 26?
### INPUT
CREATE TABLE table_name_88 (grid INTEGER, laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
### OUTPUT
SELECT MIN(grid) FROM table_name_88 WHERE time_retired = "clutch" AND driver = "peter collins" AND laps < 26 | {
"input": "CREATE TABLE table_name_88 (grid INTEGER, laps VARCHAR, time_retired VARCHAR, driver VARCHAR)",
"instruction": "what is the lowest grid when the time retired is clutch, the driver is peter collins and the laps is smaller than 26?",
"output": "SELECT MIN(grid) FROM table_name_88 WHERE time_retired = \"clutch\" AND driver = \"peter collins\" AND laps < 26"
} |
### INSTRUCTION
How many employees are living in Canada?
### INPUT
CREATE TABLE employees (country VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM employees WHERE country = "Canada" | {
"input": "CREATE TABLE employees (country VARCHAR)",
"instruction": "How many employees are living in Canada?",
"output": "SELECT COUNT(*) FROM employees WHERE country = \"Canada\""
} |
### INSTRUCTION
What is Package/Option, when HDTV is no, when Language is Italian, and when Television service is cartello promozionale sky hd?
### INPUT
CREATE TABLE table_name_43 (package_option VARCHAR, television_service VARCHAR, hdtv VARCHAR, language VARCHAR)
### OUTPUT
SELECT package_option FROM table_name_43 WHERE hdtv = "no" AND language = "italian" AND television_service = "cartello promozionale sky hd" | {
"input": "CREATE TABLE table_name_43 (package_option VARCHAR, television_service VARCHAR, hdtv VARCHAR, language VARCHAR)",
"instruction": "What is Package/Option, when HDTV is no, when Language is Italian, and when Television service is cartello promozionale sky hd?",
"output": "SELECT package_option FROM table_name_43 WHERE hdtv = \"no\" AND language = \"italian\" AND television_service = \"cartello promozionale sky hd\""
} |
### INSTRUCTION
List the names, color descriptions and product descriptions of products with category "Herbs".
### INPUT
CREATE TABLE Ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (product_name VARCHAR, product_description VARCHAR, color_code VARCHAR)
### OUTPUT
SELECT T1.product_name, T2.color_description, T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = "Herbs" | {
"input": "CREATE TABLE Ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (product_name VARCHAR, product_description VARCHAR, color_code VARCHAR)",
"instruction": "List the names, color descriptions and product descriptions of products with category \"Herbs\".",
"output": "SELECT T1.product_name, T2.color_description, T1.product_description FROM products AS T1 JOIN Ref_colors AS T2 ON T1.color_code = T2.color_code WHERE product_category_code = \"Herbs\""
} |
### INSTRUCTION
What is the total grant amount of the organisations described as research?
### INPUT
CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Grants (organisation_id VARCHAR); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR)
### OUTPUT
SELECT SUM(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type = T3.organisation_type WHERE T3.organisation_type_description = 'Research' | {
"input": "CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Grants (organisation_id VARCHAR); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR)",
"instruction": "What is the total grant amount of the organisations described as research?",
"output": "SELECT SUM(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type = T3.organisation_type WHERE T3.organisation_type_description = 'Research'"
} |
### INSTRUCTION
how many na -350- with title and source being bokumo sekai wo sukuitai: battle tournament
### INPUT
CREATE TABLE table_13663434_1 (na__350_ VARCHAR, title_and_source VARCHAR)
### OUTPUT
SELECT COUNT(na__350_) FROM table_13663434_1 WHERE title_and_source = "Bokumo Sekai wo Sukuitai: Battle Tournament" | {
"input": "CREATE TABLE table_13663434_1 (na__350_ VARCHAR, title_and_source VARCHAR)",
"instruction": " how many na -350- with title and source being bokumo sekai wo sukuitai: battle tournament",
"output": "SELECT COUNT(na__350_) FROM table_13663434_1 WHERE title_and_source = \"Bokumo Sekai wo Sukuitai: Battle Tournament\""
} |
### INSTRUCTION
What's the format of the season that ended on June 25?
### INPUT
CREATE TABLE table_1949994_7 (format VARCHAR, end_date VARCHAR)
### OUTPUT
SELECT format FROM table_1949994_7 WHERE end_date = "June 25" | {
"input": "CREATE TABLE table_1949994_7 (format VARCHAR, end_date VARCHAR)",
"instruction": "What's the format of the season that ended on June 25?",
"output": "SELECT format FROM table_1949994_7 WHERE end_date = \"June 25\""
} |
### INSTRUCTION
Who directed the episode that aired November 21, 2003?
### INPUT
CREATE TABLE table_28859177_2 (directed_by VARCHAR, original_air_date VARCHAR)
### OUTPUT
SELECT directed_by FROM table_28859177_2 WHERE original_air_date = "November 21, 2003" | {
"input": "CREATE TABLE table_28859177_2 (directed_by VARCHAR, original_air_date VARCHAR)",
"instruction": "Who directed the episode that aired November 21, 2003?",
"output": "SELECT directed_by FROM table_28859177_2 WHERE original_air_date = \"November 21, 2003\""
} |
### INSTRUCTION
What is the runner-up record where winner record is Ireland 59 points?
### INPUT
CREATE TABLE table_28601467_1 (runner_up VARCHAR, winner VARCHAR)
### OUTPUT
SELECT runner_up FROM table_28601467_1 WHERE winner = "Ireland 59 points" | {
"input": "CREATE TABLE table_28601467_1 (runner_up VARCHAR, winner VARCHAR)",
"instruction": "What is the runner-up record where winner record is Ireland 59 points?",
"output": "SELECT runner_up FROM table_28601467_1 WHERE winner = \"Ireland 59 points\""
} |
### INSTRUCTION
Name the year for sammo hung for ip man 2
### INPUT
CREATE TABLE table_15301258_1 (year VARCHAR, best_supporting_actor VARCHAR)
### OUTPUT
SELECT year FROM table_15301258_1 WHERE best_supporting_actor = "Sammo Hung for Ip Man 2" | {
"input": "CREATE TABLE table_15301258_1 (year VARCHAR, best_supporting_actor VARCHAR)",
"instruction": "Name the year for sammo hung for ip man 2",
"output": "SELECT year FROM table_15301258_1 WHERE best_supporting_actor = \"Sammo Hung for Ip Man 2\""
} |
### INSTRUCTION
What is the # for the episode with a Production code of 3T7057?
### INPUT
CREATE TABLE table_13183076_3 (_number VARCHAR, production_code VARCHAR)
### OUTPUT
SELECT _number FROM table_13183076_3 WHERE production_code = "3T7057" | {
"input": "CREATE TABLE table_13183076_3 (_number VARCHAR, production_code VARCHAR)",
"instruction": "What is the # for the episode with a Production code of 3T7057?",
"output": "SELECT _number FROM table_13183076_3 WHERE production_code = \"3T7057\""
} |
### INSTRUCTION
with name meridian condominiums what is number of floors?
### INPUT
CREATE TABLE table_name_19 (floors INTEGER, name VARCHAR)
### OUTPUT
SELECT AVG(floors) FROM table_name_19 WHERE name = "meridian condominiums" | {
"input": "CREATE TABLE table_name_19 (floors INTEGER, name VARCHAR)",
"instruction": "with name meridian condominiums what is number of floors?",
"output": "SELECT AVG(floors) FROM table_name_19 WHERE name = \"meridian condominiums\""
} |
### INSTRUCTION
Name the least episode for november 29, 1985
### INPUT
CREATE TABLE table_20967430_2 (ep INTEGER, original_air_date VARCHAR)
### OUTPUT
SELECT MIN(ep) FROM table_20967430_2 WHERE original_air_date = "November 29, 1985" | {
"input": "CREATE TABLE table_20967430_2 (ep INTEGER, original_air_date VARCHAR)",
"instruction": "Name the least episode for november 29, 1985",
"output": "SELECT MIN(ep) FROM table_20967430_2 WHERE original_air_date = \"November 29, 1985\""
} |
### INSTRUCTION
How many times is player Stanislas Wawrinka on the list?
### INPUT
CREATE TABLE table_26218783_6 (points VARCHAR, player VARCHAR)
### OUTPUT
SELECT COUNT(points) AS defending FROM table_26218783_6 WHERE player = "Stanislas Wawrinka" | {
"input": "CREATE TABLE table_26218783_6 (points VARCHAR, player VARCHAR)",
"instruction": "How many times is player Stanislas Wawrinka on the list?",
"output": "SELECT COUNT(points) AS defending FROM table_26218783_6 WHERE player = \"Stanislas Wawrinka\""
} |
### INSTRUCTION
Which Result has a Goal larger than 6, and a Score of 1–0, and a Competition of friendly, and a Date of may 31, 1998?
### INPUT
CREATE TABLE table_name_1 (result VARCHAR, date VARCHAR, competition VARCHAR, goal VARCHAR, score VARCHAR)
### OUTPUT
SELECT result FROM table_name_1 WHERE goal > 6 AND score = "1–0" AND competition = "friendly" AND date = "may 31, 1998" | {
"input": "CREATE TABLE table_name_1 (result VARCHAR, date VARCHAR, competition VARCHAR, goal VARCHAR, score VARCHAR)",
"instruction": "Which Result has a Goal larger than 6, and a Score of 1–0, and a Competition of friendly, and a Date of may 31, 1998?",
"output": "SELECT result FROM table_name_1 WHERE goal > 6 AND score = \"1–0\" AND competition = \"friendly\" AND date = \"may 31, 1998\""
} |
### INSTRUCTION
Name the number of high rebounds for l 92–96 (ot)
### INPUT
CREATE TABLE table_22879262_14 (high_rebounds VARCHAR, score VARCHAR)
### OUTPUT
SELECT COUNT(high_rebounds) FROM table_22879262_14 WHERE score = "L 92–96 (OT)" | {
"input": "CREATE TABLE table_22879262_14 (high_rebounds VARCHAR, score VARCHAR)",
"instruction": "Name the number of high rebounds for l 92–96 (ot)",
"output": "SELECT COUNT(high_rebounds) FROM table_22879262_14 WHERE score = \"L 92–96 (OT)\""
} |
### INSTRUCTION
I want the average for evening gown of 7.52 and swimsuit larger than 7.78
### INPUT
CREATE TABLE table_name_54 (average INTEGER, evening_gown VARCHAR, swimsuit VARCHAR)
### OUTPUT
SELECT AVG(average) FROM table_name_54 WHERE evening_gown = 7.52 AND swimsuit > 7.78 | {
"input": "CREATE TABLE table_name_54 (average INTEGER, evening_gown VARCHAR, swimsuit VARCHAR)",
"instruction": "I want the average for evening gown of 7.52 and swimsuit larger than 7.78",
"output": "SELECT AVG(average) FROM table_name_54 WHERE evening_gown = 7.52 AND swimsuit > 7.78"
} |
### INSTRUCTION
What is the average Area (in km²), when Markatal is less than 0?
### INPUT
CREATE TABLE table_name_81 (area__in_km²_ INTEGER, markatal INTEGER)
### OUTPUT
SELECT AVG(area__in_km²_) FROM table_name_81 WHERE markatal < 0 | {
"input": "CREATE TABLE table_name_81 (area__in_km²_ INTEGER, markatal INTEGER)",
"instruction": "What is the average Area (in km²), when Markatal is less than 0?",
"output": "SELECT AVG(area__in_km²_) FROM table_name_81 WHERE markatal < 0"
} |
### INSTRUCTION
What is the sum of the area values for districts having density over 462 and websites of http://krishna.nic.in/?
### INPUT
CREATE TABLE table_name_19 (area__km²_ INTEGER, density___km²_ VARCHAR, official_website VARCHAR)
### OUTPUT
SELECT SUM(area__km²_) FROM table_name_19 WHERE density___km²_ > 462 AND official_website = "http://krishna.nic.in/" | {
"input": "CREATE TABLE table_name_19 (area__km²_ INTEGER, density___km²_ VARCHAR, official_website VARCHAR)",
"instruction": "What is the sum of the area values for districts having density over 462 and websites of http://krishna.nic.in/?",
"output": "SELECT SUM(area__km²_) FROM table_name_19 WHERE density___km²_ > 462 AND official_website = \"http://krishna.nic.in/\""
} |
### INSTRUCTION
Who led team classification during the stage whose winner was Chris Horner?
### INPUT
CREATE TABLE table_26257223_13 (team_classification VARCHAR, winner VARCHAR)
### OUTPUT
SELECT team_classification FROM table_26257223_13 WHERE winner = "Chris Horner" | {
"input": "CREATE TABLE table_26257223_13 (team_classification VARCHAR, winner VARCHAR)",
"instruction": "Who led team classification during the stage whose winner was Chris Horner?",
"output": "SELECT team_classification FROM table_26257223_13 WHERE winner = \"Chris Horner\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.