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's the transfer distance (km) larger than 36.5, at the station of guangximen?
### Context:
CREATE TABLE table_name_16 (transfers VARCHAR, distance__km_ VARCHAR, station_name VARCHAR) [/INST]
### Response:
SELECT transfers FROM table_name_16 WHERE distance__km_ > 36.5 AND station_name = "guangximen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Chinese Name of 上地 shàngdì belongs to what station?
### Context:
CREATE TABLE table_name_57 (station_name VARCHAR, chinese_name VARCHAR) [/INST]
### Response:
SELECT station_name FROM table_name_57 WHERE chinese_name = "上地 shàngdì" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runner-up for margin of victory of 3 strokes
### Context:
CREATE TABLE table_name_37 (runner_s__up VARCHAR, margin_of_victory VARCHAR) [/INST]
### Response:
SELECT runner_s__up FROM table_name_37 WHERE margin_of_victory = "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:
Name the date with margin of victory of 1 stroke and tournament of legend financial group classic
### Context:
CREATE TABLE table_name_83 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_83 WHERE margin_of_victory = "1 stroke" AND tournament = "legend financial group 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:
Name the runner-up for margin of victory of 1 stroke and tournament of legend financial group classic
### Context:
CREATE TABLE table_name_10 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT runner_s__up FROM table_name_10 WHERE margin_of_victory = "1 stroke" AND tournament = "legend financial group 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:
Name the margin of victory for jonas blixt
### Context:
CREATE TABLE table_name_24 (margin_of_victory VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT margin_of_victory FROM table_name_24 WHERE runner_s__up = "jonas blixt" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Party has a Office of majority floor leader
### Context:
CREATE TABLE table_name_46 (party VARCHAR, office VARCHAR) [/INST]
### Response:
SELECT party FROM table_name_46 WHERE office = "majority floor leader" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Office has a Representative of scott pelath?
### Context:
CREATE TABLE table_name_81 (office VARCHAR, representative VARCHAR) [/INST]
### Response:
SELECT office FROM table_name_81 WHERE representative = "scott pelath" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Office has a Party of rep, and a Representative of brian bosma?
### Context:
CREATE TABLE table_name_9 (office VARCHAR, party VARCHAR, representative VARCHAR) [/INST]
### Response:
SELECT office FROM table_name_9 WHERE party = "rep" AND representative = "brian bosma" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Residence has a Party of dem, and a Representative of linda lawson?
### Context:
CREATE TABLE table_name_20 (residence VARCHAR, party VARCHAR, representative VARCHAR) [/INST]
### Response:
SELECT residence FROM table_name_20 WHERE party = "dem" AND representative = "linda lawson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Party has a Representative of brian bosma?
### Context:
CREATE TABLE table_name_61 (party VARCHAR, representative VARCHAR) [/INST]
### Response:
SELECT party FROM table_name_61 WHERE representative = "brian bosma" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Office has a Party of dem, and a First Elected of 1991†?
### Context:
CREATE TABLE table_name_2 (office VARCHAR, party VARCHAR, first_elected VARCHAR) [/INST]
### Response:
SELECT office FROM table_name_2 WHERE party = "dem" AND first_elected = "1991†" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what college has paul seiler as a player?
### Context:
CREATE TABLE table_name_22 (college VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_22 WHERE player = "paul seiler" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps were in 1955?
### Context:
CREATE TABLE table_name_89 (laps VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_89 WHERE year = "1955" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 finish with less than 200 laps in 1953?
### Context:
CREATE TABLE table_name_85 (finish VARCHAR, laps VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT finish FROM table_name_85 WHERE laps < 200 AND year = "1953" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank in 1955?
### Context:
CREATE TABLE table_name_89 (rank VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_89 WHERE year = "1955" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sum of laps in 1954?
### Context:
CREATE TABLE table_name_79 (laps INTEGER, year VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_79 WHERE year = "1954" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had less than 200 laps with a finish of 26?
### Context:
CREATE TABLE table_name_84 (rank VARCHAR, laps VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_84 WHERE laps < 200 AND finish = "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's the average wins of those games with 3 podiums?
### Context:
CREATE TABLE table_name_42 (wins INTEGER, podiums VARCHAR) [/INST]
### Response:
SELECT AVG(wins) FROM table_name_42 WHERE podiums = 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:
Who was team 1 when team 2 was Young Africans?
### Context:
CREATE TABLE table_name_65 (team_1 VARCHAR, team_2 VARCHAR) [/INST]
### Response:
SELECT team_1 FROM table_name_65 WHERE team_2 = "young africans" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2nd leg score for Al-Merrikh as team 2?
### Context:
CREATE TABLE table_name_61 (team_2 VARCHAR) [/INST]
### Response:
SELECT 2 AS nd_leg FROM table_name_61 WHERE team_2 = "al-merrikh" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Date, when the Opponent is Gisela Dulko?
### Context:
CREATE TABLE table_name_74 (date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_74 WHERE opponent = "gisela dulko" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tournament, when the Opponent is Patricia Mayr-Achleitner?
### Context:
CREATE TABLE table_name_83 (tournament VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_83 WHERE opponent = "patricia mayr-achleitner" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 competition in 2006 world cup qualification?
### Context:
CREATE TABLE table_name_49 (result VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_49 WHERE competition = "2006 world cup qualification" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What nation started in lane 3 of heat 2?
### Context:
CREATE TABLE table_name_78 (nationality VARCHAR, heat VARCHAR, lane VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_78 WHERE heat = 2 AND lane = 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 Tied has Matches of 1, and a Lost of 0, and a Team of durham?
### Context:
CREATE TABLE table_name_95 (tied VARCHAR, team VARCHAR, matches VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT tied FROM table_name_95 WHERE matches = "1" AND lost = "0" AND team = "durham" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winner of 1?
### Context:
CREATE TABLE table_name_6 (team VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_6 WHERE winner = "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 % Won of Team of durham
### Context:
CREATE TABLE table_name_12 (_percentage_won VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT _percentage_won FROM table_name_12 WHERE team = "durham" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Match has the percentage won 52.38?
### Context:
CREATE TABLE table_name_77 (matches VARCHAR, _percentage_won VARCHAR) [/INST]
### Response:
SELECT matches FROM table_name_77 WHERE _percentage_won = "52.38" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many points has more than 15 wins and less than 10 losses?
### Context:
CREATE TABLE table_name_54 (points VARCHAR, wins VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_54 WHERE wins > 15 AND losses < 10 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total goal difference with more than 38 played and more than 47 goals against?
### Context:
CREATE TABLE table_name_73 (goal_difference INTEGER, goals_against VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT SUM(goal_difference) FROM table_name_73 WHERE goals_against > 47 AND played > 38 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average draws with more than 38 played?
### Context:
CREATE TABLE table_name_25 (draws INTEGER, played INTEGER) [/INST]
### Response:
SELECT AVG(draws) FROM table_name_25 WHERE played > 38 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the partner who played in the final against Lucas Arnold Ker Martín García?
### Context:
CREATE TABLE table_name_39 (partner VARCHAR, opponents_in_final VARCHAR) [/INST]
### Response:
SELECT partner FROM table_name_39 WHERE opponents_in_final = "lucas arnold ker martín garcía" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who swam in a lane less than 6 and finished with a time of 2:11.02?
### Context:
CREATE TABLE table_name_70 (name VARCHAR, lane VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_70 WHERE lane < 6 AND time = "2:11.02" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Film title used in nomination of Mig Og Charly?
### Context:
CREATE TABLE table_name_10 (film_title_used_in_nomination VARCHAR, original_name VARCHAR) [/INST]
### Response:
SELECT film_title_used_in_nomination FROM table_name_10 WHERE original_name = "mig og charly" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Director that has a Film title of nick carter in prague?
### Context:
CREATE TABLE table_name_66 (director VARCHAR, film_title_used_in_nomination VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_66 WHERE film_title_used_in_nomination = "nick carter in prague" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Language Director of nagisa oshima use in his film?
### Context:
CREATE TABLE table_name_54 (language VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT language FROM table_name_54 WHERE director = "nagisa oshima" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Director that speaks dutch?
### Context:
CREATE TABLE table_name_8 (director VARCHAR, language VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_8 WHERE language = "dutch" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Original name of empire of passion?
### Context:
CREATE TABLE table_name_17 (original_name VARCHAR, film_title_used_in_nomination VARCHAR) [/INST]
### Response:
SELECT original_name FROM table_name_17 WHERE film_title_used_in_nomination = "empire of passion" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 start date with party of pd
### Context:
CREATE TABLE table_name_28 (start_date VARCHAR, party VARCHAR) [/INST]
### Response:
SELECT start_date FROM table_name_28 WHERE party = "pd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 minister for end date of 31 july 2004
### Context:
CREATE TABLE table_name_12 (minister VARCHAR, end_date VARCHAR) [/INST]
### Response:
SELECT minister FROM table_name_12 WHERE end_date = "31 july 2004" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the party with end date of 22 november 1980
### Context:
CREATE TABLE table_name_2 (party VARCHAR, end_date VARCHAR) [/INST]
### Response:
SELECT party FROM table_name_2 WHERE end_date = "22 november 1980" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the end date for robert goebbels
### Context:
CREATE TABLE table_name_50 (end_date VARCHAR, minister VARCHAR) [/INST]
### Response:
SELECT end_date FROM table_name_50 WHERE minister = "robert goebbels" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 start date with lsap and end date of present day
### Context:
CREATE TABLE table_name_29 (start_date VARCHAR, party VARCHAR, end_date VARCHAR) [/INST]
### Response:
SELECT start_date FROM table_name_29 WHERE party = "lsap" AND end_date = "present day" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 acceleration 1-100km/h when the name is 1.5 dci?
### Context:
CREATE TABLE table_name_32 (acceleration_0_100km_h VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT acceleration_0_100km_h FROM table_name_32 WHERE name = "1.5 dci" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the power when the capacity is 898cc?
### Context:
CREATE TABLE table_name_43 (power VARCHAR, capacity VARCHAR) [/INST]
### Response:
SELECT power FROM table_name_43 WHERE capacity = "898cc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity when the code is d4f bi-fuel 732?
### Context:
CREATE TABLE table_name_36 (capacity VARCHAR, code VARCHAR) [/INST]
### Response:
SELECT capacity FROM table_name_36 WHERE code = "d4f bi-fuel 732" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the power when the name is 1.2 16v lpg?
### Context:
CREATE TABLE table_name_13 (power VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT power FROM table_name_13 WHERE name = "1.2 16v lpg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity when the name is 1.2 16v?
### Context:
CREATE TABLE table_name_68 (capacity VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT capacity FROM table_name_68 WHERE name = "1.2 16v" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity when the acceleration 1-100km/h is 11.1 s?
### Context:
CREATE TABLE table_name_39 (capacity VARCHAR, acceleration_0_100km_h VARCHAR) [/INST]
### Response:
SELECT capacity FROM table_name_39 WHERE acceleration_0_100km_h = "11.1 s" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 director for 1957
### Context:
CREATE TABLE table_name_50 (director VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_50 WHERE year = 1957 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 director who has title of transylvania 6-5000
### Context:
CREATE TABLE table_name_47 (director VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_47 WHERE title = "transylvania 6-5000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance for time of 1:31
### Context:
CREATE TABLE table_name_21 (attendance VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_21 WHERE time = "1: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:
Name the score for 1:36 time
### Context:
CREATE TABLE table_name_20 (score VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_20 WHERE time = "1:36" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the score for october 9
### Context:
CREATE TABLE table_name_92 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_92 WHERE date = "october 9" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What round did the overall pick of 91 occur in the 1982 NFL draft?
### Context:
CREATE TABLE table_name_83 (round INTEGER, overall VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_83 WHERE overall = 91 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Race 3 is Round 5?
### Context:
CREATE TABLE table_name_4 (race_3 VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT race_3 FROM table_name_4 WHERE round = "round 5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Round has the Track Clipsal 500 Support?
### Context:
CREATE TABLE table_name_42 (round VARCHAR, track VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_42 WHERE track = "clipsal 500 support" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Race 2 has a Race 1 of dnf, a Race 3 of dnf, and the Track Winton?
### Context:
CREATE TABLE table_name_26 (race_2 VARCHAR, track VARCHAR, race_1 VARCHAR, race_3 VARCHAR) [/INST]
### Response:
SELECT race_2 FROM table_name_26 WHERE race_1 = "dnf" AND race_3 = "dnf" AND track = "winton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the Track Winton?
### Context:
CREATE TABLE table_name_30 (round VARCHAR, track VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_30 WHERE track = "winton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Race 2 result of Round 2?
### Context:
CREATE TABLE table_name_4 (race_2 VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT race_2 FROM table_name_4 WHERE round = "round 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 Race 1 result of Round 2?
### Context:
CREATE TABLE table_name_25 (race_1 VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT race_1 FROM table_name_25 WHERE round = "round 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 average year with Nathan Robertson Gail Emms in mixed doubles?
### Context:
CREATE TABLE table_name_71 (year INTEGER, mixed_doubles VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_71 WHERE mixed_doubles = "nathan robertson gail emms" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 with a 76-67-71=214 score?
### Context:
CREATE TABLE table_name_59 (player VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_59 WHERE score = 76 - 67 - 71 = 214 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Nick Price's score?
### Context:
CREATE TABLE table_name_20 (score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_20 WHERE player = "nick price" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the player with a score of 69-74-71=214?
### Context:
CREATE TABLE table_name_23 (country VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_23 WHERE score = 69 - 74 - 71 = 214 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to par of Greg Norman?
### Context:
CREATE TABLE table_name_83 (to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_83 WHERE player = "greg norman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score for opponent @ Tigers on July 24?
### Context:
CREATE TABLE table_name_58 (score VARCHAR, opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_58 WHERE opponent = "@ tigers" AND date = "july 24" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the opponent for July 2?
### Context:
CREATE TABLE table_name_12 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_12 WHERE date = "july 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's the year of the Chassis surtees ts19?
### Context:
CREATE TABLE table_name_80 (year VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_80 WHERE chassis = "surtees ts19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the lowest points past the year 1978?
### Context:
CREATE TABLE table_name_51 (points INTEGER, year INTEGER) [/INST]
### Response:
SELECT MIN(points) FROM table_name_51 WHERE year > 1978 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 top year with the Chassis ats hs1?
### Context:
CREATE TABLE table_name_33 (year INTEGER, chassis VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_33 WHERE chassis = "ats hs1" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the time on September 1?
### Context:
CREATE TABLE table_name_46 (local_time VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT local_time FROM table_name_46 WHERE date = "september 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:
Where was September 5?
### Context:
CREATE TABLE table_name_25 (location VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_25 WHERE date = "september 5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When the Winning score is 74-68-67-75=284, what was the Margin of victory?
### Context:
CREATE TABLE table_name_72 (margin_of_victory VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT margin_of_victory FROM table_name_72 WHERE winning_score = 74 - 68 - 67 - 75 = 284 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winning is 71-71-70-69=281, what is the To par?
### Context:
CREATE TABLE table_name_7 (to_par VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_7 WHERE winning_score = 71 - 71 - 70 - 69 = 281 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winning score is 68-65-65-68=266, what is the Margin of victory?
### Context:
CREATE TABLE table_name_59 (margin_of_victory VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT margin_of_victory FROM table_name_59 WHERE winning_score = 68 - 65 - 65 - 68 = 266 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winning score of 72-67-68-67=274?
### Context:
CREATE TABLE table_name_30 (date VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_30 WHERE winning_score = 72 - 67 - 68 - 67 = 274 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2nd place finishes for riders active in years 2009-2010 and more than 0 wins?
### Context:
CREATE TABLE table_name_83 (years_active VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT SUM(2 AS nd_pl) FROM table_name_83 WHERE years_active = "2009-2010" AND wins > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of 3rd place finishes for racers with 0 titles?
### Context:
CREATE TABLE table_name_31 (titles INTEGER) [/INST]
### Response:
SELECT SUM(3 AS rd_pl) FROM table_name_31 WHERE titles < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of 2nd place finishes for racers active in the year 2000 and more than 0 titles?
### Context:
CREATE TABLE table_name_16 (years_active VARCHAR, titles VARCHAR) [/INST]
### Response:
SELECT AVG(2 AS nd_pl) FROM table_name_16 WHERE years_active = "2000" AND titles > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the sum of played for c.d. luis ángel firpo and place more than 3
### Context:
CREATE TABLE table_name_67 (played INTEGER, team VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT SUM(played) FROM table_name_67 WHERE team = "c.d. luis ángel firpo" AND place > 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:
Name the total number of places which has played more than 18
### Context:
CREATE TABLE table_name_59 (place VARCHAR, played INTEGER) [/INST]
### Response:
SELECT COUNT(place) FROM table_name_59 WHERE played > 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:
Name the total number of lost when goals scored is less than 22 and goals conceded is more than 27
### Context:
CREATE TABLE table_name_82 (lost VARCHAR, goals_scored VARCHAR, goals_conceded VARCHAR) [/INST]
### Response:
SELECT COUNT(lost) FROM table_name_82 WHERE goals_scored < 22 AND goals_conceded > 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:
Name the average goals conceded with draw bigger than 7 and goals scored more than 24
### Context:
CREATE TABLE table_name_26 (goals_conceded INTEGER, draw VARCHAR, goals_scored VARCHAR) [/INST]
### Response:
SELECT AVG(goals_conceded) FROM table_name_26 WHERE draw > 7 AND goals_scored > 24 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the least goals scored with place more than 8 and lost less than 8
### Context:
CREATE TABLE table_name_36 (goals_scored INTEGER, place VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT MIN(goals_scored) FROM table_name_36 WHERE place > 8 AND lost < 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:
Where does Mount Chamberlin, located in Alaska, rank on the chart?
### Context:
CREATE TABLE table_name_37 (rank INTEGER, state VARCHAR, mountain_peak VARCHAR) [/INST]
### Response:
SELECT SUM(rank) FROM table_name_37 WHERE state = "alaska" AND mountain_peak = "mount chamberlin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the location of the mountain ranked at 36?
### Context:
CREATE TABLE table_name_20 (location VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_20 WHERE rank = 36 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does the Kuskokwim Mountains rank on the chart?
### Context:
CREATE TABLE table_name_5 (rank INTEGER, mountain_range VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_5 WHERE mountain_range = "kuskokwim mountains" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank of a mountain range located in Maine?
### Context:
CREATE TABLE table_name_38 (rank INTEGER, state VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_38 WHERE state = "maine" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 matt roth drafted?
### Context:
CREATE TABLE table_name_82 (round VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_82 WHERE player = "matt roth" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the player represent that was picked after 196?
### Context:
CREATE TABLE table_name_35 (nfl_club VARCHAR, pick INTEGER) [/INST]
### Response:
SELECT nfl_club FROM table_name_35 WHERE pick > 196 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position for european competitions of eurocup regular season
### Context:
CREATE TABLE table_name_41 (pos VARCHAR, european_competitions VARCHAR) [/INST]
### Response:
SELECT pos FROM table_name_41 WHERE european_competitions = "eurocup regular season" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent with a series of 3-2?
### Context:
CREATE TABLE table_name_54 (opponent VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_54 WHERE series = "3-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:
Who was the opponent with a series of 1-0?
### Context:
CREATE TABLE table_name_79 (opponent VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_79 WHERE series = "1-0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For the Delmar school what is the division record?
### Context:
CREATE TABLE table_name_93 (division_record VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT division_record FROM table_name_93 WHERE school = "delmar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What school does the Blue Raiders belong to?
### Context:
CREATE TABLE table_name_16 (school VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_16 WHERE team = "blue raiders" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name belongs to Seaford?
### Context:
CREATE TABLE table_name_57 (team VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_57 WHERE school = "seaford" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What division record did the Spartans hold?
### Context:
CREATE TABLE table_name_26 (division_record VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT division_record FROM table_name_26 WHERE team = "spartans" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wildcats belong to what school?
### Context:
CREATE TABLE table_name_38 (school VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_38 WHERE team = "wildcats" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.