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 Person (name VARCHAR, gender VARCHAR, age VARCHAR)", "role": "system" }, { "content": "Find the name and age of all males in order of their age.", "role": "user" }, { "content": "SELECT name FROM Person WHERE gender = 'male' ORDER BY age", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "Who was the opponent when Richmond played as the home team?", "role": "user" }, { "content": "SELECT away_team FROM table_name_56 WHERE home_team = \"richmond\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE wedding (church_id VARCHAR); CREATE TABLE church (name VARCHAR, church_id VARCHAR)", "role": "system" }, { "content": "Show all church names that have hosted least two weddings.", "role": "user" }, { "content": "SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id GROUP BY T1.church_id HAVING COUNT(*) >= 2", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_90 (year INTEGER, festival_organization VARCHAR)", "role": "system" }, { "content": "What is the first year that there was a Satellite Award?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_90 WHERE festival_organization = \"satellite award\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_10 (record VARCHAR, week VARCHAR, result VARCHAR)", "role": "system" }, { "content": "What was the record at the game with a result of W 13-12 after week 4?", "role": "user" }, { "content": "SELECT record FROM table_name_10 WHERE week > 4 AND result = \"w 13-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_20 (date VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "Name the date when 33,307 attended", "role": "user" }, { "content": "SELECT date FROM table_name_20 WHERE attendance = \"33,307\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22665117_1 (authorizing_agency VARCHAR, district_name VARCHAR)", "role": "system" }, { "content": "If the district name is the Academy of Flint, what is the authorizing agency?", "role": "user" }, { "content": "SELECT authorizing_agency FROM table_22665117_1 WHERE district_name = \"Academy of Flint\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (opponent VARCHAR, time VARCHAR)", "role": "system" }, { "content": "Which Opponent has a Time of 4:51?", "role": "user" }, { "content": "SELECT opponent FROM table_name_84 WHERE time = \"4:51\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (grid INTEGER, rider VARCHAR)", "role": "system" }, { "content": "What is the highest grid that tetsuya harada rode in?", "role": "user" }, { "content": "SELECT MAX(grid) FROM table_name_71 WHERE rider = \"tetsuya harada\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (crowd INTEGER, away_team VARCHAR)", "role": "system" }, { "content": "What is the lowest attendance when footscray is the away team?", "role": "user" }, { "content": "SELECT MIN(crowd) FROM table_name_61 WHERE away_team = \"footscray\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE people (Nationality VARCHAR)", "role": "system" }, { "content": "What are different nationalities of people and the corresponding number of people from each nation?", "role": "user" }, { "content": "SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (stage INTEGER, difficulty VARCHAR, start VARCHAR)", "role": "system" }, { "content": "What is the lowest stage number that starts with els alocs and has a middle difficulty?", "role": "user" }, { "content": "SELECT MIN(stage) FROM table_name_60 WHERE difficulty = \"middle\" AND start = \"els alocs\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (result VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the result when they had their bye week?", "role": "user" }, { "content": "SELECT result FROM table_name_84 WHERE date = \"bye\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE singer (name VARCHAR, country VARCHAR, song_name VARCHAR)", "role": "system" }, { "content": "what is the name and nation of the singer who have a song having 'Hey' in its name?", "role": "user" }, { "content": "SELECT name, country FROM singer WHERE song_name LIKE '%Hey%'", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2668367_7 (result VARCHAR, district VARCHAR)", "role": "system" }, { "content": "What was the result in the election in the Kentucky 8 district? ", "role": "user" }, { "content": "SELECT result FROM table_2668367_7 WHERE district = \"Kentucky 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_23294081_11 (no INTEGER)", "role": "system" }, { "content": "What is the highest episode number?", "role": "user" }, { "content": "SELECT MAX(no) FROM table_23294081_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_33 (final_score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the final score of the game on November 17?", "role": "user" }, { "content": "SELECT final_score FROM table_name_33 WHERE date = \"november 17\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_96 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What was the away team that played against Melbourne?", "role": "user" }, { "content": "SELECT away_team FROM table_name_96 WHERE home_team = \"melbourne\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (spokesperson VARCHAR, year_s_ INTEGER)", "role": "system" }, { "content": "Who is the spokesperson after 2012?", "role": "user" }, { "content": "SELECT spokesperson FROM table_name_33 WHERE year_s_ > 2012", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (integrated VARCHAR, allied_related VARCHAR)", "role": "system" }, { "content": "What integrated has an allied-related of centralized?", "role": "user" }, { "content": "SELECT integrated FROM table_name_11 WHERE allied_related = \"centralized\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_11 (score VARCHAR, game VARCHAR)", "role": "system" }, { "content": "What is the score in game 3?", "role": "user" }, { "content": "SELECT score FROM table_23286158_11 WHERE game = 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_89 (season VARCHAR, goals VARCHAR, apps VARCHAR)", "role": "system" }, { "content": "How many seasons have 1 goals and more than 11 apps?", "role": "user" }, { "content": "SELECT COUNT(season) FROM table_name_89 WHERE goals = 1 AND apps > 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_58 (overall INTEGER, school_club_team VARCHAR)", "role": "system" }, { "content": "What is arizona state overall lowest?", "role": "user" }, { "content": "SELECT MIN(overall) FROM table_name_58 WHERE school_club_team = \"arizona 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_name_63 (gaelic_name VARCHAR, area___ha__ VARCHAR, location VARCHAR)", "role": "system" }, { "content": "What is the Gaelic name for an area less than 127 in Kintyre?", "role": "user" }, { "content": "SELECT gaelic_name FROM table_name_63 WHERE area___ha__ < 127 AND location = \"kintyre\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1940144_1 (change_since_2006 VARCHAR, county VARCHAR)", "role": "system" }, { "content": "How many places did the rank change since 22006 for County Leitrim? ", "role": "user" }, { "content": "SELECT COUNT(change_since_2006) FROM table_1940144_1 WHERE county = \"county Leitrim\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (semifinalists VARCHAR, surface VARCHAR)", "role": "system" }, { "content": "what is the semifinalists when the surface is hard (i)?", "role": "user" }, { "content": "SELECT semifinalists FROM table_name_9 WHERE surface = \"hard (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_88 (certification VARCHAR, album VARCHAR)", "role": "system" }, { "content": "What was the album Closer: The Best of Sarah Mclachlan certified as?", "role": "user" }, { "content": "SELECT certification FROM table_name_88 WHERE album = \"closer: the best of sarah mclachlan\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (distance__miles_ VARCHAR, winner VARCHAR, year VARCHAR)", "role": "system" }, { "content": "When the winner was No Race in a year after 1909, what was the distance?", "role": "user" }, { "content": "SELECT distance__miles_ FROM table_name_68 WHERE winner = \"no race\" AND year > 1909", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (category VARCHAR, type VARCHAR)", "role": "system" }, { "content": "When Type was rowexit what was the Category?", "role": "user" }, { "content": "SELECT category FROM table_name_88 WHERE type = \"rowexit\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (total INTEGER, nation VARCHAR, bronze VARCHAR)", "role": "system" }, { "content": "What is the total for Austria when there is less than 1 bronze?", "role": "user" }, { "content": "SELECT AVG(total) FROM table_name_47 WHERE nation = \"austria\" AND bronze < 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_30058355_7 (fri_26_aug VARCHAR, wed_24_aug VARCHAR)", "role": "system" }, { "content": "What is every entry for Friday August 26 when the entry for Wednesday August 24 is 23' 52.67 94.807mph?", "role": "user" }, { "content": "SELECT fri_26_aug FROM table_30058355_7 WHERE wed_24_aug = \"23' 52.67 94.807mph\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12194021_1 (womens_doubles VARCHAR, womens_singles VARCHAR)", "role": "system" }, { "content": "How many titles did Trupti Murgunde claim?", "role": "user" }, { "content": "SELECT womens_doubles FROM table_12194021_1 WHERE womens_singles = \"Trupti Murgunde\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1745843_6 (part_3 VARCHAR, verb_meaning VARCHAR)", "role": "system" }, { "content": "How many different part 3 verbs are there that mean to freeze?", "role": "user" }, { "content": "SELECT COUNT(part_3) FROM table_1745843_6 WHERE verb_meaning = \"to freeze\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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, regional_county_municipality VARCHAR, code VARCHAR)", "role": "system" }, { "content": "What is the name for the regional county municipality of d'autray and a code less than 52017?", "role": "user" }, { "content": "SELECT name FROM table_name_9 WHERE regional_county_municipality = \"d'autray\" AND code < 52017", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1620397_5 (doctor VARCHAR, author VARCHAR)", "role": "system" }, { "content": "What was the doctor when the author was Gary Hopkins category:articles with hcards?", "role": "user" }, { "content": "SELECT doctor FROM table_1620397_5 WHERE author = \"Gary Hopkins Category:Articles with hCards\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_6 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "Playing against Chelmsford City on 15 November 1986, who was the home team?", "role": "user" }, { "content": "SELECT home_team FROM table_name_6 WHERE date = \"15 november 1986\" AND away_team = \"chelmsford 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_21721351_18 (nationality VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Which nationality is player Brian Wilks?", "role": "user" }, { "content": "SELECT nationality FROM table_21721351_18 WHERE player = \"Brian Wilks\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_41 (attendance VARCHAR, runner_up VARCHAR, title VARCHAR)", "role": "system" }, { "content": "What is the Attendance number when the runner-up was suntory sungoliath, and a Title of 46th?", "role": "user" }, { "content": "SELECT attendance FROM table_name_41 WHERE runner_up = \"suntory sungoliath\" AND title = \"46th\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (internet_explorer VARCHAR, chrome VARCHAR)", "role": "system" }, { "content": "What internet explorer has 29.07% for the chrome?", "role": "user" }, { "content": "SELECT internet_explorer FROM table_name_91 WHERE chrome = \"29.07%\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_10361625_1 (overall VARCHAR, college VARCHAR)", "role": "system" }, { "content": "What is Rice's collage score?", "role": "user" }, { "content": "SELECT overall FROM table_10361625_1 WHERE college = \"Rice\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1949994_7 (country VARCHAR, end_date VARCHAR)", "role": "system" }, { "content": "Where was the season that ended on June 25 located?", "role": "user" }, { "content": "SELECT country FROM table_1949994_7 WHERE end_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_14 (build_date VARCHAR, prr_class VARCHAR, builder’s_model VARCHAR)", "role": "system" }, { "content": "When was the build date for ff20 PRR class and erie built builder's model?", "role": "user" }, { "content": "SELECT build_date FROM table_name_14 WHERE prr_class = \"ff20\" AND builder’s_model = \"erie built\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Students (other_student_details VARCHAR)", "role": "system" }, { "content": "List all the student details in reversed lexicographical order.", "role": "user" }, { "content": "SELECT other_student_details FROM Students ORDER BY other_student_details DESC", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_20760802_1 (played VARCHAR, won VARCHAR)", "role": "system" }, { "content": "How many teams that played won 0 games?", "role": "user" }, { "content": "SELECT played FROM table_20760802_1 WHERE won = \"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_82 (to_par VARCHAR, place VARCHAR)", "role": "system" }, { "content": "what is the to par when the place is 8?", "role": "user" }, { "content": "SELECT to_par FROM table_name_82 WHERE place = \"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_61 (wins VARCHAR, season VARCHAR, conference VARCHAR, division VARCHAR)", "role": "system" }, { "content": "What shows for Wins when there was a Conference of —, western division, in the 1967–68 season?", "role": "user" }, { "content": "SELECT wins FROM table_name_61 WHERE conference = \"—\" AND division = \"western\" AND season = \"1967–68\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_71 (finish VARCHAR, player VARCHAR)", "role": "system" }, { "content": "In what place did Bob Tway finish?", "role": "user" }, { "content": "SELECT finish FROM table_name_71 WHERE player = \"bob tway\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE scientists (name VARCHAR)", "role": "system" }, { "content": "List the names of all scientists sorted in alphabetical order.", "role": "user" }, { "content": "SELECT name FROM scientists ORDER BY name", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_11677100_18 (school VARCHAR, hometown VARCHAR)", "role": "system" }, { "content": "What school did the player attend who's hometown was Montvale, NJ?", "role": "user" }, { "content": "SELECT school FROM table_11677100_18 WHERE hometown = \"Montvale, NJ\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341843_10 (candidates VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "Who was featured in the election of charles edward bennett redistricted from 2nd?", "role": "user" }, { "content": "SELECT candidates FROM table_1341843_10 WHERE incumbent = \"Charles Edward Bennett Redistricted from 2nd\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (opponent VARCHAR, result VARCHAR)", "role": "system" }, { "content": "What opponent has l 27-7 as the result?", "role": "user" }, { "content": "SELECT opponent FROM table_name_83 WHERE result = \"l 27-7\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_98 (constructor VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "What is the name of the Constructor with a 19 Grid?", "role": "user" }, { "content": "SELECT constructor FROM table_name_98 WHERE grid = 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_5 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What score has april 28 as the date?", "role": "user" }, { "content": "SELECT score FROM table_name_5 WHERE date = \"april 28\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18600760_20 (longitude VARCHAR, township VARCHAR)", "role": "system" }, { "content": "What longitude is tatman township?", "role": "user" }, { "content": "SELECT longitude FROM table_18600760_20 WHERE township = \"Tatman\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (attendance VARCHAR, visitor VARCHAR)", "role": "system" }, { "content": "How many people attended the game that had the Clippers as visiting team?", "role": "user" }, { "content": "SELECT attendance FROM table_name_47 WHERE visitor = \"clippers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (distance VARCHAR, jockey VARCHAR, result VARCHAR)", "role": "system" }, { "content": "How far did p. carbery run to get 2nd?", "role": "user" }, { "content": "SELECT distance FROM table_name_67 WHERE jockey = \"p. carbery\" AND result = \"2nd\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (total_points INTEGER, games VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What was the average of points with ranks smaller than 7 but with total point games of 113?", "role": "user" }, { "content": "SELECT AVG(total_points) FROM table_name_24 WHERE games = 113 AND rank < 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 track (name VARCHAR, LOCATION VARCHAR, year_opened VARCHAR, seating INTEGER)", "role": "system" }, { "content": "Show the name, location, open year for all tracks with a seating higher than the average.", "role": "user" }, { "content": "SELECT name, LOCATION, year_opened FROM track WHERE seating > (SELECT AVG(seating) FROM track)", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (investment_income VARCHAR, other_social_security_benefits VARCHAR, occupational_pensions VARCHAR, working_tax_credit VARCHAR)", "role": "system" }, { "content": "Occupational pensions of 7%, and a Working tax credit of 2%, and a Other social security benefits of 6% has what investment income?", "role": "user" }, { "content": "SELECT investment_income FROM table_name_39 WHERE occupational_pensions = \"7%\" AND working_tax_credit = \"2%\" AND other_social_security_benefits = \"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_50 (goals_against INTEGER, played VARCHAR, position VARCHAR, drawn VARCHAR, lost VARCHAR)", "role": "system" }, { "content": "Which Goals Against has a Drawn larger than 9, a Lost larger than 15, a Position of 24, and a Played smaller than 46?", "role": "user" }, { "content": "SELECT AVG(goals_against) FROM table_name_50 WHERE drawn > 9 AND lost > 15 AND position = 24 AND played < 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_10875694_11 (product_no VARCHAR, title VARCHAR)", "role": "system" }, { "content": "How many products have the title \"Jak 3\"?", "role": "user" }, { "content": "SELECT COUNT(product_no) FROM table_10875694_11 WHERE title = \"Jak 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_94 (location VARCHAR)", "role": "system" }, { "content": "What is the 2000 number when the 1989 is less than 54.9 in Arizona, New Mexico, and Utah?", "role": "user" }, { "content": "SELECT SUM(2000) FROM table_name_94 WHERE 1989 < 54.9 AND location = \"arizona, new mexico, and utah\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_18 (winner VARCHAR, dates VARCHAR)", "role": "system" }, { "content": "What is Winner, when Dates is Dec 11-14?", "role": "user" }, { "content": "SELECT winner FROM table_name_18 WHERE dates = \"dec 11-14\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE building (height_feet INTEGER, floors INTEGER)", "role": "system" }, { "content": "Show the number of buildings with a height above the average or a number of floors above the average.", "role": "user" }, { "content": "SELECT COUNT(*) FROM building WHERE height_feet > (SELECT AVG(height_feet) FROM building) OR floors > (SELECT AVG(floors) FROM building)", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year INTEGER, opponent VARCHAR)", "role": "system" }, { "content": "Name the average year for manly-warringah sea eagles", "role": "user" }, { "content": "SELECT AVG(year) FROM table_name_13 WHERE opponent = \"manly-warringah sea eagles\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (driver VARCHAR, team VARCHAR, points VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "Which driver has fewer than 2 points, larger grid that 4 and is on American Spirit Team Johansson?", "role": "user" }, { "content": "SELECT driver FROM table_name_32 WHERE points < 2 AND grid > 4 AND team = \"american spirit team johansson\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (res VARCHAR, event VARCHAR)", "role": "system" }, { "content": "What is Res., when Event is \"FT 6 - Full Throttle 6\"?", "role": "user" }, { "content": "SELECT res FROM table_name_83 WHERE event = \"ft 6 - full throttle 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_27069503_2 (overall VARCHAR, season VARCHAR)", "role": "system" }, { "content": "What was the overall record for the Pandas in the 2003-04 season? ", "role": "user" }, { "content": "SELECT overall FROM table_27069503_2 WHERE season = \"2003-04\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, competition VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the Venue of the Friendly Competition with a Score of 1–4?", "role": "user" }, { "content": "SELECT venue FROM table_name_58 WHERE competition = \"friendly\" AND score = \"1–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_175442_1 (scientific_name VARCHAR, common_name VARCHAR)", "role": "system" }, { "content": "Name the scientific name for veiled chameleon", "role": "user" }, { "content": "SELECT scientific_name FROM table_175442_1 WHERE common_name = \"Veiled chameleon\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1342256_10 (result VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "What was the result of Robert L. F. Sikes' election bid?", "role": "user" }, { "content": "SELECT result FROM table_1342256_10 WHERE incumbent = \"Robert L. F. Sikes\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29942205_1 (country_territory VARCHAR)", "role": "system" }, { "content": "How many women from Uruguay has become third runner-up in this pageant?", "role": "user" }, { "content": "SELECT MAX(3 AS rd_runner_up) FROM table_29942205_1 WHERE country_territory = \"Uruguay\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (original_title VARCHAR, country VARCHAR)", "role": "system" }, { "content": "What is the Original title with a Country that is canada?", "role": "user" }, { "content": "SELECT original_title FROM table_name_55 WHERE country = \"canada\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "In which venue is South Melbourne the home team?", "role": "user" }, { "content": "SELECT venue FROM table_name_11 WHERE home_team = \"south melbourne\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (bronze VARCHAR, place VARCHAR)", "role": "system" }, { "content": "Name the bronze for lahti", "role": "user" }, { "content": "SELECT bronze FROM table_name_46 WHERE place = \"lahti\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (civil_liberties_2011 VARCHAR, political_rights_2010 VARCHAR, political_rights_2011 VARCHAR)", "role": "system" }, { "content": "What is the total number of civil liberties 2011 values having 2010 political rights values under 3 and 2011 political rights values under 1?", "role": "user" }, { "content": "SELECT COUNT(civil_liberties_2011) FROM table_name_70 WHERE political_rights_2010 < 3 AND political_rights_2011 < 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_32 (name_v_t_e VARCHAR, jersey_number VARCHAR, weight__kg_ VARCHAR, position VARCHAR)", "role": "system" }, { "content": "What was the Name v t e, of the player whose Weight (kg) was 84, whose Position was D, and whose Jersey number was 2?", "role": "user" }, { "content": "SELECT name_v_t_e FROM table_name_32 WHERE weight__kg_ = 84 AND position = \"d\" AND jersey_number = 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_6 (player VARCHAR, college VARCHAR)", "role": "system" }, { "content": "What Player is from Iowa State?", "role": "user" }, { "content": "SELECT player FROM table_name_6 WHERE college = \"iowa 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_25646820_2 (touchdowns INTEGER, player VARCHAR)", "role": "system" }, { "content": "Name the least touchdowns for joe rogers", "role": "user" }, { "content": "SELECT MIN(touchdowns) FROM table_25646820_2 WHERE player = \"Joe Rogers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (position VARCHAR, overall VARCHAR, college VARCHAR)", "role": "system" }, { "content": "What is the position of the player from the college of North Carolina with an overall less than 100?", "role": "user" }, { "content": "SELECT position FROM table_name_47 WHERE overall < 100 AND college = \"north carolina\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (attendance INTEGER, date VARCHAR)", "role": "system" }, { "content": "What was the attendance on september 29?", "role": "user" }, { "content": "SELECT MAX(attendance) FROM table_name_83 WHERE date = \"september 29\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_67 (date VARCHAR, sample_size VARCHAR, democrat VARCHAR, republican VARCHAR, poll_source VARCHAR)", "role": "system" }, { "content": "What is the date that the polls were going on at quinnipiac when john mccain was the republican, barack obama was the democrat and the sample size was bigger than 1427?", "role": "user" }, { "content": "SELECT date FROM table_name_67 WHERE republican = \"john mccain\" AND poll_source = \"quinnipiac\" AND democrat = \"barack obama\" AND sample_size > 1427", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (weight VARCHAR, diameter VARCHAR)", "role": "system" }, { "content": "How much does the coin with a 14mm diameter weigh?", "role": "user" }, { "content": "SELECT weight FROM table_name_52 WHERE diameter = \"14mm\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (location VARCHAR, year VARCHAR)", "role": "system" }, { "content": "At what Location was Miss World 2009?", "role": "user" }, { "content": "SELECT location FROM table_name_51 WHERE year = 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_1875157_2 (starts INTEGER, winnings VARCHAR)", "role": "system" }, { "content": "How many starts were there when the winnings are $690,321?", "role": "user" }, { "content": "SELECT MIN(starts) FROM table_1875157_2 WHERE winnings = \"$690,321\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26250151_1 (result VARCHAR, theme VARCHAR)", "role": "system" }, { "content": "How may results had the theme inspirational?", "role": "user" }, { "content": "SELECT COUNT(result) FROM table_26250151_1 WHERE theme = \"Inspirational\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE poker_player (People_ID VARCHAR, Earnings VARCHAR); CREATE TABLE people (Birth_Date VARCHAR, People_ID VARCHAR)", "role": "system" }, { "content": "What is the birth date of the poker player with the lowest earnings?", "role": "user" }, { "content": "SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings LIMIT 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_55 (drawn VARCHAR, played VARCHAR, points_against VARCHAR)", "role": "system" }, { "content": "What is Drawn, when Played is \"18\", and when Points Against is \"478\"?", "role": "user" }, { "content": "SELECT drawn FROM table_name_55 WHERE played = \"18\" AND points_against = \"478\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (no_8 VARCHAR, no_10 VARCHAR, no_5 VARCHAR)", "role": "system" }, { "content": "Who was No. 8 when No. 10 Jackson and No. 5 Mason?", "role": "user" }, { "content": "SELECT no_8 FROM table_name_51 WHERE no_10 = \"jackson\" AND no_5 = \"mason\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341395_22 (candidates VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "Who were the candidates when Barney Frank was the incumbent?", "role": "user" }, { "content": "SELECT candidates FROM table_1341395_22 WHERE incumbent = \"Barney Frank\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341690_18 (result VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "What were the results when the incumbent was John Breaux?", "role": "user" }, { "content": "SELECT result FROM table_1341690_18 WHERE incumbent = \"John Breaux\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_26368963_1 (under_15 VARCHAR, under_19 VARCHAR)", "role": "system" }, { "content": "When Julian Illingworth was the under-19, who was the under-15?", "role": "user" }, { "content": "SELECT under_15 FROM table_26368963_1 WHERE under_19 = \"Julian Illingworth\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (series VARCHAR, winning_team VARCHAR, sport VARCHAR)", "role": "system" }, { "content": "What is the series of the winning team in Iowa, for softball?", "role": "user" }, { "content": "SELECT series FROM table_name_24 WHERE winning_team = \"iowa\" AND sport = \"softball\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, year VARCHAR)", "role": "system" }, { "content": "What is the score for 2004?", "role": "user" }, { "content": "SELECT score FROM table_name_69 WHERE year = 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_name_2 (opponents_in_the_final VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who was the match played against in the final on March 14, 2008?", "role": "user" }, { "content": "SELECT opponents_in_the_final FROM table_name_2 WHERE date = \"march 14, 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_73 (outcome VARCHAR, year VARCHAR, surface VARCHAR)", "role": "system" }, { "content": "What was the result in 1973 when the surface was clay?", "role": "user" }, { "content": "SELECT outcome FROM table_name_73 WHERE year = 1973 AND surface = \"clay\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (agg VARCHAR)", "role": "system" }, { "content": "What is the 1st leg of the team with a 2-1 agg.?", "role": "user" }, { "content": "SELECT 1 AS st_leg FROM table_name_13 WHERE agg = \"2-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_78 (crowd INTEGER, venue VARCHAR)", "role": "system" }, { "content": "What was the crowd size at Junction Oval?", "role": "user" }, { "content": "SELECT MAX(crowd) FROM table_name_78 WHERE venue = \"junction oval\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (visitor VARCHAR, date VARCHAR)", "role": "system" }, { "content": "on january 12 who was the visitor?", "role": "user" }, { "content": "SELECT visitor FROM table_name_16 WHERE date = \"january 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_26 (laps INTEGER, manufacturer VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "What's the smallest amount of laps that suzuki ran with a grid value of 8?", "role": "user" }, { "content": "SELECT MIN(laps) FROM table_name_26 WHERE manufacturer = \"suzuki\" AND grid = 8", "role": "assistant" } ]