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:
Who did the housemate that nominated Carol Roopali in week 1 nominate in week 8?
### Context:
CREATE TABLE table_name_52 (week_8 VARCHAR, week_1 VARCHAR) [/INST]
### Response:
SELECT week_8 FROM table_name_52 WHERE week_1 = "carol roopali" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 IHSAA class of Centerville, which plays IHSAA class AA football?
### Context:
CREATE TABLE table_name_92 (ihsaa_class VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT ihsaa_class FROM table_name_92 WHERE ihsaa_football_class = "aa" AND school = "centerville" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Winchester Community school, which plays IHSAA class AA football, is located where?
### Context:
CREATE TABLE table_name_99 (location VARCHAR, ihsaa_football_class VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_99 WHERE ihsaa_football_class = "aa" AND school = "winchester community" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 IHSAA class of the school with less than 400 students and a mascot of the Tigers?
### Context:
CREATE TABLE table_name_51 (ihsaa_class VARCHAR, size VARCHAR, mascot VARCHAR) [/INST]
### Response:
SELECT ihsaa_class FROM table_name_51 WHERE size < 400 AND mascot = "tigers" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What county has a school with less than 301 students and plays IHSAA class A football?
### Context:
CREATE TABLE table_name_81 (county VARCHAR, ihsaa_football_class VARCHAR, size VARCHAR) [/INST]
### Response:
SELECT county FROM table_name_81 WHERE ihsaa_football_class = "a" AND size < 301 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game when the score is 102-104?
### Context:
CREATE TABLE table_name_53 (game INTEGER, score VARCHAR) [/INST]
### Response:
SELECT MIN(game) FROM table_name_53 WHERE score = "102-104" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game 4?
### Context:
CREATE TABLE table_name_49 (score VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_49 WHERE game = 4 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the series for game 4?
### Context:
CREATE TABLE table_name_88 (series VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT series FROM table_name_88 WHERE game = 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 Pendle has a Burnley smaller than 0?
### Context:
CREATE TABLE table_name_47 (pendle INTEGER, burnley INTEGER) [/INST]
### Response:
SELECT SUM(pendle) FROM table_name_47 WHERE burnley < 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 much Rossendale has a Fylde smaller than 0?
### Context:
CREATE TABLE table_name_95 (rossendale VARCHAR, fylde INTEGER) [/INST]
### Response:
SELECT COUNT(rossendale) FROM table_name_95 WHERE fylde < 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 much Hyndburn has a Fylde larger than 3?
### Context:
CREATE TABLE table_name_52 (hyndburn INTEGER, fylde INTEGER) [/INST]
### Response:
SELECT SUM(hyndburn) FROM table_name_52 WHERE fylde > 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 much Burnley has a Fylde smaller than 1, and a Rossendale larger than 0?
### Context:
CREATE TABLE table_name_97 (burnley INTEGER, fylde VARCHAR, rossendale VARCHAR) [/INST]
### Response:
SELECT SUM(burnley) FROM table_name_97 WHERE fylde < 1 AND rossendale > 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 are the years that have un posto al sole as the soap opera, with riccardo polizzy carbonelli as the actor?
### Context:
CREATE TABLE table_name_45 (years VARCHAR, soap_opera VARCHAR, actor VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_45 WHERE soap_opera = "un posto al sole" AND actor = "riccardo polizzy carbonelli" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What years have a duration of 18 years, and patrizio rispo as the actor?
### Context:
CREATE TABLE table_name_26 (years VARCHAR, duration VARCHAR, actor VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_26 WHERE duration = "18 years" AND actor = "patrizio rispo" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 years that have a duration of 15 years and giulia poggi as the character?
### Context:
CREATE TABLE table_name_33 (years VARCHAR, duration VARCHAR, character VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_33 WHERE duration = "15 years" AND character = "giulia poggi" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What years have claudia ruffo as the actor?
### Context:
CREATE TABLE table_name_18 (years VARCHAR, actor VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_18 WHERE actor = "claudia ruffo" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 duration that has pietro genuardi as the actor?
### Context:
CREATE TABLE table_name_42 (duration VARCHAR, actor VARCHAR) [/INST]
### Response:
SELECT duration FROM table_name_42 WHERE actor = "pietro genuardi" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 soap opera that has a duration of 13 years, with marina giulia cavalli as the actor?
### Context:
CREATE TABLE table_name_84 (soap_opera VARCHAR, duration VARCHAR, actor VARCHAR) [/INST]
### Response:
SELECT soap_opera FROM table_name_84 WHERE duration = "13 years" AND actor = "marina giulia cavalli" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance for December 14, 1958 after week 12?
### Context:
CREATE TABLE table_name_76 (attendance INTEGER, date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_76 WHERE date = "december 14, 1958" AND week > 12 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total for the week in the game against the Chicago Bears
### Context:
CREATE TABLE table_name_38 (week VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT COUNT(week) FROM table_name_38 WHERE opponent = "chicago bears" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for December 14, 1958 for after week 12
### Context:
CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_40 WHERE date = "december 14, 1958" AND week > 12 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Outcome of the Match played after 2003 with a Score of 6β0, 6β3?
### Context:
CREATE TABLE table_name_88 (outcome VARCHAR, year VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_88 WHERE year > 2003 AND score = "6β0, 6β3" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Outcome of the match with a Score of 6β1, 6β1?
### Context:
CREATE TABLE table_name_22 (outcome VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_22 WHERE score = "6β1, 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:
Who has rank 5?
### Context:
CREATE TABLE table_name_23 (name VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_23 WHERE rank = 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 nationality has rank 4?
### Context:
CREATE TABLE table_name_90 (nationality VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_90 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:
What title was used in the nomination of Matrimonio All'Italiana?
### Context:
CREATE TABLE table_name_5 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT film_title_used_in_nomination FROM table_name_5 WHERE original_title = "matrimonio all'italiana" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What language was the film Pelle Erobreren, which received the best actor nomination, in?
### Context:
CREATE TABLE table_name_11 (language VARCHAR, category VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT language FROM table_name_11 WHERE category = "best actor" AND original_title = "pelle erobreren" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What title was used in the nomination of the Spanish language film Traffic?
### Context:
CREATE TABLE table_name_43 (film_title_used_in_nomination VARCHAR, language VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT film_title_used_in_nomination FROM table_name_43 WHERE language = "spanish" AND original_title = "traffic" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What title was used in the nomination of Una Giornata Particolare?
### Context:
CREATE TABLE table_name_20 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT film_title_used_in_nomination FROM table_name_20 WHERE original_title = "una giornata particolare" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position of back, later than 1964, and a Test debut of 1st rl test v new zealand?
### Context:
CREATE TABLE table_name_98 (date VARCHAR, test_debut VARCHAR, position VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_98 WHERE position = "back" AND year > 1964 AND test_debut = "1st rl test v new zealand" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earlier than 1907, with a cross-code debut of inaugural rl test v new zealand, and a test debut of inaugural ru test v new zealand?
### Context:
CREATE TABLE table_name_92 (position VARCHAR, test_debut VARCHAR, year VARCHAR, cross_code_debut VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_92 WHERE year < 1907 AND cross_code_debut = "inaugural rl test v new zealand" AND test_debut = "inaugural ru test v new zealand" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cross-code debut later than 1958 for Dick Thornett?
### Context:
CREATE TABLE table_name_87 (cross_code_debut VARCHAR, year VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT cross_code_debut FROM table_name_87 WHERE year > 1958 AND player = "dick thornett" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position has a Cross-code debut of 1st ru test v ireland?
### Context:
CREATE TABLE table_name_79 (position VARCHAR, cross_code_debut VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_79 WHERE cross_code_debut = "1st ru test v ireland" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time for the match with away team Shatin?
### Context:
CREATE TABLE table_name_4 (time VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_4 WHERE away_team = "shatin" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time for the match with away team Convoy Sun Hei Team A?
### Context:
CREATE TABLE table_name_47 (time VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_47 WHERE away_team = "convoy sun hei team 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 was the away team for the match that had a time of 18:30?
### Context:
CREATE TABLE table_name_45 (away_team VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_45 WHERE time = "18:30" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the time for the match with away team Mutual Team B?
### Context:
CREATE TABLE table_name_28 (time VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_28 WHERE away_team = "mutual team b" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time for the match that had a a home team of HKSSF?
### Context:
CREATE TABLE table_name_17 (time VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_17 WHERE home_team = "hkssf" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 people attended on december 26, 1982?
### Context:
CREATE TABLE table_name_78 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_78 WHERE date = "december 26, 1982" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Byes have Wins smaller than 11, and a Wimmera FL of minyip murtoa, and Losses smaller than 6?
### Context:
CREATE TABLE table_name_12 (byes VARCHAR, losses VARCHAR, wins VARCHAR, wimmera_fl VARCHAR) [/INST]
### Response:
SELECT COUNT(byes) FROM table_name_12 WHERE wins < 11 AND wimmera_fl = "minyip murtoa" AND losses < 6 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Losses have an Against smaller than 1018, and Wins smaller than 14?
### Context:
CREATE TABLE table_name_42 (losses INTEGER, against VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT AVG(losses) FROM table_name_42 WHERE against < 1018 AND wins < 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:
Which Byes have an Against larger than 1018, and a Wimmera FL of horsham diggers?
### Context:
CREATE TABLE table_name_56 (byes INTEGER, against VARCHAR, wimmera_fl VARCHAR) [/INST]
### Response:
SELECT MIN(byes) FROM table_name_56 WHERE against > 1018 AND wimmera_fl = "horsham diggers" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Losses have a Wimmera FL of minyip murtoa?
### Context:
CREATE TABLE table_name_35 (losses INTEGER, wimmera_fl VARCHAR) [/INST]
### Response:
SELECT AVG(losses) FROM table_name_35 WHERE wimmera_fl = "minyip murtoa" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Against has Losses smaller than 5, and a Wimmera FL of warrack eagles, and Draws smaller than 0?
### Context:
CREATE TABLE table_name_68 (against INTEGER, draws VARCHAR, losses VARCHAR, wimmera_fl VARCHAR) [/INST]
### Response:
SELECT AVG(against) FROM table_name_68 WHERE losses < 5 AND wimmera_fl = "warrack eagles" AND draws < 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:
Which country has Spence in the name section?
### Context:
CREATE TABLE table_name_6 (country VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_6 WHERE name = "spence" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country has the status of transferred, moving to of released, and Solano as the listed name?
### Context:
CREATE TABLE table_name_85 (country VARCHAR, name VARCHAR, status VARCHAR, moving_to VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_85 WHERE status = "transferred" AND moving_to = "released" AND name = "solano" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the transfer fee for the country that has the name McCartney listed?
### Context:
CREATE TABLE table_name_46 (transfer_fee VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT transfer_fee FROM table_name_46 WHERE name = "mccartney" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed for the country that has a status of loaned and a moving to listed as leyton orient?
### Context:
CREATE TABLE table_name_57 (name VARCHAR, status VARCHAR, moving_to VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_57 WHERE status = "loaned" AND moving_to = "leyton orient" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the transfer fee for the country of Nir?
### Context:
CREATE TABLE table_name_53 (transfer_fee VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT transfer_fee FROM table_name_53 WHERE country = "nir" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the fastest lap when adam christodoulou was the winning driver and had the pole position?
### Context:
CREATE TABLE table_name_50 (fastest_lap VARCHAR, winning_driver VARCHAR, pole_position VARCHAR) [/INST]
### Response:
SELECT fastest_lap FROM table_name_50 WHERE winning_driver = "adam christodoulou" AND pole_position = "adam christodoulou" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the circuit, snetterton, when riki christodoulou had the fastest lap?
### Context:
CREATE TABLE table_name_10 (date VARCHAR, circuit VARCHAR, fastest_lap VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_10 WHERE circuit = "snetterton" AND fastest_lap = "riki christodoulou" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
who had the pole position at rockingham circuit with adam christodoulou having the fastest lap?
### Context:
CREATE TABLE table_name_10 (pole_position VARCHAR, fastest_lap VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT pole_position FROM table_name_10 WHERE fastest_lap = "adam christodoulou" AND circuit = "rockingham" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What bonus points have 448 as the points against?
### Context:
CREATE TABLE table_name_47 (bonus_points VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT bonus_points FROM table_name_47 WHERE points_against = "448" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What points for have 30 as the game, and 73 as the total points?
### Context:
CREATE TABLE table_name_92 (points_for VARCHAR, games VARCHAR, total_points VARCHAR) [/INST]
### Response:
SELECT points_for FROM table_name_92 WHERE games = "30" AND total_points = "73" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What drawn has 416 as the points for and 533 as the points against?
### Context:
CREATE TABLE table_name_49 (drawn VARCHAR, points_for VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT drawn FROM table_name_49 WHERE points_for = "416" AND points_against = "533" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What match points have 755 as the points against?
### Context:
CREATE TABLE table_name_8 (match_points VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT match_points FROM table_name_8 WHERE points_against = "755" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What games have colomiers as the club?
### Context:
CREATE TABLE table_name_47 (games VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT games FROM table_name_47 WHERE club = "colomiers" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lost has 84 as the match points?
### Context:
CREATE TABLE table_name_52 (lost VARCHAR, match_points VARCHAR) [/INST]
### Response:
SELECT lost FROM table_name_52 WHERE match_points = "84" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constituents does udaipura have?
### Context:
CREATE TABLE table_name_37 (constituency_number VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT constituency_number FROM table_name_37 WHERE name = "udaipura" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What lane was Henrique Barbosa in?
### Context:
CREATE TABLE table_name_14 (lane VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT COUNT(lane) FROM table_name_14 WHERE name = "henrique barbosa" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What game was before 2010 and was a role-playing game?
### Context:
CREATE TABLE table_name_82 (game VARCHAR, year VARCHAR, genre VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_82 WHERE year < 2010 AND genre = "role-playing game" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 platform of Red Dead Redemption?
### Context:
CREATE TABLE table_name_11 (platform_s_ VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT platform_s_ FROM table_name_11 WHERE game = "red dead redemption" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 developer of Wii?
### Context:
CREATE TABLE table_name_50 (developer_s_ VARCHAR, platform_s_ VARCHAR) [/INST]
### Response:
SELECT developer_s_ FROM table_name_50 WHERE platform_s_ = "wii" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year was The Walking Dead?
### Context:
CREATE TABLE table_name_95 (year VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_95 WHERE game = "the walking dead" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 platform when the developer was Telltale Games?
### Context:
CREATE TABLE table_name_43 (platform_s_ VARCHAR, developer_s_ VARCHAR) [/INST]
### Response:
SELECT platform_s_ FROM table_name_43 WHERE developer_s_ = "telltale games" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game of developer Rockstar Games?
### Context:
CREATE TABLE table_name_71 (game VARCHAR, developer_s_ VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_71 WHERE developer_s_ = "rockstar games" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How much Elevation (m) has a Prominence (m) larger than 2,876?
### Context:
CREATE TABLE table_name_18 (elevation__m_ VARCHAR, prominence__m_ INTEGER) [/INST]
### Response:
SELECT COUNT(elevation__m_) FROM table_name_18 WHERE prominence__m_ > 2 OFFSET 876 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was millwall the home team?
### Context:
CREATE TABLE table_name_11 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_11 WHERE home_team = "millwall" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Arsenal was the away team?
### Context:
CREATE TABLE table_name_49 (score VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_49 WHERE away_team = "arsenal" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team had a Score of 2β0?
### Context:
CREATE TABLE table_name_53 (away_team VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_53 WHERE score = "2β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:
When was Arsenal was the away team?
### Context:
CREATE TABLE table_name_17 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_17 WHERE away_team = "arsenal" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 date released when there was 9.7% of Green communist?
### Context:
CREATE TABLE table_name_53 (date_released VARCHAR, green_communist VARCHAR) [/INST]
### Response:
SELECT date_released FROM table_name_53 WHERE green_communist = "9.7%" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the green communist when Euroteste/JN is the polling Institute?
### Context:
CREATE TABLE table_name_41 (green_communist VARCHAR, polling_institute VARCHAR) [/INST]
### Response:
SELECT green_communist FROM table_name_41 WHERE polling_institute = "euroteste/jn" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 silver medals when the total is more than 2 medals, and with a rank of total, and the number of gold medals is greater than 44?
### Context:
CREATE TABLE table_name_78 (silver INTEGER, gold VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MAX(silver) FROM table_name_78 WHERE "total" > 2 AND rank = "total" AND gold > 44 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the fewest gold medals when there is 0 bronze medals, and the rank is 19, and silver medals are less than 1?
### Context:
CREATE TABLE table_name_16 (gold INTEGER, silver VARCHAR, bronze VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(gold) FROM table_name_16 WHERE bronze = 0 AND rank = "19" 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 largest amount of bronze medals when the silver medals are less than 1, and Belgium (BEL) is the nation, and the gold medals are less than 0?
### Context:
CREATE TABLE table_name_18 (bronze INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT MAX(bronze) FROM table_name_18 WHERE silver < 1 AND nation = "belgium (bel)" 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:
With silver medals less than 1, and total medals less than 2, what is the most bronze medals?
### Context:
CREATE TABLE table_name_83 (bronze INTEGER, silver VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MAX(bronze) FROM table_name_83 WHERE silver < 1 AND total < 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:
Can you tell me the total number of Byes that has the Wins of 14, and the Losses larger than 2?
### Context:
CREATE TABLE table_name_80 (byes VARCHAR, wins VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT COUNT(byes) FROM table_name_80 WHERE wins = 14 AND losses > 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:
Can you tell me the average Wins that has the Against of 1132, and the Losses smaller than 7?
### Context:
CREATE TABLE table_name_11 (wins INTEGER, against VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT AVG(wins) FROM table_name_11 WHERE against = 1132 AND losses < 7 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date for the game that had a Location/Attendance of the spectrum?
### Context:
CREATE TABLE table_name_92 (date VARCHAR, location_attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_92 WHERE location_attendance = "the spectrum" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent when they played at the Skydome?
### Context:
CREATE TABLE table_name_53 (opponent VARCHAR, location_attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_53 WHERE location_attendance = "skydome" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record on January 17?
### Context:
CREATE TABLE table_name_61 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_61 WHERE date = "january 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 was the location and attendance when the record was 19-17?
### Context:
CREATE TABLE table_name_69 (location_attendance VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_name_69 WHERE record = "19-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 city joined the Independents conference after 1963?
### Context:
CREATE TABLE table_name_26 (city VARCHAR, year_joined VARCHAR, conference_joined VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_26 WHERE year_joined > 1963 AND conference_joined = "independents" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the year that the Gary team with mascot of the Tornado joined?
### Context:
CREATE TABLE table_name_94 (year_joined INTEGER, city VARCHAR, mascot VARCHAR) [/INST]
### Response:
SELECT MIN(year_joined) FROM table_name_94 WHERE city = "gary" AND mascot = "tornado" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 previous conference for the team with the Governors as their mascot that joined the Indiana Lake Shore conference?
### Context:
CREATE TABLE table_name_88 (previous_conference VARCHAR, conference_joined VARCHAR, mascot VARCHAR) [/INST]
### Response:
SELECT previous_conference FROM table_name_88 WHERE conference_joined = "indiana lake shore" AND mascot = "governors" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the year that the Roughriders left the conference?
### Context:
CREATE TABLE table_name_25 (year_left INTEGER, mascot VARCHAR) [/INST]
### Response:
SELECT MAX(year_left) FROM table_name_25 WHERE mascot = "roughriders" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What conference did the city of Valparaiso join?
### Context:
CREATE TABLE table_name_5 (conference_joined VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT conference_joined FROM table_name_5 WHERE city = "valparaiso" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 duration of the character Bartha Zsolt?
### Context:
CREATE TABLE table_name_93 (duration VARCHAR, character VARCHAR) [/INST]
### Response:
SELECT duration FROM table_name_93 WHERE character = "bartha zsolt" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 losses have jake sharp as the name, with a long less than 30?
### Context:
CREATE TABLE table_name_81 (loss VARCHAR, name VARCHAR, long VARCHAR) [/INST]
### Response:
SELECT COUNT(loss) FROM table_name_81 WHERE name = "jake sharp" AND long < 30 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average long that has 1581 as a gain, with a loss less than 308?
### Context:
CREATE TABLE table_name_72 (long INTEGER, gain VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT AVG(long) FROM table_name_72 WHERE gain = 1581 AND loss < 308 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gains have a long greater than 8, with avg/g of 124.9?
### Context:
CREATE TABLE table_name_27 (gain INTEGER, long VARCHAR, avg_g VARCHAR) [/INST]
### Response:
SELECT SUM(gain) FROM table_name_27 WHERE long > 8 AND avg_g = 124.9 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many longs have a gain less than 379, and 0.8 as an avg/g?
### Context:
CREATE TABLE table_name_11 (long INTEGER, gain VARCHAR, avg_g VARCHAR) [/INST]
### Response:
SELECT SUM(long) FROM table_name_11 WHERE gain < 379 AND avg_g = 0.8 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest gain that has toben opurum as the name, with an avg/g less than 54.1?
### Context:
CREATE TABLE table_name_35 (gain INTEGER, name VARCHAR, avg_g VARCHAR) [/INST]
### Response:
SELECT MIN(gain) FROM table_name_35 WHERE name = "toben opurum" AND avg_g < 54.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:
Which Driver has a Grid smaller than 17, and Points larger than 0, and a Lapse of 87, and a Time/Retired of 1:48:11.023?
### Context:
CREATE TABLE table_name_72 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_72 WHERE grid < 17 AND points > 0 AND laps = 87 AND time_retired = "1:48:11.023" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points have a Grid larger than 7, and a Driver of alex tagliani, and a Lapse smaller than 85?
### Context:
CREATE TABLE table_name_56 (points INTEGER, laps VARCHAR, grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_56 WHERE grid > 7 AND driver = "alex tagliani" AND laps < 85 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 uefa euro 2008 qualification as the competition?
### Context:
CREATE TABLE table_name_55 (date VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_55 WHERE competition = "uefa euro 2008 qualification" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 friendly as the competition, with pretoria, South Africa as the venue?
### Context:
CREATE TABLE table_name_79 (date VARCHAR, competition VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_79 WHERE competition = "friendly" AND venue = "pretoria, south africa" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final score of the American Cup competition before 2009?
### Context:
CREATE TABLE table_name_15 (score_final INTEGER, competition_description VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT MIN(score_final) FROM table_name_15 WHERE competition_description = "american cup" AND year < 2009 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the game before week 7 against BYE?
### Context:
CREATE TABLE table_name_95 (result VARCHAR, week VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_95 WHERE week < 7 AND opponent = "bye" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.