text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
What is the season number of the episode written by Matt Witten , Richard Sweren?
### INPUT
CREATE TABLE table_2618152_1 (no_in_season VARCHAR, written_by VARCHAR)
### OUTPUT
SELECT no_in_season FROM table_2618152_1 WHERE written_by = "Matt Witten , Richard Sweren" | {
"input": "CREATE TABLE table_2618152_1 (no_in_season VARCHAR, written_by VARCHAR)",
"instruction": "What is the season number of the episode written by Matt Witten , Richard Sweren?",
"output": "SELECT no_in_season FROM table_2618152_1 WHERE written_by = \"Matt Witten , Richard Sweren\""
} |
### INSTRUCTION
What is the highest evening gown score of the contestant from Tennessee with an interview score larger than 9.36 and an average larger than 9.75 have?
### INPUT
CREATE TABLE table_name_31 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, country VARCHAR)
### OUTPUT
SELECT MAX(evening_gown) FROM table_name_31 WHERE interview > 9.36 AND country = "tennessee" AND average > 9.75 | {
"input": "CREATE TABLE table_name_31 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, country VARCHAR)",
"instruction": "What is the highest evening gown score of the contestant from Tennessee with an interview score larger than 9.36 and an average larger than 9.75 have?",
"output": "SELECT MAX(evening_gown) FROM table_name_31 WHERE interview > 9.36 AND country = \"tennessee\" AND average > 9.75"
} |
### INSTRUCTION
Name the team where the date is november 17
### INPUT
CREATE TABLE table_17355716_5 (team VARCHAR, date VARCHAR)
### OUTPUT
SELECT team FROM table_17355716_5 WHERE date = "November 17" | {
"input": "CREATE TABLE table_17355716_5 (team VARCHAR, date VARCHAR)",
"instruction": "Name the team where the date is november 17",
"output": "SELECT team FROM table_17355716_5 WHERE date = \"November 17\""
} |
### INSTRUCTION
In which league would you find the player with a comp percentage of 54.0?
### INPUT
CREATE TABLE table_18686317_1 (leagues VARCHAR, comp__percentage VARCHAR)
### OUTPUT
SELECT leagues FROM table_18686317_1 WHERE comp__percentage = "54.0" | {
"input": "CREATE TABLE table_18686317_1 (leagues VARCHAR, comp__percentage VARCHAR)",
"instruction": "In which league would you find the player with a comp percentage of 54.0?",
"output": "SELECT leagues FROM table_18686317_1 WHERE comp__percentage = \"54.0\""
} |
### INSTRUCTION
If the player is Maake Kemoeatu, what is the int maximum?
### INPUT
CREATE TABLE table_25773915_11 (int INTEGER, player VARCHAR)
### OUTPUT
SELECT MAX(int) FROM table_25773915_11 WHERE player = "Maake Kemoeatu" | {
"input": "CREATE TABLE table_25773915_11 (int INTEGER, player VARCHAR)",
"instruction": "If the player is Maake Kemoeatu, what is the int maximum?",
"output": "SELECT MAX(int) FROM table_25773915_11 WHERE player = \"Maake Kemoeatu\""
} |
### INSTRUCTION
What player has a score less than 66, and a Place of t2, in the United States?
### INPUT
CREATE TABLE table_name_72 (player VARCHAR, country VARCHAR, score VARCHAR, place VARCHAR)
### OUTPUT
SELECT player FROM table_name_72 WHERE score < 66 AND place = "t2" AND country = "united states" | {
"input": "CREATE TABLE table_name_72 (player VARCHAR, country VARCHAR, score VARCHAR, place VARCHAR)",
"instruction": "What player has a score less than 66, and a Place of t2, in the United States?",
"output": "SELECT player FROM table_name_72 WHERE score < 66 AND place = \"t2\" AND country = \"united states\""
} |
### INSTRUCTION
IN EVENTS 1995 STOH, WHO WAS THE THIRD WITH SKIP SANDRA PETERSON AND SECOND JOAN MCCUSKER?
### INPUT
CREATE TABLE table_name_52 (third VARCHAR, events VARCHAR, skip VARCHAR, second VARCHAR)
### OUTPUT
SELECT third FROM table_name_52 WHERE skip = "sandra peterson" AND second = "joan mccusker" AND events = "1995 stoh" | {
"input": "CREATE TABLE table_name_52 (third VARCHAR, events VARCHAR, skip VARCHAR, second VARCHAR)",
"instruction": "IN EVENTS 1995 STOH, WHO WAS THE THIRD WITH SKIP SANDRA PETERSON AND SECOND JOAN MCCUSKER?",
"output": "SELECT third FROM table_name_52 WHERE skip = \"sandra peterson\" AND second = \"joan mccusker\" AND events = \"1995 stoh\""
} |
### INSTRUCTION
What is the time/retired for a grid over 17 with 74 laps?
### INPUT
CREATE TABLE table_name_31 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
### OUTPUT
SELECT time_retired FROM table_name_31 WHERE grid > 17 AND laps = 74 | {
"input": "CREATE TABLE table_name_31 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR)",
"instruction": "What is the time/retired for a grid over 17 with 74 laps?",
"output": "SELECT time_retired FROM table_name_31 WHERE grid > 17 AND laps = 74"
} |
### INSTRUCTION
Which method has an Event of shooto, a Round of 2, and an Opponent of issei tamura?
### INPUT
CREATE TABLE table_name_33 (method VARCHAR, opponent VARCHAR, event VARCHAR, round VARCHAR)
### OUTPUT
SELECT method FROM table_name_33 WHERE event = "shooto" AND round = 2 AND opponent = "issei tamura" | {
"input": "CREATE TABLE table_name_33 (method VARCHAR, opponent VARCHAR, event VARCHAR, round VARCHAR)",
"instruction": "Which method has an Event of shooto, a Round of 2, and an Opponent of issei tamura?",
"output": "SELECT method FROM table_name_33 WHERE event = \"shooto\" AND round = 2 AND opponent = \"issei tamura\""
} |
### INSTRUCTION
What is the year when the Winner was the new york jets, with a Result of 24–17, played at giants stadium?
### INPUT
CREATE TABLE table_name_39 (year INTEGER, location VARCHAR, winner VARCHAR, result VARCHAR)
### OUTPUT
SELECT SUM(year) FROM table_name_39 WHERE winner = "new york jets" AND result = "24–17" AND location = "giants stadium" | {
"input": "CREATE TABLE table_name_39 (year INTEGER, location VARCHAR, winner VARCHAR, result VARCHAR)",
"instruction": "What is the year when the Winner was the new york jets, with a Result of 24–17, played at giants stadium?",
"output": "SELECT SUM(year) FROM table_name_39 WHERE winner = \"new york jets\" AND result = \"24–17\" AND location = \"giants stadium\""
} |
### INSTRUCTION
Show all product names and the number of customers having an order on each product.
### INPUT
CREATE TABLE Order_items (product_id VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_id VARCHAR); CREATE TABLE Products (product_name VARCHAR, product_id VARCHAR)
### OUTPUT
SELECT T2.product_name, COUNT(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name | {
"input": "CREATE TABLE Order_items (product_id VARCHAR, order_id VARCHAR); CREATE TABLE Orders (order_id VARCHAR); CREATE TABLE Products (product_name VARCHAR, product_id VARCHAR)",
"instruction": "Show all product names and the number of customers having an order on each product.",
"output": "SELECT T2.product_name, COUNT(*) FROM Order_items AS T1 JOIN Products AS T2 ON T1.product_id = T2.product_id JOIN Orders AS T3 ON T3.order_id = T1.order_id GROUP BY T2.product_name"
} |
### INSTRUCTION
What is the highest salary among each team? List the team name, id and maximum salary.
### INPUT
CREATE TABLE salary (salary INTEGER, team_id VARCHAR); CREATE TABLE team (name VARCHAR, team_id VARCHAR)
### OUTPUT
SELECT T1.name, T1.team_id, MAX(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id | {
"input": "CREATE TABLE salary (salary INTEGER, team_id VARCHAR); CREATE TABLE team (name VARCHAR, team_id VARCHAR)",
"instruction": "What is the highest salary among each team? List the team name, id and maximum salary.",
"output": "SELECT T1.name, T1.team_id, MAX(T2.salary) FROM team AS T1 JOIN salary AS T2 ON T1.team_id = T2.team_id GROUP BY T1.team_id"
} |
### INSTRUCTION
Which representative has a Termination of MIssion date Mar 25, 1976?
### INPUT
CREATE TABLE table_name_59 (representative VARCHAR, termination_of_mission VARCHAR)
### OUTPUT
SELECT representative FROM table_name_59 WHERE termination_of_mission = "mar 25, 1976" | {
"input": "CREATE TABLE table_name_59 (representative VARCHAR, termination_of_mission VARCHAR)",
"instruction": "Which representative has a Termination of MIssion date Mar 25, 1976?",
"output": "SELECT representative FROM table_name_59 WHERE termination_of_mission = \"mar 25, 1976\""
} |
### INSTRUCTION
What is the highest poplulation in July 2012 in the country with an area of 2149690 square kilometers?
### INPUT
CREATE TABLE table_166346_1 (population__july_2012_ INTEGER, area__km²_ VARCHAR)
### OUTPUT
SELECT MAX(population__july_2012_) FROM table_166346_1 WHERE area__km²_ = 2149690 | {
"input": "CREATE TABLE table_166346_1 (population__july_2012_ INTEGER, area__km²_ VARCHAR)",
"instruction": "What is the highest poplulation in July 2012 in the country with an area of 2149690 square kilometers?",
"output": "SELECT MAX(population__july_2012_) FROM table_166346_1 WHERE area__km²_ = 2149690"
} |
### INSTRUCTION
Name the broadcast for 7:00pm and mississippi state
### INPUT
CREATE TABLE table_26842217_18 (broadcast VARCHAR, time VARCHAR, home_team VARCHAR)
### OUTPUT
SELECT broadcast FROM table_26842217_18 WHERE time = "7:00pm" AND home_team = "Mississippi State" | {
"input": "CREATE TABLE table_26842217_18 (broadcast VARCHAR, time VARCHAR, home_team VARCHAR)",
"instruction": "Name the broadcast for 7:00pm and mississippi state",
"output": "SELECT broadcast FROM table_26842217_18 WHERE time = \"7:00pm\" AND home_team = \"Mississippi State\""
} |
### INSTRUCTION
What is the date where the winner was Tom Kite (10)?
### INPUT
CREATE TABLE table_name_24 (date VARCHAR, winner VARCHAR)
### OUTPUT
SELECT date FROM table_name_24 WHERE winner = "tom kite (10)" | {
"input": "CREATE TABLE table_name_24 (date VARCHAR, winner VARCHAR)",
"instruction": "What is the date where the winner was Tom Kite (10)?",
"output": "SELECT date FROM table_name_24 WHERE winner = \"tom kite (10)\""
} |
### INSTRUCTION
Which player from United States is in place of t6?
### INPUT
CREATE TABLE table_name_51 (player VARCHAR, country VARCHAR, place VARCHAR)
### OUTPUT
SELECT player FROM table_name_51 WHERE country = "united states" AND place = "t6" | {
"input": "CREATE TABLE table_name_51 (player VARCHAR, country VARCHAR, place VARCHAR)",
"instruction": "Which player from United States is in place of t6?",
"output": "SELECT player FROM table_name_51 WHERE country = \"united states\" AND place = \"t6\""
} |
### INSTRUCTION
Find the distinct names of all songs that have a higher resolution than some songs in English.
### INPUT
CREATE TABLE song (song_name VARCHAR, resolution INTEGER, languages VARCHAR)
### OUTPUT
SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT MIN(resolution) FROM song WHERE languages = "english") | {
"input": "CREATE TABLE song (song_name VARCHAR, resolution INTEGER, languages VARCHAR)",
"instruction": "Find the distinct names of all songs that have a higher resolution than some songs in English.",
"output": "SELECT DISTINCT song_name FROM song WHERE resolution > (SELECT MIN(resolution) FROM song WHERE languages = \"english\")"
} |
### INSTRUCTION
What team is from the United States and plays a guard position for the Grizzlies in 2012?
### INPUT
CREATE TABLE table_name_70 (school_club_team VARCHAR, years_for_grizzlies VARCHAR, nationality VARCHAR, position VARCHAR)
### OUTPUT
SELECT school_club_team FROM table_name_70 WHERE nationality = "united states" AND position = "guard" AND years_for_grizzlies = "2012" | {
"input": "CREATE TABLE table_name_70 (school_club_team VARCHAR, years_for_grizzlies VARCHAR, nationality VARCHAR, position VARCHAR)",
"instruction": "What team is from the United States and plays a guard position for the Grizzlies in 2012?",
"output": "SELECT school_club_team FROM table_name_70 WHERE nationality = \"united states\" AND position = \"guard\" AND years_for_grizzlies = \"2012\""
} |
### INSTRUCTION
What is the name of the shop that is hiring the largest number of employees?
### INPUT
CREATE TABLE shop (name VARCHAR, shop_id VARCHAR); CREATE TABLE hiring (shop_id VARCHAR)
### OUTPUT
SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE shop (name VARCHAR, shop_id VARCHAR); CREATE TABLE hiring (shop_id VARCHAR)",
"instruction": "What is the name of the shop that is hiring the largest number of employees?",
"output": "SELECT t2.name FROM hiring AS t1 JOIN shop AS t2 ON t1.shop_id = t2.shop_id GROUP BY t1.shop_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Give me the zip code where the average mean humidity is below 70 and at least 100 trips took place.
### INPUT
CREATE TABLE weather (zip_code VARCHAR, mean_humidity INTEGER); CREATE TABLE trip (zip_code VARCHAR, mean_humidity INTEGER)
### OUTPUT
SELECT zip_code FROM weather GROUP BY zip_code HAVING AVG(mean_humidity) < 70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING COUNT(*) >= 100 | {
"input": "CREATE TABLE weather (zip_code VARCHAR, mean_humidity INTEGER); CREATE TABLE trip (zip_code VARCHAR, mean_humidity INTEGER)",
"instruction": "Give me the zip code where the average mean humidity is below 70 and at least 100 trips took place.",
"output": "SELECT zip_code FROM weather GROUP BY zip_code HAVING AVG(mean_humidity) < 70 INTERSECT SELECT zip_code FROM trip GROUP BY zip_code HAVING COUNT(*) >= 100"
} |
### INSTRUCTION
Who won the race at Magny-Cours
### INPUT
CREATE TABLE table_15187794_1 (race_winner VARCHAR, circuit VARCHAR)
### OUTPUT
SELECT race_winner FROM table_15187794_1 WHERE circuit = "Magny-Cours" | {
"input": "CREATE TABLE table_15187794_1 (race_winner VARCHAR, circuit VARCHAR)",
"instruction": "Who won the race at Magny-Cours",
"output": "SELECT race_winner FROM table_15187794_1 WHERE circuit = \"Magny-Cours\""
} |
### INSTRUCTION
Name the number of spring enrollment for sioux falls seminary
### INPUT
CREATE TABLE table_2076557_2 (enrollment__spring_2012_ VARCHAR, school VARCHAR)
### OUTPUT
SELECT COUNT(enrollment__spring_2012_) FROM table_2076557_2 WHERE school = "Sioux Falls Seminary" | {
"input": "CREATE TABLE table_2076557_2 (enrollment__spring_2012_ VARCHAR, school VARCHAR)",
"instruction": "Name the number of spring enrollment for sioux falls seminary",
"output": "SELECT COUNT(enrollment__spring_2012_) FROM table_2076557_2 WHERE school = \"Sioux Falls Seminary\""
} |
### INSTRUCTION
How many Points against that have a Team of harlequins and Tries against smaller than 8?
### INPUT
CREATE TABLE table_name_37 (points_against INTEGER, team VARCHAR, tries_against VARCHAR)
### OUTPUT
SELECT SUM(points_against) FROM table_name_37 WHERE team = "harlequins" AND tries_against < 8 | {
"input": "CREATE TABLE table_name_37 (points_against INTEGER, team VARCHAR, tries_against VARCHAR)",
"instruction": "How many Points against that have a Team of harlequins and Tries against smaller than 8?",
"output": "SELECT SUM(points_against) FROM table_name_37 WHERE team = \"harlequins\" AND tries_against < 8"
} |
### INSTRUCTION
What is the classification with a Team classification of la vie claire and a Stage of 12?
### INPUT
CREATE TABLE table_name_62 (general_classification VARCHAR, team_classification VARCHAR, stage VARCHAR)
### OUTPUT
SELECT general_classification FROM table_name_62 WHERE team_classification = "la vie claire" AND stage = "12" | {
"input": "CREATE TABLE table_name_62 (general_classification VARCHAR, team_classification VARCHAR, stage VARCHAR)",
"instruction": "What is the classification with a Team classification of la vie claire and a Stage of 12?",
"output": "SELECT general_classification FROM table_name_62 WHERE team_classification = \"la vie claire\" AND stage = \"12\""
} |
### INSTRUCTION
What was the average attendance when the decision was price and montreal were the visitors?
### INPUT
CREATE TABLE table_name_58 (attendance INTEGER, visitor VARCHAR, decision VARCHAR)
### OUTPUT
SELECT AVG(attendance) FROM table_name_58 WHERE visitor = "montreal" AND decision = "price" | {
"input": "CREATE TABLE table_name_58 (attendance INTEGER, visitor VARCHAR, decision VARCHAR)",
"instruction": "What was the average attendance when the decision was price and montreal were the visitors?",
"output": "SELECT AVG(attendance) FROM table_name_58 WHERE visitor = \"montreal\" AND decision = \"price\""
} |
### INSTRUCTION
Who owns the item that was a T326 before conversion and re-entered service on 11 September 1985?
### INPUT
CREATE TABLE table_name_42 (owner VARCHAR, re_entered_service__p_ VARCHAR, pre_conversion VARCHAR)
### OUTPUT
SELECT owner FROM table_name_42 WHERE re_entered_service__p_ = "11 september 1985" AND pre_conversion = "t326" | {
"input": "CREATE TABLE table_name_42 (owner VARCHAR, re_entered_service__p_ VARCHAR, pre_conversion VARCHAR)",
"instruction": "Who owns the item that was a T326 before conversion and re-entered service on 11 September 1985?",
"output": "SELECT owner FROM table_name_42 WHERE re_entered_service__p_ = \"11 september 1985\" AND pre_conversion = \"t326\""
} |
### INSTRUCTION
What is the zip code in which the average mean sea level pressure is the lowest?
### INPUT
CREATE TABLE weather (zip_code VARCHAR, mean_sea_level_pressure_inches INTEGER)
### OUTPUT
SELECT zip_code FROM weather GROUP BY zip_code ORDER BY AVG(mean_sea_level_pressure_inches) LIMIT 1 | {
"input": "CREATE TABLE weather (zip_code VARCHAR, mean_sea_level_pressure_inches INTEGER)",
"instruction": "What is the zip code in which the average mean sea level pressure is the lowest?",
"output": "SELECT zip_code FROM weather GROUP BY zip_code ORDER BY AVG(mean_sea_level_pressure_inches) LIMIT 1"
} |
### INSTRUCTION
Show all member names and registered branch names sorted by register year.
### INPUT
CREATE TABLE member (name VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, member_id VARCHAR, register_year VARCHAR); CREATE TABLE branch (name VARCHAR, branch_id VARCHAR)
### OUTPUT
SELECT T3.name, T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year | {
"input": "CREATE TABLE member (name VARCHAR, member_id VARCHAR); CREATE TABLE membership_register_branch (branch_id VARCHAR, member_id VARCHAR, register_year VARCHAR); CREATE TABLE branch (name VARCHAR, branch_id VARCHAR)",
"instruction": "Show all member names and registered branch names sorted by register year.",
"output": "SELECT T3.name, T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id = T2.branch_id JOIN member AS T3 ON T1.member_id = T3.member_id ORDER BY T1.register_year"
} |
### INSTRUCTION
What is the lowest avg/g that has an effic greater than 34.36, with wesley carroll as the name?
### INPUT
CREATE TABLE table_name_86 (avg_g INTEGER, effic VARCHAR, name VARCHAR)
### OUTPUT
SELECT MIN(avg_g) FROM table_name_86 WHERE effic > 34.36 AND name = "wesley carroll" | {
"input": "CREATE TABLE table_name_86 (avg_g INTEGER, effic VARCHAR, name VARCHAR)",
"instruction": "What is the lowest avg/g that has an effic greater than 34.36, with wesley carroll as the name?",
"output": "SELECT MIN(avg_g) FROM table_name_86 WHERE effic > 34.36 AND name = \"wesley carroll\""
} |
### INSTRUCTION
Position of defensive tackle, and a Round of 4, and a Pick # smaller than 36 has what overall average?
### INPUT
CREATE TABLE table_name_47 (overall INTEGER, pick__number VARCHAR, position VARCHAR, round VARCHAR)
### OUTPUT
SELECT AVG(overall) FROM table_name_47 WHERE position = "defensive tackle" AND round = 4 AND pick__number < 36 | {
"input": "CREATE TABLE table_name_47 (overall INTEGER, pick__number VARCHAR, position VARCHAR, round VARCHAR)",
"instruction": "Position of defensive tackle, and a Round of 4, and a Pick # smaller than 36 has what overall average?",
"output": "SELECT AVG(overall) FROM table_name_47 WHERE position = \"defensive tackle\" AND round = 4 AND pick__number < 36"
} |
### INSTRUCTION
What are the names of tourist attractions that can be reached by walk or is at address 660 Shea Crescent?
### 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 = "660 Shea Crescent" OR T2.How_to_Get_There = "walk" | {
"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 walk or is at address 660 Shea Crescent?",
"output": "SELECT T2.Name FROM Locations AS T1 JOIN Tourist_Attractions AS T2 ON T1.Location_ID = T2.Location_ID WHERE T1.Address = \"660 Shea Crescent\" OR T2.How_to_Get_There = \"walk\""
} |
### INSTRUCTION
Name the Result of the Lineup of start, an Assist/pass of carli lloyd, and an Competition of 2011 fifa women’s world cup – group stage?
### INPUT
CREATE TABLE table_name_63 (result VARCHAR, competition VARCHAR, lineup VARCHAR, assist_pass VARCHAR)
### OUTPUT
SELECT result FROM table_name_63 WHERE lineup = "start" AND assist_pass = "carli lloyd" AND competition = "2011 fifa women’s world cup – group stage" | {
"input": "CREATE TABLE table_name_63 (result VARCHAR, competition VARCHAR, lineup VARCHAR, assist_pass VARCHAR)",
"instruction": "Name the Result of the Lineup of start, an Assist/pass of carli lloyd, and an Competition of 2011 fifa women’s world cup – group stage?",
"output": "SELECT result FROM table_name_63 WHERE lineup = \"start\" AND assist_pass = \"carli lloyd\" AND competition = \"2011 fifa women’s world cup – group stage\""
} |
### INSTRUCTION
Find the name, checking balance and saving balance of all accounts in the bank.
### INPUT
CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
### OUTPUT
SELECT T2.balance, T3.balance, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid | {
"input": "CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)",
"instruction": "Find the name, checking balance and saving balance of all accounts in the bank.",
"output": "SELECT T2.balance, T3.balance, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid"
} |
### INSTRUCTION
How many seasons have fernando alonso as the driver, and a percentage of possible points of 64.12% and points less than 109?
### INPUT
CREATE TABLE table_name_31 (season INTEGER, points VARCHAR, driver VARCHAR, percentage_of_possible_points VARCHAR)
### OUTPUT
SELECT SUM(season) FROM table_name_31 WHERE driver = "fernando alonso" AND percentage_of_possible_points = "64.12%" AND points < 109 | {
"input": "CREATE TABLE table_name_31 (season INTEGER, points VARCHAR, driver VARCHAR, percentage_of_possible_points VARCHAR)",
"instruction": "How many seasons have fernando alonso as the driver, and a percentage of possible points of 64.12% and points less than 109?",
"output": "SELECT SUM(season) FROM table_name_31 WHERE driver = \"fernando alonso\" AND percentage_of_possible_points = \"64.12%\" AND points < 109"
} |
### INSTRUCTION
What is the total rank for the Netherlands when more than 2 silver medals were won?
### INPUT
CREATE TABLE table_name_8 (rank VARCHAR, nation VARCHAR, silver VARCHAR)
### OUTPUT
SELECT COUNT(rank) FROM table_name_8 WHERE nation = "netherlands" AND silver > 2 | {
"input": "CREATE TABLE table_name_8 (rank VARCHAR, nation VARCHAR, silver VARCHAR)",
"instruction": "What is the total rank for the Netherlands when more than 2 silver medals were won?",
"output": "SELECT COUNT(rank) FROM table_name_8 WHERE nation = \"netherlands\" AND silver > 2"
} |
### INSTRUCTION
What is the fewest number of wins that had fewer than 7 draws and more than 30 played?
### INPUT
CREATE TABLE table_name_26 (wins INTEGER, draws VARCHAR, played VARCHAR)
### OUTPUT
SELECT MIN(wins) FROM table_name_26 WHERE draws < 7 AND played > 30 | {
"input": "CREATE TABLE table_name_26 (wins INTEGER, draws VARCHAR, played VARCHAR)",
"instruction": "What is the fewest number of wins that had fewer than 7 draws and more than 30 played?",
"output": "SELECT MIN(wins) FROM table_name_26 WHERE draws < 7 AND played > 30"
} |
### INSTRUCTION
What is the number of group b winner for francavilla?
### INPUT
CREATE TABLE table_1137142_1 (group_b_winner VARCHAR, group_c_winner VARCHAR)
### OUTPUT
SELECT COUNT(group_b_winner) FROM table_1137142_1 WHERE group_c_winner = "Francavilla" | {
"input": "CREATE TABLE table_1137142_1 (group_b_winner VARCHAR, group_c_winner VARCHAR)",
"instruction": "What is the number of group b winner for francavilla?",
"output": "SELECT COUNT(group_b_winner) FROM table_1137142_1 WHERE group_c_winner = \"Francavilla\""
} |
### INSTRUCTION
How many grids had a constructor of renault and less than 4 laps?
### INPUT
CREATE TABLE table_name_35 (grid INTEGER, constructor VARCHAR, laps VARCHAR)
### OUTPUT
SELECT SUM(grid) FROM table_name_35 WHERE constructor = "renault" AND laps < 4 | {
"input": "CREATE TABLE table_name_35 (grid INTEGER, constructor VARCHAR, laps VARCHAR)",
"instruction": "How many grids had a constructor of renault and less than 4 laps?",
"output": "SELECT SUM(grid) FROM table_name_35 WHERE constructor = \"renault\" AND laps < 4"
} |
### INSTRUCTION
What is the score of the United States, which has more than $24,542?
### INPUT
CREATE TABLE table_name_21 (score VARCHAR, country VARCHAR, money___$__ VARCHAR)
### OUTPUT
SELECT score FROM table_name_21 WHERE country = "united states" AND money___$__ > 24 OFFSET 542 | {
"input": "CREATE TABLE table_name_21 (score VARCHAR, country VARCHAR, money___$__ VARCHAR)",
"instruction": "What is the score of the United States, which has more than $24,542?",
"output": "SELECT score FROM table_name_21 WHERE country = \"united states\" AND money___$__ > 24 OFFSET 542"
} |
### INSTRUCTION
Which round was Mike Peca (C) of Canada selected in?
### INPUT
CREATE TABLE table_name_84 (round INTEGER, nationality VARCHAR, player VARCHAR)
### OUTPUT
SELECT SUM(round) FROM table_name_84 WHERE nationality = "canada" AND player = "mike peca (c)" | {
"input": "CREATE TABLE table_name_84 (round INTEGER, nationality VARCHAR, player VARCHAR)",
"instruction": "Which round was Mike Peca (C) of Canada selected in?",
"output": "SELECT SUM(round) FROM table_name_84 WHERE nationality = \"canada\" AND player = \"mike peca (c)\""
} |
### INSTRUCTION
What is the swimsuit when evening gown is 8.774 (6) ?
### INPUT
CREATE TABLE table_16268026_3 (swimsuit VARCHAR, evening_gown VARCHAR)
### OUTPUT
SELECT swimsuit FROM table_16268026_3 WHERE evening_gown = "8.774 (6)" | {
"input": "CREATE TABLE table_16268026_3 (swimsuit VARCHAR, evening_gown VARCHAR)",
"instruction": "What is the swimsuit when evening gown is 8.774 (6) ?",
"output": "SELECT swimsuit FROM table_16268026_3 WHERE evening_gown = \"8.774 (6)\""
} |
### INSTRUCTION
How much Standard Rank has a Name of 311 south wacker drive, and a Year larger than 1990?
### INPUT
CREATE TABLE table_name_97 (std_rank INTEGER, name VARCHAR, year VARCHAR)
### OUTPUT
SELECT SUM(std_rank) FROM table_name_97 WHERE name = "311 south wacker drive" AND year > 1990 | {
"input": "CREATE TABLE table_name_97 (std_rank INTEGER, name VARCHAR, year VARCHAR)",
"instruction": "How much Standard Rank has a Name of 311 south wacker drive, and a Year larger than 1990?",
"output": "SELECT SUM(std_rank) FROM table_name_97 WHERE name = \"311 south wacker drive\" AND year > 1990"
} |
### INSTRUCTION
What is the smallest capacity for a First season in Segunda División of 2013, and Top division titles larger than 0?
### INPUT
CREATE TABLE table_name_11 (capacity INTEGER, first_season_in_segunda_división VARCHAR, top_division_titles VARCHAR)
### OUTPUT
SELECT MIN(capacity) FROM table_name_11 WHERE first_season_in_segunda_división = 2013 AND top_division_titles > 0 | {
"input": "CREATE TABLE table_name_11 (capacity INTEGER, first_season_in_segunda_división VARCHAR, top_division_titles VARCHAR)",
"instruction": "What is the smallest capacity for a First season in Segunda División of 2013, and Top division titles larger than 0?",
"output": "SELECT MIN(capacity) FROM table_name_11 WHERE first_season_in_segunda_división = 2013 AND top_division_titles > 0"
} |
### INSTRUCTION
List the council tax ids and their related cmi cross references of all the parking fines.
### INPUT
CREATE TABLE parking_fines (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR)
### OUTPUT
SELECT council_tax_id, cmi_cross_ref_id FROM parking_fines | {
"input": "CREATE TABLE parking_fines (council_tax_id VARCHAR, cmi_cross_ref_id VARCHAR)",
"instruction": "List the council tax ids and their related cmi cross references of all the parking fines.",
"output": "SELECT council_tax_id, cmi_cross_ref_id FROM parking_fines"
} |
### INSTRUCTION
Give me the temperature of Shanghai in January.
### INPUT
CREATE TABLE city (city_id VARCHAR, city VARCHAR); CREATE TABLE temperature (Jan VARCHAR, city_id VARCHAR)
### OUTPUT
SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = "Shanghai" | {
"input": "CREATE TABLE city (city_id VARCHAR, city VARCHAR); CREATE TABLE temperature (Jan VARCHAR, city_id VARCHAR)",
"instruction": "Give me the temperature of Shanghai in January.",
"output": "SELECT T2.Jan FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T1.city = \"Shanghai\""
} |
### INSTRUCTION
What place had a score smaller than 74 and a par of e?
### INPUT
CREATE TABLE table_name_43 (place VARCHAR, score VARCHAR, to_par VARCHAR)
### OUTPUT
SELECT place FROM table_name_43 WHERE score < 74 AND to_par = "e" | {
"input": "CREATE TABLE table_name_43 (place VARCHAR, score VARCHAR, to_par VARCHAR)",
"instruction": "What place had a score smaller than 74 and a par of e?",
"output": "SELECT place FROM table_name_43 WHERE score < 74 AND to_par = \"e\""
} |
### INSTRUCTION
Who are the recipients that won for David Duchovny role/episode?
### INPUT
CREATE TABLE table_name_30 (recipients_and_nominees VARCHAR, role_episode VARCHAR, result VARCHAR)
### OUTPUT
SELECT recipients_and_nominees FROM table_name_30 WHERE role_episode = "david duchovny" AND result = "won" | {
"input": "CREATE TABLE table_name_30 (recipients_and_nominees VARCHAR, role_episode VARCHAR, result VARCHAR)",
"instruction": "Who are the recipients that won for David Duchovny role/episode?",
"output": "SELECT recipients_and_nominees FROM table_name_30 WHERE role_episode = \"david duchovny\" AND result = \"won\""
} |
### INSTRUCTION
Name the award won for category of choice tv villain in years after 2008
### INPUT
CREATE TABLE table_name_94 (award VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR)
### OUTPUT
SELECT award FROM table_name_94 WHERE result = "won" AND category = "choice tv villain" AND year > 2008 | {
"input": "CREATE TABLE table_name_94 (award VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR)",
"instruction": "Name the award won for category of choice tv villain in years after 2008",
"output": "SELECT award FROM table_name_94 WHERE result = \"won\" AND category = \"choice tv villain\" AND year > 2008"
} |
### INSTRUCTION
What competition was the World Championships before 2011?
### INPUT
CREATE TABLE table_name_38 (event VARCHAR, competition VARCHAR, year VARCHAR)
### OUTPUT
SELECT event FROM table_name_38 WHERE competition = "world championships" AND year < 2011 | {
"input": "CREATE TABLE table_name_38 (event VARCHAR, competition VARCHAR, year VARCHAR)",
"instruction": "What competition was the World Championships before 2011?",
"output": "SELECT event FROM table_name_38 WHERE competition = \"world championships\" AND year < 2011"
} |
### INSTRUCTION
What is moving from esp with transfer fee of youth system?
### INPUT
CREATE TABLE table_name_64 (moving_from VARCHAR, country VARCHAR, transfer_fee VARCHAR)
### OUTPUT
SELECT moving_from FROM table_name_64 WHERE country = "esp" AND transfer_fee = "youth system" | {
"input": "CREATE TABLE table_name_64 (moving_from VARCHAR, country VARCHAR, transfer_fee VARCHAR)",
"instruction": "What is moving from esp with transfer fee of youth system?",
"output": "SELECT moving_from FROM table_name_64 WHERE country = \"esp\" AND transfer_fee = \"youth system\""
} |
### INSTRUCTION
Which Car # has a Make of toyota, and a Pos of 7?
### INPUT
CREATE TABLE table_name_98 (car__number INTEGER, make VARCHAR, pos VARCHAR)
### OUTPUT
SELECT MAX(car__number) FROM table_name_98 WHERE make = "toyota" AND pos = 7 | {
"input": "CREATE TABLE table_name_98 (car__number INTEGER, make VARCHAR, pos VARCHAR)",
"instruction": "Which Car # has a Make of toyota, and a Pos of 7?",
"output": "SELECT MAX(car__number) FROM table_name_98 WHERE make = \"toyota\" AND pos = 7"
} |
### INSTRUCTION
Who was the rider who had less than 30 laps, ended in an accident with a car manufactured by yamaha on a grid larger than 3?
### INPUT
CREATE TABLE table_name_30 (rider VARCHAR, grid VARCHAR, time VARCHAR, laps VARCHAR, manufacturer VARCHAR)
### OUTPUT
SELECT rider FROM table_name_30 WHERE laps < 30 AND manufacturer = "yamaha" AND time = "accident" AND grid > 3 | {
"input": "CREATE TABLE table_name_30 (rider VARCHAR, grid VARCHAR, time VARCHAR, laps VARCHAR, manufacturer VARCHAR)",
"instruction": "Who was the rider who had less than 30 laps, ended in an accident with a car manufactured by yamaha on a grid larger than 3?",
"output": "SELECT rider FROM table_name_30 WHERE laps < 30 AND manufacturer = \"yamaha\" AND time = \"accident\" AND grid > 3"
} |
### INSTRUCTION
Who are the candidates in Washington 1 district?
### INPUT
CREATE TABLE table_16185956_1 (district VARCHAR)
### OUTPUT
SELECT 2008 AS _candidates FROM table_16185956_1 WHERE district = "Washington 1" | {
"input": "CREATE TABLE table_16185956_1 (district VARCHAR)",
"instruction": "Who are the candidates in Washington 1 district?",
"output": "SELECT 2008 AS _candidates FROM table_16185956_1 WHERE district = \"Washington 1\""
} |
### INSTRUCTION
Can you tell me the lowest Year that has the Rank smaller the 132, and the Name of biodiversity richness?
### INPUT
CREATE TABLE table_name_99 (year INTEGER, rank VARCHAR, name VARCHAR)
### OUTPUT
SELECT MIN(year) FROM table_name_99 WHERE rank < 132 AND name = "biodiversity richness" | {
"input": "CREATE TABLE table_name_99 (year INTEGER, rank VARCHAR, name VARCHAR)",
"instruction": "Can you tell me the lowest Year that has the Rank smaller the 132, and the Name of biodiversity richness?",
"output": "SELECT MIN(year) FROM table_name_99 WHERE rank < 132 AND name = \"biodiversity richness\""
} |
### INSTRUCTION
Who was on the prohibition ticket when Abraham J. Cuddeback was on the Greenback ticket?
### INPUT
CREATE TABLE table_name_39 (prohibition_ticket VARCHAR, greenback_ticket VARCHAR)
### OUTPUT
SELECT prohibition_ticket FROM table_name_39 WHERE greenback_ticket = "abraham j. cuddeback" | {
"input": "CREATE TABLE table_name_39 (prohibition_ticket VARCHAR, greenback_ticket VARCHAR)",
"instruction": "Who was on the prohibition ticket when Abraham J. Cuddeback was on the Greenback ticket?",
"output": "SELECT prohibition_ticket FROM table_name_39 WHERE greenback_ticket = \"abraham j. cuddeback\""
} |
### INSTRUCTION
who danced 11 and finished at more than a 2.0
### INPUT
CREATE TABLE table_1354805_6 (couple VARCHAR, number_of_dances VARCHAR, competition_finish VARCHAR)
### OUTPUT
SELECT couple FROM table_1354805_6 WHERE number_of_dances = 11 AND competition_finish > 2.0 | {
"input": "CREATE TABLE table_1354805_6 (couple VARCHAR, number_of_dances VARCHAR, competition_finish VARCHAR)",
"instruction": "who danced 11 and finished at more than a 2.0",
"output": "SELECT couple FROM table_1354805_6 WHERE number_of_dances = 11 AND competition_finish > 2.0"
} |
### INSTRUCTION
What is the total number of goals that the Partizan team from the country of serbia had that was larger than 1?
### INPUT
CREATE TABLE table_name_8 (goals INTEGER, division VARCHAR, team VARCHAR, country VARCHAR)
### OUTPUT
SELECT SUM(goals) FROM table_name_8 WHERE team = "partizan" AND country = "serbia" AND division > 1 | {
"input": "CREATE TABLE table_name_8 (goals INTEGER, division VARCHAR, team VARCHAR, country VARCHAR)",
"instruction": "What is the total number of goals that the Partizan team from the country of serbia had that was larger than 1?",
"output": "SELECT SUM(goals) FROM table_name_8 WHERE team = \"partizan\" AND country = \"serbia\" AND division > 1"
} |
### INSTRUCTION
Show the account id and name with at least 4 transactions.
### INPUT
CREATE TABLE Financial_transactions (account_id VARCHAR); CREATE TABLE Accounts (account_name VARCHAR, account_id VARCHAR)
### OUTPUT
SELECT T1.account_id, T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id HAVING COUNT(*) >= 4 | {
"input": "CREATE TABLE Financial_transactions (account_id VARCHAR); CREATE TABLE Accounts (account_name VARCHAR, account_id VARCHAR)",
"instruction": "Show the account id and name with at least 4 transactions.",
"output": "SELECT T1.account_id, T2.account_name FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id HAVING COUNT(*) >= 4"
} |
### INSTRUCTION
WHAT IS THE LOWEST $50-1/2 OZ COIN WITH A 1997 YEAR AND $25-1/4 OZ LARGER THAN $27,100?
### INPUT
CREATE TABLE table_name_59 (MIN VARCHAR, year VARCHAR, $25___1_4_oz VARCHAR)
### OUTPUT
SELECT MIN AS $50___1_2_oz FROM table_name_59 WHERE year = 1997 AND $25___1_4_oz > 27 OFFSET 100 | {
"input": "CREATE TABLE table_name_59 (MIN VARCHAR, year VARCHAR, $25___1_4_oz VARCHAR)",
"instruction": "WHAT IS THE LOWEST $50-1/2 OZ COIN WITH A 1997 YEAR AND $25-1/4 OZ LARGER THAN $27,100?",
"output": "SELECT MIN AS $50___1_2_oz FROM table_name_59 WHERE year = 1997 AND $25___1_4_oz > 27 OFFSET 100"
} |
### INSTRUCTION
Name all the team clasification where the combination classification is mederic clain
### INPUT
CREATE TABLE table_15088557_1 (team_classification VARCHAR, combination_classification VARCHAR)
### OUTPUT
SELECT team_classification FROM table_15088557_1 WHERE combination_classification = "Mederic Clain" | {
"input": "CREATE TABLE table_15088557_1 (team_classification VARCHAR, combination_classification VARCHAR)",
"instruction": "Name all the team clasification where the combination classification is mederic clain",
"output": "SELECT team_classification FROM table_15088557_1 WHERE combination_classification = \"Mederic Clain\""
} |
### INSTRUCTION
Which Females (%) has an HIV awareness (males%) larger than 92, and Females Rank larger than 2, and Males Rank smaller than 3?
### INPUT
CREATE TABLE table_name_71 (females___percentage_ INTEGER, males_rank VARCHAR, hiv_awareness__males_percentage_ VARCHAR, females_rank VARCHAR)
### OUTPUT
SELECT SUM(females___percentage_) FROM table_name_71 WHERE hiv_awareness__males_percentage_ > 92 AND females_rank > 2 AND males_rank < 3 | {
"input": "CREATE TABLE table_name_71 (females___percentage_ INTEGER, males_rank VARCHAR, hiv_awareness__males_percentage_ VARCHAR, females_rank VARCHAR)",
"instruction": "Which Females (%) has an HIV awareness (males%) larger than 92, and Females Rank larger than 2, and Males Rank smaller than 3?",
"output": "SELECT SUM(females___percentage_) FROM table_name_71 WHERE hiv_awareness__males_percentage_ > 92 AND females_rank > 2 AND males_rank < 3"
} |
### INSTRUCTION
Which Goals against has Wins of 13, and Goals for larger than 42, and more than 9 Losses?
### INPUT
CREATE TABLE table_name_45 (goals_against INTEGER, losses VARCHAR, wins VARCHAR, goals_for VARCHAR)
### OUTPUT
SELECT AVG(goals_against) FROM table_name_45 WHERE wins = 13 AND goals_for > 42 AND losses > 9 | {
"input": "CREATE TABLE table_name_45 (goals_against INTEGER, losses VARCHAR, wins VARCHAR, goals_for VARCHAR)",
"instruction": "Which Goals against has Wins of 13, and Goals for larger than 42, and more than 9 Losses?",
"output": "SELECT AVG(goals_against) FROM table_name_45 WHERE wins = 13 AND goals_for > 42 AND losses > 9"
} |
### INSTRUCTION
What is the probable future word for the simple present/future word high grade?
### INPUT
CREATE TABLE table_name_82 (probable_future VARCHAR, simple_present_future VARCHAR)
### OUTPUT
SELECT probable_future FROM table_name_82 WHERE NOT simple_present_future = "high grade" | {
"input": "CREATE TABLE table_name_82 (probable_future VARCHAR, simple_present_future VARCHAR)",
"instruction": "What is the probable future word for the simple present/future word high grade?",
"output": "SELECT probable_future FROM table_name_82 WHERE NOT simple_present_future = \"high grade\""
} |
### INSTRUCTION
What is the production code for the episode written by J. H. Wyman & Jeff Pinkner?
### INPUT
CREATE TABLE table_24649082_1 (production_code VARCHAR, written_by VARCHAR)
### OUTPUT
SELECT production_code FROM table_24649082_1 WHERE written_by = "J. H. Wyman & Jeff Pinkner" | {
"input": "CREATE TABLE table_24649082_1 (production_code VARCHAR, written_by VARCHAR)",
"instruction": "What is the production code for the episode written by J. H. Wyman & Jeff Pinkner?",
"output": "SELECT production_code FROM table_24649082_1 WHERE written_by = \"J. H. Wyman & Jeff Pinkner\""
} |
### INSTRUCTION
What is the total of attendance at Venue h when Auxerre were playing?
### INPUT
CREATE TABLE table_name_14 (attendance INTEGER, venue VARCHAR, opponent VARCHAR)
### OUTPUT
SELECT SUM(attendance) FROM table_name_14 WHERE venue = "h" AND opponent = "auxerre" | {
"input": "CREATE TABLE table_name_14 (attendance INTEGER, venue VARCHAR, opponent VARCHAR)",
"instruction": "What is the total of attendance at Venue h when Auxerre were playing?",
"output": "SELECT SUM(attendance) FROM table_name_14 WHERE venue = \"h\" AND opponent = \"auxerre\""
} |
### INSTRUCTION
Which years did the player from Providence play for the Grizzlies as small forward?
### INPUT
CREATE TABLE table_name_96 (years_for_grizzlies VARCHAR, position VARCHAR, school_club_team VARCHAR)
### OUTPUT
SELECT years_for_grizzlies FROM table_name_96 WHERE position = "small forward" AND school_club_team = "providence" | {
"input": "CREATE TABLE table_name_96 (years_for_grizzlies VARCHAR, position VARCHAR, school_club_team VARCHAR)",
"instruction": "Which years did the player from Providence play for the Grizzlies as small forward?",
"output": "SELECT years_for_grizzlies FROM table_name_96 WHERE position = \"small forward\" AND school_club_team = \"providence\""
} |
### INSTRUCTION
What is the range (varies by payload weight) for Shahab-4?
### INPUT
CREATE TABLE table_name_71 (range__varies_with_payload_weight_ VARCHAR, name_designation VARCHAR)
### OUTPUT
SELECT range__varies_with_payload_weight_ FROM table_name_71 WHERE name_designation = "shahab-4" | {
"input": "CREATE TABLE table_name_71 (range__varies_with_payload_weight_ VARCHAR, name_designation VARCHAR)",
"instruction": "What is the range (varies by payload weight) for Shahab-4?",
"output": "SELECT range__varies_with_payload_weight_ FROM table_name_71 WHERE name_designation = \"shahab-4\""
} |
### INSTRUCTION
How many sprints classifications were associated with an overall winner of Joaquin Rodriguez?
### INPUT
CREATE TABLE table_26257223_13 (sprints_classification VARCHAR, winner VARCHAR)
### OUTPUT
SELECT COUNT(sprints_classification) FROM table_26257223_13 WHERE winner = "Joaquin Rodriguez" | {
"input": "CREATE TABLE table_26257223_13 (sprints_classification VARCHAR, winner VARCHAR)",
"instruction": "How many sprints classifications were associated with an overall winner of Joaquin Rodriguez?",
"output": "SELECT COUNT(sprints_classification) FROM table_26257223_13 WHERE winner = \"Joaquin Rodriguez\""
} |
### INSTRUCTION
Which Population has a County of mississippi, and a Number of households smaller than 17,741?
### INPUT
CREATE TABLE table_name_21 (population INTEGER, county VARCHAR, number_of_households VARCHAR)
### OUTPUT
SELECT SUM(population) FROM table_name_21 WHERE county = "mississippi" AND number_of_households < 17 OFFSET 741 | {
"input": "CREATE TABLE table_name_21 (population INTEGER, county VARCHAR, number_of_households VARCHAR)",
"instruction": "Which Population has a County of mississippi, and a Number of households smaller than 17,741?",
"output": "SELECT SUM(population) FROM table_name_21 WHERE county = \"mississippi\" AND number_of_households < 17 OFFSET 741"
} |
### INSTRUCTION
What is the range (varies by payload weight) for the unknown player?
### INPUT
CREATE TABLE table_name_34 (range__varies_with_payload_weight_ VARCHAR, payload VARCHAR)
### OUTPUT
SELECT range__varies_with_payload_weight_ FROM table_name_34 WHERE payload = "unknown" | {
"input": "CREATE TABLE table_name_34 (range__varies_with_payload_weight_ VARCHAR, payload VARCHAR)",
"instruction": "What is the range (varies by payload weight) for the unknown player?",
"output": "SELECT range__varies_with_payload_weight_ FROM table_name_34 WHERE payload = \"unknown\""
} |
### INSTRUCTION
For the event held in Tartu, Estonia, what is the name of the runner-up?
### INPUT
CREATE TABLE table_name_90 (runner_up VARCHAR, venue VARCHAR)
### OUTPUT
SELECT runner_up FROM table_name_90 WHERE venue = "tartu, estonia" | {
"input": "CREATE TABLE table_name_90 (runner_up VARCHAR, venue VARCHAR)",
"instruction": "For the event held in Tartu, Estonia, what is the name of the runner-up?",
"output": "SELECT runner_up FROM table_name_90 WHERE venue = \"tartu, estonia\""
} |
### INSTRUCTION
what is the score when the result is loss, the year is 1980 and the competition is world group, consolation round?
### INPUT
CREATE TABLE table_name_45 (score VARCHAR, competition VARCHAR, result VARCHAR, year VARCHAR)
### OUTPUT
SELECT score FROM table_name_45 WHERE result = "loss" AND year = "1980" AND competition = "world group, consolation round" | {
"input": "CREATE TABLE table_name_45 (score VARCHAR, competition VARCHAR, result VARCHAR, year VARCHAR)",
"instruction": "what is the score when the result is loss, the year is 1980 and the competition is world group, consolation round?",
"output": "SELECT score FROM table_name_45 WHERE result = \"loss\" AND year = \"1980\" AND competition = \"world group, consolation round\""
} |
### INSTRUCTION
What are the date of ceremony of music festivals with category "Best Song" and result "Awarded"?
### INPUT
CREATE TABLE music_festival (Date_of_ceremony VARCHAR, Category VARCHAR, RESULT VARCHAR)
### OUTPUT
SELECT Date_of_ceremony FROM music_festival WHERE Category = "Best Song" AND RESULT = "Awarded" | {
"input": "CREATE TABLE music_festival (Date_of_ceremony VARCHAR, Category VARCHAR, RESULT VARCHAR)",
"instruction": "What are the date of ceremony of music festivals with category \"Best Song\" and result \"Awarded\"?",
"output": "SELECT Date_of_ceremony FROM music_festival WHERE Category = \"Best Song\" AND RESULT = \"Awarded\""
} |
### INSTRUCTION
Find the student first and last names and grade points of all enrollments.
### INPUT
CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint VARCHAR, lettergrade VARCHAR)
### OUTPUT
SELECT T3.Fname, T3.LName, T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID | {
"input": "CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, LName VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint VARCHAR, lettergrade VARCHAR)",
"instruction": "Find the student first and last names and grade points of all enrollments.",
"output": "SELECT T3.Fname, T3.LName, T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID"
} |
### INSTRUCTION
For the constellation scorpius and object of planetary nebula, what was the declination (J2000)?
### INPUT
CREATE TABLE table_name_53 (declination___j2000__ VARCHAR, constellation VARCHAR, object_type VARCHAR)
### OUTPUT
SELECT declination___j2000__ FROM table_name_53 WHERE constellation = "scorpius" AND object_type = "planetary nebula" | {
"input": "CREATE TABLE table_name_53 (declination___j2000__ VARCHAR, constellation VARCHAR, object_type VARCHAR)",
"instruction": "For the constellation scorpius and object of planetary nebula, what was the declination (J2000)?",
"output": "SELECT declination___j2000__ FROM table_name_53 WHERE constellation = \"scorpius\" AND object_type = \"planetary nebula\""
} |
### INSTRUCTION
Which Year has a Competition of olympic games, and a Venue of atlanta, united states?
### INPUT
CREATE TABLE table_name_93 (year INTEGER, competition VARCHAR, venue VARCHAR)
### OUTPUT
SELECT AVG(year) FROM table_name_93 WHERE competition = "olympic games" AND venue = "atlanta, united states" | {
"input": "CREATE TABLE table_name_93 (year INTEGER, competition VARCHAR, venue VARCHAR)",
"instruction": "Which Year has a Competition of olympic games, and a Venue of atlanta, united states?",
"output": "SELECT AVG(year) FROM table_name_93 WHERE competition = \"olympic games\" AND venue = \"atlanta, united states\""
} |
### INSTRUCTION
Played that has a Points of 38, and a B.P. larger than 5 has what sum?
### INPUT
CREATE TABLE table_name_52 (played INTEGER, points VARCHAR, bp VARCHAR)
### OUTPUT
SELECT SUM(played) FROM table_name_52 WHERE points = 38 AND bp > 5 | {
"input": "CREATE TABLE table_name_52 (played INTEGER, points VARCHAR, bp VARCHAR)",
"instruction": "Played that has a Points of 38, and a B.P. larger than 5 has what sum?",
"output": "SELECT SUM(played) FROM table_name_52 WHERE points = 38 AND bp > 5"
} |
### INSTRUCTION
Show the name of the shop that has the most kind of devices in stock.
### INPUT
CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_ID VARCHAR)
### OUTPUT
SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE shop (Shop_Name VARCHAR, Shop_ID VARCHAR); CREATE TABLE stock (Shop_ID VARCHAR)",
"instruction": "Show the name of the shop that has the most kind of devices in stock.",
"output": "SELECT T2.Shop_Name FROM stock AS T1 JOIN shop AS T2 ON T1.Shop_ID = T2.Shop_ID GROUP BY T1.Shop_ID ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What date has a margin of victory of 1 stroke over Greg Kraft?
### INPUT
CREATE TABLE table_name_21 (date VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)
### OUTPUT
SELECT date FROM table_name_21 WHERE margin_of_victory = "1 stroke" AND runner_s__up = "greg kraft" | {
"input": "CREATE TABLE table_name_21 (date VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR)",
"instruction": "What date has a margin of victory of 1 stroke over Greg Kraft?",
"output": "SELECT date FROM table_name_21 WHERE margin_of_victory = \"1 stroke\" AND runner_s__up = \"greg kraft\""
} |
### INSTRUCTION
List the names of the customers who have once bought product "food".
### INPUT
CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE orders (customer_id VARCHAR, order_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE order_items (product_id VARCHAR, order_id VARCHAR)
### OUTPUT
SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = "food" GROUP BY T1.customer_id HAVING COUNT(*) >= 1 | {
"input": "CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE orders (customer_id VARCHAR, order_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE order_items (product_id VARCHAR, order_id VARCHAR)",
"instruction": "List the names of the customers who have once bought product \"food\".",
"output": "SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T4.product_name = \"food\" GROUP BY T1.customer_id HAVING COUNT(*) >= 1"
} |
### INSTRUCTION
How many production stage managers worked with secretary Rachel Hartmann?
### INPUT
CREATE TABLE table_22410780_1 (production_stagemanager VARCHAR, secretary VARCHAR)
### OUTPUT
SELECT COUNT(production_stagemanager) FROM table_22410780_1 WHERE secretary = "Rachel Hartmann" | {
"input": "CREATE TABLE table_22410780_1 (production_stagemanager VARCHAR, secretary VARCHAR)",
"instruction": "How many production stage managers worked with secretary Rachel Hartmann?",
"output": "SELECT COUNT(production_stagemanager) FROM table_22410780_1 WHERE secretary = \"Rachel Hartmann\""
} |
### INSTRUCTION
Which template type code is used by most number of documents?
### INPUT
CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (template_type_code VARCHAR, template_id VARCHAR)
### OUTPUT
SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Documents (template_id VARCHAR); CREATE TABLE Templates (template_type_code VARCHAR, template_id VARCHAR)",
"instruction": "Which template type code is used by most number of documents?",
"output": "SELECT T1.template_type_code FROM Templates AS T1 JOIN Documents AS T2 ON T1.template_id = T2.template_id GROUP BY T1.template_type_code ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What was the capacity for the Denver Broncos?
### INPUT
CREATE TABLE table_28884858_2 (capacity_percentage VARCHAR, team VARCHAR)
### OUTPUT
SELECT capacity_percentage FROM table_28884858_2 WHERE team = "Denver Broncos" | {
"input": "CREATE TABLE table_28884858_2 (capacity_percentage VARCHAR, team VARCHAR)",
"instruction": "What was the capacity for the Denver Broncos?",
"output": "SELECT capacity_percentage FROM table_28884858_2 WHERE team = \"Denver Broncos\""
} |
### INSTRUCTION
I want the driver for Laps more than 8 and ferrari with Grid of 8
### INPUT
CREATE TABLE table_name_45 (driver VARCHAR, grid VARCHAR, laps VARCHAR, constructor VARCHAR)
### OUTPUT
SELECT driver FROM table_name_45 WHERE laps > 8 AND constructor = "ferrari" AND grid = 8 | {
"input": "CREATE TABLE table_name_45 (driver VARCHAR, grid VARCHAR, laps VARCHAR, constructor VARCHAR)",
"instruction": "I want the driver for Laps more than 8 and ferrari with Grid of 8",
"output": "SELECT driver FROM table_name_45 WHERE laps > 8 AND constructor = \"ferrari\" AND grid = 8"
} |
### INSTRUCTION
Tell me the average spectators for 2006-06-21 and time more than 21
### INPUT
CREATE TABLE table_name_56 (spectators INTEGER, date VARCHAR, time_cet_ VARCHAR)
### OUTPUT
SELECT AVG(spectators) FROM table_name_56 WHERE date = "2006-06-21" AND time_cet_ > 21 | {
"input": "CREATE TABLE table_name_56 (spectators INTEGER, date VARCHAR, time_cet_ VARCHAR)",
"instruction": "Tell me the average spectators for 2006-06-21 and time more than 21",
"output": "SELECT AVG(spectators) FROM table_name_56 WHERE date = \"2006-06-21\" AND time_cet_ > 21"
} |
### INSTRUCTION
What are the names of directors who directed movies with 5 star rating? Also return the title of these movies.
### INPUT
CREATE TABLE Movie (director VARCHAR, title VARCHAR, mID VARCHAR); CREATE TABLE Rating (mID VARCHAR, stars VARCHAR)
### OUTPUT
SELECT T1.director, T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 5 | {
"input": "CREATE TABLE Movie (director VARCHAR, title VARCHAR, mID VARCHAR); CREATE TABLE Rating (mID VARCHAR, stars VARCHAR)",
"instruction": "What are the names of directors who directed movies with 5 star rating? Also return the title of these movies.",
"output": "SELECT T1.director, T1.title FROM Movie AS T1 JOIN Rating AS T2 ON T1.mID = T2.mID WHERE T2.stars = 5"
} |
### INSTRUCTION
What is the child sex ration for the population with 37.7% work participation?
### INPUT
CREATE TABLE table_name_24 (sex_ratio__child_ INTEGER, work_participation___percentage_ VARCHAR)
### OUTPUT
SELECT MAX(sex_ratio__child_) FROM table_name_24 WHERE work_participation___percentage_ = "37.7%" | {
"input": "CREATE TABLE table_name_24 (sex_ratio__child_ INTEGER, work_participation___percentage_ VARCHAR)",
"instruction": "What is the child sex ration for the population with 37.7% work participation?",
"output": "SELECT MAX(sex_ratio__child_) FROM table_name_24 WHERE work_participation___percentage_ = \"37.7%\""
} |
### INSTRUCTION
What is the "active to date" of the latest contact channel used by "Tillman Ernser"?
### INPUT
CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customer_contact_channels (active_to_date INTEGER, customer_id VARCHAR)
### OUTPUT
SELECT MAX(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = "Tillman Ernser" | {
"input": "CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customer_contact_channels (active_to_date INTEGER, customer_id VARCHAR)",
"instruction": "What is the \"active to date\" of the latest contact channel used by \"Tillman Ernser\"?",
"output": "SELECT MAX(t2.active_to_date) FROM customers AS t1 JOIN customer_contact_channels AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = \"Tillman Ernser\""
} |
### INSTRUCTION
What is the height of the fort peck dam which was built before 1968, is located in the united states and has a dam type of TE ?
### INPUT
CREATE TABLE table_name_93 (structure_height_ VARCHAR, m VARCHAR, name VARCHAR, country VARCHAR, year VARCHAR, type VARCHAR)
### OUTPUT
SELECT structure_height_[m] FROM table_name_93 WHERE year < 1968 AND type = "te" AND country = "united states" AND name = "fort peck dam" | {
"input": "CREATE TABLE table_name_93 (structure_height_ VARCHAR, m VARCHAR, name VARCHAR, country VARCHAR, year VARCHAR, type VARCHAR)",
"instruction": "What is the height of the fort peck dam which was built before 1968, is located in the united states and has a dam type of TE ?",
"output": "SELECT structure_height_[m] FROM table_name_93 WHERE year < 1968 AND type = \"te\" AND country = \"united states\" AND name = \"fort peck dam\""
} |
### INSTRUCTION
Name the height in feet for the guard from north carolina-charlotte
### INPUT
CREATE TABLE table_name_35 (height_in_ft VARCHAR, position VARCHAR, school_club_team_country VARCHAR)
### OUTPUT
SELECT height_in_ft FROM table_name_35 WHERE position = "guard" AND school_club_team_country = "north carolina-charlotte" | {
"input": "CREATE TABLE table_name_35 (height_in_ft VARCHAR, position VARCHAR, school_club_team_country VARCHAR)",
"instruction": "Name the height in feet for the guard from north carolina-charlotte",
"output": "SELECT height_in_ft FROM table_name_35 WHERE position = \"guard\" AND school_club_team_country = \"north carolina-charlotte\""
} |
### INSTRUCTION
Name the pennant number for completion of 30 october 1934 and launched 29 march 1934
### INPUT
CREATE TABLE table_name_43 (pennant_number VARCHAR, launched VARCHAR, completed VARCHAR)
### OUTPUT
SELECT pennant_number FROM table_name_43 WHERE launched = "29 march 1934" AND completed = "30 october 1934" | {
"input": "CREATE TABLE table_name_43 (pennant_number VARCHAR, launched VARCHAR, completed VARCHAR)",
"instruction": "Name the pennant number for completion of 30 october 1934 and launched 29 march 1934",
"output": "SELECT pennant_number FROM table_name_43 WHERE launched = \"29 march 1934\" AND completed = \"30 october 1934\""
} |
### INSTRUCTION
List the problem id and log id which are assigned to the staff named Rylan Homenick.
### INPUT
CREATE TABLE problem_log (problem_id VARCHAR, problem_log_id VARCHAR, assigned_to_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR)
### OUTPUT
SELECT DISTINCT T2.problem_id, T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = "Rylan" AND T1.staff_last_name = "Homenick" | {
"input": "CREATE TABLE problem_log (problem_id VARCHAR, problem_log_id VARCHAR, assigned_to_staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR)",
"instruction": "List the problem id and log id which are assigned to the staff named Rylan Homenick.",
"output": "SELECT DISTINCT T2.problem_id, T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = \"Rylan\" AND T1.staff_last_name = \"Homenick\""
} |
### INSTRUCTION
WHAT TEAM CLASSIFIED IN THE STAGE WHERE BRADLEY WIGGINS WON THE POINTS CLASSIFICATION ?
### INPUT
CREATE TABLE table_11667521_17 (team_classification VARCHAR, points_classification VARCHAR)
### OUTPUT
SELECT team_classification FROM table_11667521_17 WHERE points_classification = "Bradley Wiggins" | {
"input": "CREATE TABLE table_11667521_17 (team_classification VARCHAR, points_classification VARCHAR)",
"instruction": "WHAT TEAM CLASSIFIED IN THE STAGE WHERE BRADLEY WIGGINS WON THE POINTS CLASSIFICATION ?",
"output": "SELECT team_classification FROM table_11667521_17 WHERE points_classification = \"Bradley Wiggins\""
} |
### INSTRUCTION
what is the nominated work title when the result is won, the organisation is star awards and the award is top 10 most popular female artiste in the year 2007?
### INPUT
CREATE TABLE table_name_52 (nominated_work_title VARCHAR, year VARCHAR, award VARCHAR, result VARCHAR, organisation VARCHAR)
### OUTPUT
SELECT nominated_work_title FROM table_name_52 WHERE result = "won" AND organisation = "star awards" AND award = "top 10 most popular female artiste" AND year > 2007 | {
"input": "CREATE TABLE table_name_52 (nominated_work_title VARCHAR, year VARCHAR, award VARCHAR, result VARCHAR, organisation VARCHAR)",
"instruction": "what is the nominated work title when the result is won, the organisation is star awards and the award is top 10 most popular female artiste in the year 2007?",
"output": "SELECT nominated_work_title FROM table_name_52 WHERE result = \"won\" AND organisation = \"star awards\" AND award = \"top 10 most popular female artiste\" AND year > 2007"
} |
### INSTRUCTION
What is the total number of goals for entries that have more than 7 draws, 8 wins, and more than 5 losses?
### INPUT
CREATE TABLE table_name_62 (goals_for VARCHAR, losses VARCHAR, draws VARCHAR, wins VARCHAR)
### OUTPUT
SELECT COUNT(goals_for) FROM table_name_62 WHERE draws > 7 AND wins > 8 AND losses > 5 | {
"input": "CREATE TABLE table_name_62 (goals_for VARCHAR, losses VARCHAR, draws VARCHAR, wins VARCHAR)",
"instruction": "What is the total number of goals for entries that have more than 7 draws, 8 wins, and more than 5 losses?",
"output": "SELECT COUNT(goals_for) FROM table_name_62 WHERE draws > 7 AND wins > 8 AND losses > 5"
} |
### INSTRUCTION
What is the average Total, when the Name is Simon Gillett Category:Articles with hCards, and when the Other is greater than 3?
### INPUT
CREATE TABLE table_name_60 (total INTEGER, name VARCHAR, other VARCHAR)
### OUTPUT
SELECT AVG(total) FROM table_name_60 WHERE name = "simon gillett category:articles with hcards" AND other > 3 | {
"input": "CREATE TABLE table_name_60 (total INTEGER, name VARCHAR, other VARCHAR)",
"instruction": "What is the average Total, when the Name is Simon Gillett Category:Articles with hCards, and when the Other is greater than 3?",
"output": "SELECT AVG(total) FROM table_name_60 WHERE name = \"simon gillett category:articles with hcards\" AND other > 3"
} |
### INSTRUCTION
What is the GDP (PPP) (USD, per capita) for Algeria?
### INPUT
CREATE TABLE table_2155836_1 (_per_capita_ VARCHAR, gdp__ppp___usd INTEGER, country VARCHAR)
### OUTPUT
SELECT MIN(gdp__ppp___usd), _per_capita_ FROM table_2155836_1 WHERE country = "Algeria" | {
"input": "CREATE TABLE table_2155836_1 (_per_capita_ VARCHAR, gdp__ppp___usd INTEGER, country VARCHAR)",
"instruction": "What is the GDP (PPP) (USD, per capita) for Algeria? ",
"output": "SELECT MIN(gdp__ppp___usd), _per_capita_ FROM table_2155836_1 WHERE country = \"Algeria\""
} |
### INSTRUCTION
What years did Elden Campbell category:articles with hcards and jersesy number of 41 play?
### INPUT
CREATE TABLE table_name_31 (years VARCHAR, jersey_number_s_ VARCHAR, player VARCHAR)
### OUTPUT
SELECT years FROM table_name_31 WHERE jersey_number_s_ = 41 AND player = "elden campbell category:articles with hcards" | {
"input": "CREATE TABLE table_name_31 (years VARCHAR, jersey_number_s_ VARCHAR, player VARCHAR)",
"instruction": "What years did Elden Campbell category:articles with hcards and jersesy number of 41 play?",
"output": "SELECT years FROM table_name_31 WHERE jersey_number_s_ = 41 AND player = \"elden campbell category:articles with hcards\""
} |
### INSTRUCTION
Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.
### INPUT
CREATE TABLE Treatments (dog_id VARCHAR, cost_of_treatment INTEGER); CREATE TABLE Owners (owner_id VARCHAR, zip_code VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR, dog_id VARCHAR)
### OUTPUT
SELECT T1.owner_id, T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY SUM(T3.cost_of_treatment) DESC LIMIT 1 | {
"input": "CREATE TABLE Treatments (dog_id VARCHAR, cost_of_treatment INTEGER); CREATE TABLE Owners (owner_id VARCHAR, zip_code VARCHAR); CREATE TABLE Dogs (owner_id VARCHAR, dog_id VARCHAR)",
"instruction": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.",
"output": "SELECT T1.owner_id, T1.zip_code FROM Owners AS T1 JOIN Dogs AS T2 ON T1.owner_id = T2.owner_id JOIN Treatments AS T3 ON T2.dog_id = T3.dog_id GROUP BY T1.owner_id ORDER BY SUM(T3.cost_of_treatment) DESC LIMIT 1"
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.