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_23248910_6 (location_attendance VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What location and it's attendance was the game against the Nets?", "role": "user" }, { "content": "SELECT location_attendance FROM table_23248910_6 WHERE team = \"Nets\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (frequency VARCHAR, model_number VARCHAR)", "role": "system" }, { "content": "What is Frequency, when Model Number is Pentium II 400?", "role": "user" }, { "content": "SELECT frequency FROM table_name_59 WHERE model_number = \"pentium ii 400\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (total INTEGER, silver INTEGER)", "role": "system" }, { "content": "Name the Total which has a Silver larger than 19?", "role": "user" }, { "content": "SELECT MAX(total) FROM table_name_70 WHERE silver > 19", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_60 (gnu_linux VARCHAR, haiku VARCHAR, client VARCHAR)", "role": "system" }, { "content": "Which GNU/Linux had no haiku and a client of airdc++?", "role": "user" }, { "content": "SELECT gnu_linux FROM table_name_60 WHERE haiku = \"no\" AND client = \"airdc++\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18268826_1 (directed_by VARCHAR, us_viewers__million_ VARCHAR)", "role": "system" }, { "content": "Who directed the episode seen by 3.93 million people in the US?", "role": "user" }, { "content": "SELECT directed_by FROM table_18268826_1 WHERE us_viewers__million_ = \"3.93\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1342359_15 (candidates VARCHAR, district VARCHAR)", "role": "system" }, { "content": "who are the candidates with district being kansas 4", "role": "user" }, { "content": "SELECT candidates FROM table_1342359_15 WHERE district = \"Kansas 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_17 (events INTEGER, top_10 INTEGER)", "role": "system" }, { "content": "I want the average events for top 10 less than 4", "role": "user" }, { "content": "SELECT AVG(events) FROM table_name_17 WHERE top_10 < 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_92 (chassis VARCHAR, points VARCHAR, entrant VARCHAR)", "role": "system" }, { "content": "What chassis has smaller than 9 points by Equipe Rosier?", "role": "user" }, { "content": "SELECT chassis FROM table_name_92 WHERE points < 9 AND entrant = \"equipe rosier\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (qual VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What was Tony Bettenhausen's qualifying time in 1947?", "role": "user" }, { "content": "SELECT qual FROM table_name_61 WHERE year = \"1947\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (championship_game VARCHAR, win__percentage VARCHAR)", "role": "system" }, { "content": "If a team had a percentage of games won recorded as .429, what Championship Game was played?", "role": "user" }, { "content": "SELECT championship_game FROM table_name_82 WHERE win__percentage = \".429\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (week INTEGER, result VARCHAR)", "role": "system" }, { "content": "Which Week had a Result of w 23-17?", "role": "user" }, { "content": "SELECT SUM(week) FROM table_name_58 WHERE result = \"w 23-17\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26842217_12 (result VARCHAR, broadcast VARCHAR)", "role": "system" }, { "content": "What was the result in the game broadcast on the Big East Network? ", "role": "user" }, { "content": "SELECT result FROM table_26842217_12 WHERE broadcast = \"Big East Network\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18220102_1 (number_of_screening VARCHAR, opening_film VARCHAR)", "role": "system" }, { "content": "How many number of screenings have an opening film of the journey of vaan nguyen?", "role": "user" }, { "content": "SELECT COUNT(number_of_screening) FROM table_18220102_1 WHERE opening_film = \"The Journey of Vaan Nguyen\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (constituency_number VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Amritpur has what constituency number?", "role": "user" }, { "content": "SELECT constituency_number FROM table_name_87 WHERE name = \"amritpur\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21469545_2 (to_par VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Name the to par for 20 feb 2005", "role": "user" }, { "content": "SELECT to_par FROM table_21469545_2 WHERE date = \"20 Feb 2005\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE volume (Song VARCHAR)", "role": "system" }, { "content": "Please list all songs in volumes in ascending alphabetical order.", "role": "user" }, { "content": "SELECT Song FROM volume ORDER BY Song", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1606824_1 (population__percentage_of_eu VARCHAR, member_state VARCHAR)", "role": "system" }, { "content": "Name the population % of eu for greece", "role": "user" }, { "content": "SELECT population__percentage_of_eu FROM table_1606824_1 WHERE member_state = \"Greece\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24648983_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)", "role": "system" }, { "content": "Who wrote the episode with 8.61 million U.S. viewers?", "role": "user" }, { "content": "SELECT written_by FROM table_24648983_1 WHERE us_viewers__million_ = \"8.61\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22603701_1 (result VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What is the result for Steve Gonzalez? ", "role": "user" }, { "content": "SELECT result FROM table_22603701_1 WHERE name = \"Steve Gonzalez\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_33 (round VARCHAR, position VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is the total number of rounds that Center position Denis Arkhipov have?", "role": "user" }, { "content": "SELECT COUNT(round) FROM table_name_33 WHERE position = \"center\" AND player = \"denis arkhipov\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_16 (sydney INTEGER, weekly_rank VARCHAR, brisbane VARCHAR)", "role": "system" }, { "content": "What is the lowest value for Sydney, when WEEKLY RANK is less than 8, and when Brisbane is greater than 252,000?", "role": "user" }, { "content": "SELECT MIN(sydney) FROM table_name_16 WHERE weekly_rank < 8 AND brisbane > 252 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_name_29 (conference VARCHAR, awards VARCHAR)", "role": "system" }, { "content": "Where the Vancouver Grizzlies is the awards, what is the conference?", "role": "user" }, { "content": "SELECT conference FROM table_name_29 WHERE awards = \"vancouver grizzlies\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (ihsaa_class VARCHAR, school VARCHAR)", "role": "system" }, { "content": "What is the IHSAA class for Muncie Burris?", "role": "user" }, { "content": "SELECT ihsaa_class FROM table_name_69 WHERE school = \"muncie burris\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (grand_rapids__grr_ VARCHAR, detroit__dtw_ VARCHAR)", "role": "system" }, { "content": "What was the passenger fare for Grand Rapids, when the passenger fare for Detroit was $378.55?", "role": "user" }, { "content": "SELECT grand_rapids__grr_ FROM table_name_89 WHERE detroit__dtw_ = \"$378.55\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (total INTEGER, rank VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "What is the average total medals of the nation ranked 1 with less than 1 silver?", "role": "user" }, { "content": "SELECT AVG(total) FROM table_name_62 WHERE rank = \"1\" AND silver < 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_17311759_7 (high_assists VARCHAR, date VARCHAR)", "role": "system" }, { "content": "who made high assists on february 4", "role": "user" }, { "content": "SELECT high_assists FROM table_17311759_7 WHERE date = \"February 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_8 (total INTEGER, parallel_bars VARCHAR)", "role": "system" }, { "content": "With a parallel bars score of 14.625 what is the average total?", "role": "user" }, { "content": "SELECT AVG(total) FROM table_name_8 WHERE parallel_bars = \"14.625\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_48 (score VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What is the score of player jay haas?", "role": "user" }, { "content": "SELECT score FROM table_name_48 WHERE player = \"jay haas\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (school VARCHAR, round VARCHAR)", "role": "system" }, { "content": "what is the school for round 8?", "role": "user" }, { "content": "SELECT school FROM table_name_68 WHERE round = 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_15 (goals_scored VARCHAR, points VARCHAR, draws VARCHAR, loses VARCHAR)", "role": "system" }, { "content": "What is the total number of goals scored of the club with more than 3 draws, more than 1 loses, and less than 26 points?", "role": "user" }, { "content": "SELECT COUNT(goals_scored) FROM table_name_15 WHERE draws > 3 AND loses > 1 AND points < 26", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_93 (laps INTEGER, grid VARCHAR, time VARCHAR)", "role": "system" }, { "content": "What is the highest number of Laps that have a Time of +18.366, and a Grid lower than 13?", "role": "user" }, { "content": "SELECT MAX(laps) FROM table_name_93 WHERE grid < 13 AND time = \"+18.366\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (set_1 VARCHAR, set_2 VARCHAR)", "role": "system" }, { "content": "What is Set 1, when Set 2 is 17-25?", "role": "user" }, { "content": "SELECT set_1 FROM table_name_22 WHERE set_2 = \"17-25\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_46 (goal_ratio VARCHAR, rank VARCHAR, games VARCHAR)", "role": "system" }, { "content": "How many goal ratios have rank of 2 with more than 44 games?", "role": "user" }, { "content": "SELECT COUNT(goal_ratio) FROM table_name_46 WHERE rank = 2 AND games > 44", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2226817_3 (directed_by VARCHAR, written_by VARCHAR)", "role": "system" }, { "content": "Who directed what was written by Michael G. Moye & Ron Leavitt & J. Stanford Parker?", "role": "user" }, { "content": "SELECT directed_by FROM table_2226817_3 WHERE written_by = \"Michael G. Moye & Ron Leavitt & J. Stanford Parker\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24887326_8 (score_1 VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "What was the score when the away team was norwich city?", "role": "user" }, { "content": "SELECT score_1 FROM table_24887326_8 WHERE away_team = \"Norwich City\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_64 (launched VARCHAR, ship VARCHAR)", "role": "system" }, { "content": "What launch has a Ship of fearless?", "role": "user" }, { "content": "SELECT launched FROM table_name_64 WHERE ship = \"fearless\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (uni_number VARCHAR, surname VARCHAR)", "role": "system" }, { "content": "Which Uni # has a Surname of ough?", "role": "user" }, { "content": "SELECT uni_number FROM table_name_40 WHERE surname = \"ough\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, round VARCHAR, position VARCHAR, overall VARCHAR, pick__number VARCHAR)", "role": "system" }, { "content": "Which name has an overall number of more than 164, when the pick number is more than 2, the position is running back, and the round is 16?", "role": "user" }, { "content": "SELECT name FROM table_name_9 WHERE overall > 164 AND pick__number > 2 AND position = \"running back\" AND round = 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_75 (date VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What day did the record reach 15-4?", "role": "user" }, { "content": "SELECT date FROM table_name_75 WHERE record = \"15-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_13710464_1 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "How many games played on june 25?", "role": "user" }, { "content": "SELECT COUNT(score) FROM table_13710464_1 WHERE date = \"June 25\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (bronze VARCHAR, silver VARCHAR, gold VARCHAR)", "role": "system" }, { "content": "What bronze has tatiana ryabkina as the silver, anne margrethe hausken as the gold?", "role": "user" }, { "content": "SELECT bronze FROM table_name_55 WHERE silver = \"tatiana ryabkina\" AND gold = \"anne margrethe hausken\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (points INTEGER, november VARCHAR)", "role": "system" }, { "content": "How many points have November of 15?", "role": "user" }, { "content": "SELECT SUM(points) FROM table_name_45 WHERE november = 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 (week_10_nov_5 VARCHAR, week_15__final__dec_9 VARCHAR)", "role": "system" }, { "content": "What is the week 10 result for the tean when the week 15 result is Illinois (10-1)?", "role": "user" }, { "content": "SELECT week_10_nov_5 FROM table_name_71 WHERE week_15__final__dec_9 = \"illinois (10-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_23575917_2 (scores VARCHAR, davids_team VARCHAR)", "role": "system" }, { "content": "Name the scores for david baddiel and maureen lipman", "role": "user" }, { "content": "SELECT COUNT(scores) FROM table_23575917_2 WHERE davids_team = \"David Baddiel and Maureen Lipman\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23385853_20 (finishes INTEGER)", "role": "system" }, { "content": "What is the finishes maximum number?", "role": "user" }, { "content": "SELECT MAX(finishes) FROM table_23385853_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 device (Software_Platform VARCHAR)", "role": "system" }, { "content": "Please show different software platforms and the corresponding number of devices using each.", "role": "user" }, { "content": "SELECT Software_Platform, COUNT(*) FROM device GROUP BY Software_Platform", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (time VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What is the Time of the Athlete with a Rank of 6?", "role": "user" }, { "content": "SELECT time FROM table_name_55 WHERE rank = 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_98 (club_team VARCHAR, nationality VARCHAR, overall VARCHAR)", "role": "system" }, { "content": "What club team is the United States player with an overall pick smaller than 142 from?", "role": "user" }, { "content": "SELECT club_team FROM table_name_98 WHERE nationality = \"united states\" AND overall < 142", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (tournament VARCHAR, cuts_made VARCHAR, events VARCHAR)", "role": "system" }, { "content": "Which Tournament has a Cuts made smaller than 9, and an Events of 10?", "role": "user" }, { "content": "SELECT tournament FROM table_name_25 WHERE cuts_made < 9 AND events = 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_64 (home_team VARCHAR, tie_no VARCHAR)", "role": "system" }, { "content": "What home team has 27 as the tie no.?", "role": "user" }, { "content": "SELECT home_team FROM table_name_64 WHERE tie_no = \"27\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (world_record VARCHAR)", "role": "system" }, { "content": "For what 188kg is the world record clean & jerk?", "role": "user" }, { "content": "SELECT 188 AS kg FROM table_name_96 WHERE world_record = \"clean & jerk\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (area VARCHAR, name VARCHAR, years VARCHAR, decile VARCHAR)", "role": "system" }, { "content": "Which area has Years of 1–8, a Decile smaller than 7, and a Name of waikari school?", "role": "user" }, { "content": "SELECT area FROM table_name_71 WHERE years = \"1–8\" AND decile < 7 AND name = \"waikari 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_37 (runner_s__up VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who is Runner(s)-up that has a Date of may 24, 1999?", "role": "user" }, { "content": "SELECT runner_s__up FROM table_name_37 WHERE date = \"may 24, 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_12 (genre VARCHAR, game VARCHAR)", "role": "system" }, { "content": "Which Genre has a Game of tony hawk's pro skater 2?", "role": "user" }, { "content": "SELECT genre FROM table_name_12 WHERE game = \"tony hawk's pro skater 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_27332038_1 (original_air_date VARCHAR, production_code VARCHAR)", "role": "system" }, { "content": "when was the episode with production code \"2arg24\" originally aired?", "role": "user" }, { "content": "SELECT original_air_date FROM table_27332038_1 WHERE production_code = \"2ARG24\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (premiere VARCHAR, episodes INTEGER)", "role": "system" }, { "content": "Which premiere had more than 15 episodes?", "role": "user" }, { "content": "SELECT premiere FROM table_name_36 WHERE episodes > 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_13758243_1 (overall VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What numer pick in the draft for jerry hill?", "role": "user" }, { "content": "SELECT COUNT(overall) FROM table_13758243_1 WHERE player = \"Jerry Hill\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year_made VARCHAR, class VARCHAR)", "role": "system" }, { "content": "What year was class of undine?", "role": "user" }, { "content": "SELECT year_made FROM table_name_67 WHERE class = \"undine\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, course_id VARCHAR); CREATE TABLE Courses (course_id VARCHAR, course_name VARCHAR)", "role": "system" }, { "content": "What is the date of enrollment of the course named \"Spanish\"?", "role": "user" }, { "content": "SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = \"Spanish\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (attendance VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Name the attendance with date of june 11", "role": "user" }, { "content": "SELECT attendance FROM table_name_92 WHERE date = \"june 11\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (home_team VARCHAR)", "role": "system" }, { "content": "What is the home team score for St Kilda's home team?", "role": "user" }, { "content": "SELECT home_team AS score FROM table_name_27 WHERE home_team = \"st kilda\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (format VARCHAR, label VARCHAR)", "role": "system" }, { "content": "What is the format for the MCA label?", "role": "user" }, { "content": "SELECT format FROM table_name_40 WHERE label = \"mca\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (league VARCHAR, school VARCHAR)", "role": "system" }, { "content": "In what League is the Reed School?", "role": "user" }, { "content": "SELECT league FROM table_name_87 WHERE school = \"reed\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_34 (vehicle VARCHAR, ceased_operation VARCHAR)", "role": "system" }, { "content": "Which vehicle failed at launch?", "role": "user" }, { "content": "SELECT vehicle FROM table_name_34 WHERE ceased_operation = \"failed at launch\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (inhabitants INTEGER, election VARCHAR, party VARCHAR, municipality VARCHAR)", "role": "system" }, { "content": "Which Inhabitants has a Party of south tyrolean people's party, a Municipality of bruneck, and an Election larger than 2010?", "role": "user" }, { "content": "SELECT AVG(inhabitants) FROM table_name_36 WHERE party = \"south tyrolean people's party\" AND municipality = \"bruneck\" AND election > 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_20 (result VARCHAR, location VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What is the result of the game at three rivers stadium with a Record of 6–3?", "role": "user" }, { "content": "SELECT result FROM table_name_20 WHERE location = \"three rivers stadium\" AND record = \"6–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_43 (attendance INTEGER, date VARCHAR)", "role": "system" }, { "content": "What was the attendance on 21 August 2004?", "role": "user" }, { "content": "SELECT SUM(attendance) FROM table_name_43 WHERE date = \"21 august 2004\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_15314901_1 (coordinate_velocity_v_dx_dt_in_units_of_c VARCHAR, condition_parameter VARCHAR)", "role": "system" }, { "content": "If the the condition/parameter is rapidity of 2 hyperbolic radians, what is the coordinate velocity v dx/dt in units of c?", "role": "user" }, { "content": "SELECT coordinate_velocity_v_dx_dt_in_units_of_c FROM table_15314901_1 WHERE condition_parameter = \"Rapidity of 2 hyperbolic radians\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (nba_draft VARCHAR, college VARCHAR)", "role": "system" }, { "content": "What is the NBA draft for ohio state?", "role": "user" }, { "content": "SELECT nba_draft FROM table_name_58 WHERE college = \"ohio state\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_25085059_3 (college VARCHAR, position VARCHAR)", "role": "system" }, { "content": "What college did the player come from whose position is DL?", "role": "user" }, { "content": "SELECT college FROM table_25085059_3 WHERE position = \"DL\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (played INTEGER, goals_against VARCHAR, position VARCHAR, points_1 VARCHAR)", "role": "system" }, { "content": "What is the average played for entries with fewer than 65 goals against, points 1 of 19 2, and a position higher than 15?", "role": "user" }, { "content": "SELECT AVG(played) FROM table_name_89 WHERE position < 15 AND points_1 = \"19 2\" AND goals_against < 65", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (money___ VARCHAR, to_par VARCHAR, player VARCHAR)", "role": "system" }, { "content": "How much total money does player tommy bolt, who has a to par of 9, have?", "role": "user" }, { "content": "SELECT COUNT(money___) AS $__ FROM table_name_76 WHERE to_par = 9 AND player = \"tommy bolt\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2562572_30 (cyrillic_name_other_names VARCHAR, settlement VARCHAR)", "role": "system" }, { "content": "What is the cyrillic and other name of rabe?", "role": "user" }, { "content": "SELECT cyrillic_name_other_names FROM table_2562572_30 WHERE settlement = \"Rabe\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_23284597_3 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR)", "role": "system" }, { "content": "Name the opponent in the final for 3–6, 1–6", "role": "user" }, { "content": "SELECT opponent_in_the_final FROM table_23284597_3 WHERE score_in_the_final = \"3–6, 1–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_13 (series VARCHAR, site VARCHAR, sport VARCHAR)", "role": "system" }, { "content": "Which Series has a Site of ames and a Sport of w gymnastics?", "role": "user" }, { "content": "SELECT series FROM table_name_13 WHERE site = \"ames\" AND sport = \"w gymnastics\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "What is the average total with less than 8 bronze, 3 silver, and a Rank smaller than 2?", "role": "user" }, { "content": "SELECT AVG(total) FROM table_name_76 WHERE bronze < 8 AND silver = 3 AND rank < 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_22917458_15 (winner VARCHAR, stage VARCHAR)", "role": "system" }, { "content": "Who was the Stage 1 winner?", "role": "user" }, { "content": "SELECT winner FROM table_22917458_15 WHERE stage = 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_1805191_10 (district VARCHAR, first_elected VARCHAR)", "role": "system" }, { "content": "In which district is the first elected 2000?", "role": "user" }, { "content": "SELECT district FROM table_1805191_10 WHERE first_elected = 2000", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_97 (tie_no VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "Which Tie is from birmingham city?", "role": "user" }, { "content": "SELECT tie_no FROM table_name_97 WHERE home_team = \"birmingham city\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_96 (country_or_territory VARCHAR)", "role": "system" }, { "content": "Which 2007 has a Country or territory of china, and a 2002 smaller than 670,099?", "role": "user" }, { "content": "SELECT MIN(2007) FROM table_name_96 WHERE country_or_territory = \"china\" AND 2002 < 670 OFFSET 099", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (draws VARCHAR, year VARCHAR)", "role": "system" }, { "content": "How many draws were there in 2006?", "role": "user" }, { "content": "SELECT draws FROM table_name_58 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 camera_lens (brand VARCHAR)", "role": "system" }, { "content": "How many different kinds of lens brands are there?", "role": "user" }, { "content": "SELECT COUNT(DISTINCT brand) FROM camera_lens", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (car_make VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What kind of car has the NASCAR Camping World Truck Series record?", "role": "user" }, { "content": "SELECT car_make FROM table_name_7 WHERE record = \"nascar camping world truck series\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (attendance INTEGER, away_team VARCHAR)", "role": "system" }, { "content": "What is the sum of Attendance when macclesfield town was the way team?", "role": "user" }, { "content": "SELECT SUM(attendance) FROM table_name_22 WHERE away_team = \"macclesfield 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 table_name_72 (name VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "Who is at rank 9?", "role": "user" }, { "content": "SELECT name FROM table_name_72 WHERE rank = 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_91 (opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "what was the opponent on november 14, 2005?", "role": "user" }, { "content": "SELECT opponent FROM table_name_91 WHERE date = \"november 14, 2005\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_98 (title VARCHAR, characters VARCHAR)", "role": "system" }, { "content": "What title has daffy (as duck dodgers) as the character?", "role": "user" }, { "content": "SELECT title FROM table_name_98 WHERE characters = \"daffy (as duck dodgers)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (result_f___a VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the result F-A of the game on 6 march 1993?", "role": "user" }, { "content": "SELECT result_f___a FROM table_name_95 WHERE date = \"6 march 1993\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_4 (class VARCHAR, position VARCHAR)", "role": "system" }, { "content": "What is the class for the position of lg?", "role": "user" }, { "content": "SELECT class FROM table_name_4 WHERE position = \"lg\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17355628_7 (score VARCHAR, team VARCHAR)", "role": "system" }, { "content": "How many games were played by team @ New Jersey?", "role": "user" }, { "content": "SELECT COUNT(score) FROM table_17355628_7 WHERE team = \"@ New Jersey\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Player (pName VARCHAR)", "role": "system" }, { "content": "Find the players whose names contain letter 'a'.", "role": "user" }, { "content": "SELECT DISTINCT pName FROM Player WHERE pName LIKE '%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_51 (call_sign VARCHAR, city_of_license VARCHAR)", "role": "system" }, { "content": "What is Call Sign, when City of License is Brownfield, Texas?", "role": "user" }, { "content": "SELECT call_sign FROM table_name_51 WHERE city_of_license = \"brownfield, texas\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (roll VARCHAR, decile VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What is the roll number of Te Puke Intermediate, which has a decile of 4?", "role": "user" }, { "content": "SELECT roll FROM table_name_62 WHERE decile = 4 AND name = \"te puke intermediate\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (away_team VARCHAR)", "role": "system" }, { "content": "What is the St Kilda Away team score?", "role": "user" }, { "content": "SELECT away_team AS score FROM table_name_24 WHERE away_team = \"st kilda\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14425454_1 (home_team VARCHAR, time VARCHAR)", "role": "system" }, { "content": "How many home team scores have a time of 4:40 PM?", "role": "user" }, { "content": "SELECT COUNT(home_team) AS score FROM table_14425454_1 WHERE time = \"4:40 PM\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_29 (record VARCHAR, result VARCHAR)", "role": "system" }, { "content": "Which Record has a Result of l 13–30?", "role": "user" }, { "content": "SELECT record FROM table_name_29 WHERE result = \"l 13–30\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_19778010_5 (game INTEGER, date VARCHAR)", "role": "system" }, { "content": "What's the number of the game played on June 22?", "role": "user" }, { "content": "SELECT MAX(game) FROM table_19778010_5 WHERE date = \"June 22\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_16 (round VARCHAR, position VARCHAR)", "role": "system" }, { "content": "How many Rounds have a Defensive End Pick?", "role": "user" }, { "content": "SELECT COUNT(round) FROM table_name_16 WHERE position = \"defensive end\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13258823_2 (date VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Name the date with the record of 1-0", "role": "user" }, { "content": "SELECT date FROM table_13258823_2 WHERE record = \"1-0\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_19 (year INTEGER, venue VARCHAR)", "role": "system" }, { "content": "What's the latest year that Doha, Qatar hosted a tournament?", "role": "user" }, { "content": "SELECT MAX(year) FROM table_name_19 WHERE venue = \"doha, qatar\"", "role": "assistant" } ]