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: What is the average age of all the dogs? ### Context: CREATE TABLE Dogs (age INTEGER) ### Response: ### Response: SELECT AVG(age) 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: Who won under Gary Simms? ### Context: CREATE TABLE table_name_92 (winner VARCHAR, trainer VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_92 WHERE trainer = "gary simms"</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 Adelaide has an Auckland of yes, a Melbourne of yes, a Perth of yes, and a Sydney of cancelled? ### Context: CREATE TABLE table_name_39 (adelaide VARCHAR, sydney VARCHAR, perth VARCHAR, auckland VARCHAR, melbourne VARCHAR) ### Response: ### Response: SELECT adelaide FROM table_name_39 WHERE auckland = "yes" AND melbourne = "yes" AND perth = "yes" AND sydney = "cancelled"</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 Losses is the lowest one that has a Season smaller than 1920, and Draws larger than 0? ### Context: CREATE TABLE table_name_75 (losses INTEGER, season VARCHAR, draws VARCHAR) ### Response: ### Response: SELECT MIN(losses) FROM table_name_75 WHERE season < 1920 AND draws > 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 COUNTRY WITH NAME OF KANU? ### Context: CREATE TABLE table_name_48 (country VARCHAR, name VARCHAR) ### Response: ### Response: SELECT country FROM table_name_48 WHERE name = "kanu"</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 companies of entrepreneurs in descending order of money requested. ### Context: CREATE TABLE entrepreneur (Company VARCHAR, Money_Requested VARCHAR) ### Response: ### Response: SELECT Company FROM entrepreneur ORDER BY Money_Requested DESC</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 wins did they have at Richmond Cricket Ground Stadium? ### Context: CREATE TABLE table_name_20 (wins VARCHAR, stadium VARCHAR) ### Response: ### Response: SELECT wins FROM table_name_20 WHERE stadium = "richmond cricket ground"</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 had the first performance on 3 july 2011? ### Context: CREATE TABLE table_name_26 (name VARCHAR, first_performance VARCHAR) ### Response: ### Response: SELECT name FROM table_name_26 WHERE first_performance = "3 july 2011"</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 name and typical buying and selling prices of the products that have color described as "yellow"? ### Context: CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_name VARCHAR, typical_buying_price VARCHAR, typical_selling_price VARCHAR, color_code VARCHAR) ### Response: ### Response: SELECT t1.product_name, t1.typical_buying_price, t1.typical_selling_price FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code WHERE t2.color_description = "yellow"</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 number of positions having points over 2, more than 4 losses, and under 10 matches played? ### Context: CREATE TABLE table_name_20 (position VARCHAR, played VARCHAR, points VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT COUNT(position) FROM table_name_20 WHERE points > 2 AND lost > 4 AND played < 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 is the 2010 with a qf in 2011? ### Context: CREATE TABLE table_name_9 (Id VARCHAR) ### Response: ### Response: SELECT 2010 FROM table_name_9 WHERE 2011 = "qf"</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 score of the friendly match at Amman on February 14, 2006? ### Context: CREATE TABLE table_name_72 (score VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT score FROM table_name_72 WHERE venue = "amman" AND competition = "friendly" AND date = "february 14, 2006"</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 country vijay singh is from ### Context: CREATE TABLE table_name_16 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_16 WHERE player = "vijay singh"</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 AAM Member, when AAM Accredited is No, when State is California, when ASTC Member is Yes, and when City is Sacramento? ### Context: CREATE TABLE table_name_21 (aam_member VARCHAR, city VARCHAR, astc_member VARCHAR, aam_accredited VARCHAR, state VARCHAR) ### Response: ### Response: SELECT aam_member FROM table_name_21 WHERE aam_accredited = "no" AND state = "california" AND astc_member = "yes" AND city = "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: Who were the victims of the US ship that sank in the Mississippi River near Memphis? ### Context: CREATE TABLE table_name_35 (principal_victims VARCHAR, nat VARCHAR, where_sunk VARCHAR) ### Response: ### Response: SELECT principal_victims FROM table_name_35 WHERE nat = "us" AND where_sunk = "mississippi river near memphis"</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 province has Michael Kirby? ### Context: CREATE TABLE table_name_39 (province VARCHAR, name VARCHAR) ### Response: ### Response: SELECT province FROM table_name_39 WHERE name = "michael kirby"</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 date of 12-02-2003? ### Context: CREATE TABLE table_name_98 (player VARCHAR, date VARCHAR) ### Response: ### Response: SELECT player FROM table_name_98 WHERE date = "12-02-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: How many zodiac signs does the month by the Thai name of กันยายน belong to? ### Context: CREATE TABLE table_180802_2 (zodiac_sign VARCHAR, thai_name VARCHAR) ### Response: ### Response: SELECT COUNT(zodiac_sign) FROM table_180802_2 WHERE thai_name = "กันยายน"</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 titles of segment a for series episode 21-12? ### Context: CREATE TABLE table_15187735_21 (segment_a VARCHAR, series_ep VARCHAR) ### Response: ### Response: SELECT segment_a FROM table_15187735_21 WHERE series_ep = "21-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 was the type of ballot measures if the % of yes vote is 32.47%? ### Context: CREATE TABLE table_256286_8 (type VARCHAR, _percentage_yes VARCHAR) ### Response: ### Response: SELECT type FROM table_256286_8 WHERE _percentage_yes = "32.47%"</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 visiting team on January 27? ### Context: CREATE TABLE table_name_24 (visitor VARCHAR, date VARCHAR) ### Response: ### Response: SELECT visitor FROM table_name_24 WHERE date = "january 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: What notes did Gabriella Bascelli receive? ### Context: CREATE TABLE table_name_41 (notes VARCHAR, athlete VARCHAR) ### Response: ### Response: SELECT notes FROM table_name_41 WHERE athlete = "gabriella bascelli"</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 Michael Stewart's school or club team? ### Context: CREATE TABLE table_name_93 (school_club_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_name_93 WHERE player = "michael stewart"</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 away team score at western oval? ### Context: CREATE TABLE table_name_46 (away_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_46 WHERE venue = "western oval"</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 did the team place when they did not qualify for the Concaf Champions Cup but made it to Round of 16 in the U.S. Open Cup? ### Context: CREATE TABLE table_16857_2 (mls_cup_playoffs VARCHAR, concacaf_champions_cup___champions_league VARCHAR, us_open_cup VARCHAR) ### Response: ### Response: SELECT mls_cup_playoffs FROM table_16857_2 WHERE concacaf_champions_cup___champions_league = "Did not qualify" AND us_open_cup = "Round of 16"</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 Senior status has a Chief Judge of —, a Reason for termination of death, and Active service of 1967–1983? ### Context: CREATE TABLE table_name_18 (senior_status VARCHAR, active_service VARCHAR, chief_judge VARCHAR, reason_for_termination VARCHAR) ### Response: ### Response: SELECT senior_status FROM table_name_18 WHERE chief_judge = "—" AND reason_for_termination = "death" AND active_service = "1967–1983"</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 RANK WITH A GROSS OF $96,773,200? ### Context: CREATE TABLE table_name_59 (rank VARCHAR, gross VARCHAR) ### Response: ### Response: SELECT COUNT(rank) FROM table_name_59 WHERE gross = "$96,773,200"</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 Oilers points have a Record of 10–6, and Oilers first downs larger than 14? ### Context: CREATE TABLE table_name_1 (oilers_points INTEGER, record VARCHAR, oilers_first_downs VARCHAR) ### Response: ### Response: SELECT AVG(oilers_points) FROM table_name_1 WHERE record = "10–6" AND oilers_first_downs > 14</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 position did Lamar Green play? ### Context: CREATE TABLE table_11545282_7 (position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT position FROM table_11545282_7 WHERE player = "Lamar Green"</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 crews for light bombardment group ### Context: CREATE TABLE table_23508196_5 (number_of_crews VARCHAR, type_of_unit VARCHAR) ### Response: ### Response: SELECT number_of_crews FROM table_23508196_5 WHERE type_of_unit = "Light bombardment group"</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 group stage was there 0 play-offs and 12 clubs played in it ### Context: CREATE TABLE table_19412902_1 (group_stage VARCHAR, play_off VARCHAR, clubs VARCHAR) ### Response: ### Response: SELECT COUNT(group_stage) FROM table_19412902_1 WHERE play_off = 0 AND clubs = 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: Which venue was used 11 february 1996? ### Context: CREATE TABLE table_name_45 (venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_45 WHERE date = "11 february 1996"</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 driver with chassis of t45 t44 and rounds of 7? ### Context: CREATE TABLE table_name_27 (driver VARCHAR, chassis VARCHAR, rounds VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_27 WHERE chassis = "t45 t44" AND rounds = "7"</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 first air date for 9 episode ### Context: CREATE TABLE table_20971444_3 (first_air_date VARCHAR, episode VARCHAR) ### Response: ### Response: SELECT first_air_date FROM table_20971444_3 WHERE episode = 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: Name the 2007 for 2005 of a and 003 of a with 2009 of sf ### Context: CREATE TABLE table_name_17 (Id VARCHAR) ### Response: ### Response: SELECT 2007 FROM table_name_17 WHERE 2005 = "a" AND 2003 = "a" AND 2009 = "sf"</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 opponent of the New Orleans Saints? ### Context: CREATE TABLE table_name_79 (result VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_name_79 WHERE opponent = "new orleans saints"</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 name of the youngest editor? ### Context: CREATE TABLE editor (Name VARCHAR, Age VARCHAR) ### Response: ### Response: SELECT Name FROM editor ORDER BY Age 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: Which Away team has a Home team of walsall? ### Context: CREATE TABLE table_name_3 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_3 WHERE home_team = "walsall"</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 years have a Make/ Model of new flyer c40lfr? ### Context: CREATE TABLE table_name_4 (year VARCHAR, make__model VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_4 WHERE make__model = "new flyer c40lfr"</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 did the oldest airline start operations? ### Context: CREATE TABLE table_15637071_1 (commenced_operations INTEGER) ### Response: ### Response: SELECT MIN(commenced_operations) FROM table_15637071_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 indiana college's average pick? ### Context: CREATE TABLE table_name_51 (pick INTEGER, college VARCHAR) ### Response: ### Response: SELECT AVG(pick) FROM table_name_51 WHERE college = "indiana"</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 date of the game when the record was 66-38? ### Context: CREATE TABLE table_name_54 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_54 WHERE record = "66-38"</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 Wu Xing (五行) with Korean (RR) of 임 (im)? ### Context: CREATE TABLE table_name_80 (wu_xing___五行__ VARCHAR, korean___rr__ VARCHAR) ### Response: ### Response: SELECT wu_xing___五行__ FROM table_name_80 WHERE korean___rr__ = "임 (im)"</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 country with a population density per km² of 3.5/km² (/sqmi)? ### Context: CREATE TABLE table_26769_1 (country_or_territory_with_flag VARCHAR, population_density_per_km² VARCHAR) ### Response: ### Response: SELECT country_or_territory_with_flag FROM table_26769_1 WHERE population_density_per_km² = "3.5/km² (/sqmi)"</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 episode aired on 11july1964? ### Context: CREATE TABLE table_1723080_1 (episode VARCHAR, broadcast_date VARCHAR) ### Response: ### Response: SELECT episode FROM table_1723080_1 WHERE broadcast_date = "11July1964"</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 and budget of departments whose budgets are more than the average budget. ### Context: CREATE TABLE department (dept_name VARCHAR, budget INTEGER) ### Response: ### Response: SELECT dept_name, budget FROM department WHERE budget > (SELECT AVG(budget) FROM department)</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 Tie is from everton? ### Context: CREATE TABLE table_name_89 (tie_no VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT tie_no FROM table_name_89 WHERE home_team = "everton"</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 example when the environment is #_x ### Context: CREATE TABLE table_name_46 (example VARCHAR, environment VARCHAR) ### Response: ### Response: SELECT example FROM table_name_46 WHERE environment = "#_x"</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 runner-up has a 10 strokes margin of victory? ### Context: CREATE TABLE table_name_12 (runner_up VARCHAR, margin_of_victory VARCHAR) ### Response: ### Response: SELECT runner_up FROM table_name_12 WHERE margin_of_victory = "10 strokes"</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 only type of university that was founded in 1873? ### Context: CREATE TABLE table_2076463_2 (control VARCHAR, founded VARCHAR) ### Response: ### Response: SELECT control FROM table_2076463_2 WHERE founded = 1873</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 overall rank when viewers are at 6.59 million? ### Context: CREATE TABLE table_20522228_2 (rank__overall_ VARCHAR, viewers__millions_ VARCHAR) ### Response: ### Response: SELECT rank__overall_ FROM table_20522228_2 WHERE viewers__millions_ = "6.59"</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 average Year when the Competition was friendly, and a Club of everton? ### Context: CREATE TABLE table_name_28 (year INTEGER, competition VARCHAR, club VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_28 WHERE competition = "friendly" AND club = "everton"</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 8th entry in the row with a first entry of "club"? ### Context: CREATE TABLE table_12792876_2 (tries_for VARCHAR) ### Response: ### Response: SELECT tries_for FROM table_12792876_2 WHERE "club" = "club"</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 epa rated combined fuel economy for the Nissan Leaf? ### Context: CREATE TABLE table_23840623_4 (epa_rated_combined_fuel_economy VARCHAR, vehicle VARCHAR) ### Response: ### Response: SELECT epa_rated_combined_fuel_economy FROM table_23840623_4 WHERE vehicle = "Nissan Leaf"</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 average frequency mhz of the loomis, south dakota city license? ### Context: CREATE TABLE table_name_83 (frequency_mhz INTEGER, city_of_license VARCHAR) ### Response: ### Response: SELECT AVG(frequency_mhz) FROM table_name_83 WHERE city_of_license = "loomis, south dakota"</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 has position in year 1996-97 in Toronto? ### Context: CREATE TABLE table_name_88 (position VARCHAR, years_in_toronto VARCHAR) ### Response: ### Response: SELECT position FROM table_name_88 WHERE years_in_toronto = "1996-97"</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: Round of 1, and a Record of 10–2 had what method? ### Context: CREATE TABLE table_name_88 (method VARCHAR, round VARCHAR, record VARCHAR) ### Response: ### Response: SELECT method FROM table_name_88 WHERE round = "1" AND record = "10–2"</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 smallest top 10 figure? ### Context: CREATE TABLE table_26609690_1 (top_10 INTEGER) ### Response: ### Response: SELECT MIN(top_10) FROM table_26609690_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: At Balmoor Stadium, what's the total average having a greater than 400 lowest? ### Context: CREATE TABLE table_name_77 (average VARCHAR, stadium VARCHAR, lowest VARCHAR) ### Response: ### Response: SELECT COUNT(average) FROM table_name_77 WHERE stadium = "balmoor" AND lowest > 400</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 is the rhel release date when scientific linux release is 3.0.4 ### Context: CREATE TABLE table_1500146_1 (rhel_release_date VARCHAR, scientific_linux_release VARCHAR) ### Response: ### Response: SELECT rhel_release_date FROM table_1500146_1 WHERE scientific_linux_release = "3.0.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: Name the opponents for record of 2-1 ### Context: CREATE TABLE table_21092444_1 (opponents VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponents FROM table_21092444_1 WHERE record = "2-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 home team has 10 as the tie no? ### Context: CREATE TABLE table_name_14 (home_team VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_14 WHERE tie_no = "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 are the top 3 highest support rates? ### Context: CREATE TABLE candidate (support_rate VARCHAR) ### Response: ### Response: SELECT support_rate FROM candidate ORDER BY support_rate DESC LIMIT 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 lowest Total, when Year(s) Won is "1968 , 1971", and when To Par is less than 11? ### Context: CREATE TABLE table_name_79 (total INTEGER, year_s__won VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT MIN(total) FROM table_name_79 WHERE year_s__won = "1968 , 1971" AND to_par < 11</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 Lomavren word has the same meaning as the Hindi word do? ### Context: CREATE TABLE table_name_97 (lomavren VARCHAR, hindi VARCHAR) ### Response: ### Response: SELECT lomavren FROM table_name_97 WHERE hindi = "do"</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 margin when periyakulam is the constituency? ### Context: CREATE TABLE table_22754491_1 (margin VARCHAR, constituency VARCHAR) ### Response: ### Response: SELECT margin FROM table_22754491_1 WHERE constituency = "Periyakulam"</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 rank has 0 as the bronze, and a total less than 3, with north korea as the nation? ### Context: CREATE TABLE table_name_56 (rank VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_56 WHERE bronze = 0 AND total < 3 AND nation = "north korea"</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 2nd party in the 1874 election? ### Context: CREATE TABLE table_name_16 (election VARCHAR) ### Response: ### Response: SELECT 2 AS nd_party FROM table_name_16 WHERE election = "1874"</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 player gradyated from Florida State? ### Context: CREATE TABLE table_name_76 (player VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT player FROM table_name_76 WHERE school_club_team = "florida state"</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 distance for the winner or 2nd Waterline? ### Context: CREATE TABLE table_name_21 (distance VARCHAR, winner_or_2nd VARCHAR) ### Response: ### Response: SELECT distance FROM table_name_21 WHERE winner_or_2nd = "waterline"</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: Frequency MHz smaller than 95.3, and a Call sign of k234ag is what class? ### Context: CREATE TABLE table_name_69 (class VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR) ### Response: ### Response: SELECT class FROM table_name_69 WHERE frequency_mhz < 95.3 AND call_sign = "k234ag"</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 opponent when the record was 11-6-2? ### Context: CREATE TABLE table_name_25 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_25 WHERE record = "11-6-2"</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 location of #1? ### Context: CREATE TABLE table_15190346_2 (location VARCHAR, _number VARCHAR) ### Response: ### Response: SELECT location FROM table_15190346_2 WHERE _number = 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 status has a role? ### Context: CREATE TABLE table_name_56 (status VARCHAR) ### Response: ### Response: SELECT status FROM table_name_56 WHERE "role" = "role"</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 date when the venue is gold coast convention centre? ### Context: CREATE TABLE table_name_70 (date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_70 WHERE venue = "gold coast convention centre"</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 most ending with for peyalvar ### Context: CREATE TABLE table_1852650_1 (ending_with INTEGER, sung_by VARCHAR) ### Response: ### Response: SELECT MAX(ending_with) FROM table_1852650_1 WHERE sung_by = "Peyalvar"</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: the sum of 2009 with rank of 5 and 2010 less than 76.5 is what? ### Context: CREATE TABLE table_name_70 (rank VARCHAR) ### Response: ### Response: SELECT SUM(2009) FROM table_name_70 WHERE rank = 5 AND 2010 < 76.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 year did the ship Europa, have the dates of 14 – 23 October? ### Context: CREATE TABLE table_name_32 (year INTEGER, ship VARCHAR, dates VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_32 WHERE ship = "europa" AND dates = "14 – 23 october"</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 date successor seated where Massachusetts 2nd is the district? ### Context: CREATE TABLE table_225093_4 (date_successor_seated VARCHAR, district VARCHAR) ### Response: ### Response: SELECT date_successor_seated FROM table_225093_4 WHERE district = "Massachusetts 2nd"</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 venue features geelong as the away side? ### Context: CREATE TABLE table_name_64 (venue VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_64 WHERE away_team = "geelong"</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 score of the game when the record was 19–13–3? ### Context: CREATE TABLE table_name_92 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_name_92 WHERE record = "19–13–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: Which Position has a School/Club Team of stanford? ### Context: CREATE TABLE table_name_15 (position VARCHAR, school_club_team VARCHAR) ### Response: ### Response: SELECT position FROM table_name_15 WHERE school_club_team = "stanford"</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 finish of player Hale Irwin? ### Context: CREATE TABLE table_name_25 (finish VARCHAR, player VARCHAR) ### Response: ### Response: SELECT finish FROM table_name_25 WHERE player = "hale irwin"</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 country is Nick Price from? ### Context: CREATE TABLE table_name_35 (country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_35 WHERE player = "nick price"</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 percent for other when the margin of error is ± 3%? ### Context: CREATE TABLE table_name_35 (other VARCHAR, margin_of_error VARCHAR) ### Response: ### Response: SELECT other FROM table_name_35 WHERE margin_of_error = "± 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 was the crowd size when the home team was Hawthorn? ### Context: CREATE TABLE table_name_53 (crowd VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT crowd FROM table_name_53 WHERE home_team = "hawthorn"</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 round of club bečej? ### Context: CREATE TABLE table_name_38 (round VARCHAR, club VARCHAR) ### Response: ### Response: SELECT round FROM table_name_38 WHERE club = "bečej"</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 team songs does fremantle have? ### Context: CREATE TABLE table_28243323_1 (basis_for_team_song VARCHAR, club_name VARCHAR) ### Response: ### Response: SELECT COUNT(basis_for_team_song) FROM table_28243323_1 WHERE club_name = "Fremantle"</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 resident state for the president elected in 1864? ### Context: CREATE TABLE table_name_83 (resident_state VARCHAR, election_year VARCHAR) ### Response: ### Response: SELECT resident_state FROM table_name_83 WHERE election_year = 1864</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 Object type has a Constellation of cancer? ### Context: CREATE TABLE table_name_58 (object_type VARCHAR, constellation VARCHAR) ### Response: ### Response: SELECT object_type FROM table_name_58 WHERE constellation = "cancer"</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 every percentage of overweight or obese adults when 12.4% of children and adolescents are obese? ### Context: CREATE TABLE table_18958648_1 (overweight__incl_obese__adults VARCHAR, obese_children_and_adolescents VARCHAR) ### Response: ### Response: SELECT overweight__incl_obese__adults FROM table_18958648_1 WHERE obese_children_and_adolescents = "12.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: Which School has an Enrollment larger than 264, and a County of 46 la porte? ### Context: CREATE TABLE table_name_52 (school VARCHAR, enrollment VARCHAR, county VARCHAR) ### Response: ### Response: SELECT school FROM table_name_52 WHERE enrollment > 264 AND county = "46 la porte"</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 team played Hawthorn as the away team? ### Context: CREATE TABLE table_name_44 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_44 WHERE away_team = "hawthorn"</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 height is the tallest for an outside hitter? ### Context: CREATE TABLE table_name_94 (height INTEGER, position VARCHAR) ### Response: ### Response: SELECT MAX(height) FROM table_name_94 WHERE position = "outside hitter"</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 date has an Opponent of bye? ### Context: CREATE TABLE table_name_78 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_78 WHERE opponent = "bye"</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 Score has a Competition of match reports? ### Context: CREATE TABLE table_name_81 (score VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT score FROM table_name_81 WHERE competition = "match reports"</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 torque with trim being xe (2009) ### Context: CREATE TABLE table_1373768_1 (torque VARCHAR, trim VARCHAR) ### Response: ### Response: SELECT torque FROM table_1373768_1 WHERE trim = "XE (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: Who won the mixed doubles in 1998? ### Context: CREATE TABLE table_15001572_1 (mixed_doubles VARCHAR, year VARCHAR) ### Response: ### Response: SELECT mixed_doubles FROM table_15001572_1 WHERE year = 1998</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 Tail Code belongs to Weapon Systems Officer Capt Charles B. Debellevue? ### Context: CREATE TABLE table_name_29 (tail_code VARCHAR, weapon_systems_officer VARCHAR) ### Response: ### Response: SELECT tail_code FROM table_name_29 WHERE weapon_systems_officer = "capt charles b. debellevue"</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 opponents stanford ### Context: CREATE TABLE table_21092444_1 (opponents VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT opponents FROM table_21092444_1 WHERE opponent = "Stanford"</s>