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 years did Michigan state university come in third place?
### Context:
CREATE TABLE table_2331549_1 (year VARCHAR, third_place VARCHAR) [/INST]
### Response:
SELECT year FROM table_2331549_1 WHERE third_place = "Michigan State 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:
Who were the champions in years where michigan technological university was in third place?
### Context:
CREATE TABLE table_2331549_1 (champion VARCHAR, third_place VARCHAR) [/INST]
### Response:
SELECT champion FROM table_2331549_1 WHERE third_place = "Michigan Technological 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 was the host city in years where the host school was école de technologie supérieure?
### Context:
CREATE TABLE table_2331549_1 (host_city VARCHAR, host_school VARCHAR) [/INST]
### Response:
SELECT host_city FROM table_2331549_1 WHERE host_school = "École de technologie supérieure" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 came in second place when the champion was south dakota school of mines & technology?
### Context:
CREATE TABLE table_2331549_1 (second_place VARCHAR, champion VARCHAR) [/INST]
### Response:
SELECT second_place FROM table_2331549_1 WHERE champion = "South Dakota School of Mines & Technology" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If the average is 45.65, what is the total number of innings?
### Context:
CREATE TABLE table_23316034_16 (innings VARCHAR, average VARCHAR) [/INST]
### Response:
SELECT COUNT(innings) FROM table_23316034_16 WHERE average = "45.65" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player if the innings is 82?
### Context:
CREATE TABLE table_23316034_16 (player VARCHAR, innings VARCHAR) [/INST]
### Response:
SELECT player FROM table_23316034_16 WHERE innings = 82 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If the innings is 68, what is the average?
### Context:
CREATE TABLE table_23316034_16 (average VARCHAR, innings VARCHAR) [/INST]
### Response:
SELECT average FROM table_23316034_16 WHERE innings = 68 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If the runs is 5028, what is the matches maximum?
### Context:
CREATE TABLE table_23316034_16 (matches INTEGER, runs VARCHAR) [/INST]
### Response:
SELECT MAX(matches) FROM table_23316034_16 WHERE runs = 5028 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the least dismissals for sammy carter
### Context:
CREATE TABLE table_23316034_23 (dismissals INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MIN(dismissals) FROM table_23316034_23 WHERE player = "Sammy Carter" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the number of dismissals for adam gilchrist
### Context:
CREATE TABLE table_23316034_23 (dismissals VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(dismissals) FROM table_23316034_23 WHERE player = "Adam Gilchrist" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the least dismissals for 4 rank
### Context:
CREATE TABLE table_23316034_23 (dismissals INTEGER, rank VARCHAR) [/INST]
### Response:
SELECT MAX(dismissals) FROM table_23316034_23 WHERE rank = 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:
How many top 10 finishes did Ken Bouchard get in the year he won $17,695?
### Context:
CREATE TABLE table_2333416_2 (top_10 VARCHAR, winnings VARCHAR) [/INST]
### Response:
SELECT top_10 FROM table_2333416_2 WHERE winnings = "$17,695" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Ken Bouchard finish in 78th place?
### Context:
CREATE TABLE table_2333416_2 (year VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT year FROM table_2333416_2 WHERE position = "78th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 seasons did Ken Bouchard finish in 38th place?
### Context:
CREATE TABLE table_2333416_2 (year VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_2333416_2 WHERE position = "38th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 greatest number of wins Ken Bouchard had in a season?
### Context:
CREATE TABLE table_2333416_2 (wins INTEGER) [/INST]
### Response:
SELECT MIN(wins) FROM table_2333416_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:
How many races in 2012 season have 0 podiums?
### Context:
CREATE TABLE table_23338693_1 (races VARCHAR, season VARCHAR, podiums VARCHAR) [/INST]
### Response:
SELECT COUNT(races) FROM table_23338693_1 WHERE season = 2012 AND podiums = 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:
How many seasons have motopark team?
### Context:
CREATE TABLE table_23338693_1 (season VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT COUNT(season) FROM table_23338693_1 WHERE team = "Motopark" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which team has nc position for 2010 season?
### Context:
CREATE TABLE table_23338693_1 (team VARCHAR, position VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT team FROM table_23338693_1 WHERE position = "NC" AND season = 2010 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many points have a series of british formula renault 2.0 winter cup and f/laps of 0?
### Context:
CREATE TABLE table_23338693_1 (points VARCHAR, series VARCHAR, f_laps VARCHAR) [/INST]
### Response:
SELECT points FROM table_23338693_1 WHERE series = "British Formula Renault 2.0 Winter Cup" AND f_laps = 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:
If the amount of rebounds is 0, what is the maximum minutes?
### Context:
CREATE TABLE table_23346303_5 (minutes INTEGER, rebounds VARCHAR) [/INST]
### Response:
SELECT MAX(minutes) FROM table_23346303_5 WHERE rebounds = 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 points total number if the assists is 7?
### Context:
CREATE TABLE table_23346303_5 (points VARCHAR, assists VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_23346303_5 WHERE assists = 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:
If the field goals is 26, what are the players names?
### Context:
CREATE TABLE table_23346303_5 (player VARCHAR, field_goals VARCHAR) [/INST]
### Response:
SELECT player FROM table_23346303_5 WHERE field_goals = 26 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If the player is Jasmine Wynne, what is the minimum number of steals?
### Context:
CREATE TABLE table_23346303_5 (steals INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MIN(steals) FROM table_23346303_5 WHERE player = "Jasmine Wynne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 blocks total number if the points is 4?
### Context:
CREATE TABLE table_23346303_5 (blocks VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(blocks) FROM table_23346303_5 WHERE points = 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:
How many steals did jasmine wynne have?
### Context:
CREATE TABLE table_23346303_4 (steals VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT steals FROM table_23346303_4 WHERE player = "Jasmine Wynne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did janae stokes play?
### Context:
CREATE TABLE table_23346303_4 (games_played INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(games_played) FROM table_23346303_4 WHERE player = "Janae Stokes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rebounds did crystal ayers have?
### Context:
CREATE TABLE table_23346303_4 (rebounds VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(rebounds) FROM table_23346303_4 WHERE player = "Crystal Ayers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Orangemen record during game 3?
### Context:
CREATE TABLE table_23346983_1 (record VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT record FROM table_23346983_1 WHERE game = 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 record for the Orangemen when they played against Army?
### Context:
CREATE TABLE table_23346983_1 (record VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT record FROM table_23346983_1 WHERE opponent = "Army" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many points did the Orangemen score in game 1?
### Context:
CREATE TABLE table_23346983_1 (orangemen_points INTEGER, game VARCHAR) [/INST]
### Response:
SELECT MAX(orangemen_points) FROM table_23346983_1 WHERE game = 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 did the Orangemen play against when their record was 5-1?
### Context:
CREATE TABLE table_23346983_1 (opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_23346983_1 WHERE record = "5-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:
Name the location for 2007
### Context:
CREATE TABLE table_23379776_6 (location VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT location FROM table_23379776_6 WHERE year = 2007 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Display the lowest score for candidate Mir-Hossein Mousavi when candidate Mohsen Rezaee scored 44809 votes
### Context:
CREATE TABLE table_23390604_1 (mir_hossein_mousavi INTEGER, mohsen_rezaee VARCHAR) [/INST]
### Response:
SELECT MIN(mir_hossein_mousavi) FROM table_23390604_1 WHERE mohsen_rezaee = 44809 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score for candidate Mohsen Rezaee when candidate mir-hossein mousavi scored 837858 votes?
### Context:
CREATE TABLE table_23390604_1 (mohsen_rezaee INTEGER, mir_hossein_mousavi VARCHAR) [/INST]
### Response:
SELECT MAX(mohsen_rezaee) FROM table_23390604_1 WHERE mir_hossein_mousavi = 837858 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
List all the total scores for the election which had 3072 invalid votes
### Context:
CREATE TABLE table_23390604_1 (total_votes VARCHAR, spoiled_ballots VARCHAR) [/INST]
### Response:
SELECT total_votes FROM table_23390604_1 WHERE spoiled_ballots = 3072 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score of candidate mir-hossein mousavi in the location known as azarbaijan, west?
### Context:
CREATE TABLE table_23390604_1 (mir_hossein_mousavi INTEGER, province VARCHAR) [/INST]
### Response:
SELECT MAX(mir_hossein_mousavi) FROM table_23390604_1 WHERE province = "Azarbaijan, West" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
List all the results for mahmoud ahmadinejad when candidate mir-hossein mousavi obtained 218481 votes.
### Context:
CREATE TABLE table_23390604_1 (mahmoud_ahmadinejad VARCHAR, mir_hossein_mousavi VARCHAR) [/INST]
### Response:
SELECT mahmoud_ahmadinejad FROM table_23390604_1 WHERE mir_hossein_mousavi = 218481 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of votes for mir-hossein mousavi when the number of invalid votes is 5683
### Context:
CREATE TABLE table_23390604_1 (mir_hossein_mousavi INTEGER, spoiled_ballots VARCHAR) [/INST]
### Response:
SELECT MAX(mir_hossein_mousavi) FROM table_23390604_1 WHERE spoiled_ballots = 5683 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name surface for 8 round
### Context:
CREATE TABLE table_23385853_1 (surface VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT surface FROM table_23385853_1 WHERE round = 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:
Name the rally base for 5 round
### Context:
CREATE TABLE table_23385853_1 (rally_base VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT rally_base FROM table_23385853_1 WHERE 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:
Name the rally base for rallye de france alsace
### Context:
CREATE TABLE table_23385853_1 (rally_base VARCHAR, rally_name VARCHAR) [/INST]
### Response:
SELECT rally_base FROM table_23385853_1 WHERE rally_name = "Rallye de France Alsace" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position for a driver with 2 points?
### Context:
CREATE TABLE table_23385853_19 (pos INTEGER, points VARCHAR) [/INST]
### Response:
SELECT MAX(pos) FROM table_23385853_19 WHERE points = 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 driver(s) had over 65 stag wins?
### Context:
CREATE TABLE table_23385853_19 (driver VARCHAR, stage_wins VARCHAR) [/INST]
### Response:
SELECT driver FROM table_23385853_19 WHERE stage_wins = 65 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 power stage wins total number if the wins is 10?
### Context:
CREATE TABLE table_23385853_20 (power_stage_wins VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT COUNT(power_stage_wins) FROM table_23385853_20 WHERE wins = 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:
If finishes is 10, what is the POS minimum?
### Context:
CREATE TABLE table_23385853_20 (pos INTEGER, finishes VARCHAR) [/INST]
### Response:
SELECT MIN(pos) FROM table_23385853_20 WHERE finishes = 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:
What is the finishes maximum number?
### Context:
CREATE TABLE table_23385853_20 (finishes INTEGER) [/INST]
### Response:
SELECT MAX(finishes) FROM table_23385853_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:
When relay is the station type and 5kw is the power kw what is the branding?
### Context:
CREATE TABLE table_23394920_1 (branding VARCHAR, power_kw VARCHAR, station_type VARCHAR) [/INST]
### Response:
SELECT branding FROM table_23394920_1 WHERE power_kw = "5kW" AND station_type = "Relay" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dxrt-tv is the callsign what is the power kw?
### Context:
CREATE TABLE table_23394920_1 (power_kw VARCHAR, callsign VARCHAR) [/INST]
### Response:
SELECT power_kw FROM table_23394920_1 WHERE callsign = "DXRT-TV" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dxzb-tv is the call sign what is the power kw?
### Context:
CREATE TABLE table_23394920_1 (power_kw VARCHAR, callsign VARCHAR) [/INST]
### Response:
SELECT power_kw FROM table_23394920_1 WHERE callsign = "DXZB-TV" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dxcc-tv is the call sign how many station types are there?
### Context:
CREATE TABLE table_23394920_1 (station_type VARCHAR, callsign VARCHAR) [/INST]
### Response:
SELECT COUNT(station_type) FROM table_23394920_1 WHERE callsign = "DXCC-TV" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dwhr-tv is the call sign how many station types are there?
### Context:
CREATE TABLE table_23394920_1 (station_type VARCHAR, callsign VARCHAR) [/INST]
### Response:
SELECT COUNT(station_type) FROM table_23394920_1 WHERE callsign = "DWHR-TV" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Episode 22 originally air?
### Context:
CREATE TABLE table_23392257_4 (original_airdate VARCHAR, _number VARCHAR) [/INST]
### Response:
SELECT COUNT(original_airdate) FROM table_23392257_4 WHERE _number = 22 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What episode premier received 0.680 million viewers?
### Context:
CREATE TABLE table_23392257_4 (original_airdate VARCHAR, viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT original_airdate FROM table_23392257_4 WHERE viewers__millions_ = "0.680" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What timeslot received 0.673 viewers?
### Context:
CREATE TABLE table_23392257_4 (timeslot VARCHAR, viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT timeslot FROM table_23392257_4 WHERE viewers__millions_ = "0.673" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 original air date of the episode that was directed by David Paymer?
### Context:
CREATE TABLE table_23399481_2 (original_air_date VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_23399481_2 WHERE directed_by = "David Paymer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If the amount of U.S. viewers is 2.14 million, who was the episode directed by?
### Context:
CREATE TABLE table_23399481_2 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_23399481_2 WHERE us_viewers__in_millions_ = "2.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:
If the amount of U.S. viewers is 2.05 milliom, who was the episode directed by?
### Context:
CREATE TABLE table_23399481_2 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_23399481_2 WHERE us_viewers__in_millions_ = "2.05" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 director name is the U.S. viewers is 2.22 million?
### Context:
CREATE TABLE table_23399481_2 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_23399481_2 WHERE us_viewers__in_millions_ = "2.22" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many million viewers watched the episode that had a 2.6/7 rating/share (18-49)
### Context:
CREATE TABLE table_23397386_2 (viewers__millions_ VARCHAR, rating VARCHAR) [/INST]
### Response:
SELECT viewers__millions_ FROM table_23397386_2 WHERE rating / SHARE(18 AS –49) = 2.6 / 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many million viewers watched the episode that aired on March 28, 2010?
### Context:
CREATE TABLE table_23397386_2 (viewers__millions_ VARCHAR, airdate VARCHAR) [/INST]
### Response:
SELECT viewers__millions_ FROM table_23397386_2 WHERE airdate = "March 28, 2010" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rankings (timeslot) were there for the episode that aired on May 2, 2010?
### Context:
CREATE TABLE table_23397386_2 (rank__timeslot_ VARCHAR, airdate VARCHAR) [/INST]
### Response:
SELECT COUNT(rank__timeslot_) FROM table_23397386_2 WHERE airdate = "May 2, 2010" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What episode had 1.42 million viewers?
### Context:
CREATE TABLE table_23399481_3 (series__number VARCHAR, us_viewers__in_millions_ VARCHAR) [/INST]
### Response:
SELECT series__number FROM table_23399481_3 WHERE us_viewers__in_millions_ = "1.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 original air date for episode 4?
### Context:
CREATE TABLE table_23399481_3 (original_air_date VARCHAR, season__number VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_23399481_3 WHERE season__number = 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 team uses lola t92/00/ buick for their chassis/engine?
### Context:
CREATE TABLE table_23391714_1 (team VARCHAR, chassis_engine VARCHAR) [/INST]
### Response:
SELECT team FROM table_23391714_1 WHERE chassis_engine = "Lola T92/00/ Buick" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When the pos equals 18 what is the max amount of points?
### Context:
CREATE TABLE table_23391714_1 (points INTEGER, pos VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_23391714_1 WHERE pos = 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many drivers used lola t92/00/ buick for their chassis/engine?
### Context:
CREATE TABLE table_23391714_1 (no VARCHAR, chassis_engine VARCHAR) [/INST]
### Response:
SELECT COUNT(no) FROM table_23391714_1 WHERE chassis_engine = "Lola T92/00/ Buick" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the series number of the episode with a season number 5, written by Bernie Ancheta?
### Context:
CREATE TABLE table_23403578_3 (no_in_series INTEGER, written_by VARCHAR, no_in_season VARCHAR) [/INST]
### Response:
SELECT MIN(no_in_series) FROM table_23403578_3 WHERE written_by = "Bernie Ancheta" AND no_in_season = 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:
When did the episode with production code 213 air for the first time?
### Context:
CREATE TABLE table_23403578_3 (original_air_date VARCHAR, prod_code VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_23403578_3 WHERE prod_code = "213" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 directed the episode with production code 208?
### Context:
CREATE TABLE table_23403578_3 (directed_by VARCHAR, prod_code VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_23403578_3 WHERE prod_code = "208" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 values for 24 mountains when the bearing or degrees is 67.6 - 82.5 82.6 - 97.5 97.6 - 112.5?
### Context:
CREATE TABLE table_23406517_2 (bearing___degrees VARCHAR) [/INST]
### Response:
SELECT COUNT(24 AS _mountains) FROM table_23406517_2 WHERE bearing___degrees = "67.6 - 82.5 82.6 - 97.5 97.6 - 112.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 every trigram when direction is Northwest?
### Context:
CREATE TABLE table_23406517_2 (trigram VARCHAR, direction VARCHAR) [/INST]
### Response:
SELECT trigram FROM table_23406517_2 WHERE direction = "Northwest" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all values for 24 mountains when direction is Northeast?
### Context:
CREATE TABLE table_23406517_2 (direction VARCHAR) [/INST]
### Response:
SELECT 24 AS _mountains FROM table_23406517_2 WHERE direction = "Northeast" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 career titles does roy emerson have?
### Context:
CREATE TABLE table_23408094_14 (total_career_titles VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT total_career_titles FROM table_23408094_14 WHERE player = "Roy Emerson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total career titles of the player who led for 5 years?
### Context:
CREATE TABLE table_23408094_14 (total_career_titles VARCHAR, span_of_years_led VARCHAR) [/INST]
### Response:
SELECT COUNT(total_career_titles) FROM table_23408094_14 WHERE span_of_years_led = 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:
Of the players whose lead began at the australian championships, what was the shortest span of years led?
### Context:
CREATE TABLE table_23408094_14 (span_of_years_led INTEGER, tournament_at_which_lead_began VARCHAR) [/INST]
### Response:
SELECT MIN(span_of_years_led) FROM table_23408094_14 WHERE tournament_at_which_lead_began = "Australian Championships" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
At which tournament did william renshaw begin his lead when he had won 7 titles?
### Context:
CREATE TABLE table_23408094_14 (tournament_at_which_lead_began VARCHAR, player VARCHAR, titles_won_at_point_of_lead VARCHAR) [/INST]
### Response:
SELECT tournament_at_which_lead_began FROM table_23408094_14 WHERE player = "William Renshaw" AND titles_won_at_point_of_lead = 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:
At what tournament did pete sampras begin his lead?
### Context:
CREATE TABLE table_23408094_14 (tournament_at_which_lead_began VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT tournament_at_which_lead_began FROM table_23408094_14 WHERE player = "Pete Sampras" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 are all directors when Sherwood Schwartz is the writer?
### Context:
CREATE TABLE table_2342078_2 (directed_by VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_2342078_2 WHERE written_by = "Sherwood Schwartz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode# with the writer Paul West?
### Context:
CREATE TABLE table_2342078_2 (episode__number INTEGER, written_by VARCHAR) [/INST]
### Response:
SELECT MAX(episode__number) FROM table_2342078_2 WHERE written_by = "Paul West" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 every production code for episode # 13?
### Context:
CREATE TABLE table_2342078_2 (production_code__order_they_were_made___number VARCHAR, episode__number VARCHAR) [/INST]
### Response:
SELECT production_code__order_they_were_made___number FROM table_2342078_2 WHERE episode__number = 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest episode number written by Harry Winkler?
### Context:
CREATE TABLE table_2342078_4 (episode__number INTEGER, written_by VARCHAR) [/INST]
### Response:
SELECT MAX(episode__number) FROM table_2342078_4 WHERE written_by = "Harry Winkler" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
List all directors when Brad Radnitz was the writer?
### Context:
CREATE TABLE table_2342078_4 (directed_by VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_2342078_4 WHERE written_by = "Brad Radnitz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the airdate for the episode written by howard ostroff
### Context:
CREATE TABLE table_2342078_6 (original_airdate VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT original_airdate FROM table_2342078_6 WHERE written_by = "Howard Ostroff" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the production code # for episode 109
### Context:
CREATE TABLE table_2342078_6 (production_code__number VARCHAR, episode__number VARCHAR) [/INST]
### Response:
SELECT COUNT(production_code__number) FROM table_2342078_6 WHERE episode__number = 109 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name who drected the episode written by george tibbles
### Context:
CREATE TABLE table_2342078_6 (directed_by VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_2342078_6 WHERE written_by = "George Tibbles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the title of the episode written by Harry Winkler?
### Context:
CREATE TABLE table_2342078_5 (title VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT title FROM table_2342078_5 WHERE written_by = "Harry Winkler" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
During the 1st Place (Won the Series), who was the act?
### Context:
CREATE TABLE table_23429629_4 (act VARCHAR, place_came VARCHAR) [/INST]
### Response:
SELECT act FROM table_23429629_4 WHERE place_came = "1st Place (Won the Series)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
During the act, Playing on Glasses, what was the semi-final?
### Context:
CREATE TABLE table_23429629_4 (semi_final VARCHAR, act VARCHAR) [/INST]
### Response:
SELECT semi_final FROM table_23429629_4 WHERE act = "Playing on Glasses" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the final place came for the performance of Erlend Bratland?
### Context:
CREATE TABLE table_23429629_4 (place_came VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT place_came FROM table_23429629_4 WHERE artist = "Erlend Bratland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 deaths per year have 66.3 as the life expectancy females?
### Context:
CREATE TABLE table_23423_2 (deaths_per_year VARCHAR, life_expectancy_females VARCHAR) [/INST]
### Response:
SELECT deaths_per_year FROM table_23423_2 WHERE life_expectancy_females = "66.3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which leagues entered in rounds where there were 16 winners from the previous round?
### Context:
CREATE TABLE table_23449363_1 (leagues_entering_at_this_round VARCHAR, winners_from_previous_round VARCHAR) [/INST]
### Response:
SELECT leagues_entering_at_this_round FROM table_23449363_1 WHERE winners_from_previous_round = "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:
Which rounds had 32 clubs involved?
### Context:
CREATE TABLE table_23449363_1 (round VARCHAR, clubs_involved VARCHAR) [/INST]
### Response:
SELECT round FROM table_23449363_1 WHERE clubs_involved = 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 round had 24 new entries?
### Context:
CREATE TABLE table_23449363_1 (round VARCHAR, new_entries_this_round VARCHAR) [/INST]
### Response:
SELECT round FROM table_23449363_1 WHERE new_entries_this_round = "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 leagues entered an extra preliminary round?
### Context:
CREATE TABLE table_23449363_1 (leagues_entering_at_this_round VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT leagues_entering_at_this_round FROM table_23449363_1 WHERE round = "Extra Preliminary round" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the location of buffalo sabres
### Context:
CREATE TABLE table_23453931_5 (location VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT location FROM table_23453931_5 WHERE opponent = "Buffalo Sabres" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the game for 13–17–9
### Context:
CREATE TABLE table_23453931_5 (game VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT game FROM table_23453931_5 WHERE record = "13–17–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:
Name the score for december 19
### Context:
CREATE TABLE table_23453931_5 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_23453931_5 WHERE date = "December 19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the date for new york islanders
### Context:
CREATE TABLE table_23453931_5 (date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_23453931_5 WHERE opponent = "New York Islanders" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the opponents for december 3
### Context:
CREATE TABLE table_23453931_5 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(opponent) FROM table_23453931_5 WHERE date = "December 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:
How many games did they play the carolina hurricanes?
### Context:
CREATE TABLE table_23453931_8 (game VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT COUNT(game) FROM table_23453931_8 WHERE opponent = "Carolina Hurricanes" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.