text
stringlengths 147
1.06k
| source
dict |
---|---|
### INSTRUCTION
What is the high cap total for a lock with the vicenza rangers?
### INPUT
CREATE TABLE table_name_55 (caps INTEGER, position VARCHAR, club_province VARCHAR)
### OUTPUT
SELECT MAX(caps) FROM table_name_55 WHERE position = "lock" AND club_province = "vicenza rangers" | {
"input": "CREATE TABLE table_name_55 (caps INTEGER, position VARCHAR, club_province VARCHAR)",
"instruction": "What is the high cap total for a lock with the vicenza rangers?",
"output": "SELECT MAX(caps) FROM table_name_55 WHERE position = \"lock\" AND club_province = \"vicenza rangers\""
} |
### INSTRUCTION
Which title has a Black Ice for a guest performer and a length of 5:49?
### INPUT
CREATE TABLE table_name_50 (title VARCHAR, guest_performer VARCHAR, time VARCHAR)
### OUTPUT
SELECT title FROM table_name_50 WHERE guest_performer = "black ice" AND time = "5:49" | {
"input": "CREATE TABLE table_name_50 (title VARCHAR, guest_performer VARCHAR, time VARCHAR)",
"instruction": "Which title has a Black Ice for a guest performer and a length of 5:49?",
"output": "SELECT title FROM table_name_50 WHERE guest_performer = \"black ice\" AND time = \"5:49\""
} |
### INSTRUCTION
Find all airlines that have flights from both airports 'APG' and 'CVO'.
### INPUT
CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR); CREATE TABLE FLIGHTS (Airline VARCHAR, SourceAirport VARCHAR)
### OUTPUT
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "APG" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = "CVO" | {
"input": "CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR); CREATE TABLE FLIGHTS (Airline VARCHAR, SourceAirport VARCHAR)",
"instruction": "Find all airlines that have flights from both airports 'APG' and 'CVO'.",
"output": "SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"APG\" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline WHERE T2.SourceAirport = \"CVO\""
} |
### INSTRUCTION
Does Green Bay have a golf team?
### INPUT
CREATE TABLE table_name_66 (golf VARCHAR, school VARCHAR)
### OUTPUT
SELECT golf FROM table_name_66 WHERE school = "green bay" | {
"input": "CREATE TABLE table_name_66 (golf VARCHAR, school VARCHAR)",
"instruction": "Does Green Bay have a golf team?",
"output": "SELECT golf FROM table_name_66 WHERE school = \"green bay\""
} |
### INSTRUCTION
What years did number 54 play for the jazz
### INPUT
CREATE TABLE table_11545282_4 (years_for_jazz VARCHAR, no VARCHAR)
### OUTPUT
SELECT years_for_jazz FROM table_11545282_4 WHERE no = 54 | {
"input": "CREATE TABLE table_11545282_4 (years_for_jazz VARCHAR, no VARCHAR)",
"instruction": "What years did number 54 play for the jazz",
"output": "SELECT years_for_jazz FROM table_11545282_4 WHERE no = 54"
} |
### INSTRUCTION
Which Tournament is in 1993 with a Score in the final of 6–2, 2–6, 7–5?
### INPUT
CREATE TABLE table_name_13 (tournament VARCHAR, date VARCHAR, score_in_the_final VARCHAR)
### OUTPUT
SELECT tournament FROM table_name_13 WHERE date = 1993 AND score_in_the_final = "6–2, 2–6, 7–5" | {
"input": "CREATE TABLE table_name_13 (tournament VARCHAR, date VARCHAR, score_in_the_final VARCHAR)",
"instruction": "Which Tournament is in 1993 with a Score in the final of 6–2, 2–6, 7–5?",
"output": "SELECT tournament FROM table_name_13 WHERE date = 1993 AND score_in_the_final = \"6–2, 2–6, 7–5\""
} |
### INSTRUCTION
Which Venue has an Event of marathon, and a Year larger than 1995, and a Position of 4th?
### INPUT
CREATE TABLE table_name_94 (venue VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR)
### OUTPUT
SELECT venue FROM table_name_94 WHERE event = "marathon" AND year > 1995 AND position = "4th" | {
"input": "CREATE TABLE table_name_94 (venue VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR)",
"instruction": "Which Venue has an Event of marathon, and a Year larger than 1995, and a Position of 4th?",
"output": "SELECT venue FROM table_name_94 WHERE event = \"marathon\" AND year > 1995 AND position = \"4th\""
} |
### INSTRUCTION
What is the home team score of the Ghantoot Racing and Polo Club Ground?
### INPUT
CREATE TABLE table_name_25 (home_team VARCHAR, ground VARCHAR)
### OUTPUT
SELECT home_team AS score FROM table_name_25 WHERE ground = "ghantoot racing and polo club" | {
"input": "CREATE TABLE table_name_25 (home_team VARCHAR, ground VARCHAR)",
"instruction": "What is the home team score of the Ghantoot Racing and Polo Club Ground?",
"output": "SELECT home_team AS score FROM table_name_25 WHERE ground = \"ghantoot racing and polo club\""
} |
### INSTRUCTION
Who directed the epsiode with production number 109?
### INPUT
CREATE TABLE table_2400842_1 (directed_by VARCHAR, prod__number VARCHAR)
### OUTPUT
SELECT directed_by FROM table_2400842_1 WHERE prod__number = 109 | {
"input": "CREATE TABLE table_2400842_1 (directed_by VARCHAR, prod__number VARCHAR)",
"instruction": "Who directed the epsiode with production number 109?",
"output": "SELECT directed_by FROM table_2400842_1 WHERE prod__number = 109"
} |
### INSTRUCTION
How many silvers for the nation with under 6 total and under 0 bronze?
### INPUT
CREATE TABLE table_name_62 (silver VARCHAR, total VARCHAR, bronze VARCHAR)
### OUTPUT
SELECT COUNT(silver) FROM table_name_62 WHERE total < 6 AND bronze < 0 | {
"input": "CREATE TABLE table_name_62 (silver VARCHAR, total VARCHAR, bronze VARCHAR)",
"instruction": "How many silvers for the nation with under 6 total and under 0 bronze?",
"output": "SELECT COUNT(silver) FROM table_name_62 WHERE total < 6 AND bronze < 0"
} |
### INSTRUCTION
What is the low attendance rate against buffalo bills?
### INPUT
CREATE TABLE table_name_98 (attendance INTEGER, opponent VARCHAR)
### OUTPUT
SELECT MIN(attendance) FROM table_name_98 WHERE opponent = "buffalo bills" | {
"input": "CREATE TABLE table_name_98 (attendance INTEGER, opponent VARCHAR)",
"instruction": "What is the low attendance rate against buffalo bills?",
"output": "SELECT MIN(attendance) FROM table_name_98 WHERE opponent = \"buffalo bills\""
} |
### INSTRUCTION
Find the name and email for the users who have more than one follower.
### INPUT
CREATE TABLE follows (f1 VARCHAR); CREATE TABLE user_profiles (name VARCHAR, email VARCHAR, uid VARCHAR)
### OUTPUT
SELECT T1.name, T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > 1 | {
"input": "CREATE TABLE follows (f1 VARCHAR); CREATE TABLE user_profiles (name VARCHAR, email VARCHAR, uid VARCHAR)",
"instruction": "Find the name and email for the users who have more than one follower.",
"output": "SELECT T1.name, T1.email FROM user_profiles AS T1 JOIN follows AS T2 ON T1.uid = T2.f1 GROUP BY T2.f1 HAVING COUNT(*) > 1"
} |
### INSTRUCTION
Which room has the highest rate? List the room's full name, rate, check in and check out date.
### INPUT
CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR); CREATE TABLE Reservations (Rate VARCHAR, CheckIn VARCHAR, CheckOut VARCHAR, Room VARCHAR)
### OUTPUT
SELECT T2.roomName, T1.Rate, T1.CheckIn, T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1 | {
"input": "CREATE TABLE Rooms (roomName VARCHAR, RoomId VARCHAR); CREATE TABLE Reservations (Rate VARCHAR, CheckIn VARCHAR, CheckOut VARCHAR, Room VARCHAR)",
"instruction": "Which room has the highest rate? List the room's full name, rate, check in and check out date.",
"output": "SELECT T2.roomName, T1.Rate, T1.CheckIn, T1.CheckOut FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId GROUP BY T1.Room ORDER BY T1.Rate DESC LIMIT 1"
} |
### INSTRUCTION
What is the highest kneel with a stand less than 187, and a 197 prone, and a qual more than 576?
### INPUT
CREATE TABLE table_name_59 (kneel INTEGER, qual VARCHAR, stand VARCHAR, prone VARCHAR)
### OUTPUT
SELECT MAX(kneel) FROM table_name_59 WHERE stand < 187 AND prone = 197 AND qual > 576 | {
"input": "CREATE TABLE table_name_59 (kneel INTEGER, qual VARCHAR, stand VARCHAR, prone VARCHAR)",
"instruction": "What is the highest kneel with a stand less than 187, and a 197 prone, and a qual more than 576?",
"output": "SELECT MAX(kneel) FROM table_name_59 WHERE stand < 187 AND prone = 197 AND qual > 576"
} |
### INSTRUCTION
What are the first name, last name, and gender of all the good customers? Order by their last name.
### INPUT
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, gender_mf VARCHAR, good_or_bad_customer VARCHAR)
### OUTPUT
SELECT first_name, last_name, gender_mf FROM customers WHERE good_or_bad_customer = 'good' ORDER BY last_name | {
"input": "CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, gender_mf VARCHAR, good_or_bad_customer VARCHAR)",
"instruction": "What are the first name, last name, and gender of all the good customers? Order by their last name.",
"output": "SELECT first_name, last_name, gender_mf FROM customers WHERE good_or_bad_customer = 'good' ORDER BY last_name"
} |
### INSTRUCTION
What is the Score of the 1996 Asian Cup Qualification on June 29, 1996?
### INPUT
CREATE TABLE table_name_24 (score VARCHAR, competition VARCHAR, date VARCHAR)
### OUTPUT
SELECT score FROM table_name_24 WHERE competition = "1996 asian cup qualification" AND date = "june 29, 1996" | {
"input": "CREATE TABLE table_name_24 (score VARCHAR, competition VARCHAR, date VARCHAR)",
"instruction": "What is the Score of the 1996 Asian Cup Qualification on June 29, 1996?",
"output": "SELECT score FROM table_name_24 WHERE competition = \"1996 asian cup qualification\" AND date = \"june 29, 1996\""
} |
### INSTRUCTION
How many seasons in Meistriliiga when the club was kuressaare also had a first season in top division of more than 2000?
### INPUT
CREATE TABLE table_name_17 (number_of_seasons_in_meistriliiga VARCHAR, club VARCHAR, first_season_in_top_division VARCHAR)
### OUTPUT
SELECT COUNT(number_of_seasons_in_meistriliiga) FROM table_name_17 WHERE club = "kuressaare" AND first_season_in_top_division > 2000 | {
"input": "CREATE TABLE table_name_17 (number_of_seasons_in_meistriliiga VARCHAR, club VARCHAR, first_season_in_top_division VARCHAR)",
"instruction": "How many seasons in Meistriliiga when the club was kuressaare also had a first season in top division of more than 2000?",
"output": "SELECT COUNT(number_of_seasons_in_meistriliiga) FROM table_name_17 WHERE club = \"kuressaare\" AND first_season_in_top_division > 2000"
} |
### INSTRUCTION
What is the score of the 1996 Emarate cup on March 25, 1996?
### INPUT
CREATE TABLE table_name_79 (score VARCHAR, competition VARCHAR, date VARCHAR)
### OUTPUT
SELECT score FROM table_name_79 WHERE competition = "1996 emarate cup" AND date = "march 25, 1996" | {
"input": "CREATE TABLE table_name_79 (score VARCHAR, competition VARCHAR, date VARCHAR)",
"instruction": "What is the score of the 1996 Emarate cup on March 25, 1996?",
"output": "SELECT score FROM table_name_79 WHERE competition = \"1996 emarate cup\" AND date = \"march 25, 1996\""
} |
### INSTRUCTION
What is the release date of the album written by Goss, James James Goss under Audiogo?
### INPUT
CREATE TABLE table_name_36 (release_date VARCHAR, writer VARCHAR, company VARCHAR)
### OUTPUT
SELECT release_date FROM table_name_36 WHERE writer = "goss, james james goss" AND company = "audiogo" | {
"input": "CREATE TABLE table_name_36 (release_date VARCHAR, writer VARCHAR, company VARCHAR)",
"instruction": "What is the release date of the album written by Goss, James James Goss under Audiogo?",
"output": "SELECT release_date FROM table_name_36 WHERE writer = \"goss, james james goss\" AND company = \"audiogo\""
} |
### INSTRUCTION
Who is every young rider classification if combativity award is Yannick Talabardon?
### INPUT
CREATE TABLE table_25999087_2 (young_rider_classification VARCHAR, combativity_award VARCHAR)
### OUTPUT
SELECT young_rider_classification FROM table_25999087_2 WHERE combativity_award = "Yannick Talabardon" | {
"input": "CREATE TABLE table_25999087_2 (young_rider_classification VARCHAR, combativity_award VARCHAR)",
"instruction": "Who is every young rider classification if combativity award is Yannick Talabardon?",
"output": "SELECT young_rider_classification FROM table_25999087_2 WHERE combativity_award = \"Yannick Talabardon\""
} |
### INSTRUCTION
What was the province with an election date of 5 cannot handle non-empty timestamp argument! 1861?
### INPUT
CREATE TABLE table_27592654_2 (province VARCHAR, election_date VARCHAR)
### OUTPUT
SELECT province FROM table_27592654_2 WHERE election_date = "5 Cannot handle non-empty timestamp argument! 1861" | {
"input": "CREATE TABLE table_27592654_2 (province VARCHAR, election_date VARCHAR)",
"instruction": "What was the province with an election date of 5 cannot handle non-empty timestamp argument! 1861?",
"output": "SELECT province FROM table_27592654_2 WHERE election_date = \"5 Cannot handle non-empty timestamp argument! 1861\""
} |
### INSTRUCTION
How long is the XXX track used by the Minnesota Vikings?
### INPUT
CREATE TABLE table_name_14 (time VARCHAR, team_s_ VARCHAR, artist_s_ VARCHAR)
### OUTPUT
SELECT time FROM table_name_14 WHERE team_s_ = "minnesota vikings" AND artist_s_ = "xxx" | {
"input": "CREATE TABLE table_name_14 (time VARCHAR, team_s_ VARCHAR, artist_s_ VARCHAR)",
"instruction": "How long is the XXX track used by the Minnesota Vikings?",
"output": "SELECT time FROM table_name_14 WHERE team_s_ = \"minnesota vikings\" AND artist_s_ = \"xxx\""
} |
### INSTRUCTION
Who had the high pick of the round of 10 for Fairmont State college?
### INPUT
CREATE TABLE table_name_13 (pick INTEGER, college VARCHAR, round VARCHAR)
### OUTPUT
SELECT MAX(pick) FROM table_name_13 WHERE college = "fairmont state" AND round > 10 | {
"input": "CREATE TABLE table_name_13 (pick INTEGER, college VARCHAR, round VARCHAR)",
"instruction": "Who had the high pick of the round of 10 for Fairmont State college?",
"output": "SELECT MAX(pick) FROM table_name_13 WHERE college = \"fairmont state\" AND round > 10"
} |
### INSTRUCTION
What is the Score when the winner was sanyo wild knights, and a Runner-up of suntory sungoliath?
### INPUT
CREATE TABLE table_name_39 (score VARCHAR, winner VARCHAR, runner_up VARCHAR)
### OUTPUT
SELECT score FROM table_name_39 WHERE winner = "sanyo wild knights" AND runner_up = "suntory sungoliath" | {
"input": "CREATE TABLE table_name_39 (score VARCHAR, winner VARCHAR, runner_up VARCHAR)",
"instruction": "What is the Score when the winner was sanyo wild knights, and a Runner-up of suntory sungoliath?",
"output": "SELECT score FROM table_name_39 WHERE winner = \"sanyo wild knights\" AND runner_up = \"suntory sungoliath\""
} |
### INSTRUCTION
What was the score of the game when the home was Atlanta?
### INPUT
CREATE TABLE table_name_99 (score VARCHAR, home VARCHAR)
### OUTPUT
SELECT score FROM table_name_99 WHERE home = "atlanta" | {
"input": "CREATE TABLE table_name_99 (score VARCHAR, home VARCHAR)",
"instruction": "What was the score of the game when the home was Atlanta?",
"output": "SELECT score FROM table_name_99 WHERE home = \"atlanta\""
} |
### INSTRUCTION
What is the away score with a record of 7-4, win% of 0.637, and 2010 season?
### INPUT
CREATE TABLE table_name_22 (away VARCHAR, season VARCHAR, record VARCHAR, win__percentage VARCHAR)
### OUTPUT
SELECT away FROM table_name_22 WHERE record = "7-4" AND win__percentage = 0.637 AND season = "2010" | {
"input": "CREATE TABLE table_name_22 (away VARCHAR, season VARCHAR, record VARCHAR, win__percentage VARCHAR)",
"instruction": "What is the away score with a record of 7-4, win% of 0.637, and 2010 season?",
"output": "SELECT away FROM table_name_22 WHERE record = \"7-4\" AND win__percentage = 0.637 AND season = \"2010\""
} |
### INSTRUCTION
List the states which have between 2 to 4 staffs living there.
### INPUT
CREATE TABLE Addresses (state_province_county VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR)
### OUTPUT
SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING COUNT(*) BETWEEN 2 AND 4 | {
"input": "CREATE TABLE Addresses (state_province_county VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR)",
"instruction": "List the states which have between 2 to 4 staffs living there.",
"output": "SELECT T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id GROUP BY T1.state_province_county HAVING COUNT(*) BETWEEN 2 AND 4"
} |
### INSTRUCTION
How many people lived in the city which has 1.2530 km² in the year 2000?
### INPUT
CREATE TABLE table_2004733_2 (population__2000_ INTEGER, area__in_km_2__ VARCHAR)
### OUTPUT
SELECT MAX(population__2000_) FROM table_2004733_2 WHERE area__in_km_2__ = "1.2530" | {
"input": "CREATE TABLE table_2004733_2 (population__2000_ INTEGER, area__in_km_2__ VARCHAR)",
"instruction": "How many people lived in the city which has 1.2530 km² in the year 2000?",
"output": "SELECT MAX(population__2000_) FROM table_2004733_2 WHERE area__in_km_2__ = \"1.2530\""
} |
### INSTRUCTION
Which skill is used in fixing the most number of faults? List the skill id and description.
### INPUT
CREATE TABLE Skills (skill_id VARCHAR, skill_description VARCHAR); CREATE TABLE Skills_Required_To_Fix (skill_id VARCHAR)
### OUTPUT
SELECT T1.skill_id, T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id = T2.skill_id GROUP BY T1.skill_id ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Skills (skill_id VARCHAR, skill_description VARCHAR); CREATE TABLE Skills_Required_To_Fix (skill_id VARCHAR)",
"instruction": "Which skill is used in fixing the most number of faults? List the skill id and description.",
"output": "SELECT T1.skill_id, T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id = T2.skill_id GROUP BY T1.skill_id ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
Which Joined has an Institution of abraham baldwin agricultural college, and an Enrollment smaller than 3,284?
### INPUT
CREATE TABLE table_name_96 (joined INTEGER, institution VARCHAR, enrollment VARCHAR)
### OUTPUT
SELECT MAX(joined) FROM table_name_96 WHERE institution = "abraham baldwin agricultural college" AND enrollment < 3 OFFSET 284 | {
"input": "CREATE TABLE table_name_96 (joined INTEGER, institution VARCHAR, enrollment VARCHAR)",
"instruction": "Which Joined has an Institution of abraham baldwin agricultural college, and an Enrollment smaller than 3,284?",
"output": "SELECT MAX(joined) FROM table_name_96 WHERE institution = \"abraham baldwin agricultural college\" AND enrollment < 3 OFFSET 284"
} |
### INSTRUCTION
What network has lap-by-laps by Bill Flemming, and Pit reporter Chris Economaki?
### INPUT
CREATE TABLE table_name_47 (network VARCHAR, lap_by_lap VARCHAR, pit_reporters VARCHAR)
### OUTPUT
SELECT network FROM table_name_47 WHERE lap_by_lap = "bill flemming" AND pit_reporters = "chris economaki" | {
"input": "CREATE TABLE table_name_47 (network VARCHAR, lap_by_lap VARCHAR, pit_reporters VARCHAR)",
"instruction": "What network has lap-by-laps by Bill Flemming, and Pit reporter Chris Economaki?",
"output": "SELECT network FROM table_name_47 WHERE lap_by_lap = \"bill flemming\" AND pit_reporters = \"chris economaki\""
} |
### INSTRUCTION
Find the titles of all movies not reviewed by Chris Jackson.
### INPUT
CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR); CREATE TABLE Movie (title VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)
### OUTPUT
SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson' | {
"input": "CREATE TABLE Reviewer (rID VARCHAR, name VARCHAR); CREATE TABLE Movie (title VARCHAR, mID VARCHAR); CREATE TABLE Movie (title VARCHAR); CREATE TABLE Rating (mID VARCHAR, rID VARCHAR)",
"instruction": "Find the titles of all movies not reviewed by Chris Jackson.",
"output": "SELECT DISTINCT title FROM Movie EXCEPT SELECT T2.title FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID JOIN Reviewer AS T3 ON T1.rID = T3.rID WHERE T3.name = 'Chris Jackson'"
} |
### INSTRUCTION
In what position was the driver who won $60,000?
### INPUT
CREATE TABLE table_25146455_1 (position INTEGER, winnings VARCHAR)
### OUTPUT
SELECT MIN(position) FROM table_25146455_1 WHERE winnings = "$60,000" | {
"input": "CREATE TABLE table_25146455_1 (position INTEGER, winnings VARCHAR)",
"instruction": "In what position was the driver who won $60,000?",
"output": "SELECT MIN(position) FROM table_25146455_1 WHERE winnings = \"$60,000\""
} |
### INSTRUCTION
In the surface of clay who was the opponent in the game resulting in a score of 6–4, 6–4?
### INPUT
CREATE TABLE table_name_23 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR)
### OUTPUT
SELECT opponent_in_the_final FROM table_name_23 WHERE surface = "clay" AND score = "6–4, 6–4" | {
"input": "CREATE TABLE table_name_23 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR)",
"instruction": "In the surface of clay who was the opponent in the game resulting in a score of 6–4, 6–4?",
"output": "SELECT opponent_in_the_final FROM table_name_23 WHERE surface = \"clay\" AND score = \"6–4, 6–4\""
} |
### INSTRUCTION
What is the total number of Second, when First is greater than 18, when Season is 1992-93, and when Premier is greater than 16?
### INPUT
CREATE TABLE table_name_5 (second VARCHAR, premier VARCHAR, first VARCHAR, season VARCHAR)
### OUTPUT
SELECT COUNT(second) FROM table_name_5 WHERE first > 18 AND season = "1992-93" AND premier > 16 | {
"input": "CREATE TABLE table_name_5 (second VARCHAR, premier VARCHAR, first VARCHAR, season VARCHAR)",
"instruction": "What is the total number of Second, when First is greater than 18, when Season is 1992-93, and when Premier is greater than 16?",
"output": "SELECT COUNT(second) FROM table_name_5 WHERE first > 18 AND season = \"1992-93\" AND premier > 16"
} |
### INSTRUCTION
If the speaker is Munu Adhi (2) K. Rajaram, what is the election year maximum?
### INPUT
CREATE TABLE table_23512864_4 (election_year INTEGER, speaker VARCHAR)
### OUTPUT
SELECT MAX(election_year) FROM table_23512864_4 WHERE speaker = "Munu Adhi (2) K. Rajaram" | {
"input": "CREATE TABLE table_23512864_4 (election_year INTEGER, speaker VARCHAR)",
"instruction": "If the speaker is Munu Adhi (2) K. Rajaram, what is the election year maximum?",
"output": "SELECT MAX(election_year) FROM table_23512864_4 WHERE speaker = \"Munu Adhi (2) K. Rajaram\""
} |
### INSTRUCTION
What is the total number in 2006, which has an official foundation of municipality of 1918?
### INPUT
CREATE TABLE table_name_95 (date_of_official_foundation_of_municipality VARCHAR)
### OUTPUT
SELECT COUNT(2006) FROM table_name_95 WHERE date_of_official_foundation_of_municipality = 1918 | {
"input": "CREATE TABLE table_name_95 (date_of_official_foundation_of_municipality VARCHAR)",
"instruction": "What is the total number in 2006, which has an official foundation of municipality of 1918?",
"output": "SELECT COUNT(2006) FROM table_name_95 WHERE date_of_official_foundation_of_municipality = 1918"
} |
### INSTRUCTION
What is the average SP+FS for Denise Biellmann, and a Rank larger than 5?
### INPUT
CREATE TABLE table_name_14 (fs VARCHAR, sp INTEGER, name VARCHAR, rank VARCHAR)
### OUTPUT
SELECT AVG(sp) + fs FROM table_name_14 WHERE name = "denise biellmann" AND rank > 5 | {
"input": "CREATE TABLE table_name_14 (fs VARCHAR, sp INTEGER, name VARCHAR, rank VARCHAR)",
"instruction": "What is the average SP+FS for Denise Biellmann, and a Rank larger than 5?",
"output": "SELECT AVG(sp) + fs FROM table_name_14 WHERE name = \"denise biellmann\" AND rank > 5"
} |
### INSTRUCTION
how many times was the high rebounds by Mcdyess (9) and the high assists was by Billups (10)?
### INPUT
CREATE TABLE table_11960944_4 (high_points VARCHAR, high_rebounds VARCHAR, high_assists VARCHAR)
### OUTPUT
SELECT COUNT(high_points) FROM table_11960944_4 WHERE high_rebounds = "McDyess (9)" AND high_assists = "Billups (10)" | {
"input": "CREATE TABLE table_11960944_4 (high_points VARCHAR, high_rebounds VARCHAR, high_assists VARCHAR)",
"instruction": "how many times was the high rebounds by Mcdyess (9) and the high assists was by Billups (10)?",
"output": "SELECT COUNT(high_points) FROM table_11960944_4 WHERE high_rebounds = \"McDyess (9)\" AND high_assists = \"Billups (10)\""
} |
### INSTRUCTION
Name the total number of bronze medals when gold medals was 2, total medals more than 4 and silver medals less than 5
### INPUT
CREATE TABLE table_name_87 (bronze_medals VARCHAR, silver_medals VARCHAR, gold_medals VARCHAR, total_medals VARCHAR)
### OUTPUT
SELECT COUNT(bronze_medals) FROM table_name_87 WHERE gold_medals = 2 AND total_medals > 4 AND silver_medals < 5 | {
"input": "CREATE TABLE table_name_87 (bronze_medals VARCHAR, silver_medals VARCHAR, gold_medals VARCHAR, total_medals VARCHAR)",
"instruction": "Name the total number of bronze medals when gold medals was 2, total medals more than 4 and silver medals less than 5",
"output": "SELECT COUNT(bronze_medals) FROM table_name_87 WHERE gold_medals = 2 AND total_medals > 4 AND silver_medals < 5"
} |
### INSTRUCTION
What party established in 1797 won an election in 2007?
### INPUT
CREATE TABLE table_name_17 (party VARCHAR, established VARCHAR, election VARCHAR)
### OUTPUT
SELECT party FROM table_name_17 WHERE established > 1797 AND election = 2007 | {
"input": "CREATE TABLE table_name_17 (party VARCHAR, established VARCHAR, election VARCHAR)",
"instruction": "What party established in 1797 won an election in 2007?",
"output": "SELECT party FROM table_name_17 WHERE established > 1797 AND election = 2007"
} |
### INSTRUCTION
What is the designation of material or non-material for either positional or automatic with no rectified count and either opponent?
### INPUT
CREATE TABLE table_name_36 (material_or_non_material VARCHAR, opponents VARCHAR, positional_or_automatic VARCHAR, count_rectified VARCHAR)
### OUTPUT
SELECT material_or_non_material FROM table_name_36 WHERE positional_or_automatic = "either" AND count_rectified = "no" AND opponents = "either" | {
"input": "CREATE TABLE table_name_36 (material_or_non_material VARCHAR, opponents VARCHAR, positional_or_automatic VARCHAR, count_rectified VARCHAR)",
"instruction": "What is the designation of material or non-material for either positional or automatic with no rectified count and either opponent?",
"output": "SELECT material_or_non_material FROM table_name_36 WHERE positional_or_automatic = \"either\" AND count_rectified = \"no\" AND opponents = \"either\""
} |
### INSTRUCTION
What is the average total number of passengers of airports that are associated with aircraft "Robinson R-22"?
### INPUT
CREATE TABLE airport (Total_Passengers INTEGER, Airport_ID VARCHAR); CREATE TABLE aircraft (Aircraft_ID VARCHAR, Aircraft VARCHAR); CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR)
### OUTPUT
SELECT AVG(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T1.Aircraft = "Robinson R-22" | {
"input": "CREATE TABLE airport (Total_Passengers INTEGER, Airport_ID VARCHAR); CREATE TABLE aircraft (Aircraft_ID VARCHAR, Aircraft VARCHAR); CREATE TABLE airport_aircraft (Aircraft_ID VARCHAR, Airport_ID VARCHAR)",
"instruction": "What is the average total number of passengers of airports that are associated with aircraft \"Robinson R-22\"?",
"output": "SELECT AVG(T3.Total_Passengers) FROM aircraft AS T1 JOIN airport_aircraft AS T2 ON T1.Aircraft_ID = T2.Aircraft_ID JOIN airport AS T3 ON T2.Airport_ID = T3.Airport_ID WHERE T1.Aircraft = \"Robinson R-22\""
} |
### INSTRUCTION
What was the maximum speed for straight-4, 1.466 cc Type r 150?
### INPUT
CREATE TABLE table_name_60 (vmax VARCHAR, type VARCHAR, cylinder VARCHAR, capacity VARCHAR)
### OUTPUT
SELECT vmax FROM table_name_60 WHERE cylinder = "straight-4" AND capacity = "1.466 cc" AND type = "r 150" | {
"input": "CREATE TABLE table_name_60 (vmax VARCHAR, type VARCHAR, cylinder VARCHAR, capacity VARCHAR)",
"instruction": "What was the maximum speed for straight-4, 1.466 cc Type r 150?",
"output": "SELECT vmax FROM table_name_60 WHERE cylinder = \"straight-4\" AND capacity = \"1.466 cc\" AND type = \"r 150\""
} |
### INSTRUCTION
What year was stage 8 reached?
### INPUT
CREATE TABLE table_name_54 (year VARCHAR, stages VARCHAR)
### OUTPUT
SELECT year FROM table_name_54 WHERE stages = "8" | {
"input": "CREATE TABLE table_name_54 (year VARCHAR, stages VARCHAR)",
"instruction": "What year was stage 8 reached?",
"output": "SELECT year FROM table_name_54 WHERE stages = \"8\""
} |
### INSTRUCTION
Which township has a longitude of -98.741656?
### INPUT
CREATE TABLE table_18600760_12 (township VARCHAR, longitude VARCHAR)
### OUTPUT
SELECT township FROM table_18600760_12 WHERE longitude = "-98.741656" | {
"input": "CREATE TABLE table_18600760_12 (township VARCHAR, longitude VARCHAR)",
"instruction": "Which township has a longitude of -98.741656?",
"output": "SELECT township FROM table_18600760_12 WHERE longitude = \"-98.741656\""
} |
### INSTRUCTION
When were the successor/s seated for Ohio 10th?
### INPUT
CREATE TABLE table_2417345_4 (date_successor_seated VARCHAR, district VARCHAR)
### OUTPUT
SELECT date_successor_seated FROM table_2417345_4 WHERE district = "Ohio 10th" | {
"input": "CREATE TABLE table_2417345_4 (date_successor_seated VARCHAR, district VARCHAR)",
"instruction": "When were the successor/s seated for Ohio 10th?",
"output": "SELECT date_successor_seated FROM table_2417345_4 WHERE district = \"Ohio 10th\""
} |
### INSTRUCTION
What Japanese title had average ratings at 9.1%?
### INPUT
CREATE TABLE table_name_67 (japanese_title VARCHAR, average_ratings VARCHAR)
### OUTPUT
SELECT japanese_title FROM table_name_67 WHERE average_ratings = "9.1%" | {
"input": "CREATE TABLE table_name_67 (japanese_title VARCHAR, average_ratings VARCHAR)",
"instruction": "What Japanese title had average ratings at 9.1%?",
"output": "SELECT japanese_title FROM table_name_67 WHERE average_ratings = \"9.1%\""
} |
### INSTRUCTION
What date was the Monsanto open located in Florida?
### INPUT
CREATE TABLE table_name_58 (date VARCHAR, location VARCHAR, tournament VARCHAR)
### OUTPUT
SELECT date FROM table_name_58 WHERE location = "florida" AND tournament = "monsanto open" | {
"input": "CREATE TABLE table_name_58 (date VARCHAR, location VARCHAR, tournament VARCHAR)",
"instruction": "What date was the Monsanto open located in Florida?",
"output": "SELECT date FROM table_name_58 WHERE location = \"florida\" AND tournament = \"monsanto open\""
} |
### INSTRUCTION
What is the playoff result when the league is USISL and the regular season record is 1st, pacific.
### INPUT
CREATE TABLE table_1427998_1 (playoffs VARCHAR, league VARCHAR, regular_season VARCHAR)
### OUTPUT
SELECT playoffs FROM table_1427998_1 WHERE league = "USISL" AND regular_season = "1st, Pacific" | {
"input": "CREATE TABLE table_1427998_1 (playoffs VARCHAR, league VARCHAR, regular_season VARCHAR)",
"instruction": "What is the playoff result when the league is USISL and the regular season record is 1st, pacific.",
"output": "SELECT playoffs FROM table_1427998_1 WHERE league = \"USISL\" AND regular_season = \"1st, Pacific\""
} |
### INSTRUCTION
Show the date of the transcript which shows the least number of results, also list the id.
### INPUT
CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR)
### OUTPUT
SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY COUNT(*) LIMIT 1 | {
"input": "CREATE TABLE Transcript_Contents (transcript_id VARCHAR); CREATE TABLE Transcripts (transcript_date VARCHAR, transcript_id VARCHAR)",
"instruction": "Show the date of the transcript which shows the least number of results, also list the id.",
"output": "SELECT T2.transcript_date, T1.transcript_id FROM Transcript_Contents AS T1 JOIN Transcripts AS T2 ON T1.transcript_id = T2.transcript_id GROUP BY T1.transcript_id ORDER BY COUNT(*) LIMIT 1"
} |
### INSTRUCTION
What is the highest championship that has 1 as the league cup, and 17 as the total?
### INPUT
CREATE TABLE table_name_85 (championship INTEGER, league_cup VARCHAR, total VARCHAR)
### OUTPUT
SELECT MAX(championship) FROM table_name_85 WHERE league_cup = 1 AND total = "17" | {
"input": "CREATE TABLE table_name_85 (championship INTEGER, league_cup VARCHAR, total VARCHAR)",
"instruction": "What is the highest championship that has 1 as the league cup, and 17 as the total?",
"output": "SELECT MAX(championship) FROM table_name_85 WHERE league_cup = 1 AND total = \"17\""
} |
### INSTRUCTION
What was the population in Stanthorpe in the year when the population in Rosenthal was 1548?
### INPUT
CREATE TABLE table_12584173_1 (population__stanthorpe_ INTEGER, population__rosenthal_ VARCHAR)
### OUTPUT
SELECT MAX(population__stanthorpe_) FROM table_12584173_1 WHERE population__rosenthal_ = 1548 | {
"input": "CREATE TABLE table_12584173_1 (population__stanthorpe_ INTEGER, population__rosenthal_ VARCHAR)",
"instruction": "What was the population in Stanthorpe in the year when the population in Rosenthal was 1548?",
"output": "SELECT MAX(population__stanthorpe_) FROM table_12584173_1 WHERE population__rosenthal_ = 1548"
} |
### INSTRUCTION
What is the description of the service type which offers both the photo product and the film product?
### INPUT
CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR); CREATE TABLE Services (Service_Type_Code VARCHAR, Product_Name VARCHAR)
### OUTPUT
SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'photo' INTERSECT SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'film' | {
"input": "CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR); CREATE TABLE Services (Service_Type_Code VARCHAR, Product_Name VARCHAR)",
"instruction": "What is the description of the service type which offers both the photo product and the film product?",
"output": "SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'photo' INTERSECT SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Name = 'film'"
} |
### INSTRUCTION
What is the D43 associated with a D41 of r 16?
### INPUT
CREATE TABLE table_name_92 (d_43 VARCHAR, d_41 VARCHAR)
### OUTPUT
SELECT d_43 FROM table_name_92 WHERE d_41 = "r 16" | {
"input": "CREATE TABLE table_name_92 (d_43 VARCHAR, d_41 VARCHAR)",
"instruction": "What is the D43 associated with a D41 of r 16?",
"output": "SELECT d_43 FROM table_name_92 WHERE d_41 = \"r 16\""
} |
### INSTRUCTION
When the Winning is 71-71-70-69=281, what is the To par?
### INPUT
CREATE TABLE table_name_7 (to_par VARCHAR, winning_score VARCHAR)
### OUTPUT
SELECT to_par FROM table_name_7 WHERE winning_score = 71 - 71 - 70 - 69 = 281 | {
"input": "CREATE TABLE table_name_7 (to_par VARCHAR, winning_score VARCHAR)",
"instruction": "When the Winning is 71-71-70-69=281, what is the To par?",
"output": "SELECT to_par FROM table_name_7 WHERE winning_score = 71 - 71 - 70 - 69 = 281"
} |
### INSTRUCTION
What is the service chage of the boat howitzers with a 12-pdr light destination?
### INPUT
CREATE TABLE table_name_42 (service_charge VARCHAR, designation VARCHAR)
### OUTPUT
SELECT service_charge FROM table_name_42 WHERE designation = "12-pdr light" | {
"input": "CREATE TABLE table_name_42 (service_charge VARCHAR, designation VARCHAR)",
"instruction": "What is the service chage of the boat howitzers with a 12-pdr light destination?",
"output": "SELECT service_charge FROM table_name_42 WHERE designation = \"12-pdr light\""
} |
### INSTRUCTION
Show the names of players coached by the rank 1 coach.
### INPUT
CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR); CREATE TABLE coach (Coach_ID VARCHAR, Rank VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR)
### OUTPUT
SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T2.Rank = 1 | {
"input": "CREATE TABLE player (Player_name VARCHAR, Player_ID VARCHAR); CREATE TABLE coach (Coach_ID VARCHAR, Rank VARCHAR); CREATE TABLE player_coach (Coach_ID VARCHAR, Player_ID VARCHAR)",
"instruction": "Show the names of players coached by the rank 1 coach.",
"output": "SELECT T3.Player_name FROM player_coach AS T1 JOIN coach AS T2 ON T1.Coach_ID = T2.Coach_ID JOIN player AS T3 ON T1.Player_ID = T3.Player_ID WHERE T2.Rank = 1"
} |
### INSTRUCTION
What type of song is larger than 8 and named 實情?
### INPUT
CREATE TABLE table_name_50 (kind_of_the_song VARCHAR, number VARCHAR, name_of_the_song VARCHAR)
### OUTPUT
SELECT kind_of_the_song FROM table_name_50 WHERE number > 8 AND name_of_the_song = "實情" | {
"input": "CREATE TABLE table_name_50 (kind_of_the_song VARCHAR, number VARCHAR, name_of_the_song VARCHAR)",
"instruction": "What type of song is larger than 8 and named 實情?",
"output": "SELECT kind_of_the_song FROM table_name_50 WHERE number > 8 AND name_of_the_song = \"實情\""
} |
### INSTRUCTION
What is the black caribbean population when the black African population is less than 10552.0?
### INPUT
CREATE TABLE table_19149550_7 (black_caribbean_population INTEGER, black_african_population INTEGER)
### OUTPUT
SELECT MIN(black_caribbean_population) FROM table_19149550_7 WHERE black_african_population < 10552.0 | {
"input": "CREATE TABLE table_19149550_7 (black_caribbean_population INTEGER, black_african_population INTEGER)",
"instruction": "What is the black caribbean population when the black African population is less than 10552.0?",
"output": "SELECT MIN(black_caribbean_population) FROM table_19149550_7 WHERE black_african_population < 10552.0"
} |
### INSTRUCTION
Which Grid has a Rider of randy de puniet, and Laps smaller than 24?
### INPUT
CREATE TABLE table_name_11 (grid INTEGER, rider VARCHAR, laps VARCHAR)
### OUTPUT
SELECT MAX(grid) FROM table_name_11 WHERE rider = "randy de puniet" AND laps < 24 | {
"input": "CREATE TABLE table_name_11 (grid INTEGER, rider VARCHAR, laps VARCHAR)",
"instruction": "Which Grid has a Rider of randy de puniet, and Laps smaller than 24?",
"output": "SELECT MAX(grid) FROM table_name_11 WHERE rider = \"randy de puniet\" AND laps < 24"
} |
### INSTRUCTION
How many laps have a race time of 3:31:24?
### INPUT
CREATE TABLE table_2226343_1 (laps VARCHAR, race_time VARCHAR)
### OUTPUT
SELECT laps FROM table_2226343_1 WHERE race_time = "3:31:24" | {
"input": "CREATE TABLE table_2226343_1 (laps VARCHAR, race_time VARCHAR)",
"instruction": "How many laps have a race time of 3:31:24?",
"output": "SELECT laps FROM table_2226343_1 WHERE race_time = \"3:31:24\""
} |
### INSTRUCTION
What is the location of Blanca Peak?
### INPUT
CREATE TABLE table_name_77 (location VARCHAR, mountain_peak VARCHAR)
### OUTPUT
SELECT location FROM table_name_77 WHERE mountain_peak = "blanca peak" | {
"input": "CREATE TABLE table_name_77 (location VARCHAR, mountain_peak VARCHAR)",
"instruction": "What is the location of Blanca Peak?",
"output": "SELECT location FROM table_name_77 WHERE mountain_peak = \"blanca peak\""
} |
### INSTRUCTION
Location of the school with the nickname Mountaineers
### INPUT
CREATE TABLE table_16432543_1 (location VARCHAR, nickname VARCHAR)
### OUTPUT
SELECT location FROM table_16432543_1 WHERE nickname = "Mountaineers" | {
"input": "CREATE TABLE table_16432543_1 (location VARCHAR, nickname VARCHAR)",
"instruction": "Location of the school with the nickname Mountaineers",
"output": "SELECT location FROM table_16432543_1 WHERE nickname = \"Mountaineers\""
} |
### INSTRUCTION
Which Body Length/mm has a Lead Pitch/mm smaller than 0.5?
### INPUT
CREATE TABLE table_name_9 (body_length_mm INTEGER, lead_pitch_mm INTEGER)
### OUTPUT
SELECT AVG(body_length_mm) FROM table_name_9 WHERE lead_pitch_mm < 0.5 | {
"input": "CREATE TABLE table_name_9 (body_length_mm INTEGER, lead_pitch_mm INTEGER)",
"instruction": "Which Body Length/mm has a Lead Pitch/mm smaller than 0.5?",
"output": "SELECT AVG(body_length_mm) FROM table_name_9 WHERE lead_pitch_mm < 0.5"
} |
### INSTRUCTION
Find the physician who was trained in the most expensive procedure?
### INPUT
CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE procedures (code VARCHAR, cost VARCHAR)
### OUTPUT
SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment ORDER BY T3.cost DESC LIMIT 1 | {
"input": "CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE physician (name VARCHAR, employeeid VARCHAR); CREATE TABLE procedures (code VARCHAR, cost VARCHAR)",
"instruction": "Find the physician who was trained in the most expensive procedure?",
"output": "SELECT T1.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment ORDER BY T3.cost DESC LIMIT 1"
} |
### INSTRUCTION
How many tracks are in the AAC audio file media type?
### INPUT
CREATE TABLE MEDIATYPE (MediaTypeId VARCHAR, Name VARCHAR); CREATE TABLE TRACK (MediaTypeId VARCHAR)
### OUTPUT
SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = "AAC audio file" | {
"input": "CREATE TABLE MEDIATYPE (MediaTypeId VARCHAR, Name VARCHAR); CREATE TABLE TRACK (MediaTypeId VARCHAR)",
"instruction": "How many tracks are in the AAC audio file media type?",
"output": "SELECT COUNT(*) FROM MEDIATYPE AS T1 JOIN TRACK AS T2 ON T1.MediaTypeId = T2.MediaTypeId WHERE T1.Name = \"AAC audio file\""
} |
### INSTRUCTION
How many average points did the team Minardi Team USA have when there was a grid 3 and more laps than 68?
### INPUT
CREATE TABLE table_name_21 (points INTEGER, laps VARCHAR, team VARCHAR, grid VARCHAR)
### OUTPUT
SELECT AVG(points) FROM table_name_21 WHERE team = "minardi team usa" AND grid = 3 AND laps > 68 | {
"input": "CREATE TABLE table_name_21 (points INTEGER, laps VARCHAR, team VARCHAR, grid VARCHAR)",
"instruction": "How many average points did the team Minardi Team USA have when there was a grid 3 and more laps than 68?",
"output": "SELECT AVG(points) FROM table_name_21 WHERE team = \"minardi team usa\" AND grid = 3 AND laps > 68"
} |
### INSTRUCTION
What is the name of the venue when the score was 5–0, and a Competition of 2007 caribbean cup qualifier?
### INPUT
CREATE TABLE table_name_21 (venue VARCHAR, score VARCHAR, competition VARCHAR)
### OUTPUT
SELECT venue FROM table_name_21 WHERE score = "5–0" AND competition = "2007 caribbean cup qualifier" | {
"input": "CREATE TABLE table_name_21 (venue VARCHAR, score VARCHAR, competition VARCHAR)",
"instruction": "What is the name of the venue when the score was 5–0, and a Competition of 2007 caribbean cup qualifier?",
"output": "SELECT venue FROM table_name_21 WHERE score = \"5–0\" AND competition = \"2007 caribbean cup qualifier\""
} |
### INSTRUCTION
Name the location for democratic méga-plex taschereau imax
### INPUT
CREATE TABLE table_2461720_1 (location VARCHAR, theatre_name VARCHAR)
### OUTPUT
SELECT location FROM table_2461720_1 WHERE theatre_name = "Méga-Plex Taschereau IMAX" | {
"input": "CREATE TABLE table_2461720_1 (location VARCHAR, theatre_name VARCHAR)",
"instruction": "Name the location for democratic méga-plex taschereau imax",
"output": "SELECT location FROM table_2461720_1 WHERE theatre_name = \"Méga-Plex Taschereau IMAX\""
} |
### INSTRUCTION
How many points categories are there when the losing bonus is 2 and points for are 642?
### INPUT
CREATE TABLE table_17625749_3 (points VARCHAR, losing_bonus VARCHAR, points_for VARCHAR)
### OUTPUT
SELECT COUNT(points) FROM table_17625749_3 WHERE losing_bonus = "2" AND points_for = "642" | {
"input": "CREATE TABLE table_17625749_3 (points VARCHAR, losing_bonus VARCHAR, points_for VARCHAR)",
"instruction": "How many points categories are there when the losing bonus is 2 and points for are 642?",
"output": "SELECT COUNT(points) FROM table_17625749_3 WHERE losing_bonus = \"2\" AND points_for = \"642\""
} |
### INSTRUCTION
In what year was the number of attempts 888?
### INPUT
CREATE TABLE table_name_96 (year VARCHAR, attempts VARCHAR)
### OUTPUT
SELECT year FROM table_name_96 WHERE attempts = "888" | {
"input": "CREATE TABLE table_name_96 (year VARCHAR, attempts VARCHAR)",
"instruction": "In what year was the number of attempts 888?",
"output": "SELECT year FROM table_name_96 WHERE attempts = \"888\""
} |
### INSTRUCTION
Which Round is the highest one that has a College/Junior/Club Team (League) of torpedo yaroslavl (rus)?
### INPUT
CREATE TABLE table_name_10 (round INTEGER, college_junior_club_team__league_ VARCHAR)
### OUTPUT
SELECT MAX(round) FROM table_name_10 WHERE college_junior_club_team__league_ = "torpedo yaroslavl (rus)" | {
"input": "CREATE TABLE table_name_10 (round INTEGER, college_junior_club_team__league_ VARCHAR)",
"instruction": "Which Round is the highest one that has a College/Junior/Club Team (League) of torpedo yaroslavl (rus)?",
"output": "SELECT MAX(round) FROM table_name_10 WHERE college_junior_club_team__league_ = \"torpedo yaroslavl (rus)\""
} |
### INSTRUCTION
Which game has a high rebound of Evans (7) and a high assist of Evans, Ollie (3)?
### INPUT
CREATE TABLE table_name_11 (game INTEGER, high_rebounds VARCHAR, high_assists VARCHAR)
### OUTPUT
SELECT MAX(game) FROM table_name_11 WHERE high_rebounds = "evans (7)" AND high_assists = "evans, ollie (3)" | {
"input": "CREATE TABLE table_name_11 (game INTEGER, high_rebounds VARCHAR, high_assists VARCHAR)",
"instruction": "Which game has a high rebound of Evans (7) and a high assist of Evans, Ollie (3)?",
"output": "SELECT MAX(game) FROM table_name_11 WHERE high_rebounds = \"evans (7)\" AND high_assists = \"evans, ollie (3)\""
} |
### INSTRUCTION
Find all the forenames of distinct drivers who won in position 1 as driver standing and had more than 20 points?
### INPUT
CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR); CREATE TABLE driverstandings (driverid VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR)
### OUTPUT
SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20 | {
"input": "CREATE TABLE drivers (forename VARCHAR, driverid VARCHAR); CREATE TABLE driverstandings (driverid VARCHAR, points VARCHAR, position VARCHAR, wins VARCHAR)",
"instruction": "Find all the forenames of distinct drivers who won in position 1 as driver standing and had more than 20 points?",
"output": "SELECT DISTINCT T1.forename FROM drivers AS T1 JOIN driverstandings AS T2 ON T1.driverid = T2.driverid WHERE T2.position = 1 AND T2.wins = 1 AND T2.points > 20"
} |
### INSTRUCTION
Mortlake club has more than 924 against, less than 14 losses, and how many total draws?
### INPUT
CREATE TABLE table_name_66 (draws VARCHAR, losses VARCHAR, against VARCHAR, club VARCHAR)
### OUTPUT
SELECT COUNT(draws) FROM table_name_66 WHERE against > 924 AND club = "mortlake" AND losses < 14 | {
"input": "CREATE TABLE table_name_66 (draws VARCHAR, losses VARCHAR, against VARCHAR, club VARCHAR)",
"instruction": "Mortlake club has more than 924 against, less than 14 losses, and how many total draws?",
"output": "SELECT COUNT(draws) FROM table_name_66 WHERE against > 924 AND club = \"mortlake\" AND losses < 14"
} |
### INSTRUCTION
What is the total area with the census ranking of 3,129 of 5,008, and a Population smaller than 460?
### INPUT
CREATE TABLE table_name_60 (area_km_2 VARCHAR, census_ranking VARCHAR, population VARCHAR)
### OUTPUT
SELECT COUNT(area_km_2) FROM table_name_60 WHERE census_ranking = "3,129 of 5,008" AND population < 460 | {
"input": "CREATE TABLE table_name_60 (area_km_2 VARCHAR, census_ranking VARCHAR, population VARCHAR)",
"instruction": "What is the total area with the census ranking of 3,129 of 5,008, and a Population smaller than 460?",
"output": "SELECT COUNT(area_km_2) FROM table_name_60 WHERE census_ranking = \"3,129 of 5,008\" AND population < 460"
} |
### INSTRUCTION
If the reader is Syal, Meera Meera Syal, what was the release date?
### INPUT
CREATE TABLE table_20174050_7 (release_date VARCHAR, reader VARCHAR)
### OUTPUT
SELECT release_date FROM table_20174050_7 WHERE reader = "Syal, Meera Meera Syal" | {
"input": "CREATE TABLE table_20174050_7 (release_date VARCHAR, reader VARCHAR)",
"instruction": "If the reader is Syal, Meera Meera Syal, what was the release date?",
"output": "SELECT release_date FROM table_20174050_7 WHERE reader = \"Syal, Meera Meera Syal\""
} |
### INSTRUCTION
Which city does has most number of customers?
### INPUT
CREATE TABLE Customers (customer_address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)
### OUTPUT
SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY COUNT(*) DESC LIMIT 1 | {
"input": "CREATE TABLE Customers (customer_address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)",
"instruction": "Which city does has most number of customers?",
"output": "SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY COUNT(*) DESC LIMIT 1"
} |
### INSTRUCTION
In 2009, what Appearances had a Winning Percentage of less than 0?
### INPUT
CREATE TABLE table_name_30 (appearances INTEGER, season_s_ VARCHAR, winning_percentage VARCHAR)
### OUTPUT
SELECT AVG(appearances) FROM table_name_30 WHERE season_s_ = "2009" AND winning_percentage < 0 | {
"input": "CREATE TABLE table_name_30 (appearances INTEGER, season_s_ VARCHAR, winning_percentage VARCHAR)",
"instruction": "In 2009, what Appearances had a Winning Percentage of less than 0?",
"output": "SELECT AVG(appearances) FROM table_name_30 WHERE season_s_ = \"2009\" AND winning_percentage < 0"
} |
### INSTRUCTION
What's the Place of birth listed that has an Elevator of ALexander III, and an Elector of Ruggiero Di San Severino?
### INPUT
CREATE TABLE table_name_51 (place_of_birth VARCHAR, elevator VARCHAR, elector VARCHAR)
### OUTPUT
SELECT place_of_birth FROM table_name_51 WHERE elevator = "alexander iii" AND elector = "ruggiero di san severino" | {
"input": "CREATE TABLE table_name_51 (place_of_birth VARCHAR, elevator VARCHAR, elector VARCHAR)",
"instruction": "What's the Place of birth listed that has an Elevator of ALexander III, and an Elector of Ruggiero Di San Severino?",
"output": "SELECT place_of_birth FROM table_name_51 WHERE elevator = \"alexander iii\" AND elector = \"ruggiero di san severino\""
} |
### INSTRUCTION
What is the annual inflation % when GDP per capita in ppp US$ is 24505 in 2012?
### INPUT
CREATE TABLE table_1598533_8 (inflation__percentage_annual__2012_ VARCHAR, gdp_per_capita_in_ppp_us$__2012_ VARCHAR)
### OUTPUT
SELECT inflation__percentage_annual__2012_ FROM table_1598533_8 WHERE gdp_per_capita_in_ppp_us$__2012_ = 24505 | {
"input": "CREATE TABLE table_1598533_8 (inflation__percentage_annual__2012_ VARCHAR, gdp_per_capita_in_ppp_us$__2012_ VARCHAR)",
"instruction": "What is the annual inflation % when GDP per capita in ppp US$ is 24505 in 2012?",
"output": "SELECT inflation__percentage_annual__2012_ FROM table_1598533_8 WHERE gdp_per_capita_in_ppp_us$__2012_ = 24505"
} |
### INSTRUCTION
What is the total number of regions where the average family size is 2.8?
### INPUT
CREATE TABLE table_16048129_5 (_percentage_of_total_deportees VARCHAR, average_family_size VARCHAR)
### OUTPUT
SELECT COUNT(_percentage_of_total_deportees) FROM table_16048129_5 WHERE average_family_size = "2.8" | {
"input": "CREATE TABLE table_16048129_5 (_percentage_of_total_deportees VARCHAR, average_family_size VARCHAR)",
"instruction": "What is the total number of regions where the average family size is 2.8?",
"output": "SELECT COUNT(_percentage_of_total_deportees) FROM table_16048129_5 WHERE average_family_size = \"2.8\""
} |
### INSTRUCTION
Which Pop (2010) has an ANSI code smaller than 1036864, and a Longitude larger than -98.46611, and a Land (sqmi) smaller than 36.238, and a Latitude smaller than 48.144102?
### INPUT
CREATE TABLE table_name_21 (pop__2010_ INTEGER, latitude VARCHAR, land___sqmi__ VARCHAR, ansi_code VARCHAR, longitude VARCHAR)
### OUTPUT
SELECT AVG(pop__2010_) FROM table_name_21 WHERE ansi_code < 1036864 AND longitude > -98.46611 AND land___sqmi__ < 36.238 AND latitude < 48.144102 | {
"input": "CREATE TABLE table_name_21 (pop__2010_ INTEGER, latitude VARCHAR, land___sqmi__ VARCHAR, ansi_code VARCHAR, longitude VARCHAR)",
"instruction": "Which Pop (2010) has an ANSI code smaller than 1036864, and a Longitude larger than -98.46611, and a Land (sqmi) smaller than 36.238, and a Latitude smaller than 48.144102?",
"output": "SELECT AVG(pop__2010_) FROM table_name_21 WHERE ansi_code < 1036864 AND longitude > -98.46611 AND land___sqmi__ < 36.238 AND latitude < 48.144102"
} |
### INSTRUCTION
Find the title of courses that have two prerequisites?
### INPUT
CREATE TABLE prereq (course_id VARCHAR); CREATE TABLE course (title VARCHAR, course_id VARCHAR)
### OUTPUT
SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING COUNT(*) = 2 | {
"input": "CREATE TABLE prereq (course_id VARCHAR); CREATE TABLE course (title VARCHAR, course_id VARCHAR)",
"instruction": "Find the title of courses that have two prerequisites?",
"output": "SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id = T2.course_id GROUP BY T2.course_id HAVING COUNT(*) = 2"
} |
### INSTRUCTION
Name the oberliga hessen for sv sandhausen and fsv salmrohr
### INPUT
CREATE TABLE table_14242137_4 (oberliga_hessen VARCHAR, oberliga_baden_württemberg VARCHAR, oberliga_südwest VARCHAR)
### OUTPUT
SELECT oberliga_hessen FROM table_14242137_4 WHERE oberliga_baden_württemberg = "SV Sandhausen" AND oberliga_südwest = "FSV Salmrohr" | {
"input": "CREATE TABLE table_14242137_4 (oberliga_hessen VARCHAR, oberliga_baden_württemberg VARCHAR, oberliga_südwest VARCHAR)",
"instruction": "Name the oberliga hessen for sv sandhausen and fsv salmrohr",
"output": "SELECT oberliga_hessen FROM table_14242137_4 WHERE oberliga_baden_württemberg = \"SV Sandhausen\" AND oberliga_südwest = \"FSV Salmrohr\""
} |
### INSTRUCTION
When the division is Division 2 men what is the champion score?
### INPUT
CREATE TABLE table_15161170_1 (champion_score VARCHAR, division VARCHAR)
### OUTPUT
SELECT champion_score FROM table_15161170_1 WHERE division = "division 2 Men" | {
"input": "CREATE TABLE table_15161170_1 (champion_score VARCHAR, division VARCHAR)",
"instruction": "When the division is Division 2 men what is the champion score?",
"output": "SELECT champion_score FROM table_15161170_1 WHERE division = \"division 2 Men\""
} |
### INSTRUCTION
What was Galatasaray score when when he won in 1990 and Trabzonspor was the runner-up?
### INPUT
CREATE TABLE table_name_24 (score VARCHAR, year VARCHAR, winners VARCHAR, runners_up VARCHAR)
### OUTPUT
SELECT score FROM table_name_24 WHERE winners = "galatasaray" AND runners_up = "trabzonspor" AND year = 1990 | {
"input": "CREATE TABLE table_name_24 (score VARCHAR, year VARCHAR, winners VARCHAR, runners_up VARCHAR)",
"instruction": "What was Galatasaray score when when he won in 1990 and Trabzonspor was the runner-up?",
"output": "SELECT score FROM table_name_24 WHERE winners = \"galatasaray\" AND runners_up = \"trabzonspor\" AND year = 1990"
} |
### INSTRUCTION
What is the name of the diety for the river of sone?
### INPUT
CREATE TABLE table_name_16 (name_of_deity VARCHAR, name_of_the_river VARCHAR)
### OUTPUT
SELECT name_of_deity FROM table_name_16 WHERE name_of_the_river = "sone" | {
"input": "CREATE TABLE table_name_16 (name_of_deity VARCHAR, name_of_the_river VARCHAR)",
"instruction": "What is the name of the diety for the river of sone?",
"output": "SELECT name_of_deity FROM table_name_16 WHERE name_of_the_river = \"sone\""
} |
### INSTRUCTION
How many circuits had a winning team of #1 patrón highcroft racing ang gtc winning team #81 alex job racing ?
### INPUT
CREATE TABLE table_24037660_2 (circuit VARCHAR, lmp_winning_team VARCHAR, gtc_winning_team VARCHAR)
### OUTPUT
SELECT COUNT(circuit) FROM table_24037660_2 WHERE lmp_winning_team = "#1 Patrón Highcroft Racing" AND gtc_winning_team = "#81 Alex Job Racing" | {
"input": "CREATE TABLE table_24037660_2 (circuit VARCHAR, lmp_winning_team VARCHAR, gtc_winning_team VARCHAR)",
"instruction": "How many circuits had a winning team of #1 patrón highcroft racing ang gtc winning team #81 alex job racing ?",
"output": "SELECT COUNT(circuit) FROM table_24037660_2 WHERE lmp_winning_team = \"#1 Patrón Highcroft Racing\" AND gtc_winning_team = \"#81 Alex Job Racing\""
} |
### INSTRUCTION
What is the total rank and fc notes from South Africa?
### INPUT
CREATE TABLE table_name_24 (rank VARCHAR, notes VARCHAR, country VARCHAR)
### OUTPUT
SELECT COUNT(rank) FROM table_name_24 WHERE notes = "fc" AND country = "south africa" | {
"input": "CREATE TABLE table_name_24 (rank VARCHAR, notes VARCHAR, country VARCHAR)",
"instruction": "What is the total rank and fc notes from South Africa?",
"output": "SELECT COUNT(rank) FROM table_name_24 WHERE notes = \"fc\" AND country = \"south africa\""
} |
### INSTRUCTION
Find Alice's friends of friends.
### INPUT
CREATE TABLE PersonFriend (name VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)
### OUTPUT
SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name = T2.name JOIN PersonFriend AS T3 ON T1.friend = T3.name JOIN PersonFriend AS T4 ON T3.friend = T4.name WHERE T2.name = 'Alice' AND T4.name <> 'Alice' | {
"input": "CREATE TABLE PersonFriend (name VARCHAR); CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (name VARCHAR)",
"instruction": "Find Alice's friends of friends.",
"output": "SELECT DISTINCT T4.name FROM PersonFriend AS T1 JOIN Person AS T2 ON T1.name = T2.name JOIN PersonFriend AS T3 ON T1.friend = T3.name JOIN PersonFriend AS T4 ON T3.friend = T4.name WHERE T2.name = 'Alice' AND T4.name <> 'Alice'"
} |
### INSTRUCTION
What is the location of the game that has a number smaller than 2?
### INPUT
CREATE TABLE table_name_68 (location VARCHAR, game INTEGER)
### OUTPUT
SELECT location FROM table_name_68 WHERE game < 2 | {
"input": "CREATE TABLE table_name_68 (location VARCHAR, game INTEGER)",
"instruction": "What is the location of the game that has a number smaller than 2?",
"output": "SELECT location FROM table_name_68 WHERE game < 2"
} |
### INSTRUCTION
Show the names of companies and the number of employees they have
### INPUT
CREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE people (People_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR)
### OUTPUT
SELECT T3.Name, COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID GROUP BY T3.Name | {
"input": "CREATE TABLE company (Name VARCHAR, Company_ID VARCHAR); CREATE TABLE people (People_ID VARCHAR); CREATE TABLE employment (People_ID VARCHAR, Company_ID VARCHAR)",
"instruction": "Show the names of companies and the number of employees they have",
"output": "SELECT T3.Name, COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID GROUP BY T3.Name"
} |
### INSTRUCTION
What's the Time/Retired of Laps of 75?
### INPUT
CREATE TABLE table_name_59 (time_retired VARCHAR, laps VARCHAR)
### OUTPUT
SELECT time_retired FROM table_name_59 WHERE laps = 75 | {
"input": "CREATE TABLE table_name_59 (time_retired VARCHAR, laps VARCHAR)",
"instruction": "What's the Time/Retired of Laps of 75?",
"output": "SELECT time_retired FROM table_name_59 WHERE laps = 75"
} |
### INSTRUCTION
How many players were drafted from the Boston Cannons in the round?
### INPUT
CREATE TABLE table_name_74 (round INTEGER, team VARCHAR)
### OUTPUT
SELECT SUM(round) FROM table_name_74 WHERE team = "boston cannons" | {
"input": "CREATE TABLE table_name_74 (round INTEGER, team VARCHAR)",
"instruction": "How many players were drafted from the Boston Cannons in the round?",
"output": "SELECT SUM(round) FROM table_name_74 WHERE team = \"boston cannons\""
} |
### INSTRUCTION
When Margaret Ann Bayot won binibining pilipinas-international, how many winners of Miss Universe Philippines were there?
### INPUT
CREATE TABLE table_1825751_4 (miss_universe_philippines VARCHAR, binibining_pilipinas_international VARCHAR)
### OUTPUT
SELECT COUNT(miss_universe_philippines) FROM table_1825751_4 WHERE binibining_pilipinas_international = "Margaret Ann Bayot" | {
"input": "CREATE TABLE table_1825751_4 (miss_universe_philippines VARCHAR, binibining_pilipinas_international VARCHAR)",
"instruction": "When Margaret Ann Bayot won binibining pilipinas-international, how many winners of Miss Universe Philippines were there?",
"output": "SELECT COUNT(miss_universe_philippines) FROM table_1825751_4 WHERE binibining_pilipinas_international = \"Margaret Ann Bayot\""
} |
### INSTRUCTION
I want to know the total for silver more than 0 with bronze more than 21 and gold more than 29
### INPUT
CREATE TABLE table_name_74 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR)
### OUTPUT
SELECT COUNT(total) FROM table_name_74 WHERE silver > 0 AND bronze > 21 AND gold > 29 | {
"input": "CREATE TABLE table_name_74 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR)",
"instruction": "I want to know the total for silver more than 0 with bronze more than 21 and gold more than 29",
"output": "SELECT COUNT(total) FROM table_name_74 WHERE silver > 0 AND bronze > 21 AND gold > 29"
} |
### INSTRUCTION
What is the max pressure of the cartridge where the muzzle energy is 201ft•lbf (273 j)?
### INPUT
CREATE TABLE table_173103_1 (max_pressure VARCHAR, muzzle_energy VARCHAR)
### OUTPUT
SELECT max_pressure FROM table_173103_1 WHERE muzzle_energy = "201ft•lbf (273 J)" | {
"input": "CREATE TABLE table_173103_1 (max_pressure VARCHAR, muzzle_energy VARCHAR)",
"instruction": "What is the max pressure of the cartridge where the muzzle energy is 201ft•lbf (273 j)?",
"output": "SELECT max_pressure FROM table_173103_1 WHERE muzzle_energy = \"201ft•lbf (273 J)\""
} |
### INSTRUCTION
What is the average of lost for place less than 10, less than 23 points, and goals conceded less than 26 for the Chorrillo team?
### INPUT
CREATE TABLE table_name_21 (lost INTEGER, goals_conceded VARCHAR, team VARCHAR, place VARCHAR, points VARCHAR)
### OUTPUT
SELECT AVG(lost) FROM table_name_21 WHERE place < 10 AND points < 23 AND team = "chorrillo" AND goals_conceded < 26 | {
"input": "CREATE TABLE table_name_21 (lost INTEGER, goals_conceded VARCHAR, team VARCHAR, place VARCHAR, points VARCHAR)",
"instruction": "What is the average of lost for place less than 10, less than 23 points, and goals conceded less than 26 for the Chorrillo team?",
"output": "SELECT AVG(lost) FROM table_name_21 WHERE place < 10 AND points < 23 AND team = \"chorrillo\" AND goals_conceded < 26"
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.