inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who's the original team for Rashied Davis Category:articles with hcards? ### Context: CREATE TABLE table_name_25 (original_nfl_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT original_nfl_team FROM table_name_25 WHERE player = "rashied davis category:articles with hcards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many election results are there from the 19th district? ### Context: CREATE TABLE table_13618584_2 (district VARCHAR) ### Response: ### Response: SELECT COUNT(2007 AS _result) FROM table_13618584_2 WHERE district = "19th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which entrant has a Dallara F398 chassis? ### Context: CREATE TABLE table_name_13 (entrant VARCHAR, chassis VARCHAR) ### Response: ### Response: SELECT entrant FROM table_name_13 WHERE chassis = "dallara f398"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the H/A for 20 february 2007? ### Context: CREATE TABLE table_name_54 (h___a VARCHAR, date VARCHAR) ### Response: ### Response: SELECT h___a FROM table_name_54 WHERE date = "20 february 2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the attendance in the game in the 2010-11 season, when the score was 2–0? ### Context: CREATE TABLE table_name_39 (attendance INTEGER, season VARCHAR, score VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_name_39 WHERE season = "2010-11" AND score = "2–0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score of the 2002 Tiger Cup third/fourth place match? ### Context: CREATE TABLE table_name_16 (score VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT score FROM table_name_16 WHERE competition = "2002 tiger cup third/fourth place"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what year was the artist Afro-dite? ### Context: CREATE TABLE table_name_54 (year VARCHAR, artist VARCHAR) ### Response: ### Response: SELECT year FROM table_name_54 WHERE artist = "afro-dite"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the Final Score on February 24, 2002? ### Context: CREATE TABLE table_name_21 (score_in_final VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score_in_final FROM table_name_21 WHERE date = "february 24, 2002"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what year did a Qual of 141.105 with a Start of 25 happen? ### Context: CREATE TABLE table_name_69 (year VARCHAR, start VARCHAR, qual VARCHAR) ### Response: ### Response: SELECT year FROM table_name_69 WHERE start = "25" AND qual = "141.105"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the average rank of Wolfgang Schwarz with greater than 13 places? ### Context: CREATE TABLE table_name_56 (rank INTEGER, name VARCHAR, places VARCHAR) ### Response: ### Response: SELECT AVG(rank) FROM table_name_56 WHERE name = "wolfgang schwarz" AND places > 13</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the greatest Total population (1000) from Sweden and born in a non EU state (1000) less than 859? ### Context: CREATE TABLE table_name_79 (total_population__1000_ INTEGER, country VARCHAR, born_in_a_non_eu_state__1000_ VARCHAR) ### Response: ### Response: SELECT MAX(total_population__1000_) FROM table_name_79 WHERE country = "sweden" AND born_in_a_non_eu_state__1000_ < 859</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which name had more than 5 rounds and was a defensive end? ### Context: CREATE TABLE table_name_51 (name VARCHAR, round VARCHAR, position VARCHAR) ### Response: ### Response: SELECT name FROM table_name_51 WHERE round > 5 AND position = "defensive end"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What player has a rating greater than 2746, with a prev less than 4, and +4 as the chng? ### Context: CREATE TABLE table_name_83 (player VARCHAR, chng VARCHAR, rating VARCHAR, prev VARCHAR) ### Response: ### Response: SELECT player FROM table_name_83 WHERE rating > 2746 AND prev < 4 AND chng = "+4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In what year did the team compete in the USISL Pro League? ### Context: CREATE TABLE table_1939214_1 (year VARCHAR, league VARCHAR) ### Response: ### Response: SELECT year FROM table_1939214_1 WHERE league = "USISL Pro league"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the country is austria germany and the rank is kept under 5, what's the average number of matches played? ### Context: CREATE TABLE table_name_91 (matches INTEGER, country VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT AVG(matches) FROM table_name_91 WHERE country = "austria germany" AND rank < 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the surface for philadelphia ### Context: CREATE TABLE table_23235767_4 (surface VARCHAR, championship VARCHAR) ### Response: ### Response: SELECT surface FROM table_23235767_4 WHERE championship = "Philadelphia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest number of goals scored by a player in the normal league games where more than 8 total goals were scored? ### Context: CREATE TABLE table_name_67 (league INTEGER, total INTEGER) ### Response: ### Response: SELECT MIN(league) FROM table_name_67 WHERE total > 8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the title of the episode directed by Rich Correll and written by Dennis Rinsler? ### Context: CREATE TABLE table_29102100_1 (title VARCHAR, directed_by VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT title FROM table_29102100_1 WHERE directed_by = "Rich Correll" AND written_by = "Dennis Rinsler"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the away team for the game at Windy Hill? ### Context: CREATE TABLE table_name_72 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_72 WHERE venue = "windy hill"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the average league with Kris Doolan and a total less than 5? ### Context: CREATE TABLE table_name_22 (league INTEGER, player VARCHAR, total VARCHAR) ### Response: ### Response: SELECT AVG(league) FROM table_name_22 WHERE player = "kris doolan" AND total < 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which High points have High rebounds of lamar odom (15), and a Date of april 27? ### Context: CREATE TABLE table_name_80 (high_points VARCHAR, high_rebounds VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_points FROM table_name_80 WHERE high_rebounds = "lamar odom (15)" AND date = "april 27"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For the item with more than 10, and numbers of 53-58, 61-72, what is the lowest completed? ### Context: CREATE TABLE table_name_97 (completed INTEGER, quantity VARCHAR, numbers VARCHAR) ### Response: ### Response: SELECT MIN(completed) FROM table_name_97 WHERE quantity > 10 AND numbers = "53-58, 61-72"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Most populous city/town of clonmel, and a Irish name of tiobraid árann (contae thiobraid árann) is which region? ### Context: CREATE TABLE table_name_8 (region VARCHAR, most_populous_city_town VARCHAR, irish_name VARCHAR) ### Response: ### Response: SELECT region FROM table_name_8 WHERE most_populous_city_town = "clonmel" AND irish_name = "tiobraid árann (contae thiobraid árann)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the casting temperature for a hardness of 22? ### Context: CREATE TABLE table_name_88 (casting_at__°c_ VARCHAR, hardness VARCHAR) ### Response: ### Response: SELECT casting_at__°c_ FROM table_name_88 WHERE hardness = "22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT PLAYER HAS A PICK SMALLER THAN 110, AND DUKE AS COLLEGE? ### Context: CREATE TABLE table_name_97 (player VARCHAR, pick VARCHAR, college VARCHAR) ### Response: ### Response: SELECT player FROM table_name_97 WHERE pick < 110 AND college = "duke"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the against percentage in the Vest-Agder constituency? ### Context: CREATE TABLE table_1289762_1 (against___percentage_ VARCHAR, constituency VARCHAR) ### Response: ### Response: SELECT against___percentage_ FROM table_1289762_1 WHERE constituency = "Vest-Agder"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the number of score for january 12 ### Context: CREATE TABLE table_27755603_8 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(score) FROM table_27755603_8 WHERE date = "January 12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the date for sacramento ### Context: CREATE TABLE table_15780049_8 (date VARCHAR, team VARCHAR) ### Response: ### Response: SELECT date FROM table_15780049_8 WHERE team = "Sacramento"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many states had a population density of 10188.8? ### Context: CREATE TABLE table_22916979_1 (state VARCHAR, population_density__people_per_mi_2__ VARCHAR) ### Response: ### Response: SELECT COUNT(state) FROM table_22916979_1 WHERE population_density__people_per_mi_2__ = "10188.8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the names of buildings with at least 200 feet of height and with at least 20 floors. ### Context: CREATE TABLE building (name VARCHAR, height_feet VARCHAR, floors VARCHAR) ### Response: ### Response: SELECT name FROM building WHERE height_feet >= 200 AND floors >= 20</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which papers have "Stephanie Weirich" as an author? ### Context: CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE papers (title VARCHAR, paperid VARCHAR); CREATE TABLE authors (authid VARCHAR, fname VARCHAR, lname VARCHAR) ### Response: ### Response: SELECT t3.title FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid WHERE t1.fname = "Stephanie" AND t1.lname = "Weirich"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are all the possible breed type and size type combinations? ### Context: CREATE TABLE dogs (breed_code VARCHAR, size_code VARCHAR) ### Response: ### Response: SELECT DISTINCT breed_code, size_code FROM dogs</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the Venue in 2003? ### Context: CREATE TABLE table_name_16 (venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_16 WHERE date = "2003"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Water (sqmi) has a Pop (2010) of 359, and a Longitude smaller than -97.176811? ### Context: CREATE TABLE table_name_91 (water__sqmi_ INTEGER, pop__2010_ VARCHAR, longitude VARCHAR) ### Response: ### Response: SELECT MAX(water__sqmi_) FROM table_name_91 WHERE pop__2010_ = 359 AND longitude < -97.176811</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number of the Foundation with Japanese orthography of 国立看護大学校? ### Context: CREATE TABLE table_name_79 (foundation INTEGER, japanese_orthography VARCHAR) ### Response: ### Response: SELECT SUM(foundation) FROM table_name_79 WHERE japanese_orthography = "国立看護大学校"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the name of companies that do not make DVD drive. ### Context: CREATE TABLE manufacturers (name VARCHAR, code VARCHAR); CREATE TABLE products (Manufacturer VARCHAR, name VARCHAR); CREATE TABLE manufacturers (name VARCHAR) ### Response: ### Response: SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T1.name = 'DVD drive'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the total of Greece, which is placed below 8? ### Context: CREATE TABLE table_name_32 (total VARCHAR, nation VARCHAR, place VARCHAR) ### Response: ### Response: SELECT COUNT(total) FROM table_name_32 WHERE nation = "greece" AND place > 8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which finish has a Record of 74-68? ### Context: CREATE TABLE table_name_35 (finish VARCHAR, record VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_35 WHERE record = "74-68"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year has the ride flight deck and a rating of less than 5? ### Context: CREATE TABLE table_name_47 (year_opened VARCHAR, ride VARCHAR, rating VARCHAR) ### Response: ### Response: SELECT COUNT(year_opened) FROM table_name_47 WHERE ride = "flight deck" AND rating < 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: In which of North Melbourne's away games was there the lowest crowd? ### Context: CREATE TABLE table_name_71 (crowd INTEGER, away_team VARCHAR) ### Response: ### Response: SELECT MIN(crowd) FROM table_name_71 WHERE away_team = "north melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the most Champions League assists for those with a total of 6 and position of Midfielder? ### Context: CREATE TABLE table_name_48 (Champions INTEGER, total VARCHAR, position VARCHAR) ### Response: ### Response: SELECT MAX(Champions) AS league FROM table_name_48 WHERE total = 6 AND position = "midfielder"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Display size (in) has a Model of versapro vy10f/bh-l? ### Context: CREATE TABLE table_name_10 (display_size__in_ INTEGER, model VARCHAR) ### Response: ### Response: SELECT MIN(display_size__in_) FROM table_name_10 WHERE model = "versapro vy10f/bh-l"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the most money ($) when the score is 71-74-69-72=286? ### Context: CREATE TABLE table_name_21 (money___ INTEGER, score VARCHAR) ### Response: ### Response: SELECT MAX(money___) AS $__ FROM table_name_21 WHERE score = 71 - 74 - 69 - 72 = 286</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the names of nations speak both English and French? ### Context: CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR) ### Response: ### Response: SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English" INTERSECT SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "French"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the 2009 for 2012 1R in Wimbledon and a 2011 2r? ### Context: CREATE TABLE table_name_77 (tournament VARCHAR) ### Response: ### Response: SELECT 2009 FROM table_name_77 WHERE 2012 = "1r" AND tournament = "wimbledon" AND 2011 = "2r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On June 30, 2008 who what was the Republican: Jeff Sessions percentage? ### Context: CREATE TABLE table_16751596_12 (republican VARCHAR, dates_administered VARCHAR) ### Response: ### Response: SELECT republican AS :_jeff_sessions FROM table_16751596_12 WHERE dates_administered = "June 30, 2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the membership card held by both members living in Hartford and ones living in Waterbury address? ### Context: CREATE TABLE member (membership_card VARCHAR, address VARCHAR) ### Response: ### Response: SELECT membership_card FROM member WHERE address = 'Hartford' INTERSECT SELECT membership_card FROM member WHERE address = 'Waterbury'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many values for high assists when the game is 81? ### Context: CREATE TABLE table_23248869_10 (high_assists VARCHAR, game VARCHAR) ### Response: ### Response: SELECT COUNT(high_assists) FROM table_23248869_10 WHERE game = 81</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Calendar has a User-selectable themes of user-selectable themes? ### Context: CREATE TABLE table_name_95 (calendar VARCHAR, user_selectable_themes VARCHAR) ### Response: ### Response: SELECT calendar FROM table_name_95 WHERE user_selectable_themes = "user-selectable themes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the location for the August 29, 1980 game? ### Context: CREATE TABLE table_name_68 (venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_68 WHERE date = "august 29, 1980"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which team does Pierre Duguay play for? ### Context: CREATE TABLE table_1213511_6 (nhl_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nhl_team FROM table_1213511_6 WHERE player = "Pierre Duguay"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which dogs have not cost their owner more than 1000 for treatment ? List the dog names . ### Context: CREATE TABLE dogs (name VARCHAR, dog_id VARCHAR, cost_of_treatment INTEGER); CREATE TABLE treatments (name VARCHAR, dog_id VARCHAR, cost_of_treatment INTEGER) ### Response: ### Response: SELECT name FROM dogs WHERE NOT dog_id IN (SELECT dog_id FROM treatments GROUP BY dog_id HAVING SUM(cost_of_treatment) > 1000)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest to par of the player with a t3 place and less than $1,500? ### Context: CREATE TABLE table_name_28 (to_par INTEGER, place VARCHAR, money___$__ VARCHAR) ### Response: ### Response: SELECT MIN(to_par) FROM table_name_28 WHERE place = "t3" AND money___$__ < 1 OFFSET 500</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the panchayat when the public property damage was 1,03,049.60 ### Context: CREATE TABLE table_20403667_2 (panchayat INTEGER, public_property_damaged__in_lakh_inr__ VARCHAR) ### Response: ### Response: SELECT MAX(panchayat) FROM table_20403667_2 WHERE public_property_damaged__in_lakh_inr__ = "1,03,049.60"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the combined of the overalls less than 34? ### Context: CREATE TABLE table_name_82 (combined VARCHAR, overall INTEGER) ### Response: ### Response: SELECT combined FROM table_name_82 WHERE overall < 34</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which average Points have a Position of 7, and a Lost smaller than 4? ### Context: CREATE TABLE table_name_34 (points INTEGER, position VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT AVG(points) FROM table_name_34 WHERE position = 7 AND lost < 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How much is the money ($) when the country is united states, to par is e and the score is 72-75-70-71=288? ### Context: CREATE TABLE table_name_59 (money___ INTEGER, country VARCHAR, to_par VARCHAR, score VARCHAR) ### Response: ### Response: SELECT SUM(money___) AS $__ FROM table_name_59 WHERE country = "united states" AND to_par = "e" AND score = 72 - 75 - 70 - 71 = 288</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Fighting Spirit has a Name of tsurugamine, and a Technique smaller than 10? ### Context: CREATE TABLE table_name_55 (fighting_spirit INTEGER, name VARCHAR, technique VARCHAR) ### Response: ### Response: SELECT AVG(fighting_spirit) FROM table_name_55 WHERE name = "tsurugamine" AND technique < 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the total number when the vote percentage was 44.8%? ### Context: CREATE TABLE table_26375386_23 (total VARCHAR, vote_percentage VARCHAR) ### Response: ### Response: SELECT COUNT(total) FROM table_26375386_23 WHERE vote_percentage = "44.8%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the 2010 figure for the district of Columbia where the 2004 figure is more than 12.3? ### Context: CREATE TABLE table_name_1 (division VARCHAR) ### Response: ### Response: SELECT SUM(2010) FROM table_name_1 WHERE division = "district of columbia" AND 2004 > 12.3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Location Attendance, when Team is "Orlando"? ### Context: CREATE TABLE table_name_16 (location_attendance VARCHAR, team VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_name_16 WHERE team = "orlando"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What candidate was re-elected in the Louisiana 5 district? ### Context: CREATE TABLE table_1342149_18 (candidates VARCHAR, result VARCHAR, district VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1342149_18 WHERE result = "Re-elected" AND district = "Louisiana 5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the name of the aircraft that has been named winning aircraft the most number of times. ### Context: CREATE TABLE MATCH (Winning_Aircraft VARCHAR); CREATE TABLE aircraft (Aircraft VARCHAR, Aircraft_ID VARCHAR) ### Response: ### Response: SELECT T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft GROUP BY T2.Winning_Aircraft ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the day 1 when the day 3 is math? ### Context: CREATE TABLE table_name_16 (day_1 VARCHAR, day_3 VARCHAR) ### Response: ### Response: SELECT day_1 FROM table_name_16 WHERE day_3 = "math"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team scored 4 points? ### Context: CREATE TABLE table_20396_1 (team VARCHAR, points VARCHAR) ### Response: ### Response: SELECT team FROM table_20396_1 WHERE points = "4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the city containing the KDKA-TV station? ### Context: CREATE TABLE table_name_61 (city_of_license__market VARCHAR, station VARCHAR) ### Response: ### Response: SELECT city_of_license__market FROM table_name_61 WHERE station = "kdka-tv"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Label, when Region is Japan? ### Context: CREATE TABLE table_name_40 (label VARCHAR, region VARCHAR) ### Response: ### Response: SELECT label FROM table_name_40 WHERE region = "japan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Home has a Date of april 1? ### Context: CREATE TABLE table_name_56 (home VARCHAR, date VARCHAR) ### Response: ### Response: SELECT home FROM table_name_56 WHERE date = "april 1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the Orangemen record during game 3? ### Context: CREATE TABLE table_23346983_1 (record VARCHAR, game VARCHAR) ### Response: ### Response: SELECT record FROM table_23346983_1 WHERE game = 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the away team for the game with a score of 139-119? ### Context: CREATE TABLE table_name_75 (away_team VARCHAR, score VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_75 WHERE score = "139-119"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest Lane, when Country is France, and when React is less than 0.14100000000000001? ### Context: CREATE TABLE table_name_28 (lane INTEGER, country VARCHAR, react VARCHAR) ### Response: ### Response: SELECT MIN(lane) FROM table_name_28 WHERE country = "france" AND react < 0.14100000000000001</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many Extra points have Touchdowns larger than 2, and Field goals larger than 0? ### Context: CREATE TABLE table_name_4 (extra_points VARCHAR, touchdowns VARCHAR, field_goals VARCHAR) ### Response: ### Response: SELECT COUNT(extra_points) FROM table_name_4 WHERE touchdowns > 2 AND field_goals > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How long was the fight 'adrenaline mma 3'? ### Context: CREATE TABLE table_name_72 (time VARCHAR, event VARCHAR) ### Response: ### Response: SELECT time FROM table_name_72 WHERE event = "adrenaline mma 3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the title of #33? ### Context: CREATE TABLE table_25800134_4 (title VARCHAR, season__number VARCHAR) ### Response: ### Response: SELECT title FROM table_25800134_4 WHERE season__number = 33</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the pinyin name for the english name xin county? ### Context: CREATE TABLE table_2847477_2 (pinyin VARCHAR, english_name VARCHAR) ### Response: ### Response: SELECT pinyin FROM table_2847477_2 WHERE english_name = "Xin County"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the Centerfold model when O.J. Simpson was the Interview Subject? ### Context: CREATE TABLE table_name_72 (centerfold_model VARCHAR, interview_subject VARCHAR) ### Response: ### Response: SELECT centerfold_model FROM table_name_72 WHERE interview_subject = "o.j. simpson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which lap number had a grid number of less than 17 when the driver was Giancarlo Fisichella? ### Context: CREATE TABLE table_name_1 (laps VARCHAR, grid VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT COUNT(laps) FROM table_name_1 WHERE grid < 17 AND driver = "giancarlo fisichella"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the 2002 result when 2006 is A and 2010 is Q1? ### Context: CREATE TABLE table_name_38 (Id VARCHAR) ### Response: ### Response: SELECT 2002 FROM table_name_38 WHERE 2006 = "a" AND 2010 = "q1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Trevor Cann's nationality? ### Context: CREATE TABLE table_name_10 (nationality VARCHAR, player VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_10 WHERE player = "trevor cann"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what's the location attendance where record is 14–39 ### Context: CREATE TABLE table_11964154_9 (location_attendance VARCHAR, record VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_11964154_9 WHERE record = "14–39"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What' the series number of the episode with season number 13? ### Context: CREATE TABLE table_2226817_6 (no_in_series INTEGER, no_in_season VARCHAR) ### Response: ### Response: SELECT MIN(no_in_series) FROM table_2226817_6 WHERE no_in_season = 13</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the pilot of max altitude of 55.9 miles? ### Context: CREATE TABLE table_221315_3 (pilot VARCHAR, max_altitude__miles_ VARCHAR) ### Response: ### Response: SELECT pilot FROM table_221315_3 WHERE max_altitude__miles_ = "55.9"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What club has less than 8 draws, 37 points, and less than 71 goals? ### Context: CREATE TABLE table_name_88 (club VARCHAR, goals_for VARCHAR, draws VARCHAR, points VARCHAR) ### Response: ### Response: SELECT club FROM table_name_88 WHERE draws < 8 AND points = 37 AND goals_for < 71</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many Ints have a Rating smaller than 87, and Yards larger than 4? ### Context: CREATE TABLE table_name_19 (int INTEGER, rating VARCHAR, yards VARCHAR) ### Response: ### Response: SELECT AVG(int) FROM table_name_19 WHERE rating < 87 AND yards > 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the ERP W for K236AM? ### Context: CREATE TABLE table_name_22 (erp_w VARCHAR, call_sign VARCHAR) ### Response: ### Response: SELECT erp_w FROM table_name_22 WHERE call_sign = "k236am"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the city that is located in California when the year is greater than 2009? ### Context: CREATE TABLE table_name_46 (city VARCHAR, state VARCHAR, year VARCHAR) ### Response: ### Response: SELECT city FROM table_name_46 WHERE state = "california" AND year > 2009</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the status for Saint George? ### Context: CREATE TABLE table_170969_2 (status VARCHAR, official_name VARCHAR) ### Response: ### Response: SELECT status FROM table_170969_2 WHERE official_name = "Saint George"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the driver with a time/retired of +5.2684? ### Context: CREATE TABLE table_name_23 (driver VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_23 WHERE time_retired = "+5.2684"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which days of the week does the telenovela play that is aired at 11:00? ### Context: CREATE TABLE table_name_75 (weekly_schedule VARCHAR, timeslot VARCHAR) ### Response: ### Response: SELECT weekly_schedule FROM table_name_75 WHERE timeslot = "11:00"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: who is the the office with incumbent being ramon r. jimenez, jr. ### Context: CREATE TABLE table_1331313_1 (office VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT office FROM table_1331313_1 WHERE incumbent = "Ramon R. Jimenez, Jr."</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Set 2 with a Total with 45–12? ### Context: CREATE TABLE table_name_42 (set_2 VARCHAR, total VARCHAR) ### Response: ### Response: SELECT set_2 FROM table_name_42 WHERE total = "45–12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the lowest lane found for a mark of 8.09 pb? ### Context: CREATE TABLE table_name_68 (lane INTEGER, mark VARCHAR) ### Response: ### Response: SELECT MIN(lane) FROM table_name_68 WHERE mark = "8.09 pb"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When 5.5 is the l-band what is the v-band? ### Context: CREATE TABLE table_186468_1 (v_band VARCHAR, k_band VARCHAR) ### Response: ### Response: SELECT v_band FROM table_186468_1 WHERE k_band = "5.5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team did team carlton play while away? ### Context: CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_42 WHERE away_team = "carlton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the real name of the person who is a pilot of the silent attack kayak? ### Context: CREATE TABLE table_name_28 (real_name VARCHAR, function__figure_ VARCHAR) ### Response: ### Response: SELECT real_name FROM table_name_28 WHERE function__figure_ = "pilot of the silent attack kayak"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the pick # when the new jersey devils is the nhl team? ### Context: CREATE TABLE table_2897457_3 (pick__number VARCHAR, nhl_team VARCHAR) ### Response: ### Response: SELECT pick__number FROM table_2897457_3 WHERE nhl_team = "New Jersey Devils"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the class of the Charlotte Camel gt 500 race? ### Context: CREATE TABLE table_name_76 (class VARCHAR, race VARCHAR) ### Response: ### Response: SELECT class FROM table_name_76 WHERE race = "charlotte camel gt 500"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the losses of Warrnambool with a draw less than 19? ### Context: CREATE TABLE table_name_8 (losses INTEGER, club VARCHAR, draws VARCHAR) ### Response: ### Response: SELECT AVG(losses) FROM table_name_8 WHERE club = "warrnambool" AND draws < 19</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the height with 9 floors ### Context: CREATE TABLE table_name_80 (height_ft___m VARCHAR, floors VARCHAR) ### Response: ### Response: SELECT height_ft___m FROM table_name_80 WHERE floors = 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the hometown of the player with a college of lsu? ### Context: CREATE TABLE table_name_51 (hometown VARCHAR, college VARCHAR) ### Response: ### Response: SELECT hometown FROM table_name_51 WHERE college = "lsu"</s>