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: How many laps did John Love have on a grid less than 11? ### Context: CREATE TABLE table_name_18 (laps VARCHAR, grid VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT laps FROM table_name_18 WHERE grid < 11 AND driver = "john love" </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 Builder of Locomotive 2? ### Context: CREATE TABLE table_name_6 (builder VARCHAR, locomotive VARCHAR) [/INST] ### Response: SELECT builder FROM table_name_6 WHERE locomotive = "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: With a Type of 4-6-4t, what is the sum Withdrawn? ### Context: CREATE TABLE table_name_43 (withdrawn INTEGER, type VARCHAR) [/INST] ### Response: SELECT SUM(withdrawn) FROM table_name_43 WHERE type = "4-6-4t" </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 from the game where Dallas played Home and Edmonton was visiting? ### Context: CREATE TABLE table_name_41 (score VARCHAR, home VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT score FROM table_name_41 WHERE home = "dallas" AND visitor = "edmonton" </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 mintage when the theme was Santa Claus? ### Context: CREATE TABLE table_name_15 (mintage VARCHAR, theme VARCHAR) [/INST] ### Response: SELECT mintage FROM table_name_15 WHERE theme = "santa claus" </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 issue price in the year 2008? ### Context: CREATE TABLE table_name_29 (issue_price INTEGER, year VARCHAR) [/INST] ### Response: SELECT SUM(issue_price) FROM table_name_29 WHERE year = 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 earliest year when the composition is 99.99% silver and the issue price is $94.95? ### Context: CREATE TABLE table_name_66 (year INTEGER, composition VARCHAR, issue_price VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_66 WHERE composition = "99.99% silver" AND issue_price = "$94.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 year had an issue price of $94.95 and theme of Amethyst crystal? ### Context: CREATE TABLE table_name_87 (year INTEGER, issue_price VARCHAR, theme VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_87 WHERE issue_price = "$94.95" AND theme = "amethyst crystal" </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 score for when the opponent in the final is shiho hisamatsu ### Context: CREATE TABLE table_name_43 (score VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT score FROM table_name_43 WHERE opponent_in_the_final = "shiho hisamatsu" </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 tournament for april 3, 2005 ### Context: CREATE TABLE table_name_79 (tournament VARCHAR, date VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_79 WHERE date = "april 3, 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: Name th score for may 11, 2003 ### Context: CREATE TABLE table_name_1 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_1 WHERE date = "may 11, 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: Who constructed pedro diniz's car? ### Context: CREATE TABLE table_name_30 (constructor VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_30 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: What is the grid total for david coulthard with over 45 laps? ### Context: CREATE TABLE table_name_85 (grid VARCHAR, driver VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT COUNT(grid) FROM table_name_85 WHERE driver = "david coulthard" AND laps > 45 </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 average for the gymnast with a 9.9 start value and a total of 9.612? ### Context: CREATE TABLE table_name_33 (average INTEGER, start_value VARCHAR, total VARCHAR) [/INST] ### Response: SELECT AVG(average) FROM table_name_33 WHERE start_value = 9.9 AND total = 9.612 </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 penalty for the gymnast with average above 9.662 and total is more than 9.706? ### Context: CREATE TABLE table_name_13 (penalty VARCHAR, average VARCHAR, total VARCHAR) [/INST] ### Response: SELECT penalty FROM table_name_13 WHERE average > 9.662 AND total > 9.706 </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 category was Kasautii Zindagii Kay nominated for after 2005? ### Context: CREATE TABLE table_name_20 (category VARCHAR, year VARCHAR, for_the_show VARCHAR) [/INST] ### Response: SELECT category FROM table_name_20 WHERE year > 2005 AND for_the_show = "kasautii zindagii kay" </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 show had a nomination for best actor in a lead role – female (popular) in 2006? ### Context: CREATE TABLE table_name_22 (for_the_show VARCHAR, category VARCHAR, year VARCHAR) [/INST] ### Response: SELECT for_the_show FROM table_name_22 WHERE category = "best actor in a lead role – female (popular)" AND year = 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: In what week was the Result L 15-13? ### Context: CREATE TABLE table_name_91 (week INTEGER, result VARCHAR) [/INST] ### Response: SELECT AVG(week) FROM table_name_91 WHERE result = "l 15-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 Attendance with Opponent Dallas Cowboys in a Week greater than 5? ### Context: CREATE TABLE table_name_51 (attendance INTEGER, opponent VARCHAR, week VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_51 WHERE opponent = "dallas cowboys" AND week > 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: How many points for maserati v12 engines in 1968? ### Context: CREATE TABLE table_name_89 (points VARCHAR, engine VARCHAR, year VARCHAR) [/INST] ### Response: SELECT COUNT(points) FROM table_name_89 WHERE engine = "maserati v12" AND year = 1968 </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 entrant had less than 3 points before 1963? ### Context: CREATE TABLE table_name_28 (entrant VARCHAR, year VARCHAR, points VARCHAR) [/INST] ### Response: SELECT entrant FROM table_name_28 WHERE year < 1963 AND points < 3 </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 had the pole at the French Grand Prix? ### Context: CREATE TABLE table_name_86 (pole_position VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT pole_position FROM table_name_86 WHERE grand_prix = "french 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: Who constructed the car that won the Canadian Grand Prix? ### Context: CREATE TABLE table_name_97 (constructor VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_97 WHERE grand_prix = "canadian 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: When Michael Schumacher won the race, who had the fastest lap? ### Context: CREATE TABLE table_name_18 (fastest_lap VARCHAR, winning_driver VARCHAR) [/INST] ### Response: SELECT fastest_lap FROM table_name_18 WHERE winning_driver = "michael schumacher" </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: For the Player playing for the College of Kentucky and a Height of 6-7 what was their corresponding School? ### Context: CREATE TABLE table_name_72 (school VARCHAR, college VARCHAR, height VARCHAR) [/INST] ### Response: SELECT school FROM table_name_72 WHERE college = "kentucky" AND height = "6-7" </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 School did Terrence Jones play for? ### Context: CREATE TABLE table_name_40 (school VARCHAR, player VARCHAR) [/INST] ### Response: SELECT school FROM table_name_40 WHERE player = "terrence jones" </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 Player(s) have a Height of 6-3? ### Context: CREATE TABLE table_name_42 (player VARCHAR, height VARCHAR) [/INST] ### Response: SELECT player FROM table_name_42 WHERE height = "6-3" </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: For the player with a Height of 6-9 and College of Kentucky what was their NBA Draft? ### Context: CREATE TABLE table_name_41 (nba_draft VARCHAR, height VARCHAR, college VARCHAR) [/INST] ### Response: SELECT nba_draft FROM table_name_41 WHERE height = "6-9" AND college = "kentucky" </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 on February 9? ### Context: CREATE TABLE table_name_84 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_84 WHERE date = "february 9" </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 average point total for arrows racing team before 1983? ### Context: CREATE TABLE table_name_73 (points INTEGER, team VARCHAR, year VARCHAR) [/INST] ### Response: SELECT AVG(points) FROM table_name_73 WHERE team = "arrows racing team" AND year < 1983 </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 team has jordan 193 chassis after 1990? ### Context: CREATE TABLE table_name_61 (team VARCHAR, year VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT team FROM table_name_61 WHERE year > 1990 AND chassis = "jordan 193" </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 points for the cosworth v8 engine after 1985? ### Context: CREATE TABLE table_name_23 (points VARCHAR, year VARCHAR, engine VARCHAR) [/INST] ### Response: SELECT points FROM table_name_23 WHERE year > 1985 AND engine = "cosworth v8" </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 constructor for the driver with grid less than 2? ### Context: CREATE TABLE table_name_6 (constructor VARCHAR, grid INTEGER) [/INST] ### Response: SELECT constructor FROM table_name_6 WHERE grid < 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 Position did Aaron Williams play? ### Context: CREATE TABLE table_name_12 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_name_12 WHERE player = "aaron williams" </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 Position of guard, from the School/Club Team Notre Dame, how many Years for Jazz did that person play? ### Context: CREATE TABLE table_name_43 (years_for_jazz VARCHAR, position VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT years_for_jazz FROM table_name_43 WHERE position = "guard" AND school_club_team = "notre dame" </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 School/Club Team did Andre Wakefield play for? ### Context: CREATE TABLE table_name_34 (school_club_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT school_club_team FROM table_name_34 WHERE player = "andre wakefield" </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 Nationality of the player who had Position of guard from School/Club Team Notre Dame? ### Context: CREATE TABLE table_name_59 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_59 WHERE position = "guard" AND school_club_team = "notre dame" </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 School/Club Team is Player Howard Wood from? ### Context: CREATE TABLE table_name_83 (school_club_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT school_club_team FROM table_name_83 WHERE player = "howard wood" </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 School/Club Team is Player Aaron Williams from? ### Context: CREATE TABLE table_name_5 (school_club_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT school_club_team FROM table_name_5 WHERE player = "aaron williams" </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 street address of the building with 5 floors? ### Context: CREATE TABLE table_name_9 (street_address VARCHAR, floors VARCHAR) [/INST] ### Response: SELECT street_address FROM table_name_9 WHERE floors = "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 street address of the building with 40 floors? ### Context: CREATE TABLE table_name_94 (street_address VARCHAR, floors VARCHAR) [/INST] ### Response: SELECT street_address FROM table_name_94 WHERE floors = "40" </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 were the years the building with 44 floors was tallest? ### Context: CREATE TABLE table_name_53 (years_as_tallest VARCHAR, floors VARCHAR) [/INST] ### Response: SELECT years_as_tallest FROM table_name_53 WHERE floors = "44" </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 street address of Oliver Building? ### Context: CREATE TABLE table_name_20 (street_address VARCHAR, name VARCHAR) [/INST] ### Response: SELECT street_address FROM table_name_20 WHERE name = "oliver building" </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: Can you tell me the Winning party of 2003 that has the Constituency of aberdeen north? ### Context: CREATE TABLE table_name_62 (winning_party_2003 VARCHAR, constituency VARCHAR) [/INST] ### Response: SELECT winning_party_2003 FROM table_name_62 WHERE constituency = "aberdeen north" </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: Can you tell me the lowest Rank that has the Constituency of strathkelvin and bearsden? ### Context: CREATE TABLE table_name_64 (rank INTEGER, constituency VARCHAR) [/INST] ### Response: SELECT MIN(rank) FROM table_name_64 WHERE constituency = "strathkelvin and bearsden" </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: Can you tell me the sum of Swing to gain that has Constituency of caithness, sutherland and easter ross? ### Context: CREATE TABLE table_name_48 (swing_to_gain INTEGER, constituency VARCHAR) [/INST] ### Response: SELECT SUM(swing_to_gain) FROM table_name_48 WHERE constituency = "caithness, sutherland and easter ross" </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 the Time/Retired of Laps of 75? ### Context: CREATE TABLE table_name_59 (time_retired VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT time_retired FROM table_name_59 WHERE laps = 75 </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 Driver has Laps larger than 78, and a Time/Retired of + 1:09.4? ### Context: CREATE TABLE table_name_99 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_99 WHERE laps > 78 AND time_retired = "+ 1:09.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: Hows many Laps are in a Grid of 4? ### Context: CREATE TABLE table_name_72 (laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT COUNT(laps) FROM table_name_72 WHERE grid = 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: What venue did the away team Collingwood play at? ### Context: CREATE TABLE table_name_42 (venue VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_42 WHERE away_team = "collingwood" </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 of the away team that played at Kardinia Park? ### Context: CREATE TABLE table_name_33 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_33 WHERE venue = "kardinia 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: What is the name of the away team that played at Kardinia Park? ### Context: CREATE TABLE table_name_2 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_2 WHERE venue = "kardinia 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: What is the attendance in the bye week after week 5? ### Context: CREATE TABLE table_name_40 (attendance VARCHAR, week VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_40 WHERE week > 5 AND opponent = "bye" </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 location had 1:59:12 in time? ### Context: CREATE TABLE table_name_1 (location VARCHAR, time VARCHAR) [/INST] ### Response: SELECT location FROM table_name_1 WHERE time = "1:59:12" </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 for the away team of north melbourne? ### Context: CREATE TABLE table_name_79 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_79 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: Which home team plays at victoria park? ### Context: CREATE TABLE table_name_46 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_46 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: what is the competition for the event team all-round in the year before 1913? ### Context: CREATE TABLE table_name_38 (competition VARCHAR, event VARCHAR, year VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_38 WHERE event = "team all-round" AND year < 1913 </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 event for the year less than 1913 with the position of 2nd? ### Context: CREATE TABLE table_name_60 (event VARCHAR, year VARCHAR, position VARCHAR) [/INST] ### Response: SELECT event FROM table_name_60 WHERE year < 1913 AND position = "2nd" </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 competition in paris for the parallel bars with a position of 1st? ### Context: CREATE TABLE table_name_8 (competition VARCHAR, event VARCHAR, venue VARCHAR, position VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_8 WHERE venue = "paris" AND position = "1st" AND event = "parallel bars" </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 competition in a year after 1911 with the position of 1st for the rings? ### Context: CREATE TABLE table_name_78 (competition VARCHAR, event VARCHAR, year VARCHAR, position VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_78 WHERE year > 1911 AND position = "1st" AND event = "rings" </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 year that the position was 1st in paris? ### Context: CREATE TABLE table_name_26 (year VARCHAR, position VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT year FROM table_name_26 WHERE position = "1st" AND venue = "paris" </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 team plays their home matches at the mcg Venue? ### Context: CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_16 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 host has an original air date of june 11, 2007? ### Context: CREATE TABLE table_name_11 (host VARCHAR, original_airdate VARCHAR) [/INST] ### Response: SELECT host FROM table_name_11 WHERE original_airdate = "june 11, 2007" </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 is the location of a team with a 3-2 record? ### Context: CREATE TABLE table_name_96 (location VARCHAR, record VARCHAR) [/INST] ### Response: SELECT location FROM table_name_96 WHERE record = "3-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 is the result of the team with the 4-2 record? ### Context: CREATE TABLE table_name_67 (res VARCHAR, record VARCHAR) [/INST] ### Response: SELECT res FROM table_name_67 WHERE record = "4-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 was St Kilda's away team score? ### Context: CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_30 WHERE home_team = "st kilda" </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 attendance at Moorabbin Oval? ### Context: CREATE TABLE table_name_41 (crowd INTEGER, venue VARCHAR) [/INST] ### Response: SELECT AVG(crowd) FROM table_name_41 WHERE venue = "moorabbin 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: Who was Melbourne's away team opponent? ### Context: CREATE TABLE table_name_48 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_48 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: What was the attendance at the Footscray away game? ### Context: CREATE TABLE table_name_19 (crowd VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT crowd FROM table_name_19 WHERE away_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: Tell me the competition that happened on 14 june 2008 ### Context: CREATE TABLE table_name_54 (competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_54 WHERE date = "14 june 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: Tell me the score for Venue of tanteen recreation ground, st. george's ### Context: CREATE TABLE table_name_43 (score VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT score FROM table_name_43 WHERE venue = "tanteen recreation ground, st. george's" </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 weeks are associated with Season 3 – spring 2008? ### Context: CREATE TABLE table_name_74 (_number_of_weeks VARCHAR, season VARCHAR) [/INST] ### Response: SELECT COUNT(_number_of_weeks) FROM table_name_74 WHERE season = "3 – spring 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: Who won when robert kudelski finished with under 13 weeks? ### Context: CREATE TABLE table_name_89 (winner VARCHAR, _number_of_weeks VARCHAR, third_place VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_89 WHERE _number_of_weeks < 13 AND third_place = "robert kudelski" </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 average attendance when Brewers are the opponent with a score of 6–3? ### Context: CREATE TABLE table_name_68 (attendance INTEGER, opponent VARCHAR, score VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_68 WHERE opponent = "brewers" AND score = "6–3" </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 loss occurred on June 10? ### Context: CREATE TABLE table_name_81 (loss VARCHAR, date VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_81 WHERE date = "june 10" </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 is the opponent with a score of 5–4? ### Context: CREATE TABLE table_name_36 (opponent VARCHAR, score VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_36 WHERE score = "5–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: What is the week for Result of w 28-17? ### Context: CREATE TABLE table_name_70 (week VARCHAR, result VARCHAR) [/INST] ### Response: SELECT week FROM table_name_70 WHERE result = "w 28-17" </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 avarage Attendance for the Date of october 26, 1947? ### Context: CREATE TABLE table_name_45 (attendance INTEGER, date VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_45 WHERE date = "october 26, 1947" </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: Can you tell me the Years that has the Name of arapohue school? ### Context: CREATE TABLE table_name_70 (years VARCHAR, name VARCHAR) [/INST] ### Response: SELECT years FROM table_name_70 WHERE name = "arapohue school" </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: Can you tell me the lowest Decile that has the Area of matakohe, and the Roll larger than 86? ### Context: CREATE TABLE table_name_52 (decile INTEGER, area VARCHAR, roll VARCHAR) [/INST] ### Response: SELECT MIN(decile) FROM table_name_52 WHERE area = "matakohe" AND roll > 86 </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: Can you tell me the total number of Roll that has the Area of aranga? ### Context: CREATE TABLE table_name_95 (roll VARCHAR, area VARCHAR) [/INST] ### Response: SELECT COUNT(roll) FROM table_name_95 WHERE area = "aranga" </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: Can you tell me the Name that has the Roll larger than 419? ### Context: CREATE TABLE table_name_95 (name VARCHAR, roll INTEGER) [/INST] ### Response: SELECT name FROM table_name_95 WHERE roll > 419 </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 total number of Week has an Opponent of at new orleans saints, and an Attendance larger than 53,448? ### Context: CREATE TABLE table_name_17 (week VARCHAR, opponent VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT COUNT(week) FROM table_name_17 WHERE opponent = "at new orleans saints" AND attendance > 53 OFFSET 448 </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 Attendance has a Result of w 51-21? ### Context: CREATE TABLE table_name_70 (attendance VARCHAR, result VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_70 WHERE result = "w 51-21" </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 at Arden Street Oval? ### Context: CREATE TABLE table_name_98 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_98 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: What is the average top-25 value for majors that have more than 0 wins? ### Context: CREATE TABLE table_name_27 (top_25 INTEGER, wins INTEGER) [/INST] ### Response: SELECT AVG(top_25) FROM table_name_27 WHERE wins > 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 is the most number of cuts made that had more than 7 events played and more than 2 top-25s? ### Context: CREATE TABLE table_name_18 (cuts_made INTEGER, events VARCHAR, top_25 VARCHAR) [/INST] ### Response: SELECT MAX(cuts_made) FROM table_name_18 WHERE events = 7 AND top_25 > 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: For top-25 values under 2, what is the average number of cuts made? ### Context: CREATE TABLE table_name_54 (cuts_made INTEGER, top_25 INTEGER) [/INST] ### Response: SELECT AVG(cuts_made) FROM table_name_54 WHERE top_25 < 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: With a dail of 24th and more than 57 seats, what is the election? ### Context: CREATE TABLE table_name_26 (election VARCHAR, seats VARCHAR, dáil VARCHAR) [/INST] ### Response: SELECT election FROM table_name_26 WHERE seats > 57 AND dáil = "24th" </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: with shares of 45.3% and total seats less than 166. what is the greatest number of seat? ### Context: CREATE TABLE table_name_61 (seats INTEGER, share_of_votes VARCHAR, total_seats VARCHAR) [/INST] ### Response: SELECT MAX(seats) FROM table_name_61 WHERE share_of_votes = "45.3%" AND total_seats < 166 </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: with a share of 44.2% and 77 seats, what is the greatest seat total? ### Context: CREATE TABLE table_name_82 (total_seats INTEGER, seats VARCHAR, share_of_votes VARCHAR) [/INST] ### Response: SELECT MAX(total_seats) FROM table_name_82 WHERE seats = 77 AND share_of_votes = "44.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 is the long in 1994? ### Context: CREATE TABLE table_name_60 (long VARCHAR, year VARCHAR) [/INST] ### Response: SELECT long FROM table_name_60 WHERE year = "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: Which team has a long of 67? ### Context: CREATE TABLE table_name_6 (team VARCHAR, long VARCHAR) [/INST] ### Response: SELECT team FROM table_name_6 WHERE long = "67" </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 RAvg of the year with Ratt of 9? ### Context: CREATE TABLE table_name_27 (ravg VARCHAR, ratt VARCHAR) [/INST] ### Response: SELECT ravg FROM table_name_27 WHERE ratt = "9" </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 Ratt of the year with a 78 long? ### Context: CREATE TABLE table_name_97 (ratt VARCHAR, long VARCHAR) [/INST] ### Response: SELECT ratt FROM table_name_97 WHERE long = "78" </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 team has a Ravg of 1.3? ### Context: CREATE TABLE table_name_64 (team VARCHAR, ravg VARCHAR) [/INST] ### Response: SELECT team FROM table_name_64 WHERE ravg = "1.3" </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 rate of 17 years? ### Context: CREATE TABLE table_name_55 (rate VARCHAR, year VARCHAR) [/INST] ### Response: SELECT rate FROM table_name_55 WHERE year = "17 years" </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 samurai for stampede of t. mask ### Context: CREATE TABLE table_name_97 (samurai VARCHAR, stampede VARCHAR) [/INST] ### Response: SELECT samurai FROM table_name_97 WHERE stampede = "t. mask" </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 series is based in Toronto on may 18? ### Context: CREATE TABLE table_name_3 (series VARCHAR, home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT series FROM table_name_3 WHERE home = "toronto" AND date = "may 18" </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 combined crowd in Vancouver on may 22? ### Context: CREATE TABLE table_name_43 (attendance INTEGER, home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_43 WHERE home = "vancouver" AND date = "may 22" </s>