messages listlengths 3 3 |
|---|
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE votes (contestant_number VARCHAR); CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR)",
"role": "system"
},
{
"content": "What are the contestant numbers and names of the contestants who had at least two votes?",
"role": "user"
},
{
"content": "SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number HAVING COUNT(*) >= 2",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (games VARCHAR, lost VARCHAR, goalsfor VARCHAR)",
"role": "system"
},
{
"content": "Lost of 42, and a Goalsfor larger than 195 contains how many number of games?",
"role": "user"
},
{
"content": "SELECT COUNT(games) FROM table_name_43 WHERE lost = 42 AND goalsfor > 195",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE department (dept_name VARCHAR); CREATE TABLE student (id VARCHAR, dept_name VARCHAR); CREATE TABLE instructor (dept_name VARCHAR, id VARCHAR)",
"role": "system"
},
{
"content": "Find the total number of students and total number of instructors for each department.",
"role": "user"
},
{
"content": "SELECT COUNT(DISTINCT T2.id), COUNT(DISTINCT T3.id), T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name = T2.dept_name JOIN instructor AS T3 ON T1.dept_name = T3.dept_name GROUP BY T3.dept_name",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (date VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What date did the opponent George Khrikadze play?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_97 WHERE opponent = \"george khrikadze\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (season VARCHAR, round VARCHAR, club VARCHAR)",
"role": "system"
},
{
"content": "In what season did the Sporting CP Club have a 1. round?",
"role": "user"
},
{
"content": "SELECT season FROM table_name_78 WHERE round = \"1. round\" AND club = \"sporting cp\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23392257_4 (original_airdate VARCHAR, _number VARCHAR)",
"role": "system"
},
{
"content": "What date did Episode 22 originally air?",
"role": "user"
},
{
"content": "SELECT COUNT(original_airdate) FROM table_23392257_4 WHERE _number = 22",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_58 (grid INTEGER, constructor VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "When the laps are 31 and the constructor was honda, what's the sum of all grid values?",
"role": "user"
},
{
"content": "SELECT SUM(grid) FROM table_name_58 WHERE constructor = \"honda\" AND laps = 31",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1999350_1 (year INTEGER, open_canada_cup VARCHAR, playoffs VARCHAR, regular_season VARCHAR)",
"role": "system"
},
{
"content": "What is the earliest year where playoffs was \"did not qualify,\" regular season was \"2nd, New England,\" and Open Canada Cup is \"N/A\"?",
"role": "user"
},
{
"content": "SELECT MIN(year) FROM table_1999350_1 WHERE playoffs = \"Did not qualify\" AND regular_season = \"2nd, New England\" AND open_canada_cup = \"N/A\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE vocals (bandmate VARCHAR); CREATE TABLE band (id VARCHAR)",
"role": "system"
},
{
"content": "Which vocal type has the band mate with last name \"Heilo\" played the most?",
"role": "user"
},
{
"content": "SELECT TYPE FROM vocals AS T1 JOIN band AS T2 ON T1.bandmate = T2.id WHERE lastname = \"Heilo\" GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (attendance_g INTEGER, tms INTEGER)",
"role": "system"
},
{
"content": "What was Attendance/G with Tms more than 18?",
"role": "user"
},
{
"content": "SELECT AVG(attendance_g) FROM table_name_48 WHERE tms > 18",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE store_district (store_id VARCHAR); CREATE TABLE district (district_id VARCHAR, city_population VARCHAR); CREATE TABLE store (store_name VARCHAR, store_id VARCHAR)",
"role": "system"
},
{
"content": "Find all the stores in the district with the most population.",
"role": "user"
},
{
"content": "SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id WHERE district_id = (SELECT district_id FROM district ORDER BY city_population DESC LIMIT 1)",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_56 (english_title VARCHAR, role VARCHAR)",
"role": "system"
},
{
"content": "What is the English of chae soo-yeon?",
"role": "user"
},
{
"content": "SELECT english_title FROM table_name_56 WHERE role = \"chae soo-yeon\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2562572_30 (type VARCHAR, settlement VARCHAR)",
"role": "system"
},
{
"content": "What type of settlement is rabe?",
"role": "user"
},
{
"content": "SELECT type FROM table_2562572_30 WHERE settlement = \"Rabe\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_45 (silver INTEGER, rank VARCHAR, bronze VARCHAR, gold VARCHAR)",
"role": "system"
},
{
"content": "How many silver for rank 22 when gold count was more than 0 and Bronze count was less than 5?",
"role": "user"
},
{
"content": "SELECT SUM(silver) FROM table_name_45 WHERE bronze < 5 AND gold > 0 AND rank = \"22\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22464685_1 (author VARCHAR, transliteration VARCHAR)",
"role": "system"
},
{
"content": "who is the auther when the transliteration is lasha-giorgis droindeli matiane?",
"role": "user"
},
{
"content": "SELECT author FROM table_22464685_1 WHERE transliteration = \"lasha-giorgis droindeli matiane\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (position VARCHAR, surname VARCHAR)",
"role": "system"
},
{
"content": "Which Position has a Surname of naylor?",
"role": "user"
},
{
"content": "SELECT position FROM table_name_78 WHERE surname = \"naylor\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2362606_1 (score_in_final VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What was the score in the final in 1988?",
"role": "user"
},
{
"content": "SELECT score_in_final FROM table_2362606_1 WHERE year = 1988",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1233808_2 (opponent VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent during the biggest defeat?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_1233808_2 WHERE record = \"Biggest defeat\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (score VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "What is the score of the game with a tie no of 3?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_14 WHERE tie_no = \"3\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (opponents VARCHAR, year VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "Which Opponents have a Year of 1999–2000, and a Team of leeds united?",
"role": "user"
},
{
"content": "SELECT opponents FROM table_name_78 WHERE year = \"1999–2000\" AND team = \"leeds united\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (player VARCHAR, to_par VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "which Player has a To par of –7, and a Country of spain?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_67 WHERE to_par = \"–7\" AND country = \"spain\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (draw__pe_ INTEGER, team__equipo_ VARCHAR, won__pg_ VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of the pe draw of team plaza amador, who has less than 6 pg won?",
"role": "user"
},
{
"content": "SELECT SUM(draw__pe_) FROM table_name_28 WHERE team__equipo_ = \"plaza amador\" AND won__pg_ < 6",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2897457_1 (pick__number VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "What draft pick is a goaltender?",
"role": "user"
},
{
"content": "SELECT pick__number FROM table_2897457_1 WHERE position = \"Goaltender\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (pick__number INTEGER, college VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of Pick #, when College is Laurier?",
"role": "user"
},
{
"content": "SELECT SUM(pick__number) FROM table_name_79 WHERE college = \"laurier\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_14 (grid VARCHAR, rider VARCHAR)",
"role": "system"
},
{
"content": "Tell me the total number of grid for rider of james toseland",
"role": "user"
},
{
"content": "SELECT COUNT(grid) FROM table_name_14 WHERE rider = \"james toseland\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_45 (score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the Score on October 7, 2000?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_45 WHERE date = \"october 7, 2000\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1315616_1 (mediator VARCHAR, kōhaku__number VARCHAR)",
"role": "system"
},
{
"content": "Who was the mediator in kōhaku number 53?",
"role": "user"
},
{
"content": "SELECT mediator FROM table_1315616_1 WHERE kōhaku__number = 53",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (result VARCHAR, tournament VARCHAR, year VARCHAR, white VARCHAR)",
"role": "system"
},
{
"content": "What is Result, when Year is greater than 1999, when White is \"Kramnik\", and when Tournament is \"Mainz CC Champions Duel (5)\"?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_77 WHERE year > 1999 AND white = \"kramnik\" AND tournament = \"mainz cc champions duel (5)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (award VARCHAR, result VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Name the award for nominated result and year after 2011",
"role": "user"
},
{
"content": "SELECT award FROM table_name_38 WHERE result = \"nominated\" AND year > 2011",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2622469_1 (wins VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What were the wins of 1983?",
"role": "user"
},
{
"content": "SELECT wins FROM table_2622469_1 WHERE year = 1983",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (date VARCHAR, home VARCHAR)",
"role": "system"
},
{
"content": "Which date had the Hornets as the home team?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_53 WHERE home = \"hornets\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (socialist_ticket VARCHAR, american_labor_ticket VARCHAR)",
"role": "system"
},
{
"content": "Which Socialist candidate ran against American Labor candidate Caroline O'Day?",
"role": "user"
},
{
"content": "SELECT socialist_ticket FROM table_name_65 WHERE american_labor_ticket = \"caroline o'day\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_96 (score VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "What is the score of game 21?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_96 WHERE game = 21",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15887683_17 (dar VARCHAR, television_service VARCHAR)",
"role": "system"
},
{
"content": "Name the dar for telenord",
"role": "user"
},
{
"content": "SELECT dar FROM table_15887683_17 WHERE television_service = \"Telenord\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15887683_19 (language VARCHAR, television_service VARCHAR)",
"role": "system"
},
{
"content": "In what laguage was Contotv 5?",
"role": "user"
},
{
"content": "SELECT language FROM table_15887683_19 WHERE television_service = \"ContoTV 5\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_72 (class VARCHAR, year_s__withdrawn VARCHAR, manufacturer VARCHAR, year_made VARCHAR)",
"role": "system"
},
{
"content": "What is the class of the locomotive with an Eastleigh Works manufacturer, made in 1914, and withdrawn in 1959?",
"role": "user"
},
{
"content": "SELECT class FROM table_name_72 WHERE manufacturer = \"eastleigh works\" AND year_made = \"1914\" AND year_s__withdrawn = \"1959\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_70 (drawn VARCHAR, position VARCHAR, points VARCHAR)",
"role": "system"
},
{
"content": "How many Drawn have a Position of 7, and Points larger than 18?",
"role": "user"
},
{
"content": "SELECT COUNT(drawn) FROM table_name_70 WHERE position = 7 AND points > 18",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14966667_19 (name VARCHAR, number VARCHAR)",
"role": "system"
},
{
"content": "who is number 98?",
"role": "user"
},
{
"content": "SELECT name FROM table_14966667_19 WHERE number = \"98\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_45 (Id VARCHAR)",
"role": "system"
},
{
"content": "What is the 2011 total with a 2008 value greater than 346.5, a 2009 value of 392, and a 2010 value bigger than 354.6?",
"role": "user"
},
{
"content": "SELECT COUNT(2011) FROM table_name_45 WHERE 2008 > 346.5 AND 2009 = 392 AND 2010 > 354.6",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11157122_5 (attempts INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "How many attempts did Charles White make?",
"role": "user"
},
{
"content": "SELECT MIN(attempts) FROM table_11157122_5 WHERE player = \"Charles White\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_3 (record VARCHAR, game_site VARCHAR)",
"role": "system"
},
{
"content": "What is the Record with a Game Site that is joe robbie stadium?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_3 WHERE game_site = \"joe robbie stadium\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (year VARCHAR, formula VARCHAR)",
"role": "system"
},
{
"content": "How many years had a formula of Grand Prix?",
"role": "user"
},
{
"content": "SELECT COUNT(year) FROM table_name_46 WHERE formula = \"grand prix\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21535453_1 (brian_moran VARCHAR, source VARCHAR, creigh_deeds VARCHAR)",
"role": "system"
},
{
"content": "What was Brian Moran's tally in the Survey USA poll where Creigh Deeds had 26%?",
"role": "user"
},
{
"content": "SELECT brian_moran FROM table_21535453_1 WHERE source = \"Survey USA\" AND creigh_deeds = \"26%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (country VARCHAR, time VARCHAR)",
"role": "system"
},
{
"content": "What country has a time of 8:03.61?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_61 WHERE time = \"8:03.61\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE country (GovernmentForm VARCHAR)",
"role": "system"
},
{
"content": "How many countries have a republic as their form of government?",
"role": "user"
},
{
"content": "SELECT COUNT(*) FROM country WHERE GovernmentForm = \"Republic\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (opponent VARCHAR, site_stadium VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent at Baum Stadium on April 6?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_90 WHERE site_stadium = \"baum stadium\" AND date = \"april 6\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23281862_5 (score VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "Name the number of score for sacramento",
"role": "user"
},
{
"content": "SELECT COUNT(score) FROM table_23281862_5 WHERE team = \"Sacramento\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (date VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "When did the Browns play the Pittsburgh Steelers?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_80 WHERE opponent = \"pittsburgh steelers\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)",
"role": "system"
},
{
"content": "What is the grand prix with Gerhard Berger as the fastest lap and Michael Schumacher as the pole position?",
"role": "user"
},
{
"content": "SELECT grand_prix FROM table_name_50 WHERE fastest_lap = \"gerhard berger\" AND pole_position = \"michael schumacher\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (date VARCHAR, home_team VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "Which Date has a Home team of philadelphia, and a Result of 104–110?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_4 WHERE home_team = \"philadelphia\" AND result = \"104–110\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE building (name VARCHAR, height_feet VARCHAR, floors VARCHAR)",
"role": "system"
},
{
"content": "List the names of buildings with at least 200 feet of height and with at least 20 floors.",
"role": "user"
},
{
"content": "SELECT name FROM building WHERE height_feet >= 200 AND floors >= 20",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_26 (manufacturer VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR)",
"role": "system"
},
{
"content": "Name the manufacturer for grid more than 18 and laps more than 1 with tired/retired of +1 lap",
"role": "user"
},
{
"content": "SELECT manufacturer FROM table_name_26 WHERE grid > 18 AND laps > 1 AND time_retired = \"+1 lap\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (college VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "What college had Jim Leonhard Category:articles with hcards?",
"role": "user"
},
{
"content": "SELECT college FROM table_name_79 WHERE player = \"jim leonhard category:articles with hcards\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (high_assists VARCHAR, game INTEGER)",
"role": "system"
},
{
"content": "Who had the high assists in the game less than 19?",
"role": "user"
},
{
"content": "SELECT high_assists FROM table_name_5 WHERE game < 19",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (date VARCHAR, visitor VARCHAR, leading_scorer VARCHAR)",
"role": "system"
},
{
"content": "Which date's visitor was jazz, when the leading scorer was Mehmet Okur (22)?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_4 WHERE visitor = \"jazz\" AND leading_scorer = \"mehmet okur (22)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE swimmer (nationality VARCHAR)",
"role": "system"
},
{
"content": "How many different countries are all the swimmers from?",
"role": "user"
},
{
"content": "SELECT COUNT(DISTINCT nationality) FROM swimmer",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341865_34 (district VARCHAR, incumbent VARCHAR)",
"role": "system"
},
{
"content": "which section did seymour halpern run in",
"role": "user"
},
{
"content": "SELECT district FROM table_1341865_34 WHERE incumbent = \"Seymour Halpern\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_98 (date VARCHAR, attendance VARCHAR)",
"role": "system"
},
{
"content": "What day was the attendance 74,285?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_98 WHERE attendance = \"74,285\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (attendance INTEGER, record VARCHAR)",
"role": "system"
},
{
"content": "What was the lowest attendance at the game with a record of 50-36?",
"role": "user"
},
{
"content": "SELECT MIN(attendance) FROM table_name_95 WHERE record = \"50-36\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28211103_1 (hawthorn_score VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What is the hawthorn score at the year 2000?",
"role": "user"
},
{
"content": "SELECT hawthorn_score FROM table_28211103_1 WHERE year = 2000",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_61 (enrollment VARCHAR, ihsaa_class VARCHAR)",
"role": "system"
},
{
"content": "What is the total enrollment of the aa IHSAA class?",
"role": "user"
},
{
"content": "SELECT COUNT(enrollment) FROM table_name_61 WHERE ihsaa_class = \"aa\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_98 (date VARCHAR, home VARCHAR)",
"role": "system"
},
{
"content": "What is the date of the game when the Mavericks were the home team?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_98 WHERE home = \"mavericks\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_224840_3 (reason_for_change VARCHAR, vacator VARCHAR)",
"role": "system"
},
{
"content": "when the vacator was Henry Latimer (f), what were the causes for modification?",
"role": "user"
},
{
"content": "SELECT reason_for_change FROM table_224840_3 WHERE vacator = \"Henry Latimer (F)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (total INTEGER, free VARCHAR, technical VARCHAR)",
"role": "system"
},
{
"content": "What is the total for the person with free of 47.667, and technical less than 47.417?",
"role": "user"
},
{
"content": "SELECT SUM(total) FROM table_name_69 WHERE free = 47.667 AND technical < 47.417",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17311759_4 (score VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What are the scores made by Charlotte team",
"role": "user"
},
{
"content": "SELECT score FROM table_17311759_4 WHERE team = \"Charlotte\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (country VARCHAR, money__$_ VARCHAR)",
"role": "system"
},
{
"content": "What country is the player who earned $9,000 from?",
"role": "user"
},
{
"content": "SELECT country FROM table_name_62 WHERE money__$_ = \"9,000\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (wins VARCHAR, total_final_appearances VARCHAR, club VARCHAR)",
"role": "system"
},
{
"content": "How manywins for dunfermline athletic that has a total final appearances less than 2?",
"role": "user"
},
{
"content": "SELECT wins FROM table_name_54 WHERE total_final_appearances < 2 AND club = \"dunfermline athletic\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (score VARCHAR, visitor VARCHAR)",
"role": "system"
},
{
"content": "What was the score of the game in which the Toronto Maple Leafs were visitors?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_97 WHERE visitor = \"toronto maple leafs\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (jockey VARCHAR, odds VARCHAR)",
"role": "system"
},
{
"content": "Who has 5/1 odds?",
"role": "user"
},
{
"content": "SELECT jockey FROM table_name_55 WHERE odds = \"5/1\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (year INTEGER, outcome VARCHAR, championship VARCHAR)",
"role": "system"
},
{
"content": "Tell me the sum of Year for outcome of runner-up for world darts championship",
"role": "user"
},
{
"content": "SELECT SUM(year) FROM table_name_41 WHERE outcome = \"runner-up\" AND championship = \"world darts championship\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (total VARCHAR, nation VARCHAR, rank VARCHAR)",
"role": "system"
},
{
"content": "What is the total medals Austria and those with larger than rank 4 have?",
"role": "user"
},
{
"content": "SELECT COUNT(total) FROM table_name_76 WHERE nation = \"austria\" AND rank > 4",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_83 (tournament VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What is the Tournament, when the Opponent is Patricia Mayr-Achleitner?",
"role": "user"
},
{
"content": "SELECT tournament FROM table_name_83 WHERE opponent = \"patricia mayr-achleitner\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14342480_5 (field_goals INTEGER)",
"role": "system"
},
{
"content": "Name the most field goals",
"role": "user"
},
{
"content": "SELECT MAX(field_goals) FROM table_14342480_5",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (lineage VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What's the lineage of ōoka tadatomo (大岡忠與)?",
"role": "user"
},
{
"content": "SELECT lineage FROM table_name_15 WHERE name = \"ōoka tadatomo (大岡忠與)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11869952_3 (launch_site VARCHAR, mission VARCHAR, results VARCHAR)",
"role": "system"
},
{
"content": "Where did Test Mission: War Heads and Missile Payload launch when there was a partial failure?",
"role": "user"
},
{
"content": "SELECT launch_site FROM table_11869952_3 WHERE mission = \"Test mission: war heads and Missile payload\" AND results = \"Partial Failure\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_13 (partner VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": "Which Partner has a Tournament of catella swedish open?",
"role": "user"
},
{
"content": "SELECT partner FROM table_name_13 WHERE tournament = \"catella swedish open\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (Id VARCHAR)",
"role": "system"
},
{
"content": "What is the 2009 value with lq in 2012, 2r in 2011, and lq in 2008?",
"role": "user"
},
{
"content": "SELECT 2009 FROM table_name_19 WHERE 2012 = \"lq\" AND 2011 = \"2r\" AND 2008 = \"lq\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_15 (second_member VARCHAR, first_member VARCHAR, first_party VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "Who is the second member ewarlier than 1804 when Tory Henry Isherwood is the first member?",
"role": "user"
},
{
"content": "SELECT second_member FROM table_name_15 WHERE first_party = \"tory\" AND year < 1804 AND first_member = \"henry isherwood\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_59 (crowd VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "What was the attendance at Round 9?",
"role": "user"
},
{
"content": "SELECT COUNT(crowd) FROM table_name_59 WHERE round = \"round 9\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_96 (high_assists VARCHAR, location_attendance VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Which player made the highest number of assists during the game played at the FleetCenter, with end score of W 120-87?",
"role": "user"
},
{
"content": "SELECT high_assists FROM table_name_96 WHERE location_attendance = \"fleetcenter\" AND score = \"w 120-87\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17201869_3 (replaced_by VARCHAR, outgoing_manager VARCHAR)",
"role": "system"
},
{
"content": "Who replaced outgoing manager José Ángel Ziganda?",
"role": "user"
},
{
"content": "SELECT replaced_by FROM table_17201869_3 WHERE outgoing_manager = \"José Ángel Ziganda\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (interview VARCHAR, preliminary_average VARCHAR)",
"role": "system"
},
{
"content": "what is the interview score when the preliminary average is 8.529 (6)?",
"role": "user"
},
{
"content": "SELECT interview FROM table_name_53 WHERE preliminary_average = \"8.529 (6)\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_20 (date VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Which date had a score of 5-1?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_20 WHERE score = \"5-1\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (title VARCHAR, year VARCHAR, format_s_ VARCHAR)",
"role": "system"
},
{
"content": "Which title has a year later than 1986 with an album as the format?",
"role": "user"
},
{
"content": "SELECT title FROM table_name_29 WHERE year > 1986 AND format_s_ = \"album\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (school VARCHAR, mascot VARCHAR)",
"role": "system"
},
{
"content": "What school has rebels as their mascot?",
"role": "user"
},
{
"content": "SELECT school FROM table_name_8 WHERE mascot = \"rebels\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_78 (silver VARCHAR, bronze VARCHAR, gold VARCHAR)",
"role": "system"
},
{
"content": "What is the number of Silver medals with 2 Bronze and 0 Gold?",
"role": "user"
},
{
"content": "SELECT COUNT(silver) FROM table_name_78 WHERE bronze = 2 AND gold < 0",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_9 (viewers__millions_ INTEGER, episode_number VARCHAR, share VARCHAR)",
"role": "system"
},
{
"content": "WHAT IS THE HIGHEST VIEWERS WITH AN EPISODE LESS THAN 15 AND SHARE LAGER THAN 7?",
"role": "user"
},
{
"content": "SELECT MAX(viewers__millions_) FROM table_name_9 WHERE episode_number < 15 AND share > 7",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_69 (height VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "How tall is Dylan Postl?",
"role": "user"
},
{
"content": "SELECT height FROM table_name_69 WHERE name = \"dylan postl\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20728138_1 (_percentage_in_seats_contested VARCHAR)",
"role": "system"
},
{
"content": "What is the 2003 seat number, when seats contested was at 38.23%",
"role": "user"
},
{
"content": "SELECT MIN(2003 AS _seats) FROM table_20728138_1 WHERE _percentage_in_seats_contested = \"38.23%\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_17 (result VARCHAR, nominee VARCHAR)",
"role": "system"
},
{
"content": "What is the result for the best new musical nominee?",
"role": "user"
},
{
"content": "SELECT result FROM table_name_17 WHERE nominee = \"best new musical\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (label VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What is the label for October 21, 1981?",
"role": "user"
},
{
"content": "SELECT label FROM table_name_37 WHERE date = \"october 21, 1981\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_16799784_3 (diameter__km_ VARCHAR, year_named VARCHAR)",
"role": "system"
},
{
"content": "What was the diameter of the feature found in 1997?",
"role": "user"
},
{
"content": "SELECT diameter__km_ FROM table_16799784_3 WHERE year_named = 1997",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (high_assists VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "What is High Assists, when Team is \"Oklahoma City\"?",
"role": "user"
},
{
"content": "SELECT high_assists FROM table_name_38 WHERE team = \"oklahoma city\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_38 (points VARCHAR, match INTEGER)",
"role": "system"
},
{
"content": "What is the total number of Points from a Match that is larger than 18?",
"role": "user"
},
{
"content": "SELECT COUNT(points) FROM table_name_38 WHERE match > 18",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR)",
"role": "system"
},
{
"content": "How many laps had a grid number of 7?",
"role": "user"
},
{
"content": "SELECT SUM(laps) FROM table_name_99 WHERE grid = 7",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_40 (home_team VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "What is the home team when the tie is 11?",
"role": "user"
},
{
"content": "SELECT home_team FROM table_name_40 WHERE tie_no = \"11\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_245801_1 (flight_down VARCHAR, crew VARCHAR)",
"role": "system"
},
{
"content": "Name the flight down for vladimir vasyutin , alexander volkov",
"role": "user"
},
{
"content": "SELECT flight_down FROM table_245801_1 WHERE crew = \"Vladimir Vasyutin , Alexander Volkov\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22879262_7 (high_rebounds VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "what is the total number of high rebounds for minnesota?",
"role": "user"
},
{
"content": "SELECT COUNT(high_rebounds) FROM table_22879262_7 WHERE team = \"Minnesota\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_18 (winner_2nd VARCHAR, race VARCHAR)",
"role": "system"
},
{
"content": "Who was the winner/2nd place finisher in the Caulfield Guineas?",
"role": "user"
},
{
"content": "SELECT winner_2nd FROM table_name_18 WHERE race = \"caulfield guineas\"",
"role": "assistant"
}
] |
[
{
"content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (winner VARCHAR, stage VARCHAR)",
"role": "system"
},
{
"content": "Which winner has a P stage?",
"role": "user"
},
{
"content": "SELECT winner FROM table_name_48 WHERE stage = \"p\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.