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:
How many million U.S. viewers watched the episode that Daniel H. Forer directed?
### Input:
CREATE TABLE table_24223834_3 (us_viewers__in_millions_ VARCHAR, directed_by VARCHAR)
### Response:[/INST]SELECT us_viewers__in_millions_ FROM table_24223834_3 WHERE directed_by = "Daniel H. Forer"</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 id of the tv channels that from the countries where have more than two tv channels.
### Input:
CREATE TABLE tv_channel (id VARCHAR, country VARCHAR)
### Response:[/INST]SELECT id FROM tv_channel GROUP BY country HAVING COUNT(*) > 2</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 name of physicians who are affiliated with Surgery or Psychiatry department.
### Input:
CREATE TABLE affiliated_with (physician VARCHAR, department VARCHAR); CREATE TABLE department (DepartmentID VARCHAR, name VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR)
### Response:[/INST]SELECT T1.name FROM physician AS T1 JOIN affiliated_with AS T2 ON T1.EmployeeID = T2.physician JOIN department AS T3 ON T2.department = T3.DepartmentID WHERE T3.name = 'Surgery' OR T3.name = 'Psychiatry'</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 lowest number of draws of the NTFA Div 2 Lilydale?
### Input:
CREATE TABLE table_name_98 (draws INTEGER, ntfa_div_2 VARCHAR)
### Response:[/INST]SELECT MIN(draws) FROM table_name_98 WHERE ntfa_div_2 = "lilydale"</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 year total for teams with under 37 games tied, over 33 games, and 15 losses?
### Input:
CREATE TABLE table_name_7 (years INTEGER, lost VARCHAR, tied VARCHAR, total_games VARCHAR)
### Response:[/INST]SELECT SUM(years) FROM table_name_7 WHERE tied < 37 AND total_games > 33 AND lost = 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:
If the winnings was $250,667, what is the top 5 total number?
### Input:
CREATE TABLE table_2190919_3 (top_5 VARCHAR, winnings VARCHAR)
### Response:[/INST]SELECT COUNT(top_5) FROM table_2190919_3 WHERE winnings = "$250,667"</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 away team had a Score of 2–0?
### Input:
CREATE TABLE table_name_53 (away_team VARCHAR, score VARCHAR)
### Response:[/INST]SELECT away_team FROM table_name_53 WHERE 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:
Home for away of hispano?
### Input:
CREATE TABLE table_name_4 (home VARCHAR, away VARCHAR)
### Response:[/INST]SELECT home FROM table_name_4 WHERE away = "hispano"</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 much was the transfer fee when n is 2?
### Input:
CREATE TABLE table_22810095_8 (transfer_fee VARCHAR, n VARCHAR)
### Response:[/INST]SELECT transfer_fee FROM table_22810095_8 WHERE n = 2</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 week of february 12, in the west division, what is the position?
### Input:
CREATE TABLE table_name_16 (position VARCHAR, division VARCHAR, week VARCHAR)
### Response:[/INST]SELECT position FROM table_name_16 WHERE division = "west" AND week = "february 12"</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 year which offers the largest number of courses.
### Input:
CREATE TABLE SECTION (YEAR VARCHAR)
### Response:[/INST]SELECT YEAR FROM SECTION GROUP BY YEAR 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 tournament had a 1 point margin of victory?
### Input:
CREATE TABLE table_name_12 (tournament VARCHAR, margin_of_victory VARCHAR)
### Response:[/INST]SELECT tournament FROM table_name_12 WHERE margin_of_victory = "1 point"</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 manufacturer makes locomotive number CTN 46?
### Input:
CREATE TABLE table_name_73 (manufacturer VARCHAR, locomotive_number VARCHAR)
### Response:[/INST]SELECT manufacturer FROM table_name_73 WHERE locomotive_number = "ctn 46"</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 2005 has a Güzelçamlı’s Lost Panther of green fairy?
### Input:
CREATE TABLE table_name_76 (güzelçamlı’s_lost_panther VARCHAR)
### Response:[/INST]SELECT 2005 FROM table_name_76 WHERE güzelçamlı’s_lost_panther = "green fairy"</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 Rank has a Total of 1 and a Bronze larger than 0?
### Input:
CREATE TABLE table_name_33 (rank INTEGER, total VARCHAR, bronze VARCHAR)
### Response:[/INST]SELECT MAX(rank) FROM table_name_33 WHERE total = 1 AND bronze > 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 Block for the Player with less than 85 Weight and more than 187 Height?
### Input:
CREATE TABLE table_name_73 (block VARCHAR, weight VARCHAR, height VARCHAR)
### Response:[/INST]SELECT COUNT(block) FROM table_name_73 WHERE weight < 85 AND height > 187</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 games behind for the Oklahoma City Thunder division?
### Input:
CREATE TABLE table_name_49 (games_behind__gb_ VARCHAR, division__div_ VARCHAR)
### Response:[/INST]SELECT games_behind__gb_ FROM table_name_49 WHERE division__div_ = "oklahoma city thunder"</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 points for when the played is 22 and tries against is 68?
### Input:
CREATE TABLE table_12828723_4 (points_for VARCHAR, played VARCHAR, tries_against VARCHAR)
### Response:[/INST]SELECT points_for FROM table_12828723_4 WHERE played = "22" AND tries_against = "68"</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 latest available income inequality for the country with a population of 21,315,135?
### Input:
CREATE TABLE table_name_91 (income_inequality_1994_2011__latest_available_ VARCHAR, population_2011 VARCHAR)
### Response:[/INST]SELECT income_inequality_1994_2011__latest_available_ FROM table_name_91 WHERE population_2011 = "21,315,135"</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 February 26, who was the leading scorer?
### Input:
CREATE TABLE table_name_30 (leading_scorer VARCHAR, date VARCHAR)
### Response:[/INST]SELECT leading_scorer FROM table_name_30 WHERE date = "february 26"</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 decision of the game on January 13?
### Input:
CREATE TABLE table_name_24 (decision VARCHAR, date VARCHAR)
### Response:[/INST]SELECT decision FROM table_name_24 WHERE date = "january 13"</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 attendance when South Melbourne played as the home team?
### Input:
CREATE TABLE table_name_21 (crowd INTEGER, home_team VARCHAR)
### Response:[/INST]SELECT MIN(crowd) FROM table_name_21 WHERE home_team = "south 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:
Which Played is the highest one that has Points of 5, and a Drawn smaller than 1?
### Input:
CREATE TABLE table_name_94 (played INTEGER, points VARCHAR, drawn VARCHAR)
### Response:[/INST]SELECT MAX(played) FROM table_name_94 WHERE points = 5 AND drawn < 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 country was Jay Haas representing?
### Input:
CREATE TABLE table_name_77 (country VARCHAR, player VARCHAR)
### Response:[/INST]SELECT country FROM table_name_77 WHERE player = "jay haas"</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 Round has a Position of qb, and an Overall larger than 6?
### Input:
CREATE TABLE table_name_17 (round INTEGER, position VARCHAR, overall VARCHAR)
### Response:[/INST]SELECT MAX(round) FROM table_name_17 WHERE position = "qb" AND overall > 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 losses did the Golden rivers of hay have?
### Input:
CREATE TABLE table_name_2 (losses INTEGER, golden_rivers VARCHAR)
### Response:[/INST]SELECT AVG(losses) FROM table_name_2 WHERE golden_rivers = "hay"</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:
Was the University of Southern California Signed?
### Input:
CREATE TABLE table_name_50 (signed VARCHAR, school VARCHAR)
### Response:[/INST]SELECT signed FROM table_name_50 WHERE school = "university of southern california"</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 ice level reporter has Harry Neale for the colour commentator after the year 2004?
### Input:
CREATE TABLE table_name_92 (ice_level_reporters VARCHAR, colour_commentator_s_ VARCHAR, year VARCHAR)
### Response:[/INST]SELECT ice_level_reporters FROM table_name_92 WHERE colour_commentator_s_ = "harry neale" AND 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:
Which incumbent was in the 24th district?
### Input:
CREATE TABLE table_name_60 (incumbent VARCHAR, district VARCHAR)
### Response:[/INST]SELECT incumbent FROM table_name_60 WHERE district = "24th"</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 addresses have zip code 197?
### Input:
CREATE TABLE ADDRESSES (zip_postcode VARCHAR)
### Response:[/INST]SELECT COUNT(*) FROM ADDRESSES WHERE zip_postcode = "197"</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 Overall, when Name is "Tim Smiley", and when Round is less than 5?
### Input:
CREATE TABLE table_name_22 (overall INTEGER, name VARCHAR, round VARCHAR)
### Response:[/INST]SELECT SUM(overall) FROM table_name_22 WHERE name = "tim smiley" AND 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:
What is American, when Initial-Syllable Open/Semi-Open Unstressed Vowels is "y /aɪ, ɨ/"?
### Input:
CREATE TABLE table_name_7 (american VARCHAR, initial_syllable_open_semi_open_unstressed_vowels VARCHAR)
### Response:[/INST]SELECT american FROM table_name_7 WHERE initial_syllable_open_semi_open_unstressed_vowels = "y /aɪ, ɨ/"</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 lowest score of all games for match 2?
### Input:
CREATE TABLE table_24538140_2 (match2 INTEGER)
### Response:[/INST]SELECT MIN(match2) FROM table_24538140_2</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:
List the name of all customers sorted by their account balance in ascending order.
### Input:
CREATE TABLE customer (cust_name VARCHAR, acc_bal VARCHAR)
### Response:[/INST]SELECT cust_name FROM customer ORDER BY acc_bal</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 led the most laps when brandon wagner had the fastest lap?
### Input:
CREATE TABLE table_29690363_3 (most_laps_led VARCHAR, fastest_lap VARCHAR)
### Response:[/INST]SELECT most_laps_led FROM table_29690363_3 WHERE fastest_lap = "Brandon Wagner"</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:
When did the rank 9 building got completed?
### Input:
CREATE TABLE table_name_64 (completed VARCHAR, rank VARCHAR)
### Response:[/INST]SELECT completed FROM table_name_64 WHERE rank = "9"</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 amount of the 1st prize when the Winner was ken green (4)?
### Input:
CREATE TABLE table_name_56 (winner VARCHAR)
### Response:[/INST]SELECT 1 AS st_prize___$__ FROM table_name_56 WHERE winner = "ken green (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:
Name the number of high points for record 5-17
### Input:
CREATE TABLE table_23186738_6 (high_points VARCHAR, record VARCHAR)
### Response:[/INST]SELECT COUNT(high_points) FROM table_23186738_6 WHERE record = "5-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:
Which Season has a Level of tier 4, and a Position of 11th?
### Input:
CREATE TABLE table_name_18 (season INTEGER, level VARCHAR, position VARCHAR)
### Response:[/INST]SELECT SUM(season) FROM table_name_18 WHERE level = "tier 4" AND position = "11th"</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 high rebounds in the 45 game?
### Input:
CREATE TABLE table_27734577_8 (high_rebounds VARCHAR, game VARCHAR)
### Response:[/INST]SELECT high_rebounds FROM table_27734577_8 WHERE game = 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 the Length, when the Name is Himos?
### Input:
CREATE TABLE table_name_68 (length VARCHAR, name VARCHAR)
### Response:[/INST]SELECT length FROM table_name_68 WHERE name = "himos"</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 teams have a combination classification of Alejandro Valverde and a Points classification of Alessandro Petacchi?
### Input:
CREATE TABLE table_15059783_1 (team_classification VARCHAR, combination_classification VARCHAR, points_classification VARCHAR)
### Response:[/INST]SELECT COUNT(team_classification) FROM table_15059783_1 WHERE combination_classification = "Alejandro Valverde" AND points_classification = "Alessandro Petacchi"</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:
List the snatch score and clean jerk score of body builders in ascending order of snatch score.
### Input:
CREATE TABLE body_builder (Snatch VARCHAR, Clean_Jerk VARCHAR)
### Response:[/INST]SELECT Snatch, Clean_Jerk FROM body_builder ORDER BY Snatch</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 3utr sequence when the genbank id is hq021437?
### Input:
CREATE TABLE table_14332822_1 (genbank_id VARCHAR)
### Response:[/INST]SELECT 3 AS ’utr_sequence FROM table_14332822_1 WHERE genbank_id = "HQ021437"</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 team's record on april 23?
### Input:
CREATE TABLE table_name_43 (record VARCHAR, date VARCHAR)
### Response:[/INST]SELECT record FROM table_name_43 WHERE date = "april 23"</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 2009 has a 2006 of A, and a 2011 of sf?
### Input:
CREATE TABLE table_name_83 (Id VARCHAR)
### Response:[/INST]SELECT 2009 FROM table_name_83 WHERE 2006 = "a" AND 2011 = "sf"</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 Rank of the player with 362 Matches?
### Input:
CREATE TABLE table_name_92 (rank INTEGER, matches VARCHAR)
### Response:[/INST]SELECT MAX(rank) FROM table_name_92 WHERE matches = 362</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 Player, when Caps is Example, and when Position is Center?
### Input:
CREATE TABLE table_name_66 (player VARCHAR, caps VARCHAR, position VARCHAR)
### Response:[/INST]SELECT player FROM table_name_66 WHERE caps = "example" AND position = "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:
What are the slovenian names of the villages that had 16.7% of slovenes in 1991?
### Input:
CREATE TABLE table_10797463_1 (village__slovenian_ VARCHAR, percent_of_slovenes_1991 VARCHAR)
### Response:[/INST]SELECT village__slovenian_ FROM table_10797463_1 WHERE percent_of_slovenes_1991 = "16.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:
How many professors who has a either Ph.D. or MA degree?
### Input:
CREATE TABLE professor (prof_high_degree VARCHAR)
### Response:[/INST]SELECT COUNT(*) FROM professor WHERE prof_high_degree = 'Ph.D.' OR prof_high_degree = 'MA'</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 nation when the place is 2?
### Input:
CREATE TABLE table_26677836_1 (nation VARCHAR, place VARCHAR)
### Response:[/INST]SELECT nation FROM table_26677836_1 WHERE place = 2</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 episode written cyrus nowrasteh?
### Input:
CREATE TABLE table_name_85 (directed_by VARCHAR, written_by VARCHAR)
### Response:[/INST]SELECT directed_by FROM table_name_85 WHERE written_by = "cyrus nowrasteh"</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 points did the home team Essendon score?
### Input:
CREATE TABLE table_name_4 (home_team VARCHAR)
### Response:[/INST]SELECT home_team AS score FROM table_name_4 WHERE home_team = "essendon"</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 area when the Iga name is Ahoada East?
### Input:
CREATE TABLE table_28891101_3 (area__km_2__ INTEGER, lga_name VARCHAR)
### Response:[/INST]SELECT MAX(area__km_2__) FROM table_28891101_3 WHERE lga_name = "Ahoada East"</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 all the name of documents without any sections.
### Input:
CREATE TABLE document_sections (document_name VARCHAR, document_code VARCHAR); CREATE TABLE documents (document_name VARCHAR, document_code VARCHAR)
### Response:[/INST]SELECT document_name FROM documents WHERE NOT document_code IN (SELECT document_code FROM document_sections)</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:
state the number of location attendance where record is 15–10 (5–7)
### Input:
CREATE TABLE table_20010140_10 (location_attendance VARCHAR, record VARCHAR)
### Response:[/INST]SELECT COUNT(location_attendance) FROM table_20010140_10 WHERE record = "15–10 (5–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 is Mike Harris' lowest overall?
### Input:
CREATE TABLE table_name_61 (overall INTEGER, name VARCHAR)
### Response:[/INST]SELECT MIN(overall) FROM table_name_61 WHERE name = "mike harris"</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 most rank for population more than 93,378
### Input:
CREATE TABLE table_name_5 (rank INTEGER, population INTEGER)
### Response:[/INST]SELECT MAX(rank) FROM table_name_5 WHERE population > 93 OFFSET 378</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 title for pages of 96
### Input:
CREATE TABLE table_name_99 (title VARCHAR, pages VARCHAR)
### Response:[/INST]SELECT title FROM table_name_99 WHERE pages = 96</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 frequency of the newspaper, el diario de nuevo laredo in the city of nuevo laredo ?
### Input:
CREATE TABLE table_name_70 (frequency VARCHAR, city VARCHAR, name VARCHAR)
### Response:[/INST]SELECT frequency FROM table_name_70 WHERE city = "nuevo laredo" AND name = "el diario de nuevo laredo"</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 month had a sort value under 39 and 2 deaths?
### Input:
CREATE TABLE table_name_73 (month VARCHAR, sort_restore VARCHAR, deaths VARCHAR)
### Response:[/INST]SELECT month FROM table_name_73 WHERE sort_restore < 39 AND deaths = "2"</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 models numbered L5506 have a QPI speed?
### Input:
CREATE TABLE table_269920_17 (qpi_speed__gt_s_ VARCHAR, model VARCHAR)
### Response:[/INST]SELECT COUNT(qpi_speed__gt_s_) FROM table_269920_17 WHERE model = "L5506"</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 on may 19?
### Input:
CREATE TABLE table_name_77 (score VARCHAR, date VARCHAR)
### Response:[/INST]SELECT score FROM table_name_77 WHERE date = "may 19"</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 system where Sunday is ஞாயிற்று கிழமை nyāyitru kizhamai, what is Saturday?
### Input:
CREATE TABLE table_1277350_3 (saturday_shani__saturn_ VARCHAR, sunday_surya__the_sun_ VARCHAR)
### Response:[/INST]SELECT saturday_shani__saturn_ FROM table_1277350_3 WHERE sunday_surya__the_sun_ = "ஞாயிற்று கிழமை Nyāyitru kizhamai"</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 grand finalist when the grand finalists are jonathan loh, peterson poon, nathan santos?
### Input:
CREATE TABLE table_name_26 (grand_finalist VARCHAR, grand_finalists VARCHAR)
### Response:[/INST]SELECT grand_finalist FROM table_name_26 WHERE grand_finalists = "jonathan loh, peterson poon, nathan santos"</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 in 1st place when present is mogu?
### Input:
CREATE TABLE table_27298240_28 (present VARCHAR)
### Response:[/INST]SELECT 1 AS st FROM table_27298240_28 WHERE present = "mogu"</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:
If the Home team of collingwood was playing, what was the Away team?
### Input:
CREATE TABLE table_name_45 (away_team VARCHAR, home_team VARCHAR)
### Response:[/INST]SELECT away_team FROM table_name_45 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:
what game had a doubles round in 1979
### Input:
CREATE TABLE table_name_92 (mixed_doubles VARCHAR, year VARCHAR)
### Response:[/INST]SELECT mixed_doubles FROM table_name_92 WHERE year = 1979</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 points team Alfa Romeo 184T won?
### Input:
CREATE TABLE table_name_56 (points INTEGER, team_chassis VARCHAR)
### Response:[/INST]SELECT SUM(points) FROM table_name_56 WHERE team_chassis = "alfa romeo 184t"</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 when the nation is brazil (bra) and bronze is more than 2?
### Input:
CREATE TABLE table_name_38 (total INTEGER, nation VARCHAR, bronze VARCHAR)
### Response:[/INST]SELECT SUM(total) FROM table_name_38 WHERE nation = "brazil (bra)" AND bronze > 2</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 for silver when bronze is less than 1, and gold is more than 0?
### Input:
CREATE TABLE table_name_57 (silver INTEGER, bronze VARCHAR, gold VARCHAR)
### Response:[/INST]SELECT AVG(silver) FROM table_name_57 WHERE bronze < 1 AND gold > 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 number is Fall 06 from the state with 79 or less in Fall 08, 36 or greater in Fall 07 and greater than 74 in Fall 05?
### Input:
CREATE TABLE table_name_92 (fall_06 INTEGER, fall_05 VARCHAR, fall_08 VARCHAR, fall_07 VARCHAR)
### Response:[/INST]SELECT AVG(fall_06) FROM table_name_92 WHERE fall_08 < 79 AND fall_07 > 36 AND fall_05 > 74</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:
When was the game played on Manuka Oval?
### Input:
CREATE TABLE table_16388398_1 (date VARCHAR, ground VARCHAR)
### Response:[/INST]SELECT date FROM table_16388398_1 WHERE ground = "Manuka Oval"</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 was the team 1 that had a team 2 which was avigliano (basilicata)?
### Input:
CREATE TABLE table_name_81 (team_1 VARCHAR, team_2 VARCHAR)
### Response:[/INST]SELECT team_1 FROM table_name_81 WHERE team_2 = "avigliano (basilicata)"</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:
I want the team with replaced by being csaba lászló
### Input:
CREATE TABLE table_name_24 (team VARCHAR, replaced_by VARCHAR)
### Response:[/INST]SELECT team FROM table_name_24 WHERE replaced_by = "csaba lászló"</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 most league cups for total more than 19 and FA cups more than 6
### Input:
CREATE TABLE table_name_38 (league_cup INTEGER, total VARCHAR, fa_cup VARCHAR)
### Response:[/INST]SELECT MAX(league_cup) FROM table_name_38 WHERE total > 19 AND fa_cup > 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 First Branch Opened, when Branch is Belmont Library?
### Input:
CREATE TABLE table_name_21 (first_branch_opened VARCHAR, branch VARCHAR)
### Response:[/INST]SELECT first_branch_opened FROM table_name_21 WHERE branch = "belmont library"</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 when 7260 people attended the game?
### Input:
CREATE TABLE table_20745746_1 (score VARCHAR, attendance VARCHAR)
### Response:[/INST]SELECT score FROM table_20745746_1 WHERE attendance = 7260</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 percentage in 1980 in Brooklyn?
### Input:
CREATE TABLE table_name_70 (borough VARCHAR)
### Response:[/INST]SELECT MIN(1980) FROM table_name_70 WHERE borough = "brooklyn"</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 wins have conceded as 18?
### Input:
CREATE TABLE table_18594107_2 (wins INTEGER, conceded VARCHAR)
### Response:[/INST]SELECT MAX(wins) FROM table_18594107_2 WHERE conceded = 18</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 winning score for 8 feb 2009
### Input:
CREATE TABLE table_21469545_2 (winning_score VARCHAR, date VARCHAR)
### Response:[/INST]SELECT COUNT(winning_score) FROM table_21469545_2 WHERE date = "8 Feb 2009"</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 Hon. Vicente Q. Roxas appointment date?
### Input:
CREATE TABLE table_name_25 (date_of_appointment VARCHAR, name VARCHAR)
### Response:[/INST]SELECT date_of_appointment FROM table_name_25 WHERE name = "hon. vicente q. roxas"</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 Winner of the French Polynesia Billabong Pro Event?
### Input:
CREATE TABLE table_name_29 (winner VARCHAR, event VARCHAR, country VARCHAR)
### Response:[/INST]SELECT winner FROM table_name_29 WHERE event = "billabong pro" AND country = "french polynesia"</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 Type, when Works Number is "unknown"?
### Input:
CREATE TABLE table_name_50 (type VARCHAR, works_number VARCHAR)
### Response:[/INST]SELECT type FROM table_name_50 WHERE works_number = "unknown"</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 dominant religions are in đala?
### Input:
CREATE TABLE table_2562572_30 (dominant_religion__2002_ VARCHAR, settlement VARCHAR)
### Response:[/INST]SELECT COUNT(dominant_religion__2002_) FROM table_2562572_30 WHERE settlement = "Đala"</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:
When the network mask is 255.255.255.224 what is the highest total usable host?
### Input:
CREATE TABLE table_149426_4 (total_usable_hosts INTEGER, network_mask VARCHAR)
### Response:[/INST]SELECT MAX(total_usable_hosts) FROM table_149426_4 WHERE network_mask = "255.255.255.224"</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 nominated for Best Theatre Choreographer?
### Input:
CREATE TABLE table_name_18 (nominee VARCHAR, category VARCHAR)
### Response:[/INST]SELECT nominee FROM table_name_18 WHERE category = "best theatre choreographer"</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 Opponent has a Result of w 19–10?
### Input:
CREATE TABLE table_name_40 (opponent VARCHAR, result VARCHAR)
### Response:[/INST]SELECT opponent FROM table_name_40 WHERE result = "w 19–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:
Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made and the claim id.
### Input:
CREATE TABLE Settlements (Claim_id VARCHAR); CREATE TABLE Claims (Amount_Claimed INTEGER); CREATE TABLE Claims (Date_Claim_Made VARCHAR, Claim_id VARCHAR, Amount_Claimed INTEGER)
### Response:[/INST]SELECT T1.Date_Claim_Made, T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id GROUP BY T1.Claim_id HAVING COUNT(*) > 2 UNION SELECT T1.Date_Claim_Made, T1.Claim_id FROM Claims AS T1 JOIN Settlements AS T2 ON T1.Claim_id = T2.Claim_id WHERE T1.Amount_Claimed = (SELECT MAX(Amount_Claimed) FROM Claims)</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 the T6 Place Player with a Score of 68-69-70=207?
### Input:
CREATE TABLE table_name_77 (to_par VARCHAR, place VARCHAR, score VARCHAR)
### Response:[/INST]SELECT to_par FROM table_name_77 WHERE place = "t6" AND score = 68 - 69 - 70 = 207</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 round 7's lowest overall?
### Input:
CREATE TABLE table_name_72 (overall INTEGER, round VARCHAR)
### Response:[/INST]SELECT MIN(overall) FROM table_name_72 WHERE round = 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:
Which Hanzi has a suburban population in 2004?
### Input:
CREATE TABLE table_name_95 (hanzi VARCHAR, population__2004_est_ VARCHAR)
### Response:[/INST]SELECT hanzi FROM table_name_95 WHERE population__2004_est_ = "suburban"</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 Highest Games, when Team is Ciudad De La Laguna, and when Points are greater than 357?
### Input:
CREATE TABLE table_name_75 (games INTEGER, team VARCHAR, points VARCHAR)
### Response:[/INST]SELECT MAX(games) FROM table_name_75 WHERE team = "ciudad de la laguna" AND points > 357</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 score for january 12
### Input:
CREATE TABLE table_27755603_8 (score VARCHAR, date VARCHAR)
### Response:[/INST]SELECT COUNT(score) FROM table_27755603_8 WHERE date = "January 12"</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:
For the race called by Marshall Cassidy, who was the host?
### Input:
CREATE TABLE table_22583466_5 (s_host VARCHAR, race_caller VARCHAR)
### Response:[/INST]SELECT s_host FROM table_22583466_5 WHERE race_caller = "Marshall Cassidy"</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:
Can you tell me the School that has the IHSAA Class of a, and the Enrollment 08-09 off 244?
### Input:
CREATE TABLE table_name_67 (school VARCHAR, ihsaa_class VARCHAR, enrollment_08_09 VARCHAR)
### Response:[/INST]SELECT school FROM table_name_67 WHERE ihsaa_class = "a" AND enrollment_08_09 = 244</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 sum of cap/hor for double chair and vertical less than 479
### Input:
CREATE TABLE table_name_8 (cap_hour INTEGER, type VARCHAR, vertical VARCHAR)
### Response:[/INST]SELECT SUM(cap_hour) FROM table_name_8 WHERE type = "double chair" AND vertical < 479</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 blood type of the member from the vision factory agency?
### Input:
CREATE TABLE table_name_52 (blood_type VARCHAR, agency VARCHAR)
### Response:[/INST]SELECT blood_type FROM table_name_52 WHERE agency = "vision factory"</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 actor when the character is dinny byrne?
### Input:
CREATE TABLE table_name_8 (actor VARCHAR, character VARCHAR)
### Response:[/INST]SELECT actor FROM table_name_8 WHERE character = "dinny byrne"</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 region had a release format of CD Maxi?
### Input:
CREATE TABLE table_name_20 (region VARCHAR, format VARCHAR)
### Response:[/INST]SELECT region FROM table_name_20 WHERE format = "cd maxi"</s> |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
Use the Edit dataset card button to edit it.
- Downloads last month
- 32