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 is the name of the Outfielder that was picked prior to Pick 42?
### Context:
CREATE TABLE table_name_63 (player VARCHAR, position VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_63 WHERE position = "outfielder" AND pick < 42 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Week when anke huber chanda rubin shows for Semi finalists, and the Runner-up is meredith mcgrath larisa savchenko?
### Context:
CREATE TABLE table_name_2 (week_of VARCHAR, semi_finalists VARCHAR, runner_up VARCHAR) [/INST]
### Response:
SELECT week_of FROM table_name_2 WHERE semi_finalists = "anke huber chanda rubin" AND runner_up = "meredith mcgrath larisa savchenko" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Semi finalists when the Runner-up was katrina adams zina garrison-jackson?
### Context:
CREATE TABLE table_name_55 (semi_finalists VARCHAR, runner_up VARCHAR) [/INST]
### Response:
SELECT semi_finalists FROM table_name_55 WHERE runner_up = "katrina adams zina garrison-jackson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winner when anke huber chanda rubin was semi finalist?
### Context:
CREATE TABLE table_name_31 (winner VARCHAR, semi_finalists VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_31 WHERE semi_finalists = "anke huber chanda rubin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tier when the runner-up is chanda rubin caroline vis?
### Context:
CREATE TABLE table_name_95 (tier VARCHAR, runner_up VARCHAR) [/INST]
### Response:
SELECT tier FROM table_name_95 WHERE runner_up = "chanda rubin caroline vis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Week when the winner was mary joe fernández 6–4, 7–5?
### Context:
CREATE TABLE table_name_88 (week_of VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT week_of FROM table_name_88 WHERE winner = "mary joe fernández 6–4, 7–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 Runner-up with the tier was tier ii, and a Winner of gigi fernández natalia zvereva 5–7, 6–1, 6–4?
### Context:
CREATE TABLE table_name_43 (runner_up VARCHAR, tier VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_name_43 WHERE tier = "tier ii" AND winner = "gigi fernández natalia zvereva 5–7, 6–1, 6–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:
Which week had safe as the result and Dolly Parton as the theme?
### Context:
CREATE TABLE table_name_42 (week__number VARCHAR, result VARCHAR, theme VARCHAR) [/INST]
### Response:
SELECT week__number FROM table_name_42 WHERE result = "safe" AND theme = "dolly parton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On which week was the beatles the original artist and the order # smaller than 10?
### Context:
CREATE TABLE table_name_34 (week__number VARCHAR, original_artist VARCHAR, order__number VARCHAR) [/INST]
### Response:
SELECT week__number FROM table_name_34 WHERE original_artist = "the beatles" AND order__number < 10 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which original artist had 5 as their order #?
### Context:
CREATE TABLE table_name_89 (original_artist VARCHAR, order__number VARCHAR) [/INST]
### Response:
SELECT original_artist FROM table_name_89 WHERE order__number = 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 nominee was nominated in the Outstanding Director of a Musical category?
### Context:
CREATE TABLE table_name_17 (nominee VARCHAR, category VARCHAR) [/INST]
### Response:
SELECT nominee FROM table_name_17 WHERE category = "outstanding director of a musical" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result for Brent Spiner?
### Context:
CREATE TABLE table_name_46 (result VARCHAR, nominee VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_46 WHERE nominee = "brent spiner" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of games for Shaun Stonerook?
### Context:
CREATE TABLE table_name_86 (games INTEGER, name VARCHAR) [/INST]
### Response:
SELECT MIN(games) FROM table_name_86 WHERE name = "shaun stonerook" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total number of medals of the nation with less than 1 bronzes and less than 0 silver medals?
### Context:
CREATE TABLE table_name_21 (total INTEGER, bronze VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT MAX(total) FROM table_name_21 WHERE bronze < 1 AND silver < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Total weeks of 49,980 attendance?
### Context:
CREATE TABLE table_name_55 (week INTEGER, attendance VARCHAR) [/INST]
### Response:
SELECT SUM(week) FROM table_name_55 WHERE attendance = 49 OFFSET 980 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Mean attendance for December 22, 1980?
### Context:
CREATE TABLE table_name_91 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_91 WHERE date = "december 22, 1980" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Overall attendance for week 4?
### Context:
CREATE TABLE table_name_63 (attendance VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_63 WHERE week = 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 was in 2007 that has a 3r of 1999?
### Context:
CREATE TABLE table_name_10 (Id VARCHAR) [/INST]
### Response:
SELECT 2007 FROM table_name_10 WHERE 1999 = "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 was in 2007 that is from 2004 0f 2r and 2010 of A?
### Context:
CREATE TABLE table_name_73 (Id VARCHAR) [/INST]
### Response:
SELECT 2007 FROM table_name_73 WHERE 2004 = "2r" AND 2010 = "a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in 2001, that has the year 2006, 2r, and in 2010 an A?
### Context:
CREATE TABLE table_name_71 (Id VARCHAR) [/INST]
### Response:
SELECT 2001 FROM table_name_71 WHERE 2006 = "2r" AND 2010 = "a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 awarded after 1947 in the category of, the best actor in a leading role?
### Context:
CREATE TABLE table_name_90 (award VARCHAR, year VARCHAR, category VARCHAR) [/INST]
### Response:
SELECT award FROM table_name_90 WHERE year > 1947 AND category = "best actor in a leading role" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Opponent has a Method of tko, and a Location of elgin, illinois, usa on 2001-02-11?
### Context:
CREATE TABLE table_name_7 (opponent VARCHAR, date VARCHAR, method VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_7 WHERE method = "tko" AND location = "elgin, illinois, usa" AND date = "2001-02-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 Round has a Location of auckland, new zealand, and a Method of tko on 1994-11-24?
### Context:
CREATE TABLE table_name_83 (round INTEGER, date VARCHAR, location VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_83 WHERE location = "auckland, new zealand" AND method = "tko" AND date = "1994-11-24" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest Round has a Result of loss?
### Context:
CREATE TABLE table_name_27 (round INTEGER, result VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_27 WHERE result = "loss" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Method of decision?
### Context:
CREATE TABLE table_name_40 (location VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_40 WHERE method = "decision" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has 1r as a 2004, and 1r as a 2007?
### Context:
CREATE TABLE table_name_77 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_77 WHERE 2004 = "1r" AND 2007 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2012 has q2 as the 2010, and wimbledon as the tournament?
### Context:
CREATE TABLE table_name_31 (tournament VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_31 WHERE 2010 = "q2" AND tournament = "wimbledon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2006 has grand slam tournaments of 2010?
### Context:
CREATE TABLE table_name_95 (Id VARCHAR) [/INST]
### Response:
SELECT 2006 FROM table_name_95 WHERE 2010 = "grand slam tournaments" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2006 has grand slam tournaments of 2005?
### Context:
CREATE TABLE table_name_27 (Id VARCHAR) [/INST]
### Response:
SELECT 2006 FROM table_name_27 WHERE 2005 = "grand slam tournaments" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2006 has q2 as the 2007?
### Context:
CREATE TABLE table_name_34 (Id VARCHAR) [/INST]
### Response:
SELECT 2006 FROM table_name_34 WHERE 2007 = "q2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the losses where the award is Mike Miller (Smoy)?
### Context:
CREATE TABLE table_name_34 (losses VARCHAR, awards VARCHAR) [/INST]
### Response:
SELECT losses FROM table_name_34 WHERE awards = "mike miller (smoy)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the wins are 46, what is the win%?
### Context:
CREATE TABLE table_name_9 (win_percentage VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT win_percentage FROM table_name_9 WHERE wins = "46" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Vancouver Grizzlies is the awards, what is the conference?
### Context:
CREATE TABLE table_name_29 (conference VARCHAR, awards VARCHAR) [/INST]
### Response:
SELECT conference FROM table_name_29 WHERE awards = "vancouver grizzlies" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1987 value with a 1995 value less than 1995 and a 1999 less than 9?
### Context:
CREATE TABLE table_name_48 (Id VARCHAR) [/INST]
### Response:
SELECT MAX(1987) FROM table_name_48 WHERE 1995 < 1995 AND 1999 < 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 highest 2003 value with a 1990 greater than 74, a 125 value in 1985, and a 1995 value greater than 130?
### Context:
CREATE TABLE table_name_84 (Id VARCHAR) [/INST]
### Response:
SELECT MAX(2003) FROM table_name_84 WHERE 1990 > 74 AND 1985 = 125 AND 1995 > 130 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2007 value with a 1985 value greater than 52, a 1987 value greater than 130, and a 1990 less than 1990?
### Context:
CREATE TABLE table_name_56 (Id VARCHAR) [/INST]
### Response:
SELECT MAX(2007) FROM table_name_56 WHERE 1985 > 52 AND 1987 > 130 AND 1990 < 1990 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1995 with a 1990 less than 36, a 1987 less than 1987, and a 2007 value greater than 107?
### Context:
CREATE TABLE table_name_4 (Id VARCHAR) [/INST]
### Response:
SELECT MAX(1995) FROM table_name_4 WHERE 1990 > 36 AND 1987 < 1987 AND 2007 > 107 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2003 value with a 2011 less than 107 and a 1995 value less than 17?
### Context:
CREATE TABLE table_name_19 (Id VARCHAR) [/INST]
### Response:
SELECT MAX(2003) FROM table_name_19 WHERE 2011 < 107 AND 1995 < 17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the tournament with 11 or more events a top-5 of 0 and a top-25 of 2?
### Context:
CREATE TABLE table_name_58 (tournament VARCHAR, top_25 VARCHAR, events VARCHAR, top_5 VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_58 WHERE events > 11 AND top_5 = 0 AND top_25 = 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the most top-10 of the team with 8 cuts made and less than 11 events?
### Context:
CREATE TABLE table_name_40 (top_10 INTEGER, cuts_made VARCHAR, events VARCHAR) [/INST]
### Response:
SELECT MAX(top_10) FROM table_name_40 WHERE cuts_made = 8 AND events < 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 American Labor ticket when Henry Epstein is the liberal ticket?
### Context:
CREATE TABLE table_name_3 (american_labor_ticket VARCHAR, liberal_ticket VARCHAR) [/INST]
### Response:
SELECT american_labor_ticket FROM table_name_3 WHERE liberal_ticket = "henry epstein" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on the Communist ticket with an Office of judge of the court of appeals?
### Context:
CREATE TABLE table_name_63 (communist_ticket VARCHAR, office VARCHAR) [/INST]
### Response:
SELECT communist_ticket FROM table_name_63 WHERE office = "judge of the court of appeals" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Office when spencer c. young is on the liberal ticket??
### Context:
CREATE TABLE table_name_74 (office VARCHAR, liberal_ticket VARCHAR) [/INST]
### Response:
SELECT office FROM table_name_74 WHERE liberal_ticket = "spencer c. young" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on the Democratic ticket when the Liberal ticket is erastus corning 2nd?
### Context:
CREATE TABLE table_name_43 (democratic_ticket VARCHAR, liberal_ticket VARCHAR) [/INST]
### Response:
SELECT democratic_ticket FROM table_name_43 WHERE liberal_ticket = "erastus corning 2nd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What name is on the Republican ticket when the American Labor ticket was spencer c. young?
### Context:
CREATE TABLE table_name_37 (republican_ticket VARCHAR, american_labor_ticket VARCHAR) [/INST]
### Response:
SELECT republican_ticket FROM table_name_37 WHERE american_labor_ticket = "spencer c. young" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 entered number for the person with a time of 29:28?
### Context:
CREATE TABLE table_name_74 (entered VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT entered FROM table_name_74 WHERE time = "29: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:
What is the number eliminated for the person with a time of 12:38?
### Context:
CREATE TABLE table_name_15 (eliminated VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT eliminated AS by FROM table_name_15 WHERE time = "12: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 highest Attendance with a Result that is w 24-21?
### Context:
CREATE TABLE table_name_50 (attendance INTEGER, result VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_50 WHERE result = "w 24-21" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Date has a time of (seconds) 42.172?
### Context:
CREATE TABLE table_name_73 (date VARCHAR, time__seconds_ VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_73 WHERE time__seconds_ = 42.172 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for 23 january 2010, with a time smaller than 42.679 seconds?
### Context:
CREATE TABLE table_name_42 (record VARCHAR, date VARCHAR, time__seconds_ VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_42 WHERE date = "23 january 2010" AND time__seconds_ < 42.679 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points that were in a Year that was 2005?
### Context:
CREATE TABLE table_name_18 (points VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_18 WHERE year = "2005" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest Shots with a Point that is larger than 32?
### Context:
CREATE TABLE table_name_38 (shots INTEGER, points INTEGER) [/INST]
### Response:
SELECT MIN(shots) FROM table_name_38 WHERE points > 32 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 category had a year of 1991?
### Context:
CREATE TABLE table_name_41 (category VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_41 WHERE year = 1991 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 having a runner-up of Magdalena Maleeva?
### Context:
CREATE TABLE table_name_45 (score VARCHAR, runner_up VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_45 WHERE runner_up = "magdalena maleeva" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 John m. Belk Arena built?
### Context:
CREATE TABLE table_name_74 (year_built VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT year_built FROM table_name_74 WHERE venue = "john m. belk arena" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 environment is the venue that was built in 2003?
### Context:
CREATE TABLE table_name_11 (environment VARCHAR, year_built VARCHAR) [/INST]
### Response:
SELECT environment FROM table_name_11 WHERE year_built = "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 year was transamerica field built in?
### Context:
CREATE TABLE table_name_10 (year_built VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT year_built FROM table_name_10 WHERE venue = "transamerica field" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the venue owned by johnson c. smith university?
### Context:
CREATE TABLE table_name_26 (location VARCHAR, owner VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_26 WHERE owner = "johnson c. smith university" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue when the score was 8-2?
### Context:
CREATE TABLE table_name_61 (venue VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_61 WHERE score = "8-2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Score for the 1999 fifa confederations cup?
### Context:
CREATE TABLE table_name_96 (score VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_96 WHERE competition = "1999 fifa confederations cup" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result on 30 june 1995?
### Context:
CREATE TABLE table_name_2 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_2 WHERE date = "30 june 1995" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1999 fifa confederations cup?
### Context:
CREATE TABLE table_name_45 (date VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_45 WHERE competition = "1999 fifa confederations cup" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Venue for the 2002 fifa world cup qualifier, and a Result of 8-2?
### Context:
CREATE TABLE table_name_23 (venue VARCHAR, competition VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_23 WHERE competition = "2002 fifa world cup qualifier" AND result = "8-2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Score on 11 march 2001?
### Context:
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_76 WHERE date = "11 march 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 symbol of the element with an empirical t of 190 and a calculated value of 135?
### Context:
CREATE TABLE table_name_25 (symbol VARCHAR, empirical_† VARCHAR, calculated VARCHAR) [/INST]
### Response:
SELECT symbol FROM table_name_25 WHERE empirical_† = "190" AND calculated = "135" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 element with a calculated value of 56?
### Context:
CREATE TABLE table_name_57 (name VARCHAR, calculated VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_57 WHERE calculated = "56" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 covalent (single bond) value of sodium?
### Context:
CREATE TABLE table_name_21 (covalent__single_bond_ VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT covalent__single_bond_ FROM table_name_21 WHERE name = "sodium" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 height of the player with a birthdate on September 2, 1973?
### Context:
CREATE TABLE table_name_65 (height__cm_ VARCHAR, birthdate VARCHAR) [/INST]
### Response:
SELECT COUNT(height__cm_) FROM table_name_65 WHERE birthdate = "september 2, 1973" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 birthdate of Robert Esche?
### Context:
CREATE TABLE table_name_39 (birthdate VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT birthdate FROM table_name_39 WHERE name = "robert esche" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position of the player with a jersey # greater than 30 and a December 23, 1986 birthdate?
### Context:
CREATE TABLE table_name_83 (position VARCHAR, jersey__number VARCHAR, birthdate VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_83 WHERE jersey__number > 30 AND birthdate = "december 23, 1986" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 weight of John-Michael Liles?
### Context:
CREATE TABLE table_name_44 (weight__kg_ VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT weight__kg_ FROM table_name_44 WHERE name = "john-michael liles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 first leg score during the quarter-final game?
### Context:
CREATE TABLE table_name_16 (first_leg VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT first_leg FROM table_name_16 WHERE round = "quarter-final" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 aggregate score for the game against Dynamo Dresden?
### Context:
CREATE TABLE table_name_66 (aggregate_score VARCHAR, opposition VARCHAR) [/INST]
### Response:
SELECT aggregate_score FROM table_name_66 WHERE opposition = "dynamo dresden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opposing team in the 3rd round?
### Context:
CREATE TABLE table_name_69 (opposition VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT opposition FROM table_name_69 WHERE round = "3rd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 0 golds and more than 1 silver?
### Context:
CREATE TABLE table_name_20 (nation VARCHAR, gold VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_20 WHERE gold = 0 AND silver > 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest total that has under 3 golds, more than 0 silvers and bronzes?
### Context:
CREATE TABLE table_name_36 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_36 WHERE gold < 3 AND bronze > 0 AND silver > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of silvers associated with 3 bronzes, a total over 6, and a rank of 3?
### Context:
CREATE TABLE table_name_11 (silver VARCHAR, total VARCHAR, bronze VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(silver) FROM table_name_11 WHERE bronze = "3" AND rank = "3" AND total > 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 sum of bronzes associated with 0 golds and a rank of 10?
### Context:
CREATE TABLE table_name_67 (bronze INTEGER, rank VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT SUM(bronze) FROM table_name_67 WHERE rank = "10" AND gold < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest silver value associated with 0 golds?
### Context:
CREATE TABLE table_name_42 (silver INTEGER, gold INTEGER) [/INST]
### Response:
SELECT MAX(silver) FROM table_name_42 WHERE gold < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of bronzes from the Netherlands?
### Context:
CREATE TABLE table_name_44 (bronze VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT COUNT(bronze) FROM table_name_44 WHERE nation = "netherlands" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 amount of earnings for years under 2004 and money list rankings of 6?
### Context:
CREATE TABLE table_name_88 (earnings__ INTEGER, money_list_rank VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT AVG(earnings__) AS $_ FROM table_name_88 WHERE money_list_rank = "6" AND year < 2004 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of wins for years after 1999 with averages over 73.02?
### Context:
CREATE TABLE table_name_60 (wins INTEGER, average VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT MAX(wins) FROM table_name_60 WHERE average > 73.02 AND year > 1999 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the away team when the home team Manchester United played?
### Context:
CREATE TABLE table_name_54 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_54 WHERE home_team = "manchester united" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 there was a tie of 16 what was the attendance?
### Context:
CREATE TABLE table_name_8 (attendance VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_8 WHERE tie_no = "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:
Tell me the score when there was a Tie number of 6?
### Context:
CREATE TABLE table_name_30 (score VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_30 WHERE tie_no = "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:
For the Tie number of 14 who was the away team?
### Context:
CREATE TABLE table_name_46 (away_team VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_46 WHERE tie_no = "14" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Catalog released on June 29, 1999 has a Digipak Album Format?
### Context:
CREATE TABLE table_name_8 (catalog VARCHAR, format VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT catalog FROM table_name_8 WHERE format = "digipak album" AND date = "june 29, 1999" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the release Date of Catalog RR 8655-2?
### Context:
CREATE TABLE table_name_39 (date VARCHAR, catalog VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_39 WHERE catalog = "rr 8655-2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Score, when Name is Nicole 赖淞凤?
### Context:
CREATE TABLE table_name_38 (score VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_38 WHERE name = "nicole 赖淞凤" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Song is 第九夜?
### Context:
CREATE TABLE table_name_99 (score VARCHAR, song VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_99 WHERE song = "第九夜" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Group Song, when Song is 换季?
### Context:
CREATE TABLE table_name_80 (Group VARCHAR, song VARCHAR) [/INST]
### Response:
SELECT Group AS song FROM table_name_80 WHERE song = "换季" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Group Song, when Name is Alice 林芯糸?
### Context:
CREATE TABLE table_name_29 (Group VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT Group AS song FROM table_name_29 WHERE name = "alice 林芯糸" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 surface was the match played with a score of 2–6, 6–3, 6–4?
### Context:
CREATE TABLE table_name_32 (surface VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_32 WHERE score = "2–6, 6–3, 6–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:
On what surface was the match played with a score of 4–6, 6–3, 6–1?
### Context:
CREATE TABLE table_name_82 (surface VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_82 WHERE score = "4–6, 6–3, 6–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 score when the opponent in the final was iroda tulyaganova?
### Context:
CREATE TABLE table_name_44 (score VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_44 WHERE opponent_in_the_final = "iroda tulyaganova" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tournament has an opponent in the final of nadia petrova and a score of 6–3, 4–6, 6–1??
### Context:
CREATE TABLE table_name_22 (tournament VARCHAR, opponent_in_the_final VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_22 WHERE opponent_in_the_final = "nadia petrova" AND score = "6–3, 4–6, 6–1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is 01-02, when 03-04 is 03-04?
### Context:
CREATE TABLE table_name_61 (Id VARCHAR) [/INST]
### Response:
SELECT 01 AS _02 FROM table_name_61 WHERE "03_04" = "03_04" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 02-03, when School Year is % Learning In Latvian?
### Context:
CREATE TABLE table_name_33 (school_year VARCHAR) [/INST]
### Response:
SELECT 02 AS _03 FROM table_name_33 WHERE school_year = "% learning in latvian" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 choreographer for the dance style of Jazz?
### Context:
CREATE TABLE table_name_29 (choreographer_s_ VARCHAR, style VARCHAR) [/INST]
### Response:
SELECT choreographer_s_ FROM table_name_29 WHERE style = "jazz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 music led to a safe result and was choreographed by Jason Gilkison?
### Context:
CREATE TABLE table_name_57 (music VARCHAR, results VARCHAR, choreographer_s_ VARCHAR) [/INST]
### Response:
SELECT music FROM table_name_57 WHERE results = "safe" AND choreographer_s_ = "jason gilkison" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.