text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
What's the 2008 that has 3.4 in 2009 and more than 2.9 in 2005?
### INPUT
CREATE TABLE table_name_35 (Id VARCHAR)
### OUTPUT
SELECT MAX(2008) FROM table_name_35 WHERE 2009 = 3.4 AND 2005 > 2.9 | {
"input": "CREATE TABLE table_name_35 (Id VARCHAR)",
"instruction": "What's the 2008 that has 3.4 in 2009 and more than 2.9 in 2005?",
"output": "SELECT MAX(2008) FROM table_name_35 WHERE 2009 = 3.4 AND 2005 > 2.9"
} |
### INSTRUCTION
What are the average points of Scuderia Scribante with a Brabham bt11 chassis before 1968?
### INPUT
CREATE TABLE table_name_16 (points INTEGER, year VARCHAR, entrant VARCHAR, chassis VARCHAR)
### OUTPUT
SELECT AVG(points) FROM table_name_16 WHERE entrant = "scuderia scribante" AND chassis = "brabham bt11" AND year < 1968 | {
"input": "CREATE TABLE table_name_16 (points INTEGER, year VARCHAR, entrant VARCHAR, chassis VARCHAR)",
"instruction": "What are the average points of Scuderia Scribante with a Brabham bt11 chassis before 1968?",
"output": "SELECT AVG(points) FROM table_name_16 WHERE entrant = \"scuderia scribante\" AND chassis = \"brabham bt11\" AND year < 1968"
} |
### INSTRUCTION
What is the highest bronze number when silver is 0, and the total is smaller than 1?
### INPUT
CREATE TABLE table_name_92 (bronze INTEGER, silver VARCHAR, total VARCHAR)
### OUTPUT
SELECT MAX(bronze) FROM table_name_92 WHERE silver = 0 AND total < 1 | {
"input": "CREATE TABLE table_name_92 (bronze INTEGER, silver VARCHAR, total VARCHAR)",
"instruction": "What is the highest bronze number when silver is 0, and the total is smaller than 1?",
"output": "SELECT MAX(bronze) FROM table_name_92 WHERE silver = 0 AND total < 1"
} |
### INSTRUCTION
What are the names of movies that get 3 star and 4 star?
### INPUT
CREATE TABLE Rating (mID VARCHAR, stars VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)
### OUTPUT
SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 4 | {
"input": "CREATE TABLE Rating (mID VARCHAR, stars VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR)",
"instruction": "What are the names of movies that get 3 star and 4 star?",
"output": "SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 3 INTERSECT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID WHERE T1.stars = 4"
} |
### INSTRUCTION
Name the title that aired on 5 august 1967
### INPUT
CREATE TABLE table_20345624_2 (title VARCHAR, original_airdate VARCHAR)
### OUTPUT
SELECT COUNT(title) FROM table_20345624_2 WHERE original_airdate = "5 August 1967" | {
"input": "CREATE TABLE table_20345624_2 (title VARCHAR, original_airdate VARCHAR)",
"instruction": "Name the title that aired on 5 august 1967",
"output": "SELECT COUNT(title) FROM table_20345624_2 WHERE original_airdate = \"5 August 1967\""
} |
### INSTRUCTION
Which Projects template has an IntelliTrace of no, and a Windows Phone development of yes, and a Test impact analysis of no?
### INPUT
CREATE TABLE table_name_39 (projects_templates VARCHAR, test_impact_analysis VARCHAR, intellitrace VARCHAR, windows_phone_development VARCHAR)
### OUTPUT
SELECT projects_templates FROM table_name_39 WHERE intellitrace = "no" AND windows_phone_development = "yes" AND test_impact_analysis = "no" | {
"input": "CREATE TABLE table_name_39 (projects_templates VARCHAR, test_impact_analysis VARCHAR, intellitrace VARCHAR, windows_phone_development VARCHAR)",
"instruction": "Which Projects template has an IntelliTrace of no, and a Windows Phone development of yes, and a Test impact analysis of no?",
"output": "SELECT projects_templates FROM table_name_39 WHERE intellitrace = \"no\" AND windows_phone_development = \"yes\" AND test_impact_analysis = \"no\""
} |
### INSTRUCTION
Find the first name of student who is taking classes from accounting and Computer Info. Systems departments
### INPUT
CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE course (crs_code VARCHAR, dept_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR)
### OUTPUT
SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems' | {
"input": "CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE course (crs_code VARCHAR, dept_code VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_num VARCHAR)",
"instruction": "Find the first name of student who is taking classes from accounting and Computer Info. Systems departments",
"output": "SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T2.class_code = T3.class_code JOIN course AS T4 ON T3.crs_code = T4.crs_code JOIN department AS T5 ON T5.dept_code = T4.dept_code WHERE T5.dept_name = 'Computer Info. Systems'"
} |
### INSTRUCTION
What's the white for a black of Anand, a result of ½–½, 39 moves, and an opening of d37 queen's gambit declined?
### INPUT
CREATE TABLE table_name_20 (white VARCHAR, opening VARCHAR, moves VARCHAR, black VARCHAR, result VARCHAR)
### OUTPUT
SELECT white FROM table_name_20 WHERE black = "anand" AND result = "½–½" AND moves = 39 AND opening = "d37 queen's gambit declined" | {
"input": "CREATE TABLE table_name_20 (white VARCHAR, opening VARCHAR, moves VARCHAR, black VARCHAR, result VARCHAR)",
"instruction": "What's the white for a black of Anand, a result of ½–½, 39 moves, and an opening of d37 queen's gambit declined?",
"output": "SELECT white FROM table_name_20 WHERE black = \"anand\" AND result = \"½–½\" AND moves = 39 AND opening = \"d37 queen's gambit declined\""
} |
### INSTRUCTION
Show times of elimination of wrestlers with days held more than 50.
### INPUT
CREATE TABLE wrestler (Wrestler_ID VARCHAR, Days_held INTEGER); CREATE TABLE elimination (Time VARCHAR, Wrestler_ID VARCHAR)
### OUTPUT
SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50 | {
"input": "CREATE TABLE wrestler (Wrestler_ID VARCHAR, Days_held INTEGER); CREATE TABLE elimination (Time VARCHAR, Wrestler_ID VARCHAR)",
"instruction": "Show times of elimination of wrestlers with days held more than 50.",
"output": "SELECT T1.Time FROM elimination AS T1 JOIN wrestler AS T2 ON T1.Wrestler_ID = T2.Wrestler_ID WHERE T2.Days_held > 50"
} |
### INSTRUCTION
Which team has fewer than 4 rounds for Jan Van Breda Kolff?
### INPUT
CREATE TABLE table_name_47 (school_club_team VARCHAR, round VARCHAR, player VARCHAR)
### OUTPUT
SELECT school_club_team FROM table_name_47 WHERE round < 4 AND player = "jan van breda kolff" | {
"input": "CREATE TABLE table_name_47 (school_club_team VARCHAR, round VARCHAR, player VARCHAR)",
"instruction": "Which team has fewer than 4 rounds for Jan Van Breda Kolff?",
"output": "SELECT school_club_team FROM table_name_47 WHERE round < 4 AND player = \"jan van breda kolff\""
} |
### INSTRUCTION
What is the document type name and the document type description and creation date for all the documents?
### INPUT
CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_description VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (Document_date VARCHAR, document_type_code VARCHAR)
### OUTPUT
SELECT T1.document_type_name, T1.document_type_description, T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code = T2.document_type_code | {
"input": "CREATE TABLE Ref_document_types (document_type_name VARCHAR, document_type_description VARCHAR, document_type_code VARCHAR); CREATE TABLE Documents (Document_date VARCHAR, document_type_code VARCHAR)",
"instruction": "What is the document type name and the document type description and creation date for all the documents?",
"output": "SELECT T1.document_type_name, T1.document_type_description, T2.Document_date FROM Ref_document_types AS T1 JOIN Documents AS T2 ON T1.document_type_code = T2.document_type_code"
} |
### INSTRUCTION
On what date did the first match occur for the competition that ended with a final position of winners and the final round in the finals?
### INPUT
CREATE TABLE table_name_35 (first_match VARCHAR, final_position VARCHAR, final_round VARCHAR)
### OUTPUT
SELECT first_match FROM table_name_35 WHERE final_position = "winners" AND final_round = "finals" | {
"input": "CREATE TABLE table_name_35 (first_match VARCHAR, final_position VARCHAR, final_round VARCHAR)",
"instruction": "On what date did the first match occur for the competition that ended with a final position of winners and the final round in the finals?",
"output": "SELECT first_match FROM table_name_35 WHERE final_position = \"winners\" AND final_round = \"finals\""
} |
### INSTRUCTION
Find the number of different airports which are the destinations of the American Airlines.
### INPUT
CREATE TABLE routes (alid VARCHAR); CREATE TABLE airlines (alid VARCHAR, name VARCHAR)
### OUTPUT
SELECT COUNT(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines' | {
"input": "CREATE TABLE routes (alid VARCHAR); CREATE TABLE airlines (alid VARCHAR, name VARCHAR)",
"instruction": "Find the number of different airports which are the destinations of the American Airlines.",
"output": "SELECT COUNT(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid = T2.alid WHERE T1.name = 'American Airlines'"
} |
### INSTRUCTION
Which new team has a compensation-a round, and Frank Catalanotto as a player?
### INPUT
CREATE TABLE table_name_27 (new_team VARCHAR, round VARCHAR, player VARCHAR)
### OUTPUT
SELECT new_team FROM table_name_27 WHERE round = "compensation-a" AND player = "frank catalanotto" | {
"input": "CREATE TABLE table_name_27 (new_team VARCHAR, round VARCHAR, player VARCHAR)",
"instruction": "Which new team has a compensation-a round, and Frank Catalanotto as a player?",
"output": "SELECT new_team FROM table_name_27 WHERE round = \"compensation-a\" AND player = \"frank catalanotto\""
} |
### INSTRUCTION
Find the distinct driver id of all drivers that have a longer stop duration than some drivers in the race whose id is 841?
### INPUT
CREATE TABLE pitstops (driverid VARCHAR, STOP VARCHAR, duration INTEGER, raceid VARCHAR)
### OUTPUT
SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration > (SELECT MIN(duration) FROM pitstops WHERE raceid = 841) | {
"input": "CREATE TABLE pitstops (driverid VARCHAR, STOP VARCHAR, duration INTEGER, raceid VARCHAR)",
"instruction": "Find the distinct driver id of all drivers that have a longer stop duration than some drivers in the race whose id is 841?",
"output": "SELECT DISTINCT driverid, STOP FROM pitstops WHERE duration > (SELECT MIN(duration) FROM pitstops WHERE raceid = 841)"
} |
### INSTRUCTION
How many editions have a most wins value of Franco Marvulli (4)?
### INPUT
CREATE TABLE table_1840433_2 (number_of_editions VARCHAR, most_wins_by VARCHAR)
### OUTPUT
SELECT COUNT(number_of_editions) FROM table_1840433_2 WHERE most_wins_by = "Franco Marvulli (4)" | {
"input": "CREATE TABLE table_1840433_2 (number_of_editions VARCHAR, most_wins_by VARCHAR)",
"instruction": "How many editions have a most wins value of Franco Marvulli (4)?",
"output": "SELECT COUNT(number_of_editions) FROM table_1840433_2 WHERE most_wins_by = \"Franco Marvulli (4)\""
} |
### INSTRUCTION
How many times does the rebuilt data contain cannot handle non-empty timestamp argument! 1929 and scrapped data contain cannot handle non-empty timestamp argument! 1954?
### INPUT
CREATE TABLE table_12113888_1 (number VARCHAR, rebuilt VARCHAR, scrapped_sold VARCHAR)
### OUTPUT
SELECT COUNT(number) FROM table_12113888_1 WHERE rebuilt = "Cannot handle non-empty timestamp argument! 1929" AND scrapped_sold = "Cannot handle non-empty timestamp argument! 1954" | {
"input": "CREATE TABLE table_12113888_1 (number VARCHAR, rebuilt VARCHAR, scrapped_sold VARCHAR)",
"instruction": "How many times does the rebuilt data contain cannot handle non-empty timestamp argument! 1929 and scrapped data contain cannot handle non-empty timestamp argument! 1954?",
"output": "SELECT COUNT(number) FROM table_12113888_1 WHERE rebuilt = \"Cannot handle non-empty timestamp argument! 1929\" AND scrapped_sold = \"Cannot handle non-empty timestamp argument! 1954\""
} |
### INSTRUCTION
What is the FCC info of the translator with an Irmo, South Carolina city license?
### INPUT
CREATE TABLE table_name_51 (fcc_info VARCHAR, city_of_license VARCHAR)
### OUTPUT
SELECT fcc_info FROM table_name_51 WHERE city_of_license = "irmo, south carolina" | {
"input": "CREATE TABLE table_name_51 (fcc_info VARCHAR, city_of_license VARCHAR)",
"instruction": "What is the FCC info of the translator with an Irmo, South Carolina city license?",
"output": "SELECT fcc_info FROM table_name_51 WHERE city_of_license = \"irmo, south carolina\""
} |
### INSTRUCTION
What was the year date when one of the opponents in the final was bahrami leconte and score in the final is 7–6 2 , 6–1?
### INPUT
CREATE TABLE table_22597626_17 (year INTEGER, opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)
### OUTPUT
SELECT MIN(year) FROM table_22597626_17 WHERE opponents_in_the_final = "Bahrami Leconte" AND score_in_the_final = "7–6 2 , 6–1" | {
"input": "CREATE TABLE table_22597626_17 (year INTEGER, opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)",
"instruction": "What was the year date when one of the opponents in the final was bahrami leconte and score in the final is 7–6 2 , 6–1?",
"output": "SELECT MIN(year) FROM table_22597626_17 WHERE opponents_in_the_final = \"Bahrami Leconte\" AND score_in_the_final = \"7–6 2 , 6–1\""
} |
### INSTRUCTION
What is the record when the score was l 84–96 (ot)?
### INPUT
CREATE TABLE table_27723228_8 (record VARCHAR, score VARCHAR)
### OUTPUT
SELECT record FROM table_27723228_8 WHERE score = "L 84–96 (OT)" | {
"input": "CREATE TABLE table_27723228_8 (record VARCHAR, score VARCHAR)",
"instruction": "What is the record when the score was l 84–96 (ot)?",
"output": "SELECT record FROM table_27723228_8 WHERE score = \"L 84–96 (OT)\""
} |
### INSTRUCTION
Name the wininng yacht for 14 entries
### INPUT
CREATE TABLE table_256862_1 (winning_yacht VARCHAR, entries VARCHAR)
### OUTPUT
SELECT winning_yacht FROM table_256862_1 WHERE entries = "14" | {
"input": "CREATE TABLE table_256862_1 (winning_yacht VARCHAR, entries VARCHAR)",
"instruction": "Name the wininng yacht for 14 entries",
"output": "SELECT winning_yacht FROM table_256862_1 WHERE entries = \"14\""
} |
### INSTRUCTION
How many table points are listed for the deficit is +194?
### INPUT
CREATE TABLE table_18505065_1 (table_points VARCHAR, difference VARCHAR)
### OUTPUT
SELECT COUNT(table_points) FROM table_18505065_1 WHERE difference = "+194" | {
"input": "CREATE TABLE table_18505065_1 (table_points VARCHAR, difference VARCHAR)",
"instruction": " How many table points are listed for the deficit is +194? ",
"output": "SELECT COUNT(table_points) FROM table_18505065_1 WHERE difference = \"+194\""
} |
### INSTRUCTION
What was the score of the league cup in the 2007-08 season?
### INPUT
CREATE TABLE table_name_90 (score VARCHAR, competition VARCHAR, season VARCHAR)
### OUTPUT
SELECT score FROM table_name_90 WHERE competition = "league cup" AND season = "2007-08" | {
"input": "CREATE TABLE table_name_90 (score VARCHAR, competition VARCHAR, season VARCHAR)",
"instruction": "What was the score of the league cup in the 2007-08 season?",
"output": "SELECT score FROM table_name_90 WHERE competition = \"league cup\" AND season = \"2007-08\""
} |
### INSTRUCTION
Who wrote the episode with the code xle05012?
### INPUT
CREATE TABLE table_28348757_6 (written_by VARCHAR, production_code VARCHAR)
### OUTPUT
SELECT written_by FROM table_28348757_6 WHERE production_code = "XLE05012" | {
"input": "CREATE TABLE table_28348757_6 (written_by VARCHAR, production_code VARCHAR)",
"instruction": "Who wrote the episode with the code xle05012?",
"output": "SELECT written_by FROM table_28348757_6 WHERE production_code = \"XLE05012\""
} |
### INSTRUCTION
Show the ids for all the faculty members who have at least 2 students.
### INPUT
CREATE TABLE Faculty (FacID VARCHAR); CREATE TABLE Student (advisor VARCHAR)
### OUTPUT
SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING COUNT(*) >= 2 | {
"input": "CREATE TABLE Faculty (FacID VARCHAR); CREATE TABLE Student (advisor VARCHAR)",
"instruction": "Show the ids for all the faculty members who have at least 2 students.",
"output": "SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor GROUP BY T1.FacID HAVING COUNT(*) >= 2"
} |
### INSTRUCTION
Who were the co-drivers in 2008?
### INPUT
CREATE TABLE table_name_81 (co_drivers VARCHAR, year VARCHAR)
### OUTPUT
SELECT co_drivers FROM table_name_81 WHERE year = 2008 | {
"input": "CREATE TABLE table_name_81 (co_drivers VARCHAR, year VARCHAR)",
"instruction": "Who were the co-drivers in 2008?",
"output": "SELECT co_drivers FROM table_name_81 WHERE year = 2008"
} |
### INSTRUCTION
How many Total medals did the country with 16 Silver and less than 32 Bronze receive?
### INPUT
CREATE TABLE table_name_65 (total INTEGER, silver VARCHAR, bronze VARCHAR)
### OUTPUT
SELECT MIN(total) FROM table_name_65 WHERE silver = 16 AND bronze < 32 | {
"input": "CREATE TABLE table_name_65 (total INTEGER, silver VARCHAR, bronze VARCHAR)",
"instruction": "How many Total medals did the country with 16 Silver and less than 32 Bronze receive?",
"output": "SELECT MIN(total) FROM table_name_65 WHERE silver = 16 AND bronze < 32"
} |
### INSTRUCTION
Socket of fcbga1088, and a Voltage of 1v, and a Part number(s) of nu80579ez600cnu80579ez600ct is what mult?
### INPUT
CREATE TABLE table_name_3 (mult VARCHAR, part_number_s_ VARCHAR, socket VARCHAR, voltage VARCHAR)
### OUTPUT
SELECT mult FROM table_name_3 WHERE socket = "fcbga1088" AND voltage = "1v" AND part_number_s_ = "nu80579ez600cnu80579ez600ct" | {
"input": "CREATE TABLE table_name_3 (mult VARCHAR, part_number_s_ VARCHAR, socket VARCHAR, voltage VARCHAR)",
"instruction": "Socket of fcbga1088, and a Voltage of 1v, and a Part number(s) of nu80579ez600cnu80579ez600ct is what mult?",
"output": "SELECT mult FROM table_name_3 WHERE socket = \"fcbga1088\" AND voltage = \"1v\" AND part_number_s_ = \"nu80579ez600cnu80579ez600ct\""
} |
### INSTRUCTION
Who was a linebacker at Tennessee?
### INPUT
CREATE TABLE table_name_64 (player_name VARCHAR, position VARCHAR, college VARCHAR)
### OUTPUT
SELECT player_name FROM table_name_64 WHERE position = "linebacker" AND college = "tennessee" | {
"input": "CREATE TABLE table_name_64 (player_name VARCHAR, position VARCHAR, college VARCHAR)",
"instruction": "Who was a linebacker at Tennessee?",
"output": "SELECT player_name FROM table_name_64 WHERE position = \"linebacker\" AND college = \"tennessee\""
} |
### INSTRUCTION
What is the film title and inventory id of the item in the inventory which was rented most frequently?
### INPUT
CREATE TABLE film (title VARCHAR, film_id VARCHAR); CREATE TABLE inventory (inventory_id VARCHAR, film_id VARCHAR); CREATE TABLE rental (inventory_id VARCHAR)
### OUTPUT
SELECT T1.title, T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T2.inventory_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE film (title VARCHAR, film_id VARCHAR); CREATE TABLE inventory (inventory_id VARCHAR, film_id VARCHAR); CREATE TABLE rental (inventory_id VARCHAR)",
"instruction": "What is the film title and inventory id of the item in the inventory which was rented most frequently?",
"output": "SELECT T1.title, T2.inventory_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id JOIN rental AS T3 ON T2.inventory_id = T3.inventory_id GROUP BY T2.inventory_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
What's the black with 24 moves in the dortmund tournament?
### INPUT
CREATE TABLE table_name_56 (black VARCHAR, moves VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT black FROM table_name_56 WHERE moves = 24 AND tournament = "dortmund" | {
"input": "CREATE TABLE table_name_56 (black VARCHAR, moves VARCHAR, tournament VARCHAR)",
"instruction": "What's the black with 24 moves in the dortmund tournament?",
"output": "SELECT black FROM table_name_56 WHERE moves = 24 AND tournament = \"dortmund\""
} |
### INSTRUCTION
Who constructed the car with a grid under 15, 77 laps, and a Time/Retired of + 0.771?
### INPUT
CREATE TABLE table_name_77 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR)
### OUTPUT
SELECT constructor FROM table_name_77 WHERE grid < 15 AND laps = 77 AND time_retired = "+ 0.771" | {
"input": "CREATE TABLE table_name_77 (constructor VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR)",
"instruction": "Who constructed the car with a grid under 15, 77 laps, and a Time/Retired of + 0.771?",
"output": "SELECT constructor FROM table_name_77 WHERE grid < 15 AND laps = 77 AND time_retired = \"+ 0.771\""
} |
### INSTRUCTION
Among all the claims, which settlements have a claimed amount that is no more than the average? List the claim start date.
### INPUT
CREATE TABLE Claims (Date_Claim_Made VARCHAR, Amount_Settled INTEGER)
### OUTPUT
SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled <= (SELECT AVG(Amount_Settled) FROM Claims) | {
"input": "CREATE TABLE Claims (Date_Claim_Made VARCHAR, Amount_Settled INTEGER)",
"instruction": "Among all the claims, which settlements have a claimed amount that is no more than the average? List the claim start date.",
"output": "SELECT Date_Claim_Made FROM Claims WHERE Amount_Settled <= (SELECT AVG(Amount_Settled) FROM Claims)"
} |
### INSTRUCTION
What is Runner(s)-Up when Margin of Victory is 6 Strokes?
### INPUT
CREATE TABLE table_name_87 (runner_s__up VARCHAR, margin_of_victory VARCHAR)
### OUTPUT
SELECT runner_s__up FROM table_name_87 WHERE margin_of_victory = "6 strokes" | {
"input": "CREATE TABLE table_name_87 (runner_s__up VARCHAR, margin_of_victory VARCHAR)",
"instruction": "What is Runner(s)-Up when Margin of Victory is 6 Strokes?",
"output": "SELECT runner_s__up FROM table_name_87 WHERE margin_of_victory = \"6 strokes\""
} |
### INSTRUCTION
What sum of game has an attendance of 18,690?
### INPUT
CREATE TABLE table_name_40 (game INTEGER, attendance VARCHAR)
### OUTPUT
SELECT SUM(game) FROM table_name_40 WHERE attendance = 18 OFFSET 690 | {
"input": "CREATE TABLE table_name_40 (game INTEGER, attendance VARCHAR)",
"instruction": "What sum of game has an attendance of 18,690?",
"output": "SELECT SUM(game) FROM table_name_40 WHERE attendance = 18 OFFSET 690"
} |
### INSTRUCTION
What is the time or retired time for timo glock with under 70 laps and a grid number greater than 15?
### INPUT
CREATE TABLE table_name_72 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR)
### OUTPUT
SELECT time_retired FROM table_name_72 WHERE laps < 70 AND grid > 15 AND driver = "timo glock" | {
"input": "CREATE TABLE table_name_72 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR)",
"instruction": "What is the time or retired time for timo glock with under 70 laps and a grid number greater than 15?",
"output": "SELECT time_retired FROM table_name_72 WHERE laps < 70 AND grid > 15 AND driver = \"timo glock\""
} |
### INSTRUCTION
Which Games won has Bonus points larger than 1, a Points difference smaller than 50, Points against of 106, and Points for smaller than 152?
### INPUT
CREATE TABLE table_name_58 (games_won VARCHAR, points_for VARCHAR, points_against VARCHAR, bonus_points VARCHAR, points_difference VARCHAR)
### OUTPUT
SELECT COUNT(games_won) FROM table_name_58 WHERE bonus_points > 1 AND points_difference < 50 AND points_against = 106 AND points_for < 152 | {
"input": "CREATE TABLE table_name_58 (games_won VARCHAR, points_for VARCHAR, points_against VARCHAR, bonus_points VARCHAR, points_difference VARCHAR)",
"instruction": "Which Games won has Bonus points larger than 1, a Points difference smaller than 50, Points against of 106, and Points for smaller than 152?",
"output": "SELECT COUNT(games_won) FROM table_name_58 WHERE bonus_points > 1 AND points_difference < 50 AND points_against = 106 AND points_for < 152"
} |
### INSTRUCTION
Which song has picturization by only vijay?
### INPUT
CREATE TABLE table_10848177_1 (song VARCHAR, picturization VARCHAR)
### OUTPUT
SELECT song FROM table_10848177_1 WHERE picturization = "Vijay" | {
"input": "CREATE TABLE table_10848177_1 (song VARCHAR, picturization VARCHAR)",
"instruction": "Which song has picturization by only vijay?",
"output": "SELECT song FROM table_10848177_1 WHERE picturization = \"Vijay\""
} |
### INSTRUCTION
What order has the Species Authority of hydrochaeris hydrochaeris (linnaeus, 1766)?
### INPUT
CREATE TABLE table_name_84 (order VARCHAR, species_authority VARCHAR)
### OUTPUT
SELECT order FROM table_name_84 WHERE species_authority = "hydrochaeris hydrochaeris (linnaeus, 1766)" | {
"input": "CREATE TABLE table_name_84 (order VARCHAR, species_authority VARCHAR)",
"instruction": "What order has the Species Authority of hydrochaeris hydrochaeris (linnaeus, 1766)?",
"output": "SELECT order FROM table_name_84 WHERE species_authority = \"hydrochaeris hydrochaeris (linnaeus, 1766)\""
} |
### INSTRUCTION
Who is the builder with a works number of 2534?
### INPUT
CREATE TABLE table_name_16 (builder VARCHAR, works_number VARCHAR)
### OUTPUT
SELECT builder FROM table_name_16 WHERE works_number = "2534" | {
"input": "CREATE TABLE table_name_16 (builder VARCHAR, works_number VARCHAR)",
"instruction": "Who is the builder with a works number of 2534?",
"output": "SELECT builder FROM table_name_16 WHERE works_number = \"2534\""
} |
### INSTRUCTION
What coach premiered February 16, 2008 later than episode 21.0?
### INPUT
CREATE TABLE table_2140071_8 (coach VARCHAR, premier_date VARCHAR, episode VARCHAR)
### OUTPUT
SELECT coach FROM table_2140071_8 WHERE premier_date = "February 16, 2008" AND episode > 21.0 | {
"input": "CREATE TABLE table_2140071_8 (coach VARCHAR, premier_date VARCHAR, episode VARCHAR)",
"instruction": "What coach premiered February 16, 2008 later than episode 21.0?",
"output": "SELECT coach FROM table_2140071_8 WHERE premier_date = \"February 16, 2008\" AND episode > 21.0"
} |
### INSTRUCTION
Which Avg/G has a Name of josh freeman, and a Loss smaller than 134?
### INPUT
CREATE TABLE table_name_59 (avg_g INTEGER, name VARCHAR, loss VARCHAR)
### OUTPUT
SELECT SUM(avg_g) FROM table_name_59 WHERE name = "josh freeman" AND loss < 134 | {
"input": "CREATE TABLE table_name_59 (avg_g INTEGER, name VARCHAR, loss VARCHAR)",
"instruction": "Which Avg/G has a Name of josh freeman, and a Loss smaller than 134?",
"output": "SELECT SUM(avg_g) FROM table_name_59 WHERE name = \"josh freeman\" AND loss < 134"
} |
### INSTRUCTION
Which District has a Party of republican and a Result of lost re-election democratic gain?
### INPUT
CREATE TABLE table_name_82 (district VARCHAR, party VARCHAR, result VARCHAR)
### OUTPUT
SELECT district FROM table_name_82 WHERE party = "republican" AND result = "lost re-election democratic gain" | {
"input": "CREATE TABLE table_name_82 (district VARCHAR, party VARCHAR, result VARCHAR)",
"instruction": "Which District has a Party of republican and a Result of lost re-election democratic gain?",
"output": "SELECT district FROM table_name_82 WHERE party = \"republican\" AND result = \"lost re-election democratic gain\""
} |
### INSTRUCTION
what is the wind speed when brenda morehead was in the united states?
### INPUT
CREATE TABLE table_name_16 (wind__m_s_ INTEGER, nation VARCHAR, athlete VARCHAR)
### OUTPUT
SELECT MIN(wind__m_s_) FROM table_name_16 WHERE nation = "united states" AND athlete = "brenda morehead" | {
"input": "CREATE TABLE table_name_16 (wind__m_s_ INTEGER, nation VARCHAR, athlete VARCHAR)",
"instruction": "what is the wind speed when brenda morehead was in the united states?",
"output": "SELECT MIN(wind__m_s_) FROM table_name_16 WHERE nation = \"united states\" AND athlete = \"brenda morehead\""
} |
### INSTRUCTION
What is the name of the swimmer from Australia in lane 4 with a heat larger than 4?
### INPUT
CREATE TABLE table_name_16 (name VARCHAR, nationality VARCHAR, heat VARCHAR, lane VARCHAR)
### OUTPUT
SELECT name FROM table_name_16 WHERE heat > 4 AND lane = 4 AND nationality = "australia" | {
"input": "CREATE TABLE table_name_16 (name VARCHAR, nationality VARCHAR, heat VARCHAR, lane VARCHAR)",
"instruction": "What is the name of the swimmer from Australia in lane 4 with a heat larger than 4?",
"output": "SELECT name FROM table_name_16 WHERE heat > 4 AND lane = 4 AND nationality = \"australia\""
} |
### INSTRUCTION
Which Stage (Winner) has a Vladimir Karpets General classification and a Team classification of relax-gam, and a Points classification of Denis Menchov?
### INPUT
CREATE TABLE table_name_17 (stage__winner_ VARCHAR, points_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR)
### OUTPUT
SELECT stage__winner_ FROM table_name_17 WHERE general_classification = "vladimir karpets" AND team_classification = "relax-gam" AND points_classification = "denis menchov" | {
"input": "CREATE TABLE table_name_17 (stage__winner_ VARCHAR, points_classification VARCHAR, general_classification VARCHAR, team_classification VARCHAR)",
"instruction": "Which Stage (Winner) has a Vladimir Karpets General classification and a Team classification of relax-gam, and a Points classification of Denis Menchov?",
"output": "SELECT stage__winner_ FROM table_name_17 WHERE general_classification = \"vladimir karpets\" AND team_classification = \"relax-gam\" AND points_classification = \"denis menchov\""
} |
### INSTRUCTION
Name the location attendance for dirk nowitzki , caron butler (17)
### INPUT
CREATE TABLE table_23284271_11 (location_attendance VARCHAR, high_points VARCHAR)
### OUTPUT
SELECT location_attendance FROM table_23284271_11 WHERE high_points = "Dirk Nowitzki , Caron Butler (17)" | {
"input": "CREATE TABLE table_23284271_11 (location_attendance VARCHAR, high_points VARCHAR)",
"instruction": "Name the location attendance for dirk nowitzki , caron butler (17)",
"output": "SELECT location_attendance FROM table_23284271_11 WHERE high_points = \"Dirk Nowitzki , Caron Butler (17)\""
} |
### INSTRUCTION
What is the muzzle velocity for the muzzle energy 351ft•lbf (476 j)?
### INPUT
CREATE TABLE table_name_60 (muzzle_velocity VARCHAR, muzzle_energy VARCHAR)
### OUTPUT
SELECT muzzle_velocity FROM table_name_60 WHERE muzzle_energy = "351ft•lbf (476 j)" | {
"input": "CREATE TABLE table_name_60 (muzzle_velocity VARCHAR, muzzle_energy VARCHAR)",
"instruction": "What is the muzzle velocity for the muzzle energy 351ft•lbf (476 j)?",
"output": "SELECT muzzle_velocity FROM table_name_60 WHERE muzzle_energy = \"351ft•lbf (476 j)\""
} |
### INSTRUCTION
What's the duration of the Archers with Norman Painting as an actor?
### INPUT
CREATE TABLE table_name_98 (duration VARCHAR, soap_opera VARCHAR, actor VARCHAR)
### OUTPUT
SELECT duration FROM table_name_98 WHERE soap_opera = "the archers" AND actor = "norman painting" | {
"input": "CREATE TABLE table_name_98 (duration VARCHAR, soap_opera VARCHAR, actor VARCHAR)",
"instruction": "What's the duration of the Archers with Norman Painting as an actor?",
"output": "SELECT duration FROM table_name_98 WHERE soap_opera = \"the archers\" AND actor = \"norman painting\""
} |
### INSTRUCTION
Find the id, forename and number of races of all drivers who have at least participated in two races?
### INPUT
CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR); CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR)
### OUTPUT
SELECT T1.driverid, T1.forename, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) >= 2 | {
"input": "CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR); CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR)",
"instruction": "Find the id, forename and number of races of all drivers who have at least participated in two races?",
"output": "SELECT T1.driverid, T1.forename, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) >= 2"
} |
### INSTRUCTION
Show names of all high school students who do not have any friends.
### INPUT
CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Highschooler (name VARCHAR); CREATE TABLE Friend (student_id VARCHAR)
### OUTPUT
SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id | {
"input": "CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Highschooler (name VARCHAR); CREATE TABLE Friend (student_id VARCHAR)",
"instruction": "Show names of all high school students who do not have any friends.",
"output": "SELECT name FROM Highschooler EXCEPT SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id"
} |
### INSTRUCTION
Result of 1st, and a Venue of melbourne , australia, and a Extra of 100 m happened in which year?
### INPUT
CREATE TABLE table_name_10 (year VARCHAR, extra VARCHAR, result VARCHAR, venue VARCHAR)
### OUTPUT
SELECT year FROM table_name_10 WHERE result = "1st" AND venue = "melbourne , australia" AND extra = "100 m" | {
"input": "CREATE TABLE table_name_10 (year VARCHAR, extra VARCHAR, result VARCHAR, venue VARCHAR)",
"instruction": "Result of 1st, and a Venue of melbourne , australia, and a Extra of 100 m happened in which year?",
"output": "SELECT year FROM table_name_10 WHERE result = \"1st\" AND venue = \"melbourne , australia\" AND extra = \"100 m\""
} |
### INSTRUCTION
Radio Station/Production Company that has a Role of interviewee & monologues is what radio station?
### INPUT
CREATE TABLE table_name_73 (radio_station_production_company VARCHAR, role VARCHAR)
### OUTPUT
SELECT radio_station_production_company FROM table_name_73 WHERE role = "interviewee & monologues" | {
"input": "CREATE TABLE table_name_73 (radio_station_production_company VARCHAR, role VARCHAR)",
"instruction": "Radio Station/Production Company that has a Role of interviewee & monologues is what radio station?",
"output": "SELECT radio_station_production_company FROM table_name_73 WHERE role = \"interviewee & monologues\""
} |
### INSTRUCTION
On what date of polling was the Polling Firm forum research with 7 green and less than 30 liberals?
### INPUT
CREATE TABLE table_name_2 (date_of_polling VARCHAR, liberal VARCHAR, polling_firm VARCHAR, green VARCHAR)
### OUTPUT
SELECT date_of_polling FROM table_name_2 WHERE polling_firm = "forum research" AND green = 7 AND liberal < 30 | {
"input": "CREATE TABLE table_name_2 (date_of_polling VARCHAR, liberal VARCHAR, polling_firm VARCHAR, green VARCHAR)",
"instruction": "On what date of polling was the Polling Firm forum research with 7 green and less than 30 liberals?",
"output": "SELECT date_of_polling FROM table_name_2 WHERE polling_firm = \"forum research\" AND green = 7 AND liberal < 30"
} |
### INSTRUCTION
Which James Bond 007: Agent Under Fire from Electronic Arts is compatible with 60 gb pal/80 gb NTSC PS3 (CECHC/CECHE)?
### INPUT
CREATE TABLE table_10875694_11 (compatible_with_60gb_pal_80gb_ntsc_ps3__cechc_ceche_ VARCHAR, publisher VARCHAR, title VARCHAR)
### OUTPUT
SELECT compatible_with_60gb_pal_80gb_ntsc_ps3__cechc_ceche_ FROM table_10875694_11 WHERE publisher = "Electronic Arts" AND title = "James Bond 007: Agent Under Fire" | {
"input": "CREATE TABLE table_10875694_11 (compatible_with_60gb_pal_80gb_ntsc_ps3__cechc_ceche_ VARCHAR, publisher VARCHAR, title VARCHAR)",
"instruction": "Which James Bond 007: Agent Under Fire from Electronic Arts is compatible with 60 gb pal/80 gb NTSC PS3 (CECHC/CECHE)?",
"output": "SELECT compatible_with_60gb_pal_80gb_ntsc_ps3__cechc_ceche_ FROM table_10875694_11 WHERE publisher = \"Electronic Arts\" AND title = \"James Bond 007: Agent Under Fire\""
} |
### INSTRUCTION
Name the segment b for s dress form
### INPUT
CREATE TABLE table_15187735_10 (segment_b VARCHAR, segment_a VARCHAR)
### OUTPUT
SELECT segment_b FROM table_15187735_10 WHERE segment_a = "s Dress Form" | {
"input": "CREATE TABLE table_15187735_10 (segment_b VARCHAR, segment_a VARCHAR)",
"instruction": "Name the segment b for s dress form",
"output": "SELECT segment_b FROM table_15187735_10 WHERE segment_a = \"s Dress Form\""
} |
### INSTRUCTION
How many weeks was K.Maro at #1?
### INPUT
CREATE TABLE table_27441210_12 (weeks_at__number1 INTEGER, artist VARCHAR)
### OUTPUT
SELECT MAX(weeks_at__number1) FROM table_27441210_12 WHERE artist = "K.Maro" | {
"input": "CREATE TABLE table_27441210_12 (weeks_at__number1 INTEGER, artist VARCHAR)",
"instruction": "How many weeks was K.Maro at #1?",
"output": "SELECT MAX(weeks_at__number1) FROM table_27441210_12 WHERE artist = \"K.Maro\""
} |
### INSTRUCTION
What's the 102kg when the snatch was snatch and the olympic record was the world record?
### INPUT
CREATE TABLE table_name_56 (world_record VARCHAR)
### OUTPUT
SELECT 102 AS kg FROM table_name_56 WHERE world_record = "olympic record" AND "snatch" = "snatch" | {
"input": "CREATE TABLE table_name_56 (world_record VARCHAR)",
"instruction": "What's the 102kg when the snatch was snatch and the olympic record was the world record?",
"output": "SELECT 102 AS kg FROM table_name_56 WHERE world_record = \"olympic record\" AND \"snatch\" = \"snatch\""
} |
### INSTRUCTION
Which Location has a Competition of Group Stage, a Lineup of Start and a Date of 2000-09-17?
### INPUT
CREATE TABLE table_name_67 (location VARCHAR, date VARCHAR, competition VARCHAR, lineup VARCHAR)
### OUTPUT
SELECT location FROM table_name_67 WHERE competition = "group stage" AND lineup = "start" AND date = "2000-09-17" | {
"input": "CREATE TABLE table_name_67 (location VARCHAR, date VARCHAR, competition VARCHAR, lineup VARCHAR)",
"instruction": "Which Location has a Competition of Group Stage, a Lineup of Start and a Date of 2000-09-17?",
"output": "SELECT location FROM table_name_67 WHERE competition = \"group stage\" AND lineup = \"start\" AND date = \"2000-09-17\""
} |
### INSTRUCTION
Find the names and number of works of all artists who have at least one English songs.
### INPUT
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR)
### OUTPUT
SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "english" GROUP BY T2.artist_name HAVING COUNT(*) >= 1 | {
"input": "CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR)",
"instruction": "Find the names and number of works of all artists who have at least one English songs.",
"output": "SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = \"english\" GROUP BY T2.artist_name HAVING COUNT(*) >= 1"
} |
### INSTRUCTION
Who won womens doubles the year magnús ingi helgason tinna helgadóttir won mixed doubles and ragna ingólfsdóttir won womens singles in 2010
### INPUT
CREATE TABLE table_14903999_1 (womens_doubles VARCHAR, year VARCHAR, mixed_doubles VARCHAR, womens_singles VARCHAR)
### OUTPUT
SELECT womens_doubles FROM table_14903999_1 WHERE mixed_doubles = "Magnús Ingi Helgason Tinna Helgadóttir" AND womens_singles = "Ragna Ingólfsdóttir" AND year = 2010 | {
"input": "CREATE TABLE table_14903999_1 (womens_doubles VARCHAR, year VARCHAR, mixed_doubles VARCHAR, womens_singles VARCHAR)",
"instruction": "Who won womens doubles the year magnús ingi helgason tinna helgadóttir won mixed doubles and ragna ingólfsdóttir won womens singles in 2010",
"output": "SELECT womens_doubles FROM table_14903999_1 WHERE mixed_doubles = \"Magnús Ingi Helgason Tinna Helgadóttir\" AND womens_singles = \"Ragna Ingólfsdóttir\" AND year = 2010"
} |
### INSTRUCTION
What was the date when Steffi Graf was the opponent in the final and the score was 2–6, 0–6?
### INPUT
CREATE TABLE table_name_49 (date VARCHAR, opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)
### OUTPUT
SELECT date FROM table_name_49 WHERE opponent_in_the_final = "steffi graf" AND score_in_the_final = "2–6, 0–6" | {
"input": "CREATE TABLE table_name_49 (date VARCHAR, opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)",
"instruction": "What was the date when Steffi Graf was the opponent in the final and the score was 2–6, 0–6?",
"output": "SELECT date FROM table_name_49 WHERE opponent_in_the_final = \"steffi graf\" AND score_in_the_final = \"2–6, 0–6\""
} |
### INSTRUCTION
What was the lowest draw from Ballarat FL of sunbury, and byes larger than 2?
### INPUT
CREATE TABLE table_name_94 (draws INTEGER, ballarat_fl VARCHAR, byes VARCHAR)
### OUTPUT
SELECT MIN(draws) FROM table_name_94 WHERE ballarat_fl = "sunbury" AND byes > 2 | {
"input": "CREATE TABLE table_name_94 (draws INTEGER, ballarat_fl VARCHAR, byes VARCHAR)",
"instruction": "What was the lowest draw from Ballarat FL of sunbury, and byes larger than 2?",
"output": "SELECT MIN(draws) FROM table_name_94 WHERE ballarat_fl = \"sunbury\" AND byes > 2"
} |
### INSTRUCTION
What is the year built of the home with a built status and a 42 m. height?
### INPUT
CREATE TABLE table_name_41 (status VARCHAR, height VARCHAR)
### OUTPUT
SELECT "built" FROM table_name_41 WHERE status = "built" AND height = "42 m." | {
"input": "CREATE TABLE table_name_41 (status VARCHAR, height VARCHAR)",
"instruction": "What is the year built of the home with a built status and a 42 m. height?",
"output": "SELECT \"built\" FROM table_name_41 WHERE status = \"built\" AND height = \"42 m.\""
} |
### INSTRUCTION
What is the average Redline RPM of engines with engine code M57TUD30, made after 2002?
### INPUT
CREATE TABLE table_name_49 (redline__rpm_ INTEGER, engine_code VARCHAR, year VARCHAR)
### OUTPUT
SELECT AVG(redline__rpm_) FROM table_name_49 WHERE engine_code = "m57tud30" AND year > 2002 | {
"input": "CREATE TABLE table_name_49 (redline__rpm_ INTEGER, engine_code VARCHAR, year VARCHAR)",
"instruction": "What is the average Redline RPM of engines with engine code M57TUD30, made after 2002?",
"output": "SELECT AVG(redline__rpm_) FROM table_name_49 WHERE engine_code = \"m57tud30\" AND year > 2002"
} |
### INSTRUCTION
Which name has an Order smaller than 997,more than 5 goals, and 215 games?
### INPUT
CREATE TABLE table_name_43 (name VARCHAR, games VARCHAR, order VARCHAR, goals VARCHAR)
### OUTPUT
SELECT name FROM table_name_43 WHERE order < 997 AND goals > 5 AND games = 215 | {
"input": "CREATE TABLE table_name_43 (name VARCHAR, games VARCHAR, order VARCHAR, goals VARCHAR)",
"instruction": "Which name has an Order smaller than 997,more than 5 goals, and 215 games?",
"output": "SELECT name FROM table_name_43 WHERE order < 997 AND goals > 5 AND games = 215"
} |
### INSTRUCTION
How many numbers were recorded under max speed for 1 USAF space flight and total flights 34?
### INPUT
CREATE TABLE table_221315_3 (max_speed__mph_ VARCHAR, usaf_space_flights VARCHAR, total_flights VARCHAR)
### OUTPUT
SELECT COUNT(max_speed__mph_) FROM table_221315_3 WHERE usaf_space_flights = 1 AND total_flights = 34 | {
"input": "CREATE TABLE table_221315_3 (max_speed__mph_ VARCHAR, usaf_space_flights VARCHAR, total_flights VARCHAR)",
"instruction": "How many numbers were recorded under max speed for 1 USAF space flight and total flights 34?",
"output": "SELECT COUNT(max_speed__mph_) FROM table_221315_3 WHERE usaf_space_flights = 1 AND total_flights = 34"
} |
### INSTRUCTION
Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance.
### INPUT
CREATE TABLE checking (custid VARCHAR, balance INTEGER); CREATE TABLE savings (custid VARCHAR, balance INTEGER); CREATE TABLE savings (balance INTEGER); CREATE TABLE checking (balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)
### OUTPUT
SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT AVG(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM savings) | {
"input": "CREATE TABLE checking (custid VARCHAR, balance INTEGER); CREATE TABLE savings (custid VARCHAR, balance INTEGER); CREATE TABLE savings (balance INTEGER); CREATE TABLE checking (balance INTEGER); CREATE TABLE accounts (name VARCHAR, custid VARCHAR)",
"instruction": "Find the names of accounts whose checking balance is above the average checking balance, but savings balance is below the average savings balance.",
"output": "SELECT T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid WHERE T2.balance > (SELECT AVG(balance) FROM checking) INTERSECT SELECT T1.name FROM accounts AS T1 JOIN savings AS T2 ON T1.custid = T2.custid WHERE T2.balance < (SELECT AVG(balance) FROM savings)"
} |
### INSTRUCTION
What round did he win rof 29: aftershock in?
### INPUT
CREATE TABLE table_name_3 (round VARCHAR, res VARCHAR, event VARCHAR)
### OUTPUT
SELECT round FROM table_name_3 WHERE res = "win" AND event = "rof 29: aftershock" | {
"input": "CREATE TABLE table_name_3 (round VARCHAR, res VARCHAR, event VARCHAR)",
"instruction": "What round did he win rof 29: aftershock in?",
"output": "SELECT round FROM table_name_3 WHERE res = \"win\" AND event = \"rof 29: aftershock\""
} |
### INSTRUCTION
What is the Original air date for the episode with a Production code of 07-00-107?
### INPUT
CREATE TABLE table_name_85 (original_air_date VARCHAR, production_code VARCHAR)
### OUTPUT
SELECT original_air_date FROM table_name_85 WHERE production_code = "07-00-107" | {
"input": "CREATE TABLE table_name_85 (original_air_date VARCHAR, production_code VARCHAR)",
"instruction": "What is the Original air date for the episode with a Production code of 07-00-107?",
"output": "SELECT original_air_date FROM table_name_85 WHERE production_code = \"07-00-107\""
} |
### INSTRUCTION
Find the subject ID, subject name, and the corresponding number of available courses for each subject.
### INPUT
CREATE TABLE Courses (subject_id VARCHAR); CREATE TABLE Subjects (subject_name VARCHAR, subject_id VARCHAR)
### OUTPUT
SELECT T1.subject_id, T2.subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id | {
"input": "CREATE TABLE Courses (subject_id VARCHAR); CREATE TABLE Subjects (subject_name VARCHAR, subject_id VARCHAR)",
"instruction": "Find the subject ID, subject name, and the corresponding number of available courses for each subject.",
"output": "SELECT T1.subject_id, T2.subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id"
} |
### INSTRUCTION
Find the number of members of club "Pen and Paper Gaming".
### INPUT
CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Pen and Paper Gaming" | {
"input": "CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE student (stuid VARCHAR)",
"instruction": "Find the number of members of club \"Pen and Paper Gaming\".",
"output": "SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = \"Pen and Paper Gaming\""
} |
### INSTRUCTION
What is the lowest attendance when the h/A is H in the Semi-Finals Second Leg?
### INPUT
CREATE TABLE table_name_73 (attendance INTEGER, h___a VARCHAR, round VARCHAR)
### OUTPUT
SELECT MIN(attendance) FROM table_name_73 WHERE h___a = "h" AND round = "semi-finals second leg" | {
"input": "CREATE TABLE table_name_73 (attendance INTEGER, h___a VARCHAR, round VARCHAR)",
"instruction": "What is the lowest attendance when the h/A is H in the Semi-Finals Second Leg?",
"output": "SELECT MIN(attendance) FROM table_name_73 WHERE h___a = \"h\" AND round = \"semi-finals second leg\""
} |
### INSTRUCTION
Who is the womens doubles on the tour french super series?
### INPUT
CREATE TABLE table_27753492_2 (womens_doubles VARCHAR, tour VARCHAR)
### OUTPUT
SELECT womens_doubles FROM table_27753492_2 WHERE tour = "French Super Series" | {
"input": "CREATE TABLE table_27753492_2 (womens_doubles VARCHAR, tour VARCHAR)",
"instruction": "Who is the womens doubles on the tour french super series?",
"output": "SELECT womens_doubles FROM table_27753492_2 WHERE tour = \"French Super Series\""
} |
### INSTRUCTION
Who were the runners-up in the tournament on May 26, 1996?
### INPUT
CREATE TABLE table_name_93 (runner_s__up VARCHAR, date VARCHAR)
### OUTPUT
SELECT runner_s__up FROM table_name_93 WHERE date = "may 26, 1996" | {
"input": "CREATE TABLE table_name_93 (runner_s__up VARCHAR, date VARCHAR)",
"instruction": "Who were the runners-up in the tournament on May 26, 1996?",
"output": "SELECT runner_s__up FROM table_name_93 WHERE date = \"may 26, 1996\""
} |
### INSTRUCTION
What is the mate for Last Appearance of bully, bully, bully (3x13) for the animal named hollow/holly later than season 1?
### INPUT
CREATE TABLE table_name_48 (mate VARCHAR, animal_name VARCHAR, tv_seasons VARCHAR, last_appearance VARCHAR)
### OUTPUT
SELECT mate FROM table_name_48 WHERE tv_seasons > 1 AND last_appearance = "bully, bully, bully (3x13)" AND animal_name = "hollow/holly" | {
"input": "CREATE TABLE table_name_48 (mate VARCHAR, animal_name VARCHAR, tv_seasons VARCHAR, last_appearance VARCHAR)",
"instruction": "What is the mate for Last Appearance of bully, bully, bully (3x13) for the animal named hollow/holly later than season 1?",
"output": "SELECT mate FROM table_name_48 WHERE tv_seasons > 1 AND last_appearance = \"bully, bully, bully (3x13)\" AND animal_name = \"hollow/holly\""
} |
### INSTRUCTION
What is the sum of week number(s) had an attendance of 61,985?
### INPUT
CREATE TABLE table_name_95 (week VARCHAR, attendance VARCHAR)
### OUTPUT
SELECT COUNT(week) FROM table_name_95 WHERE attendance = 61 OFFSET 985 | {
"input": "CREATE TABLE table_name_95 (week VARCHAR, attendance VARCHAR)",
"instruction": "What is the sum of week number(s) had an attendance of 61,985?",
"output": "SELECT COUNT(week) FROM table_name_95 WHERE attendance = 61 OFFSET 985"
} |
### INSTRUCTION
Retrieve the country that has published the most papers.
### INPUT
CREATE TABLE inst (country VARCHAR, instid VARCHAR); CREATE TABLE authorship (instid VARCHAR, paperid VARCHAR); CREATE TABLE papers (paperid VARCHAR)
### OUTPUT
SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE inst (country VARCHAR, instid VARCHAR); CREATE TABLE authorship (instid VARCHAR, paperid VARCHAR); CREATE TABLE papers (paperid VARCHAR)",
"instruction": "Retrieve the country that has published the most papers.",
"output": "SELECT t1.country FROM inst AS t1 JOIN authorship AS t2 ON t1.instid = t2.instid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.country ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
On January 29, who had the decision of Mason?
### INPUT
CREATE TABLE table_name_17 (visitor VARCHAR, decision VARCHAR, date VARCHAR)
### OUTPUT
SELECT visitor FROM table_name_17 WHERE decision = "mason" AND date = "january 29" | {
"input": "CREATE TABLE table_name_17 (visitor VARCHAR, decision VARCHAR, date VARCHAR)",
"instruction": "On January 29, who had the decision of Mason?",
"output": "SELECT visitor FROM table_name_17 WHERE decision = \"mason\" AND date = \"january 29\""
} |
### INSTRUCTION
What is the unit of measurement of product named "cumin"?
### INPUT
CREATE TABLE ref_product_categories (unit_of_measure VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_name VARCHAR)
### OUTPUT
SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = "cumin" | {
"input": "CREATE TABLE ref_product_categories (unit_of_measure VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_name VARCHAR)",
"instruction": "What is the unit of measurement of product named \"cumin\"?",
"output": "SELECT t2.unit_of_measure FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = \"cumin\""
} |
### INSTRUCTION
Show the average amount of transactions for different lots.
### INPUT
CREATE TABLE TRANSACTIONS (transaction_id VARCHAR); CREATE TABLE Transactions_Lots (lot_id VARCHAR, transaction_id VARCHAR)
### OUTPUT
SELECT T2.lot_id, AVG(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id | {
"input": "CREATE TABLE TRANSACTIONS (transaction_id VARCHAR); CREATE TABLE Transactions_Lots (lot_id VARCHAR, transaction_id VARCHAR)",
"instruction": "Show the average amount of transactions for different lots.",
"output": "SELECT T2.lot_id, AVG(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id = T2.transaction_id GROUP BY T2.lot_id"
} |
### INSTRUCTION
Who is the executive director of the Lemery, Batangas extension?
### INPUT
CREATE TABLE table_name_84 (executive_director VARCHAR, type VARCHAR, location VARCHAR)
### OUTPUT
SELECT executive_director FROM table_name_84 WHERE type = "extension" AND location = "lemery, batangas" | {
"input": "CREATE TABLE table_name_84 (executive_director VARCHAR, type VARCHAR, location VARCHAR)",
"instruction": "Who is the executive director of the Lemery, Batangas extension?",
"output": "SELECT executive_director FROM table_name_84 WHERE type = \"extension\" AND location = \"lemery, batangas\""
} |
### INSTRUCTION
Name the number of names for exeter chiefs
### INPUT
CREATE TABLE table_22977424_8 (name VARCHAR, promoted_from_league VARCHAR)
### OUTPUT
SELECT COUNT(name) FROM table_22977424_8 WHERE promoted_from_league = "Exeter Chiefs" | {
"input": "CREATE TABLE table_22977424_8 (name VARCHAR, promoted_from_league VARCHAR)",
"instruction": "Name the number of names for exeter chiefs",
"output": "SELECT COUNT(name) FROM table_22977424_8 WHERE promoted_from_league = \"Exeter Chiefs\""
} |
### INSTRUCTION
what is the sum of goals for when the position is less than 8, the losses is less than 10 the goals against is less than 35 and played is less than 38?
### INPUT
CREATE TABLE table_name_50 (goals_for INTEGER, played VARCHAR, goals_against VARCHAR, position VARCHAR, losses VARCHAR)
### OUTPUT
SELECT SUM(goals_for) FROM table_name_50 WHERE position < 8 AND losses < 10 AND goals_against < 35 AND played < 38 | {
"input": "CREATE TABLE table_name_50 (goals_for INTEGER, played VARCHAR, goals_against VARCHAR, position VARCHAR, losses VARCHAR)",
"instruction": "what is the sum of goals for when the position is less than 8, the losses is less than 10 the goals against is less than 35 and played is less than 38?",
"output": "SELECT SUM(goals_for) FROM table_name_50 WHERE position < 8 AND losses < 10 AND goals_against < 35 AND played < 38"
} |
### INSTRUCTION
What were the ratings for host Chris Economaki who had 12.3 million viewers?
### INPUT
CREATE TABLE table_name_83 (ratings VARCHAR, host VARCHAR, viewers VARCHAR)
### OUTPUT
SELECT ratings FROM table_name_83 WHERE host = "chris economaki" AND viewers = "12.3 million" | {
"input": "CREATE TABLE table_name_83 (ratings VARCHAR, host VARCHAR, viewers VARCHAR)",
"instruction": "What were the ratings for host Chris Economaki who had 12.3 million viewers?",
"output": "SELECT ratings FROM table_name_83 WHERE host = \"chris economaki\" AND viewers = \"12.3 million\""
} |
### INSTRUCTION
What is the distinct service types that are provided by the organization which has detail 'Denesik and Sons Party'?
### INPUT
CREATE TABLE services (service_type_code VARCHAR, organization_id VARCHAR); CREATE TABLE organizations (organization_id VARCHAR, organization_details VARCHAR)
### OUTPUT
SELECT DISTINCT T1.service_type_code FROM services AS T1 JOIN organizations AS T2 ON T1.organization_id = T2.organization_id WHERE T2.organization_details = 'Denesik and Sons Party' | {
"input": "CREATE TABLE services (service_type_code VARCHAR, organization_id VARCHAR); CREATE TABLE organizations (organization_id VARCHAR, organization_details VARCHAR)",
"instruction": "What is the distinct service types that are provided by the organization which has detail 'Denesik and Sons Party'?",
"output": "SELECT DISTINCT T1.service_type_code FROM services AS T1 JOIN organizations AS T2 ON T1.organization_id = T2.organization_id WHERE T2.organization_details = 'Denesik and Sons Party'"
} |
### INSTRUCTION
What was the length for GT class at Portland International Raceway?
### INPUT
CREATE TABLE table_name_22 (length VARCHAR, class VARCHAR, circuit VARCHAR)
### OUTPUT
SELECT length FROM table_name_22 WHERE class = "gt" AND circuit = "portland international raceway" | {
"input": "CREATE TABLE table_name_22 (length VARCHAR, class VARCHAR, circuit VARCHAR)",
"instruction": "What was the length for GT class at Portland International Raceway?",
"output": "SELECT length FROM table_name_22 WHERE class = \"gt\" AND circuit = \"portland international raceway\""
} |
### INSTRUCTION
What is the Comp of the Shooter with a Score of 489.5?
### INPUT
CREATE TABLE table_name_3 (comp VARCHAR, score VARCHAR)
### OUTPUT
SELECT comp FROM table_name_3 WHERE score = "489.5" | {
"input": "CREATE TABLE table_name_3 (comp VARCHAR, score VARCHAR)",
"instruction": "What is the Comp of the Shooter with a Score of 489.5?",
"output": "SELECT comp FROM table_name_3 WHERE score = \"489.5\""
} |
### INSTRUCTION
how many managers left sunshine stars?
### INPUT
CREATE TABLE table_28164986_4 (outgoing_manager VARCHAR, team VARCHAR)
### OUTPUT
SELECT COUNT(outgoing_manager) FROM table_28164986_4 WHERE team = "Sunshine Stars" | {
"input": "CREATE TABLE table_28164986_4 (outgoing_manager VARCHAR, team VARCHAR)",
"instruction": "how many managers left sunshine stars?",
"output": "SELECT COUNT(outgoing_manager) FROM table_28164986_4 WHERE team = \"Sunshine Stars\""
} |
### INSTRUCTION
What was the city for the winner Darren Hossack at the circuit of phillip island grand prix circuit?
### INPUT
CREATE TABLE table_name_45 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR)
### OUTPUT
SELECT city___state FROM table_name_45 WHERE winner = "darren hossack" AND circuit = "phillip island grand prix circuit" | {
"input": "CREATE TABLE table_name_45 (city___state VARCHAR, winner VARCHAR, circuit VARCHAR)",
"instruction": "What was the city for the winner Darren Hossack at the circuit of phillip island grand prix circuit?",
"output": "SELECT city___state FROM table_name_45 WHERE winner = \"darren hossack\" AND circuit = \"phillip island grand prix circuit\""
} |
### INSTRUCTION
What are the names of races that were held after 2017 and the circuits were in the country of Spain?
### INPUT
CREATE TABLE races (name VARCHAR, circuitid VARCHAR, year VARCHAR); CREATE TABLE circuits (circuitid VARCHAR, country VARCHAR)
### OUTPUT
SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = "Spain" AND T1.year > 2017 | {
"input": "CREATE TABLE races (name VARCHAR, circuitid VARCHAR, year VARCHAR); CREATE TABLE circuits (circuitid VARCHAR, country VARCHAR)",
"instruction": "What are the names of races that were held after 2017 and the circuits were in the country of Spain?",
"output": "SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2017"
} |
### INSTRUCTION
Name the total number of assists for 77 blocks
### INPUT
CREATE TABLE table_17309500_1 (assists VARCHAR, blocks VARCHAR)
### OUTPUT
SELECT COUNT(assists) FROM table_17309500_1 WHERE blocks = "77" | {
"input": "CREATE TABLE table_17309500_1 (assists VARCHAR, blocks VARCHAR)",
"instruction": "Name the total number of assists for 77 blocks",
"output": "SELECT COUNT(assists) FROM table_17309500_1 WHERE blocks = \"77\""
} |
### INSTRUCTION
Find the distinct student first names of all students that have grade point at least 3.8 in one course.
### INPUT
CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint VARCHAR, lettergrade VARCHAR)
### OUTPUT
SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8 | {
"input": "CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (Fname VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint VARCHAR, lettergrade VARCHAR)",
"instruction": "Find the distinct student first names of all students that have grade point at least 3.8 in one course.",
"output": "SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8"
} |
### INSTRUCTION
When the assets are 2,550, what is the Market Value?
### INPUT
CREATE TABLE table_1682026_2 (market_value__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)
### OUTPUT
SELECT market_value__billion_$_ FROM table_1682026_2 WHERE assets__billion_$_ = "2,550" | {
"input": "CREATE TABLE table_1682026_2 (market_value__billion_$_ VARCHAR, assets__billion_$_ VARCHAR)",
"instruction": "When the assets are 2,550, what is the Market Value?",
"output": "SELECT market_value__billion_$_ FROM table_1682026_2 WHERE assets__billion_$_ = \"2,550\""
} |
### INSTRUCTION
What were the sets when Federer had 6 and a nadal of 13?
### INPUT
CREATE TABLE table_name_95 (sets VARCHAR, nadal VARCHAR, federer VARCHAR)
### OUTPUT
SELECT sets FROM table_name_95 WHERE nadal = 13 AND federer = 6 | {
"input": "CREATE TABLE table_name_95 (sets VARCHAR, nadal VARCHAR, federer VARCHAR)",
"instruction": "What were the sets when Federer had 6 and a nadal of 13?",
"output": "SELECT sets FROM table_name_95 WHERE nadal = 13 AND federer = 6"
} |
### INSTRUCTION
What was the result in the game where the visiting team was Louisiana-Monroe?
### INPUT
CREATE TABLE table_26842217_12 (result VARCHAR, visiting_team VARCHAR)
### OUTPUT
SELECT result FROM table_26842217_12 WHERE visiting_team = "Louisiana-Monroe" | {
"input": "CREATE TABLE table_26842217_12 (result VARCHAR, visiting_team VARCHAR)",
"instruction": "What was the result in the game where the visiting team was Louisiana-Monroe?",
"output": "SELECT result FROM table_26842217_12 WHERE visiting_team = \"Louisiana-Monroe\""
} |
### INSTRUCTION
Which episodes have Patrick Lau as the director and Lisa Holdsworth as the writer?
### INPUT
CREATE TABLE table_14330096_4 (title VARCHAR, director VARCHAR, writer VARCHAR)
### OUTPUT
SELECT title FROM table_14330096_4 WHERE director = "Patrick Lau" AND writer = "Lisa Holdsworth" | {
"input": "CREATE TABLE table_14330096_4 (title VARCHAR, director VARCHAR, writer VARCHAR)",
"instruction": "Which episodes have Patrick Lau as the director and Lisa Holdsworth as the writer?",
"output": "SELECT title FROM table_14330096_4 WHERE director = \"Patrick Lau\" AND writer = \"Lisa Holdsworth\""
} |
### INSTRUCTION
What was the distance for the 11th position?
### INPUT
CREATE TABLE table_22265261_1 (distance VARCHAR, position VARCHAR)
### OUTPUT
SELECT distance FROM table_22265261_1 WHERE position = "11th" | {
"input": "CREATE TABLE table_22265261_1 (distance VARCHAR, position VARCHAR)",
"instruction": "What was the distance for the 11th position?",
"output": "SELECT distance FROM table_22265261_1 WHERE position = \"11th\""
} |
### INSTRUCTION
Name the highest 3rd place for nation of perak fa
### INPUT
### OUTPUT
SELECT MAX(*) FROM table_name_65 WHERE nation = "perak fa" AND place = 3 | {
"input": "",
"instruction": "Name the highest 3rd place for nation of perak fa",
"output": "SELECT MAX(*) FROM table_name_65 WHERE nation = \"perak fa\" AND place = 3"
} |
### INSTRUCTION
Find the name and attribute ID of the attribute definitions with attribute value 0.
### INPUT
CREATE TABLE Catalog_Contents_Additional_Attributes (attribute_id VARCHAR, attribute_value VARCHAR); CREATE TABLE Attribute_Definitions (attribute_name VARCHAR, attribute_id VARCHAR)
### OUTPUT
SELECT t1.attribute_name, t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0 | {
"input": "CREATE TABLE Catalog_Contents_Additional_Attributes (attribute_id VARCHAR, attribute_value VARCHAR); CREATE TABLE Attribute_Definitions (attribute_name VARCHAR, attribute_id VARCHAR)",
"instruction": "Find the name and attribute ID of the attribute definitions with attribute value 0.",
"output": "SELECT t1.attribute_name, t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.