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:
When Team Hyde United had more than 59 Goals For and fewer than 15 Drawn, what was the Lost?
### Context:
CREATE TABLE table_name_51 (lost VARCHAR, team VARCHAR, goals_for VARCHAR, drawn VARCHAR) [/INST]
### Response:
SELECT lost FROM table_name_51 WHERE goals_for > 59 AND drawn < 15 AND team = "hyde united" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Lost for Team Matlock Town when the Goals Against is higher than 66?
### Context:
CREATE TABLE table_name_79 (lost INTEGER, team VARCHAR, goals_against VARCHAR) [/INST]
### Response:
SELECT AVG(lost) FROM table_name_79 WHERE team = "matlock town" AND goals_against > 66 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance on October 17?
### Context:
CREATE TABLE table_name_76 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_76 WHERE date = "october 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:
Where was the attendance more than 57,347?
### Context:
CREATE TABLE table_name_27 (location VARCHAR, attendance INTEGER) [/INST]
### Response:
SELECT location FROM table_name_27 WHERE attendance > 57 OFFSET 347 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 last game that had a time of 2:46 and attendance of more than 57,533?
### Context:
CREATE TABLE table_name_27 (game INTEGER, time VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_27 WHERE time = "2:46" AND attendance > 57 OFFSET 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 place is South Africa?
### Context:
CREATE TABLE table_name_99 (place VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_99 WHERE country = "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 was the average year when shri. shambu nath khajuria won the padma shri awards?
### Context:
CREATE TABLE table_name_44 (year INTEGER, name VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_44 WHERE name = "shri. shambu nath khajuria" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of years that prof. aditya naraian purohit won?
### Context:
CREATE TABLE table_name_76 (year VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_76 WHERE name = "prof. aditya naraian purohit" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of the years when the winner was prof. priyambada mohanty hejmadi from orissa?
### Context:
CREATE TABLE table_name_95 (year INTEGER, state VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_95 WHERE state = "orissa" AND name = "prof. priyambada mohanty hejmadi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 event was part of the World Cross Country championships?
### Context:
CREATE TABLE table_name_81 (event VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_81 WHERE competition = "world cross country championships" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What department as 6 years experience?
### Context:
CREATE TABLE table_name_90 (department VARCHAR, experience VARCHAR) [/INST]
### Response:
SELECT department FROM table_name_90 WHERE experience = "6 years" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 designation for the m.tech (e.c.e) qualification?
### Context:
CREATE TABLE table_name_86 (designation VARCHAR, qualification VARCHAR) [/INST]
### Response:
SELECT designation FROM table_name_86 WHERE qualification = "m.tech (e.c.e)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What department has an m.phil (physics) qualification?
### Context:
CREATE TABLE table_name_25 (department VARCHAR, qualification VARCHAR) [/INST]
### Response:
SELECT department FROM table_name_25 WHERE qualification = "m.phil (physics)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
hat is the Result F– A when they played against Leeds United?
### Context:
CREATE TABLE table_name_98 (result_f___a VARCHAR, opponents VARCHAR) [/INST]
### Response:
SELECT result_f___a FROM table_name_98 WHERE opponents = "leeds united" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many games have 61-16 as the record?
### Context:
CREATE TABLE table_name_14 (game VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT COUNT(game) FROM table_name_14 WHERE record = "61-16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date has 104-113 as the score?
### Context:
CREATE TABLE table_name_17 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_17 WHERE score = "104-113" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 113-115 (ot) as the score?
### Context:
CREATE TABLE table_name_20 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_20 WHERE score = "113-115 (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:
What is the mean game played on January 9?
### Context:
CREATE TABLE table_name_82 (game INTEGER, date VARCHAR) [/INST]
### Response:
SELECT AVG(game) FROM table_name_82 WHERE date = "january 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:
Which game number includes a record of 1-2?
### Context:
CREATE TABLE table_name_31 (game VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_31 WHERE record = "1-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:
For the game where Joel Przybilla (4) received high assists, what was the final score?
### Context:
CREATE TABLE table_name_88 (score VARCHAR, high_assists VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_88 WHERE high_assists = "joel przybilla (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:
For the game that had an end record of 2-4, who was the high points scorer?
### Context:
CREATE TABLE table_name_69 (high_points VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_name_69 WHERE record = "2-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 attendance of the game against the New Orleans Saints before game 11?
### Context:
CREATE TABLE table_name_20 (attendance INTEGER, opponent VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_20 WHERE opponent = "new orleans saints" AND game < 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:
On what date was the streak at lost 7?
### Context:
CREATE TABLE table_name_67 (date VARCHAR, streak VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_67 WHERE streak = "lost 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 Round 2r?
### Context:
CREATE TABLE table_name_5 (date VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_5 WHERE round = "2r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date did the opponent George Khrikadze play?
### Context:
CREATE TABLE table_name_97 (date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_97 WHERE opponent = "george khrikadze" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 resulted in 6-0, 6-1, 6-2?
### Context:
CREATE TABLE table_name_16 (round VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_16 WHERE result = "6-0, 6-1, 6-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 round was the opponent Sergiy Stakhovsky?
### Context:
CREATE TABLE table_name_28 (round VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_28 WHERE opponent = "sergiy stakhovsky" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the record on December 11?
### Context:
CREATE TABLE table_name_77 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_77 WHERE date = "december 11" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was the game that resulted in L 30-27?
### Context:
CREATE TABLE table_name_34 (date VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_34 WHERE result = "l 30-27" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the highest attendance of games that resulted in L 23-20?
### Context:
CREATE TABLE table_name_64 (attendance INTEGER, result VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_64 WHERE result = "l 23-20" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result when the opponent was manchester united in venue h?
### Context:
CREATE TABLE table_name_45 (result VARCHAR, opponent VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_45 WHERE opponent = "manchester united" AND venue = "h" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What rank was Peru with a total greater than 3?
### Context:
CREATE TABLE table_name_34 (rank INTEGER, country VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_34 WHERE country = "peru" 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:
What is Result, when Competition is 2010 FIFA World Cup Qualification, and when Date is 10 September 2008?
### Context:
CREATE TABLE table_name_37 (result VARCHAR, competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_37 WHERE competition = "2010 fifa world cup qualification" AND date = "10 september 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Venue, when Competition is 2010 FIFA World Cup Qualification, when Result is Won, and when Date is 14 June 2008?
### Context:
CREATE TABLE table_name_25 (venue VARCHAR, date VARCHAR, competition VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_25 WHERE competition = "2010 fifa world cup qualification" AND result = "won" AND date = "14 june 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Competition, when Date is 30 December 2005?
### Context:
CREATE TABLE table_name_96 (competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_96 WHERE date = "30 december 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 Place when the score is less than 71, and Country is zimbabwe?
### Context:
CREATE TABLE table_name_86 (place VARCHAR, score VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_86 WHERE score < 71 AND country = "zimbabwe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Score when the Country is canada?
### Context:
CREATE TABLE table_name_77 (score INTEGER, country VARCHAR) [/INST]
### Response:
SELECT MIN(score) FROM table_name_77 WHERE country = "canada" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the Player is toru taniguchi?
### Context:
CREATE TABLE table_name_92 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_92 WHERE player = "toru taniguchi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number when the Rangers have a Record of 25-24-11?
### Context:
CREATE TABLE table_name_18 (game VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT COUNT(game) FROM table_name_18 WHERE record = "25-24-11" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Score of the game on March 18?
### Context:
CREATE TABLE table_name_5 (score VARCHAR, march VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_5 WHERE march = 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 qual 2 of team rocketsports racing, which has the best of 1:10.949?
### Context:
CREATE TABLE table_name_34 (qual_2 VARCHAR, team VARCHAR, best VARCHAR) [/INST]
### Response:
SELECT qual_2 FROM table_name_34 WHERE team = "rocketsports racing" AND best = "1:10.949" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which team has a 1:10.998 best?
### Context:
CREATE TABLE table_name_87 (team VARCHAR, best VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_87 WHERE best = "1:10.998" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 person with a 1:10.771 qual 2?
### Context:
CREATE TABLE table_name_60 (name VARCHAR, qual_2 VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_60 WHERE qual_2 = "1:10.771" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 qual 2 with a 1:10.949 best?
### Context:
CREATE TABLE table_name_65 (qual_2 VARCHAR, best VARCHAR) [/INST]
### Response:
SELECT qual_2 FROM table_name_65 WHERE best = "1:10.949" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 qual 2 of team Forsythe racing, which has a 1:09.515 best?
### Context:
CREATE TABLE table_name_42 (qual_2 VARCHAR, team VARCHAR, best VARCHAR) [/INST]
### Response:
SELECT qual_2 FROM table_name_42 WHERE team = "forsythe racing" AND best = "1:09.515" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 qual 1 with a 1:09.567 best?
### Context:
CREATE TABLE table_name_70 (qual_1 VARCHAR, best VARCHAR) [/INST]
### Response:
SELECT qual_1 FROM table_name_70 WHERE best = "1:09.567" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What were highest points received from someone using a zabel-wsp with a position greater than 7?
### Context:
CREATE TABLE table_name_15 (points INTEGER, equipment VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_15 WHERE equipment = "zabel-wsp" AND position > 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 lowest attendance recorded for week 15?
### Context:
CREATE TABLE table_name_88 (attendance INTEGER, week VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_88 WHERE week = 15 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When Marlene was nominated for the Olivier Award, what was the result?
### Context:
CREATE TABLE table_name_33 (result VARCHAR, nominated_work VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_33 WHERE nominated_work = "marlene" AND award = "olivier award" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result for the Bafta Tv award?
### Context:
CREATE TABLE table_name_63 (result VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_63 WHERE award = "bafta tv award" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the pick of Texas-San Antonio?
### Context:
CREATE TABLE table_name_79 (pick INTEGER, college VARCHAR) [/INST]
### Response:
SELECT AVG(pick) FROM table_name_79 WHERE college = "texas-san antonio" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 that has a round greater than 2 and a pick bigger than 83?
### Context:
CREATE TABLE table_name_5 (player VARCHAR, round VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_5 WHERE round > 2 AND pick > 83 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationality of Louisiana Tech?
### Context:
CREATE TABLE table_name_10 (nationality VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_10 WHERE college = "louisiana 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:
What number pick is Ray Hall?
### Context:
CREATE TABLE table_name_91 (pick VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT pick FROM table_name_91 WHERE player = "ray hall" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What nationality has a pick greater than 129?
### Context:
CREATE TABLE table_name_38 (nationality VARCHAR, pick INTEGER) [/INST]
### Response:
SELECT nationality FROM table_name_38 WHERE pick > 129 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the rider is mika kallio?
### Context:
CREATE TABLE table_name_64 (grid INTEGER, rider VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_64 WHERE rider = "mika kallio" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when laps is less than 21, manufacturer is aprilia, grid is less than 17 and the rider is thomas luthi?
### Context:
CREATE TABLE table_name_20 (time VARCHAR, rider VARCHAR, grid VARCHAR, laps VARCHAR, manufacturer VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_20 WHERE laps < 21 AND manufacturer = "aprilia" AND grid < 17 AND rider = "thomas luthi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the laps is less than 21 and the grid is more than 17?
### Context:
CREATE TABLE table_name_88 (time VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_88 WHERE laps < 21 AND grid > 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:
Who was partnering when nueza silva played against greece?
### Context:
CREATE TABLE table_name_8 (partnering VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT partnering FROM table_name_8 WHERE against = "greece" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round when nueza silva played against greece?
### Context:
CREATE TABLE table_name_31 (round VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_31 WHERE against = "greece" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who were the opponents during the 2006 fed cup europe/africa group ii against greece?
### Context:
CREATE TABLE table_name_15 (opponents VARCHAR, edition VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT opponents FROM table_name_15 WHERE edition = "2006 fed cup europe/africa group ii" AND against = "greece" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tries against for the team that has 207 points for?
### Context:
CREATE TABLE table_name_4 (tries_against VARCHAR, points_for VARCHAR) [/INST]
### Response:
SELECT tries_against FROM table_name_4 WHERE points_for = "207" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team has a 118 Point for?
### Context:
CREATE TABLE table_name_24 (team VARCHAR, points_for VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_24 WHERE points_for = "118" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has 102 Points against?
### Context:
CREATE TABLE table_name_61 (team VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_61 WHERE points_against = "102" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Points for number of the team with a 10 Tries against number?
### Context:
CREATE TABLE table_name_44 (points_for VARCHAR, tries_against VARCHAR) [/INST]
### Response:
SELECT points_for FROM table_name_44 WHERE tries_against = "10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team has +119 Points diff?
### Context:
CREATE TABLE table_name_83 (team VARCHAR, points_diff VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_83 WHERE points_diff = "+119" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What manufacturer has a year made of 1923?
### Context:
CREATE TABLE table_name_73 (manufacturer VARCHAR, year_made VARCHAR) [/INST]
### Response:
SELECT manufacturer FROM table_name_73 WHERE year_made = "1923" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 quantity made when the manufacturer was 4-6-2 — oooooo — pacific?
### Context:
CREATE TABLE table_name_7 (quantity_made VARCHAR, manufacturer VARCHAR) [/INST]
### Response:
SELECT quantity_made FROM table_name_7 WHERE manufacturer = "4-6-2 — oooooo — pacific" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a quantity made of 11 and a wheel arrangement of 4-6-2?
### Context:
CREATE TABLE table_name_44 (year_made VARCHAR, wheel_arrangement VARCHAR, quantity_made VARCHAR) [/INST]
### Response:
SELECT year_made FROM table_name_44 WHERE wheel_arrangement = "4-6-2" AND quantity_made = "11" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the quantity preserved when the fleet number was 700?
### Context:
CREATE TABLE table_name_57 (quantity_preserved VARCHAR, fleet_number_s_ VARCHAR) [/INST]
### Response:
SELECT quantity_preserved FROM table_name_57 WHERE fleet_number_s_ = "700" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 race in Kenya with a time of 30:27?
### Context:
CREATE TABLE table_name_96 (race VARCHAR, nation VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_96 WHERE nation = "kenya" AND time = "30: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 name of the athlete with a time of 30:48?
### Context:
CREATE TABLE table_name_9 (athlete VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT athlete FROM table_name_9 WHERE time = "30:48" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 race when Lineth Chepkurui is the athlete?
### Context:
CREATE TABLE table_name_17 (race VARCHAR, athlete VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_17 WHERE athlete = "lineth chepkurui" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the race was in Kenya and Lineth Chepkurui was the athlete?
### Context:
CREATE TABLE table_name_50 (time VARCHAR, nation VARCHAR, athlete VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_50 WHERE nation = "kenya" AND athlete = "lineth chepkurui" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country for the player who had a To Par of +4?
### Context:
CREATE TABLE table_name_76 (country VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_76 WHERE to_par = "+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 player from South Africa had a total less than 284?
### Context:
CREATE TABLE table_name_93 (player VARCHAR, total VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_93 WHERE total < 284 AND country = "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:
For the year won of 2001, what is the To Par?
### Context:
CREATE TABLE table_name_29 (to_par VARCHAR, year_s__won VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_29 WHERE year_s__won = "2001" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the location attendance when the series is 4-3?
### Context:
CREATE TABLE table_name_38 (location_attendance VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_name_38 WHERE series = "4-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 team when the location attendace is boston garden and the series is 0-1?
### Context:
CREATE TABLE table_name_31 (team VARCHAR, location_attendance VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_31 WHERE location_attendance = "boston garden" AND series = "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:
what is the highest game when the team is @boston and the series is 0-1?
### Context:
CREATE TABLE table_name_53 (game INTEGER, team VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_53 WHERE team = "@boston" AND series = "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:
what is the series when the team is @boston and the game is smaller than 3?
### Context:
CREATE TABLE table_name_16 (series VARCHAR, team VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT series FROM table_name_16 WHERE team = "@boston" AND game < 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is 2001, when 1996 is "0 / 2"?
### Context:
CREATE TABLE table_name_1 (Id VARCHAR) [/INST]
### Response:
SELECT 2001 FROM table_name_1 WHERE 1996 = "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:
What is 1998, when 1992 is "A", and when Tournament is "Hamburg Masters"?
### Context:
CREATE TABLE table_name_7 (tournament VARCHAR) [/INST]
### Response:
SELECT 1998 FROM table_name_7 WHERE 1992 = "a" AND tournament = "hamburg masters" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is 2001, when 1994 is "A", and when Tournament is "Monte Carlo Masters"?
### Context:
CREATE TABLE table_name_74 (tournament VARCHAR) [/INST]
### Response:
SELECT 2001 FROM table_name_74 WHERE 1994 = "a" AND tournament = "monte carlo masters" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1999, when 2003 is "A", and when Career SR is "0 / 4"?
### Context:
CREATE TABLE table_name_21 (career_sr VARCHAR) [/INST]
### Response:
SELECT 1999 FROM table_name_21 WHERE 2003 = "a" AND career_sr = "0 / 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 2000, when Tournament is "Canada Masters"?
### Context:
CREATE TABLE table_name_67 (tournament VARCHAR) [/INST]
### Response:
SELECT 2000 FROM table_name_67 WHERE tournament = "canada masters" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the player ho had a To par of +1 and a score of 69-70-72=211 from?
### Context:
CREATE TABLE table_name_92 (country VARCHAR, to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_92 WHERE to_par = "+1" AND score = 69 - 70 - 72 = 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 place did the player from South Africa finish?
### Context:
CREATE TABLE table_name_97 (place VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_97 WHERE country = "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 country is Tom Purtzer from?
### Context:
CREATE TABLE table_name_45 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_45 WHERE player = "tom purtzer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of united states player wally armstrong when he had a To par of +1
### Context:
CREATE TABLE table_name_8 (score VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_8 WHERE country = "united states" AND to_par = "+1" AND player = "wally armstrong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of Wally Armstrong?
### Context:
CREATE TABLE table_name_49 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_49 WHERE player = "wally armstrong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 verb meaning when the part 1 is lopen?
### Context:
CREATE TABLE table_name_53 (verb_meaning VARCHAR, part_1 VARCHAR) [/INST]
### Response:
SELECT verb_meaning FROM table_name_53 WHERE part_1 = "lopen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 part 4 when the verb meaning is to steal?
### Context:
CREATE TABLE table_name_95 (part_4 VARCHAR, verb_meaning VARCHAR) [/INST]
### Response:
SELECT part_4 FROM table_name_95 WHERE verb_meaning = "to steal" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 class when part 2 is bond?
### Context:
CREATE TABLE table_name_33 (class VARCHAR, part_2 VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_33 WHERE part_2 = "bond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 part 4 when the class is 5?
### Context:
CREATE TABLE table_name_37 (part_4 VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT part_4 FROM table_name_37 WHERE class = "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 part 1 when the class is 7d?
### Context:
CREATE TABLE table_name_78 (part_1 VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT part_1 FROM table_name_78 WHERE class = "7d" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 part 2 when part 4 is gebonden?
### Context:
CREATE TABLE table_name_92 (part_2 VARCHAR, part_4 VARCHAR) [/INST]
### Response:
SELECT part_2 FROM table_name_92 WHERE part_4 = "gebonden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 boiling point when the density is 1.092 g/ml?
### Context:
CREATE TABLE table_name_46 (boiling_point VARCHAR, density VARCHAR) [/INST]
### Response:
SELECT boiling_point FROM table_name_46 WHERE density = "1.092 g/ml" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What solvent has a boiling point of 100–103 °c?
### Context:
CREATE TABLE table_name_55 (solvent VARCHAR, boiling_point VARCHAR) [/INST]
### Response:
SELECT solvent FROM table_name_55 WHERE boiling_point = "100–103 °c" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What dipole moment has a density of 1.092 g/ml?
### Context:
CREATE TABLE table_name_18 (dipole_moment___d__ VARCHAR, density VARCHAR) [/INST]
### Response:
SELECT dipole_moment___d__ FROM table_name_18 WHERE density = "1.092 g/ml" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.