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_37 (driver VARCHAR, season VARCHAR, tuner VARCHAR, governing_body VARCHAR)", "role": "system" }, { "content": "Who is the driver in season 2003 with a tuner of N. Leelakrishnan and a Mai governing body?", "role": "user" }, { "content": "SELECT driver FROM table_name_37 WHERE tuner = \"n. leelakrishnan\" AND governing_body = \"mai\" AND season = 2003", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_63 (date VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What date has alamodome, san antonio, united states as the venue?", "role": "user" }, { "content": "SELECT date FROM table_name_63 WHERE venue = \"alamodome, san antonio, united states\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (player VARCHAR, college VARCHAR)", "role": "system" }, { "content": "What Player is from the College of memphis?", "role": "user" }, { "content": "SELECT player FROM table_name_5 WHERE college = \"memphis\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_62 (nationality VARCHAR, round VARCHAR, time VARCHAR)", "role": "system" }, { "content": "What was the nationality of the swimmer in the semifinal with a time of 29.51?", "role": "user" }, { "content": "SELECT nationality FROM table_name_62 WHERE round = \"semifinal\" AND time = \"29.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_24 (venue VARCHAR, goal VARCHAR)", "role": "system" }, { "content": "What is the Venue for Goal number 1?", "role": "user" }, { "content": "SELECT venue FROM table_name_24 WHERE goal = 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_26336060_19 (coinage_metal VARCHAR, km_number VARCHAR)", "role": "system" }, { "content": "What is the coinage metal for KM numbers of S45?", "role": "user" }, { "content": "SELECT coinage_metal FROM table_26336060_19 WHERE km_number = \"S45\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (artist VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the Artist with a Date that is june 1979?", "role": "user" }, { "content": "SELECT artist FROM table_name_48 WHERE date = \"june 1979\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18365784_3 (arrival VARCHAR, departure VARCHAR)", "role": "system" }, { "content": "What was the arrival time of the train that departed at 18.16?", "role": "user" }, { "content": "SELECT arrival FROM table_18365784_3 WHERE departure = \"18.16\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_94 (against VARCHAR, team VARCHAR, position VARCHAR)", "role": "system" }, { "content": "What is the Total againsts for the Sant'Anna team with a position number greater than 10?", "role": "user" }, { "content": "SELECT COUNT(against) FROM table_name_94 WHERE team = \"sant'anna\" AND position > 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_56 (overall INTEGER, name VARCHAR)", "role": "system" }, { "content": "WHAT IS THE AVERAGE OVERALL, FOR MARK FISCHER?", "role": "user" }, { "content": "SELECT AVG(overall) FROM table_name_56 WHERE name = \"mark fischer\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_81 (race_title VARCHAR, vehicle VARCHAR)", "role": "system" }, { "content": "What's the name of the title for the Maserati A6GCS?", "role": "user" }, { "content": "SELECT race_title FROM table_name_81 WHERE vehicle = \"maserati a6gcs\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (entrant VARCHAR, chassis VARCHAR)", "role": "system" }, { "content": "Name the entrant for chassis of gh1", "role": "user" }, { "content": "SELECT entrant FROM table_name_27 WHERE chassis = \"gh1\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (result VARCHAR, field VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What is the result of the game at Bishop Kearney Field on August 2?", "role": "user" }, { "content": "SELECT result FROM table_name_24 WHERE field = \"bishop kearney field\" AND date = \"august 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_68 (democratic_ticket VARCHAR, liberal_ticket VARCHAR)", "role": "system" }, { "content": "Who ran under the Democratic ticket when Edward R. Dudley ran under the Liberal ticket?", "role": "user" }, { "content": "SELECT democratic_ticket FROM table_name_68 WHERE liberal_ticket = \"edward r. dudley\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_42 (round VARCHAR, kick_off VARCHAR)", "role": "system" }, { "content": "Which round has a Kick Off of 1992-10-01 21:15?", "role": "user" }, { "content": "SELECT round FROM table_name_42 WHERE kick_off = \"1992-10-01 21:15\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_31 (english VARCHAR, cardinal_direction VARCHAR)", "role": "system" }, { "content": "What is the cardinal direction northwest in English?", "role": "user" }, { "content": "SELECT english FROM table_name_31 WHERE cardinal_direction = \"northwest\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_76 (team VARCHAR, notes VARCHAR)", "role": "system" }, { "content": "WHAT TEAM WAS AN NCAA CHAMPION?", "role": "user" }, { "content": "SELECT team FROM table_name_76 WHERE notes = \"ncaa champion\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (mutated_from VARCHAR, habit VARCHAR, pattern VARCHAR)", "role": "system" }, { "content": "Who's the inventor when it was mutated from Redsport Type 2, has a stripe pattern and a spur habit?", "role": "user" }, { "content": "SELECT \"inventor\" FROM table_name_2 WHERE habit = \"spur\" AND pattern = \"stripe\" AND mutated_from = \"redsport type 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_72 (score VARCHAR, date VARCHAR)", "role": "system" }, { "content": "What was the final score for the game on May 1?", "role": "user" }, { "content": "SELECT score FROM table_name_72 WHERE date = \"may 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 Flight (flno VARCHAR, distance VARCHAR)", "role": "system" }, { "content": "Show the flight number of flights with three lowest distances.", "role": "user" }, { "content": "SELECT flno FROM Flight ORDER BY distance LIMIT 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_65 (date VARCHAR, attendance INTEGER)", "role": "system" }, { "content": "Name the date when the attendance is more than 45,817", "role": "user" }, { "content": "SELECT date FROM table_name_65 WHERE attendance > 45 OFFSET 817", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (surface VARCHAR, date VARCHAR)", "role": "system" }, { "content": "On July 15, 1984 what surface was used?", "role": "user" }, { "content": "SELECT surface FROM table_name_15 WHERE date = \"july 15, 1984\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (fourth_quarter VARCHAR, rank VARCHAR, second_quarter VARCHAR)", "role": "system" }, { "content": "When the rank is less than 4, and has a second quarter of exxon mobil 341,140.3, what is the fourth quarter?", "role": "user" }, { "content": "SELECT fourth_quarter FROM table_name_27 WHERE rank < 4 AND second_quarter = \"exxon mobil 341,140.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_68 (year_s__won VARCHAR, finish VARCHAR)", "role": "system" }, { "content": "What years did the player with a t71 finish win?", "role": "user" }, { "content": "SELECT year_s__won FROM table_name_68 WHERE finish = \"t71\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_93 (runner_up VARCHAR, season INTEGER)", "role": "system" }, { "content": "Who was the runner up before 2007?", "role": "user" }, { "content": "SELECT runner_up FROM table_name_93 WHERE season < 2007", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_45 (player VARCHAR, conv VARCHAR)", "role": "system" }, { "content": "which player has a conv of 14?", "role": "user" }, { "content": "SELECT player FROM table_name_45 WHERE conv = \"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_49 (record VARCHAR, home VARCHAR, score VARCHAR)", "role": "system" }, { "content": "Which Record has a Home of edmonton oilers, and a Score of 3–6?", "role": "user" }, { "content": "SELECT record FROM table_name_49 WHERE home = \"edmonton oilers\" AND score = \"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_27914606_1 (season__number VARCHAR, us_viewers__millions_ VARCHAR)", "role": "system" }, { "content": "what is the number of the episode in the season that had 7.19 millions of north american viewers? ", "role": "user" }, { "content": "SELECT season__number FROM table_27914606_1 WHERE us_viewers__millions_ = \"7.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 services (service_name VARCHAR)", "role": "system" }, { "content": "List all the services in the alphabetical order.", "role": "user" }, { "content": "SELECT service_name FROM services ORDER BY service_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_name_28 (weight VARCHAR, spike VARCHAR, block VARCHAR, height VARCHAR)", "role": "system" }, { "content": "What is the Weight of the player with a Block larger than 328, Spike greater than 375 and Height larger than 207?", "role": "user" }, { "content": "SELECT COUNT(weight) FROM table_name_28 WHERE block > 328 AND height > 207 AND spike > 375", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_57 (motor VARCHAR, quantity VARCHAR, class VARCHAR)", "role": "system" }, { "content": "Which motor's quantity was more than 8, and a class of bs 1915?", "role": "user" }, { "content": "SELECT motor FROM table_name_57 WHERE quantity > 8 AND class = \"bs 1915\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_35 (year VARCHAR, director VARCHAR)", "role": "system" }, { "content": "When was Lee Phillips the director?", "role": "user" }, { "content": "SELECT year FROM table_name_35 WHERE director = \"lee phillips\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (home_team VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "Who was the home team when the away team was Hawthorn?", "role": "user" }, { "content": "SELECT home_team FROM table_name_15 WHERE away_team = \"hawthorn\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (events VARCHAR, tournament VARCHAR, top_25 VARCHAR)", "role": "system" }, { "content": "Tell me the total number of events for tournament of masters tournament and top 25 less than 6", "role": "user" }, { "content": "SELECT COUNT(events) FROM table_name_32 WHERE tournament = \"masters tournament\" AND top_25 < 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_53 (high_assists VARCHAR, game VARCHAR)", "role": "system" }, { "content": "Who has the highest assists in game 72?", "role": "user" }, { "content": "SELECT high_assists FROM table_name_53 WHERE game = 72", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_30 (opponent VARCHAR, date VARCHAR)", "role": "system" }, { "content": "Which Opponent has a Date of november 17, 1963?", "role": "user" }, { "content": "SELECT opponent FROM table_name_30 WHERE date = \"november 17, 1963\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_18598175_2 (elimination_number INTEGER, time VARCHAR)", "role": "system" }, { "content": "What was the elimination number of the fighter who fought within 26:15?", "role": "user" }, { "content": "SELECT MAX(elimination_number) FROM table_18598175_2 WHERE time = \"26:15\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "Which home team played against Geelong?", "role": "user" }, { "content": "SELECT home_team FROM table_name_39 WHERE away_team = \"geelong\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (hanzi VARCHAR, name VARCHAR)", "role": "system" }, { "content": "Which hanzi's name is nmtv mongolian satellite television?", "role": "user" }, { "content": "SELECT hanzi FROM table_name_84 WHERE name = \"nmtv mongolian satellite television\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (attendance INTEGER, opponent VARCHAR, venue VARCHAR)", "role": "system" }, { "content": "What is the lowest Attendance when Middlesbrough played at Venue A?", "role": "user" }, { "content": "SELECT MIN(attendance) FROM table_name_34 WHERE opponent = \"middlesbrough\" AND venue = \"a\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_8 (player VARCHAR, balls VARCHAR)", "role": "system" }, { "content": "What player had 49 balls?", "role": "user" }, { "content": "SELECT player FROM table_name_8 WHERE balls = 49", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_35 (to_par VARCHAR, score VARCHAR)", "role": "system" }, { "content": "What is the To par of the Player with a Score of 73-70-71-72=286?", "role": "user" }, { "content": "SELECT to_par FROM table_name_35 WHERE score = 73 - 70 - 71 - 72 = 286", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rank INTEGER, director VARCHAR)", "role": "system" }, { "content": "What is the highest Rank, when Director is \"Henry Hathaway\"?", "role": "user" }, { "content": "SELECT MAX(rank) FROM table_name_63 WHERE director = \"henry hathaway\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE climber (Country VARCHAR)", "role": "system" }, { "content": "How many distinct countries are the climbers from?", "role": "user" }, { "content": "SELECT COUNT(DISTINCT Country) FROM climber", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (hong_kong INTEGER, brisbane VARCHAR, kuala_lumpur VARCHAR)", "role": "system" }, { "content": "What is the lowest Hong Kong value with a 0 Brisbane value and a greater than 0 Kuala Lumpur value?", "role": "user" }, { "content": "SELECT MIN(hong_kong) FROM table_name_52 WHERE brisbane = 0 AND kuala_lumpur > 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_11 (platform_s_ VARCHAR, game VARCHAR)", "role": "system" }, { "content": "What was the platform of Red Dead Redemption?", "role": "user" }, { "content": "SELECT platform_s_ FROM table_name_11 WHERE game = \"red dead redemption\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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, winning_score VARCHAR)", "role": "system" }, { "content": "On what date is the winning score –8 (70-71-67=208)?", "role": "user" }, { "content": "SELECT date FROM table_name_54 WHERE winning_score = –8(70 - 71 - 67 = 208)", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (rank VARCHAR, s_wicket VARCHAR, average VARCHAR)", "role": "system" }, { "content": "Which rank has a s wicket at 40 and 28.42 is the average?", "role": "user" }, { "content": "SELECT rank FROM table_name_66 WHERE s_wicket = \"40\" AND average = \"28.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_name_23 (crowd VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "When Richmond is the away team, what is the crowd size?", "role": "user" }, { "content": "SELECT crowd FROM table_name_23 WHERE away_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 table_name_17 (total INTEGER, nation VARCHAR, rank VARCHAR)", "role": "system" }, { "content": "What is the lowest total from United States with a Rank smaller than 2?", "role": "user" }, { "content": "SELECT MIN(total) FROM table_name_17 WHERE nation = \"united states\" AND rank < 2", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_29126507_1 (date VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "When did Fitzroy play as the home team?", "role": "user" }, { "content": "SELECT date FROM table_29126507_1 WHERE home_team = \"Fitzroy\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (team_1 VARCHAR, team_2 VARCHAR)", "role": "system" }, { "content": "What was the team 1 when Red Star (D1) was team 2?", "role": "user" }, { "content": "SELECT team_1 FROM table_name_60 WHERE team_2 = \"red star (d1)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_22 (winner VARCHAR, prize VARCHAR)", "role": "system" }, { "content": "What Winner had a Prize of zł2,153,999?", "role": "user" }, { "content": "SELECT winner FROM table_name_22 WHERE prize = \"zł2,153,999\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (venue VARCHAR, competition VARCHAR, notes VARCHAR)", "role": "system" }, { "content": "Where was European Championships held with notes of 61.46 m?", "role": "user" }, { "content": "SELECT venue FROM table_name_52 WHERE competition = \"european championships\" AND notes = \"61.46 m\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1603807_2 (operator VARCHAR, line VARCHAR)", "role": "system" }, { "content": "Which operator runs the Mamariga shuttle line?", "role": "user" }, { "content": "SELECT operator FROM table_1603807_2 WHERE line = \"Mamariga Shuttle\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_49 (noaa VARCHAR, darwin VARCHAR)", "role": "system" }, { "content": "What is the NOAA of the higher harmonics that have a Darwin of mn 4?", "role": "user" }, { "content": "SELECT noaa FROM table_name_49 WHERE darwin = \"mn 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_17355408_5 (high_points VARCHAR, location_attendance VARCHAR)", "role": "system" }, { "content": "Name the high points for pepsi center 18,611", "role": "user" }, { "content": "SELECT high_points FROM table_17355408_5 WHERE location_attendance = \"Pepsi Center 18,611\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (home_team VARCHAR, away_team VARCHAR)", "role": "system" }, { "content": "Which home team competed against the away team Geelong?", "role": "user" }, { "content": "SELECT home_team FROM table_name_16 WHERE away_team = \"geelong\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_27615445_1 (audition_city VARCHAR, episode_air_date VARCHAR)", "role": "system" }, { "content": "How many audition city's are there with an episode air date of June 24, 2010?", "role": "user" }, { "content": "SELECT COUNT(audition_city) FROM table_27615445_1 WHERE episode_air_date = \"June 24, 2010\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_7 (team VARCHAR, rider VARCHAR)", "role": "system" }, { "content": "Which team is John Williams a rider for?", "role": "user" }, { "content": "SELECT team FROM table_name_7 WHERE rider = \"john williams\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (player VARCHAR, position VARCHAR, school_club_team VARCHAR)", "role": "system" }, { "content": "Which Player has position of power forward and School/Club Team of Depaul?", "role": "user" }, { "content": "SELECT player FROM table_name_85 WHERE position = \"power forward\" AND school_club_team = \"depaul\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE school (Location VARCHAR, School_ID VARCHAR); CREATE TABLE school_details (Nickname VARCHAR, School_ID VARCHAR)", "role": "system" }, { "content": "Show locations and nicknames of schools.", "role": "user" }, { "content": "SELECT T1.Location, T2.Nickname FROM school AS T1 JOIN school_details AS T2 ON T1.School_ID = T2.School_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_1926240_1 (informational_cvbs_lines VARCHAR, max_characters__per_page_row_ VARCHAR, standard VARCHAR)", "role": "system" }, { "content": "What was the informational CVBS Lines of the encoding with max character of 32 and has B (global) standard?", "role": "user" }, { "content": "SELECT informational_cvbs_lines FROM table_1926240_1 WHERE max_characters__per_page_row_ = 32 AND standard = \"B (global)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR)", "role": "system" }, { "content": "How many policies are listed for the customer named \"Dayana Robel\"?", "role": "user" }, { "content": "SELECT COUNT(*) FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id WHERE t1.customer_name = \"Dayana Robel\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_27 (race VARCHAR, jockey VARCHAR, result VARCHAR)", "role": "system" }, { "content": "Which race has D. Beadman for the jockey and a 4th place result?", "role": "user" }, { "content": "SELECT race FROM table_name_27 WHERE jockey = \"d. beadman\" AND result = \"4th\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (points VARCHAR, laps VARCHAR, grid VARCHAR)", "role": "system" }, { "content": "How many points have 88 laps and a grid of 14?", "role": "user" }, { "content": "SELECT points FROM table_name_99 WHERE laps = \"88\" AND grid = \"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_22834834_3 (surface VARCHAR, score_in_the_final VARCHAR)", "role": "system" }, { "content": "Which surfaces have the final score of 6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–8)?", "role": "user" }, { "content": "SELECT surface FROM table_22834834_3 WHERE score_in_the_final = \"6–1, 6–7 (2–7) , 7–6 (7–5) , 7–6 (10–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_1 (score VARCHAR, record VARCHAR)", "role": "system" }, { "content": "What was the score of the game with a record of 34–17–11–2?", "role": "user" }, { "content": "SELECT score FROM table_name_1 WHERE record = \"34–17–11–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 All_documents (Date_Stored VARCHAR, date_stored VARCHAR); CREATE TABLE Ref_calendar (day_Number VARCHAR, calendar_date VARCHAR)", "role": "system" }, { "content": "What is the day Number and date of all the documents?", "role": "user" }, { "content": "SELECT T2.day_Number, T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored = T2.calendar_date", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (winner VARCHAR, city___state VARCHAR, team VARCHAR)", "role": "system" }, { "content": "What is Winner, when City / State is \"Mallala , South Australia\", and when Team is \"Elfin Sports Cars\"?", "role": "user" }, { "content": "SELECT winner FROM table_name_92 WHERE city___state = \"mallala , south australia\" AND team = \"elfin sports cars\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (ansi_code INTEGER, longitude VARCHAR, land___sqmi__ VARCHAR, latitude VARCHAR, geo_id VARCHAR)", "role": "system" }, { "content": "what is the highest ANSI code with a latitude more than 47.623288 and a geo id more than 3805508060 with land (sqmi) more than 35.66 and a longitude less than -102.054248", "role": "user" }, { "content": "SELECT MAX(ansi_code) FROM table_name_98 WHERE latitude > 47.623288 AND geo_id > 3805508060 AND land___sqmi__ > 35.66 AND longitude < -102.054248", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_99 (group_iII VARCHAR, group_i VARCHAR)", "role": "system" }, { "content": "Who won group III when group 1 was of the racing club?", "role": "user" }, { "content": "SELECT group_iII FROM table_name_99 WHERE group_i = \"racing club\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_35 (date VARCHAR, home_team VARCHAR)", "role": "system" }, { "content": "On what Date is West Ham United the Home team?", "role": "user" }, { "content": "SELECT date FROM table_name_35 WHERE home_team = \"west ham united\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE tryout (cName VARCHAR, decision VARCHAR, pPos VARCHAR)", "role": "system" }, { "content": "Which college has any student who is a goalie and succeeded in the tryout.", "role": "user" }, { "content": "SELECT cName FROM tryout WHERE decision = 'yes' AND pPos = 'goalie'", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_name_88 (league VARCHAR, league_position VARCHAR)", "role": "system" }, { "content": "What league has a position of 8/13?", "role": "user" }, { "content": "SELECT league FROM table_name_88 WHERE league_position = \"8/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_80 (mahu VARCHAR, pergi VARCHAR)", "role": "system" }, { "content": "What is Mahu when pergi is pi?", "role": "user" }, { "content": "SELECT mahu FROM table_name_80 WHERE pergi = \"pi\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (date VARCHAR, opponents VARCHAR, h___a VARCHAR)", "role": "system" }, { "content": "When is The Opponents of lincoln city and a H / A of a?", "role": "user" }, { "content": "SELECT date FROM table_name_31 WHERE opponents = \"lincoln city\" AND h___a = \"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_11677691_8 (college VARCHAR, player VARCHAR)", "role": "system" }, { "content": "Where did robert nkemdiche ‡ go to college", "role": "user" }, { "content": "SELECT college FROM table_11677691_8 WHERE player = \"Robert Nkemdiche ‡\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_12261714_2 (general_classification VARCHAR, stage VARCHAR)", "role": "system" }, { "content": "Who's leading in the general classification in stage 1a?", "role": "user" }, { "content": "SELECT general_classification FROM table_12261714_2 WHERE stage = \"1a\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (opposition VARCHAR, score VARCHAR, round VARCHAR, competition VARCHAR)", "role": "system" }, { "content": "What is the Opposition in the First Round of the UEFA Cup with a Score of 3–1 (h), 2–0 (a)?", "role": "user" }, { "content": "SELECT opposition FROM table_name_66 WHERE round = \"first round\" AND competition = \"uefa cup\" AND score = \"3–1 (h), 2–0 (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_30011_2 (reference VARCHAR, type_and_usage VARCHAR)", "role": "system" }, { "content": "What is every reference for type and usage of Germanium small-signal RF transistor?", "role": "user" }, { "content": "SELECT reference FROM table_30011_2 WHERE type_and_usage = \"Germanium small-signal RF transistor\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_178408_1 (year_built INTEGER, church_name VARCHAR)", "role": "system" }, { "content": "Name the most year built for davik kyrkje", "role": "user" }, { "content": "SELECT MAX(year_built) FROM table_178408_1 WHERE church_name = \"Davik Kyrkje\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (car INTEGER, yards INTEGER)", "role": "system" }, { "content": "What is the highest Car with more than 155 yards?", "role": "user" }, { "content": "SELECT MAX(car) FROM table_name_56 WHERE yards > 155", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (game INTEGER, opponent VARCHAR)", "role": "system" }, { "content": "what is the game when the opponent is new york knickerbockers?", "role": "user" }, { "content": "SELECT SUM(game) FROM table_name_96 WHERE opponent = \"new york knickerbockers\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (week INTEGER, date VARCHAR)", "role": "system" }, { "content": "What is the highest week of the game on November 9, 1997?", "role": "user" }, { "content": "SELECT MAX(week) FROM table_name_1 WHERE date = \"november 9, 1997\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (round VARCHAR, college VARCHAR)", "role": "system" }, { "content": "College of villanova has what round?", "role": "user" }, { "content": "SELECT round FROM table_name_65 WHERE college = \"villanova\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (electorate VARCHAR, member VARCHAR, state VARCHAR, party VARCHAR)", "role": "system" }, { "content": "Which Electorate is from vic, a labor party, and is David Charles a member of?", "role": "user" }, { "content": "SELECT electorate FROM table_name_6 WHERE state = \"vic\" AND party = \"labor\" AND member = \"david charles\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (completed VARCHAR, name VARCHAR)", "role": "system" }, { "content": "When was satsuki dd-27 completed?", "role": "user" }, { "content": "SELECT completed FROM table_name_25 WHERE name = \"satsuki dd-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_2801185_2 (status VARCHAR, successor VARCHAR)", "role": "system" }, { "content": "What are the statuses of the districts whose successor is Wiltshire?", "role": "user" }, { "content": "SELECT status FROM table_2801185_2 WHERE successor = \"Wiltshire\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (loser VARCHAR, year VARCHAR, winner VARCHAR)", "role": "system" }, { "content": "Who was the loser against the New York Giants in 2001?", "role": "user" }, { "content": "SELECT loser FROM table_name_43 WHERE year = 2001 AND winner = \"new york giants\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_1341598_22 (result VARCHAR, incumbent VARCHAR)", "role": "system" }, { "content": "What is the number of results for james shannon?", "role": "user" }, { "content": "SELECT COUNT(result) FROM table_1341598_22 WHERE incumbent = \"James Shannon\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (vs_all VARCHAR, vs_terran VARCHAR)", "role": "system" }, { "content": "What is the score vs. all when the score vs. Terran is 159?", "role": "user" }, { "content": "SELECT vs_all FROM table_name_72 WHERE vs_terran = \"159\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. 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 (popular_votes INTEGER, candidate VARCHAR)", "role": "system" }, { "content": "How many votes did candice sjostrom receive?", "role": "user" }, { "content": "SELECT AVG(popular_votes) FROM table_name_94 WHERE candidate = \"candice sjostrom\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_186468_1 (ka_band VARCHAR, v_band VARCHAR)", "role": "system" }, { "content": "When 4 is the v-band what is the overall amount of ka-bands?", "role": "user" }, { "content": "SELECT COUNT(ka_band) FROM table_186468_1 WHERE v_band = \"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_89 (player VARCHAR, year_s__won VARCHAR)", "role": "system" }, { "content": "Who won in 1991?", "role": "user" }, { "content": "SELECT player FROM table_name_89 WHERE year_s__won = \"1991\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_2508633_5 (position VARCHAR, nfl_team VARCHAR)", "role": "system" }, { "content": "How many players did the philadelphia eagles pick?", "role": "user" }, { "content": "SELECT COUNT(position) FROM table_2508633_5 WHERE nfl_team = \"Philadelphia 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_31 (time VARCHAR, record VARCHAR)", "role": "system" }, { "content": "when is Record of 66-95?", "role": "user" }, { "content": "SELECT time FROM table_name_31 WHERE record = \"66-95\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_13564637_5 (points_for VARCHAR, club VARCHAR)", "role": "system" }, { "content": "What were all the points for Tonyrefail RFC?", "role": "user" }, { "content": "SELECT points_for FROM table_13564637_5 WHERE club = \"Tonyrefail RFC\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_17384764_1 (department VARCHAR, qualification VARCHAR)", "role": "system" }, { "content": "Which departments have M.Phil(Maths)?", "role": "user" }, { "content": "SELECT department FROM table_17384764_1 WHERE qualification = \"M.Phil(Maths)\"", "role": "assistant" } ]
[ { "content": "You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.\nSCHEMA:\nCREATE TABLE table_28511558_2 (original_air_date__us_ VARCHAR, directed_by VARCHAR, written_by VARCHAR)", "role": "system" }, { "content": "What date did the episode directed by Victor Cook and Written by Brat Jennett air in the U.S.?", "role": "user" }, { "content": "SELECT original_air_date__us_ FROM table_28511558_2 WHERE directed_by = \"Victor Cook\" AND written_by = \"Brat Jennett\"", "role": "assistant" } ]