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 table_name_11 (year INTEGER, event VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What is the earliest year that a team event was included at Vilamoura, Portugal?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_11 WHERE event = \"team\" AND venue = \"vilamoura, portugal\"", "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 (fis_nordic_world_ski_championships VARCHAR, winter_olympics VARCHAR)", "role": "system" }, { "content": "Which FIS Nordic World Ski Championships has Winter Olympics of 1960?", "role": "user" }, { "content": "SELECT fis_nordic_world_ski_championships FROM table_name_44 WHERE winter_olympics = \"1960\"", "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 STUDENTS (cell_mobile_number VARCHAR, email_address VARCHAR)", "role": "system" }, { "content": "Return the cell phone number and email address for all students.", "role": "user" }, { "content": "SELECT cell_mobile_number, email_address FROM STUDENTS", "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_12 (visiting_team VARCHAR, final_score VARCHAR)", "role": "system" }, { "content": "Which visiting team had a final score of 14-34?", "role": "user" }, { "content": "SELECT visiting_team FROM table_name_12 WHERE final_score = \"14-34\"", "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_17625749_3 (points_for VARCHAR, tries_against VARCHAR)", "role": "system" }, { "content": "How many points are there for 63 tries against? ", "role": "user" }, { "content": "SELECT points_for FROM table_17625749_3 WHERE tries_against = \"63\"", "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_21 (rank INTEGER, name VARCHAR, goals VARCHAR)", "role": "system" }, { "content": "When Oscar Míguez had over 107 goals, what was the lowest he ranked?", "role": "user" }, { "content": "SELECT MIN(rank) FROM table_name_21 WHERE name = \"oscar míguez\" AND goals > 107", "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 (date VARCHAR, game VARCHAR)", "role": "system" }, { "content": "What was the date of game 81?", "role": "user" }, { "content": "SELECT date FROM table_name_40 WHERE game = 81", "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 VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR)", "role": "system" }, { "content": "What rank has 0 as the bronze, and a total less than 3, with north korea as the nation?", "role": "user" }, { "content": "SELECT rank FROM table_name_56 WHERE bronze = 0 AND total < 3 AND nation = \"north korea\"", "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 (rank INTEGER, lane VARCHAR, nationality VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Which Rank has a Nationality of france, and a Name of alain bernard, and a Lane smaller than 6?", "role": "user" }, { "content": "SELECT AVG(rank) FROM table_name_18 WHERE nationality = \"france\" AND name = \"alain bernard\" AND lane < 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_6 (tournament VARCHAR)", "role": "system" }, { "content": "What's the tournament when 1992 is A?", "role": "user" }, { "content": "SELECT tournament FROM table_name_6 WHERE 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_37 (ended VARCHAR, country VARCHAR)", "role": "system" }, { "content": "when was the loan ended when the country is ghana?", "role": "user" }, { "content": "SELECT ended FROM table_name_37 WHERE country = \"ghana\"", "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_91 (home VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who was the home team on April 15?", "role": "user" }, { "content": "SELECT home FROM table_name_91 WHERE date = \"april 15\"", "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 (total INTEGER, nation VARCHAR, bronze VARCHAR)", "role": "system" }, { "content": "What is the average total of Italy and has a bronze larger than 1?", "role": "user" }, { "content": "SELECT AVG(total) FROM table_name_56 WHERE nation = \"italy\" AND bronze > 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_86 (tournament VARCHAR, opponent VARCHAR, round VARCHAR, surface VARCHAR)", "role": "system" }, { "content": "Name the tournament for semifinal hard surface for opponent of pam casale", "role": "user" }, { "content": "SELECT tournament FROM table_name_86 WHERE round = \"semifinal\" AND surface = \"hard\" AND opponent = \"pam casale\"", "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 (away_captain VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What is the Away captain with a Venue that is old trafford?", "role": "user" }, { "content": "SELECT away_captain FROM table_name_36 WHERE venue = \"old trafford\"", "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 Rooms (beds INTEGER, bedtype VARCHAR)", "role": "system" }, { "content": "How many king beds are there?", "role": "user" }, { "content": "SELECT SUM(beds) FROM Rooms WHERE bedtype = 'King'", "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 (frequency_mhz VARCHAR, fcc_info VARCHAR, erp_w VARCHAR)", "role": "system" }, { "content": "Name the frequency mhz for fcc and ERP W of 9 watts", "role": "user" }, { "content": "SELECT frequency_mhz FROM table_name_7 WHERE fcc_info = \"fcc\" AND erp_w = \"9 watts\"", "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 (branding VARCHAR, frequency VARCHAR)", "role": "system" }, { "content": "What is the branding for fm 88.9?", "role": "user" }, { "content": "SELECT branding FROM table_name_66 WHERE frequency = \"fm 88.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_1300080_1 (network_protocols VARCHAR, notes VARCHAR)", "role": "system" }, { "content": "What are the network protocols for the model that has been discontinued in favor of the EN1700?", "role": "user" }, { "content": "SELECT network_protocols FROM table_1300080_1 WHERE notes = \"Discontinued in favor of the en1700\"", "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_27615445_1 (audition_venue VARCHAR, guest_fourth_judge VARCHAR)", "role": "system" }, { "content": "Where was the audition venue where Peninha was the guest fourth judge?", "role": "user" }, { "content": "SELECT audition_venue FROM table_27615445_1 WHERE guest_fourth_judge = \"Peninha\"", "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 (percent_of_mass VARCHAR, molecules VARCHAR)", "role": "system" }, { "content": "what is the perfect of mass when the molecules is 1.74e14*?", "role": "user" }, { "content": "SELECT percent_of_mass FROM table_name_58 WHERE molecules = \"1.74e14*\"", "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 (province_of_silla VARCHAR, modern_equivalent VARCHAR)", "role": "system" }, { "content": "WHat kind of Province of Silla has a Modern equivalent of pyeongan?", "role": "user" }, { "content": "SELECT province_of_silla FROM table_name_25 WHERE modern_equivalent = \"pyeongan\"", "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_25229283_4 (opponent VARCHAR, points_for VARCHAR)", "role": "system" }, { "content": "Who was the opponent with a points for of 177?", "role": "user" }, { "content": "SELECT opponent FROM table_25229283_4 WHERE points_for = 177", "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_19072602_5 (team_usa VARCHAR, team_europe VARCHAR)", "role": "system" }, { "content": "When paul moor is on the europe team who is on the usa team?", "role": "user" }, { "content": "SELECT team_usa FROM table_19072602_5 WHERE team_europe = \"Paul Moor\"", "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_60 (prize_money VARCHAR, round VARCHAR)", "role": "system" }, { "content": "What is the prize money for the second round qualifying that is listed?", "role": "user" }, { "content": "SELECT prize_money FROM table_name_60 WHERE round = \"second round qualifying\"", "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 (claimant VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "Which claimant's rank is 200?", "role": "user" }, { "content": "SELECT claimant FROM table_name_7 WHERE rank = 200", "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 (gold INTEGER, total VARCHAR, bronze VARCHAR)", "role": "system" }, { "content": "What is the gold number when the total is 8 and bronze is more than 4?", "role": "user" }, { "content": "SELECT AVG(gold) FROM table_name_19 WHERE total = 8 AND bronze > 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_26 (sanskrit VARCHAR, english VARCHAR)", "role": "system" }, { "content": "Which Sanskrit has an English of mindfulness of breathing?", "role": "user" }, { "content": "SELECT sanskrit FROM table_name_26 WHERE english = \"mindfulness of breathing\"", "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 airport (id VARCHAR, name VARCHAR, IATA VARCHAR); CREATE TABLE flight (id VARCHAR, airport_id VARCHAR)", "role": "system" }, { "content": "What is the id, name and IATA code of the airport that had most number of flights?", "role": "user" }, { "content": "SELECT T1.id, T1.name, T1.IATA FROM airport AS T1 JOIN flight AS T2 ON T1.id = T2.airport_id GROUP BY T2.id 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_76 (date VARCHAR, partner VARCHAR)", "role": "system" }, { "content": "When did he play with peter nyborg?", "role": "user" }, { "content": "SELECT date FROM table_name_76 WHERE partner = \"peter nyborg\"", "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 (rank INTEGER, director_s_ VARCHAR)", "role": "system" }, { "content": "Sum of m. night shyamalan ranks?", "role": "user" }, { "content": "SELECT SUM(rank) FROM table_name_41 WHERE director_s_ = \"m. night shyamalan\"", "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 (Id VARCHAR)", "role": "system" }, { "content": "What is 2004, when 2007 is \"A\", and when 1997 is \"A\"?", "role": "user" }, { "content": "SELECT 2004 FROM table_name_36 WHERE 2007 = \"a\" AND 1997 = \"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_71 (to_par VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the to par for the score 73-71=144?", "role": "user" }, { "content": "SELECT to_par FROM table_name_71 WHERE score = 73 - 71 = 144", "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 (track VARCHAR, race VARCHAR)", "role": "system" }, { "content": "What track did they race on at the Fountain of Youth Stakes?", "role": "user" }, { "content": "SELECT track FROM table_name_69 WHERE race = \"fountain of youth stakes\"", "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_92 (report VARCHAR, race VARCHAR)", "role": "system" }, { "content": "What's the report for the mexican grand prix?", "role": "user" }, { "content": "SELECT report FROM table_name_92 WHERE race = \"mexican 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_1342249_42 (result VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "How many results have Jere Cooper as incumbent?", "role": "user" }, { "content": "SELECT result FROM table_1342249_42 WHERE incumbent = \"Jere Cooper\"", "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_1277350_5 (friday_fifth_day VARCHAR, day__see_irregularities__ VARCHAR)", "role": "system" }, { "content": "How do you say Friday in Polish?", "role": "user" }, { "content": "SELECT friday_fifth_day FROM table_1277350_5 WHERE day__see_irregularities__ = \"Polish\"", "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 museum (Museum_ID VARCHAR, open_year INTEGER); CREATE TABLE visitor (id VARCHAR); CREATE TABLE visit (visitor_id VARCHAR, Museum_ID VARCHAR)", "role": "system" }, { "content": "Find the number of visitors who did not visit any museum opened after 2010.", "role": "user" }, { "content": "SELECT COUNT(*) FROM visitor WHERE NOT id IN (SELECT t2.visitor_id FROM museum AS t1 JOIN visit AS t2 ON t1.Museum_ID = t2.Museum_ID WHERE t1.open_year > 2010)", "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 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "Tell me the time/retired for Laps larger than 63 and has a grid of 20", "role": "user" }, { "content": "SELECT time_retired FROM table_name_97 WHERE laps > 63 AND grid = 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_27713030_3 (location_attendance VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the location and attendance on October 18?", "role": "user" }, { "content": "SELECT location_attendance FROM table_27713030_3 WHERE date = \"October 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_49 (result VARCHAR, competition VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What is the result of the UEFA Cup, against Palermo?", "role": "user" }, { "content": "SELECT result FROM table_name_49 WHERE competition = \"uefa cup\" AND opponent = \"palermo\"", "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_21350772_2 (gas_name VARCHAR)", "role": "system" }, { "content": "What is the 20 year for Nitrous Oxide?", "role": "user" }, { "content": "SELECT 20 AS _yr FROM table_21350772_2 WHERE gas_name = \"Nitrous oxide\"", "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_10592536_8 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR, replaced_by VARCHAR)", "role": "system" }, { "content": "What is the date of vacancy when the date of appointment is 28 november 2007 and replaced by is alex mcleish?", "role": "user" }, { "content": "SELECT date_of_vacancy FROM table_10592536_8 WHERE date_of_appointment = \"28 November 2007\" AND replaced_by = \"Alex McLeish\"", "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_24910733_2 (share VARCHAR, air_date VARCHAR)", "role": "system" }, { "content": "How many share figures are there for the episode that aired on October 17, 2007?", "role": "user" }, { "content": "SELECT COUNT(share) FROM table_24910733_2 WHERE air_date = \"October 17, 2007\"", "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 (bronze INTEGER, silver VARCHAR, nation VARCHAR)", "role": "system" }, { "content": "How many bronzes are there for the total nation with 112 silver and a total of 72?", "role": "user" }, { "content": "SELECT AVG(bronze) FROM table_name_39 WHERE \"total\" > 72 AND nation = \"total\" AND silver < 112", "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 (driver VARCHAR, chassis VARCHAR, rounds VARCHAR)", "role": "system" }, { "content": "What was the driver with chassis of t45 t44 and rounds of 7?", "role": "user" }, { "content": "SELECT driver FROM table_name_27 WHERE chassis = \"t45 t44\" AND rounds = \"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_24 (battle VARCHAR, bulgarian_commander VARCHAR)", "role": "system" }, { "content": "In what Battle was Bulgarian Commander of Gavril Radomir?", "role": "user" }, { "content": "SELECT battle FROM table_name_24 WHERE bulgarian_commander = \"gavril radomir\"", "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_10413597_5 (setting VARCHAR, no_in_series VARCHAR)", "role": "system" }, { "content": "How many settings where there for episode 29 of the season?", "role": "user" }, { "content": "SELECT COUNT(setting) FROM table_10413597_5 WHERE no_in_series = 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_name_45 (episode VARCHAR, air_date VARCHAR, viewers VARCHAR)", "role": "system" }, { "content": "What is the episode name that aired on July 23, 2009 with more than 3.31 viewers?", "role": "user" }, { "content": "SELECT episode FROM table_name_45 WHERE air_date = \"july 23, 2009\" AND viewers > 3.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_8 (tournament VARCHAR, opponent_in_the_final VARCHAR)", "role": "system" }, { "content": "In which tournament was Silke Meier the opponent in the final?", "role": "user" }, { "content": "SELECT tournament FROM table_name_8 WHERE opponent_in_the_final = \"silke meier\"", "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 (home_team VARCHAR)", "role": "system" }, { "content": "What did the home team of essendon score?", "role": "user" }, { "content": "SELECT home_team AS score FROM table_name_78 WHERE home_team = \"essendon\"", "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 (site VARCHAR, date VARCHAR)", "role": "system" }, { "content": "I want the site for september 29, 2013", "role": "user" }, { "content": "SELECT site FROM table_name_51 WHERE date = \"september 29, 2013\"", "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_12962773_2 (position VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What's Yotam Halperin's position?", "role": "user" }, { "content": "SELECT position FROM table_12962773_2 WHERE player = \"Yotam Halperin\"", "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_94 (rank VARCHAR, bronze VARCHAR)", "role": "system" }, { "content": "Which Rank has a Bronze of 3?", "role": "user" }, { "content": "SELECT rank FROM table_name_94 WHERE bronze = 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_1341453_40 (district VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "In what district was Tim Holden the incumbent? ", "role": "user" }, { "content": "SELECT district FROM table_1341453_40 WHERE incumbent = \"Tim Holden\"", "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 (location VARCHAR, years_in_gfl VARCHAR, nickname VARCHAR)", "role": "system" }, { "content": "What is the location of the Saints having 1979- as Years in GFL?", "role": "user" }, { "content": "SELECT location FROM table_name_37 WHERE years_in_gfl = \"1979-\" AND nickname = \"saints\"", "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 (time VARCHAR, week VARCHAR)", "role": "system" }, { "content": "What time was the game in week 2?", "role": "user" }, { "content": "SELECT time FROM table_name_15 WHERE week = 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_15 (format VARCHAR, catalog VARCHAR)", "role": "system" }, { "content": "What is the Format of the release with Catalog number RTRADLP491?", "role": "user" }, { "content": "SELECT format FROM table_name_15 WHERE catalog = \"rtradlp491\"", "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 (average_points_per_race_entered INTEGER, points VARCHAR, average_pre_2010 VARCHAR)", "role": "system" }, { "content": "What is the highest average points per race of the driver with less than 969 points and an average pre-2010 less than 0?", "role": "user" }, { "content": "SELECT MAX(average_points_per_race_entered) FROM table_name_75 WHERE points < 969 AND average_pre_2010 < 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_98 (event VARCHAR, days_held VARCHAR)", "role": "system" }, { "content": "What event has unknown as the days held.?", "role": "user" }, { "content": "SELECT event FROM table_name_98 WHERE days_held = \"unknown\"", "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_26368963_2 (under_15 VARCHAR, under_11 VARCHAR)", "role": "system" }, { "content": "Who is every Under-15 if Under-11 is Reeham Sedky?", "role": "user" }, { "content": "SELECT under_15 FROM table_26368963_2 WHERE under_11 = \"Reeham Sedky\"", "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_275506_1 (start_of_stage VARCHAR, year VARCHAR)", "role": "system" }, { "content": "How many entries for start of stage occur in the year 2006?", "role": "user" }, { "content": "SELECT COUNT(start_of_stage) FROM table_275506_1 WHERE year = \"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_31 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "Who was the away team when bournemouth was the home team?", "role": "user" }, { "content": "SELECT away_team FROM table_name_31 WHERE home_team = \"bournemouth\"", "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_68 (total VARCHAR, nation VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "What is the total number of Total, when Gold is less than 1, when Silver is greater than 0, when Rank is 14, and when Nation is Afghanistan?", "role": "user" }, { "content": "SELECT COUNT(total) FROM table_name_68 WHERE gold < 1 AND silver > 0 AND rank = \"14\" AND nation = \"afghanistan\"", "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 (hole VARCHAR, player VARCHAR)", "role": "system" }, { "content": "How many holes does Player Vijay Singh have?", "role": "user" }, { "content": "SELECT COUNT(hole) FROM table_name_61 WHERE player = \"vijay singh\"", "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 musical (Nominee VARCHAR)", "role": "system" }, { "content": "List the nominees that have been nominated more than two musicals.", "role": "user" }, { "content": "SELECT Nominee FROM musical GROUP BY Nominee 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_27 (percentage VARCHAR, played VARCHAR, first_game VARCHAR, lost VARCHAR)", "role": "system" }, { "content": "Which percentage has a first game before 1997, fewer than 2 losses, and fewer than 5 matches played?", "role": "user" }, { "content": "SELECT percentage FROM table_name_27 WHERE first_game < 1997 AND lost < 2 AND played < 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_97 (l_100km_urban__cold_ INTEGER, mpg_us_combined VARCHAR, l_100km_combined VARCHAR, l_100km_extra_urban VARCHAR, mpg_uk_combined VARCHAR)", "role": "system" }, { "content": "What is the average L/100km urban value having an L/100km extraurban under 7.2, mpg combined in the UK under 39.8, l/100km combined over 7.9, and mpg combined in the US under 25.1?", "role": "user" }, { "content": "SELECT AVG(l_100km_urban__cold_) FROM table_name_97 WHERE l_100km_extra_urban < 7.2 AND mpg_uk_combined < 39.8 AND l_100km_combined > 7.9 AND mpg_us_combined < 25.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_90 (profession VARCHAR, city VARCHAR)", "role": "system" }, { "content": "What is the profession of the housemate from Leskovac city?", "role": "user" }, { "content": "SELECT profession FROM table_name_90 WHERE city = \"leskovac\"", "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_88 (moving_from VARCHAR, transfer_window VARCHAR, source VARCHAR)", "role": "system" }, { "content": "Where is the moving from location with a transfer window of summer and the source kerkida.net?", "role": "user" }, { "content": "SELECT moving_from FROM table_name_88 WHERE transfer_window = \"summer\" AND source = \"kerkida.net\"", "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 (rebuilt VARCHAR, builder VARCHAR, name_as_rebuilt VARCHAR)", "role": "system" }, { "content": "Which Rebuilt has a Builder of derby, and a Name as rebuilt of ben madigan?", "role": "user" }, { "content": "SELECT rebuilt FROM table_name_64 WHERE builder = \"derby\" AND name_as_rebuilt = \"ben madigan\"", "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 (time VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "What was the time when Shinya Aoki was the opponent?", "role": "user" }, { "content": "SELECT time FROM table_name_57 WHERE opponent = \"shinya aoki\"", "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 (entrant VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What entrant appeared in 1969?", "role": "user" }, { "content": "SELECT entrant FROM table_name_24 WHERE year = 1969", "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 (prev VARCHAR, chng VARCHAR, rating VARCHAR)", "role": "system" }, { "content": "Can you tell me the total number of Prev that has the Chng of +10, and the Rating larger than 2765?", "role": "user" }, { "content": "SELECT COUNT(prev) FROM table_name_26 WHERE chng = \"+10\" AND rating > 2765", "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_15778392_1 (result VARCHAR, original_artist VARCHAR)", "role": "system" }, { "content": "WHAT IS THE RESULT FOR THE SONG WHERE THE ORIGINAL ARTIST IS BETTY EVERETT?", "role": "user" }, { "content": "SELECT result FROM table_15778392_1 WHERE original_artist = \"Betty Everett\"", "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_27529608_21 (age_s_ VARCHAR, act VARCHAR)", "role": "system" }, { "content": "What is the age of the act who is a rapper?", "role": "user" }, { "content": "SELECT age_s_ FROM table_27529608_21 WHERE act = \"Rapper\"", "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 (overall_rank VARCHAR, swimmer VARCHAR)", "role": "system" }, { "content": "Tell me the overall rank for roland schoeman", "role": "user" }, { "content": "SELECT overall_rank FROM table_name_50 WHERE swimmer = \"roland schoeman\"", "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_222771_1 (alpha_3_code VARCHAR, alpha_2_code VARCHAR)", "role": "system" }, { "content": "What is the Alpha 3 code for the area also known as FO?", "role": "user" }, { "content": "SELECT alpha_3_code FROM table_222771_1 WHERE alpha_2_code = \"FO\"", "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_1231316_4 (location VARCHAR, athlete VARCHAR)", "role": "system" }, { "content": "Where is Dwain Chambers from", "role": "user" }, { "content": "SELECT location FROM table_1231316_4 WHERE athlete = \"Dwain Chambers\"", "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 (score VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Opponent of andry laffita had what score?", "role": "user" }, { "content": "SELECT score FROM table_name_7 WHERE opponent = \"andry laffita\"", "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 (notes VARCHAR, rank VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What notes have a rank greater than 2, with mexico as the country?", "role": "user" }, { "content": "SELECT notes FROM table_name_64 WHERE rank > 2 AND country = \"mexico\"", "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 (winning_score VARCHAR, tournament VARCHAR)", "role": "system" }, { "content": "What was the winning score for oldsmobile lpga classic?", "role": "user" }, { "content": "SELECT winning_score FROM table_name_64 WHERE tournament = \"oldsmobile lpga classic\"", "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 (signal_quality VARCHAR, station_call_letters VARCHAR)", "role": "system" }, { "content": "What signal quality does the KCAL-DT channel have?", "role": "user" }, { "content": "SELECT signal_quality FROM table_name_96 WHERE station_call_letters = \"kcal-dt\"", "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, player VARCHAR, place VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What was the Score for T9 United States Player Kirk Triplett?", "role": "user" }, { "content": "SELECT score FROM table_name_14 WHERE place = \"t9\" AND country = \"united states\" AND player = \"kirk triplett\"", "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 (democratic_ticket VARCHAR, office VARCHAR)", "role": "system" }, { "content": "Who was on the Democratic ticket for the Office of Attorney General?", "role": "user" }, { "content": "SELECT democratic_ticket FROM table_name_70 WHERE office = \"attorney general\"", "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 (lead VARCHAR, skip VARCHAR, season VARCHAR)", "role": "system" }, { "content": "Who was the lead with John Shuster as skip in the season of 2009–10?", "role": "user" }, { "content": "SELECT lead FROM table_name_83 WHERE skip = \"john shuster\" AND season = \"2009–10\"", "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 (time_to_ft__m__at_40 VARCHAR, shell__lb_ VARCHAR, max_height__ft_ VARCHAR)", "role": "system" }, { "content": "What is the amount of time (sum) at 40° that it takes a 16 lb shell to reach a maximum of no more than 22,000 ft?", "role": "user" }, { "content": "SELECT COUNT(time_to_ft__m__at_40) AS °__seconds_ FROM table_name_80 WHERE shell__lb_ = 16 AND max_height__ft_ < 22 OFFSET 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_23248869_10 (record VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What is every record for the team Boston?", "role": "user" }, { "content": "SELECT record FROM table_23248869_10 WHERE team = \"Boston\"", "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_94 (rank INTEGER, time VARCHAR)", "role": "system" }, { "content": "What is the rank for the team with a Time of 1:12.40.28?", "role": "user" }, { "content": "SELECT SUM(rank) FROM table_name_94 WHERE time = \"1:12.40.28\"", "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_24949975_1 (home_team VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who as the home team for game on 5 october 2011?", "role": "user" }, { "content": "SELECT home_team FROM table_24949975_1 WHERE date = \"5 October 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_88 (league INTEGER, play_offs VARCHAR, total VARCHAR)", "role": "system" }, { "content": "Name the lowest league for play-offs more than 0 and total of 25", "role": "user" }, { "content": "SELECT MIN(league) FROM table_name_88 WHERE play_offs > 0 AND total = 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_1973729_2 (current_conference VARCHAR, nickname VARCHAR)", "role": "system" }, { "content": "Which conference has the nickname Lions?", "role": "user" }, { "content": "SELECT current_conference FROM table_1973729_2 WHERE nickname = \"Lions\"", "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 (points VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What were the points on February 10?", "role": "user" }, { "content": "SELECT points FROM table_name_15 WHERE date = \"february 10\"", "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_22 (home_captain VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "Who is the home captain that played at Edgbaston?", "role": "user" }, { "content": "SELECT home_captain FROM table_name_22 WHERE venue = \"edgbaston\"", "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_63 (attendance INTEGER, week VARCHAR)", "role": "system" }, { "content": "What was average attendance during week 15?", "role": "user" }, { "content": "SELECT AVG(attendance) FROM table_name_63 WHERE week = 15", "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_63 (tie_no VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "Which Tie number had Middlesbrough as the away team?", "role": "user" }, { "content": "SELECT tie_no FROM table_name_63 WHERE away_team = \"middlesbrough\"", "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_88 (field VARCHAR, opponent VARCHAR, result VARCHAR)", "role": "system" }, { "content": "What field is an opponent of cannons and resulted with w 16-11?", "role": "user" }, { "content": "SELECT field FROM table_name_88 WHERE opponent = \"cannons\" AND result = \"w 16-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 Courses (author_id VARCHAR); CREATE TABLE Course_Authors_and_Tutors (address_line_1 VARCHAR, author_id VARCHAR)", "role": "system" }, { "content": "Find the addresses and author IDs of the course authors that teach at least two courses.", "role": "user" }, { "content": "SELECT T1.address_line_1, T2.author_id FROM Course_Authors_and_Tutors AS T1 JOIN Courses AS T2 ON T1.author_id = T2.author_id GROUP BY T2.author_id 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_149426_4 (available_subnets INTEGER, network_mask VARCHAR)", "role": "system" }, { "content": "When the network mask is 255.255.255.128 what is the lowest available subnet?", "role": "user" }, { "content": "SELECT MIN(available_subnets) FROM table_149426_4 WHERE network_mask = \"255.255.255.128\"", "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_28281704_1 (tenant VARCHAR, country VARCHAR, stadium VARCHAR)", "role": "system" }, { "content": "Name the number of tenants for russia at the saransk stadium", "role": "user" }, { "content": "SELECT COUNT(tenant) FROM table_28281704_1 WHERE country = \"Russia\" AND stadium = \"Saransk stadium\"", "role": "assistant" } ]