text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
List all candidates in the democratic party where the election had the incumbent Frank Chelf running.
### INPUT
CREATE TABLE table_1342218_17 (candidates VARCHAR, party VARCHAR, incumbent VARCHAR)
### OUTPUT
SELECT candidates FROM table_1342218_17 WHERE party = "Democratic" AND incumbent = "Frank Chelf" | {
"input": "CREATE TABLE table_1342218_17 (candidates VARCHAR, party VARCHAR, incumbent VARCHAR)",
"instruction": "List all candidates in the democratic party where the election had the incumbent Frank Chelf running.",
"output": "SELECT candidates FROM table_1342218_17 WHERE party = \"Democratic\" AND incumbent = \"Frank Chelf\""
} |
### INSTRUCTION
State pensions of 7%, and a Self employed of 7%, and a Other income sources of 2% has what investment income?
### INPUT
CREATE TABLE table_name_67 (investment_income VARCHAR, other_income_sources VARCHAR, state_pensions VARCHAR, self_employed VARCHAR)
### OUTPUT
SELECT investment_income FROM table_name_67 WHERE state_pensions = "7%" AND self_employed = "7%" AND other_income_sources = "2%" | {
"input": "CREATE TABLE table_name_67 (investment_income VARCHAR, other_income_sources VARCHAR, state_pensions VARCHAR, self_employed VARCHAR)",
"instruction": "State pensions of 7%, and a Self employed of 7%, and a Other income sources of 2% has what investment income?",
"output": "SELECT investment_income FROM table_name_67 WHERE state_pensions = \"7%\" AND self_employed = \"7%\" AND other_income_sources = \"2%\""
} |
### INSTRUCTION
Which Share has a weekly Rank of 8 and is dated 15 June?
### INPUT
CREATE TABLE table_name_12 (share VARCHAR, weekly_rank VARCHAR, date VARCHAR)
### OUTPUT
SELECT share FROM table_name_12 WHERE weekly_rank = "8" AND date = "15 june" | {
"input": "CREATE TABLE table_name_12 (share VARCHAR, weekly_rank VARCHAR, date VARCHAR)",
"instruction": "Which Share has a weekly Rank of 8 and is dated 15 June?",
"output": "SELECT share FROM table_name_12 WHERE weekly_rank = \"8\" AND date = \"15 june\""
} |
### INSTRUCTION
What was the mls cup playoffs when concacaf champions cup / concacaf champions league was quarter-finals (09-10)?
### INPUT
CREATE TABLE table_245695_2 (mls_cup_playoffs VARCHAR, concacaf_champions_cup___concacaf_champions_league VARCHAR)
### OUTPUT
SELECT mls_cup_playoffs FROM table_245695_2 WHERE concacaf_champions_cup___concacaf_champions_league = "Quarter-Finals (09-10)" | {
"input": "CREATE TABLE table_245695_2 (mls_cup_playoffs VARCHAR, concacaf_champions_cup___concacaf_champions_league VARCHAR)",
"instruction": "What was the mls cup playoffs when concacaf champions cup / concacaf champions league was quarter-finals (09-10)?",
"output": "SELECT mls_cup_playoffs FROM table_245695_2 WHERE concacaf_champions_cup___concacaf_champions_league = \"Quarter-Finals (09-10)\""
} |
### INSTRUCTION
In which round did Paul McDonald have an overall greater than 109?
### INPUT
CREATE TABLE table_name_22 (round INTEGER, player VARCHAR, overall VARCHAR)
### OUTPUT
SELECT MAX(round) FROM table_name_22 WHERE player = "paul mcdonald" AND overall > 109 | {
"input": "CREATE TABLE table_name_22 (round INTEGER, player VARCHAR, overall VARCHAR)",
"instruction": "In which round did Paul McDonald have an overall greater than 109?",
"output": "SELECT MAX(round) FROM table_name_22 WHERE player = \"paul mcdonald\" AND overall > 109"
} |
### INSTRUCTION
What is the road team playing against Boston on April 16?
### INPUT
CREATE TABLE table_name_94 (road_team VARCHAR, home_team VARCHAR, date VARCHAR)
### OUTPUT
SELECT road_team FROM table_name_94 WHERE home_team = "boston" AND date = "april 16" | {
"input": "CREATE TABLE table_name_94 (road_team VARCHAR, home_team VARCHAR, date VARCHAR)",
"instruction": "What is the road team playing against Boston on April 16?",
"output": "SELECT road_team FROM table_name_94 WHERE home_team = \"boston\" AND date = \"april 16\""
} |
### INSTRUCTION
What is the name of department where has the largest number of professors with a Ph.D. degree?
### INPUT
CREATE TABLE professor (dept_code VARCHAR, prof_high_degree VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR)
### OUTPUT
SELECT T2.dept_name, T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.prof_high_degree = 'Ph.D.' GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE professor (dept_code VARCHAR, prof_high_degree VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR)",
"instruction": "What is the name of department where has the largest number of professors with a Ph.D. degree?",
"output": "SELECT T2.dept_name, T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T1.prof_high_degree = 'Ph.D.' GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What is the ratings for the original air date may 25, 2010 22.00 - 22.54?
### INPUT
CREATE TABLE table_26591434_1 (ratings__kansai_ VARCHAR, original_airdate VARCHAR)
### OUTPUT
SELECT ratings__kansai_ FROM table_26591434_1 WHERE original_airdate = "May 25, 2010 22.00 - 22.54" | {
"input": "CREATE TABLE table_26591434_1 (ratings__kansai_ VARCHAR, original_airdate VARCHAR)",
"instruction": "What is the ratings for the original air date may 25, 2010 22.00 - 22.54?",
"output": "SELECT ratings__kansai_ FROM table_26591434_1 WHERE original_airdate = \"May 25, 2010 22.00 - 22.54\""
} |
### INSTRUCTION
What is the number of AIDS Orphans as % of Orphans when the Double (AIDS Related) number is 41,000, and the Paternal (Total) is larger than 442,000?
### INPUT
CREATE TABLE table_name_41 (aids_orphans_as__percentage_of_orphans INTEGER, double__aids_related_ VARCHAR, paternal__total_ VARCHAR)
### OUTPUT
SELECT SUM(aids_orphans_as__percentage_of_orphans) FROM table_name_41 WHERE double__aids_related_ = "41,000" AND paternal__total_ > 442 OFFSET 000 | {
"input": "CREATE TABLE table_name_41 (aids_orphans_as__percentage_of_orphans INTEGER, double__aids_related_ VARCHAR, paternal__total_ VARCHAR)",
"instruction": "What is the number of AIDS Orphans as % of Orphans when the Double (AIDS Related) number is 41,000, and the Paternal (Total) is larger than 442,000?",
"output": "SELECT SUM(aids_orphans_as__percentage_of_orphans) FROM table_name_41 WHERE double__aids_related_ = \"41,000\" AND paternal__total_ > 442 OFFSET 000"
} |
### INSTRUCTION
What is the total work number of Gowrie with a 0-6-4t type after 1908?
### INPUT
CREATE TABLE table_name_51 (works_number VARCHAR, date VARCHAR, type VARCHAR, name VARCHAR)
### OUTPUT
SELECT COUNT(works_number) FROM table_name_51 WHERE type = "0-6-4t" AND name = "gowrie" AND date > 1908 | {
"input": "CREATE TABLE table_name_51 (works_number VARCHAR, date VARCHAR, type VARCHAR, name VARCHAR)",
"instruction": "What is the total work number of Gowrie with a 0-6-4t type after 1908?",
"output": "SELECT COUNT(works_number) FROM table_name_51 WHERE type = \"0-6-4t\" AND name = \"gowrie\" AND date > 1908"
} |
### INSTRUCTION
What is the largest goal number when the transfer fee was £0.8m?
### INPUT
CREATE TABLE table_name_50 (goals INTEGER, transfer_fee VARCHAR)
### OUTPUT
SELECT MAX(goals) FROM table_name_50 WHERE transfer_fee = "£0.8m" | {
"input": "CREATE TABLE table_name_50 (goals INTEGER, transfer_fee VARCHAR)",
"instruction": "What is the largest goal number when the transfer fee was £0.8m?",
"output": "SELECT MAX(goals) FROM table_name_50 WHERE transfer_fee = \"£0.8m\""
} |
### INSTRUCTION
What year was the congressional service elected for a term beginning on January 3, 1989?
### INPUT
CREATE TABLE table_197446_1 (elected VARCHAR, term_began VARCHAR)
### OUTPUT
SELECT elected FROM table_197446_1 WHERE term_began = "January 3, 1989" | {
"input": "CREATE TABLE table_197446_1 (elected VARCHAR, term_began VARCHAR)",
"instruction": "What year was the congressional service elected for a term beginning on January 3, 1989?",
"output": "SELECT elected FROM table_197446_1 WHERE term_began = \"January 3, 1989\""
} |
### INSTRUCTION
How many pac-12 sports are shown for california polytechnic state university?
### INPUT
CREATE TABLE table_27816698_2 (pac_12_sports VARCHAR, institution VARCHAR)
### OUTPUT
SELECT COUNT(pac_12_sports) FROM table_27816698_2 WHERE institution = "California Polytechnic State University" | {
"input": "CREATE TABLE table_27816698_2 (pac_12_sports VARCHAR, institution VARCHAR)",
"instruction": "How many pac-12 sports are shown for california polytechnic state university?",
"output": "SELECT COUNT(pac_12_sports) FROM table_27816698_2 WHERE institution = \"California Polytechnic State University\""
} |
### INSTRUCTION
Which Syndney's Gold coast, Adelaide, Melbourne, and Auckland were all no?
### INPUT
CREATE TABLE table_name_47 (sydney VARCHAR, auckland VARCHAR, melbourne VARCHAR, gold_coast VARCHAR, adelaide VARCHAR)
### OUTPUT
SELECT sydney FROM table_name_47 WHERE gold_coast = "no" AND adelaide = "no" AND melbourne = "no" AND auckland = "no" | {
"input": "CREATE TABLE table_name_47 (sydney VARCHAR, auckland VARCHAR, melbourne VARCHAR, gold_coast VARCHAR, adelaide VARCHAR)",
"instruction": "Which Syndney's Gold coast, Adelaide, Melbourne, and Auckland were all no?",
"output": "SELECT sydney FROM table_name_47 WHERE gold_coast = \"no\" AND adelaide = \"no\" AND melbourne = \"no\" AND auckland = \"no\""
} |
### INSTRUCTION
Name the condition for partial thromboplastin time of prolonged and platelet count of unaffected with bleeding time of prolonged
### INPUT
CREATE TABLE table_name_41 (condition VARCHAR, bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR)
### OUTPUT
SELECT condition FROM table_name_41 WHERE partial_thromboplastin_time = "prolonged" AND platelet_count = "unaffected" AND bleeding_time = "prolonged" | {
"input": "CREATE TABLE table_name_41 (condition VARCHAR, bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR)",
"instruction": "Name the condition for partial thromboplastin time of prolonged and platelet count of unaffected with bleeding time of prolonged",
"output": "SELECT condition FROM table_name_41 WHERE partial_thromboplastin_time = \"prolonged\" AND platelet_count = \"unaffected\" AND bleeding_time = \"prolonged\""
} |
### INSTRUCTION
Who were the opponents in the final where the score was 6–4, 2–6, 6–4, 7–6(3)?
### INPUT
CREATE TABLE table_2362486_1 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)
### OUTPUT
SELECT opponents_in_the_final FROM table_2362486_1 WHERE score_in_the_final = "6–4, 2–6, 6–4, 7–6(3)" | {
"input": "CREATE TABLE table_2362486_1 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)",
"instruction": "Who were the opponents in the final where the score was 6–4, 2–6, 6–4, 7–6(3)?",
"output": "SELECT opponents_in_the_final FROM table_2362486_1 WHERE score_in_the_final = \"6–4, 2–6, 6–4, 7–6(3)\""
} |
### INSTRUCTION
Which Bronze is the highest one that has a Rank larger than 1, and a Nation of dominican republic, and a Total larger than 4?
### INPUT
CREATE TABLE table_name_44 (bronze INTEGER, total VARCHAR, rank VARCHAR, nation VARCHAR)
### OUTPUT
SELECT MAX(bronze) FROM table_name_44 WHERE rank > 1 AND nation = "dominican republic" AND total > 4 | {
"input": "CREATE TABLE table_name_44 (bronze INTEGER, total VARCHAR, rank VARCHAR, nation VARCHAR)",
"instruction": "Which Bronze is the highest one that has a Rank larger than 1, and a Nation of dominican republic, and a Total larger than 4?",
"output": "SELECT MAX(bronze) FROM table_name_44 WHERE rank > 1 AND nation = \"dominican republic\" AND total > 4"
} |
### INSTRUCTION
How many titles does Episode 2 have
### INPUT
CREATE TABLE table_165732_2 (title VARCHAR, episode__number VARCHAR)
### OUTPUT
SELECT COUNT(title) FROM table_165732_2 WHERE episode__number = 2 | {
"input": "CREATE TABLE table_165732_2 (title VARCHAR, episode__number VARCHAR)",
"instruction": "How many titles does Episode 2 have",
"output": "SELECT COUNT(title) FROM table_165732_2 WHERE episode__number = 2"
} |
### INSTRUCTION
What is the biggest number of females where the males are at 28.2 with a rank greater than 5?
### INPUT
CREATE TABLE table_name_46 (females INTEGER, males VARCHAR, rank VARCHAR)
### OUTPUT
SELECT MAX(females) FROM table_name_46 WHERE males = 28.2 AND rank > 5 | {
"input": "CREATE TABLE table_name_46 (females INTEGER, males VARCHAR, rank VARCHAR)",
"instruction": "What is the biggest number of females where the males are at 28.2 with a rank greater than 5?",
"output": "SELECT MAX(females) FROM table_name_46 WHERE males = 28.2 AND rank > 5"
} |
### INSTRUCTION
How many episodes aired on 25 october 2012?
### INPUT
CREATE TABLE table_25721_3 (total_viewers VARCHAR, airdate VARCHAR)
### OUTPUT
SELECT COUNT(total_viewers) FROM table_25721_3 WHERE airdate = "25 October 2012" | {
"input": "CREATE TABLE table_25721_3 (total_viewers VARCHAR, airdate VARCHAR)",
"instruction": "How many episodes aired on 25 october 2012?",
"output": "SELECT COUNT(total_viewers) FROM table_25721_3 WHERE airdate = \"25 October 2012\""
} |
### INSTRUCTION
What is the tyre of nismo team member satoshi motoyama when he has rounds of all?
### INPUT
CREATE TABLE table_name_55 (tyre VARCHAR, drivers VARCHAR, rounds VARCHAR, team VARCHAR)
### OUTPUT
SELECT tyre FROM table_name_55 WHERE rounds = "all" AND team = "nismo" AND drivers = "satoshi motoyama" | {
"input": "CREATE TABLE table_name_55 (tyre VARCHAR, drivers VARCHAR, rounds VARCHAR, team VARCHAR)",
"instruction": "What is the tyre of nismo team member satoshi motoyama when he has rounds of all?",
"output": "SELECT tyre FROM table_name_55 WHERE rounds = \"all\" AND team = \"nismo\" AND drivers = \"satoshi motoyama\""
} |
### INSTRUCTION
How much Avg/G has a Long of 51, and a Loss of 333, and a Gain larger than 2013?
### INPUT
CREATE TABLE table_name_51 (avg_g VARCHAR, gain VARCHAR, long VARCHAR, loss VARCHAR)
### OUTPUT
SELECT COUNT(avg_g) FROM table_name_51 WHERE long = 51 AND loss = 333 AND gain > 2013 | {
"input": "CREATE TABLE table_name_51 (avg_g VARCHAR, gain VARCHAR, long VARCHAR, loss VARCHAR)",
"instruction": "How much Avg/G has a Long of 51, and a Loss of 333, and a Gain larger than 2013?",
"output": "SELECT COUNT(avg_g) FROM table_name_51 WHERE long = 51 AND loss = 333 AND gain > 2013"
} |
### INSTRUCTION
Which Condition has an unaffected Partial thromboplastin time, Platelet count, and a Prothrombin time?
### INPUT
CREATE TABLE table_name_46 (condition VARCHAR, prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR)
### OUTPUT
SELECT condition FROM table_name_46 WHERE partial_thromboplastin_time = "unaffected" AND platelet_count = "unaffected" AND prothrombin_time = "unaffected" | {
"input": "CREATE TABLE table_name_46 (condition VARCHAR, prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR)",
"instruction": "Which Condition has an unaffected Partial thromboplastin time, Platelet count, and a Prothrombin time?",
"output": "SELECT condition FROM table_name_46 WHERE partial_thromboplastin_time = \"unaffected\" AND platelet_count = \"unaffected\" AND prothrombin_time = \"unaffected\""
} |
### INSTRUCTION
Which Extra points 1 point has a Total Points smaller than 30, and Touchdowns (5 points) of 5?
### INPUT
CREATE TABLE table_name_22 (extra_points_1_point INTEGER, total_points VARCHAR, touchdowns__5_points_ VARCHAR)
### OUTPUT
SELECT AVG(extra_points_1_point) FROM table_name_22 WHERE total_points < 30 AND touchdowns__5_points_ = 5 | {
"input": "CREATE TABLE table_name_22 (extra_points_1_point INTEGER, total_points VARCHAR, touchdowns__5_points_ VARCHAR)",
"instruction": "Which Extra points 1 point has a Total Points smaller than 30, and Touchdowns (5 points) of 5?",
"output": "SELECT AVG(extra_points_1_point) FROM table_name_22 WHERE total_points < 30 AND touchdowns__5_points_ = 5"
} |
### INSTRUCTION
Where is the area of operation that had drilling during the year 1999?
### INPUT
CREATE TABLE table_name_19 (area_of_operation VARCHAR, services VARCHAR, years_of_operation VARCHAR)
### OUTPUT
SELECT area_of_operation FROM table_name_19 WHERE services = "drilling" AND years_of_operation = "1999" | {
"input": "CREATE TABLE table_name_19 (area_of_operation VARCHAR, services VARCHAR, years_of_operation VARCHAR)",
"instruction": "Where is the area of operation that had drilling during the year 1999?",
"output": "SELECT area_of_operation FROM table_name_19 WHERE services = \"drilling\" AND years_of_operation = \"1999\""
} |
### INSTRUCTION
Show the years, book titles, and publishers for all books, in descending order by year.
### INPUT
CREATE TABLE book_club (YEAR VARCHAR, book_title VARCHAR, publisher VARCHAR)
### OUTPUT
SELECT YEAR, book_title, publisher FROM book_club ORDER BY YEAR DESC | {
"input": "CREATE TABLE book_club (YEAR VARCHAR, book_title VARCHAR, publisher VARCHAR)",
"instruction": "Show the years, book titles, and publishers for all books, in descending order by year.",
"output": "SELECT YEAR, book_title, publisher FROM book_club ORDER BY YEAR DESC"
} |
### INSTRUCTION
Which First elected is the highest one that has a Party of dem, and a District larger than 24, and a Home city/town of berlin?
### INPUT
CREATE TABLE table_name_73 (first_elected INTEGER, home_city_town VARCHAR, party VARCHAR, district VARCHAR)
### OUTPUT
SELECT MAX(first_elected) FROM table_name_73 WHERE party = "dem" AND district > 24 AND home_city_town = "berlin" | {
"input": "CREATE TABLE table_name_73 (first_elected INTEGER, home_city_town VARCHAR, party VARCHAR, district VARCHAR)",
"instruction": "Which First elected is the highest one that has a Party of dem, and a District larger than 24, and a Home city/town of berlin?",
"output": "SELECT MAX(first_elected) FROM table_name_73 WHERE party = \"dem\" AND district > 24 AND home_city_town = \"berlin\""
} |
### INSTRUCTION
What is the lowest number of last cfs of the team with 2 cf appearances, 0 cup wins, and less than 0 cf wins?
### INPUT
CREATE TABLE table_name_90 (last_cf INTEGER, cf_wins VARCHAR, cf_appearances VARCHAR, cup_wins VARCHAR)
### OUTPUT
SELECT MIN(last_cf) FROM table_name_90 WHERE cf_appearances = 2 AND cup_wins = 0 AND cf_wins < 0 | {
"input": "CREATE TABLE table_name_90 (last_cf INTEGER, cf_wins VARCHAR, cf_appearances VARCHAR, cup_wins VARCHAR)",
"instruction": "What is the lowest number of last cfs of the team with 2 cf appearances, 0 cup wins, and less than 0 cf wins?",
"output": "SELECT MIN(last_cf) FROM table_name_90 WHERE cf_appearances = 2 AND cup_wins = 0 AND cf_wins < 0"
} |
### INSTRUCTION
Find the name of dorms which have both TV Lounge and Study Room as amenities.
### INPUT
CREATE TABLE dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR)
### OUTPUT
SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' INTERSECT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room' | {
"input": "CREATE TABLE dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR)",
"instruction": "Find the name of dorms which have both TV Lounge and Study Room as amenities.",
"output": "SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' INTERSECT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room'"
} |
### INSTRUCTION
Which captain has Gintare Karpaviciute as an alternate?
### INPUT
CREATE TABLE table_name_33 (captain VARCHAR, alternate__1_ VARCHAR)
### OUTPUT
SELECT captain FROM table_name_33 WHERE alternate__1_ = "gintare karpaviciute" | {
"input": "CREATE TABLE table_name_33 (captain VARCHAR, alternate__1_ VARCHAR)",
"instruction": "Which captain has Gintare Karpaviciute as an alternate?",
"output": "SELECT captain FROM table_name_33 WHERE alternate__1_ = \"gintare karpaviciute\""
} |
### INSTRUCTION
what is the venue when the runner-up (average in final) is wayne jones (94.64)?
### INPUT
CREATE TABLE table_name_6 (venue VARCHAR, runner_up__average_in_final_ VARCHAR)
### OUTPUT
SELECT venue FROM table_name_6 WHERE runner_up__average_in_final_ = "wayne jones (94.64)" | {
"input": "CREATE TABLE table_name_6 (venue VARCHAR, runner_up__average_in_final_ VARCHAR)",
"instruction": "what is the venue when the runner-up (average in final) is wayne jones (94.64)?",
"output": "SELECT venue FROM table_name_6 WHERE runner_up__average_in_final_ = \"wayne jones (94.64)\""
} |
### INSTRUCTION
how many games have a location of memorial stadium and a time of 2:27?
### INPUT
CREATE TABLE table_name_95 (game VARCHAR, location VARCHAR, time VARCHAR)
### OUTPUT
SELECT COUNT(game) FROM table_name_95 WHERE location = "memorial stadium" AND time = "2:27" | {
"input": "CREATE TABLE table_name_95 (game VARCHAR, location VARCHAR, time VARCHAR)",
"instruction": "how many games have a location of memorial stadium and a time of 2:27?",
"output": "SELECT COUNT(game) FROM table_name_95 WHERE location = \"memorial stadium\" AND time = \"2:27\""
} |
### INSTRUCTION
What is the average number of gold medals won by Brazil for entries with more than 1 bronze medal but a total smaller than 4?
### INPUT
CREATE TABLE table_name_19 (gold INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR)
### OUTPUT
SELECT AVG(gold) FROM table_name_19 WHERE total < 4 AND nation = "brazil" AND bronze > 1 | {
"input": "CREATE TABLE table_name_19 (gold INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR)",
"instruction": "What is the average number of gold medals won by Brazil for entries with more than 1 bronze medal but a total smaller than 4?",
"output": "SELECT AVG(gold) FROM table_name_19 WHERE total < 4 AND nation = \"brazil\" AND bronze > 1"
} |
### INSTRUCTION
What is the frequency of number 3 with a bus station origin?
### INPUT
CREATE TABLE table_name_33 (frequency VARCHAR, origin VARCHAR, number VARCHAR)
### OUTPUT
SELECT frequency FROM table_name_33 WHERE origin = "bus station" AND number = 3 | {
"input": "CREATE TABLE table_name_33 (frequency VARCHAR, origin VARCHAR, number VARCHAR)",
"instruction": "What is the frequency of number 3 with a bus station origin?",
"output": "SELECT frequency FROM table_name_33 WHERE origin = \"bus station\" AND number = 3"
} |
### INSTRUCTION
What was the overall draft pick of the player who was a db and attended college in iowa?
### INPUT
CREATE TABLE table_name_82 (overall VARCHAR, college VARCHAR, position VARCHAR)
### OUTPUT
SELECT overall FROM table_name_82 WHERE college = "iowa" AND position = "db" | {
"input": "CREATE TABLE table_name_82 (overall VARCHAR, college VARCHAR, position VARCHAR)",
"instruction": "What was the overall draft pick of the player who was a db and attended college in iowa?",
"output": "SELECT overall FROM table_name_82 WHERE college = \"iowa\" AND position = \"db\""
} |
### INSTRUCTION
What is the date of the Last Ballet Style Performance of Rhys kosakowski as Billy Elliot?
### INPUT
CREATE TABLE table_name_7 (last_performance VARCHAR, style VARCHAR, name VARCHAR)
### OUTPUT
SELECT last_performance FROM table_name_7 WHERE style = "ballet" AND name = "rhys kosakowski" | {
"input": "CREATE TABLE table_name_7 (last_performance VARCHAR, style VARCHAR, name VARCHAR)",
"instruction": "What is the date of the Last Ballet Style Performance of Rhys kosakowski as Billy Elliot?",
"output": "SELECT last_performance FROM table_name_7 WHERE style = \"ballet\" AND name = \"rhys kosakowski\""
} |
### INSTRUCTION
Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.
### INPUT
CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR); CREATE TABLE Maintenance_Engineers (company_id VARCHAR); CREATE TABLE Third_Party_Companies (company_id VARCHAR, company_name VARCHAR)
### OUTPUT
SELECT T1.company_id, T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING COUNT(*) >= 2 UNION SELECT T3.company_id, T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id = T4.maintenance_contract_company_id GROUP BY T3.company_id HAVING COUNT(*) >= 2 | {
"input": "CREATE TABLE Maintenance_Contracts (maintenance_contract_company_id VARCHAR); CREATE TABLE Maintenance_Engineers (company_id VARCHAR); CREATE TABLE Third_Party_Companies (company_id VARCHAR, company_name VARCHAR)",
"instruction": "Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.",
"output": "SELECT T1.company_id, T1.company_name FROM Third_Party_Companies AS T1 JOIN Maintenance_Engineers AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING COUNT(*) >= 2 UNION SELECT T3.company_id, T3.company_name FROM Third_Party_Companies AS T3 JOIN Maintenance_Contracts AS T4 ON T3.company_id = T4.maintenance_contract_company_id GROUP BY T3.company_id HAVING COUNT(*) >= 2"
} |
### INSTRUCTION
What was the pick number for the person from the United States who as drafted to the SF position from North Carolina?
### INPUT
CREATE TABLE table_name_78 (pick VARCHAR, position VARCHAR, nationality VARCHAR, college_high_school_club VARCHAR)
### OUTPUT
SELECT pick FROM table_name_78 WHERE nationality = "united states" AND college_high_school_club = "north carolina" AND position = "sf" | {
"input": "CREATE TABLE table_name_78 (pick VARCHAR, position VARCHAR, nationality VARCHAR, college_high_school_club VARCHAR)",
"instruction": "What was the pick number for the person from the United States who as drafted to the SF position from North Carolina?",
"output": "SELECT pick FROM table_name_78 WHERE nationality = \"united states\" AND college_high_school_club = \"north carolina\" AND position = \"sf\""
} |
### INSTRUCTION
WHAT IS THE TITLE WITH CATEGORY OF best r&b song?
### INPUT
CREATE TABLE table_name_95 (title VARCHAR, category VARCHAR)
### OUTPUT
SELECT title FROM table_name_95 WHERE category = "best r&b song" | {
"input": "CREATE TABLE table_name_95 (title VARCHAR, category VARCHAR)",
"instruction": "WHAT IS THE TITLE WITH CATEGORY OF best r&b song?",
"output": "SELECT title FROM table_name_95 WHERE category = \"best r&b song\""
} |
### INSTRUCTION
Team of honda 250cc, and a Time of 31’ 03.093 has what lowest rank?
### INPUT
CREATE TABLE table_name_74 (rank INTEGER, team VARCHAR, time VARCHAR)
### OUTPUT
SELECT MIN(rank) FROM table_name_74 WHERE team = "honda 250cc" AND time = "31’ 03.093" | {
"input": "CREATE TABLE table_name_74 (rank INTEGER, team VARCHAR, time VARCHAR)",
"instruction": "Team of honda 250cc, and a Time of 31’ 03.093 has what lowest rank?",
"output": "SELECT MIN(rank) FROM table_name_74 WHERE team = \"honda 250cc\" AND time = \"31’ 03.093\""
} |
### INSTRUCTION
Who is the rider with less than 50 final position-tours and less than 11 final position-vuelta before 2008?
### INPUT
CREATE TABLE table_name_50 (rider VARCHAR, year VARCHAR, final_position___tour VARCHAR, final_position___vuelta VARCHAR)
### OUTPUT
SELECT rider FROM table_name_50 WHERE final_position___tour < 50 AND final_position___vuelta < 11 AND year < 2008 | {
"input": "CREATE TABLE table_name_50 (rider VARCHAR, year VARCHAR, final_position___tour VARCHAR, final_position___vuelta VARCHAR)",
"instruction": "Who is the rider with less than 50 final position-tours and less than 11 final position-vuelta before 2008?",
"output": "SELECT rider FROM table_name_50 WHERE final_position___tour < 50 AND final_position___vuelta < 11 AND year < 2008"
} |
### INSTRUCTION
Name the D 49 √ for when D 46 √ of i 1 @
### INPUT
CREATE TABLE table_name_24 (d_49_√ VARCHAR, d_46_√ VARCHAR)
### OUTPUT
SELECT d_49_√ FROM table_name_24 WHERE d_46_√ = "i 1 @" | {
"input": "CREATE TABLE table_name_24 (d_49_√ VARCHAR, d_46_√ VARCHAR)",
"instruction": "Name the D 49 √ for when D 46 √ of i 1 @",
"output": "SELECT d_49_√ FROM table_name_24 WHERE d_46_√ = \"i 1 @\""
} |
### INSTRUCTION
Which race was on the Las Vegas Motor Speedway for 2 hours?
### INPUT
CREATE TABLE table_name_36 (race VARCHAR, circuit VARCHAR, length VARCHAR)
### OUTPUT
SELECT race FROM table_name_36 WHERE circuit = "las vegas motor speedway" AND length = "2 hours" | {
"input": "CREATE TABLE table_name_36 (race VARCHAR, circuit VARCHAR, length VARCHAR)",
"instruction": "Which race was on the Las Vegas Motor Speedway for 2 hours?",
"output": "SELECT race FROM table_name_36 WHERE circuit = \"las vegas motor speedway\" AND length = \"2 hours\""
} |
### INSTRUCTION
When melbourne played as the home team, who did they play?
### INPUT
CREATE TABLE table_name_41 (away_team VARCHAR, home_team VARCHAR)
### OUTPUT
SELECT away_team FROM table_name_41 WHERE home_team = "melbourne" | {
"input": "CREATE TABLE table_name_41 (away_team VARCHAR, home_team VARCHAR)",
"instruction": "When melbourne played as the home team, who did they play?",
"output": "SELECT away_team FROM table_name_41 WHERE home_team = \"melbourne\""
} |
### INSTRUCTION
How many viewers for the episode with the weekly rank for living of 4?
### INPUT
CREATE TABLE table_name_25 (viewers VARCHAR, weekly_rank_for_living VARCHAR)
### OUTPUT
SELECT viewers FROM table_name_25 WHERE weekly_rank_for_living = "4" | {
"input": "CREATE TABLE table_name_25 (viewers VARCHAR, weekly_rank_for_living VARCHAR)",
"instruction": "How many viewers for the episode with the weekly rank for living of 4?",
"output": "SELECT viewers FROM table_name_25 WHERE weekly_rank_for_living = \"4\""
} |
### INSTRUCTION
Which Show has an Award of indian television academy awards?
### INPUT
CREATE TABLE table_name_77 (show VARCHAR, award VARCHAR)
### OUTPUT
SELECT show FROM table_name_77 WHERE award = "indian television academy awards" | {
"input": "CREATE TABLE table_name_77 (show VARCHAR, award VARCHAR)",
"instruction": "Which Show has an Award of indian television academy awards?",
"output": "SELECT show FROM table_name_77 WHERE award = \"indian television academy awards\""
} |
### INSTRUCTION
What is Diego Junqueira Gabriel Trujillo-Soler's opponent's score?
### INPUT
CREATE TABLE table_name_35 (score VARCHAR, opponents VARCHAR)
### OUTPUT
SELECT score FROM table_name_35 WHERE opponents = "diego junqueira gabriel trujillo-soler" | {
"input": "CREATE TABLE table_name_35 (score VARCHAR, opponents VARCHAR)",
"instruction": "What is Diego Junqueira Gabriel Trujillo-Soler's opponent's score?",
"output": "SELECT score FROM table_name_35 WHERE opponents = \"diego junqueira gabriel trujillo-soler\""
} |
### INSTRUCTION
What are the countries that have greater surface area than any country in Europe?
### INPUT
CREATE TABLE country (Name VARCHAR, SurfaceArea INTEGER, Continent VARCHAR)
### OUTPUT
SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = "Europe") | {
"input": "CREATE TABLE country (Name VARCHAR, SurfaceArea INTEGER, Continent VARCHAR)",
"instruction": "What are the countries that have greater surface area than any country in Europe?",
"output": "SELECT Name FROM country WHERE SurfaceArea > (SELECT MIN(SurfaceArea) FROM country WHERE Continent = \"Europe\")"
} |
### INSTRUCTION
What is the average Year with a Veritas rs chassis and more than 0 points?
### INPUT
CREATE TABLE table_name_73 (year INTEGER, chassis VARCHAR, points VARCHAR)
### OUTPUT
SELECT AVG(year) FROM table_name_73 WHERE chassis = "veritas rs" AND points > 0 | {
"input": "CREATE TABLE table_name_73 (year INTEGER, chassis VARCHAR, points VARCHAR)",
"instruction": "What is the average Year with a Veritas rs chassis and more than 0 points?",
"output": "SELECT AVG(year) FROM table_name_73 WHERE chassis = \"veritas rs\" AND points > 0"
} |
### INSTRUCTION
When chase harrison category:articles with hcards is the name what is the year?
### INPUT
CREATE TABLE table_29743928_4 (years VARCHAR, name VARCHAR)
### OUTPUT
SELECT years FROM table_29743928_4 WHERE name = "Chase Harrison Category:Articles with hCards" | {
"input": "CREATE TABLE table_29743928_4 (years VARCHAR, name VARCHAR)",
"instruction": "When chase harrison category:articles with hcards is the name what is the year?",
"output": "SELECT years FROM table_29743928_4 WHERE name = \"Chase Harrison Category:Articles with hCards\""
} |
### INSTRUCTION
what is the top-5 when the tournament is totals and the top-25 is more than 4?
### INPUT
CREATE TABLE table_name_80 (top_5 INTEGER, tournament VARCHAR, top_25 VARCHAR)
### OUTPUT
SELECT AVG(top_5) FROM table_name_80 WHERE tournament = "totals" AND top_25 > 4 | {
"input": "CREATE TABLE table_name_80 (top_5 INTEGER, tournament VARCHAR, top_25 VARCHAR)",
"instruction": "what is the top-5 when the tournament is totals and the top-25 is more than 4?",
"output": "SELECT AVG(top_5) FROM table_name_80 WHERE tournament = \"totals\" AND top_25 > 4"
} |
### INSTRUCTION
What is the truck used by Brett Moffitt, from Hattori Racing Enterprises?
### INPUT
CREATE TABLE table_name_23 (truck_s_ VARCHAR, driver_s_ VARCHAR, team VARCHAR)
### OUTPUT
SELECT truck_s_ FROM table_name_23 WHERE driver_s_ = "brett moffitt" AND team = "hattori racing enterprises" | {
"input": "CREATE TABLE table_name_23 (truck_s_ VARCHAR, driver_s_ VARCHAR, team VARCHAR)",
"instruction": "What is the truck used by Brett Moffitt, from Hattori Racing Enterprises?",
"output": "SELECT truck_s_ FROM table_name_23 WHERE driver_s_ = \"brett moffitt\" AND team = \"hattori racing enterprises\""
} |
### INSTRUCTION
How many totals have andy north as the player?
### INPUT
CREATE TABLE table_name_96 (total INTEGER, player VARCHAR)
### OUTPUT
SELECT SUM(total) FROM table_name_96 WHERE player = "andy north" | {
"input": "CREATE TABLE table_name_96 (total INTEGER, player VARCHAR)",
"instruction": "How many totals have andy north as the player?",
"output": "SELECT SUM(total) FROM table_name_96 WHERE player = \"andy north\""
} |
### INSTRUCTION
How many papers are published by the institution "Tokohu University"?
### INPUT
CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR)
### OUTPUT
SELECT COUNT(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = "Tokohu University" | {
"input": "CREATE TABLE inst (instid VARCHAR, name VARCHAR); CREATE TABLE authorship (paperid VARCHAR, instid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR)",
"instruction": "How many papers are published by the institution \"Tokohu University\"?",
"output": "SELECT COUNT(DISTINCT t1.title) FROM papers AS t1 JOIN authorship AS t2 ON t1.paperid = t2.paperid JOIN inst AS t3 ON t2.instid = t3.instid WHERE t3.name = \"Tokohu University\""
} |
### INSTRUCTION
How many weeks did the single that entered the charts 14 september 2002 stay on the charts ?
### INPUT
CREATE TABLE table_name_30 (weeks_on_chart__uk_ VARCHAR, entered_chart__uk_ VARCHAR)
### OUTPUT
SELECT COUNT(weeks_on_chart__uk_) FROM table_name_30 WHERE entered_chart__uk_ = "14 september 2002" | {
"input": "CREATE TABLE table_name_30 (weeks_on_chart__uk_ VARCHAR, entered_chart__uk_ VARCHAR)",
"instruction": "How many weeks did the single that entered the charts 14 september 2002 stay on the charts ?",
"output": "SELECT COUNT(weeks_on_chart__uk_) FROM table_name_30 WHERE entered_chart__uk_ = \"14 september 2002\""
} |
### INSTRUCTION
What is the number of gold for the country ranked 19?
### INPUT
CREATE TABLE table_name_19 (gold INTEGER, rank VARCHAR)
### OUTPUT
SELECT SUM(gold) FROM table_name_19 WHERE rank = "19" | {
"input": "CREATE TABLE table_name_19 (gold INTEGER, rank VARCHAR)",
"instruction": "What is the number of gold for the country ranked 19?",
"output": "SELECT SUM(gold) FROM table_name_19 WHERE rank = \"19\""
} |
### INSTRUCTION
Which memeber has a first elected of 1972, alp as the party, vic as the state, and an electorate of gellibrand?
### INPUT
CREATE TABLE table_name_70 (member VARCHAR, electorate VARCHAR, state VARCHAR, first_elected VARCHAR, party VARCHAR)
### OUTPUT
SELECT member FROM table_name_70 WHERE first_elected = "1972" AND party = "alp" AND state = "vic" AND electorate = "gellibrand" | {
"input": "CREATE TABLE table_name_70 (member VARCHAR, electorate VARCHAR, state VARCHAR, first_elected VARCHAR, party VARCHAR)",
"instruction": "Which memeber has a first elected of 1972, alp as the party, vic as the state, and an electorate of gellibrand?",
"output": "SELECT member FROM table_name_70 WHERE first_elected = \"1972\" AND party = \"alp\" AND state = \"vic\" AND electorate = \"gellibrand\""
} |
### INSTRUCTION
what is the reason for change where the date the successor was seated was july 28, 1876?
### INPUT
CREATE TABLE table_2192067_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)
### OUTPUT
SELECT reason_for_change FROM table_2192067_4 WHERE date_successor_seated = "July 28, 1876" | {
"input": "CREATE TABLE table_2192067_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)",
"instruction": "what is the reason for change where the date the successor was seated was july 28, 1876?",
"output": "SELECT reason_for_change FROM table_2192067_4 WHERE date_successor_seated = \"July 28, 1876\""
} |
### INSTRUCTION
How many total smartphones were shipped during the quarter 2012 Q1?
### INPUT
CREATE TABLE table_14260687_3 (total VARCHAR, quarter VARCHAR)
### OUTPUT
SELECT COUNT(total) FROM table_14260687_3 WHERE quarter = "2012 Q1" | {
"input": "CREATE TABLE table_14260687_3 (total VARCHAR, quarter VARCHAR)",
"instruction": "How many total smartphones were shipped during the quarter 2012 Q1?",
"output": "SELECT COUNT(total) FROM table_14260687_3 WHERE quarter = \"2012 Q1\""
} |
### INSTRUCTION
Show all storm names affecting region "Denmark".
### INPUT
CREATE TABLE region (region_id VARCHAR, region_name VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)
### OUTPUT
SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark' | {
"input": "CREATE TABLE region (region_id VARCHAR, region_name VARCHAR); CREATE TABLE affected_region (region_id VARCHAR, storm_id VARCHAR); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)",
"instruction": "Show all storm names affecting region \"Denmark\".",
"output": "SELECT T3.name FROM affected_region AS T1 JOIN region AS T2 ON T1.region_id = T2.region_id JOIN storm AS T3 ON T1.storm_id = T3.storm_id WHERE T2.region_name = 'Denmark'"
} |
### INSTRUCTION
Name the runner-up for margin of victory of 1 stroke and tournament of legend financial group classic
### INPUT
CREATE TABLE table_name_10 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT runner_s__up FROM table_name_10 WHERE margin_of_victory = "1 stroke" AND tournament = "legend financial group classic" | {
"input": "CREATE TABLE table_name_10 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)",
"instruction": "Name the runner-up for margin of victory of 1 stroke and tournament of legend financial group classic",
"output": "SELECT runner_s__up FROM table_name_10 WHERE margin_of_victory = \"1 stroke\" AND tournament = \"legend financial group classic\""
} |
### INSTRUCTION
What city of license has a Frequency under 107.7, and a call sign of w247aq?
### INPUT
CREATE TABLE table_name_52 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)
### OUTPUT
SELECT city_of_license FROM table_name_52 WHERE frequency_mhz < 107.7 AND call_sign = "w247aq" | {
"input": "CREATE TABLE table_name_52 (city_of_license VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR)",
"instruction": "What city of license has a Frequency under 107.7, and a call sign of w247aq?",
"output": "SELECT city_of_license FROM table_name_52 WHERE frequency_mhz < 107.7 AND call_sign = \"w247aq\""
} |
### INSTRUCTION
What was the date of the tournament held in Indonesia?
### INPUT
CREATE TABLE table_name_23 (date VARCHAR, country VARCHAR)
### OUTPUT
SELECT date FROM table_name_23 WHERE country = "indonesia" | {
"input": "CREATE TABLE table_name_23 (date VARCHAR, country VARCHAR)",
"instruction": "What was the date of the tournament held in Indonesia?",
"output": "SELECT date FROM table_name_23 WHERE country = \"indonesia\""
} |
### INSTRUCTION
What is the resurrection of 144,000 date with a Christ made king date in 1914, a separting sheep & goats date during Christ's presence, and a judgment of religion date in 1878?
### INPUT
CREATE TABLE table_name_63 (resurrection_of144 VARCHAR, judgmentof_religion VARCHAR, christ_madeking VARCHAR, separating_sheep_ VARCHAR, goats VARCHAR)
### OUTPUT
SELECT resurrection_of144, 000 FROM table_name_63 WHERE christ_madeking = "1914" AND separating_sheep_ & goats = "during christ's presence" AND judgmentof_religion = "1878" | {
"input": "CREATE TABLE table_name_63 (resurrection_of144 VARCHAR, judgmentof_religion VARCHAR, christ_madeking VARCHAR, separating_sheep_ VARCHAR, goats VARCHAR)",
"instruction": "What is the resurrection of 144,000 date with a Christ made king date in 1914, a separting sheep & goats date during Christ's presence, and a judgment of religion date in 1878?",
"output": "SELECT resurrection_of144, 000 FROM table_name_63 WHERE christ_madeking = \"1914\" AND separating_sheep_ & goats = \"during christ's presence\" AND judgmentof_religion = \"1878\""
} |
### INSTRUCTION
What is the venue that Saint Joseph's University hosted at?
### INPUT
CREATE TABLE table_name_38 (venue VARCHAR, host VARCHAR)
### OUTPUT
SELECT venue FROM table_name_38 WHERE host = "saint joseph's university" | {
"input": "CREATE TABLE table_name_38 (venue VARCHAR, host VARCHAR)",
"instruction": "What is the venue that Saint Joseph's University hosted at?",
"output": "SELECT venue FROM table_name_38 WHERE host = \"saint joseph's university\""
} |
### INSTRUCTION
What is the average, minimum, maximum, and total transaction amount?
### INPUT
CREATE TABLE Financial_transactions (transaction_amount INTEGER)
### OUTPUT
SELECT AVG(transaction_amount), MIN(transaction_amount), MAX(transaction_amount), SUM(transaction_amount) FROM Financial_transactions | {
"input": "CREATE TABLE Financial_transactions (transaction_amount INTEGER)",
"instruction": "What is the average, minimum, maximum, and total transaction amount?",
"output": "SELECT AVG(transaction_amount), MIN(transaction_amount), MAX(transaction_amount), SUM(transaction_amount) FROM Financial_transactions"
} |
### INSTRUCTION
Which player(s) is from South Africa?
### INPUT
CREATE TABLE table_name_76 (player VARCHAR, country VARCHAR)
### OUTPUT
SELECT player FROM table_name_76 WHERE country = "south africa" | {
"input": "CREATE TABLE table_name_76 (player VARCHAR, country VARCHAR)",
"instruction": "Which player(s) is from South Africa?",
"output": "SELECT player FROM table_name_76 WHERE country = \"south africa\""
} |
### INSTRUCTION
Name the resolution for ketftv.com and callsign of kldo-dt2
### INPUT
CREATE TABLE table_name_87 (resolution VARCHAR, official_website VARCHAR, callsign VARCHAR)
### OUTPUT
SELECT resolution FROM table_name_87 WHERE official_website = "ketftv.com" AND callsign = "kldo-dt2" | {
"input": "CREATE TABLE table_name_87 (resolution VARCHAR, official_website VARCHAR, callsign VARCHAR)",
"instruction": "Name the resolution for ketftv.com and callsign of kldo-dt2",
"output": "SELECT resolution FROM table_name_87 WHERE official_website = \"ketftv.com\" AND callsign = \"kldo-dt2\""
} |
### INSTRUCTION
Which Condition has an unaffected Prothrombin time and a Bleeding time, and a Partial thromboplastin time of prolonged?
### INPUT
CREATE TABLE table_name_73 (condition VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR)
### OUTPUT
SELECT condition FROM table_name_73 WHERE prothrombin_time = "unaffected" AND bleeding_time = "unaffected" AND partial_thromboplastin_time = "prolonged" | {
"input": "CREATE TABLE table_name_73 (condition VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR)",
"instruction": "Which Condition has an unaffected Prothrombin time and a Bleeding time, and a Partial thromboplastin time of prolonged?",
"output": "SELECT condition FROM table_name_73 WHERE prothrombin_time = \"unaffected\" AND bleeding_time = \"unaffected\" AND partial_thromboplastin_time = \"prolonged\""
} |
### INSTRUCTION
What is the Cardinalatial order and title that Pedro Martínez de Luna y Gotor elevated?
### INPUT
CREATE TABLE table_name_84 (cardinalatial_order_and_title VARCHAR, elector VARCHAR)
### OUTPUT
SELECT cardinalatial_order_and_title FROM table_name_84 WHERE elector = "pedro martínez de luna y gotor" | {
"input": "CREATE TABLE table_name_84 (cardinalatial_order_and_title VARCHAR, elector VARCHAR)",
"instruction": "What is the Cardinalatial order and title that Pedro Martínez de Luna y Gotor elevated?",
"output": "SELECT cardinalatial_order_and_title FROM table_name_84 WHERE elector = \"pedro martínez de luna y gotor\""
} |
### INSTRUCTION
What is the sum of Silver when the total is less than 6, the rank is 6 and the Bulgaria is the nation?
### INPUT
CREATE TABLE table_name_19 (silver INTEGER, nation VARCHAR, total VARCHAR, rank VARCHAR)
### OUTPUT
SELECT SUM(silver) FROM table_name_19 WHERE total < "6" AND rank = "6" AND nation = "bulgaria" | {
"input": "CREATE TABLE table_name_19 (silver INTEGER, nation VARCHAR, total VARCHAR, rank VARCHAR)",
"instruction": "What is the sum of Silver when the total is less than 6, the rank is 6 and the Bulgaria is the nation?",
"output": "SELECT SUM(silver) FROM table_name_19 WHERE total < \"6\" AND rank = \"6\" AND nation = \"bulgaria\""
} |
### INSTRUCTION
What is the lowest played 2 number with less than 83 losses and less than 65 draws with Chernomorets Novorossiysk in season 8?
### INPUT
CREATE TABLE table_name_65 (played_2 INTEGER, drawn VARCHAR, club_1 VARCHAR, lost VARCHAR, seasons VARCHAR)
### OUTPUT
SELECT MIN(played_2) FROM table_name_65 WHERE lost > 83 AND seasons = 8 AND club_1 = "chernomorets novorossiysk" AND drawn < 65 | {
"input": "CREATE TABLE table_name_65 (played_2 INTEGER, drawn VARCHAR, club_1 VARCHAR, lost VARCHAR, seasons VARCHAR)",
"instruction": "What is the lowest played 2 number with less than 83 losses and less than 65 draws with Chernomorets Novorossiysk in season 8?",
"output": "SELECT MIN(played_2) FROM table_name_65 WHERE lost > 83 AND seasons = 8 AND club_1 = \"chernomorets novorossiysk\" AND drawn < 65"
} |
### INSTRUCTION
Tell me the host for midwest thomas assembly center
### INPUT
CREATE TABLE table_name_85 (host VARCHAR, region VARCHAR, venue VARCHAR)
### OUTPUT
SELECT host FROM table_name_85 WHERE region = "midwest" AND venue = "thomas assembly center" | {
"input": "CREATE TABLE table_name_85 (host VARCHAR, region VARCHAR, venue VARCHAR)",
"instruction": "Tell me the host for midwest thomas assembly center",
"output": "SELECT host FROM table_name_85 WHERE region = \"midwest\" AND venue = \"thomas assembly center\""
} |
### INSTRUCTION
What is the sum of all the rounds when a Florida State player was drafted?
### INPUT
CREATE TABLE table_name_8 (round VARCHAR, college VARCHAR)
### OUTPUT
SELECT COUNT(round) FROM table_name_8 WHERE college = "florida state" | {
"input": "CREATE TABLE table_name_8 (round VARCHAR, college VARCHAR)",
"instruction": "What is the sum of all the rounds when a Florida State player was drafted?",
"output": "SELECT COUNT(round) FROM table_name_8 WHERE college = \"florida state\""
} |
### INSTRUCTION
Oklahoma State produced a player in which position in the draft?
### INPUT
CREATE TABLE table_name_26 (position VARCHAR, school_club_team VARCHAR)
### OUTPUT
SELECT position FROM table_name_26 WHERE school_club_team = "oklahoma state" | {
"input": "CREATE TABLE table_name_26 (position VARCHAR, school_club_team VARCHAR)",
"instruction": "Oklahoma State produced a player in which position in the draft?",
"output": "SELECT position FROM table_name_26 WHERE school_club_team = \"oklahoma state\""
} |
### INSTRUCTION
What is the Nation with 2012 as the year, and a Competition of preseason, and a Result of w 0–3?
### INPUT
CREATE TABLE table_name_48 (nation VARCHAR, result VARCHAR, year VARCHAR, competition VARCHAR)
### OUTPUT
SELECT nation FROM table_name_48 WHERE year = 2012 AND competition = "preseason" AND result = "w 0–3" | {
"input": "CREATE TABLE table_name_48 (nation VARCHAR, result VARCHAR, year VARCHAR, competition VARCHAR)",
"instruction": "What is the Nation with 2012 as the year, and a Competition of preseason, and a Result of w 0–3?",
"output": "SELECT nation FROM table_name_48 WHERE year = 2012 AND competition = \"preseason\" AND result = \"w 0–3\""
} |
### INSTRUCTION
What number did Moño Negro peak at before 1996?
### INPUT
CREATE TABLE table_name_81 (peak INTEGER, track VARCHAR, year VARCHAR)
### OUTPUT
SELECT MAX(peak) FROM table_name_81 WHERE track = "moño negro" AND year < 1996 | {
"input": "CREATE TABLE table_name_81 (peak INTEGER, track VARCHAR, year VARCHAR)",
"instruction": "What number did Moño Negro peak at before 1996?",
"output": "SELECT MAX(peak) FROM table_name_81 WHERE track = \"moño negro\" AND year < 1996"
} |
### INSTRUCTION
What is the campus fee of "San Jose State University" in year 1996?
### INPUT
CREATE TABLE csu_fees (year VARCHAR); CREATE TABLE campuses (id VARCHAR)
### OUTPUT
SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = "San Jose State University" AND T2.year = 1996 | {
"input": "CREATE TABLE csu_fees (year VARCHAR); CREATE TABLE campuses (id VARCHAR)",
"instruction": "What is the campus fee of \"San Jose State University\" in year 1996?",
"output": "SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = \"San Jose State University\" AND T2.year = 1996"
} |
### INSTRUCTION
What is the sequence length (aa) of the protein with the common name Purple Sea Urchin and a divergence from human lineage less than 742.9?
### INPUT
CREATE TABLE table_name_67 (sequence_length__aa_ INTEGER, common_name VARCHAR, divergence_from_human_lineage__mya_ VARCHAR)
### OUTPUT
SELECT SUM(sequence_length__aa_) FROM table_name_67 WHERE common_name = "purple sea urchin" AND divergence_from_human_lineage__mya_ < 742.9 | {
"input": "CREATE TABLE table_name_67 (sequence_length__aa_ INTEGER, common_name VARCHAR, divergence_from_human_lineage__mya_ VARCHAR)",
"instruction": "What is the sequence length (aa) of the protein with the common name Purple Sea Urchin and a divergence from human lineage less than 742.9?",
"output": "SELECT SUM(sequence_length__aa_) FROM table_name_67 WHERE common_name = \"purple sea urchin\" AND divergence_from_human_lineage__mya_ < 742.9"
} |
### INSTRUCTION
The original air date of 29November2007 has what total no.?
### INPUT
CREATE TABLE table_11642945_1 (total_no VARCHAR, original_air_date VARCHAR)
### OUTPUT
SELECT total_no FROM table_11642945_1 WHERE original_air_date = "29November2007" | {
"input": "CREATE TABLE table_11642945_1 (total_no VARCHAR, original_air_date VARCHAR)",
"instruction": "The original air date of 29November2007 has what total no.?",
"output": "SELECT total_no FROM table_11642945_1 WHERE original_air_date = \"29November2007\""
} |
### INSTRUCTION
In which condition(s) is bleeding time prolonged and prothrombin time unaffected?
### INPUT
CREATE TABLE table_1555308_1 (condition VARCHAR, bleeding_time VARCHAR, prothrombin_time VARCHAR)
### OUTPUT
SELECT condition FROM table_1555308_1 WHERE bleeding_time = "Prolonged" AND prothrombin_time = "Unaffected" | {
"input": "CREATE TABLE table_1555308_1 (condition VARCHAR, bleeding_time VARCHAR, prothrombin_time VARCHAR)",
"instruction": "In which condition(s) is bleeding time prolonged and prothrombin time unaffected?",
"output": "SELECT condition FROM table_1555308_1 WHERE bleeding_time = \"Prolonged\" AND prothrombin_time = \"Unaffected\""
} |
### INSTRUCTION
What type of engine does the BF Racing Marron Excavations have that also has Monaco as chassis and Lee Filliponi as the driver?
### INPUT
CREATE TABLE table_name_94 (engine VARCHAR, driver VARCHAR, team VARCHAR, chassis VARCHAR)
### OUTPUT
SELECT engine FROM table_name_94 WHERE team = "bf racing marron excavations" AND chassis = "monaco" AND driver = "lee filliponi" | {
"input": "CREATE TABLE table_name_94 (engine VARCHAR, driver VARCHAR, team VARCHAR, chassis VARCHAR)",
"instruction": "What type of engine does the BF Racing Marron Excavations have that also has Monaco as chassis and Lee Filliponi as the driver?",
"output": "SELECT engine FROM table_name_94 WHERE team = \"bf racing marron excavations\" AND chassis = \"monaco\" AND driver = \"lee filliponi\""
} |
### INSTRUCTION
Name the role for studio of rep with sheila mannors leading lady and title of westward ho
### INPUT
CREATE TABLE table_name_11 (role VARCHAR, title VARCHAR, studio VARCHAR, leading_lady VARCHAR)
### OUTPUT
SELECT role FROM table_name_11 WHERE studio = "rep" AND leading_lady = "sheila mannors" AND title = "westward ho" | {
"input": "CREATE TABLE table_name_11 (role VARCHAR, title VARCHAR, studio VARCHAR, leading_lady VARCHAR)",
"instruction": "Name the role for studio of rep with sheila mannors leading lady and title of westward ho",
"output": "SELECT role FROM table_name_11 WHERE studio = \"rep\" AND leading_lady = \"sheila mannors\" AND title = \"westward ho\""
} |
### INSTRUCTION
When has a Korean name ² of 청명 (清明) cheongmyeong?
### INPUT
CREATE TABLE table_name_88 (date_³ VARCHAR, korean_name_² VARCHAR)
### OUTPUT
SELECT date_³ FROM table_name_88 WHERE korean_name_² = "청명 (清明) cheongmyeong" | {
"input": "CREATE TABLE table_name_88 (date_³ VARCHAR, korean_name_² VARCHAR)",
"instruction": "When has a Korean name ² of 청명 (清明) cheongmyeong?",
"output": "SELECT date_³ FROM table_name_88 WHERE korean_name_² = \"청명 (清明) cheongmyeong\""
} |
### INSTRUCTION
How many seasons did Barking Birmingham & Solihull Stourbridge were relegated from league?
### INPUT
CREATE TABLE table_23927423_4 (season VARCHAR, relegated_from_league VARCHAR)
### OUTPUT
SELECT COUNT(season) FROM table_23927423_4 WHERE relegated_from_league = "Barking Birmingham & Solihull Stourbridge" | {
"input": "CREATE TABLE table_23927423_4 (season VARCHAR, relegated_from_league VARCHAR)",
"instruction": "How many seasons did Barking Birmingham & Solihull Stourbridge were relegated from league?",
"output": "SELECT COUNT(season) FROM table_23927423_4 WHERE relegated_from_league = \"Barking Birmingham & Solihull Stourbridge\""
} |
### INSTRUCTION
Name the total number of rank for east midnapore
### INPUT
CREATE TABLE table_2527063_3 (rank VARCHAR, district VARCHAR)
### OUTPUT
SELECT COUNT(rank) FROM table_2527063_3 WHERE district = "East Midnapore" | {
"input": "CREATE TABLE table_2527063_3 (rank VARCHAR, district VARCHAR)",
"instruction": "Name the total number of rank for east midnapore",
"output": "SELECT COUNT(rank) FROM table_2527063_3 WHERE district = \"East Midnapore\""
} |
### INSTRUCTION
What is the average round that the player from USF was picked in when his draft pick number was less than 24?
### INPUT
CREATE TABLE table_name_48 (round INTEGER, college VARCHAR, pick__number VARCHAR)
### OUTPUT
SELECT AVG(round) FROM table_name_48 WHERE college = "usf" AND pick__number < 24 | {
"input": "CREATE TABLE table_name_48 (round INTEGER, college VARCHAR, pick__number VARCHAR)",
"instruction": "What is the average round that the player from USF was picked in when his draft pick number was less than 24?",
"output": "SELECT AVG(round) FROM table_name_48 WHERE college = \"usf\" AND pick__number < 24"
} |
### INSTRUCTION
who is the player when the pick is 15 and the year [A] is 2000?
### INPUT
CREATE TABLE table_name_75 (player_name VARCHAR, pick VARCHAR, year_ VARCHAR, a_ VARCHAR)
### OUTPUT
SELECT player_name FROM table_name_75 WHERE pick = "15" AND year_[a_] = 2000 | {
"input": "CREATE TABLE table_name_75 (player_name VARCHAR, pick VARCHAR, year_ VARCHAR, a_ VARCHAR)",
"instruction": "who is the player when the pick is 15 and the year [A] is 2000?",
"output": "SELECT player_name FROM table_name_75 WHERE pick = \"15\" AND year_[a_] = 2000"
} |
### INSTRUCTION
Which Place is the highest one that has an Artist of nikolas metaxas, and a Televote larger than 60?
### INPUT
CREATE TABLE table_name_65 (place INTEGER, artist VARCHAR, televote VARCHAR)
### OUTPUT
SELECT MAX(place) FROM table_name_65 WHERE artist = "nikolas metaxas" AND televote > 60 | {
"input": "CREATE TABLE table_name_65 (place INTEGER, artist VARCHAR, televote VARCHAR)",
"instruction": "Which Place is the highest one that has an Artist of nikolas metaxas, and a Televote larger than 60?",
"output": "SELECT MAX(place) FROM table_name_65 WHERE artist = \"nikolas metaxas\" AND televote > 60"
} |
### INSTRUCTION
What is the year with a kurtis kraft 500a chassis?
### INPUT
CREATE TABLE table_name_86 (year INTEGER, chassis VARCHAR)
### OUTPUT
SELECT SUM(year) FROM table_name_86 WHERE chassis = "kurtis kraft 500a" | {
"input": "CREATE TABLE table_name_86 (year INTEGER, chassis VARCHAR)",
"instruction": "What is the year with a kurtis kraft 500a chassis?",
"output": "SELECT SUM(year) FROM table_name_86 WHERE chassis = \"kurtis kraft 500a\""
} |
### INSTRUCTION
What is the long figure when gain is less than 0?
### INPUT
CREATE TABLE table_name_28 (long INTEGER, gain INTEGER)
### OUTPUT
SELECT AVG(long) FROM table_name_28 WHERE gain < 0 | {
"input": "CREATE TABLE table_name_28 (long INTEGER, gain INTEGER)",
"instruction": "What is the long figure when gain is less than 0?",
"output": "SELECT AVG(long) FROM table_name_28 WHERE gain < 0"
} |
### INSTRUCTION
What are the results for the film titled 'Joki'?
### INPUT
CREATE TABLE table_22020724_1 (result VARCHAR, title_in_the_original_language VARCHAR)
### OUTPUT
SELECT COUNT(result) FROM table_22020724_1 WHERE title_in_the_original_language = "Joki" | {
"input": "CREATE TABLE table_22020724_1 (result VARCHAR, title_in_the_original_language VARCHAR)",
"instruction": "What are the results for the film titled 'Joki'?",
"output": "SELECT COUNT(result) FROM table_22020724_1 WHERE title_in_the_original_language = \"Joki\""
} |
### INSTRUCTION
Which country in the 2008 summer olympics is vadim devyatovskiy from?
### INPUT
CREATE TABLE table_name_16 (country VARCHAR, olympics VARCHAR, name VARCHAR)
### OUTPUT
SELECT country FROM table_name_16 WHERE olympics = "2008 summer olympics" AND name = "vadim devyatovskiy" | {
"input": "CREATE TABLE table_name_16 (country VARCHAR, olympics VARCHAR, name VARCHAR)",
"instruction": "Which country in the 2008 summer olympics is vadim devyatovskiy from?",
"output": "SELECT country FROM table_name_16 WHERE olympics = \"2008 summer olympics\" AND name = \"vadim devyatovskiy\""
} |
### INSTRUCTION
Who was the Partner that was a winner, a Year smaller than 1993, and a Score of 6–4, 6–2?
### INPUT
CREATE TABLE table_name_94 (partner VARCHAR, score VARCHAR, outcome VARCHAR, year VARCHAR)
### OUTPUT
SELECT partner FROM table_name_94 WHERE outcome = "winner" AND year < 1993 AND score = "6–4, 6–2" | {
"input": "CREATE TABLE table_name_94 (partner VARCHAR, score VARCHAR, outcome VARCHAR, year VARCHAR)",
"instruction": "Who was the Partner that was a winner, a Year smaller than 1993, and a Score of 6–4, 6–2?",
"output": "SELECT partner FROM table_name_94 WHERE outcome = \"winner\" AND year < 1993 AND score = \"6–4, 6–2\""
} |
### INSTRUCTION
Find the number of customers in the banks at New York City.
### INPUT
CREATE TABLE bank (no_of_customers INTEGER, city VARCHAR)
### OUTPUT
SELECT SUM(no_of_customers) FROM bank WHERE city = 'New York City' | {
"input": "CREATE TABLE bank (no_of_customers INTEGER, city VARCHAR)",
"instruction": "Find the number of customers in the banks at New York City.",
"output": "SELECT SUM(no_of_customers) FROM bank WHERE city = 'New York City'"
} |
### INSTRUCTION
Show each author and the number of workshops they submitted to.
### INPUT
CREATE TABLE submission (Author VARCHAR, Submission_ID VARCHAR); CREATE TABLE acceptance (workshop_id VARCHAR, Submission_ID VARCHAR)
### OUTPUT
SELECT T2.Author, COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author | {
"input": "CREATE TABLE submission (Author VARCHAR, Submission_ID VARCHAR); CREATE TABLE acceptance (workshop_id VARCHAR, Submission_ID VARCHAR)",
"instruction": "Show each author and the number of workshops they submitted to.",
"output": "SELECT T2.Author, COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID = T2.Submission_ID GROUP BY T2.Author"
} |
### INSTRUCTION
What day has a callback Venue of total tickets to hollywood? Question
### INPUT
CREATE TABLE table_name_73 (date VARCHAR, callback_venue VARCHAR)
### OUTPUT
SELECT date FROM table_name_73 WHERE callback_venue = "total tickets to hollywood" | {
"input": "CREATE TABLE table_name_73 (date VARCHAR, callback_venue VARCHAR)",
"instruction": "What day has a callback Venue of total tickets to hollywood? Question",
"output": "SELECT date FROM table_name_73 WHERE callback_venue = \"total tickets to hollywood\""
} |
### INSTRUCTION
What is the most unfavorable that is favorable of 34 during 1953 August and has a no opinion score larger than 24?
### INPUT
CREATE TABLE table_name_34 (unfavorable INTEGER, no_opinion VARCHAR, favorable VARCHAR, date VARCHAR)
### OUTPUT
SELECT MAX(unfavorable) FROM table_name_34 WHERE favorable = 34 AND date = "1953 august" AND no_opinion > 24 | {
"input": "CREATE TABLE table_name_34 (unfavorable INTEGER, no_opinion VARCHAR, favorable VARCHAR, date VARCHAR)",
"instruction": "What is the most unfavorable that is favorable of 34 during 1953 August and has a no opinion score larger than 24?",
"output": "SELECT MAX(unfavorable) FROM table_name_34 WHERE favorable = 34 AND date = \"1953 august\" AND no_opinion > 24"
} |
### INSTRUCTION
What is the Launched which is on 3 may 2001?
### INPUT
CREATE TABLE table_name_31 (launched VARCHAR, date_of_commission VARCHAR)
### OUTPUT
SELECT launched FROM table_name_31 WHERE date_of_commission = "3 may 2001" | {
"input": "CREATE TABLE table_name_31 (launched VARCHAR, date_of_commission VARCHAR)",
"instruction": "What is the Launched which is on 3 may 2001?",
"output": "SELECT launched FROM table_name_31 WHERE date_of_commission = \"3 may 2001\""
} |
### INSTRUCTION
Which Artist has a Week of Top 12?
### INPUT
CREATE TABLE table_name_54 (artist VARCHAR, week VARCHAR)
### OUTPUT
SELECT artist FROM table_name_54 WHERE week = "top 12" | {
"input": "CREATE TABLE table_name_54 (artist VARCHAR, week VARCHAR)",
"instruction": "Which Artist has a Week of Top 12?",
"output": "SELECT artist FROM table_name_54 WHERE week = \"top 12\""
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.