text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On the Date of March 13, who was the Home team? ### Context: CREATE TABLE table_name_96 (home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT home FROM table_name_96 WHERE date = "march 13" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Decision listed when the Home was Colorado? ### Context: CREATE TABLE table_name_28 (decision VARCHAR, home VARCHAR) [/INST] ### Response: SELECT decision FROM table_name_28 WHERE home = "colorado" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date that Ayrton Senna was the drive in Monza? ### Context: CREATE TABLE table_name_73 (date VARCHAR, winning_driver VARCHAR, location VARCHAR) [/INST] ### Response: SELECT date FROM table_name_73 WHERE winning_driver = "ayrton senna" AND location = "monza" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the constructor when riccardo patrese was the winning driver? ### Context: CREATE TABLE table_name_88 (winning_constructor VARCHAR, winning_driver VARCHAR) [/INST] ### Response: SELECT winning_constructor FROM table_name_88 WHERE winning_driver = "riccardo patrese" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Pole Position for the German Grand Prix ### Context: CREATE TABLE table_name_83 (pole_position VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_name_83 WHERE grand_prix = "german grand prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of the game between Melbourne and Footscray? ### Context: CREATE TABLE table_name_78 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_78 WHERE home_team = "melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In the match where footscray was the home team, how much did they score? ### Context: CREATE TABLE table_name_55 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_55 WHERE home_team = "footscray" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: During melbourne's home game, who was the away team? ### Context: CREATE TABLE table_name_51 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_51 WHERE home_team = "melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In the match where north melbourne was the away team, how much did the home team score? ### Context: CREATE TABLE table_name_61 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_61 WHERE away_team = "north melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many years was there a team that was part of the usisl pro league? ### Context: CREATE TABLE table_name_38 (year VARCHAR, league VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_38 WHERE league = "usisl pro league" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many goals were scored on 21 Junio 2008? ### Context: CREATE TABLE table_name_26 (goal VARCHAR, date VARCHAR) [/INST] ### Response: SELECT COUNT(goal) FROM table_name_26 WHERE date = "21 junio 2008" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How was the competition in which 6 goals were made? ### Context: CREATE TABLE table_name_22 (competition VARCHAR, goal VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_22 WHERE goal = 6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: At the venue of panama city, on 11 Febrero 2006, how many goals were scored? ### Context: CREATE TABLE table_name_10 (goal VARCHAR, venue VARCHAR, date VARCHAR) [/INST] ### Response: SELECT COUNT(goal) FROM table_name_10 WHERE venue = "panama city" AND date = "11 febrero 2006" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the time/retired when the laps is 52? ### Context: CREATE TABLE table_name_24 (time_retired VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_24 WHERE laps = 52 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the mean number of play-offs when the league number was bigger than 18, where the player was John Grant and the total number was bigger than 25? ### Context: CREATE TABLE table_name_15 (play_offs INTEGER, total VARCHAR, league VARCHAR, player VARCHAR) [/INST] ### Response: SELECT AVG(play_offs) FROM table_name_15 WHERE league > 18 AND player = "john grant" AND total > 25 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which mean total had Tim Sills as a player? ### Context: CREATE TABLE table_name_26 (total INTEGER, player VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_26 WHERE player = "tim sills" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which of the lowest FA Trophys involved the Forest Green Rovers club when the play-offs number was bigger than 0? ### Context: CREATE TABLE table_name_8 (fa_trophy INTEGER, club VARCHAR, play_offs VARCHAR) [/INST] ### Response: SELECT MIN(fa_trophy) FROM table_name_8 WHERE club = "forest green rovers" AND play_offs > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which of the lowest leagues had Aldershot town as a club when the play-offs number was less than 0? ### Context: CREATE TABLE table_name_13 (league INTEGER, club VARCHAR, play_offs VARCHAR) [/INST] ### Response: SELECT MIN(league) FROM table_name_13 WHERE club = "aldershot town" AND play_offs < 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What mean total had a league number of 18, Richard Logan as a player, and a play-offs number smaller than 1? ### Context: CREATE TABLE table_name_88 (total INTEGER, play_offs VARCHAR, league VARCHAR, player VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_88 WHERE league = 18 AND player = "richard logan" AND play_offs < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the grid total for ralf schumacher racing over 53 laps? ### Context: CREATE TABLE table_name_31 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT SUM(grid) FROM table_name_31 WHERE driver = "ralf schumacher" AND laps > 53 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who built the car that went 53 laps with a Time/Retired of 1:17:09.672? ### Context: CREATE TABLE table_name_25 (constructor VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_25 WHERE laps = 53 AND time_retired = "1:17:09.672" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the high lap total for pedro diniz? ### Context: CREATE TABLE table_name_24 (laps INTEGER, driver VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_24 WHERE driver = "pedro diniz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the Japan open runner up? ### Context: CREATE TABLE table_name_21 (runner_up VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT runner_up FROM table_name_21 WHERE tournament = "japan open" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the race where Stirling Moss was the winning driver? ### Context: CREATE TABLE table_name_13 (race_name VARCHAR, winning_driver VARCHAR) [/INST] ### Response: SELECT race_name FROM table_name_13 WHERE winning_driver = "stirling moss" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What circuit did Innes Ireland win at for the I lombank trophy? ### Context: CREATE TABLE table_name_35 (circuit VARCHAR, winning_driver VARCHAR, race_name VARCHAR) [/INST] ### Response: SELECT circuit FROM table_name_35 WHERE winning_driver = "innes ireland" AND race_name = "i lombank trophy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many times is the constituency edinburgh northern and leith? ### Context: CREATE TABLE table_name_20 (swing_to_gain VARCHAR, constituency VARCHAR) [/INST] ### Response: SELECT COUNT(swing_to_gain) FROM table_name_20 WHERE constituency = "edinburgh northern and leith" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the constituency when the rank is less than 5 and the result is con hold? ### Context: CREATE TABLE table_name_64 (constituency VARCHAR, rank VARCHAR, result VARCHAR) [/INST] ### Response: SELECT constituency FROM table_name_64 WHERE rank < 5 AND result = "con hold" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the lowest rank when the constituency is edinburgh northern and leith and the swing to gain is less than 4.16? ### Context: CREATE TABLE table_name_61 (rank INTEGER, constituency VARCHAR, swing_to_gain VARCHAR) [/INST] ### Response: SELECT MIN(rank) FROM table_name_61 WHERE constituency = "edinburgh northern and leith" AND swing_to_gain < 4.16 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the record when the leading scorer is Antawn Jamison (14)? ### Context: CREATE TABLE table_name_6 (record VARCHAR, leading_scorer VARCHAR) [/INST] ### Response: SELECT record FROM table_name_6 WHERE leading_scorer = "antawn jamison (14)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many people were in attendance on January 4, 2008? ### Context: CREATE TABLE table_name_33 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_33 WHERE date = "january 4, 2008" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score at the Addis Ababa location? ### Context: CREATE TABLE table_name_47 (score VARCHAR, location VARCHAR) [/INST] ### Response: SELECT score FROM table_name_47 WHERE location = "addis ababa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which competition was held at Addis Ababa? ### Context: CREATE TABLE table_name_26 (competition VARCHAR, location VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_26 WHERE location = "addis ababa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of birth of the goalkeeper from the 1st season? ### Context: CREATE TABLE table_name_13 (date_of_birth VARCHAR, position_s_ VARCHAR, seasons VARCHAR) [/INST] ### Response: SELECT date_of_birth FROM table_name_13 WHERE position_s_ = "goalkeeper" AND seasons = "1st" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What previous club was born on October 22, 1993? ### Context: CREATE TABLE table_name_48 (previous_club VARCHAR, date_of_birth VARCHAR) [/INST] ### Response: SELECT previous_club FROM table_name_48 WHERE date_of_birth = "october 22, 1993" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the competition on 7 June 1999? ### Context: CREATE TABLE table_name_84 (competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_84 WHERE date = "7 june 1999" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the competition on 13 November 2005? ### Context: CREATE TABLE table_name_6 (competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_6 WHERE date = "13 november 2005" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where was the friendly competition on 7 June 1999 played? ### Context: CREATE TABLE table_name_9 (venue VARCHAR, competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_9 WHERE competition = "friendly" AND date = "7 june 1999" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the time/retired for brm with a grid of 13? ### Context: CREATE TABLE table_name_81 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_81 WHERE constructor = "brm" AND grid = 13 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Home team has a Venue of mcg? ### Context: CREATE TABLE table_name_32 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_32 WHERE venue = "mcg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score of the Chiefs November 27, 1994 game? ### Context: CREATE TABLE table_name_74 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_74 WHERE date = "november 27, 1994" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score of the Chiefs pre-Week 16 game that 69,362 people attended? ### Context: CREATE TABLE table_name_1 (result VARCHAR, week VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT result FROM table_name_1 WHERE week < 16 AND attendance = "69,362" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's sawyer hannay's total pick number? ### Context: CREATE TABLE table_name_39 (pick__number VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(pick__number) FROM table_name_39 WHERE player = "sawyer hannay" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the score on 22 august 2012 ### Context: CREATE TABLE table_name_37 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_37 WHERE date = "22 august 2012" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who has points larger than 167.5? ### Context: CREATE TABLE table_name_51 (name VARCHAR, points INTEGER) [/INST] ### Response: SELECT name FROM table_name_51 WHERE points > 167.5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest crowd seen by the mcg Venue? ### Context: CREATE TABLE table_name_84 (crowd INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MIN(crowd) FROM table_name_84 WHERE venue = "mcg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was the game with richmond as Away team? ### Context: CREATE TABLE table_name_86 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_86 WHERE away_team = "richmond" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total ratings on share less than 4? ### Context: CREATE TABLE table_name_66 (rating VARCHAR, share INTEGER) [/INST] ### Response: SELECT COUNT(rating) FROM table_name_66 WHERE share < 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When did the person born 24 September 1851 pass away? ### Context: CREATE TABLE table_name_66 (date_of_death VARCHAR, date_of_birth VARCHAR) [/INST] ### Response: SELECT date_of_death FROM table_name_66 WHERE date_of_birth = "24 september 1851" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How old was the person born 24 September 1851 at the time of disaster? ### Context: CREATE TABLE table_name_81 (age_at_time_of_disaster VARCHAR, date_of_birth VARCHAR) [/INST] ### Response: SELECT age_at_time_of_disaster FROM table_name_81 WHERE date_of_birth = "24 september 1851" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the person born in 1909? ### Context: CREATE TABLE table_name_26 (name VARCHAR, date_of_birth VARCHAR) [/INST] ### Response: SELECT name FROM table_name_26 WHERE date_of_birth = "1909" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the result in oakland? ### Context: CREATE TABLE table_name_11 (result VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT result FROM table_name_11 WHERE venue = "oakland" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Crowd has a Home team of richmond? ### Context: CREATE TABLE table_name_14 (crowd INTEGER, home_team VARCHAR) [/INST] ### Response: SELECT SUM(crowd) FROM table_name_14 WHERE home_team = "richmond" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Venue has a Home team of essendon? ### Context: CREATE TABLE table_name_47 (venue VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_47 WHERE home_team = "essendon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What nationality was the round 6 draft pick? ### Context: CREATE TABLE table_name_44 (nationality VARCHAR, round VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_44 WHERE round = 6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What nationality is the draft pick with w position from leninogorsk (russia-2)? ### Context: CREATE TABLE table_name_66 (nationality VARCHAR, position VARCHAR, college_junior_club_team__league_ VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_66 WHERE position = "w" AND college_junior_club_team__league_ = "leninogorsk (russia-2)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What college or league did the round 2 pick with d position come from? ### Context: CREATE TABLE table_name_12 (college_junior_club_team__league_ VARCHAR, round VARCHAR, position VARCHAR) [/INST] ### Response: SELECT college_junior_club_team__league_ FROM table_name_12 WHERE round = 2 AND position = "d" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the away team when North Melbourne was the home team? ### Context: CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_17 WHERE home_team = "north melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What away team played against Footscray as the home team? ### Context: CREATE TABLE table_name_50 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_50 WHERE home_team = "footscray" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the rank for the show aired on May 19, 2009? ### Context: CREATE TABLE table_name_86 (rank___number_ VARCHAR, air_date VARCHAR) [/INST] ### Response: SELECT rank___number_ FROM table_name_86 WHERE air_date = "may 19, 2009" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the timeslot for the episode that aired April 28, 2009? ### Context: CREATE TABLE table_name_26 (timeslot VARCHAR, air_date VARCHAR) [/INST] ### Response: SELECT timeslot FROM table_name_26 WHERE air_date = "april 28, 2009" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the rating of the show ranked tba, aired on April 21, 2009? ### Context: CREATE TABLE table_name_63 (rating VARCHAR, rank___number_ VARCHAR, air_date VARCHAR) [/INST] ### Response: SELECT rating FROM table_name_63 WHERE rank___number_ = "tba" AND air_date = "april 21, 2009" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What building shows 2013 and has more than 20 floors? ### Context: CREATE TABLE table_name_54 (building VARCHAR, year VARCHAR, floors VARCHAR) [/INST] ### Response: SELECT building FROM table_name_54 WHERE year = 2013 AND floors > 20 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the status of the building for 2014 with 33 floors? ### Context: CREATE TABLE table_name_54 (status VARCHAR, year VARCHAR, floors VARCHAR) [/INST] ### Response: SELECT status FROM table_name_54 WHERE year < 2014 AND floors = 33 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the number of floors for the building of td building redevelopment (office)? ### Context: CREATE TABLE table_name_45 (floors INTEGER, building VARCHAR) [/INST] ### Response: SELECT AVG(floors) FROM table_name_45 WHERE building = "td building redevelopment (office)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the status of the building with more than 28 floor and a year of 2013? ### Context: CREATE TABLE table_name_57 (status VARCHAR, floors VARCHAR, year VARCHAR) [/INST] ### Response: SELECT status FROM table_name_57 WHERE floors > 28 AND year = 2013 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the status of the building with less than 18 floors and later than 2013? ### Context: CREATE TABLE table_name_18 (status VARCHAR, floors VARCHAR, year VARCHAR) [/INST] ### Response: SELECT status FROM table_name_18 WHERE floors < 18 AND year > 2013 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Home team has a Venue of arden street oval? ### Context: CREATE TABLE table_name_64 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_64 WHERE venue = "arden street oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When did tavárez lose? ### Context: CREATE TABLE table_name_64 (date VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT date FROM table_name_64 WHERE loss = "tavárez" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest area with a Code of 66097, and a Region larger than 6? ### Context: CREATE TABLE table_name_72 (area__km_2__ INTEGER, code VARCHAR, region VARCHAR) [/INST] ### Response: SELECT MAX(area__km_2__) FROM table_name_72 WHERE code = 66097 AND region > 6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest region with a Code smaller than 66112, and a Name of l'île-dorval? ### Context: CREATE TABLE table_name_17 (region INTEGER, code VARCHAR, name VARCHAR) [/INST] ### Response: SELECT MAX(region) FROM table_name_17 WHERE code < 66112 AND name = "l'île-dorval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the away team score for lake oval ### Context: CREATE TABLE table_name_1 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_1 WHERE venue = "lake oval" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the home team score for south melbourne home team ### Context: CREATE TABLE table_name_35 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_35 WHERE home_team = "south melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the home team for carlton away team ### Context: CREATE TABLE table_name_77 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_77 WHERE away_team = "carlton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: when was the site listed when the county is cochise? ### Context: CREATE TABLE table_name_14 (listed VARCHAR, county VARCHAR) [/INST] ### Response: SELECT listed FROM table_name_14 WHERE county = "cochise" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the cerclis ID when the site was proposed on 12/30/1982 and was partially deleted on 05/01/2003? ### Context: CREATE TABLE table_name_74 (cerclis_id VARCHAR, proposed VARCHAR, partially_deleted VARCHAR) [/INST] ### Response: SELECT cerclis_id FROM table_name_74 WHERE proposed = "12/30/1982" AND partially_deleted = "05/01/2003" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: when was the site partially deleted when the cerclis id is az7570028582? ### Context: CREATE TABLE table_name_67 (partially_deleted VARCHAR, cerclis_id VARCHAR) [/INST] ### Response: SELECT partially_deleted FROM table_name_67 WHERE cerclis_id = "az7570028582" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What band is the highest and has a System of gsm-450? ### Context: CREATE TABLE table_name_22 (band INTEGER, system VARCHAR) [/INST] ### Response: SELECT MAX(band) FROM table_name_22 WHERE system = "gsm-450" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the constructor when there were 95 laps and a grid less than 15? ### Context: CREATE TABLE table_name_85 (constructor VARCHAR, grid VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_85 WHERE grid < 15 AND laps = 95 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the grid for suspension time/retired? ### Context: CREATE TABLE table_name_8 (grid VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT grid FROM table_name_8 WHERE time_retired = "suspension" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When the venue is victoria park, what's the largest Crowd that attended? ### Context: CREATE TABLE table_name_64 (crowd INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MAX(crowd) FROM table_name_64 WHERE venue = "victoria park" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When the Away team is south melbourne, what's the Home team score? ### Context: CREATE TABLE table_name_32 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_32 WHERE away_team = "south melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: If the Away team is north melbourne, what's the Home team score? ### Context: CREATE TABLE table_name_18 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_18 WHERE away_team = "north melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the manner of departyre for 26 january date of appointment ### Context: CREATE TABLE table_name_4 (manner_of_departure VARCHAR, date_of_appointment VARCHAR) [/INST] ### Response: SELECT manner_of_departure FROM table_name_4 WHERE date_of_appointment = "26 january" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: I want to know the team that was sacked and date of vacancy was 4 december ### Context: CREATE TABLE table_name_68 (team VARCHAR, manner_of_departure VARCHAR, date_of_vacancy VARCHAR) [/INST] ### Response: SELECT team FROM table_name_68 WHERE manner_of_departure = "sacked" AND date_of_vacancy = "4 december" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the outgoing manager for 22 november date of vacancy ### Context: CREATE TABLE table_name_13 (outgoing_manager VARCHAR, date_of_vacancy VARCHAR) [/INST] ### Response: SELECT outgoing_manager FROM table_name_13 WHERE date_of_vacancy = "22 november" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the outgoing manager for livingston ### Context: CREATE TABLE table_name_15 (outgoing_manager VARCHAR, team VARCHAR) [/INST] ### Response: SELECT outgoing_manager FROM table_name_15 WHERE team = "livingston" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Tell me the manner of departure for 3 january date of appointment ### Context: CREATE TABLE table_name_1 (manner_of_departure VARCHAR, date_of_appointment VARCHAR) [/INST] ### Response: SELECT manner_of_departure FROM table_name_1 WHERE date_of_appointment = "3 january" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When did the Argentine Grand Prix race? ### Context: CREATE TABLE table_name_84 (date VARCHAR, race VARCHAR) [/INST] ### Response: SELECT date FROM table_name_84 WHERE race = "argentine grand prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What day did Emerson Fittipaldi win the Spanish Grand Prix? ### Context: CREATE TABLE table_name_44 (date VARCHAR, winning_driver VARCHAR, race VARCHAR) [/INST] ### Response: SELECT date FROM table_name_44 WHERE winning_driver = "emerson fittipaldi" AND race = "spanish grand prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What circuit was the British Grand Prix? ### Context: CREATE TABLE table_name_92 (circuit VARCHAR, race VARCHAR) [/INST] ### Response: SELECT circuit FROM table_name_92 WHERE race = "british grand prix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On which date was the 2006 FIFA World Cup Qualification in Manama, Bahrain? ### Context: CREATE TABLE table_name_57 (date VARCHAR, venue VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT date FROM table_name_57 WHERE venue = "manama, bahrain" AND competition = "2006 fifa world cup qualification" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the final score of the Friendly Competition in Manama, Bahrain? ### Context: CREATE TABLE table_name_48 (score VARCHAR, venue VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT score FROM table_name_48 WHERE venue = "manama, bahrain" AND competition = "friendly" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On which date was the match in Manama, Bahrain? ### Context: CREATE TABLE table_name_63 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_63 WHERE venue = "manama, bahrain" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many laps did Emerson Fittipaldi do on a grid larger than 14, and when was the Time/Retired of accident? ### Context: CREATE TABLE table_name_98 (laps VARCHAR, driver VARCHAR, grid VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT COUNT(laps) FROM table_name_98 WHERE grid > 14 AND time_retired = "accident" AND driver = "emerson fittipaldi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Time/Retired of Carlos Reutemann who was driving a brabham - Alfa Romeo? ### Context: CREATE TABLE table_name_69 (time_retired VARCHAR, constructor VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_69 WHERE constructor = "brabham - alfa romeo" AND driver = "carlos reutemann" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what status is the vehicle types of dmbs+tcl+dmcl? ### Context: CREATE TABLE table_name_55 (status VARCHAR, vehicle_types VARCHAR) [/INST] ### Response: SELECT status FROM table_name_55 WHERE vehicle_types = "dmbs+tcl+dmcl" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what livery has a status of in service as coaching stock? ### Context: CREATE TABLE table_name_74 (livery VARCHAR, status VARCHAR) [/INST] ### Response: SELECT livery FROM table_name_74 WHERE status = "in service as coaching stock" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what status is the vehicle numbers of adb977554? ### Context: CREATE TABLE table_name_78 (status VARCHAR, vehicle_numbers VARCHAR) [/INST] ### Response: SELECT status FROM table_name_78 WHERE vehicle_numbers = "adb977554" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which city is Alianza? ### Context: CREATE TABLE table_name_62 (city VARCHAR, name VARCHAR) [/INST] ### Response: SELECT city FROM table_name_62 WHERE name = "alianza" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was Alianza's first season in first division with a promotion after 1959? ### Context: CREATE TABLE table_name_63 (first_season_in_first_division VARCHAR, first_season_after_most_recent_promotion VARCHAR, name VARCHAR) [/INST] ### Response: SELECT first_season_in_first_division FROM table_name_63 WHERE first_season_after_most_recent_promotion = "1959" AND name = "alianza" </s>