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 is the total number of attendence has points greater than 40, and detroit as the home?
### Context:
CREATE TABLE table_name_99 (attendance VARCHAR, points VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_99 WHERE points > 40 AND home = "detroit" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest number for tropical Lows for the 1990β91 season with more than 10 tropical cyclones?
### Context:
CREATE TABLE table_name_13 (tropical_lows INTEGER, season VARCHAR, tropical_cyclones VARCHAR) [/INST]
### Response:
SELECT MAX(tropical_lows) FROM table_name_13 WHERE season = "1990β91" AND tropical_cyclones > 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 least number of tropical cyclones when the strongest storm was Tiffany and less than 10 tropical lows.
### Context:
CREATE TABLE table_name_88 (Severe INTEGER, strongest_storm VARCHAR, tropical_lows VARCHAR) [/INST]
### Response:
SELECT MIN(Severe) AS tropical_cyclones FROM table_name_88 WHERE strongest_storm = "tiffany" AND tropical_lows > 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 least amount of severe tropical cyclones for the 1992β93 season and the tropical Lows smaller than 6?
### Context:
CREATE TABLE table_name_61 (Severe INTEGER, season VARCHAR, tropical_lows VARCHAR) [/INST]
### Response:
SELECT MIN(Severe) AS tropical_cyclones FROM table_name_61 WHERE season = "1992β93" AND tropical_lows < 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the least amount of tropical lows for the 1993β94 season with less than 11 tropical cyclones
### Context:
CREATE TABLE table_name_41 (tropical_lows INTEGER, season VARCHAR, tropical_cyclones VARCHAR) [/INST]
### Response:
SELECT MIN(tropical_lows) FROM table_name_41 WHERE season = "1993β94" AND tropical_cyclones < 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:
How many Weeks are on september 8, 1980 and Attendances larger than 55,045? Question 4
### Context:
CREATE TABLE table_name_22 (week VARCHAR, date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT COUNT(week) FROM table_name_22 WHERE date = "september 8, 1980" AND attendance > 55 OFFSET 045 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Round has a College of stanford?
### Context:
CREATE TABLE table_name_31 (round VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_31 WHERE college = "stanford" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Round has a Pick of 174?
### Context:
CREATE TABLE table_name_47 (round VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_47 WHERE pick = 174 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Position has a Pick of 174?
### Context:
CREATE TABLE table_name_66 (position VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_66 WHERE pick = 174 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
that was held in 1964?
### Context:
CREATE TABLE table_name_39 (event VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_39 WHERE year = 1964 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Event with a venue that was in toronto, canada?
### Context:
CREATE TABLE table_name_62 (event VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_62 WHERE venue = "toronto, 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 Year the competition the british empire and commonwealth games were held?
### Context:
CREATE TABLE table_name_98 (year INTEGER, competition VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_98 WHERE competition = "british empire and commonwealth games" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the position of the commonwealth games?
### Context:
CREATE TABLE table_name_98 (position VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_98 WHERE competition = "commonwealth games" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the venue with a competition in 1964?
### Context:
CREATE TABLE table_name_15 (venue VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_15 WHERE year = 1964 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the date for clay surface and location of santos, brazil
### Context:
CREATE TABLE table_name_84 (date VARCHAR, surface VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_84 WHERE surface = "clay" AND location = "santos, brazil" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 outcome of winner and score of 4β6 6β2 7β6 (7β4)
### Context:
CREATE TABLE table_name_25 (date VARCHAR, outcome VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_25 WHERE outcome = "winner" AND score = "4β6 6β2 7β6 (7β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's the highest capacity for a position of 5 in 2004?
### Context:
CREATE TABLE table_name_81 (capacity INTEGER, position_in_2004 VARCHAR) [/INST]
### Response:
SELECT MAX(capacity) FROM table_name_81 WHERE position_in_2004 = "5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which venue was number 9 for 2004?
### Context:
CREATE TABLE table_name_45 (venue VARCHAR, position_in_2004 VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_45 WHERE position_in_2004 = "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 city was founded in 1857?
### Context:
CREATE TABLE table_name_99 (city VARCHAR, founded VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_99 WHERE founded = 1857 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Opponent has a Time of 2:31?
### Context:
CREATE TABLE table_name_42 (opponent VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_42 WHERE time = "2: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:
Which Method has a Round of 1, and a Time of 0:28?
### Context:
CREATE TABLE table_name_98 (method VARCHAR, round VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_98 WHERE round = 1 AND time = "0:28" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Time has an Event of call to arms i?
### Context:
CREATE TABLE table_name_15 (time VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_15 WHERE event = "call to arms i" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played on april 9
### Context:
CREATE TABLE table_name_58 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_58 WHERE date = "april 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 is the smallest frequency (kHz) that is in the location of Longview?
### Context:
CREATE TABLE table_name_61 (frequency__khz_ INTEGER, licensed_location VARCHAR) [/INST]
### Response:
SELECT MIN(frequency__khz_) FROM table_name_61 WHERE licensed_location = "longview" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a frequency (kHz) greater than 1370?
### Context:
CREATE TABLE table_name_44 (licensed_location VARCHAR, frequency__khz_ INTEGER) [/INST]
### Response:
SELECT licensed_location FROM table_name_44 WHERE frequency__khz_ > 1370 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number for Yunost?
### Context:
CREATE TABLE table_name_27 (capacity VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT COUNT(capacity) FROM table_name_27 WHERE venue = "yunost" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first prizes in USD for the Canadian Open?
### Context:
CREATE TABLE table_name_68 (tournament VARCHAR) [/INST]
### Response:
SELECT SUM(1 AS st_prize___) AS $__ FROM table_name_68 WHERE tournament = "canadian open" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Drawn has a Lost of 19?
### Context:
CREATE TABLE table_name_61 (drawn VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT drawn FROM table_name_61 WHERE lost = "19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Played has a Club of club?
### Context:
CREATE TABLE table_name_94 (played VARCHAR) [/INST]
### Response:
SELECT played FROM table_name_94 WHERE "club" = "club" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Club has 1 Losing bonus?
### Context:
CREATE TABLE table_name_18 (club VARCHAR, losing_bonus VARCHAR) [/INST]
### Response:
SELECT club FROM table_name_18 WHERE losing_bonus = "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 Losing bonus of 571 Points ?
### Context:
CREATE TABLE table_name_65 (losing_bonus VARCHAR, points_for VARCHAR) [/INST]
### Response:
SELECT losing_bonus FROM table_name_65 WHERE points_for = "571" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Lost has a Tries for of 75?
### Context:
CREATE TABLE table_name_78 (lost VARCHAR, tries_for VARCHAR) [/INST]
### Response:
SELECT lost FROM table_name_78 WHERE tries_for = "75" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent in the final of the match on 19 February 2006?
### Context:
CREATE TABLE table_name_24 (opponent_in_the_final VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent_in_the_final FROM table_name_24 WHERE date = "19 february 2006" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent in the final of the match on 26 March 2006?
### Context:
CREATE TABLE table_name_49 (opponent_in_the_final VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent_in_the_final FROM table_name_49 WHERE date = "26 march 2006" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall number of the player from Utah with a pick # higher than 7?
### Context:
CREATE TABLE table_name_54 (overall INTEGER, college VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT SUM(overall) FROM table_name_54 WHERE college = "utah" AND pick__number < 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 is the highest round of the player with a pick number lower than 34?
### Context:
CREATE TABLE table_name_83 (round INTEGER, pick__number INTEGER) [/INST]
### Response:
SELECT MAX(round) FROM table_name_83 WHERE pick__number > 34 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mitch Davis, with an overall higher than 118, have?
### Context:
CREATE TABLE table_name_50 (round INTEGER, name VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT SUM(round) FROM table_name_50 WHERE name = "mitch davis" AND overall < 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 is the highest overall of the player from Georgia?
### Context:
CREATE TABLE table_name_54 (overall INTEGER, college VARCHAR) [/INST]
### Response:
SELECT MAX(overall) FROM table_name_54 WHERE college = "georgia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the position of the player with an overall of 45?
### Context:
CREATE TABLE table_name_70 (position VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_70 WHERE overall = 45 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wins for team nsu and over 2 points?
### Context:
CREATE TABLE table_name_54 (wins INTEGER, team VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT AVG(wins) FROM table_name_54 WHERE team = "nsu" AND points > 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the earliest year associated with under 0 wins?
### Context:
CREATE TABLE table_name_55 (year INTEGER, wins INTEGER) [/INST]
### Response:
SELECT MIN(year) FROM table_name_55 WHERE 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:
How many wins for team mv agusta, over 10 points, and after 1957?
### Context:
CREATE TABLE table_name_59 (wins INTEGER, year VARCHAR, team VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT SUM(wins) FROM table_name_59 WHERE team = "mv agusta" AND points > 10 AND 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:
What College/Junior/Club Team (League) has a round of 3?
### Context:
CREATE TABLE table_name_32 (college_junior_club_team__league_ VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT college_junior_club_team__league_ FROM table_name_32 WHERE round = 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 player has a round larger than 1 in Austria?
### Context:
CREATE TABLE table_name_6 (player VARCHAR, round VARCHAR, nationality VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_6 WHERE round > 1 AND nationality = "austria" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player's nationality is from Sweden?
### Context:
CREATE TABLE table_name_83 (player VARCHAR, nationality VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_83 WHERE nationality = "sweden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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/Junior/Club Team (League) from Canada has a round smaller than 3?
### Context:
CREATE TABLE table_name_52 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT college_junior_club_team__league_ FROM table_name_52 WHERE nationality = "canada" AND round < 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the distance in 1997?
### Context:
CREATE TABLE table_name_71 (distance VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT distance FROM table_name_71 WHERE year = 1997 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponents in the final on January 5, 2003, on a hard surface?
### Context:
CREATE TABLE table_name_19 (opponents_in_the_final VARCHAR, surface VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponents_in_the_final FROM table_name_19 WHERE surface = "hard" AND date = "january 5, 2003" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the final score on the February 19, 2012 final?
### Context:
CREATE TABLE table_name_46 (score_in_the_final VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score_in_the_final FROM table_name_46 WHERE date = "february 19, 2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance with venue of away on 24 august 2007
### Context:
CREATE TABLE table_name_99 (attendance__away_ INTEGER, venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT MIN(attendance__away_) FROM table_name_99 WHERE venue = "away" AND date = "24 august 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the average attendance with result of won 2-0 on 2 november 2007
### Context:
CREATE TABLE table_name_82 (attendance__away_ INTEGER, result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT AVG(attendance__away_) FROM table_name_82 WHERE result = "won 2-0" AND date = "2 november 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the uniform number of the player whose last name is Wiltshire?
### Context:
CREATE TABLE table_name_25 (uni_number INTEGER, surname VARCHAR) [/INST]
### Response:
SELECT MIN(uni_number) FROM table_name_25 WHERE surname = "wiltshire" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank is larger than 3 with a second quarter of johnson & johnson 156,515.9, what is the fourth quarter?
### Context:
CREATE TABLE table_name_86 (fourth_quarter VARCHAR, rank VARCHAR, second_quarter VARCHAR) [/INST]
### Response:
SELECT fourth_quarter FROM table_name_86 WHERE rank > 3 AND second_quarter = "johnson & johnson 156,515.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:
With a rank of 2 what is the second quarter?
### Context:
CREATE TABLE table_name_69 (second_quarter VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT second_quarter FROM table_name_69 WHERE rank = 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:
When the third quarter is China Mobile 195,680.4, what is the rank?
### Context:
CREATE TABLE table_name_45 (rank VARCHAR, third_quarter VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_45 WHERE third_quarter = "china mobile 195,680.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:
When the first quarter is procter & gamble 138,013, what is the rank?
### Context:
CREATE TABLE table_name_15 (rank VARCHAR, first_quarter VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_15 WHERE first_quarter = "procter & gamble 138,013" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank is less than 4, and has a second quarter of exxon mobil 341,140.3, what is the fourth quarter?
### Context:
CREATE TABLE table_name_27 (fourth_quarter VARCHAR, rank VARCHAR, second_quarter VARCHAR) [/INST]
### Response:
SELECT fourth_quarter FROM table_name_27 WHERE rank < 4 AND second_quarter = "exxon mobil 341,140.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 Term end that has a Party of united australia and 184 days in office?
### Context:
CREATE TABLE table_name_74 (term_end VARCHAR, party VARCHAR, term_in_office VARCHAR) [/INST]
### Response:
SELECT term_end FROM table_name_74 WHERE party = "united australia" AND term_in_office = "184 days" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average values for 23 yards?
### Context:
CREATE TABLE table_name_5 (average INTEGER, yards VARCHAR) [/INST]
### Response:
SELECT SUM(average) FROM table_name_5 WHERE yards = 23 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the most yards for 2 sacks and an average greater than 0?
### Context:
CREATE TABLE table_name_27 (yards INTEGER, sacks VARCHAR, average VARCHAR) [/INST]
### Response:
SELECT MAX(yards) FROM table_name_27 WHERE sacks = 2 AND average > 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 listed for the Bronze, with the Location of Bangkok, and the Year of 1978?
### Context:
CREATE TABLE table_name_6 (bronze VARCHAR, location VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT bronze FROM table_name_6 WHERE location = "bangkok" AND 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 listed for the lowest Year that a Silver of Kim Kyung-Ho?
### Context:
CREATE TABLE table_name_51 (year INTEGER, silver VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_51 WHERE silver = "kim kyung-ho" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Gold that also has Bronze of Kim Sun-Bin?
### Context:
CREATE TABLE table_name_61 (gold VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT gold FROM table_name_61 WHERE bronze = "kim sun-bin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Bronze that's also got a Godl of Kim Woo-Jin?
### Context:
CREATE TABLE table_name_75 (bronze VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT bronze FROM table_name_75 WHERE gold = "kim woo-jin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed as the highest Year that's also got a Bronze of Wataru Haraguchi?
### Context:
CREATE TABLE table_name_1 (year INTEGER, bronze VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_1 WHERE bronze = "wataru haraguchi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score when their record was 35β23β15?
### Context:
CREATE TABLE table_name_58 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_58 WHERE record = "35β23β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:
Which home team has a score of 5 β 6?
### Context:
CREATE TABLE table_name_90 (home VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_90 WHERE score = "5 β 6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what county is the school of Merrillville?
### Context:
CREATE TABLE table_name_17 (county VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT county FROM table_name_17 WHERE school = "merrillville" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 school of Portage was in what conference previous?
### Context:
CREATE TABLE table_name_41 (previous_conference VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT previous_conference FROM table_name_41 WHERE school = "portage" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 school that is in Valparaiso?
### Context:
CREATE TABLE table_name_37 (school VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_37 WHERE location = "valparaiso" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which FA Cup is the highest one that has a Malaysia Cup of 0, and a Player of ahmad fouzee masuri, and a Total larger than 0?
### Context:
CREATE TABLE table_name_25 (fa_cup INTEGER, total VARCHAR, malaysia_cup VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT MAX(fa_cup) FROM table_name_25 WHERE malaysia_cup = 0 AND player = "ahmad fouzee masuri" AND total > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many totals have a Player of ahmad fouzee masuri, and an FA Cup larger than 0?
### Context:
CREATE TABLE table_name_37 (total VARCHAR, player VARCHAR, fa_cup VARCHAR) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_37 WHERE player = "ahmad fouzee masuri" AND fa_cup > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which FA Cup has a Player of khairan ezuan razali, and a Total smaller than 0?
### Context:
CREATE TABLE table_name_62 (fa_cup INTEGER, player VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT AVG(fa_cup) FROM table_name_62 WHERE player = "khairan ezuan razali" AND total < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many Malaysia Cups have a Total larger than 3, and a Player of ivan yusoff, and a League smaller than 2?
### Context:
CREATE TABLE table_name_8 (malaysia_cup VARCHAR, league VARCHAR, total VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(malaysia_cup) FROM table_name_8 WHERE total > 3 AND player = "ivan yusoff" AND league < 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which FA Cup has a Malaysia Cup larger than 0, and a Total of 8?
### Context:
CREATE TABLE table_name_44 (fa_cup INTEGER, malaysia_cup VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT SUM(fa_cup) FROM table_name_44 WHERE malaysia_cup > 0 AND total = 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:
Which Year is the highest one that has a Venue of edmonton, canada?
### Context:
CREATE TABLE table_name_50 (year INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_50 WHERE venue = "edmonton, 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:
Which Position has a Competition of world championships, and a Year larger than 1997?
### Context:
CREATE TABLE table_name_27 (position VARCHAR, competition VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_27 WHERE competition = "world championships" AND year > 1997 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Venue has a Notes of heptathlon, and a Year of 1991?
### Context:
CREATE TABLE table_name_20 (venue VARCHAR, notes VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_20 WHERE notes = "heptathlon" AND year = 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 days held has noiz as the wrestler?
### Context:
CREATE TABLE table_name_95 (days_held VARCHAR, wrestler VARCHAR) [/INST]
### Response:
SELECT days_held FROM table_name_95 WHERE wrestler = "noiz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What location has tatsuhito takaiwa as the wrestler?
### Context:
CREATE TABLE table_name_14 (location VARCHAR, wrestler VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_14 WHERE wrestler = "tatsuhito takaiwa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What event has 8 as the days held?
### Context:
CREATE TABLE table_name_33 (event VARCHAR, days_held VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_33 WHERE days_held = "8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What event has unknown as the days held.?
### Context:
CREATE TABLE table_name_98 (event VARCHAR, days_held VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_98 WHERE days_held = "unknown" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Displacement of the Iveco F1CE3481E Engine?
### Context:
CREATE TABLE table_name_87 (displacement VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT displacement FROM table_name_87 WHERE engine = "iveco f1ce3481e" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Displacement of the 180 Multijet Power/3.0 HDI Model?
### Context:
CREATE TABLE table_name_68 (displacement VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT displacement FROM table_name_68 WHERE model = "180 multijet power/3.0 hdi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Valvetrain of the Diesel Engines Model?
### Context:
CREATE TABLE table_name_12 (valvetrain VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT valvetrain FROM table_name_12 WHERE model = "diesel engines" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Year(s) won of 1994 , 1997 has what average total?
### Context:
CREATE TABLE table_name_6 (total INTEGER, year_s__won VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_6 WHERE year_s__won = "1994 , 1997" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Player of corey pavin, and a To par larger than 5 has what average total?
### Context:
CREATE TABLE table_name_41 (total INTEGER, player VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_41 WHERE player = "corey pavin" AND to_par > 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:
Total smaller than 285, and a To par larger than 1 belongs to what player?
### Context:
CREATE TABLE table_name_29 (player VARCHAR, total VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_29 WHERE total < 285 AND to_par > 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:
Total larger than 285, and a Finish of t30 belongs to what player?
### Context:
CREATE TABLE table_name_83 (player VARCHAR, total VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_83 WHERE total > 285 AND finish = "t30" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player for a team with an 18-20 record had the most rebounds in a game?
### Context:
CREATE TABLE table_name_38 (high_rebounds VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT high_rebounds FROM table_name_38 WHERE record = "18-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:
Name the total number of frequency Mhz with class of d and call sign of k201bm and ERP W less than 74
### Context:
CREATE TABLE table_name_54 (frequency_mhz VARCHAR, erp_w VARCHAR, class VARCHAR, call_sign VARCHAR) [/INST]
### Response:
SELECT COUNT(frequency_mhz) FROM table_name_54 WHERE class = "d" AND call_sign = "k201bm" AND erp_w < 74 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 frequency Mhz with call sign of k202ag
### Context:
CREATE TABLE table_name_24 (frequency_mhz INTEGER, call_sign VARCHAR) [/INST]
### Response:
SELECT MIN(frequency_mhz) FROM table_name_24 WHERE call_sign = "k202ag" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 class with call sign of k220cp
### Context:
CREATE TABLE table_name_2 (class VARCHAR, call_sign VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_2 WHERE call_sign = "k220cp" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Winnipeg Jets record?
### Context:
CREATE TABLE table_name_51 (record VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_51 WHERE opponent = "winnipeg jets" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stadium on November 8?
### Context:
CREATE TABLE table_name_26 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_26 WHERE date = "november 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:
Who was the visitor on March 17?
### Context:
CREATE TABLE table_name_53 (visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_53 WHERE date = "march 17" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the score for Toronto Maple Leafs on November 10?
### Context:
CREATE TABLE table_name_49 (score VARCHAR, home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_49 WHERE home = "toronto maple leafs" AND date = "november 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:
Who was the visitor on October 31?
### Context:
CREATE TABLE table_name_75 (visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_75 WHERE date = "october 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:
What is the rank associated with 0 wins and a 350cc class?
### Context:
CREATE TABLE table_name_42 (rank VARCHAR, wins VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_42 WHERE wins = 0 AND class = "350cc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 run 2 of the athlete from Australia with a run 1 less than 53.75?
### Context:
CREATE TABLE table_name_73 (run_2 VARCHAR, country VARCHAR, run_1 VARCHAR) [/INST]
### Response:
SELECT run_2 FROM table_name_73 WHERE country = "australia" AND run_1 < 53.75 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.