messages
listlengths
3
3
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_73 (branding VARCHAR, callsign VARCHAR)", "role": "system" }, { "content": "What is Branding, when Callsign is \"DXED-TV\"?", "role": "user" }, { "content": "SELECT branding FROM table_name_73 WHERE callsign = \"dxed-tv\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (siburan_padawan VARCHAR, tagalog VARCHAR)", "role": "system" }, { "content": "What is the Siburan-Padawan word for the Tagalog word kanin?", "role": "user" }, { "content": "SELECT siburan_padawan FROM table_name_98 WHERE tagalog = \"kanin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (nationality VARCHAR, lane VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What nationality has a lane less than 6, with 1 as the rank?", "role": "user" }, { "content": "SELECT nationality FROM table_name_32 WHERE lane < 6 AND rank = 1", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_17 (points VARCHAR, goals_for VARCHAR, draws VARCHAR, wins VARCHAR)", "role": "system" }, { "content": "What is Points, when Draws is less than 7, when Wins is less than 16, and when Goals For is \"35\"?", "role": "user" }, { "content": "SELECT points FROM table_name_17 WHERE draws < 7 AND wins < 16 AND goals_for = 35", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_85 (position VARCHAR, competition VARCHAR)", "role": "system" }, { "content": "What Position has a Super League 1 Competition?", "role": "user" }, { "content": "SELECT position FROM table_name_85 WHERE competition = \"super league 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 campuses (campus VARCHAR, LOCATION VARCHAR, county VARCHAR)", "role": "system" }, { "content": "Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco.", "role": "user" }, { "content": "SELECT campus FROM campuses WHERE LOCATION = \"Northridge\" AND county = \"Los Angeles\" UNION SELECT campus FROM campuses WHERE LOCATION = \"San Francisco\" AND county = \"San Francisco\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1566852_5 (date VARCHAR, interview_subject VARCHAR)", "role": "system" }, { "content": "Name the date for oliver stone", "role": "user" }, { "content": "SELECT date FROM table_1566852_5 WHERE interview_subject = \"Oliver Stone\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (name VARCHAR, country VARCHAR, index VARCHAR)", "role": "system" }, { "content": "What is the name of the player from Malaysia, Kuala Lumpur in Index f8?", "role": "user" }, { "content": "SELECT name FROM table_name_67 WHERE country = \"malaysia, kuala lumpur\" AND index = \"f8\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (stations VARCHAR, platforms VARCHAR, managed_by VARCHAR, zone VARCHAR)", "role": "system" }, { "content": "Name the stations for zone 5 and 1 platform by tramlink", "role": "user" }, { "content": "SELECT stations FROM table_name_58 WHERE managed_by = \"tramlink\" AND zone = 5 AND platforms = 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_83 (score VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "What was the score when the attendance was 18,545?", "role": "user" }, { "content": "SELECT score FROM table_name_83 WHERE attendance = \"18,545\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (week INTEGER, attendance VARCHAR)", "role": "system" }, { "content": "Name the average week for attendance of 75,111", "role": "user" }, { "content": "SELECT AVG(week) FROM table_name_17 WHERE attendance = 75 OFFSET 111", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22879323_10 (high_points VARCHAR, high_rebounds VARCHAR)", "role": "system" }, { "content": "What was the high points when rebounds were Terrence Williams (8)?", "role": "user" }, { "content": "SELECT high_points FROM table_22879323_10 WHERE high_rebounds = \"Terrence Williams (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_34 (mascot VARCHAR, school VARCHAR, enrollment VARCHAR, ihsaa_class VARCHAR)", "role": "system" }, { "content": "What's the mascot of Eastern Pekin having less than 627 enrolled and an AA for their IHSAA Class?", "role": "user" }, { "content": "SELECT mascot FROM table_name_34 WHERE enrollment < 627 AND ihsaa_class = \"aa\" AND school = \"eastern pekin\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (team VARCHAR, points_diff VARCHAR)", "role": "system" }, { "content": "What team has +119 Points diff?", "role": "user" }, { "content": "SELECT team FROM table_name_83 WHERE points_diff = \"+119\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_79 (name VARCHAR, floors VARCHAR, city VARCHAR, completion VARCHAR)", "role": "system" }, { "content": "What building is in Shenzhen, have less than 115 floors, and was completed before 2017?", "role": "user" }, { "content": "SELECT name FROM table_name_79 WHERE city = \"shenzhen\" AND completion < 2017 AND floors < 115", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (lost INTEGER, place VARCHAR, points VARCHAR, draw VARCHAR)", "role": "system" }, { "content": "What's the total of Lost that's got Points larger than 28, Draw of 5, and Place that's smaller than 1?", "role": "user" }, { "content": "SELECT SUM(lost) FROM table_name_69 WHERE points > 28 AND draw = 5 AND place < 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_79 (Id VARCHAR)", "role": "system" }, { "content": "What is the 2009 value with a 2010 A value?", "role": "user" }, { "content": "SELECT 2009 FROM table_name_79 WHERE 2010 = \"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_16409745_1 (dimensions__mm_ VARCHAR, product VARCHAR)", "role": "system" }, { "content": "What are the mm dimensions for the Fujitsu fi-6130 a4 Series Scanner?", "role": "user" }, { "content": "SELECT dimensions__mm_ FROM table_16409745_1 WHERE product = \"Fujitsu fi-6130 A4 Series Scanner\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (score VARCHAR, january VARCHAR, points VARCHAR)", "role": "system" }, { "content": "Which Score has a January larger than 21, and Points of 63?", "role": "user" }, { "content": "SELECT score FROM table_name_18 WHERE january > 21 AND points = 63", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_82 (team_1 VARCHAR)", "role": "system" }, { "content": "What was the 2nd leg score for the match with Lesotho as team 1?", "role": "user" }, { "content": "SELECT 2 AS nd_leg FROM table_name_82 WHERE team_1 = \"lesotho\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1656555_1 (archbishop VARCHAR, ordained_bishop VARCHAR)", "role": "system" }, { "content": "Which archbishop was ordained as bishop November 30, 1925?", "role": "user" }, { "content": "SELECT archbishop FROM table_1656555_1 WHERE ordained_bishop = \"November 30, 1925\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rider VARCHAR, laps VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "Who was teh rider with 18 laps and a grid of 25?", "role": "user" }, { "content": "SELECT rider FROM table_name_43 WHERE laps = 18 AND grid = 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_29860752_11 (name__namesake_ VARCHAR)", "role": "system" }, { "content": "What are all the name(namesakes) for the entire chart?", "role": "user" }, { "content": "SELECT name__namesake_ FROM table_29860752_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_1182314_5 (percent__2000_ VARCHAR, percent__1980_ VARCHAR)", "role": "system" }, { "content": "what is the total number of percent (2000) where percent (1980) is 3.4%", "role": "user" }, { "content": "SELECT COUNT(percent__2000_) FROM table_1182314_5 WHERE percent__1980_ = \"3.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_65 (city VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Wjich city had a date of october 13?", "role": "user" }, { "content": "SELECT city FROM table_name_65 WHERE date = \"october 13\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_43 (away_team VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "Who faced off against St Kilda at their home?", "role": "user" }, { "content": "SELECT away_team AS score FROM table_name_43 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_36 (losses VARCHAR, draws VARCHAR, points VARCHAR)", "role": "system" }, { "content": "What is the number of losses when there were less than 4 draws, and points were 9?", "role": "user" }, { "content": "SELECT losses FROM table_name_36 WHERE draws < 4 AND points = 9", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_44 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR)", "role": "system" }, { "content": "What nationality is Northwood School (N.Y.)?", "role": "user" }, { "content": "SELECT nationality FROM table_name_44 WHERE college_junior_club_team__league_ = \"northwood school (n.y.)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (to_par VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What was the to par that goes with the score 68-74-69=211?", "role": "user" }, { "content": "SELECT to_par FROM table_name_70 WHERE score = 68 - 74 - 69 = 211", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (artist VARCHAR, draw VARCHAR)", "role": "system" }, { "content": "What artist had 1 draw?", "role": "user" }, { "content": "SELECT artist FROM table_name_52 WHERE draw = 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_14 (home_team VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "Which Home Team has an Attendance of 1,859?", "role": "user" }, { "content": "SELECT home_team FROM table_name_14 WHERE attendance = \"1,859\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (played INTEGER, club VARCHAR, losses VARCHAR)", "role": "system" }, { "content": "Which Played has a Club of atlético ceuta, and less than 11 Losses?", "role": "user" }, { "content": "SELECT MAX(played) FROM table_name_40 WHERE club = \"atlético ceuta\" AND losses < 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_91 (celebrity VARCHAR, finished VARCHAR)", "role": "system" }, { "content": "Who was the celebrity who finished in 7th place?", "role": "user" }, { "content": "SELECT celebrity FROM table_name_91 WHERE finished = \"7th\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rank INTEGER, nation VARCHAR, bronze VARCHAR)", "role": "system" }, { "content": "Which Rank has a Nation of china (chn), and a Bronze smaller than 4?", "role": "user" }, { "content": "SELECT MAX(rank) FROM table_name_17 WHERE nation = \"china (chn)\" AND bronze < 4", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE Rooms (roomName VARCHAR, decor VARCHAR, bedtype VARCHAR, basePrice VARCHAR)", "role": "system" }, { "content": "List the names and decor of rooms that have a king bed. Sort the list by their price.", "role": "user" }, { "content": "SELECT roomName, decor FROM Rooms WHERE bedtype = 'King' ORDER BY basePrice", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (b_score INTEGER, position VARCHAR, total VARCHAR)", "role": "system" }, { "content": "What the B Score when the total is 16.125 and the position is less than 7?", "role": "user" }, { "content": "SELECT SUM(b_score) FROM table_name_10 WHERE position < 7 AND total = 16.125", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (against INTEGER, date VARCHAR)", "role": "system" }, { "content": "How many against on the date of 08/06/1985?", "role": "user" }, { "content": "SELECT SUM(against) FROM table_name_64 WHERE date = \"08/06/1985\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (location___state VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the location/state of the race on 16 Jun?", "role": "user" }, { "content": "SELECT location___state FROM table_name_92 WHERE date = \"16 jun\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (opponent VARCHAR, date VARCHAR, result VARCHAR)", "role": "system" }, { "content": "who is the opponent on 2004-06-26 with the result of loss?", "role": "user" }, { "content": "SELECT opponent FROM table_name_78 WHERE date = \"2004-06-26\" AND result = \"loss\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (bronze INTEGER, rank VARCHAR, silver VARCHAR)", "role": "system" }, { "content": "How many Bronzes have a Rank of 9, and a Silver larger than 2?", "role": "user" }, { "content": "SELECT SUM(bronze) FROM table_name_5 WHERE rank = \"9\" AND silver > 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_26 (rank INTEGER, bronze VARCHAR, total VARCHAR, gold VARCHAR)", "role": "system" }, { "content": "What was the average rank for team with more than 44 gold, more and 76 bronze and a higher total than 73?", "role": "user" }, { "content": "SELECT AVG(rank) FROM table_name_26 WHERE total > 73 AND gold > 44 AND bronze > 76", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_24949975_1 (away_team VARCHAR, result VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "What was the away team when the result was 2–1 and home team was the bohemians?", "role": "user" }, { "content": "SELECT away_team FROM table_24949975_1 WHERE result = \"2–1\" AND home_team = \"Bohemians\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_31 (time INTEGER, year VARCHAR, event VARCHAR)", "role": "system" }, { "content": "What's the highest time for the 1995 200 metres event?", "role": "user" }, { "content": "SELECT MAX(time) FROM table_name_31 WHERE year = 1995 AND event = \"200 metres\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18425346_2 (district VARCHAR, serial_no VARCHAR)", "role": "system" }, { "content": "In what district is the city listed in Serial number 9?", "role": "user" }, { "content": "SELECT COUNT(district) FROM table_18425346_2 WHERE serial_no = 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_43 (score VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What is the score of the team with the 14-9 record?", "role": "user" }, { "content": "SELECT score FROM table_name_43 WHERE record = \"14-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_2 (icao VARCHAR, iata VARCHAR)", "role": "system" }, { "content": "What is the ICAO when the IATA shows mfm?", "role": "user" }, { "content": "SELECT icao FROM table_name_2 WHERE iata = \"mfm\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2911781_3 (fastest_lap VARCHAR, rd VARCHAR)", "role": "system" }, { "content": "Who had the fastest lap in round 15?", "role": "user" }, { "content": "SELECT fastest_lap FROM table_2911781_3 WHERE rd = 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_21191496_1 (report VARCHAR, country VARCHAR)", "role": "system" }, { "content": "When Netherlands is the country what is the report? ", "role": "user" }, { "content": "SELECT report FROM table_21191496_1 WHERE country = \"Netherlands\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (winner VARCHAR, prize VARCHAR)", "role": "system" }, { "content": "Who was the winner of the prize zł 1,226,711?", "role": "user" }, { "content": "SELECT winner FROM table_name_39 WHERE prize = \"zł 1,226,711\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (oppose VARCHAR, unsure VARCHAR, poll_source VARCHAR)", "role": "system" }, { "content": "What percentage of people were opposed to the candidate based on the WNBC/Marist poll that showed 8% of people were unsure?", "role": "user" }, { "content": "SELECT oppose FROM table_name_47 WHERE unsure = \"8%\" AND poll_source = \"wnbc/marist poll\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (nominee VARCHAR, category VARCHAR)", "role": "system" }, { "content": "Which nominee was nominated in the Outstanding Director of a Musical category?", "role": "user" }, { "content": "SELECT nominee FROM table_name_17 WHERE category = \"outstanding director of a musical\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, tie_no VARCHAR)", "role": "system" }, { "content": "what is the date when the tie no is 9?", "role": "user" }, { "content": "SELECT date FROM table_name_46 WHERE tie_no = \"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_1 (outcome VARCHAR, surface VARCHAR, score_in_the_final VARCHAR)", "role": "system" }, { "content": "What is the outcome on a hard surface, when the score in the final was 4–6, 3–6?", "role": "user" }, { "content": "SELECT outcome FROM table_name_1 WHERE surface = \"hard\" AND score_in_the_final = \"4–6, 3–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_16388398_1 (home_team VARCHAR)", "role": "system" }, { "content": "What was the home team score when Brisbane lions was the home team?", "role": "user" }, { "content": "SELECT home_team AS score FROM table_16388398_1 WHERE home_team = \"Brisbane Lions\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_50 (game VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the game number that took place on April 27?", "role": "user" }, { "content": "SELECT game FROM table_name_50 WHERE date = \"april 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_11677691_1 (position VARCHAR, hometown VARCHAR)", "role": "system" }, { "content": "What position did the player from Jersey City, New Jersey play? ", "role": "user" }, { "content": "SELECT position FROM table_11677691_1 WHERE hometown = \"Jersey City, 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 table_name_39 (position VARCHAR, college VARCHAR)", "role": "system" }, { "content": "What position does the saint louis player play?", "role": "user" }, { "content": "SELECT position FROM table_name_39 WHERE college = \"saint louis\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year INTEGER, category VARCHAR, award VARCHAR)", "role": "system" }, { "content": "What's the earliest year that had a category of best supporting actress at the asian film awards?", "role": "user" }, { "content": "SELECT MIN(year) FROM table_name_46 WHERE category = \"best supporting actress\" AND award = \"asian film awards\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_54 (date VARCHAR, outcome VARCHAR, opponents_in_the_final VARCHAR)", "role": "system" }, { "content": "What date shows the Outcome of winner against nikola fraňková carmen klaschka?", "role": "user" }, { "content": "SELECT date FROM table_name_54 WHERE outcome = \"winner\" AND opponents_in_the_final = \"nikola fraňková carmen klaschka\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2850912_3 (pick__number INTEGER, player VARCHAR)", "role": "system" }, { "content": "What is Graeme Bonar's lowest pick number?", "role": "user" }, { "content": "SELECT MIN(pick__number) FROM table_2850912_3 WHERE player = \"Graeme Bonar\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_74 (athlete VARCHAR, event VARCHAR)", "role": "system" }, { "content": "Which athlete has a 35 km event?", "role": "user" }, { "content": "SELECT athlete FROM table_name_74 WHERE event = \"35 km\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (position VARCHAR, player VARCHAR)", "role": "system" }, { "content": "What position does Mikhail Kravets play?", "role": "user" }, { "content": "SELECT position FROM table_name_15 WHERE player = \"mikhail kravets\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, round VARCHAR, player VARCHAR)", "role": "system" }, { "content": "In Round 19, where did Tony Lockett play?", "role": "user" }, { "content": "SELECT venue FROM table_name_20 WHERE round = \"19\" AND player = \"tony lockett\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (year VARCHAR, award VARCHAR)", "role": "system" }, { "content": "What year has american music awards?", "role": "user" }, { "content": "SELECT COUNT(year) FROM table_name_97 WHERE award = \"american music awards\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_86 (network VARCHAR, title VARCHAR)", "role": "system" }, { "content": "What is the Network, when Title is \"Epik High's Love And Delusion\"?", "role": "user" }, { "content": "SELECT network FROM table_name_86 WHERE title = \"epik high's love and delusion\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (value VARCHAR, first_issued VARCHAR, reverse VARCHAR)", "role": "system" }, { "content": "How much was a Reverse of guitar of agustín pío barrios before 1998?", "role": "user" }, { "content": "SELECT value FROM table_name_1 WHERE first_issued < 1998 AND reverse = \"guitar of agustín pío barrios\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_21 (rank INTEGER, heat VARCHAR, nation VARCHAR)", "role": "system" }, { "content": "what is the rank when heat is 9 and the nation is great britain?", "role": "user" }, { "content": "SELECT SUM(rank) FROM table_name_21 WHERE heat = 9 AND nation = \"great britain\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, record VARCHAR)", "role": "system" }, { "content": "Which Date has a Record of 4–2–0?", "role": "user" }, { "content": "SELECT date FROM table_name_68 WHERE record = \"4–2–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_95 (grid INTEGER, time_retired VARCHAR)", "role": "system" }, { "content": "Which grid has a Time/Retired of +5.004?", "role": "user" }, { "content": "SELECT MIN(grid) FROM table_name_95 WHERE time_retired = \"+5.004\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query 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_10 (township VARCHAR, land___sqmi__ VARCHAR)", "role": "system" }, { "content": "What township is 28.597 square miles of land?", "role": "user" }, { "content": "SELECT township FROM table_18600760_10 WHERE land___sqmi__ = \"28.597\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_1 (days_held VARCHAR, reign VARCHAR, defenses VARCHAR)", "role": "system" }, { "content": "What is the days held the champion with a reign larger than 3 and less than 1 defense has?", "role": "user" }, { "content": "SELECT days_held FROM table_name_1 WHERE reign > 3 AND defenses < 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_66 (score VARCHAR, attendance VARCHAR)", "role": "system" }, { "content": "What is Score, when Attendance is \"349\"?", "role": "user" }, { "content": "SELECT score FROM table_name_66 WHERE attendance = \"349\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (bronze VARCHAR, total VARCHAR, rank VARCHAR, gold VARCHAR)", "role": "system" }, { "content": "How many bronzes for nations ranked above 7, under 3 golds, and under 10 total medals?", "role": "user" }, { "content": "SELECT COUNT(bronze) FROM table_name_78 WHERE rank < 7 AND gold < 3 AND total < 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_46 (wins INTEGER, goals_for VARCHAR, goal_difference VARCHAR, position VARCHAR)", "role": "system" }, { "content": "What is the lowest wins entry that has a goal difference less than 33, position higher than 13, and 42 goals?", "role": "user" }, { "content": "SELECT MIN(wins) FROM table_name_46 WHERE goal_difference < 33 AND position < 13 AND goals_for = 42", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_14971788_1 (game_site VARCHAR, opponent VARCHAR)", "role": "system" }, { "content": "Where was the game against Atlanta Falcons held?", "role": "user" }, { "content": "SELECT game_site FROM table_14971788_1 WHERE opponent = \"Atlanta Falcons\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (top_10 INTEGER, cuts_made VARCHAR, events VARCHAR)", "role": "system" }, { "content": "what is the average top-10 when the cuts made is less than 9 and the events is more than 14?", "role": "user" }, { "content": "SELECT AVG(top_10) FROM table_name_48 WHERE cuts_made < 9 AND events > 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 table_name_95 (week_3 VARCHAR, week_4 VARCHAR)", "role": "system" }, { "content": "What Week 3 has a Week 4 of gina blair?", "role": "user" }, { "content": "SELECT week_3 FROM table_name_95 WHERE week_4 = \"gina blair\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (points INTEGER, lost INTEGER)", "role": "system" }, { "content": "Which average Points has a Lost higher than 20?", "role": "user" }, { "content": "SELECT AVG(points) FROM table_name_78 WHERE lost > 20", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_71 (race_1 VARCHAR, team VARCHAR, race_3 VARCHAR)", "role": "system" }, { "content": "What is Race 1, when Team is \"Dick Johnson Racing\", and when Race 3 is \"DNF\"?", "role": "user" }, { "content": "SELECT race_1 FROM table_name_71 WHERE team = \"dick johnson racing\" AND race_3 = \"dnf\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18332845_2 (calling_at VARCHAR, arrival VARCHAR)", "role": "system" }, { "content": "What was the calling for the 18.42 arrival time?", "role": "user" }, { "content": "SELECT calling_at FROM table_18332845_2 WHERE arrival = \"18.42\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, other_characteristic_details VARCHAR, characteristic_data_type VARCHAR, characteristic_id VARCHAR); CREATE TABLE product_characteristics (characteristic_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_name VARCHAR, other_characteristic_details VARCHAR, characteristic_data_type VARCHAR)", "role": "system" }, { "content": "What are the names, details and data types of the characteristics which are never used by any product?", "role": "user" }, { "content": "SELECT characteristic_name, other_characteristic_details, characteristic_data_type FROM CHARACTERISTICS EXCEPT SELECT t1.characteristic_name, t1.other_characteristic_details, t1.characteristic_data_type FROM CHARACTERISTICS AS t1 JOIN product_characteristics AS t2 ON t1.characteristic_id = t2.characteristic_id", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_37 (goals INTEGER, matches VARCHAR, name VARCHAR)", "role": "system" }, { "content": "What are the lowest goal that have goals/matches greater than 0.43 with joachim streich as the name and matches greater than 378?", "role": "user" }, { "content": "SELECT MIN(goals) FROM table_name_37 WHERE goals / matches > 0.43 AND name = \"joachim streich\" AND matches > 378", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_21584646_10 (week_of VARCHAR, champion VARCHAR)", "role": "system" }, { "content": "How many weeks are shown for the champion of john mcenroe 6–2, 6–3?", "role": "user" }, { "content": "SELECT COUNT(week_of) FROM table_21584646_10 WHERE champion = \"John McEnroe 6–2, 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_55 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR)", "role": "system" }, { "content": "Who is Austin Dillon's primary sponsor(s)?", "role": "user" }, { "content": "SELECT primary_sponsor_s_ FROM table_name_55 WHERE driver_s_ = \"austin dillon\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_80 (total INTEGER, county VARCHAR)", "role": "system" }, { "content": "What is galway county's total?", "role": "user" }, { "content": "SELECT SUM(total) FROM table_name_80 WHERE county = \"galway\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1014319_1 (goodman VARCHAR, result VARCHAR, dance_song VARCHAR)", "role": "system" }, { "content": "How many scores did Goodman give to \"samba / young hearts run free\", which was in second place?", "role": "user" }, { "content": "SELECT COUNT(goodman) FROM table_1014319_1 WHERE result = \"Second place\" AND dance_song = \"Samba / Young Hearts Run Free\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1007688_1 (smallpox INTEGER, typhoid_fever VARCHAR)", "role": "system" }, { "content": "what is the number of smallpox when typhoid fever is 293", "role": "user" }, { "content": "SELECT MAX(smallpox) FROM table_1007688_1 WHERE typhoid_fever = 293", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_22736523_1 (result VARCHAR, order__number VARCHAR, song_choice VARCHAR)", "role": "system" }, { "content": "If the song choice is Coba and the order number is 10, what is the result?", "role": "user" }, { "content": "SELECT result FROM table_22736523_1 WHERE order__number = \"10\" AND song_choice = \"Coba\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (outcome VARCHAR, partner VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the outcome on 11 October 2009, when his partner was Jordan Kerr?", "role": "user" }, { "content": "SELECT outcome FROM table_name_72 WHERE partner = \"jordan kerr\" AND date = \"11 october 2009\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_25 (wins INTEGER, team VARCHAR)", "role": "system" }, { "content": "How many average wins have USA as the team?", "role": "user" }, { "content": "SELECT AVG(wins) FROM table_name_25 WHERE team = \"usa\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (place VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the place of the 68-69-73=210?", "role": "user" }, { "content": "SELECT place FROM table_name_51 WHERE score = 68 - 69 - 73 = 210", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_65 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the score on August 19?", "role": "user" }, { "content": "SELECT score FROM table_name_65 WHERE date = \"august 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_94 (ethnic_group VARCHAR, buddhist VARCHAR)", "role": "system" }, { "content": "Name the ethnic group with a buddhist of 0.19%", "role": "user" }, { "content": "SELECT ethnic_group FROM table_name_94 WHERE buddhist = \"0.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_1818471_1 (value VARCHAR, mitchell VARCHAR)", "role": "system" }, { "content": "What is every value when Mitchell is 676?", "role": "user" }, { "content": "SELECT value FROM table_1818471_1 WHERE mitchell = 676", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (round INTEGER, location VARCHAR)", "role": "system" }, { "content": "Which Round has a Location of bahia, brazil?", "role": "user" }, { "content": "SELECT AVG(round) FROM table_name_52 WHERE location = \"bahia, brazil\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date INTEGER, score VARCHAR)", "role": "system" }, { "content": "What is the earliest date of the game with a score of 2-2?", "role": "user" }, { "content": "SELECT MIN(date) FROM table_name_14 WHERE score = \"2-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_96 (silver VARCHAR, nation VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR)", "role": "system" }, { "content": "What's the total number of Silver that has Gold that's larger than 0, Bronze that's smaller than 23, a Total that's larger than 22, and has the Nation of Saint Kitts and Nevis?", "role": "user" }, { "content": "SELECT COUNT(silver) FROM table_name_96 WHERE gold > 0 AND bronze < 23 AND total > 22 AND nation = \"saint kitts and nevis\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12028543_3 (losingteam VARCHAR, cup_finaldate VARCHAR)", "role": "system" }, { "content": "How many losingteams were for the cup finaldate 20 August 1989?", "role": "user" }, { "content": "SELECT COUNT(losingteam) FROM table_12028543_3 WHERE cup_finaldate = \"20 August 1989\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (paris_roubaix___fra__ VARCHAR, year VARCHAR)", "role": "system" }, { "content": "Who won the Paris-Roubaix in 2006?", "role": "user" }, { "content": "SELECT paris_roubaix___fra__ FROM table_name_33 WHERE year = 2006", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27744976_10 (high_rebounds VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Who had highest rebounds during game on March 12?", "role": "user" }, { "content": "SELECT high_rebounds FROM table_27744976_10 WHERE date = \"March 12\"", "role": "assistant" } ]