text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Venue on October 27, 2005 had a Score of 5-0?
### Context:
CREATE TABLE table_name_65 (venue VARCHAR, score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_65 WHERE score = "5-0" AND date = "october 27, 2005" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Result of the Friendly Competition on October 27, 2005 with a Score of 5-0?
### Context:
CREATE TABLE table_name_47 (result VARCHAR, date VARCHAR, competition VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_47 WHERE competition = "friendly" AND score = "5-0" AND date = "october 27, 2005" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you tell me the total number of React that has the Lane of 5?
### Context:
CREATE TABLE table_name_13 (react VARCHAR, lane VARCHAR) [/INST]
### Response:
SELECT COUNT(react) FROM table_name_13 WHERE lane = 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:
Can you tell me the lowest React that has the Lane of 5?
### Context:
CREATE TABLE table_name_50 (react INTEGER, lane VARCHAR) [/INST]
### Response:
SELECT MIN(react) FROM table_name_50 WHERE lane = 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the winning score of the match with a margin of 3 strokes?
### Context:
CREATE TABLE table_name_39 (winning_score VARCHAR, margin VARCHAR) [/INST]
### Response:
SELECT winning_score FROM table_name_39 WHERE margin = "3 strokes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years was there a peter jackson classic?
### Context:
CREATE TABLE table_name_64 (year VARCHAR, championship VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_64 WHERE championship = "peter jackson classic" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year was the peter jackson classic?
### Context:
CREATE TABLE table_name_36 (year VARCHAR, championship VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_36 WHERE championship = "peter jackson classic" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Date, when Visitor is Toronto?
### Context:
CREATE TABLE table_name_37 (date VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_37 WHERE visitor = "toronto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Record, when Date is November 23?
### Context:
CREATE TABLE table_name_16 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_16 WHERE date = "november 23" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Visitor, when Home is Philadelphia, and when Date is November 18?
### Context:
CREATE TABLE table_name_11 (visitor VARCHAR, home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_11 WHERE home = "philadelphia" AND date = "november 18" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Attendance, when Visitor is Toronto?
### Context:
CREATE TABLE table_name_71 (attendance INTEGER, visitor VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_71 WHERE visitor = "toronto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average year with a rank less than 3?
### Context:
CREATE TABLE table_name_91 (year INTEGER, rank INTEGER) [/INST]
### Response:
SELECT AVG(year) FROM table_name_91 WHERE rank < 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 country got accolades in 2002?
### Context:
CREATE TABLE table_name_46 (country VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_46 WHERE year = 2002 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the accolade for the rank of 497?
### Context:
CREATE TABLE table_name_23 (accolade VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT accolade FROM table_name_23 WHERE rank = 497 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average year for the accolade 100 greatest singles of all time?
### Context:
CREATE TABLE table_name_57 (year INTEGER, accolade VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_57 WHERE accolade = "100 greatest singles of all time" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance during the game against Philadelphia?
### Context:
CREATE TABLE table_name_45 (location_attendance VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_name_45 WHERE team = "philadelphia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 NFL team has a player that came from a college in Washington?
### Context:
CREATE TABLE table_name_33 (nfl_team VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT nfl_team FROM table_name_33 WHERE college = "washington" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does Bobby Micho, who was picked later than 186 others, play on the Broncos team?
### Context:
CREATE TABLE table_name_30 (position VARCHAR, pick__number VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_30 WHERE pick__number > 186 AND player = "bobby micho" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Since, when Transfer Fee is "£ 12m"?
### Context:
CREATE TABLE table_name_48 (since VARCHAR, transfer_fee VARCHAR) [/INST]
### Response:
SELECT since FROM table_name_48 WHERE transfer_fee = "£ 12m" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Name, when Goals is greater than 14, and when Transfer Fee is "Youth System"?
### Context:
CREATE TABLE table_name_49 (name VARCHAR, goals VARCHAR, transfer_fee VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_49 WHERE goals > 14 AND transfer_fee = "youth system" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Nat., when Name is "Fàbregas ( Captain )"?
### Context:
CREATE TABLE table_name_73 (nat VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT nat FROM table_name_73 WHERE name = "fàbregas ( captain )" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Time, when Method is "submission (knees)"?
### Context:
CREATE TABLE table_name_14 (time VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_14 WHERE method = "submission (knees)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Record, when Event is "UFC 40"?
### Context:
CREATE TABLE table_name_57 (record VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_57 WHERE event = "ufc 40" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the track that hosted the Swedish Grand Prix in 1979?
### Context:
CREATE TABLE table_name_79 (track VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT track FROM table_name_79 WHERE year = "1979" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who won the 250 cc in 1987?
### Context:
CREATE TABLE table_name_31 (year VARCHAR) [/INST]
### Response:
SELECT 250 AS _cc FROM table_name_31 WHERE year = "1987" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won the 250 cc in 1985?
### Context:
CREATE TABLE table_name_19 (year VARCHAR) [/INST]
### Response:
SELECT 250 AS _cc FROM table_name_19 WHERE year = "1985" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which opponent has 1-1 as the record?
### Context:
CREATE TABLE table_name_95 (opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_95 WHERE record = "1-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 record has magomedkhan gamzatkhanov as the opponent, and submission as the method?
### Context:
CREATE TABLE table_name_59 (record VARCHAR, opponent VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_59 WHERE opponent = "magomedkhan gamzatkhanov" AND method = "submission" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What round has 3-4 as the record?
### Context:
CREATE TABLE table_name_49 (round VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_49 WHERE record = "3-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 record has loss as the res., 1 for the round, and akira maeda as the opponent?
### Context:
CREATE TABLE table_name_9 (record VARCHAR, opponent VARCHAR, res VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_9 WHERE res = "loss" AND round = "1" AND opponent = "akira maeda" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What record has decision (majority) as the method?
### Context:
CREATE TABLE table_name_48 (record VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_48 WHERE method = "decision (majority)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Agg., when Team 1 is CD Elá Nguema?
### Context:
CREATE TABLE table_name_63 (agg VARCHAR, team_1 VARCHAR) [/INST]
### Response:
SELECT agg FROM table_name_63 WHERE team_1 = "cd elá nguema" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Jim Colbert's score?
### Context:
CREATE TABLE table_name_72 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_72 WHERE player = "jim colbert" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country scored 69-69-73=211?
### Context:
CREATE TABLE table_name_24 (country VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_24 WHERE score = 69 - 69 - 73 = 211 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country does Bobby Nichols play for?
### Context:
CREATE TABLE table_name_70 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_70 WHERE player = "bobby nichols" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
WHAT IS THE TIME/ RETIRED WITH A HONDA MANUFACTURER, GRID 8?
### Context:
CREATE TABLE table_name_44 (time_retired VARCHAR, manufacturer VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_44 WHERE manufacturer = "honda" AND grid = "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 MANUFACTURER WITH 24 LAPS, AND +1.965 TIME/RETIRED?
### Context:
CREATE TABLE table_name_44 (manufacturer VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT manufacturer FROM table_name_44 WHERE laps = "24" AND time_retired = "+1.965" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
WHAT IS THE GRID OF HONDA, WITH 24 LAPS AND Time/Retired of +13.997?
### Context:
CREATE TABLE table_name_22 (grid VARCHAR, time_retired VARCHAR, manufacturer VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT grid FROM table_name_22 WHERE manufacturer = "honda" AND laps = "24" AND time_retired = "+13.997" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 LAPS WITH A GRID OF 26?
### Context:
CREATE TABLE table_name_7 (laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_7 WHERE grid = "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:
WHAT IS THE RIDER WITH A 21 GRID?
### Context:
CREATE TABLE table_name_5 (rider VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT rider FROM table_name_5 WHERE grid = "21" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
WHAT IS THE MANUFACTURER WITH 24 LAPS AND GRID 27?
### Context:
CREATE TABLE table_name_39 (manufacturer VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT manufacturer FROM table_name_39 WHERE laps = "24" AND grid = "27" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the most recent year georgia tech chose a linebacker?
### Context:
CREATE TABLE table_name_3 (a_ VARCHAR, year_ INTEGER, position VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT MAX(year_)[a_] FROM table_name_3 WHERE position = "linebacker" AND college = "georgia tech" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the player from Spain that has a +2 to par?
### Context:
CREATE TABLE table_name_44 (player VARCHAR, to_par VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_44 WHERE to_par = "+2" AND country = "spain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country with a score of 69-71=140.
### Context:
CREATE TABLE table_name_33 (country VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_33 WHERE score = 69 - 71 = 140 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to par for Hale Irwin of the United States?
### Context:
CREATE TABLE table_name_13 (to_par VARCHAR, country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_13 WHERE country = "united states" AND player = "hale irwin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to par for Jim Thorpe in T5 Place?
### Context:
CREATE TABLE table_name_42 (to_par VARCHAR, place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_42 WHERE place = "t5" AND player = "jim thorpe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Jack Nicklaus's score after round 1?
### Context:
CREATE TABLE table_name_97 (score INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MIN(score) FROM table_name_97 WHERE player = "jack nicklaus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Laps have a Time of +39.476, and a Grid larger than 11?
### Context:
CREATE TABLE table_name_15 (laps INTEGER, time VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_15 WHERE time = "+39.476" AND grid > 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Time has Laps smaller than 28, and a Rider of nicky hayden?
### Context:
CREATE TABLE table_name_40 (time VARCHAR, laps VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_40 WHERE laps < 28 AND rider = "nicky hayden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rider has a Grid larger than 6, and has Laps of 28, and a Time of +39.476?
### Context:
CREATE TABLE table_name_42 (rider VARCHAR, time VARCHAR, grid VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT rider FROM table_name_42 WHERE grid > 6 AND laps = 28 AND time = "+39.476" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Bronze has a Total of 4, and a Gold smaller than 1?
### Context:
CREATE TABLE table_name_34 (bronze INTEGER, total VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT MIN(bronze) FROM table_name_34 WHERE total = 4 AND gold < 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 Bronze has a Silver larger than 1, a Total larger than 3, a Nation of turkey, and a Gold smaller than 2?
### Context:
CREATE TABLE table_name_53 (bronze INTEGER, gold VARCHAR, nation VARCHAR, silver VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT SUM(bronze) FROM table_name_53 WHERE silver > 1 AND total > 3 AND nation = "turkey" AND gold < 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:
Which Gold has a Bronze of 1, and a Total smaller than 3?
### Context:
CREATE TABLE table_name_21 (gold INTEGER, bronze VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT AVG(gold) FROM table_name_21 WHERE bronze = 1 AND total < 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:
In what Week is the Opponent the New Orleans Saints?
### Context:
CREATE TABLE table_name_43 (week INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT AVG(week) FROM table_name_43 WHERE opponent = "new orleans saints" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what Weeks is the game against the Tampa Bay Buccaneers with less than 44,506 in Attendance?
### Context:
CREATE TABLE table_name_10 (week INTEGER, opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT SUM(week) FROM table_name_10 WHERE opponent = "tampa bay buccaneers" AND attendance < 44 OFFSET 506 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team was home, when the record was 24–16–6?
### Context:
CREATE TABLE table_name_77 (home VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_77 WHERE record = "24–16–6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was the visitor the Boston Bruins, and the record was 4–0–1?
### Context:
CREATE TABLE table_name_25 (date VARCHAR, visitor VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_25 WHERE visitor = "boston bruins" AND record = "4–0–1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had the most points in game 81?
### Context:
CREATE TABLE table_name_84 (high_points VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_name_84 WHERE game = 81 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which flight had an aircraft of vickers viscount type 794?
### Context:
CREATE TABLE table_name_26 (flight VARCHAR, aircraft VARCHAR) [/INST]
### Response:
SELECT flight FROM table_name_26 WHERE aircraft = "vickers viscount type 794" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 flight had the aircraft avro rj-100?
### Context:
CREATE TABLE table_name_28 (flight VARCHAR, aircraft VARCHAR) [/INST]
### Response:
SELECT flight FROM table_name_28 WHERE aircraft = "avro rj-100" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was the registration of tc-jes?
### Context:
CREATE TABLE table_name_14 (date VARCHAR, registration VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_14 WHERE registration = "tc-jes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fatality was at ankara for the aircraft douglas c-47?
### Context:
CREATE TABLE table_name_60 (fatalities VARCHAR, location VARCHAR, aircraft VARCHAR) [/INST]
### Response:
SELECT fatalities FROM table_name_60 WHERE location = "ankara" AND aircraft = "douglas c-47" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total rounds have the results of win, and n/a as the method?
### Context:
CREATE TABLE table_name_12 (round VARCHAR, res VARCHAR, method VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_12 WHERE res = "win" AND method = "n/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:
How long did the match last in the Rings: Final Capture event?
### Context:
CREATE TABLE table_name_80 (time VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_80 WHERE event = "rings: final capture" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match against Wataru Sakata?
### Context:
CREATE TABLE table_name_55 (res VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT res FROM table_name_55 WHERE opponent = "wataru sakata" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The match against Oleg Taktarov had what result?
### Context:
CREATE TABLE table_name_19 (res VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT res FROM table_name_19 WHERE opponent = "oleg taktarov" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 method when 4-2 was the record?
### Context:
CREATE TABLE table_name_56 (method VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_56 WHERE record = "4-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 was the score for Tie no. 6?
### Context:
CREATE TABLE table_name_27 (score VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_27 WHERE tie_no = "6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the tie against the away team, Leicester City?
### Context:
CREATE TABLE table_name_21 (tie_no VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_21 WHERE away_team = "leicester city" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which round has a time of 3:01?
### Context:
CREATE TABLE table_name_43 (round VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_43 WHERE time = "3:01" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where is the UFC 110 event with 3 rounds located?
### Context:
CREATE TABLE table_name_4 (location VARCHAR, round VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_4 WHERE round = "3" AND event = "ufc 110" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Home team score is on sunday 24 february?
### Context:
CREATE TABLE table_name_74 (home_team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_74 WHERE date = "sunday 24 february" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Crowd has a Home team of st kilda?
### Context:
CREATE TABLE table_name_85 (crowd VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_85 WHERE home_team = "st kilda" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Away team has a Ground of gabba?
### Context:
CREATE TABLE table_name_65 (away_team VARCHAR, ground VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_65 WHERE ground = "gabba" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Crowd has a Away team of sydney?
### Context:
CREATE TABLE table_name_85 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_85 WHERE away_team = "sydney" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 OWGR pts has Dates of may 10-13?
### Context:
CREATE TABLE table_name_37 (owgr_pts INTEGER, dates VARCHAR) [/INST]
### Response:
SELECT SUM(owgr_pts) FROM table_name_37 WHERE dates = "may 10-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:
Which Home has an Attendance larger than 1,858?
### Context:
CREATE TABLE table_name_5 (home VARCHAR, attendance INTEGER) [/INST]
### Response:
SELECT home FROM table_name_5 WHERE attendance > 1 OFFSET 858 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Attendance has a Score of 0:2?
### Context:
CREATE TABLE table_name_29 (attendance INTEGER, score VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_29 WHERE score = "0: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:
Which Date has an Attendance larger than 1,858?
### Context:
CREATE TABLE table_name_32 (date VARCHAR, attendance INTEGER) [/INST]
### Response:
SELECT date FROM table_name_32 WHERE attendance > 1 OFFSET 858 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Home has a Score of 0:2?
### Context:
CREATE TABLE table_name_63 (home VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_63 WHERE score = "0: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:
Which Date has a Location/Attendance of verizon center 7,448?
### Context:
CREATE TABLE table_name_15 (date VARCHAR, location_attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_15 WHERE location_attendance = "verizon center 7,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:
Which Game has a Score of 101-109 (ot)?
### Context:
CREATE TABLE table_name_28 (game INTEGER, score VARCHAR) [/INST]
### Response:
SELECT AVG(game) FROM table_name_28 WHERE score = "101-109 (ot)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player made the highest number of assists during the game played at the FleetCenter, with end score of W 120-87?
### Context:
CREATE TABLE table_name_96 (high_assists VARCHAR, location_attendance VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT high_assists FROM table_name_96 WHERE location_attendance = "fleetcenter" AND score = "w 120-87" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player was the high points scorer during the game with an end score of W 93-85?
### Context:
CREATE TABLE table_name_77 (high_points VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_name_77 WHERE score = "w 93-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:
For the game in which P. Pierce (31) scored the most points, what was the final score?
### Context:
CREATE TABLE table_name_93 (score VARCHAR, high_points VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_93 WHERE high_points = "p. pierce (31)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 made the most assists in Game 2 of this season?
### Context:
CREATE TABLE table_name_4 (high_assists VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT high_assists FROM table_name_4 WHERE game = 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest number of goals when the goals against are more than 58 and played number is more than 30?
### Context:
CREATE TABLE table_name_37 (goals_for INTEGER, goals_against VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT MIN(goals_for) FROM table_name_37 WHERE goals_against > 58 AND played > 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 minimum position when points are 32 and wins are greater than 13?
### Context:
CREATE TABLE table_name_2 (position INTEGER, points VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT MIN(position) FROM table_name_2 WHERE points = 32 AND wins > 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 most draws when goals against are more than 33, losses are 13 and goals for is less than 51?
### Context:
CREATE TABLE table_name_1 (draws INTEGER, goals_for VARCHAR, goals_against VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT MAX(draws) FROM table_name_1 WHERE goals_against > 33 AND losses = 13 AND goals_for < 51 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when wins are fewer than 14 and draws are fewer than 3?
### Context:
CREATE TABLE table_name_81 (position INTEGER, wins VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT AVG(position) FROM table_name_81 WHERE wins < 14 AND draws < 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 club has 15 losses and 14 wins?
### Context:
CREATE TABLE table_name_60 (club VARCHAR, losses VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT club FROM table_name_60 WHERE losses = 15 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:
What home is dated march 19?
### Context:
CREATE TABLE table_name_68 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_68 WHERE date = "march 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:
What home has 46 points?
### Context:
CREATE TABLE table_name_2 (home VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_2 WHERE points = 46 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the date of release for the episode sorted value of 6Y/AA?
### Context:
CREATE TABLE table_name_13 (released VARCHAR, series_sorted VARCHAR) [/INST]
### Response:
SELECT released FROM table_name_13 WHERE series_sorted = "6y/aa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sorted value for the episode released December 2009?
### Context:
CREATE TABLE table_name_91 (series_sorted VARCHAR, released VARCHAR) [/INST]
### Response:
SELECT series_sorted FROM table_name_91 WHERE released = "december 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 round has Team #2 Gomel?
### Context:
CREATE TABLE table_name_76 (round VARCHAR, team__number2 VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_76 WHERE team__number2 = "gomel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 elevator when the Cardinal-Deacon of S. Nicola in Carcere Tulliano was the order and title?
### Context:
CREATE TABLE table_name_56 (elevator VARCHAR, order_and_title VARCHAR) [/INST]
### Response:
SELECT elevator FROM table_name_56 WHERE order_and_title = "cardinal-deacon of s. nicola in carcere tulliano" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The Cardinal-Priest of S. Prassede order and title has who as the elevator?
### Context:
CREATE TABLE table_name_30 (elevator VARCHAR, order_and_title VARCHAR) [/INST]
### Response:
SELECT elevator FROM table_name_30 WHERE order_and_title = "cardinal-priest of s. prassede" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 elevator was Innocent IV what was the nationality?
### Context:
CREATE TABLE table_name_98 (nationality VARCHAR, elevator VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_98 WHERE elevator = "innocent iv" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Giovanni Gaetano Orsini was the elector who was the elevator?
### Context:
CREATE TABLE table_name_63 (elevator VARCHAR, elector VARCHAR) [/INST]
### Response:
SELECT elevator FROM table_name_63 WHERE elector = "giovanni gaetano orsini" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.