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_88 (date VARCHAR, opponent_number VARCHAR)", "role": "system" }, { "content": "On what day(s) did the Gophers play against Michigan?", "role": "user" }, { "content": "SELECT date FROM table_name_88 WHERE opponent_number = \"michigan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_28 (score VARCHAR, competition VARCHAR)", "role": "system" }, { "content": "WHAT IS THE SCORE FOR 2010 fifa world cup qualification?", "role": "user" }, { "content": "SELECT score FROM table_name_28 WHERE competition = \"2010 fifa world cup qualification\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (area__hectare_ VARCHAR, parish VARCHAR)", "role": "system" }, { "content": "What is the area for Worth Parish?", "role": "user" }, { "content": "SELECT area__hectare_ FROM table_name_22 WHERE parish = \"worth\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (birthplace VARCHAR, agency VARCHAR, generation VARCHAR)", "role": "system" }, { "content": "What's the birthplace of the third (2009) generation member from the lespros entertainment agency?", "role": "user" }, { "content": "SELECT birthplace FROM table_name_81 WHERE agency = \"lespros entertainment\" AND generation = \"third (2009)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (role VARCHAR, first_us_national_tour VARCHAR)", "role": "system" }, { "content": "Which Role has a First US National Tour of roger bart?", "role": "user" }, { "content": "SELECT role FROM table_name_19 WHERE first_us_national_tour = \"roger bart\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (winner VARCHAR, third_place VARCHAR)", "role": "system" }, { "content": "Was the third place winner Yannick Noah?", "role": "user" }, { "content": "SELECT winner FROM table_name_87 WHERE third_place = \"yannick noah\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (clubs VARCHAR, matches VARCHAR)", "role": "system" }, { "content": "What are the clubs with 46 matches?", "role": "user" }, { "content": "SELECT clubs FROM table_name_57 WHERE matches = 46", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (position INTEGER, name VARCHAR, drawn VARCHAR)", "role": "system" }, { "content": "what is the lowest position when the name is esv türkheim, and Drawn more than 0?", "role": "user" }, { "content": "SELECT MIN(position) FROM table_name_12 WHERE name = \"esv türkheim\" AND drawn > 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_20 (week_12_nov_19 VARCHAR, week_13_nov_26 VARCHAR)", "role": "system" }, { "content": "What happened in week 12 when week 13 resulted in Tennessee (9-1)?", "role": "user" }, { "content": "SELECT week_12_nov_19 FROM table_name_20 WHERE week_13_nov_26 = \"tennessee (9-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_24901152_4 (opponents VARCHAR, championship VARCHAR)", "role": "system" }, { "content": "Who were the opponents in the Rome championship?", "role": "user" }, { "content": "SELECT opponents FROM table_24901152_4 WHERE championship = \"Rome\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (rank VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What is the rank associated with 141.48 points?", "role": "user" }, { "content": "SELECT rank FROM table_name_71 WHERE points = 141.48", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341930_18 (party VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "which affiliation is james h. morrison part of", "role": "user" }, { "content": "SELECT party FROM table_1341930_18 WHERE incumbent = \"James H. Morrison\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (date VARCHAR, comment VARCHAR, duration VARCHAR)", "role": "system" }, { "content": "What is Date, when Comment is Tailcone On, Lakebed Landing, and when Duration is 5min 34 s?", "role": "user" }, { "content": "SELECT date FROM table_name_52 WHERE comment = \"tailcone on, lakebed landing\" AND duration = \"5min 34 s\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23486853_8 (date VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What is every date with a record of 30–34–12?", "role": "user" }, { "content": "SELECT date FROM table_23486853_8 WHERE record = \"30–34–12\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_5 (league VARCHAR, europe VARCHAR)", "role": "system" }, { "content": "The Europe listing of 117 0 (8) belongs to what league?", "role": "user" }, { "content": "SELECT league FROM table_name_5 WHERE europe = \"117 0 (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_77 (country VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What country does Rocco Mediate play for?", "role": "user" }, { "content": "SELECT country FROM table_name_77 WHERE player = \"rocco mediate\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (attendance VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the Attendance of the game with a Score of 0 – 0?", "role": "user" }, { "content": "SELECT attendance FROM table_name_94 WHERE score = \"0 – 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_40 (points VARCHAR, club VARCHAR)", "role": "system" }, { "content": "Club Clwb Rygbi Cymru Caerdydd RFC has how many points?", "role": "user" }, { "content": "SELECT points FROM table_name_40 WHERE club = \"clwb rygbi cymru caerdydd rfc\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Dogs (age INTEGER)", "role": "system" }, { "content": "What is the average age of all the dogs?", "role": "user" }, { "content": "SELECT AVG(age) FROM Dogs", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25718552_2 (Ends VARCHAR, blank_ends INTEGER)", "role": "system" }, { "content": "How many ends were won where the blank ends are smaller than 3.0?", "role": "user" }, { "content": "SELECT Ends AS won FROM table_25718552_2 WHERE blank_ends < 3.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_76 (gold VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "Who won gold in the games where Pan Cheng-Tsung won silver?", "role": "user" }, { "content": "SELECT gold FROM table_name_76 WHERE silver = \"pan cheng-tsung\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (goals VARCHAR, assists VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is Goals, when Assists is greater than 28, and when Player is Steve Walker?", "role": "user" }, { "content": "SELECT goals FROM table_name_89 WHERE assists > 28 AND player = \"steve walker\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (seats_2010 INTEGER, in_de_creased_by VARCHAR, seats_2005 VARCHAR, governorate VARCHAR)", "role": "system" }, { "content": "Name the lowest Seats 2010 which has Seats 2005 smaller than 9, and a Governorate of al muthanna governorate, and an In/de-creased by larger than 2?", "role": "user" }, { "content": "SELECT MIN(seats_2010) FROM table_name_46 WHERE seats_2005 < 9 AND governorate = \"al muthanna governorate\" AND in_de_creased_by > 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 (record VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was their record on December 4?", "role": "user" }, { "content": "SELECT record FROM table_name_1 WHERE date = \"december 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_78 (title VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What is the title of Senusret I?", "role": "user" }, { "content": "SELECT title FROM table_name_78 WHERE name = \"senusret i\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (athlete VARCHAR, city VARCHAR)", "role": "system" }, { "content": "What is the Athlete from Riverbank, California?", "role": "user" }, { "content": "SELECT athlete FROM table_name_67 WHERE city = \"riverbank, california\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21100348_11 (rank INTEGER, strike_rate VARCHAR)", "role": "system" }, { "content": "What is the rank for a strike rate of 91.67?", "role": "user" }, { "content": "SELECT MAX(rank) FROM table_21100348_11 WHERE strike_rate = \"91.67\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_30 (lost VARCHAR, against VARCHAR, points VARCHAR)", "role": "system" }, { "content": "Which amount of lost had an against of more than 22 and 9 points?", "role": "user" }, { "content": "SELECT lost FROM table_name_30 WHERE against > 22 AND points = 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_27 (total INTEGER, player VARCHAR)", "role": "system" }, { "content": "Bernhard Langer maximum total was what?", "role": "user" }, { "content": "SELECT MAX(total) FROM table_name_27 WHERE player = \"bernhard langer\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE PHOTOS (Name VARCHAR)", "role": "system" }, { "content": "How many distinct names are associated with all the photos?", "role": "user" }, { "content": "SELECT COUNT(DISTINCT Name) FROM PHOTOS", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (joint_music_award VARCHAR, year VARCHAR, rthk VARCHAR)", "role": "system" }, { "content": "How many Joint Music Awards were there with a RTHK of 1, in a Year before 2006?", "role": "user" }, { "content": "SELECT joint_music_award FROM table_name_81 WHERE year < 2006 AND rthk = \"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_2 (pole_position VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who had the pole position on 7 August?", "role": "user" }, { "content": "SELECT pole_position FROM table_name_2 WHERE date = \"7 august\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2509112_3 (language VARCHAR, villa_rivero_municipality VARCHAR)", "role": "system" }, { "content": "If Villa Rivero Municipality if 7, what is the language?", "role": "user" }, { "content": "SELECT language FROM table_2509112_3 WHERE villa_rivero_municipality = 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 manager (Country VARCHAR, Age VARCHAR)", "role": "system" }, { "content": "Show the countries that have managers of age above 50 or below 46.", "role": "user" }, { "content": "SELECT Country FROM manager WHERE Age > 50 OR Age < 46", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1342233_11 (candidates VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "Which district is associated with the incumbent Carl Vinson?", "role": "user" }, { "content": "SELECT candidates FROM table_1342233_11 WHERE incumbent = \"Carl Vinson\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (bronze INTEGER, rank VARCHAR, gold VARCHAR, nation VARCHAR)", "role": "system" }, { "content": "How many France bronze have a gold of more than 1 and a rank of 0?", "role": "user" }, { "content": "SELECT SUM(bronze) FROM table_name_79 WHERE gold > 1 AND nation = \"france\" AND rank < 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_12032893_1 (home_town VARCHAR, high_school VARCHAR)", "role": "system" }, { "content": "Which home town was the high school Catholic University located in?", "role": "user" }, { "content": "SELECT home_town FROM table_12032893_1 WHERE high_school = \"Catholic University\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2266230_1 (report VARCHAR, year VARCHAR)", "role": "system" }, { "content": "Name the report for 2003", "role": "user" }, { "content": "SELECT report FROM table_2266230_1 WHERE year = \"2003\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14342367_15 (field_goals__5_points_ INTEGER)", "role": "system" }, { "content": "How many 5 points field goals is minimum", "role": "user" }, { "content": "SELECT MIN(field_goals__5_points_) FROM table_14342367_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_71 (date VARCHAR, streak VARCHAR, team VARCHAR)", "role": "system" }, { "content": "Which Date has a Streak of loss 2, and a Team of @ boston celtics?", "role": "user" }, { "content": "SELECT date FROM table_name_71 WHERE streak = \"loss 2\" AND team = \"@ boston celtics\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (to_par VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is the To Par for Player Chris Riley?", "role": "user" }, { "content": "SELECT to_par FROM table_name_62 WHERE player = \"chris riley\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (high_points VARCHAR, opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the high points for opponent Mid-Michigan destroyers on January 3?", "role": "user" }, { "content": "SELECT high_points FROM table_name_22 WHERE opponent = \"mid-michigan destroyers\" AND date = \"january 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_51 (team_s_ VARCHAR, time VARCHAR)", "role": "system" }, { "content": "What teams used a track 3:29 long?", "role": "user" }, { "content": "SELECT team_s_ FROM table_name_51 WHERE time = \"3: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 races (name VARCHAR, circuitid VARCHAR, year VARCHAR); CREATE TABLE circuits (circuitid VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What are the names of races that were held after 2017 and the circuits were in the country of Spain?", "role": "user" }, { "content": "SELECT T1.name FROM races AS T1 JOIN circuits AS T2 ON T1.circuitid = T2.circuitid WHERE T2.country = \"Spain\" AND T1.year > 2017", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (tv_time VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Which TV Time has a Date of december 26, 1999?", "role": "user" }, { "content": "SELECT tv_time FROM table_name_63 WHERE date = \"december 26, 1999\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (december INTEGER, score VARCHAR)", "role": "system" }, { "content": "What is the lowest December, when Score is \"4 - 4\"?", "role": "user" }, { "content": "SELECT MIN(december) FROM table_name_66 WHERE score = \"4 - 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_6 (tries INTEGER, club VARCHAR, points VARCHAR)", "role": "system" }, { "content": "Name the fewest tries for leicester tigers with points less than 207", "role": "user" }, { "content": "SELECT MIN(tries) FROM table_name_6 WHERE club = \"leicester tigers\" AND points < 207", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What opponent has December 6, 1964 as the date?", "role": "user" }, { "content": "SELECT opponent FROM table_name_40 WHERE date = \"december 6, 1964\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (comp INTEGER, player VARCHAR, rating VARCHAR)", "role": "system" }, { "content": "What was the Comp average, having Gino Guidugli as a player and a rating of more than 92.2?", "role": "user" }, { "content": "SELECT AVG(comp) FROM table_name_3 WHERE player = \"gino guidugli\" AND rating > 92.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 election (Delegate VARCHAR, District VARCHAR)", "role": "system" }, { "content": "Show the delegate from district 1 in election.", "role": "user" }, { "content": "SELECT Delegate FROM election WHERE District = 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_18 (played__pj_ INTEGER, place__posición_ VARCHAR, lost__pp_ VARCHAR)", "role": "system" }, { "content": "What is the average number played for place 2 and more than 4 lost?", "role": "user" }, { "content": "SELECT AVG(played__pj_) FROM table_name_18 WHERE place__posición_ = 2 AND lost__pp_ > 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_68 (time VARCHAR, event VARCHAR)", "role": "system" }, { "content": "How long was the time for the Legacy Fighting Championship 12?", "role": "user" }, { "content": "SELECT time FROM table_name_68 WHERE event = \"legacy fighting championship 12\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (year VARCHAR, outcome VARCHAR, score VARCHAR)", "role": "system" }, { "content": "In what year was Xavier Malisse the runner-up with scores of 4–6, 6–4, [8–10]?", "role": "user" }, { "content": "SELECT year FROM table_name_65 WHERE outcome = \"runner-up\" AND score = \"4–6, 6–4, [8–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_6 (coach VARCHAR, location VARCHAR)", "role": "system" }, { "content": "Who is the coach of the team from Port Pirie?", "role": "user" }, { "content": "SELECT coach FROM table_name_6 WHERE location = \"port pirie\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341598_39 (district VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "In which district is Robert W. Edgar the incumbent?", "role": "user" }, { "content": "SELECT district FROM table_1341598_39 WHERE incumbent = \"Robert W. Edgar\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (Id VARCHAR)", "role": "system" }, { "content": "During the Tournament in which Jiří Novák was absent(A) in 1995, absent(A) in 1997, and made it to the 3rd round (3R) in 2003, how did he do in 2006?", "role": "user" }, { "content": "SELECT 2006 FROM table_name_31 WHERE 1995 = \"a\" AND 1997 = \"a\" AND 2003 = \"3r\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (area VARCHAR, decile VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Glenorchy school has a decile less than 10 and is in what area?", "role": "user" }, { "content": "SELECT area FROM table_name_11 WHERE decile < 10 AND name = \"glenorchy school\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (event VARCHAR, method VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What Event used submission (rear naked choke) with 9-4?", "role": "user" }, { "content": "SELECT event FROM table_name_11 WHERE method = \"submission (rear naked choke)\" AND record = \"9-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_56 (long VARCHAR, avg_g VARCHAR)", "role": "system" }, { "content": "For the Avg/G of 5.9, what was the long?", "role": "user" }, { "content": "SELECT long FROM table_name_56 WHERE avg_g = \"5.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_3 (record VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Which Record has a Score of w 107–102 (ot)?", "role": "user" }, { "content": "SELECT record FROM table_name_3 WHERE score = \"w 107–102 (ot)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_77 (mpeg_1 VARCHAR, realvideo VARCHAR)", "role": "system" }, { "content": "Tell me the MPEG-1 for real video of no", "role": "user" }, { "content": "SELECT mpeg_1 FROM table_name_77 WHERE realvideo = \"no\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22871239_5 (high_rebounds VARCHAR, _number VARCHAR)", "role": "system" }, { "content": "How many high rebound catagories are listed for game number 5? ", "role": "user" }, { "content": "SELECT COUNT(high_rebounds) FROM table_22871239_5 WHERE _number = 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_11630008_8 (title VARCHAR, production_code VARCHAR)", "role": "system" }, { "content": "What is the title of the episode with the production code 624?", "role": "user" }, { "content": "SELECT title FROM table_11630008_8 WHERE production_code = 624", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18823880_10 (l2_cache VARCHAR, release_date VARCHAR, part_number_s_ VARCHAR)", "role": "system" }, { "content": "When by80607002529af is the part number and september 2009 is the release date what is the l2 cache?", "role": "user" }, { "content": "SELECT l2_cache FROM table_18823880_10 WHERE release_date = \"September 2009\" AND part_number_s_ = \"BY80607002529AF\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26961951_6 (written_by VARCHAR, directed_by VARCHAR)", "role": "system" }, { "content": "Who was the writer in the episode directed by Jesse Peretz?", "role": "user" }, { "content": "SELECT written_by FROM table_26961951_6 WHERE directed_by = \"Jesse Peretz\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (date VARCHAR, surface VARCHAR)", "role": "system" }, { "content": "Which date has a Surface of carpet (i)?", "role": "user" }, { "content": "SELECT date FROM table_name_44 WHERE surface = \"carpet (i)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (nationality VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What nationality is Daryn Fersovich?", "role": "user" }, { "content": "SELECT nationality FROM table_name_47 WHERE player = \"daryn fersovich\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (played INTEGER, lost VARCHAR, position VARCHAR, goals_against VARCHAR)", "role": "system" }, { "content": "What is the lowest played that has a position greater than 6, 61 as the goals against, with a loss less than 16?", "role": "user" }, { "content": "SELECT MIN(played) FROM table_name_58 WHERE position > 6 AND goals_against = 61 AND lost < 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_64 (winning_score VARCHAR, runner_s__up VARCHAR)", "role": "system" }, { "content": "What winning score has in-kyung kim as the runner(s)-up?", "role": "user" }, { "content": "SELECT winning_score FROM table_name_64 WHERE runner_s__up = \"in-kyung kim\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (call_sign VARCHAR, virtual_channel VARCHAR)", "role": "system" }, { "content": "Virtual channel of 16.5 has what call sign?", "role": "user" }, { "content": "SELECT call_sign FROM table_name_23 WHERE virtual_channel = \"16.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_32 (losing_bonus VARCHAR, points VARCHAR)", "role": "system" }, { "content": "If the points were 0, what was the losing bonus?", "role": "user" }, { "content": "SELECT losing_bonus FROM table_name_32 WHERE points = \"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_15 (venue VARCHAR, batting_team VARCHAR, batting_partners VARCHAR)", "role": "system" }, { "content": "In what venue was the Batting team India who featured partners Sachin Tendulkar and Rahul Dravid?", "role": "user" }, { "content": "SELECT venue FROM table_name_15 WHERE batting_team = \"india\" AND batting_partners = \"sachin tendulkar and rahul dravid\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_84 (score VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What was the score when the home team was goole town?", "role": "user" }, { "content": "SELECT score FROM table_name_84 WHERE home_team = \"goole town\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE cinema (LOCATION VARCHAR, capacity INTEGER)", "role": "system" }, { "content": "Show all the locations with at least two cinemas with capacity above 300.", "role": "user" }, { "content": "SELECT LOCATION FROM cinema WHERE capacity > 300 GROUP BY LOCATION 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_65 (error VARCHAR, size__steps_ VARCHAR, just__cents_ VARCHAR)", "role": "system" }, { "content": "What is the error that has a size (steps) more than 5 and a just (cents) value 536.95", "role": "user" }, { "content": "SELECT error FROM table_name_65 WHERE size__steps_ > 5 AND just__cents_ = 536.95", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25519358_1 (vertical_0_b VARCHAR, horizontal_0_a VARCHAR)", "role": "system" }, { "content": "Name the vertical for 明勾(ys月南)", "role": "user" }, { "content": "SELECT vertical_0_b FROM table_25519358_1 WHERE horizontal_0_a = \"明勾(YS月南)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (grid INTEGER, manufacturer VARCHAR, rider VARCHAR)", "role": "system" }, { "content": "Can you tell me the sum of Grid that has the Manufacturer of aprilia, and the sandro cortese?", "role": "user" }, { "content": "SELECT SUM(grid) FROM table_name_96 WHERE manufacturer = \"aprilia\" AND rider = \"sandro cortese\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (runners_up VARCHAR, venue VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What team was runner-up at Bergisch Gladbach in 1983?", "role": "user" }, { "content": "SELECT runners_up FROM table_name_2 WHERE venue = \"bergisch gladbach\" AND year = \"1983\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_53 (platform VARCHAR, latest_stable_release VARCHAR)", "role": "system" }, { "content": "What is the platform for the latest release 5.0.3?", "role": "user" }, { "content": "SELECT platform FROM table_name_53 WHERE latest_stable_release = \"5.0.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_26399982_2 (weeks_at_peak INTEGER)", "role": "system" }, { "content": "What smallest amount in the weeks at peak column?", "role": "user" }, { "content": "SELECT MIN(weeks_at_peak) FROM table_26399982_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_97 (mls_team VARCHAR, affiliation VARCHAR)", "role": "system" }, { "content": "What MLS team is affiliated with yale university?", "role": "user" }, { "content": "SELECT mls_team FROM table_name_97 WHERE affiliation = \"yale university\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14342210_2 (player VARCHAR, position VARCHAR)", "role": "system" }, { "content": "Name all the players for fullback", "role": "user" }, { "content": "SELECT player FROM table_14342210_2 WHERE position = \"Fullback\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (rank_by_average VARCHAR, number_of_dances VARCHAR, total_points VARCHAR)", "role": "system" }, { "content": "What is the total rank by average for 2 dances, which have more than 37 total points?", "role": "user" }, { "content": "SELECT COUNT(rank_by_average) FROM table_name_99 WHERE number_of_dances = 2 AND total_points > 37", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (player VARCHAR, position VARCHAR)", "role": "system" }, { "content": "What player had the position guard/forward?", "role": "user" }, { "content": "SELECT player FROM table_name_83 WHERE position = \"guard/forward\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20854943_2 (loa__metres_ VARCHAR, yacht VARCHAR)", "role": "system" }, { "content": "How many LOA (metres) reported for Black Jack?", "role": "user" }, { "content": "SELECT COUNT(loa__metres_) FROM table_20854943_2 WHERE yacht = \"Black Jack\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (nation VARCHAR, rank VARCHAR, silver VARCHAR, bronze VARCHAR, gold VARCHAR)", "role": "system" }, { "content": "Which nation has a bronze greater than 0, a gold greater than 0, a silver greater than 0, and 5 as the rank?", "role": "user" }, { "content": "SELECT nation FROM table_name_88 WHERE bronze > 0 AND gold > 0 AND silver > 0 AND rank = \"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_23286158_8 (record VARCHAR, location_attendance VARCHAR)", "role": "system" }, { "content": "Name the record for rose garden 20,565 attendance", "role": "user" }, { "content": "SELECT record FROM table_23286158_8 WHERE location_attendance = \"Rose Garden 20,565\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (points VARCHAR, player VARCHAR)", "role": "system" }, { "content": "How many points did Denis Pederson have?", "role": "user" }, { "content": "SELECT points FROM table_name_79 WHERE player = \"denis pederson\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (position INTEGER, wins VARCHAR, draws VARCHAR)", "role": "system" }, { "content": "What is the position when wins are fewer than 14 and draws are fewer than 3?", "role": "user" }, { "content": "SELECT AVG(position) FROM table_name_81 WHERE wins < 14 AND draws < 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_82 (date VARCHAR, promotor VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Which date has the promoter Frank Moloney and the opponent Georgi Iliev?", "role": "user" }, { "content": "SELECT date FROM table_name_82 WHERE promotor = \"frank moloney\" AND opponent = \"georgi iliev\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (team_1 VARCHAR)", "role": "system" }, { "content": "Name the 2nd leg for team 1 of hamburg", "role": "user" }, { "content": "SELECT 2 AS nd_leg FROM table_name_90 WHERE team_1 = \"hamburg\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (laps INTEGER, rank VARCHAR)", "role": "system" }, { "content": "What is the fewest number of laps completed by a rank 32?", "role": "user" }, { "content": "SELECT MIN(laps) FROM table_name_12 WHERE rank = \"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_name_59 (record VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the record of the game on February 25, 2008?", "role": "user" }, { "content": "SELECT record FROM table_name_59 WHERE date = \"february 25, 2008\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_85 (score VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Name the score which has opponent of stefano galvani", "role": "user" }, { "content": "SELECT score FROM table_name_85 WHERE opponent = \"stefano galvani\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28715942_6 (vocal_percussionist VARCHAR, original_artist VARCHAR)", "role": "system" }, { "content": "Who is the percussionist for The Coral?", "role": "user" }, { "content": "SELECT vocal_percussionist FROM table_28715942_6 WHERE original_artist = \"The Coral\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_95 (date VARCHAR, score VARCHAR, loss VARCHAR)", "role": "system" }, { "content": "What date has 5-3 as the score, and holt (1-1) as a loss?", "role": "user" }, { "content": "SELECT date FROM table_name_95 WHERE score = \"5-3\" AND loss = \"holt (1-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_50 (winning_team VARCHAR, losing_team VARCHAR)", "role": "system" }, { "content": "What is the Winning Team, when Losing Team is South Sydney Rabbitohs?", "role": "user" }, { "content": "SELECT winning_team FROM table_name_50 WHERE losing_team = \"south sydney rabbitohs\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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 (rally_hq VARCHAR, round VARCHAR)", "role": "system" }, { "content": "Where was the Rally HQ for Round 1?", "role": "user" }, { "content": "SELECT rally_hq FROM table_name_9 WHERE round = 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 tweets (uid VARCHAR); CREATE TABLE user_profiles (name VARCHAR, uid VARCHAR)", "role": "system" }, { "content": "Find the names of users who have more than one tweet.", "role": "user" }, { "content": "SELECT T1.name FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) > 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_14778650_1 (writer VARCHAR, length VARCHAR)", "role": "system" }, { "content": "Who was the writer for the song 4:29 in length?", "role": "user" }, { "content": "SELECT writer FROM table_14778650_1 WHERE length = \"4:29\"", "role": "assistant" } ]