text
stringlengths 371
1.02k
|
---|
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
what is the money for argentina?
### Input:
CREATE TABLE table_name_34 (money___ VARCHAR, country VARCHAR)
### Response:[/INST]SELECT COUNT(money___) AS $__ FROM table_name_34 WHERE country = "argentina"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Find the first names of professors who are not playing Canoeing or Kayaking.
### Input:
CREATE TABLE faculty (lname VARCHAR, rank VARCHAR); CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR)
### Response:[/INST]SELECT lname FROM faculty WHERE rank = 'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' OR T3.activity_name = 'Kayaking'</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the sum of the glyph with a 38 hexadecimal and a binary less than 111000?
### Input:
CREATE TABLE table_name_4 (glyph INTEGER, hexadecimal VARCHAR, binary VARCHAR)
### Response:[/INST]SELECT SUM(glyph) FROM table_name_4 WHERE hexadecimal = 38 AND binary < 111000</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
On what date did Goal 24 take place?
### Input:
CREATE TABLE table_name_76 (date VARCHAR, goal VARCHAR)
### Response:[/INST]SELECT date FROM table_name_76 WHERE goal = 24</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the nationality for rank 27?
### Input:
CREATE TABLE table_name_79 (nationality VARCHAR, rank VARCHAR)
### Response:[/INST]SELECT nationality FROM table_name_79 WHERE rank = 27</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What was the record at the game held on December 24, 2005?
### Input:
CREATE TABLE table_name_11 (record VARCHAR, date VARCHAR)
### Response:[/INST]SELECT record FROM table_name_11 WHERE date = "december 24, 2005"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Where was the mediterranean games held?
### Input:
CREATE TABLE table_name_83 (venue VARCHAR, tournament VARCHAR)
### Response:[/INST]SELECT venue FROM table_name_83 WHERE tournament = "mediterranean games"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the total losses against 1412, and 10 wins, but draws less than 0?
### Input:
CREATE TABLE table_name_56 (losses INTEGER, draws VARCHAR, against VARCHAR, wins VARCHAR)
### Response:[/INST]SELECT SUM(losses) FROM table_name_56 WHERE against > 1412 AND wins = 10 AND draws < 0</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the total number of Tests when the lost is less than 9 for sir fred allen?
### Input:
CREATE TABLE table_name_43 (tests VARCHAR, lost VARCHAR, name VARCHAR)
### Response:[/INST]SELECT COUNT(tests) FROM table_name_43 WHERE lost < 9 AND name = "sir fred allen"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Who are the champions that have won at Aguas Buenas, Puerto Rico?
### Input:
CREATE TABLE table_1272033_1 (champion_s_ VARCHAR, location VARCHAR)
### Response:[/INST]SELECT champion_s_ FROM table_1272033_1 WHERE location = "Aguas Buenas, Puerto Rico"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Who won the Paris-Roubaix in 2006?
### Input:
CREATE TABLE table_name_33 (paris_roubaix___fra__ VARCHAR, year VARCHAR)
### Response:[/INST]SELECT paris_roubaix___fra__ FROM table_name_33 WHERE year = 2006</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the record for the NY Rangers?
### Input:
CREATE TABLE table_name_92 (record VARCHAR, home VARCHAR)
### Response:[/INST]SELECT record FROM table_name_92 WHERE home = "ny rangers"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What events did the competition that took place in 1997 have?
### Input:
CREATE TABLE table_name_96 (notes VARCHAR, year VARCHAR)
### Response:[/INST]SELECT notes FROM table_name_96 WHERE year = 1997</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
How many attended the game on 12/17 with stephen jackson as the leading scorer?
### Input:
CREATE TABLE table_name_45 (attendance INTEGER, leading_scorer VARCHAR, date VARCHAR)
### Response:[/INST]SELECT SUM(attendance) FROM table_name_45 WHERE leading_scorer = "stephen jackson" AND date = "12/17"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the time for South Korea?
### Input:
CREATE TABLE table_name_3 (time VARCHAR, country VARCHAR)
### Response:[/INST]SELECT time FROM table_name_3 WHERE country = "south korea"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Power of 220kw (299hp) @ 4000 has what torque?
### Input:
CREATE TABLE table_name_38 (torque VARCHAR, power VARCHAR)
### Response:[/INST]SELECT torque FROM table_name_38 WHERE power = "220kw (299hp) @ 4000"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Tell me the tournament for opponents of andrei pavel rogier wassen
### Input:
CREATE TABLE table_name_53 (tournament VARCHAR, opponents_in_the_final VARCHAR)
### Response:[/INST]SELECT tournament FROM table_name_53 WHERE opponents_in_the_final = "andrei pavel rogier wassen"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Which chassis had an entrant of John Mecom?
### Input:
CREATE TABLE table_name_37 (chassis VARCHAR, entrant VARCHAR)
### Response:[/INST]SELECT chassis FROM table_name_37 WHERE entrant = "john mecom"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What was the loss of the game when the record was 20-16?
### Input:
CREATE TABLE table_name_77 (loss VARCHAR, record VARCHAR)
### Response:[/INST]SELECT loss FROM table_name_77 WHERE record = "20-16"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the score from September 15 that has the Indians as the opponent?
### Input:
CREATE TABLE table_name_35 (score VARCHAR, opponent VARCHAR, date VARCHAR)
### Response:[/INST]SELECT score FROM table_name_35 WHERE opponent = "indians" AND date = "september 15"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the up/down at the venue that hosted 7 games?
### Input:
CREATE TABLE table_1161065_28 (up_down VARCHAR, hosted VARCHAR)
### Response:[/INST]SELECT up_down FROM table_1161065_28 WHERE hosted = 7</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What national has 4.45 for o and 4.55 for xo?
### Input:
CREATE TABLE table_name_13 (nationality VARCHAR)
### Response:[/INST]SELECT nationality FROM table_name_13 WHERE 445 = "o" AND 455 = "xo"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
At which stadiums was attendance total 79176?
### Input:
CREATE TABLE table_16028479_2 (game_site VARCHAR, attendance VARCHAR)
### Response:[/INST]SELECT game_site FROM table_16028479_2 WHERE attendance = 79176</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What was the score of the game where the home team was the cairns taipans?
### Input:
CREATE TABLE table_name_85 (score VARCHAR, home_team VARCHAR)
### Response:[/INST]SELECT score FROM table_name_85 WHERE home_team = "cairns taipans"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What date were the runner ups pat hurst juli inkster?
### Input:
CREATE TABLE table_1121352_2 (date VARCHAR, runner_s__up VARCHAR)
### Response:[/INST]SELECT date FROM table_1121352_2 WHERE runner_s__up = "Pat Hurst Juli Inkster"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What was the date of the game that tied at 3?
### Input:
CREATE TABLE table_name_56 (date VARCHAR, tie_no VARCHAR)
### Response:[/INST]SELECT date FROM table_name_56 WHERE tie_no = "3"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Is WPEO in stereo?
### Input:
CREATE TABLE table_name_37 (stereo VARCHAR, call VARCHAR)
### Response:[/INST]SELECT stereo FROM table_name_37 WHERE call = "wpeo"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Name the number of Earnings per share (¢) which has a Net profit (US $m) larger than 66, and a Year to April smaller than 2010?
### Input:
CREATE TABLE table_name_38 (earnings_per_share__ VARCHAR, net_profit__us_$m_ VARCHAR, year_to_april VARCHAR)
### Response:[/INST]SELECT COUNT(earnings_per_share__) AS ¢_ FROM table_name_38 WHERE net_profit__us_$m_ > 66 AND year_to_april < 2010</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Which player has an A-League of 113 (0)?
### Input:
CREATE TABLE table_name_6 (name VARCHAR, a_league VARCHAR)
### Response:[/INST]SELECT name FROM table_name_6 WHERE a_league = "113 (0)"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What engine was introduced in 1935?
### Input:
CREATE TABLE table_name_66 (engine VARCHAR, introduced VARCHAR)
### Response:[/INST]SELECT engine FROM table_name_66 WHERE introduced = "1935"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What's the 123kg of the Total world record?
### Input:
CREATE TABLE table_name_41 (world_record VARCHAR)
### Response:[/INST]SELECT 123 AS kg FROM table_name_41 WHERE world_record = "total"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Which parishes have the highworth railroad?
### Input:
CREATE TABLE table_16226584_1 (parish VARCHAR, name VARCHAR)
### Response:[/INST]SELECT parish FROM table_16226584_1 WHERE name = "Highworth"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What are the dates of squadron 33?
### Input:
CREATE TABLE table_name_6 (dates VARCHAR, squadron VARCHAR)
### Response:[/INST]SELECT dates FROM table_name_6 WHERE squadron = "squadron 33"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What lane did Bronte Barratt, who had a rank larger than 4, swim in?
### Input:
CREATE TABLE table_name_79 (lane INTEGER, name VARCHAR, rank VARCHAR)
### Response:[/INST]SELECT AVG(lane) FROM table_name_79 WHERE name = "bronte barratt" AND rank > 4</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What was the location the fight was held at that lasted 5 rounds?
### Input:
CREATE TABLE table_name_23 (location VARCHAR, round VARCHAR)
### Response:[/INST]SELECT location FROM table_name_23 WHERE round = "5"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
In the match where Melbourne was the away team, how much did they score?
### Input:
CREATE TABLE table_name_52 (away_team VARCHAR)
### Response:[/INST]SELECT away_team AS score FROM table_name_52 WHERE away_team = "melbourne"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is 2009, when 2008 is 1R, and when Tournament is French Open?
### Input:
CREATE TABLE table_name_59 (tournament VARCHAR)
### Response:[/INST]SELECT 2009 FROM table_name_59 WHERE 2008 = "1r" AND tournament = "french open"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Which Yards have Carries smaller than 23, and a Team of at chi, and an Average smaller than 8.5?
### Input:
CREATE TABLE table_name_5 (yards INTEGER, average VARCHAR, carries VARCHAR, team VARCHAR)
### Response:[/INST]SELECT MIN(yards) FROM table_name_5 WHERE carries < 23 AND team = "at chi" AND average < 8.5</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Who is the away side when collingwood is at home?
### Input:
CREATE TABLE table_name_34 (away_team VARCHAR, home_team VARCHAR)
### Response:[/INST]SELECT away_team FROM table_name_34 WHERE home_team = "collingwood"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Who is the director of the production number 9368?
### Input:
CREATE TABLE table_name_51 (director VARCHAR, production_number VARCHAR)
### Response:[/INST]SELECT director FROM table_name_51 WHERE production_number = "9368"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Tell me the competition for 2nd position with year more than 2005
### Input:
CREATE TABLE table_name_23 (competition VARCHAR, position VARCHAR, year VARCHAR)
### Response:[/INST]SELECT competition FROM table_name_23 WHERE position = "2nd" AND year > 2005</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Name the growth rate for hooghly
### Input:
CREATE TABLE table_2527063_3 (growth_rate VARCHAR, district VARCHAR)
### Response:[/INST]SELECT growth_rate FROM table_2527063_3 WHERE district = "Hooghly"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Show the name, location, open year for all tracks with a seating higher than the average.
### Input:
CREATE TABLE track (name VARCHAR, LOCATION VARCHAR, year_opened VARCHAR, seating INTEGER)
### Response:[/INST]SELECT name, LOCATION, year_opened FROM track WHERE seating > (SELECT AVG(seating) FROM track)</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Which vocal type is the most frequently appearring type?
### Input:
CREATE TABLE vocals (TYPE VARCHAR)
### Response:[/INST]SELECT TYPE FROM vocals GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the Notes of the Country with a Rank of 4?
### Input:
CREATE TABLE table_name_31 (notes VARCHAR, rank VARCHAR)
### Response:[/INST]SELECT notes FROM table_name_31 WHERE rank = 4</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Which European competitions have a Pos of 6?
### Input:
CREATE TABLE table_name_85 (european_competitions VARCHAR, pos VARCHAR)
### Response:[/INST]SELECT european_competitions FROM table_name_85 WHERE pos = 6</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the position of the player with an overall of 45?
### Input:
CREATE TABLE table_name_70 (position VARCHAR, overall VARCHAR)
### Response:[/INST]SELECT position FROM table_name_70 WHERE overall = 45</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
what is smallest number in fleet for chassis manufacturer Scania and fleet numbers is 3230?
### Input:
CREATE TABLE table_1425948_1 (number_in_fleet INTEGER, chassis_manufacturer VARCHAR, fleet_numbers VARCHAR)
### Response:[/INST]SELECT MIN(number_in_fleet) FROM table_1425948_1 WHERE chassis_manufacturer = "Scania" AND fleet_numbers = "3230"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Which Copa del Rey has a La Liga smaller than 0?
### Input:
CREATE TABLE table_name_80 (copa_del_rey INTEGER, la_liga INTEGER)
### Response:[/INST]SELECT SUM(copa_del_rey) FROM table_name_80 WHERE la_liga < 0</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the Input/output operations per second for the emlc flash?
### Input:
CREATE TABLE table_27615520_1 (speed___iops__ VARCHAR, storage_medium VARCHAR)
### Response:[/INST]SELECT speed___iops__ FROM table_27615520_1 WHERE storage_medium = "eMLC Flash"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Who directed the film that received an award of £6,245?
### Input:
CREATE TABLE table_name_10 (director_s_ VARCHAR, award VARCHAR)
### Response:[/INST]SELECT director_s_ FROM table_name_10 WHERE award = "£6,245"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What was the date of game 6?
### Input:
CREATE TABLE table_20928649_1 (date VARCHAR, game VARCHAR)
### Response:[/INST]SELECT date FROM table_20928649_1 WHERE game = 6</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
How many years has the Mercury Prize award been given?
### Input:
CREATE TABLE table_name_47 (year VARCHAR, award VARCHAR)
### Response:[/INST]SELECT COUNT(year) FROM table_name_47 WHERE award = "mercury prize"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the average enrollment 08=09, for the team that had a previous conference of lake and IHSAA class of 3A?
### Input:
CREATE TABLE table_name_28 (enrollment_08_09 INTEGER, previous_counference VARCHAR, ihsaa_class VARCHAR)
### Response:[/INST]SELECT AVG(enrollment_08_09) FROM table_name_28 WHERE previous_counference = "lake" AND ihsaa_class = "3a"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
On 27 January 1968 who was the Home Team when the Away team was Carlisle United?
### Input:
CREATE TABLE table_name_32 (home_team VARCHAR, date VARCHAR, away_team VARCHAR)
### Response:[/INST]SELECT home_team FROM table_name_32 WHERE date = "27 january 1968" AND away_team = "carlisle united"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Which Club team has a Pick larger than 139?
### Input:
CREATE TABLE table_name_55 (club_team VARCHAR, pick INTEGER)
### Response:[/INST]SELECT club_team FROM table_name_55 WHERE pick > 139</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the nationality of the player in Position C from Round 1?
### Input:
CREATE TABLE table_name_17 (nationality VARCHAR, round VARCHAR, position VARCHAR)
### Response:[/INST]SELECT nationality FROM table_name_17 WHERE round = "1" AND position = "c"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the date of the game played with Birmingham City as the away team?
### Input:
CREATE TABLE table_24887326_7 (date VARCHAR, away_team VARCHAR)
### Response:[/INST]SELECT date FROM table_24887326_7 WHERE away_team = "Birmingham City"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What was the turnout percentage in the place that had 44.6% vote for brown?
### Input:
CREATE TABLE table_24115349_6 (turnout__percentage VARCHAR, brown__percentage VARCHAR)
### Response:[/INST]SELECT turnout__percentage FROM table_24115349_6 WHERE brown__percentage = "44.6%"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What was the average for the country with the swimsuit score of 9.57?
### Input:
CREATE TABLE table_11884814_3 (average VARCHAR, swimsuit VARCHAR)
### Response:[/INST]SELECT average FROM table_11884814_3 WHERE swimsuit = "9.57"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the Event, when Year is 2002, and when Competition is European Indoor Championships?
### Input:
CREATE TABLE table_name_6 (event VARCHAR, year VARCHAR, competition VARCHAR)
### Response:[/INST]SELECT event FROM table_name_6 WHERE year = 2002 AND competition = "european indoor championships"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What's the Kilometers listed that also has the Station Code of Kuda?
### Input:
CREATE TABLE table_name_87 (kilometers VARCHAR, station_code VARCHAR)
### Response:[/INST]SELECT kilometers FROM table_name_87 WHERE station_code = "kuda"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the attendance in the game in the 2010-11 season, when the score was 2–0?
### Input:
CREATE TABLE table_name_39 (attendance INTEGER, season VARCHAR, score VARCHAR)
### Response:[/INST]SELECT MIN(attendance) FROM table_name_39 WHERE season = "2010-11" AND score = "2–0"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Which date was hermanos rodríguez the location?
### Input:
CREATE TABLE table_name_37 (date VARCHAR, location VARCHAR)
### Response:[/INST]SELECT date FROM table_name_37 WHERE location = "hermanos rodríguez"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the location attendance from Dwyane Wade (27) high points?
### Input:
CREATE TABLE table_name_63 (location_attendance VARCHAR, high_points VARCHAR)
### Response:[/INST]SELECT location_attendance FROM table_name_63 WHERE high_points = "dwyane wade (27)"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What was the Score of the 2008 Africa Cup of Nations Competition?
### Input:
CREATE TABLE table_name_3 (score VARCHAR, competition VARCHAR)
### Response:[/INST]SELECT score FROM table_name_3 WHERE competition = "2008 africa cup of nations"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the total number of byes that has 11 wins and a Tallangatta DFL of Barnawartha?
### Input:
CREATE TABLE table_name_3 (byes VARCHAR, wins VARCHAR, tallangatta_dfl VARCHAR)
### Response:[/INST]SELECT COUNT(byes) FROM table_name_3 WHERE wins = 11 AND tallangatta_dfl = "barnawartha"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the Versus with a Player with ko otieno, with Venue with bloemfontein?
### Input:
CREATE TABLE table_name_37 (versus VARCHAR, player VARCHAR, venue VARCHAR)
### Response:[/INST]SELECT versus FROM table_name_37 WHERE player = "ko otieno" AND venue = "bloemfontein"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Who is the Artist with an Issue Price (BU) [Clarification Needed] of n/a along with a Year larger than 2004, and Mintage (Proof) of 25,000?
### Input:
CREATE TABLE table_name_53 (artist VARCHAR, mintage__proof_ VARCHAR, year VARCHAR, issue_price__bu_ VARCHAR, _clarification_needed_ VARCHAR)
### Response:[/INST]SELECT artist FROM table_name_53 WHERE issue_price__bu_[_clarification_needed_] = "n/a" AND year > 2004 AND mintage__proof_ = "25,000"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the average share for episodes with over 7.82 viewers, ranks of 3 and a weekly rank of 54?
### Input:
CREATE TABLE table_name_56 (share INTEGER, rank__week_ VARCHAR, viewers__millions_ VARCHAR, rank__timeslot_ VARCHAR)
### Response:[/INST]SELECT AVG(share) FROM table_name_56 WHERE viewers__millions_ > 7.82 AND rank__timeslot_ = "3" AND rank__week_ = "54"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Who was the opponent at the game with a score of 6–5 (10)?
### Input:
CREATE TABLE table_name_47 (opponent VARCHAR, score VARCHAR)
### Response:[/INST]SELECT opponent FROM table_name_47 WHERE score = "6–5 (10)"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the overall draft number for the running back drafted after round 1 from fresno state?
### Input:
CREATE TABLE table_name_68 (overall INTEGER, college VARCHAR, position VARCHAR, round VARCHAR)
### Response:[/INST]SELECT SUM(overall) FROM table_name_68 WHERE position = "running back" AND round > 1 AND college = "fresno state"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What was the smallest numbered rank for Michael Bevan?
### Input:
CREATE TABLE table_21100348_10 (rank INTEGER, player VARCHAR)
### Response:[/INST]SELECT MIN(rank) FROM table_21100348_10 WHERE player = "Michael Bevan"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What was the elapsed time for the championship that had $9,377.42 in prize money?
### Input:
CREATE TABLE table_22050544_4 (elapsed_time VARCHAR, prize VARCHAR)
### Response:[/INST]SELECT elapsed_time FROM table_22050544_4 WHERE prize = "$9,377.42"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Who were the candidates in the election where the incumbent is George M. Grant?
### Input:
CREATE TABLE table_1341973_3 (candidates VARCHAR, incumbent VARCHAR)
### Response:[/INST]SELECT candidates FROM table_1341973_3 WHERE incumbent = "George M. Grant"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What was the total games played at the Staples Center?
### Input:
CREATE TABLE table_name_56 (game INTEGER, location VARCHAR)
### Response:[/INST]SELECT SUM(game) FROM table_name_56 WHERE location = "staples center"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Which Pick # has a College of concordia?
### Input:
CREATE TABLE table_name_45 (pick__number INTEGER, college VARCHAR)
### Response:[/INST]SELECT MAX(pick__number) FROM table_name_45 WHERE college = "concordia"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What was the score of the final in which Melanie South played with partner Katie O'Brien?
### Input:
CREATE TABLE table_name_27 (score VARCHAR, partner VARCHAR)
### Response:[/INST]SELECT score FROM table_name_27 WHERE partner = "katie o'brien"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the to par of player john buczek, who has a t9 place and is from the United States?
### Input:
CREATE TABLE table_name_36 (to_par VARCHAR, player VARCHAR, place VARCHAR, country VARCHAR)
### Response:[/INST]SELECT to_par FROM table_name_36 WHERE place = "t9" AND country = "united states" AND player = "john buczek"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the average laps for lorenzo bandini with a grid under 3?
### Input:
CREATE TABLE table_name_91 (laps INTEGER, driver VARCHAR, grid VARCHAR)
### Response:[/INST]SELECT AVG(laps) FROM table_name_91 WHERE driver = "lorenzo bandini" AND grid < 3</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the enrollment number for Rockville?
### Input:
CREATE TABLE table_name_27 (enrollment VARCHAR, location VARCHAR)
### Response:[/INST]SELECT COUNT(enrollment) FROM table_name_27 WHERE location = "rockville"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Which episode 4 has a Star of anna powierza?
### Input:
CREATE TABLE table_name_87 (episode_4 VARCHAR, star VARCHAR)
### Response:[/INST]SELECT episode_4 FROM table_name_87 WHERE star = "anna powierza"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the smallest introduced value?
### Input:
CREATE TABLE table_1081459_1 (introduced INTEGER)
### Response:[/INST]SELECT MIN(introduced) FROM table_1081459_1</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What college did hunter henry go to?
### Input:
CREATE TABLE table_name_30 (college VARCHAR, player VARCHAR)
### Response:[/INST]SELECT college FROM table_name_30 WHERE player = "hunter henry"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
How many standards are there, when the launch date was 17.04.2006?
### Input:
CREATE TABLE table_19246_1 (standard VARCHAR, launch_date__ddmmyyyy_ VARCHAR)
### Response:[/INST]SELECT COUNT(standard) FROM table_19246_1 WHERE launch_date__ddmmyyyy_ = "17.04.2006"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What was the result for Steve & Anna when the score was 21 (7, 7, 7)?
### Input:
CREATE TABLE table_name_80 (result VARCHAR, score VARCHAR, couple VARCHAR)
### Response:[/INST]SELECT result FROM table_name_80 WHERE score = "21 (7, 7, 7)" AND couple = "steve & anna"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the smallest number of Total Goals?
### Input:
CREATE TABLE table_10240125_1 (total_goals INTEGER)
### Response:[/INST]SELECT MIN(total_goals) FROM table_10240125_1</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Which team has a 1:10.998 best?
### Input:
CREATE TABLE table_name_87 (team VARCHAR, best VARCHAR)
### Response:[/INST]SELECT team FROM table_name_87 WHERE best = "1:10.998"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Which report has a Set 3 value of 21–25?
### Input:
CREATE TABLE table_name_93 (report VARCHAR, set_3 VARCHAR)
### Response:[/INST]SELECT report FROM table_name_93 WHERE set_3 = "21–25"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
How many positions have a total time of 1:30.4135?
### Input:
CREATE TABLE table_23018775_3 (pos VARCHAR, total_time VARCHAR)
### Response:[/INST]SELECT COUNT(pos) FROM table_23018775_3 WHERE total_time = "1:30.4135"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
How many members arrived on the main island in week 4?
### Input:
CREATE TABLE table_11764007_2 (member VARCHAR, week_arrived_on_main_island VARCHAR)
### Response:[/INST]SELECT COUNT(member) FROM table_11764007_2 WHERE week_arrived_on_main_island = "4"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is Score, when Country is "United States", and when Player is "Mark Brooks"?
### Input:
CREATE TABLE table_name_34 (score VARCHAR, country VARCHAR, player VARCHAR)
### Response:[/INST]SELECT score FROM table_name_34 WHERE country = "united states" AND player = "mark brooks"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the date that a hell ship sunk in the East China Sea?
### Input:
CREATE TABLE table_name_71 (date VARCHAR, where_sunk VARCHAR, ship_type VARCHAR)
### Response:[/INST]SELECT date FROM table_name_71 WHERE where_sunk = "east china sea" AND ship_type = "hell ship"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Which Gold is the lowest one that has a Bronze of 14, and a Total larger than 42?
### Input:
CREATE TABLE table_name_47 (gold INTEGER, bronze VARCHAR, total VARCHAR)
### Response:[/INST]SELECT MIN(gold) FROM table_name_47 WHERE bronze = 14 AND total > 42</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
Which team had a rank under 4 with a time of 1:14.04.88?
### Input:
CREATE TABLE table_name_69 (team VARCHAR, rank VARCHAR, time VARCHAR)
### Response:[/INST]SELECT team FROM table_name_69 WHERE rank < 4 AND time = "1:14.04.88"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
On what date did the New York Giants host a game?
### Input:
CREATE TABLE table_name_42 (date VARCHAR, host_team VARCHAR)
### Response:[/INST]SELECT date FROM table_name_42 WHERE host_team = "new york giants"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the minimum score given in judging panel points?
### Input:
CREATE TABLE table_26485957_1 (judging_panel_points INTEGER)
### Response:[/INST]SELECT MIN(judging_panel_points) FROM table_26485957_1</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What region is the ALCA-272 Catalog?
### Input:
CREATE TABLE table_name_88 (region VARCHAR, catalog VARCHAR)
### Response:[/INST]SELECT region FROM table_name_88 WHERE catalog = "alca-272"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What was the open cup results in 2004?
### Input:
CREATE TABLE table_1243601_1 (open_cup VARCHAR, year VARCHAR)
### Response:[/INST]SELECT open_cup FROM table_1243601_1 WHERE year = "2004"</s> |
<s>[INST]<<SYS>>Below is an instruction that describes a SQL generation task, paired with an input that provides further context about the available table schemas. Write SQL code that appropriately answers the request.<</SYS>> ### Instruction:
What is the average To Par, when Score is "72-67-71-72=282"?
### Input:
CREATE TABLE table_name_40 (to_par INTEGER, score VARCHAR)
### Response:[/INST]SELECT AVG(to_par) FROM table_name_40 WHERE score = 72 - 67 - 71 - 72 = 282</s> |