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:
What was the score of the home game at Tampa Bay?
### Context:
CREATE TABLE table_name_56 (score VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_56 WHERE home = "tampa bay" </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 date of the game where Ottawa was the home team and Atlanta is the visiting team?
### Context:
CREATE TABLE table_name_32 (date VARCHAR, visitor VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_32 WHERE visitor = "atlanta" AND home = "ottawa" </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 the result for team of giants
### Context:
CREATE TABLE table_name_39 (result VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_39 WHERE team = "giants" </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 pitcher on september 6, 2006
### Context:
CREATE TABLE table_name_8 (pitcher VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT pitcher FROM table_name_8 WHERE date = "september 6, 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:
I want the date for rockies
### Context:
CREATE TABLE table_name_66 (date VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_66 WHERE team = "rockies" </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 the date for aníbal sánchez
### Context:
CREATE TABLE table_name_58 (date VARCHAR, pitcher VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_58 WHERE pitcher = "aníbal sánchez" </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 the result for team of giants
### Context:
CREATE TABLE table_name_63 (result VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_63 WHERE team = "giants" </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 the site for september 29, 2013
### Context:
CREATE TABLE table_name_51 (site VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT site FROM table_name_51 WHERE date = "september 29, 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:
When the apparent magnitude is 10.5, what is the right ascension?
### Context:
CREATE TABLE table_name_71 (right_ascension___j2000__ VARCHAR, apparent_magnitude VARCHAR) [/INST]
### Response:
SELECT right_ascension___j2000__ FROM table_name_71 WHERE apparent_magnitude = 10.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:
Which livery is from 1919?
### Context:
CREATE TABLE table_name_57 (livery VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT livery FROM table_name_57 WHERE date = "1919" </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:
Of the games with a record of 80-81, what was the highest attendance?
### Context:
CREATE TABLE table_name_89 (attendance INTEGER, record VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_89 WHERE record = "80-81" </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 entries have a HK viewers of 2.23 million, and a Rank below 2?
### Context:
CREATE TABLE table_name_34 (peak VARCHAR, hk_viewers VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(peak) FROM table_name_34 WHERE hk_viewers = "2.23 million" AND rank > 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 premiere has a finale of less than 41, peak less than 40, average above 31, and a Chinese title of 學警雄心?
### Context:
CREATE TABLE table_name_95 (premiere VARCHAR, chinese_title VARCHAR, average VARCHAR, finale VARCHAR, peak VARCHAR) [/INST]
### Response:
SELECT premiere FROM table_name_95 WHERE finale < 41 AND peak < 40 AND average > 31 AND chinese_title = "學警雄心" </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 average that has a Finale larger than 35, a HK viewers of 2.12 million, and a Peak larger than 40?
### Context:
CREATE TABLE table_name_36 (average INTEGER, peak VARCHAR, finale VARCHAR, hk_viewers VARCHAR) [/INST]
### Response:
SELECT MAX(average) FROM table_name_36 WHERE finale > 35 AND hk_viewers = "2.12 million" AND peak > 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 is the score for the home team when the venue is Junction Oval?
### Context:
CREATE TABLE table_name_96 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_96 WHERE venue = "junction 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 lowest crowd number at the venue MCG?
### Context:
CREATE TABLE table_name_73 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_73 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:
Name the average round for jacksonville
### Context:
CREATE TABLE table_name_89 (round INTEGER, place VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_89 WHERE place = "jacksonville" </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 the standing for january 29 and finished of 3rd and total points less than 248
### Context:
CREATE TABLE table_name_59 (standing VARCHAR, date VARCHAR, total_points VARCHAR, finished VARCHAR) [/INST]
### Response:
SELECT standing FROM table_name_59 WHERE total_points < 248 AND finished = "3rd" AND date = "january 29" </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 result and score of the game on February 22?
### Context:
CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_5 WHERE date = "february 22" </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 Rd# for a PI GP greater than 0 and a Reg GP less than 62?
### Context:
CREATE TABLE table_name_20 (rd__number INTEGER, pl_gp VARCHAR, reg_gp VARCHAR) [/INST]
### Response:
SELECT MAX(rd__number) FROM table_name_20 WHERE pl_gp > 0 AND reg_gp < 62 </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 Reg GP over 62?
### Context:
CREATE TABLE table_name_12 (team__league_ VARCHAR, reg_gp INTEGER) [/INST]
### Response:
SELECT team__league_ FROM table_name_12 WHERE reg_gp > 62 </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 year with a Position of 12th?
### Context:
CREATE TABLE table_name_89 (year INTEGER, position VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_89 WHERE position = "12th" </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 a race had less than 18 laps and time/retired of accident, what was the smallest grid?
### Context:
CREATE TABLE table_name_16 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_16 WHERE time_retired = "accident" AND laps < 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 time/retired for a grid over 17 with 74 laps?
### Context:
CREATE TABLE table_name_31 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_31 WHERE grid > 17 AND laps = 74 </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?
### Context:
CREATE TABLE table_name_76 (grid INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT SUM(grid) FROM table_name_76 WHERE driver = "david coulthard" </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 Chris Maddocks compete in the 35000 m?
### Context:
CREATE TABLE table_name_83 (date VARCHAR, athlete VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_83 WHERE athlete = "chris maddocks" AND event = "35000 m" </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 a walking data of 214.061km?
### Context:
CREATE TABLE table_name_66 (athlete VARCHAR, data VARCHAR) [/INST]
### Response:
SELECT athlete FROM table_name_66 WHERE data = "214.061km" </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 a walking data of 3:10:48+?
### Context:
CREATE TABLE table_name_11 (athlete VARCHAR, data VARCHAR) [/INST]
### Response:
SELECT athlete FROM table_name_11 WHERE data = "3:10:48+" </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 title of the episode with the original air date of october2,2002?
### Context:
CREATE TABLE table_name_57 (title VARCHAR, original_air_date VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_57 WHERE original_air_date = "october2,2002" </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 title of the episode with the production code of ad1a22?
### Context:
CREATE TABLE table_name_1 (title VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_1 WHERE production_code = "ad1a22" </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 director of the episode with production code ad1a26?
### Context:
CREATE TABLE table_name_38 (directed_by VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_name_38 WHERE production_code = "ad1a26" </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 constructor whose circuit was Oulton Park?
### Context:
CREATE TABLE table_name_71 (constructor VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_71 WHERE circuit = "oulton 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 race for which the circuit was Snetterton?
### Context:
CREATE TABLE table_name_37 (race_name VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT race_name FROM table_name_37 WHERE circuit = "snetterton" </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 what years did the Guard from Oklahoma with a height of 6-6 play for the Rockets?
### Context:
CREATE TABLE table_name_41 (years_for_rockets VARCHAR, school_club_team_country VARCHAR, height_in_ft VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT years_for_rockets FROM table_name_41 WHERE height_in_ft = "6-6" AND position = "guard" AND school_club_team_country = "oklahoma" </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 what the position 6th, the competition was super league xvii and played was larger than 27?
### Context:
CREATE TABLE table_name_22 (drawn VARCHAR, played VARCHAR, position VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT COUNT(drawn) FROM table_name_22 WHERE position = "6th" AND competition = "super league xvii" AND played > 27 </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 cap number in scotland in 1986–1998 leass than 69?
### Context:
CREATE TABLE table_name_6 (average VARCHAR, caps VARCHAR, scotland_career VARCHAR) [/INST]
### Response:
SELECT COUNT(average) FROM table_name_6 WHERE caps < 69 AND scotland_career = "1986–1998" </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 caps was in scotland in 1920–1923?
### Context:
CREATE TABLE table_name_20 (caps VARCHAR, scotland_career VARCHAR) [/INST]
### Response:
SELECT caps FROM table_name_20 WHERE scotland_career = "1920–1923" </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 goal low with caps less than 38 and an average less than 1.083?
### Context:
CREATE TABLE table_name_93 (goals INTEGER, caps VARCHAR, average VARCHAR) [/INST]
### Response:
SELECT MIN(goals) FROM table_name_93 WHERE caps < 38 AND average < 1.083 </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 goal top with caps of 38 and an average less than 0.579?
### Context:
CREATE TABLE table_name_45 (goals INTEGER, caps VARCHAR, average VARCHAR) [/INST]
### Response:
SELECT MAX(goals) FROM table_name_45 WHERE caps = 38 AND average < 0.579 </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 low goal for kenny miller with an average smaller than 0.261?
### Context:
CREATE TABLE table_name_24 (goals INTEGER, name VARCHAR, average VARCHAR) [/INST]
### Response:
SELECT MIN(goals) FROM table_name_24 WHERE name = "kenny miller" AND average < 0.261 </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 home team plays at victoria park?
### Context:
CREATE TABLE table_name_4 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_4 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 north melbourne played as the home team, what was the away team score?
### Context:
CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_7 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 is the away team score at victoria park?
### Context:
CREATE TABLE table_name_42 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_42 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 high goal against associated with 18 wins, a Goal Difference of 43, and under 6 draws?
### Context:
CREATE TABLE table_name_57 (goals_against INTEGER, draws VARCHAR, wins VARCHAR, goal_difference VARCHAR) [/INST]
### Response:
SELECT MAX(goals_against) FROM table_name_57 WHERE wins = 18 AND goal_difference = 43 AND draws < 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 average win total associated with under 4 draws, and under 15 goals?
### Context:
CREATE TABLE table_name_86 (wins INTEGER, draws VARCHAR, goals_for VARCHAR) [/INST]
### Response:
SELECT AVG(wins) FROM table_name_86 WHERE draws < 4 AND goals_for < 15 </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 home team that played at Moorabbin Oval?
### Context:
CREATE TABLE table_name_17 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_17 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:
How large was the crowd when Carlton was the away team?
### Context:
CREATE TABLE table_name_26 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_26 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:
I want the sum of year for mark barron
### Context:
CREATE TABLE table_name_11 (year INTEGER, player_name VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_11 WHERE player_name = "mark barron" </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 year for defensive tackle and college of lsu
### Context:
CREATE TABLE table_name_13 (year VARCHAR, position VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_13 WHERE position = "defensive tackle" AND college = "lsu" </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 April 28, what was the average number of people attending?
### Context:
CREATE TABLE table_name_6 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_6 WHERE date = "april 28" </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 player is a centre?
### Context:
CREATE TABLE table_name_50 (player VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_50 WHERE position = "centre" </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 venue when Collingwood was the away team?
### Context:
CREATE TABLE table_name_49 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_49 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:
Where did Brian Hightower play when he has the Conv of 0?
### Context:
CREATE TABLE table_name_47 (venue VARCHAR, conv VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_47 WHERE conv = "0" AND player = "brian hightower" </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 Dick Hyland's conv?
### Context:
CREATE TABLE table_name_37 (conv VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT conv FROM table_name_37 WHERE player = "dick hyland" </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 tries took place on 06/07/1996?
### Context:
CREATE TABLE table_name_16 (tries VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT tries FROM table_name_16 WHERE date = "06/07/1996" </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 player played on 07/06/1997?
### Context:
CREATE TABLE table_name_41 (player VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_41 WHERE date = "07/06/1997" </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 melbourne, what venue do they play at?
### Context:
CREATE TABLE table_name_74 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_74 WHERE away_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 is the lowest interview of Texas, with an average larger than 9.531?
### Context:
CREATE TABLE table_name_86 (interview INTEGER, state VARCHAR, average VARCHAR) [/INST]
### Response:
SELECT MIN(interview) FROM table_name_86 WHERE state = "texas" AND average > 9.531 </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 interviews of Iowa, and with an evening gown smaller than 9.625?
### Context:
CREATE TABLE table_name_23 (interview VARCHAR, state VARCHAR, evening_gown VARCHAR) [/INST]
### Response:
SELECT COUNT(interview) FROM table_name_23 WHERE state = "iowa" AND evening_gown < 9.625 </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 sum of the average of Hawaii, with an interviewer larger than 9.636?
### Context:
CREATE TABLE table_name_26 (average INTEGER, state VARCHAR, interview VARCHAR) [/INST]
### Response:
SELECT SUM(average) FROM table_name_26 WHERE state = "hawaii" AND interview > 9.636 </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 highest evening gown with an average of 9.531 and swimsuit smaller than 9.449?
### Context:
CREATE TABLE table_name_8 (evening_gown INTEGER, average VARCHAR, swimsuit VARCHAR) [/INST]
### Response:
SELECT MAX(evening_gown) FROM table_name_8 WHERE average = 9.531 AND swimsuit < 9.449 </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 sum of swimsuit with an evening gown of 9.773 and average larger than 9.674?
### Context:
CREATE TABLE table_name_82 (swimsuit INTEGER, evening_gown VARCHAR, average VARCHAR) [/INST]
### Response:
SELECT SUM(swimsuit) FROM table_name_82 WHERE evening_gown = 9.773 AND average > 9.674 </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 of the swimsuit smaller than 9.545 , of Iowa, with an evening gown larger than 9.625?
### Context:
CREATE TABLE table_name_34 (average INTEGER, evening_gown VARCHAR, swimsuit VARCHAR, state VARCHAR) [/INST]
### Response:
SELECT AVG(average) FROM table_name_34 WHERE swimsuit < 9.545 AND state = "iowa" AND evening_gown > 9.625 </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 leading scorer for 1 april 2008
### Context:
CREATE TABLE table_name_82 (leading_scorer VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT leading_scorer FROM table_name_82 WHERE date = "1 april 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:
Name the home for 16 april 2008
### Context:
CREATE TABLE table_name_11 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_11 WHERE date = "16 april 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:
Name the score for bucks with timberwolves
### Context:
CREATE TABLE table_name_56 (score VARCHAR, visitor VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_56 WHERE visitor = "bucks" AND home = "timberwolves" </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 sail is in the America 3 Foundation syndicate on the America 3 yacht?
### Context:
CREATE TABLE table_name_96 (sail VARCHAR, syndicate VARCHAR, yacht VARCHAR) [/INST]
### Response:
SELECT sail FROM table_name_96 WHERE syndicate = "america 3 foundation" AND yacht = "america 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:
Which syndicate is associated with the stars & stripes yacht?
### Context:
CREATE TABLE table_name_8 (syndicate VARCHAR, yacht VARCHAR) [/INST]
### Response:
SELECT syndicate FROM table_name_8 WHERE yacht = "stars & stripes" </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 Yacht Club is part of the America 3 Foundation syndicate on the America 3 yacht?
### Context:
CREATE TABLE table_name_84 (yacht VARCHAR, syndicate VARCHAR) [/INST]
### Response:
SELECT yacht AS Club FROM table_name_84 WHERE syndicate = "america 3 foundation" AND yacht = "america 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:
Which nation has the America 3 Foundation syndicate and the jayhawk yacht?
### Context:
CREATE TABLE table_name_81 (nation VARCHAR, syndicate VARCHAR, yacht VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_81 WHERE syndicate = "america 3 foundation" AND yacht = "jayhawk" </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 Nation has the USA-18 sail?
### Context:
CREATE TABLE table_name_91 (nation VARCHAR, sail VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_91 WHERE sail = "usa-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:
How big was the crowd when collingwood visited?
### Context:
CREATE TABLE table_name_46 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_46 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 away team is based in moorabbin oval?
### Context:
CREATE TABLE table_name_19 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_19 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:
What date did af giles play?
### Context:
CREATE TABLE table_name_40 (date VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_40 WHERE player = "af giles" </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 catches does hh dippenaar have?
### Context:
CREATE TABLE table_name_59 (catches VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT catches FROM table_name_59 WHERE player = "hh dippenaar" </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 has a date of 12-02-2003?
### Context:
CREATE TABLE table_name_98 (player VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_98 WHERE date = "12-02-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 had a versus of sri lanka?
### Context:
CREATE TABLE table_name_18 (player VARCHAR, versus VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_18 WHERE versus = "sri lanka" </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 a date of 19-02-2003?
### Context:
CREATE TABLE table_name_23 (player VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_23 WHERE date = "19-02-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:
What date had a versus of source: cricinfo.com?
### Context:
CREATE TABLE table_name_93 (date VARCHAR, versus VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_93 WHERE versus = "source: cricinfo.com" </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 south Melbourne was the home team, what was the away team?
### Context:
CREATE TABLE table_name_53 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_53 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:
What was the smallest crowd size for away team st kilda?
### Context:
CREATE TABLE table_name_25 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_25 WHERE away_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 score of the game against Milwaukee?
### Context:
CREATE TABLE table_name_9 (score VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_9 WHERE visitor = "milwaukee" </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:
Was the third place winner Yannick Noah?
### Context:
CREATE TABLE table_name_87 (winner VARCHAR, third_place VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_87 WHERE third_place = "yannick noah" </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 away team score when the home team essendon was playing?
### Context:
CREATE TABLE table_name_63 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_63 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:
Who set the record for youngest nominee?
### Context:
CREATE TABLE table_name_9 (record_set VARCHAR, superlative VARCHAR) [/INST]
### Response:
SELECT record_set FROM table_name_9 WHERE superlative = "youngest nominee" </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:
After the year 2011, who was the youngest nominee?
### Context:
CREATE TABLE table_name_24 (record_set VARCHAR, year VARCHAR, superlative VARCHAR) [/INST]
### Response:
SELECT record_set FROM table_name_24 WHERE year > 2011 AND superlative = "youngest nominee" </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 Quvenzhané Wallis first win?
### Context:
CREATE TABLE table_name_76 (year INTEGER, actress VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_76 WHERE actress = "quvenzhané wallis" </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 last year when Katharine Hepburn won?
### Context:
CREATE TABLE table_name_20 (year INTEGER, actress VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_20 WHERE actress = "katharine hepburn" </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 winner in 2003?
### Context:
CREATE TABLE table_name_53 (winner VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_53 WHERE year = "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:
where did marie-laure taya win?
### Context:
CREATE TABLE table_name_90 (venue VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_90 WHERE winner = "marie-laure taya" </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 saw a score of 285?
### Context:
CREATE TABLE table_name_17 (venue VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_17 WHERE score = "285" </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 laps for Time/Retired of + 2 laps, and a Grid of 13?
### Context:
CREATE TABLE table_name_34 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_34 WHERE time_retired = "+ 2 laps" 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:
What company constructed the car with more than 0 laps and shows 5 for grid?
### Context:
CREATE TABLE table_name_42 (constructor VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_42 WHERE laps > 0 AND grid = 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 sum of laps for Derek Warwick?
### Context:
CREATE TABLE table_name_20 (laps INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_20 WHERE driver = "derek warwick" </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 years runner-up is Birmingham city, with over 1 runners-up?
### Context:
CREATE TABLE table_name_91 (years_runner_up VARCHAR, runners_up VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT years_runner_up FROM table_name_91 WHERE runners_up > 1 AND club = "birmingham city" </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 score has an Away team of st kilda?
### Context:
CREATE TABLE table_name_2 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_2 WHERE away_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:
Which Home team has a Venue of victoria park?
### Context:
CREATE TABLE table_name_27 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_27 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:
Who was the center from Washington State?
### Context:
CREATE TABLE table_name_90 (player VARCHAR, position VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_90 WHERE position = "center" AND school_club_team = "washington state" </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 Paul Dawkins 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 = "paul dawkins" </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 place with building of victoria hall
### Context:
CREATE TABLE table_name_93 (place VARCHAR, building VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_93 WHERE building = "victoria hall" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.