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 Templates (template_type_code VARCHAR, Version_Number INTEGER)",
"role": "system"
},
{
"content": "What the smallest version number and its template type code?",
"role": "user"
},
{
"content": "SELECT MIN(Version_Number), template_type_code FROM Templates",
"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_73 (round VARCHAR, draft VARCHAR, pick VARCHAR, nationality VARCHAR, position VARCHAR)",
"role": "system"
},
{
"content": "In which round was Position G from the United States drafted as Pick 13 in 1971-1 1971?",
"role": "user"
},
{
"content": "SELECT round FROM table_name_73 WHERE nationality = \"united states\" AND position = \"g\" AND pick = \"13\" AND draft = \"1971-1 1971\"",
"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_1646960_3 (winner VARCHAR, debut_album VARCHAR)",
"role": "system"
},
{
"content": "How many winners had a debut album titled \"mike\"?",
"role": "user"
},
{
"content": "SELECT winner FROM table_1646960_3 WHERE debut_album = \"Mike\"",
"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_87 (genbank_id VARCHAR)",
"role": "system"
},
{
"content": "Which 3’UTR sequence has the GenBank ID at hq021440?",
"role": "user"
},
{
"content": "SELECT 3 AS ’utr_sequence FROM table_name_87 WHERE genbank_id = \"hq021440\"",
"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_27 (erp_w INTEGER, frequency_mhz VARCHAR)",
"role": "system"
},
{
"content": "What is the least ERP W when the freguency MHz is 89.3 fm?",
"role": "user"
},
{
"content": "SELECT MIN(erp_w) FROM table_name_27 WHERE frequency_mhz = \"89.3 fm\"",
"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 (rank INTEGER, code__iata_icao_ VARCHAR)",
"role": "system"
},
{
"content": "What is the highest rank for the airport with a code of HKG/VHHH?",
"role": "user"
},
{
"content": "SELECT MAX(rank) FROM table_name_56 WHERE code__iata_icao_ = \"hkg/vhhh\"",
"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_75 (john_oxendine VARCHAR, karen_handel VARCHAR)",
"role": "system"
},
{
"content": "What is John Oxendine at in the poll where Karen Handel is at 38%?",
"role": "user"
},
{
"content": "SELECT john_oxendine FROM table_name_75 WHERE karen_handel = \"38%\"",
"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_49 (score VARCHAR, opposition VARCHAR, year VARCHAR)",
"role": "system"
},
{
"content": "What was the score when the opposition was sussex after 1890?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_49 WHERE opposition = \"sussex\" AND year > 1890",
"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_57 (player VARCHAR, to_par VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "Who was the player for Japan when the to par was smaller than 7?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_57 WHERE to_par < 7 AND country = \"japan\"",
"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_44 (margin_of_victory VARCHAR, tournament VARCHAR)",
"role": "system"
},
{
"content": "What was the margin of victory at the Texas International Open?",
"role": "user"
},
{
"content": "SELECT margin_of_victory FROM table_name_44 WHERE tournament = \"texas international 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_51 (finish VARCHAR, country VARCHAR, player VARCHAR)",
"role": "system"
},
{
"content": "what is the finish when the country is united states and the player is tiger woods?",
"role": "user"
},
{
"content": "SELECT finish FROM table_name_51 WHERE country = \"united states\" AND player = \"tiger woods\"",
"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 (overall INTEGER, name VARCHAR)",
"role": "system"
},
{
"content": "What is Mike Harris' lowest overall?",
"role": "user"
},
{
"content": "SELECT MIN(overall) FROM table_name_61 WHERE name = \"mike harris\"",
"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 (player VARCHAR, position VARCHAR, round VARCHAR)",
"role": "system"
},
{
"content": "Who has a round less than 9 and a position of G?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_65 WHERE position = \"g\" AND 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_31 (year INTEGER, album VARCHAR)",
"role": "system"
},
{
"content": "What was the average Year of release for the Album, \"Da Baddest Bitch\"?",
"role": "user"
},
{
"content": "SELECT AVG(year) FROM table_name_31 WHERE album = \"da baddest bitch\"",
"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_73 (against VARCHAR, losses VARCHAR, wins VARCHAR)",
"role": "system"
},
{
"content": "What is the number against when losses are smaller than 3, and wins arelarger than 16?",
"role": "user"
},
{
"content": "SELECT COUNT(against) FROM table_name_73 WHERE losses < 3 AND wins > 16",
"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 (score VARCHAR, location_attendance VARCHAR)",
"role": "system"
},
{
"content": "WhichScore has a Location Attendance of seattle center coliseum 11,497?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_15 WHERE location_attendance = \"seattle center coliseum 11,497\"",
"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_23938357_5 (name VARCHAR)",
"role": "system"
},
{
"content": "what is the total 07-08 gp/jgp 2nd with the name mao asada",
"role": "user"
},
{
"content": "SELECT 07 AS _08_gp_jgp_2nd FROM table_23938357_5 WHERE name = \"Mao Asada\"",
"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_75 (record VARCHAR, loss VARCHAR)",
"role": "system"
},
{
"content": "What is the record loss of R. Springer?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_75 WHERE loss = \"r. springer\"",
"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 (engine VARCHAR, year VARCHAR, entrant VARCHAR)",
"role": "system"
},
{
"content": "What engine was used by Ram Penthouse Rizla Racing in 1978?",
"role": "user"
},
{
"content": "SELECT engine FROM table_name_97 WHERE year > 1978 AND entrant = \"ram penthouse rizla racing\"",
"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_35 (music VARCHAR, team VARCHAR, points_jury VARCHAR)",
"role": "system"
},
{
"content": "What is the Music for Team anna guzik & rafał kamiński that has a Points Jury of 24 (7,5,6,6)?",
"role": "user"
},
{
"content": "SELECT music FROM table_name_35 WHERE team = \"anna guzik & rafał kamiński\" AND points_jury = \"24 (7,5,6,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_69 (attendance INTEGER, opponent VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What attendance has astros as the opponent, and april 29 as the date?",
"role": "user"
},
{
"content": "SELECT SUM(attendance) FROM table_name_69 WHERE opponent = \"astros\" AND date = \"april 29\"",
"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_23292220_4 (daves_team VARCHAR, first_broadcast VARCHAR)",
"role": "system"
},
{
"content": "How many daves team entries are there on 27 october 2006?",
"role": "user"
},
{
"content": "SELECT COUNT(daves_team) FROM table_23292220_4 WHERE first_broadcast = \"27 October 2006\"",
"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 (round INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "Which round was Joe Taylor selected in?",
"role": "user"
},
{
"content": "SELECT SUM(round) FROM table_name_40 WHERE player = \"joe taylor\"",
"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_52 (score VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What is Score, when Opponent is \"Ivo Minář\"?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_52 WHERE opponent = \"ivo minář\"",
"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 (attendance VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What Attendance has a Date that is november 1, 1993?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_69 WHERE date = \"november 1, 1993\"",
"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_89 (killeen_rate INTEGER, texas_rate VARCHAR, us_rate VARCHAR)",
"role": "system"
},
{
"content": "Texas Rate smaller than 32.9, and a U.S. Rate larger than 5.6 is what highest killeen rate?",
"role": "user"
},
{
"content": "SELECT MAX(killeen_rate) FROM table_name_89 WHERE texas_rate < 32.9 AND us_rate > 5.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_17 (player VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "which athlete played against Queensland?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_17 WHERE opponent = \"queensland\"",
"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_7 (opponent VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "Who was the opponent with a score of 109–108?",
"role": "user"
},
{
"content": "SELECT opponent FROM table_name_7 WHERE score = \"109–108\"",
"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_71 (attendance INTEGER, result_f___a VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "How many Attendances have a Result F – A of 0 – 2, and a Date of 31 january 1903?",
"role": "user"
},
{
"content": "SELECT AVG(attendance) FROM table_name_71 WHERE result_f___a = \"0 – 2\" AND date = \"31 january 1903\"",
"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 (surface VARCHAR, partner VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was the Surface for the Partner of Jürgen Melzer, and a Date of July 16, 2011?",
"role": "user"
},
{
"content": "SELECT surface FROM table_name_79 WHERE partner = \"jürgen melzer\" AND date = \"july 16, 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_name_35 (finish VARCHAR, record VARCHAR)",
"role": "system"
},
{
"content": "Which finish has a Record of 74-68?",
"role": "user"
},
{
"content": "SELECT finish FROM table_name_35 WHERE record = \"74-68\"",
"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_51 (record VARCHAR, score VARCHAR, location_attendance VARCHAR, game VARCHAR)",
"role": "system"
},
{
"content": "Which Record has a Location/Attendance of ford center, a Game larger than 30, and a Score of 87–79?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_51 WHERE location_attendance = \"ford center\" AND game > 30 AND score = \"87–79\"",
"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_26555737_1 (english_title VARCHAR, arabic_title VARCHAR)",
"role": "system"
},
{
"content": "When ملح هذا البحر is the arabic title what is the english title?",
"role": "user"
},
{
"content": "SELECT english_title FROM table_26555737_1 WHERE arabic_title = \"ملح هذا البحر\"",
"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 (draws VARCHAR, played INTEGER)",
"role": "system"
},
{
"content": "What is the number of draws when played is less than 38?",
"role": "user"
},
{
"content": "SELECT COUNT(draws) FROM table_name_53 WHERE played < 38",
"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_17598822_11 (league VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "Name the total number of league for 5",
"role": "user"
},
{
"content": "SELECT COUNT(league) FROM table_17598822_11 WHERE total = 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_64 (draws VARCHAR, wins VARCHAR, against VARCHAR)",
"role": "system"
},
{
"content": "Which Draws has a Wins smaller than 17, and an Against smaller than 1158?",
"role": "user"
},
{
"content": "SELECT COUNT(draws) FROM table_name_64 WHERE wins < 17 AND against < 1158",
"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_15294880_2 (general_classification VARCHAR, team_classification VARCHAR)",
"role": "system"
},
{
"content": "When the team classification was quick step, what was the total number of general classifications?",
"role": "user"
},
{
"content": "SELECT COUNT(general_classification) FROM table_15294880_2 WHERE team_classification = \"Quick Step\"",
"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 (song_title VARCHAR, genre VARCHAR)",
"role": "system"
},
{
"content": "what song is a genre of glam",
"role": "user"
},
{
"content": "SELECT song_title FROM table_name_26 WHERE genre = \"glam\"",
"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_11964047_7 (record VARCHAR, score VARCHAR)",
"role": "system"
},
{
"content": "what are all the records with a score is w 98–91",
"role": "user"
},
{
"content": "SELECT record FROM table_11964047_7 WHERE score = \"W 98–91\"",
"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_44 (branding VARCHAR, frequency VARCHAR)",
"role": "system"
},
{
"content": "What is the branding for the radio with a frequency of 1150 am?",
"role": "user"
},
{
"content": "SELECT branding FROM table_name_44 WHERE frequency = \"1150 am\"",
"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 (round VARCHAR, res VARCHAR, event VARCHAR)",
"role": "system"
},
{
"content": "What round did he win rof 29: aftershock in?",
"role": "user"
},
{
"content": "SELECT round FROM table_name_3 WHERE res = \"win\" AND event = \"rof 29: aftershock\"",
"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 (last_cf INTEGER, cf_wins VARCHAR, cf_appearances VARCHAR, cup_wins VARCHAR)",
"role": "system"
},
{
"content": "What is the lowest number of last cfs of the team with 2 cf appearances, 0 cup wins, and less than 0 cf wins?",
"role": "user"
},
{
"content": "SELECT MIN(last_cf) FROM table_name_90 WHERE cf_appearances = 2 AND cup_wins = 0 AND cf_wins < 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 product (product VARCHAR, max_page_size VARCHAR, pages_per_minute_color VARCHAR)",
"role": "system"
},
{
"content": "Find products with max page size as \"A4\" and pages per minute color smaller than 5.",
"role": "user"
},
{
"content": "SELECT product FROM product WHERE max_page_size = \"A4\" AND pages_per_minute_color < 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_24399615_5 (airdate VARCHAR, episode_no VARCHAR)",
"role": "system"
},
{
"content": "When did episode number 6 air?",
"role": "user"
},
{
"content": "SELECT airdate FROM table_24399615_5 WHERE episode_no = 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_25 (rank VARCHAR, s_wicket VARCHAR)",
"role": "system"
},
{
"content": "What Rank has a 65 s Wicket?",
"role": "user"
},
{
"content": "SELECT rank FROM table_name_25 WHERE s_wicket = \"65\"",
"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 (losses INTEGER, draws VARCHAR, against VARCHAR, wins VARCHAR)",
"role": "system"
},
{
"content": "What is the total losses against 1412, and 10 wins, but draws less than 0?",
"role": "user"
},
{
"content": "SELECT SUM(losses) FROM table_name_56 WHERE against > 1412 AND wins = 10 AND draws < 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_6 (rookie VARCHAR, defensive VARCHAR, offensive VARCHAR)",
"role": "system"
},
{
"content": "Who was the rookie who played when Matt Vinc was defensive and Pat Maddalena was offensive?",
"role": "user"
},
{
"content": "SELECT rookie FROM table_name_6 WHERE defensive = \"matt vinc\" AND offensive = \"pat maddalena\"",
"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 Student (Stuid VARCHAR, Lname VARCHAR, Fname VARCHAR); CREATE TABLE Plays_games (gameid VARCHAR, Stuid VARCHAR); CREATE TABLE Video_games (gameid VARCHAR)",
"role": "system"
},
{
"content": "Show all game names played by Linda Smith",
"role": "user"
},
{
"content": "SELECT Gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid JOIN Student AS T3 ON T3.Stuid = T1.Stuid WHERE T3.Lname = \"Smith\" AND T3.Fname = \"Linda\"",
"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_16201038_5 (overall_record VARCHAR, at_opponents_venue VARCHAR)",
"role": "system"
},
{
"content": "What is the record of wins/losses that were played at opponents venue (uf, 1-0)",
"role": "user"
},
{
"content": "SELECT overall_record FROM table_16201038_5 WHERE at_opponents_venue = \"UF, 1-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_26 (Id VARCHAR)",
"role": "system"
},
{
"content": "What is 1998, when 1997 is \"3R\", and when 1992 is \"A\"?",
"role": "user"
},
{
"content": "SELECT 1998 FROM table_name_26 WHERE 1997 = \"3r\" AND 1992 = \"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 table_name_66 (pick INTEGER, player VARCHAR)",
"role": "system"
},
{
"content": "Which pick was Bill Bray?",
"role": "user"
},
{
"content": "SELECT SUM(pick) FROM table_name_66 WHERE player = \"bill bray\"",
"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 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR)",
"role": "system"
},
{
"content": "What team has a kit manufacturer of Umbro and Eric Cantona as captain?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_41 WHERE kit_manufacturer = \"umbro\" AND captain = \"eric cantona\"",
"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_27722734_7 (date VARCHAR, team VARCHAR)",
"role": "system"
},
{
"content": "Name the date for washington",
"role": "user"
},
{
"content": "SELECT date FROM table_27722734_7 WHERE team = \"Washington\"",
"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_23 (losses VARCHAR, geelong_fl VARCHAR, wins VARCHAR)",
"role": "system"
},
{
"content": "How many Losses have a Geelong FL of newtown & chilwell, and more than 11 wins?",
"role": "user"
},
{
"content": "SELECT COUNT(losses) FROM table_name_23 WHERE geelong_fl = \"newtown & chilwell\" AND wins > 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_name_57 (school VARCHAR, city VARCHAR)",
"role": "system"
},
{
"content": "Which school comes from Brookville?",
"role": "user"
},
{
"content": "SELECT school FROM table_name_57 WHERE city = \"brookville\"",
"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_24 (set_3 VARCHAR, total VARCHAR)",
"role": "system"
},
{
"content": "What is the score of set 3 when the total is 45–31?",
"role": "user"
},
{
"content": "SELECT set_3 FROM table_name_24 WHERE total = \"45–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_name_51 (mascot VARCHAR, year_opened VARCHAR)",
"role": "system"
},
{
"content": "What is the mascot whose school opened in 1970?",
"role": "user"
},
{
"content": "SELECT mascot FROM table_name_51 WHERE year_opened = \"1970\"",
"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_81 (player VARCHAR, college_junior_club_team__league_ VARCHAR)",
"role": "system"
},
{
"content": "Which Player has a Hc Cska Moscow (Russia)?",
"role": "user"
},
{
"content": "SELECT player FROM table_name_81 WHERE college_junior_club_team__league_ = \"hc cska moscow (russia)\"",
"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 (longitude VARCHAR, latitude VARCHAR)",
"role": "system"
},
{
"content": "If the latitude is 71°18′n, what is the longitude?",
"role": "user"
},
{
"content": "SELECT longitude FROM table_name_98 WHERE latitude = \"71°18′n\"",
"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 (date VARCHAR, tie_no VARCHAR)",
"role": "system"
},
{
"content": "On which date was the Tie no 2?",
"role": "user"
},
{
"content": "SELECT date FROM table_name_41 WHERE tie_no = \"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_1 (skip VARCHAR, country VARCHAR)",
"role": "system"
},
{
"content": "What is the skip when the country is finland?",
"role": "user"
},
{
"content": "SELECT skip FROM table_name_1 WHERE country = \"finland\"",
"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_74 (league VARCHAR, finish VARCHAR, losses VARCHAR)",
"role": "system"
},
{
"content": "What league had a finish of 2nd and 3 losses?",
"role": "user"
},
{
"content": "SELECT league FROM table_name_74 WHERE finish = \"2nd\" AND losses = 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_71 (power VARCHAR, city_of_license VARCHAR)",
"role": "system"
},
{
"content": "what is the power when the city of license is belleville?",
"role": "user"
},
{
"content": "SELECT power FROM table_name_71 WHERE city_of_license = \"belleville\"",
"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 debate (Date VARCHAR, Venue VARCHAR)",
"role": "system"
},
{
"content": "What are the date and venue of each debate?",
"role": "user"
},
{
"content": "SELECT Date, Venue FROM debate",
"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 (green_communist VARCHAR, polling_institute VARCHAR)",
"role": "system"
},
{
"content": "What's the green communist when Euroteste/JN is the polling Institute?",
"role": "user"
},
{
"content": "SELECT green_communist FROM table_name_41 WHERE polling_institute = \"euroteste/jn\"",
"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_39 (points VARCHAR, series VARCHAR, poles VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of Points with a Series of italian formula renault 2.0, and Poles smaller than 0?",
"role": "user"
},
{
"content": "SELECT COUNT(points) FROM table_name_39 WHERE series = \"italian formula renault 2.0\" AND poles < 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 festival_detail (LOCATION VARCHAR, Num_of_Audience VARCHAR)",
"role": "system"
},
{
"content": "What is the location of the festival with the largest number of audience?",
"role": "user"
},
{
"content": "SELECT LOCATION FROM festival_detail ORDER BY Num_of_Audience 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_9 (constructor VARCHAR, grid VARCHAR)",
"role": "system"
},
{
"content": "Tell me the constructor for grid of 17",
"role": "user"
},
{
"content": "SELECT constructor FROM table_name_9 WHERE grid = 17",
"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_2 (drawn VARCHAR, cambridge_united_career VARCHAR, lost VARCHAR)",
"role": "system"
},
{
"content": "How many draws have a Cambridge United career of 2008–2009 and less than 13 losses?",
"role": "user"
},
{
"content": "SELECT COUNT(drawn) FROM table_name_2 WHERE cambridge_united_career = \"2008–2009\" AND lost < 13",
"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 (record VARCHAR, game_site VARCHAR)",
"role": "system"
},
{
"content": "What is the record when the game was played at raymond james stadium?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_46 WHERE game_site = \"raymond james 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_78 (team VARCHAR, points INTEGER)",
"role": "system"
},
{
"content": "Which team scored less than 35 points?",
"role": "user"
},
{
"content": "SELECT team FROM table_name_78 WHERE points < 35",
"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_27114708_2 (date_of_appointment VARCHAR, replaced_by VARCHAR)",
"role": "system"
},
{
"content": "Please mention those appointment dates those are replaced by alfredo aglietti",
"role": "user"
},
{
"content": "SELECT date_of_appointment FROM table_27114708_2 WHERE replaced_by = \"Alfredo Aglietti\"",
"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 (opponents VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Name the opponents for may 18, 1997",
"role": "user"
},
{
"content": "SELECT opponents FROM table_name_80 WHERE date = \"may 18, 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_25794010_1 (name VARCHAR, company VARCHAR)",
"role": "system"
},
{
"content": "Name the name for company d",
"role": "user"
},
{
"content": "SELECT name FROM table_25794010_1 WHERE company = \"company D\"",
"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_34 (attendance VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What was the attendance of the Oakland Raiders game?",
"role": "user"
},
{
"content": "SELECT attendance FROM table_name_34 WHERE opponent = \"oakland raiders\"",
"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 (pos VARCHAR, name VARCHAR)",
"role": "system"
},
{
"content": "What is Elise Norwood's Pos.?",
"role": "user"
},
{
"content": "SELECT pos FROM table_name_41 WHERE name = \"elise norwood\"",
"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 (identifier VARCHAR, city_of_license VARCHAR)",
"role": "system"
},
{
"content": "What is Identifier, when City of License is Terrace Bay?",
"role": "user"
},
{
"content": "SELECT identifier FROM table_name_26 WHERE city_of_license = \"terrace bay\"",
"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_10960039_6 (cfl_team VARCHAR, college VARCHAR)",
"role": "system"
},
{
"content": "What teams drafted players that played for northwood school?",
"role": "user"
},
{
"content": "SELECT cfl_team FROM table_10960039_6 WHERE college = \"Northwood\"",
"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_24 (record VARCHAR, opponent VARCHAR)",
"role": "system"
},
{
"content": "What is the record for opponent Anna Barone?",
"role": "user"
},
{
"content": "SELECT record FROM table_name_24 WHERE opponent = \"anna barone\"",
"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_1341843_15 (incumbent VARCHAR, district VARCHAR)",
"role": "system"
},
{
"content": "Who's the incumbent of Indiana 4 district?",
"role": "user"
},
{
"content": "SELECT incumbent FROM table_1341843_15 WHERE district = \"Indiana 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_82 (races INTEGER, points VARCHAR, season VARCHAR, podiums VARCHAR, wins VARCHAR)",
"role": "system"
},
{
"content": "What is the sum of Races, when Podiums is less than 3, when Wins is 0, when Season is after 2001, and when Points is 32?",
"role": "user"
},
{
"content": "SELECT SUM(races) FROM table_name_82 WHERE podiums < 3 AND wins = 0 AND season > 2001 AND points = \"32\"",
"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_25773116_2 (winning_driver VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Who won the April 11 race?",
"role": "user"
},
{
"content": "SELECT winning_driver FROM table_25773116_2 WHERE date = \"April 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_name_47 (rank INTEGER, sets_won VARCHAR, loss VARCHAR)",
"role": "system"
},
{
"content": "What is the least rank with more than 16 sets won and less than 1 loss?",
"role": "user"
},
{
"content": "SELECT MIN(rank) FROM table_name_47 WHERE sets_won > 16 AND loss < 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_71 (wheels INTEGER, type VARCHAR, location VARCHAR)",
"role": "system"
},
{
"content": "What average wheels has accounting as the type, with IBM Collection as the location?",
"role": "user"
},
{
"content": "SELECT AVG(wheels) FROM table_name_71 WHERE type = \"accounting\" AND location = \"ibm collection\"",
"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_36 (score VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "Name the score for december 5",
"role": "user"
},
{
"content": "SELECT score FROM table_name_36 WHERE date = \"december 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_8 (population VARCHAR, area VARCHAR)",
"role": "system"
},
{
"content": "What is the population when the area is 4,575?",
"role": "user"
},
{
"content": "SELECT population FROM table_name_8 WHERE area = \"4,575\"",
"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_18268826_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)",
"role": "system"
},
{
"content": "Who's the writer of the episode seen by 3.25 million people in the US?",
"role": "user"
},
{
"content": "SELECT written_by FROM table_18268826_1 WHERE us_viewers__million_ = \"3.25\"",
"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_31 (year INTEGER, extra VARCHAR)",
"role": "system"
},
{
"content": "Tell me the sum of year for extra of junior team competition",
"role": "user"
},
{
"content": "SELECT SUM(year) FROM table_name_31 WHERE extra = \"junior team competition\"",
"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_64 (venue VARCHAR, weight__kg_ VARCHAR, result VARCHAR)",
"role": "system"
},
{
"content": "What venue has a weight (kg) greater than 55, and won as the result?",
"role": "user"
},
{
"content": "SELECT venue FROM table_name_64 WHERE weight__kg_ > 55 AND result = \"won\"",
"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 conductor (Name VARCHAR, Conductor_ID VARCHAR); CREATE TABLE orchestra (Orchestra VARCHAR, Conductor_ID VARCHAR)",
"role": "system"
},
{
"content": "Show the names of conductors and the orchestras they have conducted.",
"role": "user"
},
{
"content": "SELECT T1.Name, T2.Orchestra FROM conductor AS T1 JOIN orchestra AS T2 ON T1.Conductor_ID = T2.Conductor_ID",
"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 (leagues_entering VARCHAR, clubs VARCHAR)",
"role": "system"
},
{
"content": "What is the item for Leagues entering, when the value for Clubs is 8 → 4?",
"role": "user"
},
{
"content": "SELECT leagues_entering FROM table_name_69 WHERE clubs = \"8 → 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_66 (run_time VARCHAR, podcast_date VARCHAR)",
"role": "system"
},
{
"content": "What is the run time of the episode that aired on September 4, 2005?",
"role": "user"
},
{
"content": "SELECT run_time FROM table_name_66 WHERE podcast_date = \"september 4, 2005\"",
"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_89 (grid VARCHAR, laps VARCHAR, time_retired VARCHAR, driver VARCHAR)",
"role": "system"
},
{
"content": "How much Grid has a Time/Retired of +1 lap, and a Driver of sébastien bourdais, and Laps larger than 70?",
"role": "user"
},
{
"content": "SELECT COUNT(grid) FROM table_name_89 WHERE time_retired = \"+1 lap\" AND driver = \"sébastien bourdais\" AND laps > 70",
"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 (decile INTEGER, roll VARCHAR, area VARCHAR)",
"role": "system"
},
{
"content": "What is the highest decile value with a roll greater than 301 in Hauraki?",
"role": "user"
},
{
"content": "SELECT MAX(decile) FROM table_name_46 WHERE roll > 301 AND area = \"hauraki\"",
"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_1358608_4 (result VARCHAR, date VARCHAR)",
"role": "system"
},
{
"content": "What was Northerly's result at the race on 19 Oct 2002?",
"role": "user"
},
{
"content": "SELECT result FROM table_1358608_4 WHERE date = \"19 Oct 2002\"",
"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 (score VARCHAR, visitor VARCHAR)",
"role": "system"
},
{
"content": "What was the score of the game against Milwaukee?",
"role": "user"
},
{
"content": "SELECT score FROM table_name_9 WHERE visitor = \"milwaukee\"",
"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 (race_name VARCHAR, winning_driver VARCHAR)",
"role": "system"
},
{
"content": "What is the name of the race won by driver Carlos Reutemann?",
"role": "user"
},
{
"content": "SELECT race_name FROM table_name_72 WHERE winning_driver = \"carlos reutemann\"",
"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 (scoring_average VARCHAR, wins INTEGER)",
"role": "system"
},
{
"content": "What is the scoring average where the wins are 0?",
"role": "user"
},
{
"content": "SELECT COUNT(scoring_average) FROM table_name_56 WHERE wins < 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_2618119_1 (no_in_series VARCHAR, no_in_season VARCHAR)",
"role": "system"
},
{
"content": "How many numbers in series were for the number in season of 8?",
"role": "user"
},
{
"content": "SELECT COUNT(no_in_series) FROM table_2618119_1 WHERE no_in_season = 8",
"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_64 (total_goals INTEGER, name VARCHAR)",
"role": "system"
},
{
"content": "What is the total goals for Mark Ward?",
"role": "user"
},
{
"content": "SELECT MIN(total_goals) FROM table_name_64 WHERE name = \"mark ward\"",
"role": "assistant"
}
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.