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:
Which World Rank happened in 1977?
### Context:
CREATE TABLE table_name_81 (world_rank VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT world_rank FROM table_name_81 WHERE year = 1977 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the rank for the episode that premiered on September 12, 1979?
### Context:
CREATE TABLE table_name_41 (rank VARCHAR, premiere VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_41 WHERE premiere = "september 12, 1979" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 finale for the season that premiered on September 22, 1976?
### Context:
CREATE TABLE table_name_72 (finale VARCHAR, premiere VARCHAR) [/INST]
### Response:
SELECT finale FROM table_name_72 WHERE premiere = "september 22, 1976" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the rank for the episode that premiered on September 13, 1978?
### Context:
CREATE TABLE table_name_21 (rank VARCHAR, premiere VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_21 WHERE premiere = "september 13, 1978" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 finale for Season 3?
### Context:
CREATE TABLE table_name_61 (finale VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT finale FROM table_name_61 WHERE season = 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 was the date of the premiere that had a 20.9 rating?
### Context:
CREATE TABLE table_name_38 (premiere VARCHAR, rating VARCHAR) [/INST]
### Response:
SELECT premiere FROM table_name_38 WHERE rating = "20.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 was Herdez Competition's total points with a grid larger than 1?
### Context:
CREATE TABLE table_name_39 (points VARCHAR, team VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_39 WHERE team = "herdez competition" AND grid > 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the highest lap count for Walker Racing with a grid larger than 15?
### Context:
CREATE TABLE table_name_34 (laps INTEGER, team VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_34 WHERE team = "walker racing" AND grid > 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:
Which driver had 248 laps?
### Context:
CREATE TABLE table_name_9 (driver VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_9 WHERE laps = 248 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver had a time/retired of + 10 laps and more than 6 points?
### Context:
CREATE TABLE table_name_80 (driver VARCHAR, time_retired VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_80 WHERE time_retired = "+ 10 laps" AND points > 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:
Which Record has a Game of 61?
### Context:
CREATE TABLE table_name_56 (record VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_56 WHERE game = 61 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 High points have a Record of 27β29?
### Context:
CREATE TABLE table_name_67 (high_points VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_name_67 WHERE record = "27β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:
Which High points has a Game larger than 58, and a High rebounds of francisco elson (7)?
### Context:
CREATE TABLE table_name_92 (high_points VARCHAR, game VARCHAR, high_rebounds VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_name_92 WHERE game > 58 AND high_rebounds = "francisco elson (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:
Which Location Attendance has a Date of february 27?
### Context:
CREATE TABLE table_name_46 (location_attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_name_46 WHERE date = "february 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:
Which Record has a High rebounds of luc mbah a moute (11)?
### Context:
CREATE TABLE table_name_42 (record VARCHAR, high_rebounds VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_42 WHERE high_rebounds = "luc mbah a moute (11)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Game has a Record of 27β30?
### Context:
CREATE TABLE table_name_99 (game INTEGER, record VARCHAR) [/INST]
### Response:
SELECT SUM(game) FROM table_name_99 WHERE record = "27β30" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tournament had a Score in Final of 5β7, 4β6?
### Context:
CREATE TABLE table_name_43 (tournament VARCHAR, score_in_final VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_43 WHERE score_in_final = "5β7, 4β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 Opponents in Final in the match with a Score in Final of 4β6, 1β6 played on Clay Surface?
### Context:
CREATE TABLE table_name_48 (opponents_in_final VARCHAR, score_in_final VARCHAR, surface VARCHAR) [/INST]
### Response:
SELECT opponents_in_final FROM table_name_48 WHERE score_in_final = "4β6, 1β6" AND surface = "clay" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Date of the match with Partner Steffi Graf with a Score in Final of 4β6, 1β6?
### Context:
CREATE TABLE table_name_26 (date VARCHAR, score_in_final VARCHAR, partner VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_26 WHERE score_in_final = "4β6, 1β6" AND partner = "steffi graf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Partner of the match with a Score in Final of 5β7, 4β6?
### Context:
CREATE TABLE table_name_92 (partner VARCHAR, score_in_final VARCHAR) [/INST]
### Response:
SELECT partner FROM table_name_92 WHERE score_in_final = "5β7, 4β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 2001, when 1999 is "2R", and when 1992 is "3R"?
### Context:
CREATE TABLE table_name_12 (Id VARCHAR) [/INST]
### Response:
SELECT 2001 FROM table_name_12 WHERE 1999 = "2r" AND 1992 = "3r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1990, when 1997 is "1R", and when Tournament is "Hamburg"?
### Context:
CREATE TABLE table_name_74 (tournament VARCHAR) [/INST]
### Response:
SELECT 1990 FROM table_name_74 WHERE 1997 = "1r" AND tournament = "hamburg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2001, when 1989 is "A", and when Tournament is "U.S. Open"?
### Context:
CREATE TABLE table_name_94 (tournament VARCHAR) [/INST]
### Response:
SELECT 2001 FROM table_name_94 WHERE 1989 = "a" AND tournament = "u.s. open" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the goals against when the points is 43 and draws is more than 9?
### Context:
CREATE TABLE table_name_29 (goals_against INTEGER, points VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT AVG(goals_against) FROM table_name_29 WHERE points = 43 AND draws > 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 goals when the goal difference is more than -3, the club is real avilΓ©s cf and the goals against is more than 60?
### Context:
CREATE TABLE table_name_19 (goals_for INTEGER, goals_against VARCHAR, goal_difference VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT SUM(goals_for) FROM table_name_19 WHERE goal_difference > -3 AND club = "real avilΓ©s cf" AND goals_against > 60 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 least draws when the position is lower than 5, the points is 62 and played is more than 38?
### Context:
CREATE TABLE table_name_98 (draws INTEGER, played VARCHAR, position VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MIN(draws) FROM table_name_98 WHERE position < 5 AND points = 62 AND played > 38 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played when the wins is 21 and the positions is higher than 3?
### Context:
CREATE TABLE table_name_55 (played INTEGER, wins VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT SUM(played) FROM table_name_55 WHERE wins = 21 AND position > 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 sum of Week, when Date is December 2, 2001?
### Context:
CREATE TABLE table_name_7 (week INTEGER, date VARCHAR) [/INST]
### Response:
SELECT SUM(week) FROM table_name_7 WHERE date = "december 2, 2001" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of Week, when Opponent is At Cleveland Browns?
### Context:
CREATE TABLE table_name_15 (week VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT COUNT(week) FROM table_name_15 WHERE opponent = "at cleveland browns" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Country's ICAO is VOTR?
### Context:
CREATE TABLE table_name_36 (country VARCHAR, icao VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_36 WHERE icao = "votr" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 City in the Maldives?
### Context:
CREATE TABLE table_name_77 (city VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_77 WHERE country = "maldives" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ICAO in India with IATA TRZ?
### Context:
CREATE TABLE table_name_90 (icao VARCHAR, country VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT icao FROM table_name_90 WHERE country = "india" AND iata = "trz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Airport in Singapore?
### Context:
CREATE TABLE table_name_77 (airport VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT airport FROM table_name_77 WHERE country = "singapore" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Airport with an IATA of TRZ?
### Context:
CREATE TABLE table_name_51 (airport VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT airport FROM table_name_51 WHERE iata = "trz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent of the game with a w 87-64 score?
### Context:
CREATE TABLE table_name_88 (opponent VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_88 WHERE score = "w 87-64" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location/attendance of the game with a 3-1 record?
### Context:
CREATE TABLE table_name_1 (location_attendance VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_name_1 WHERE record = "3-1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the highest points of the game on May 27?
### Context:
CREATE TABLE table_name_26 (high_points VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_name_26 WHERE date = "may 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:
Who is the opponent on October 28, 2001?
### Context:
CREATE TABLE table_name_77 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_77 WHERE date = "october 28, 2001" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lowest week at Ralph Wilson Stadium on October 7, 2001?
### Context:
CREATE TABLE table_name_72 (week INTEGER, game_site VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_name_72 WHERE game_site = "ralph wilson stadium" AND date = "october 7, 2001" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 To Par, when Player is "Bob Rosburg"?
### Context:
CREATE TABLE table_name_4 (to_par INTEGER, player VARCHAR) [/INST]
### Response:
SELECT SUM(to_par) FROM table_name_4 WHERE player = "bob rosburg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of To Par, when Score is "70-75-76=221"?
### Context:
CREATE TABLE table_name_16 (to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT COUNT(to_par) FROM table_name_16 WHERE score = 70 - 75 - 76 = 221 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Player, when Score is "76-73-73=222"?
### Context:
CREATE TABLE table_name_60 (player VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_60 WHERE score = 76 - 73 - 73 = 222 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Score, when To Par is greater than 7, when Place is "T4", and when Player is "Bob Rosburg"?
### Context:
CREATE TABLE table_name_38 (score VARCHAR, player VARCHAR, to_par VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_38 WHERE to_par > 7 AND place = "t4" AND player = "bob rosburg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 transfer window ends after 2006?
### Context:
CREATE TABLE table_name_95 (transfer_window VARCHAR, ends INTEGER) [/INST]
### Response:
SELECT transfer_window FROM table_name_95 WHERE ends > 2006 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the transfer fee for Paolo Vanoli?
### Context:
CREATE TABLE table_name_86 (transfer_fee VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT transfer_fee FROM table_name_86 WHERE name = "paolo vanoli" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Gavin Rae?
### Context:
CREATE TABLE table_name_9 (nat VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT nat FROM table_name_9 WHERE name = "gavin rae" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 much Overall has a Position of ot, and a Round larger than 5?
### Context:
CREATE TABLE table_name_76 (overall VARCHAR, position VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT COUNT(overall) FROM table_name_76 WHERE position = "ot" AND round > 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 to par for Bart Bryant?
### Context:
CREATE TABLE table_name_9 (to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_9 WHERE player = "bart bryant" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 scored 68-73-66=207 in South Africa?
### Context:
CREATE TABLE table_name_70 (place VARCHAR, country VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_70 WHERE country = "south africa" AND score = 68 - 73 - 66 = 207 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Royal house has a name of ding?
### Context:
CREATE TABLE table_name_30 (royal_house VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT royal_house FROM table_name_30 WHERE name = "ding" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 type of state is bo qin?
### Context:
CREATE TABLE table_name_99 (type VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_99 WHERE name = "bo qin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 type of state has a royal house of ji and has a ruler?
### Context:
CREATE TABLE table_name_54 (type VARCHAR, royal_house VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_54 WHERE royal_house = "ji" AND title = "ruler" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the record when the game is 13?
### Context:
CREATE TABLE table_name_17 (record VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_17 WHERE game = 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:
who had the high points on november 20?
### Context:
CREATE TABLE table_name_61 (high_points VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_name_61 WHERE date = "november 20" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Score on November 23, 1946 with Washington Capitols Home team?
### Context:
CREATE TABLE table_name_91 (score VARCHAR, home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_91 WHERE home = "washington capitols" AND date = "november 23, 1946" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 what Date is the Detroit Falcons the Home team in a game with a Score of 63β66?
### Context:
CREATE TABLE table_name_71 (date VARCHAR, home VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_71 WHERE home = "detroit falcons" AND score = "63β66" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home team on January 24, 1947?
### Context:
CREATE TABLE table_name_62 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_62 WHERE date = "january 24, 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:
What is the Home team on November 16, 1946?
### Context:
CREATE TABLE table_name_38 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_38 WHERE date = "november 16, 1946" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home team on February 2, 1947?
### Context:
CREATE TABLE table_name_68 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_68 WHERE date = "february 2, 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:
Which Laps have a Time of +23.002, and a Grid smaller than 11?
### Context:
CREATE TABLE table_name_5 (laps INTEGER, time VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_5 WHERE time = "+23.002" AND grid < 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Laps have a Manufacturer of aprilia, and a Rider of sergio gadea?
### Context:
CREATE TABLE table_name_48 (laps VARCHAR, manufacturer VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_48 WHERE manufacturer = "aprilia" AND rider = "sergio gadea" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Grid that has a Rider of mike di meglio, and Laps larger than 23?
### Context:
CREATE TABLE table_name_23 (grid INTEGER, rider VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_23 WHERE rider = "mike di meglio" AND laps > 23 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Manufacturer has a Grid smaller than 9, and a Time of +22.517?
### Context:
CREATE TABLE table_name_47 (manufacturer VARCHAR, grid VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT manufacturer FROM table_name_47 WHERE grid < 9 AND time = "+22.517" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Result, when Round is SF?
### Context:
CREATE TABLE table_name_57 (result VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_57 WHERE round = "sf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Result, when Date is 11 August 1992?
### Context:
CREATE TABLE table_name_26 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_26 WHERE date = "11 august 1992" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Result, when Date is 19 August 1992?
### Context:
CREATE TABLE table_name_40 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_40 WHERE date = "19 august 1992" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Did he win or lose rof 32: respect?
### Context:
CREATE TABLE table_name_47 (res VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT res FROM table_name_47 WHERE event = "rof 32: respect" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round did he win rof 29: aftershock in?
### Context:
CREATE TABLE table_name_3 (round VARCHAR, res VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_3 WHERE res = "win" AND event = "rof 29: aftershock" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rounds did the match last when his record was 6-6?
### Context:
CREATE TABLE table_name_72 (round VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_72 WHERE record = "6-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:
How did the match end when his record was 15-11?
### Context:
CREATE TABLE table_name_37 (method VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_37 WHERE record = "15-11" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ben spies do on the grid less than 7?
### Context:
CREATE TABLE table_name_86 (laps VARCHAR, grid VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_86 WHERE grid < 7 AND rider = "ben spies" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 grid did less than 20 laps in a time of +58.353?
### Context:
CREATE TABLE table_name_82 (grid INTEGER, time VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_82 WHERE time = "+58.353" AND laps < 20 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what was valentino rossi's rider time?
### Context:
CREATE TABLE table_name_97 (time VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_97 WHERE rider = "valentino rossi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manufactures Makoto Tamada's vehicle?
### Context:
CREATE TABLE table_name_68 (manufacturer VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT manufacturer FROM table_name_68 WHERE rider = "makoto tamada" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the time/retired of the one with grid of 16?
### Context:
CREATE TABLE table_name_60 (time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_60 WHERE grid = 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team did gonzalo arconada manage?
### Context:
CREATE TABLE table_name_90 (team VARCHAR, outgoing_manager VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_90 WHERE outgoing_manager = "gonzalo arconada" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 replaced their manager on 9 December 2008?
### Context:
CREATE TABLE table_name_77 (team VARCHAR, date_of_vacancy VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_77 WHERE date_of_vacancy = "9 december 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 was the date of appointment for paco chaparro's replacement?
### Context:
CREATE TABLE table_name_12 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) [/INST]
### Response:
SELECT date_of_appointment FROM table_name_12 WHERE outgoing_manager = "paco chaparro" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 appointment for javier aguirre's replacement?
### Context:
CREATE TABLE table_name_53 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) [/INST]
### Response:
SELECT date_of_appointment FROM table_name_53 WHERE outgoing_manager = "javier aguirre" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Namigata play against Wen-Hsin Hsu in the finals?
### Context:
CREATE TABLE table_name_84 (date VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_84 WHERE opponent_in_the_final = "wen-hsin hsu" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 during the week # of top 8?
### Context:
CREATE TABLE table_name_26 (result VARCHAR, week__number VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_26 WHERE week__number = "top 8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 theme during the week # of top 24 (12 men)
### Context:
CREATE TABLE table_name_73 (theme VARCHAR, week__number VARCHAR) [/INST]
### Response:
SELECT theme FROM table_name_73 WHERE week__number = "top 24 (12 men)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 after the week # top 11?
### Context:
CREATE TABLE table_name_84 (result VARCHAR, week__number VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_84 WHERE week__number = "top 11" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 league of player ian schultz?
### Context:
CREATE TABLE table_name_7 (league VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_7 WHERE player = "ian schultz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 birthplace and date of pick 4?
### Context:
CREATE TABLE table_name_47 (birthplace VARCHAR, _date VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT birthplace, _date FROM table_name_47 WHERE pick = 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 pick of player ian schultz from Canada?
### Context:
CREATE TABLE table_name_8 (pick VARCHAR, nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT pick FROM table_name_8 WHERE nationality = "canada" AND player = "ian schultz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on January 7?
### Context:
CREATE TABLE table_name_21 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_21 WHERE date = "january 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:
Who is the Opponent on January 16?
### Context:
CREATE TABLE table_name_45 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_45 WHERE date = "january 16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Score of the game against Philadelphia 76ers?
### Context:
CREATE TABLE table_name_2 (score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_2 WHERE opponent = "philadelphia 76ers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Date of the game where the Cavaliers have a Record of 15-27?
### Context:
CREATE TABLE table_name_57 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_57 WHERE record = "15-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 was the Opponent in the game with a Score of 102-125?
### Context:
CREATE TABLE table_name_82 (opponent VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_82 WHERE score = "102-125" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Cavaliers Record in the game with a Score of 98-99?
### Context:
CREATE TABLE table_name_59 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_59 WHERE score = "98-99" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 no pick position in 1976?
### Context:
CREATE TABLE table_name_33 (player VARCHAR, position VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_33 WHERE position = "no pick" AND year = 1976 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pick number was the player that went to baylor college?
### Context:
CREATE TABLE table_name_55 (pick VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT pick FROM table_name_55 WHERE college = "baylor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was the player pick number 15 picked?
### Context:
CREATE TABLE table_name_23 (year VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_23 WHERE pick = "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:
What was the record on september 2?
### Context:
CREATE TABLE table_name_6 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_6 WHERE date = "september 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 were phoenix's high points?
### Context:
CREATE TABLE table_name_83 (high_points VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_name_83 WHERE opponent = "phoenix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record 17-17?
### Context:
CREATE TABLE table_name_31 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_31 WHERE record = "17-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 were the high points on september 9?
### Context:
CREATE TABLE table_name_16 (high_points VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_name_16 WHERE date = "september 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:
How many games had a record of 16-17?
### Context:
CREATE TABLE table_name_83 (game VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT COUNT(game) FROM table_name_83 WHERE record = "16-17" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.