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 name of the race when Lineth Chepkurui is the athlete? ### Context: CREATE TABLE table_name_17 (race VARCHAR, athlete VARCHAR) ### Response: ### Response: SELECT race FROM table_name_17 WHERE athlete = "lineth chepkurui"</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 total of Rank that has an Area (KM 2) of 1050.14? ### Context: CREATE TABLE table_name_6 (rank INTEGER, area__km_2__ VARCHAR) ### Response: ### Response: SELECT SUM(rank) FROM table_name_6 WHERE area__km_2__ = 1050.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 is the hight in ft and m of the building with less than 11 floors? ### Context: CREATE TABLE table_name_12 (height_ft__m_ VARCHAR, floors INTEGER) ### Response: ### Response: SELECT height_ft__m_ FROM table_name_12 WHERE floors < 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 was the result for the game with final record listed as 0-1? ### Context: CREATE TABLE table_name_66 (result VARCHAR, record VARCHAR) ### Response: ### Response: SELECT result FROM table_name_66 WHERE record = "0-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: If the innings is 68, what is the average? ### Context: CREATE TABLE table_23316034_16 (average VARCHAR, innings VARCHAR) ### Response: ### Response: SELECT average FROM table_23316034_16 WHERE innings = 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 is the average Isolation in the municipality of Sunndal at an elevation of more than 1850? ### Context: CREATE TABLE table_name_83 (isolation__km_ INTEGER, municipality VARCHAR, elevation__m_ VARCHAR) ### Response: ### Response: SELECT AVG(isolation__km_) FROM table_name_83 WHERE municipality = "sunndal" AND elevation__m_ > 1850</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 engine had a 48kw (65 ps) @ 5600 rpm power? ### Context: CREATE TABLE table_name_61 (engine VARCHAR, power VARCHAR) ### Response: ### Response: SELECT engine FROM table_name_61 WHERE power = "48kw (65 ps) @ 5600 rpm"</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 does Manuel Fernandes coach? ### Context: CREATE TABLE table_name_88 (club VARCHAR, head_coach VARCHAR) ### Response: ### Response: SELECT club FROM table_name_88 WHERE head_coach = "manuel fernandes"</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 current map designation for Debussy? ### Context: CREATE TABLE table_name_24 (current_map VARCHAR, name VARCHAR) ### Response: ### Response: SELECT current_map FROM table_name_24 WHERE name = "debussy"</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 revised hepburn when english is roman characters ### Context: CREATE TABLE table_26263954_1 (revised_hepburn VARCHAR, english VARCHAR) ### Response: ### Response: SELECT revised_hepburn FROM table_26263954_1 WHERE english = "Roman characters"</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 sum of the swimsuit scores from Missouri that have evening gown scores less than 8.77 and average scores less than 8.823? ### Context: CREATE TABLE table_name_77 (swimsuit INTEGER, average VARCHAR, evening_gown VARCHAR, state VARCHAR) ### Response: ### Response: SELECT SUM(swimsuit) FROM table_name_77 WHERE evening_gown < 8.77 AND state = "missouri" AND average < 8.823</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 2006-07 Season, when Team is "KF Fushë Kosova"? ### Context: CREATE TABLE table_name_64 (team VARCHAR) ### Response: ### Response: SELECT 2006 AS _07_season FROM table_name_64 WHERE team = "kf fushë kosova"</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 TYPE OF LAND WITH A 2007 POPULATION SMALLER THAN 4346, 2010 POPULATION LARGER THAN 3385, FROM BARANGAY OF MANALONGON? ### Context: CREATE TABLE table_name_10 (geographic_character VARCHAR, barangay VARCHAR, population__2007_ VARCHAR, population__2010_ VARCHAR) ### Response: ### Response: SELECT geographic_character FROM table_name_10 WHERE population__2007_ < 4346 AND population__2010_ > 3385 AND barangay = "manalongon"</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 largest Number of electorates (2009) with a Constituency number of total:? ### Context: CREATE TABLE table_name_41 (number_of_electorates__2009_ INTEGER, constituency_number VARCHAR) ### Response: ### Response: SELECT MAX(number_of_electorates__2009_) FROM table_name_41 WHERE constituency_number = "total:"</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: Date of sun. oct. 1 has what location? ### Context: CREATE TABLE table_name_29 (location VARCHAR, date VARCHAR) ### Response: ### Response: SELECT location FROM table_name_29 WHERE date = "sun. oct. 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 season was the overall record 29-7? ### Context: CREATE TABLE table_14609295_4 (season VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT season FROM table_14609295_4 WHERE overall = "29-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: What Position has a Time of 3:01.78? ### Context: CREATE TABLE table_name_78 (position VARCHAR, time VARCHAR) ### Response: ### Response: SELECT position FROM table_name_78 WHERE time = "3:01.78"</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 event is the opponent Joe Nameth? ### Context: CREATE TABLE table_name_25 (event VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT event FROM table_name_25 WHERE opponent = "joe nameth"</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 captain of the away team at Adelaide Oval? ### Context: CREATE TABLE table_name_84 (away_captain VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT away_captain FROM table_name_84 WHERE venue = "adelaide 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: What is the Playoffs MVP of the game with a Result of 4–1 with Champions Daejeon Hyundai Dynat? ### Context: CREATE TABLE table_name_65 (playoffs_mvp VARCHAR, result VARCHAR, champions VARCHAR) ### Response: ### Response: SELECT playoffs_mvp FROM table_name_65 WHERE result = "4–1" AND champions = "daejeon hyundai dynat"</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 which venue did the event held on 15 November 2010 occur? ### Context: CREATE TABLE table_name_78 (venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_78 WHERE date = "15 november 2010"</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 points against is points again, which are the drawn? ### Context: CREATE TABLE table_20396710_1 (drawn VARCHAR) ### Response: ### Response: SELECT drawn FROM table_20396710_1 WHERE "points_against" = "points_against"</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 were wounded when the complement was 173 off 2059 men? ### Context: CREATE TABLE table_11793221_2 (wounded VARCHAR, complement VARCHAR) ### Response: ### Response: SELECT wounded FROM table_11793221_2 WHERE complement = "173 off 2059 men"</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 the games are smaller than 5 and the points are 6, what is the average lost? ### Context: CREATE TABLE table_name_92 (lost INTEGER, points VARCHAR, games VARCHAR) ### Response: ### Response: SELECT AVG(lost) FROM table_name_92 WHERE points = 6 AND games < 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 Condition has an unaffected Prothrombin time and a Bleeding time, and a Partial thromboplastin time of prolonged? ### Context: CREATE TABLE table_name_73 (condition VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR) ### Response: ### Response: SELECT condition FROM table_name_73 WHERE prothrombin_time = "unaffected" AND bleeding_time = "unaffected" AND partial_thromboplastin_time = "prolonged"</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 rank when the bronze is larger than 1, and silver is less than 0? ### Context: CREATE TABLE table_name_52 (rank INTEGER, bronze VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT AVG(rank) FROM table_name_52 WHERE bronze > 1 AND silver < 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 Height of rank 11? ### Context: CREATE TABLE table_name_32 (height_ft___m VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT height_ft___m FROM table_name_32 WHERE rank = "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: Result of 86-87 (2-4) is what game? ### Context: CREATE TABLE table_name_28 (game VARCHAR, result VARCHAR) ### Response: ### Response: SELECT game FROM table_name_28 WHERE result = "86-87 (2-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 many segments involve wood boring augers ### Context: CREATE TABLE table_15187735_17 (segment_a VARCHAR, segment_d VARCHAR) ### Response: ### Response: SELECT segment_a FROM table_15187735_17 WHERE segment_d = "Wood Boring Augers"</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 has a fire store of 1991 and a hard discounter of 397? ### Context: CREATE TABLE table_name_2 (country VARCHAR, first_store VARCHAR, hard_discounters VARCHAR) ### Response: ### Response: SELECT country FROM table_name_2 WHERE first_store = "1991" AND hard_discounters = "397"</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 has the Mercury Prize award been given? ### Context: CREATE TABLE table_name_47 (year VARCHAR, award VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_name_47 WHERE award = "mercury prize"</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 had a losing team of south sydney rabbitohs? ### Context: CREATE TABLE table_name_16 (venue VARCHAR, losing_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_16 WHERE losing_team = "south sydney rabbitohs"</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 game had 8 bronze and 4 gold? ### Context: CREATE TABLE table_name_61 (games VARCHAR, bronze VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT games FROM table_name_61 WHERE bronze = "8" AND gold = "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 are the ids of documents which don't have expense budgets? ### Context: CREATE TABLE Documents (document_id VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR) ### Response: ### Response: SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses</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 record of the game with a decision of Ellis and Vancouver as the visitor? ### Context: CREATE TABLE table_name_79 (record VARCHAR, decision VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT record FROM table_name_79 WHERE decision = "ellis" AND visitor = "vancouver"</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 of victory of the tournament on 5 Jun 1988? ### Context: CREATE TABLE table_name_75 (margin_of_victory VARCHAR, date VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_name_75 WHERE date = "5 jun 1988"</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 coverage for 106.7 energy fm ### Context: CREATE TABLE table_27914076_1 (coverage VARCHAR, branding VARCHAR) ### Response: ### Response: SELECT COUNT(coverage) FROM table_27914076_1 WHERE branding = "106.7 Energy FM"</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 format has 080 360-2 as the catalog? ### Context: CREATE TABLE table_name_84 (format VARCHAR, catalog VARCHAR) ### Response: ### Response: SELECT format FROM table_name_84 WHERE catalog = "080 360-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 was the largest founded year for schools having enrollment of exactly 696? ### Context: CREATE TABLE table_2076608_1 (founded INTEGER, enrollment VARCHAR) ### Response: ### Response: SELECT MAX(founded) FROM table_2076608_1 WHERE enrollment = "696"</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 ceremony did big titty milfs work in ### Context: CREATE TABLE table_name_35 (ceremony VARCHAR, work VARCHAR) ### Response: ### Response: SELECT ceremony FROM table_name_35 WHERE work = "big titty milfs"</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 affiliation is james h. morrison part of ### Context: CREATE TABLE table_1341930_18 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_1341930_18 WHERE incumbent = "James H. Morrison"</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 on April 18? ### Context: CREATE TABLE table_name_49 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_49 WHERE date = "april 18"</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 outcome on August 5, 2007? ### Context: CREATE TABLE table_name_59 (outcome VARCHAR, date VARCHAR) ### Response: ### Response: SELECT outcome FROM table_name_59 WHERE date = "august 5, 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: Director for Star Wars Episode II: attack of the clones? ### Context: CREATE TABLE table_name_92 (director_s_ VARCHAR, title VARCHAR) ### Response: ### Response: SELECT director_s_ FROM table_name_92 WHERE title = "star wars episode ii: attack of the clones"</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: With 1.97 million HK viewers and a finale more than 33, what was the total number of peaks? ### Context: CREATE TABLE table_name_16 (peak VARCHAR, hk_viewers VARCHAR, finale VARCHAR) ### Response: ### Response: SELECT COUNT(peak) FROM table_name_16 WHERE hk_viewers = "1.97 million" AND finale > 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 nationality of Acquafresca? ### Context: CREATE TABLE table_name_9 (nat VARCHAR, name VARCHAR) ### Response: ### Response: SELECT nat FROM table_name_9 WHERE name = "acquafresca"</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 constructor had a grid number of less than 3 and where the Time/Retired was 1:34:31.522? ### Context: CREATE TABLE table_name_55 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR) ### Response: ### Response: SELECT constructor FROM table_name_55 WHERE grid < 3 AND time_retired = "1:34:31.522"</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 2010, when 2009 is "1"? ### Context: CREATE TABLE table_name_82 (Id VARCHAR) ### Response: ### Response: SELECT 2010 FROM table_name_82 WHERE 2009 = "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's listed for the Label with a Date of 29 July 1997? ### Context: CREATE TABLE table_name_51 (label VARCHAR, date VARCHAR) ### Response: ### Response: SELECT label FROM table_name_51 WHERE date = "29 july 1997"</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 country has Anselmo Da Silva in lane 2? ### Context: CREATE TABLE table_name_64 (country VARCHAR, lane VARCHAR, name VARCHAR) ### Response: ### Response: SELECT country FROM table_name_64 WHERE lane < 2 AND name = "anselmo da silva"</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: If the rebounds are at 87, what are the amount of steals? ### Context: CREATE TABLE table_25342713_5 (steals VARCHAR, rebounds VARCHAR) ### Response: ### Response: SELECT steals FROM table_25342713_5 WHERE rebounds = 87</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 a Record of 5-2? ### Context: CREATE TABLE table_name_2 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_2 WHERE record = "5-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 competition when the date is 1995-08-06? ### Context: CREATE TABLE table_name_35 (competition VARCHAR, date VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_35 WHERE date = "1995-08-06"</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 has a Result of 5-1, and a Score of 1-0? ### Context: CREATE TABLE table_name_72 (venue VARCHAR, result VARCHAR, score VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_72 WHERE result = "5-1" AND score = "1-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 modern equivalent of the former kingdom "silla" with the hanja 尙州? ### Context: CREATE TABLE table_160510_1 (modern_equivalent VARCHAR, former_kingdom VARCHAR, hanja VARCHAR) ### Response: ### Response: SELECT COUNT(modern_equivalent) FROM table_160510_1 WHERE former_kingdom = "Silla" AND hanja = "尙州"</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 public that was there when the vote percentage was 22.9%? ### Context: CREATE TABLE table_26375386_23 (public VARCHAR, vote_percentage VARCHAR) ### Response: ### Response: SELECT COUNT(public) FROM table_26375386_23 WHERE vote_percentage = "22.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 is the total of the first season in Segunda División that has a City of cañete? ### Context: CREATE TABLE table_name_44 (first_season_of_current_spell_in_segunda_división INTEGER, city VARCHAR) ### Response: ### Response: SELECT SUM(first_season_of_current_spell_in_segunda_división) FROM table_name_44 WHERE city = "cañete"</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 times was the candidates phil crane (r) 58.0% edward a. warman (d) 42.0%? ### Context: CREATE TABLE table_1341718_14 (incumbent VARCHAR, candidates VARCHAR) ### Response: ### Response: SELECT COUNT(incumbent) FROM table_1341718_14 WHERE candidates = "Phil Crane (R) 58.0% Edward A. Warman (D) 42.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 mountains classification when stage is 17? ### Context: CREATE TABLE table_name_60 (mountains_classification VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT mountains_classification FROM table_name_60 WHERE stage = "17"</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 rank with a Total smaller than 1? ### Context: CREATE TABLE table_name_69 (rank INTEGER, total INTEGER) ### Response: ### Response: SELECT MIN(rank) FROM table_name_69 WHERE total < 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 title of the episode with the production code of ad1a22? ### Context: CREATE TABLE table_name_1 (title VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT title FROM table_name_1 WHERE production_code = "ad1a22"</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 games that were drawn with ERSC Amberg as name and less than 14 points? ### Context: CREATE TABLE table_name_32 (drawn INTEGER, name VARCHAR, points VARCHAR) ### Response: ### Response: SELECT AVG(drawn) FROM table_name_32 WHERE name = "ersc amberg" AND points < 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 is the title of the episode written by David J. Burke? ### Context: CREATE TABLE table_name_6 (title VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT title FROM table_name_6 WHERE written_by = "david j. burke"</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 had a match played on August 16, 2006? ### Context: CREATE TABLE table_name_90 (venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_90 WHERE date = "august 16, 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: Which kind of policy type was chosen by the most customers? ### Context: CREATE TABLE Customer_Policies (Policy_Type_Code VARCHAR) ### Response: ### Response: SELECT Policy_Type_Code FROM Customer_Policies GROUP BY Policy_Type_Code 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 Record, when Method is "submission (triangle choke)", and when Time is 0:48? ### Context: CREATE TABLE table_name_96 (record VARCHAR, method VARCHAR, time VARCHAR) ### Response: ### Response: SELECT record FROM table_name_96 WHERE method = "submission (triangle choke)" AND time = "0:48"</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 plays linebacker? ### Context: CREATE TABLE table_name_99 (player VARCHAR, position VARCHAR) ### Response: ### Response: SELECT player FROM table_name_99 WHERE position = "linebacker"</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 stake president when the organized date is April 18, 1965? ### Context: CREATE TABLE table_name_77 (stake VARCHAR, organized VARCHAR) ### Response: ### Response: SELECT stake AS President FROM table_name_77 WHERE organized = "april 18, 1965"</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 year for open cup did not qualify and national final ### Context: CREATE TABLE table_2553861_1 (year VARCHAR, open_cup VARCHAR, playoffs VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_2553861_1 WHERE open_cup = "Did not qualify" AND playoffs = "National Final"</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 george hill (29) has the highest amount of points what is the date? ### Context: CREATE TABLE table_22883210_11 (date VARCHAR, high_points VARCHAR) ### Response: ### Response: SELECT date FROM table_22883210_11 WHERE high_points = "George Hill (29)"</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 Date, when Team is "Orlando"? ### Context: CREATE TABLE table_name_72 (date VARCHAR, team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_72 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 is the total number of Money ( $ ), when To Par is "13", and when Player is "Julius Boros"? ### Context: CREATE TABLE table_name_2 (money___ VARCHAR, to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(money___) AS $__ FROM table_name_2 WHERE to_par = 13 AND player = "julius boros"</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 Loera has a Source of surveyusa, and a Date of may 16–may 18, 2008? ### Context: CREATE TABLE table_name_47 (loera VARCHAR, source VARCHAR, date VARCHAR) ### Response: ### Response: SELECT loera FROM table_name_47 WHERE source = "surveyusa" AND date = "may 16–may 18, 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: How many contestants of whatever age are there whose hometown of Andujar? ### Context: CREATE TABLE table_23476629_2 (age VARCHAR, hometown VARCHAR) ### Response: ### Response: SELECT COUNT(age) FROM table_23476629_2 WHERE hometown = "Andujar"</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 date was the episode that aired at 7:30 pm ET? ### Context: CREATE TABLE table_name_26 (date VARCHAR, time VARCHAR) ### Response: ### Response: SELECT date FROM table_name_26 WHERE time = "7:30 pm et"</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 Japanese name has a Korean name ² of 경칩 (驚蟄) gyeongchip? ### Context: CREATE TABLE table_name_8 (japanese_name VARCHAR, korean_name_² VARCHAR) ### Response: ### Response: SELECT japanese_name FROM table_name_8 WHERE korean_name_² = "경칩 (驚蟄) gyeongchip"</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 original title of the Bruno Barreto film in 1989 ### Context: CREATE TABLE table_15277629_1 (original_title VARCHAR, director VARCHAR, year__ceremony_ VARCHAR) ### Response: ### Response: SELECT original_title FROM table_15277629_1 WHERE director = "Bruno Barreto" AND year__ceremony_ = 1989</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 professors who has a either Ph.D. or MA degree? ### Context: CREATE TABLE professor (prof_high_degree VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM professor WHERE prof_high_degree = 'Ph.D.' OR prof_high_degree = 'MA'</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 game on 8 Sep 1990? ### Context: CREATE TABLE table_name_92 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_92 WHERE date = "8 sep 1990"</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 Chinese name for the English name Andy Lau? ### Context: CREATE TABLE table_name_58 (chinese_name VARCHAR, english_name VARCHAR) ### Response: ### Response: SELECT chinese_name FROM table_name_58 WHERE english_name = "andy lau"</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 sum of ERP W with a Frequency MHz that larger than 97.7? ### Context: CREATE TABLE table_name_2 (erp_w VARCHAR, frequency_mhz INTEGER) ### Response: ### Response: SELECT COUNT(erp_w) FROM table_name_2 WHERE frequency_mhz > 97.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: What is Record, when Method is KO, and when Opponent is Rich Guerin? ### Context: CREATE TABLE table_name_99 (record VARCHAR, method VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT record FROM table_name_99 WHERE method = "ko" AND opponent = "rich guerin"</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's the Socialist Labor ticket with a Republican ticket of cuthbert w. pound? ### Context: CREATE TABLE table_name_49 (socialist_labor_ticket VARCHAR, republican_ticket VARCHAR) ### Response: ### Response: SELECT socialist_labor_ticket FROM table_name_49 WHERE republican_ticket = "cuthbert w. pound"</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 chatham complete the Hmsmedusa? ### Context: CREATE TABLE table_name_91 (completed VARCHAR, builder VARCHAR, name VARCHAR) ### Response: ### Response: SELECT completed FROM table_name_91 WHERE builder = "chatham" AND name = "hmsmedusa"</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 played value in Belgrade with attendance greater than 26,222? ### Context: CREATE TABLE table_name_83 (played INTEGER, city VARCHAR, average_attendance VARCHAR) ### Response: ### Response: SELECT AVG(played) FROM table_name_83 WHERE city = "belgrade" AND average_attendance > 26 OFFSET 222</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 opponents did the team play in week 13? ### Context: CREATE TABLE table_16677874_2 (opponents VARCHAR, game VARCHAR) ### Response: ### Response: SELECT COUNT(opponents) FROM table_16677874_2 WHERE game = 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: Name the current conference for 1974, 1989 ### Context: CREATE TABLE table_16168849_1 (current_conference VARCHAR, left VARCHAR) ### Response: ### Response: SELECT current_conference FROM table_16168849_1 WHERE left = "1974, 1989"</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 U.S. Christian with a Year that is 1989? ### Context: CREATE TABLE table_name_92 (us VARCHAR, year VARCHAR) ### Response: ### Response: SELECT us AS Christian FROM table_name_92 WHERE year = 1989</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 Location Attendance has a Game of 4? ### Context: CREATE TABLE table_name_9 (location_attendance VARCHAR, game VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_name_9 WHERE game = "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 season did Wolverhampton Wanderers win? ### Context: CREATE TABLE table_name_5 (season VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT season FROM table_name_5 WHERE winner = "wolverhampton wanderers"</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 did mahela jayawardene and thilan samaraweera play at? ### Context: CREATE TABLE table_name_42 (venue VARCHAR, batting_partners VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_42 WHERE batting_partners = "mahela jayawardene and thilan samaraweera"</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 registration for the type of T 6 G? ### Context: CREATE TABLE table_22180353_1 (registration VARCHAR, type VARCHAR) ### Response: ### Response: SELECT registration FROM table_22180353_1 WHERE type = "T 6 G"</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 featured essendon as home team? ### Context: CREATE TABLE table_name_25 (venue VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_25 WHERE home_team = "essendon"</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 date was the xiv international gold cup? ### Context: CREATE TABLE table_name_80 (date VARCHAR, race_name VARCHAR) ### Response: ### Response: SELECT date FROM table_name_80 WHERE race_name = "xiv international gold cup"</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 has the t7 place, and player Peter Oosterhuis? ### Context: CREATE TABLE table_name_48 (country VARCHAR, place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_48 WHERE place = "t7" AND player = "peter oosterhuis"</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: If the qatari male is 1104, what is the grand total? ### Context: CREATE TABLE table_26214389_3 (grand_total INTEGER, qatari_male VARCHAR) ### Response: ### Response: SELECT MAX(grand_total) FROM table_26214389_3 WHERE qatari_male = 1104</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 lowest round for a tight end position? ### Context: CREATE TABLE table_name_94 (round INTEGER, position VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_94 WHERE position = "tight 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: Which organisation type hires most research staff? ### Context: CREATE TABLE Research_Staff (employer_organisation_id VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR, organisation_id VARCHAR) ### Response: ### Response: SELECT T1.organisation_type FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_type 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: Who was the leading score in the game at the Warriors? ### Context: CREATE TABLE table_name_54 (leading_scorer VARCHAR, home VARCHAR) ### Response: ### Response: SELECT leading_scorer FROM table_name_54 WHERE home = "warriors"</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 manufacturer in 1990? ### Context: CREATE TABLE table_2266976_1 (manufacturer VARCHAR, year VARCHAR) ### Response: ### Response: SELECT manufacturer FROM table_2266976_1 WHERE year = "1990"</s>