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:
How many games had 22 goals before 1935?
### Context:
CREATE TABLE table_name_23 (games INTEGER, goals VARCHAR, debut_year VARCHAR) [/INST]
### Response:
SELECT SUM(games) FROM table_name_23 WHERE goals = 22 AND debut_year < 1935 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 games a player born on 17 March 1915 and debut before 1935 had?
### Context:
CREATE TABLE table_name_68 (games INTEGER, date_of_birth VARCHAR, debut_year VARCHAR) [/INST]
### Response:
SELECT AVG(games) FROM table_name_68 WHERE date_of_birth = "17 march 1915" AND debut_year < 1935 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest number of games Jack Gaudion, who debut in 1936, played?
### Context:
CREATE TABLE table_name_88 (games INTEGER, debut_year VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT MIN(games) FROM table_name_88 WHERE debut_year = 1936 AND player = "jack gaudion" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 years at the club of the player with 2 goals and was born on 23 July 1910?
### Context:
CREATE TABLE table_name_63 (years_at_club VARCHAR, goals VARCHAR, date_of_birth VARCHAR) [/INST]
### Response:
SELECT years_at_club FROM table_name_63 WHERE goals = 2 AND date_of_birth = "23 july 1910" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
During the play-off quarter-final which team scored position was the team that scored 56 points?
### Context:
CREATE TABLE table_name_91 (pos VARCHAR, play_offs VARCHAR, pts VARCHAR) [/INST]
### Response:
SELECT pos FROM table_name_91 WHERE play_offs = "quarter-final" AND pts = "56" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score when Philadelphia is at home?
### Context:
CREATE TABLE table_name_84 (score VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_84 WHERE home = "philadelphia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the record on December 4?
### Context:
CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_55 WHERE date = "december 4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the decision when the record is 13–10–4?
### Context:
CREATE TABLE table_name_84 (decision VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT decision FROM table_name_84 WHERE record = "13–10–4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest attendance total on August 26?
### Context:
CREATE TABLE table_name_71 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_71 WHERE date = "august 26" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of the year for 5 february?
### Context:
CREATE TABLE table_name_1 (year INTEGER, date VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_1 WHERE date = "5 february" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the location for a year later than 2012?
### Context:
CREATE TABLE table_name_82 (location VARCHAR, year INTEGER) [/INST]
### Response:
SELECT location FROM table_name_82 WHERE year > 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:
who is the constructor when the laps is more than 72 and the driver is eddie irvine?
### Context:
CREATE TABLE table_name_33 (constructor VARCHAR, laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_33 WHERE laps > 72 AND driver = "eddie irvine" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record of the game where the Rockets were the visiting team?
### Context:
CREATE TABLE table_name_16 (record VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_16 WHERE visitor = "rockets" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 voltage for the pentium dual-core e2140?
### Context:
CREATE TABLE table_name_49 (voltage VARCHAR, model_number VARCHAR) [/INST]
### Response:
SELECT voltage FROM table_name_49 WHERE model_number = "pentium dual-core e2140" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What part number(s) has a frequency of 2.4 ghz?
### Context:
CREATE TABLE table_name_20 (part_number_s_ VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT part_number_s_ FROM table_name_20 WHERE frequency = "2.4 ghz" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 release price (USD) for part number hh80557pg0491m?
### Context:
CREATE TABLE table_name_98 (release_price___usd__ VARCHAR, part_number_s_ VARCHAR) [/INST]
### Response:
SELECT release_price___usd__ FROM table_name_98 WHERE part_number_s_ = "hh80557pg0491m" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What L2 cache had a release date of august 26, 2007?
### Context:
CREATE TABLE table_name_71 (l2_cache VARCHAR, release_date VARCHAR) [/INST]
### Response:
SELECT l2_cache FROM table_name_71 WHERE release_date = "august 26, 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:
Where did the team in which Tom Pryce was in Pole Position race?
### Context:
CREATE TABLE table_name_10 (location VARCHAR, pole_position VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_10 WHERE pole_position = "tom pryce" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ran the fastest lap in the team that competed in Zolder, in which Ferrari was the Constructor?
### Context:
CREATE TABLE table_name_39 (fastest_lap VARCHAR, constructor VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT fastest_lap FROM table_name_39 WHERE constructor = "ferrari" AND location = "zolder" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What tournament was on Jan 29, 2012?
### Context:
CREATE TABLE table_name_8 (tournament VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_8 WHERE date = "jan 29, 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:
What is the to par of the match with a winning score 69-67-72-64=272?
### Context:
CREATE TABLE table_name_25 (to_par VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_25 WHERE winning_score = 69 - 67 - 72 - 64 = 272 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode number of the episode that originally aired on January 26, 2009 and had a production number smaller than 38?
### Context:
CREATE TABLE table_name_53 (episode_no VARCHAR, original_airdate VARCHAR, production_no VARCHAR) [/INST]
### Response:
SELECT COUNT(episode_no) FROM table_name_53 WHERE original_airdate = "january 26, 2009" AND production_no < 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:
Who acquired tom norton?
### Context:
CREATE TABLE table_name_1 (acquired VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT acquired FROM table_name_1 WHERE player = "tom norton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did Geelong play as the home team?
### Context:
CREATE TABLE table_name_4 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_4 WHERE home_team = "geelong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did North Melbourne play as the home team?
### Context:
CREATE TABLE table_name_25 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_25 WHERE home_team = "north melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What did the away team score when playing Footscray?
### Context:
CREATE TABLE table_name_37 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_37 WHERE home_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record for October 8, 2000 before week 13?
### Context:
CREATE TABLE table_name_61 (record VARCHAR, week VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_61 WHERE week < 13 AND date = "october 8, 2000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What game site has a result of bye?
### Context:
CREATE TABLE table_name_52 (game_site VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_name_52 WHERE result = "bye" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record after week 16?
### Context:
CREATE TABLE table_name_80 (record VARCHAR, week INTEGER) [/INST]
### Response:
SELECT record FROM table_name_80 WHERE week > 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the result at psinet stadium when the cincinnati bengals are the opponent?
### Context:
CREATE TABLE table_name_39 (result VARCHAR, game_site VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_39 WHERE game_site = "psinet stadium" AND opponent = "cincinnati bengals" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record after week 12 with a game site of bye?
### Context:
CREATE TABLE table_name_26 (record VARCHAR, week VARCHAR, game_site VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_26 WHERE week > 12 AND game_site = "bye" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What day has a callback Venue of total tickets to hollywood? Question
### Context:
CREATE TABLE table_name_73 (date VARCHAR, callback_venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_73 WHERE callback_venue = "total tickets to hollywood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 golden tickets for the georgia international convention center?
### Context:
CREATE TABLE table_name_85 (golden_tickets INTEGER, callback_venue VARCHAR) [/INST]
### Response:
SELECT SUM(golden_tickets) FROM table_name_85 WHERE callback_venue = "georgia international convention center" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What class is associated with a W.A. of 0-8-0?
### Context:
CREATE TABLE table_name_10 (class VARCHAR, wa VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_10 WHERE wa = "0-8-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:
Who was the Opponent at the Game Site Indianapolis Hoosierdome?
### Context:
CREATE TABLE table_name_21 (opponent VARCHAR, game_site VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_21 WHERE game_site = "indianapolis hoosierdome" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 St Kilda Away team score?
### Context:
CREATE TABLE table_name_24 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_24 WHERE away_team = "st kilda" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the highest snatch for 68.63 bodyweight and total kg less than 290
### Context:
CREATE TABLE table_name_65 (snatch INTEGER, bodyweight VARCHAR, total__kg_ VARCHAR) [/INST]
### Response:
SELECT MAX(snatch) FROM table_name_65 WHERE bodyweight = 68.63 AND total__kg_ < 290 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the total number of snatches for clean and jerk more than 132.5 when the total kg was 315 and bodyweight was 68.63
### Context:
CREATE TABLE table_name_62 (snatch VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR) [/INST]
### Response:
SELECT COUNT(snatch) FROM table_name_62 WHERE clean_ & _jerk > 132.5 AND total__kg_ = 315 AND bodyweight = 68.63 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 clean and jerk for snatch of 140 and total kg less than 315
### Context:
CREATE TABLE table_name_10 (_jerk VARCHAR, clean_ INTEGER, snatch VARCHAR, total__kg_ VARCHAR) [/INST]
### Response:
SELECT AVG(clean_) & _jerk FROM table_name_10 WHERE snatch = 140 AND total__kg_ < 315 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constructed the car that Derek Warwick raced in with a TG181 chassis?
### Context:
CREATE TABLE table_name_20 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_20 WHERE chassis = "tg181" AND driver = "derek warwick" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Club/province of direito, less than 21 caps, and a Position of lock?
### Context:
CREATE TABLE table_name_99 (player VARCHAR, position VARCHAR, club_province VARCHAR, caps VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_99 WHERE club_province = "direito" AND caps < 21 AND position = "lock" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 caps have a Position of prop, and a Player of rui cordeiro?
### Context:
CREATE TABLE table_name_6 (caps VARCHAR, position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT COUNT(caps) FROM table_name_6 WHERE position = "prop" AND player = "rui cordeiro" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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/province has a Player of david penalva?
### Context:
CREATE TABLE table_name_41 (club_province VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT club_province FROM table_name_41 WHERE player = "david penalva" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 caps have a Date of Birth (Age) of 15 july 1981?
### Context:
CREATE TABLE table_name_49 (caps VARCHAR, date_of_birth__age_ VARCHAR) [/INST]
### Response:
SELECT COUNT(caps) FROM table_name_49 WHERE date_of_birth__age_ = "15 july 1981" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Position of fly-half, and a Caps of 3?
### Context:
CREATE TABLE table_name_41 (player VARCHAR, position VARCHAR, caps VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_41 WHERE position = "fly-half" AND caps = 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 constituency does the Conservative Darren Millar belong to?
### Context:
CREATE TABLE table_name_93 (constituency VARCHAR, conservative VARCHAR) [/INST]
### Response:
SELECT constituency FROM table_name_93 WHERE conservative = "darren millar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constituency was the result labour hold and Liberal democrat Elizabeth Newton won?
### Context:
CREATE TABLE table_name_12 (constituency VARCHAR, result VARCHAR, liberal_democrats VARCHAR) [/INST]
### Response:
SELECT constituency FROM table_name_12 WHERE result = "labour hold" AND liberal_democrats = "elizabeth newton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who has the Winning score of –10 (66-71-62-71=270) ?
### Context:
CREATE TABLE table_name_21 (runner_s__up VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT runner_s__up FROM table_name_21 WHERE winning_score = –10(66 - 71 - 62 - 71 = 270) </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Runner(s)-up that has a Date of may 24, 1999?
### Context:
CREATE TABLE table_name_37 (runner_s__up VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT runner_s__up FROM table_name_37 WHERE date = "may 24, 1999" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tournament has a Margin of victory of 7 strokes
### Context:
CREATE TABLE table_name_38 (tournament VARCHAR, margin_of_victory VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_38 WHERE margin_of_victory = "7 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:
What was the decision of the Kings game when Chicago was the visiting team?
### Context:
CREATE TABLE table_name_71 (decision VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT decision FROM table_name_71 WHERE visitor = "chicago" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What round was the nose tackle drafted?
### Context:
CREATE TABLE table_name_38 (round INTEGER, position VARCHAR) [/INST]
### Response:
SELECT SUM(round) FROM table_name_38 WHERE position = "nose tackle" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Record when Buffalo is at Home?
### Context:
CREATE TABLE table_name_36 (record VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_36 WHERE home = "buffalo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What were the winnings for the Chevrolet with a number larger than 29 and scored 102 points?
### Context:
CREATE TABLE table_name_65 (winnings VARCHAR, points VARCHAR, make VARCHAR, car__number VARCHAR) [/INST]
### Response:
SELECT winnings FROM table_name_65 WHERE make = "chevrolet" AND car__number > 29 AND points = 102 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the make of car 31?
### Context:
CREATE TABLE table_name_47 (make VARCHAR, car__number VARCHAR) [/INST]
### Response:
SELECT make FROM table_name_47 WHERE car__number = 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 car number that has less than 369 laps for a Dodge with more than 49 points?
### Context:
CREATE TABLE table_name_62 (car__number INTEGER, points VARCHAR, laps VARCHAR, make VARCHAR) [/INST]
### Response:
SELECT SUM(car__number) FROM table_name_62 WHERE laps < 369 AND make = "dodge" AND points > 49 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the total number of ties for name of totals and lost more than 30
### Context:
CREATE TABLE table_name_27 (ties VARCHAR, name VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT COUNT(ties) FROM table_name_27 WHERE name = "totals" AND lost > 30 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the total number of ties for win % more than 0 and tenure of 2001-2011 with lost more than 16
### Context:
CREATE TABLE table_name_3 (ties VARCHAR, lost VARCHAR, win__percentage VARCHAR, tenure VARCHAR) [/INST]
### Response:
SELECT COUNT(ties) FROM table_name_3 WHERE win__percentage > 0 AND tenure = "2001-2011" AND lost > 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the record when the attendance was 28,531?
### Context:
CREATE TABLE table_name_62 (record VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_62 WHERE attendance = "28,531" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record when the attendance was 41,573?
### Context:
CREATE TABLE table_name_25 (record VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_25 WHERE attendance = "41,573" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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's the opponent for June 13?
### Context:
CREATE TABLE table_name_88 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_88 WHERE date = "june 13" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where does center Joakim Andersson come from?
### Context:
CREATE TABLE table_name_67 (nationality VARCHAR, position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_67 WHERE position = "center" AND player = "joakim andersson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position does Zack Torquato play?
### Context:
CREATE TABLE table_name_6 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_6 WHERE player = "zack torquato" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a lane of 4 has a QUART greater than 44.62, what is the lowest HEAT?
### Context:
CREATE TABLE table_name_44 (heat INTEGER, lane VARCHAR, quart VARCHAR) [/INST]
### Response:
SELECT MIN(heat) FROM table_name_44 WHERE lane = 4 AND quart > 44.62 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the game at Arden Street Oval occur?
### Context:
CREATE TABLE table_name_7 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_7 WHERE venue = "arden street oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What did the away team score when playing North Melbourne?
### Context:
CREATE TABLE table_name_79 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_79 WHERE home_team = "north melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people attended the game at VFL Park?
### Context:
CREATE TABLE table_name_71 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_71 WHERE venue = "vfl park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team was fitzroy, what did the away team score?
### Context:
CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_16 WHERE home_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fastest lap for the brazilian grand prix
### Context:
CREATE TABLE table_name_39 (fastest_lap VARCHAR, grand_prix VARCHAR) [/INST]
### Response:
SELECT fastest_lap FROM table_name_39 WHERE grand_prix = "brazilian grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pole position at the japanese grand prix when the fastest lap is damon hill
### Context:
CREATE TABLE table_name_62 (pole_position VARCHAR, fastest_lap VARCHAR, grand_prix VARCHAR) [/INST]
### Response:
SELECT pole_position FROM table_name_62 WHERE fastest_lap = "damon hill" AND grand_prix = "japanese grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lowest round for when pole position and winning driver is michael schumacher
### Context:
CREATE TABLE table_name_27 (round INTEGER, pole_position VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_27 WHERE fastest_lap = "michael schumacher" AND winning_driver = "michael schumacher" AND pole_position = "michael schumacher" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 reg GP for nathan barrett in a round less than 8?
### Context:
CREATE TABLE table_name_62 (reg_gp VARCHAR, player VARCHAR, rd__number VARCHAR) [/INST]
### Response:
SELECT COUNT(reg_gp) FROM table_name_62 WHERE player = "nathan barrett" AND rd__number < 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 organization ranks 68?
### Context:
CREATE TABLE table_name_14 (organization VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT organization FROM table_name_14 WHERE rank = "68" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year is the happy planet index?
### Context:
CREATE TABLE table_name_79 (year INTEGER, index VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_79 WHERE index = "happy planet index" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year for the legatum institute?
### Context:
CREATE TABLE table_name_79 (year VARCHAR, organization VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_79 WHERE organization = "legatum institute" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What 1st leg has Alense Vivaldi (Trentino) as Agg.?
### Context:
CREATE TABLE table_name_58 (agg VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_name_58 WHERE agg = "alense vivaldi (trentino)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the grid for the Minardi Team USA with laps smaller than 90?
### Context:
CREATE TABLE table_name_42 (grid VARCHAR, laps VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT grid FROM table_name_42 WHERE laps < 90 AND team = "minardi team usa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Fitzroy's Home team score?
### Context:
CREATE TABLE table_name_60 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_60 WHERE home_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Fitzroy's Home team Crowd?
### Context:
CREATE TABLE table_name_90 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_90 WHERE home_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gold total for nations ranked 6 with 1 total medal and 1 bronze medal?
### Context:
CREATE TABLE table_name_90 (gold INTEGER, bronze VARCHAR, total VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT AVG(gold) FROM table_name_90 WHERE total = 1 AND rank = "6" AND bronze > 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who drove the grid 10 car?
### Context:
CREATE TABLE table_name_3 (driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_3 WHERE grid = 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 drive the car that went under 60 laps and spun off?
### Context:
CREATE TABLE table_name_25 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_25 WHERE laps < 60 AND time_retired = "spun off" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What number of Yards has 32 as an In 20?
### Context:
CREATE TABLE table_name_90 (yards VARCHAR, in_20 VARCHAR) [/INST]
### Response:
SELECT COUNT(yards) FROM table_name_90 WHERE in_20 = 32 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on June 12?
### Context:
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_76 WHERE date = "june 12" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the top attendance for weeks past 2 on october 29, 1961?
### Context:
CREATE TABLE table_name_57 (attendance INTEGER, week VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_57 WHERE week > 2 AND date = "october 29, 1961" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 low week from october 15, 1961?
### Context:
CREATE TABLE table_name_82 (week INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_name_82 WHERE date = "october 15, 1961" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 low attendance rate against buffalo bills?
### Context:
CREATE TABLE table_name_98 (attendance INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_98 WHERE opponent = "buffalo bills" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 November 28?
### Context:
CREATE TABLE table_name_37 (team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_37 WHERE date = "november 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:
What driver has a Time/Retired of 2:16:38.0?
### Context:
CREATE TABLE table_name_19 (driver VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_19 WHERE time_retired = "2:16:38.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 time/retired for grid 18?
### Context:
CREATE TABLE table_name_49 (time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_49 WHERE grid = 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Venue of the North Melbourne Away Team?
### Context:
CREATE TABLE table_name_33 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_33 WHERE away_team = "north melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is Delta 0:40?
### Context:
CREATE TABLE table_name_7 (date VARCHAR, delta VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_7 WHERE delta = "0:40" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the Winner on June 2, 2007?
### Context:
CREATE TABLE table_name_44 (winner VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_44 WHERE date = "june 2, 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 did the home team of essendon score?
### Context:
CREATE TABLE table_name_78 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_78 WHERE home_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue was lake oval what did the home team score?
### Context:
CREATE TABLE table_name_56 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_56 WHERE venue = "lake oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What did the away team score when they were playing collingwood?
### Context:
CREATE TABLE table_name_47 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_47 WHERE home_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 from Fort Lauderdale, Florida?
### Context:
CREATE TABLE table_name_3 (position VARCHAR, hometown VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_3 WHERE hometown = "fort lauderdale, florida" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 from Beaumont, Texas?
### Context:
CREATE TABLE table_name_83 (position VARCHAR, hometown VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_83 WHERE hometown = "beaumont, texas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position did Max Redfield play?
### Context:
CREATE TABLE table_name_97 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_97 WHERE player = "max redfield" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the player from Liberty County High School attend?
### Context:
CREATE TABLE table_name_58 (college VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_58 WHERE school = "liberty county high school" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.