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 college when the overall is more than 76 for brian mitchell? ### Context: CREATE TABLE table_name_98 (college VARCHAR, overall VARCHAR, name VARCHAR) ### Response: ### Response: SELECT college FROM table_name_98 WHERE overall > 76 AND name = "brian mitchell"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Singer Maria-Louiza & Not 4 Sale had what jury? ### Context: CREATE TABLE table_name_6 (jury VARCHAR, singer VARCHAR) ### Response: ### Response: SELECT jury FROM table_name_6 WHERE singer = "maria-louiza & not 4 sale"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 golfer had a score of 68-70-68-66=272? ### Context: CREATE TABLE table_name_3 (player VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_3 WHERE score = 68 - 70 - 68 - 66 = 272</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For countries with total number of medals less than 5 and more than 2 bronze medals, what's the lowest number of gold medals? ### Context: CREATE TABLE table_name_92 (gold INTEGER, total VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT MIN(gold) FROM table_name_92 WHERE total < 5 AND bronze > 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: Which episode was directed by Bob Anderson with a production code of KABF16 and a season before than 25? ### Context: CREATE TABLE table_name_16 (episode VARCHAR, production_code VARCHAR, season VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT episode FROM table_name_16 WHERE season < 25 AND directed_by = "bob anderson" AND production_code = "kabf16"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Station Name has an Arrival time of 01:10? ### Context: CREATE TABLE table_name_97 (station_name VARCHAR, arrival VARCHAR) ### Response: ### Response: SELECT station_name FROM table_name_97 WHERE arrival = "01: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 percentage of hispanics are there when the free/reduced lunch percentage is 81.4? ### Context: CREATE TABLE table_14754471_1 (hispanic___percentage_ VARCHAR, free_reduced_lunch___percentage_ VARCHAR) ### Response: ### Response: SELECT hispanic___percentage_ FROM table_14754471_1 WHERE free_reduced_lunch___percentage_ = "81.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 DS division has S. L. M. Haneefa as the divisional secretary? ### Context: CREATE TABLE table_12485020_1 (ds_division VARCHAR, divisional_secretary VARCHAR) ### Response: ### Response: SELECT ds_division FROM table_12485020_1 WHERE divisional_secretary = "S. L. M. Haneefa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team when the away team was essendon ### Context: CREATE TABLE table_name_75 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_75 WHERE away_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: How many picks are there with an affiliation is the University of California Norcal Lamorinda United? ### Context: CREATE TABLE table_25518547_2 (pick__number VARCHAR, affiliation VARCHAR) ### Response: ### Response: SELECT COUNT(pick__number) FROM table_25518547_2 WHERE affiliation = "University of California NorCal Lamorinda United"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 floors did the building at the Jewellery quarter have? ### Context: CREATE TABLE table_name_66 (floors VARCHAR, location VARCHAR) ### Response: ### Response: SELECT floors FROM table_name_66 WHERE location = "jewellery quarter"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 population when the area is 4,575? ### Context: CREATE TABLE table_name_8 (population VARCHAR, area VARCHAR) ### Response: ### Response: SELECT population FROM table_name_8 WHERE area = "4,575"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To Par, when Player is "Julius Boros", and when Total is greater than 295? ### Context: CREATE TABLE table_name_28 (to_par VARCHAR, player VARCHAR, total VARCHAR) ### Response: ### Response: SELECT COUNT(to_par) FROM table_name_28 WHERE player = "julius boros" AND total > 295</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: College of san diego state, and a Pick # smaller than 30 is what lowest overall? ### Context: CREATE TABLE table_name_32 (overall INTEGER, college VARCHAR, pick__number VARCHAR) ### Response: ### Response: SELECT MIN(overall) FROM table_name_32 WHERE college = "san diego state" AND pick__number < 30</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Loggers are part of what Primary Conference? ### Context: CREATE TABLE table_name_60 (primary_conference VARCHAR, team_nickname VARCHAR) ### Response: ### Response: SELECT primary_conference FROM table_name_60 WHERE team_nickname = "loggers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the nicknames of schools that are not in division 1. ### Context: CREATE TABLE school_details (Nickname VARCHAR, Division VARCHAR) ### Response: ### Response: SELECT Nickname FROM school_details WHERE Division <> "Division 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 is the other person where the assistant is paulo babo ### Context: CREATE TABLE table_28046929_2 (driver VARCHAR, co_driver VARCHAR) ### Response: ### Response: SELECT driver FROM table_28046929_2 WHERE co_driver = "Paulo Babo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round with a Grand Prix of indian gp? ### Context: CREATE TABLE table_name_74 (round INTEGER, grand_prix VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_74 WHERE grand_prix = "indian gp"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick number was marc deschamps? ### Context: CREATE TABLE table_2897457_5 (pick__number VARCHAR, player VARCHAR) ### Response: ### Response: SELECT pick__number FROM table_2897457_5 WHERE player = "Marc Deschamps"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 release date of the mm series, which has the title tom thumb in trouble? ### Context: CREATE TABLE table_name_40 (release_date VARCHAR, series VARCHAR, title VARCHAR) ### Response: ### Response: SELECT release_date FROM table_name_40 WHERE series = "mm" AND title = "tom thumb in trouble"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the manner of departure for 3 january date of appointment ### Context: CREATE TABLE table_name_1 (manner_of_departure VARCHAR, date_of_appointment VARCHAR) ### Response: ### Response: SELECT manner_of_departure FROM table_name_1 WHERE date_of_appointment = "3 january"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity of the team in tucson, USA? ### Context: CREATE TABLE table_name_95 (capacity VARCHAR, country VARCHAR, city VARCHAR) ### Response: ### Response: SELECT capacity FROM table_name_95 WHERE country = "usa" AND city = "tucson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a Japan region? ### Context: CREATE TABLE table_name_70 (date VARCHAR, region VARCHAR) ### Response: ### Response: SELECT date FROM table_name_70 WHERE region = "japan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was Steve Stricker from? ### Context: CREATE TABLE table_name_10 (place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_10 WHERE player = "steve stricker"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a final score of W 30 โ€“ 5? ### Context: CREATE TABLE table_name_92 (location VARCHAR, final_score VARCHAR) ### Response: ### Response: SELECT location FROM table_name_92 WHERE final_score = "w 30 โ€“ 5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the school/club team for kevin ollie ### Context: CREATE TABLE table_15621965_14 (school_club_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_15621965_14 WHERE player = "Kevin Ollie"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Official Name of the Community with an Area km 2 of 16.13? ### Context: CREATE TABLE table_name_50 (official_name VARCHAR, area_km_2 VARCHAR) ### Response: ### Response: SELECT official_name FROM table_name_50 WHERE area_km_2 = 16.13</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average speed for ships before 1974 with over 1.73 passengers? ### Context: CREATE TABLE table_name_31 (speed INTEGER, year VARCHAR, passengers VARCHAR) ### Response: ### Response: SELECT AVG(speed) FROM table_name_31 WHERE year < 1974 AND passengers > 1.73</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the goalie in Round 7? ### Context: CREATE TABLE table_name_51 (nationality VARCHAR, round VARCHAR, position VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_51 WHERE round = 7 AND position = "goalie"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the film Mrs. Miniver, what is the actresses name? ### Context: CREATE TABLE table_18638067_1 (actor_actress VARCHAR, film_title_used_in_nomination VARCHAR) ### Response: ### Response: SELECT actor_actress FROM table_18638067_1 WHERE film_title_used_in_nomination = "Mrs. Miniver"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 writers of the books in ascending alphabetical order. ### Context: CREATE TABLE book (Writer VARCHAR) ### Response: ### Response: SELECT Writer FROM book ORDER BY Writer</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 55-14? ### Context: CREATE TABLE table_name_52 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_52 WHERE record = "55-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: Who was Richmond's away team opponent? ### Context: CREATE TABLE table_name_10 (away_team VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT away_team FROM table_name_10 WHERE home_team = "richmond"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Height (m) on the island of Burray? ### Context: CREATE TABLE table_name_22 (height__m_ INTEGER, island VARCHAR) ### Response: ### Response: SELECT MIN(height__m_) FROM table_name_22 WHERE island = "burray"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earliest year that a team event was included at Vilamoura, Portugal? ### Context: CREATE TABLE table_name_11 (year INTEGER, event VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_11 WHERE event = "team" AND venue = "vilamoura, portugal"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for when the georgian name is แƒชแƒฎแƒแƒ•แƒ แƒ”แƒ‘แƒ แƒ“แƒ แƒฃแƒฌแƒงแƒ”แƒ‘แƒ แƒ‘แƒแƒ’แƒ แƒแƒขแƒแƒœแƒ˜แƒแƒœแƒ—แƒ? ### Context: CREATE TABLE table_22464685_1 (date VARCHAR, georgian_name VARCHAR) ### Response: ### Response: SELECT date FROM table_22464685_1 WHERE georgian_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: Name the most 2012/13 for university of cambridge ### Context: CREATE TABLE table_25057928_1 (institute VARCHAR) ### Response: ### Response: SELECT MAX(2012 AS _13) FROM table_25057928_1 WHERE institute = "University of Cambridge"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 host team when the Miami Dolphins were the visiting team? ### Context: CREATE TABLE table_name_33 (host_team VARCHAR, visiting_team VARCHAR) ### Response: ### Response: SELECT host_team FROM table_name_33 WHERE visiting_team = "miami dolphins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Place of the Player with a Score of 67-76-74-67=284? ### Context: CREATE TABLE table_name_37 (place VARCHAR, score VARCHAR) ### Response: ### Response: SELECT place FROM table_name_37 WHERE score = 67 - 76 - 74 - 67 = 284</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 what tournament was the Score 5โ€“7, 7โ€“5, 6โ€“4? ### Context: CREATE TABLE table_name_54 (tournament VARCHAR, score_in_final VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_54 WHERE score_in_final = "5โ€“7, 7โ€“5, 6โ€“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: who is the player when the school is spring hs (spring, texas)? ### Context: CREATE TABLE table_name_24 (player VARCHAR, school VARCHAR) ### Response: ### Response: SELECT player FROM table_name_24 WHERE school = "spring hs (spring, texas)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 IATA for Esperadinha Airport? ### Context: CREATE TABLE table_name_3 (iata VARCHAR, airportname VARCHAR) ### Response: ### Response: SELECT iata FROM table_name_3 WHERE airportname = "esperadinha airport"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponent in the final has a Score of 6โ€“3, 3โ€“6, 6โ€“8? ### Context: CREATE TABLE table_name_29 (opponent_in_the_final VARCHAR, score VARCHAR) ### Response: ### Response: SELECT opponent_in_the_final FROM table_name_29 WHERE score = "6โ€“3, 3โ€“6, 6โ€“8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which clay has a Record of 2โ€“0, and a Hard 1โ€“0? ### Context: CREATE TABLE table_name_36 (clay VARCHAR, record VARCHAR, hard VARCHAR) ### Response: ### Response: SELECT clay FROM table_name_36 WHERE record = "2โ€“0" AND hard = "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 Third Vice President, when Inaugurated is "15 March 1934"? ### Context: CREATE TABLE table_name_38 (third_vice_president VARCHAR, inaugurated VARCHAR) ### Response: ### Response: SELECT third_vice_president FROM table_name_38 WHERE inaugurated = "15 march 1934"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 visiting team played at the home of the Chicago Black Hawks with a record of 1-1? ### Context: CREATE TABLE table_name_48 (visitor VARCHAR, home VARCHAR, record VARCHAR) ### Response: ### Response: SELECT visitor FROM table_name_48 WHERE home = "chicago black hawks" AND record = "1-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: How many times did a center that attended Oral Roberts play for the Rockets? ### Context: CREATE TABLE table_11734041_1 (years_for_rockets VARCHAR, position VARCHAR, school_club_team_country VARCHAR) ### Response: ### Response: SELECT COUNT(years_for_rockets) FROM table_11734041_1 WHERE position = "Center" AND school_club_team_country = "Oral Roberts"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance for the game with an away team of Hispano? ### Context: CREATE TABLE table_name_99 (attendance VARCHAR, away VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_99 WHERE away = "hispano"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 TO PAR OF +1, WITH WOODY AUSTIN? ### Context: CREATE TABLE table_name_68 (country VARCHAR, to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT country FROM table_name_68 WHERE to_par = "+1" AND player = "woody austin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 theme for Vegas Verdicts week with a result of Advanced? ### Context: CREATE TABLE table_name_30 (theme VARCHAR, result VARCHAR, week VARCHAR) ### Response: ### Response: SELECT theme FROM table_name_30 WHERE result = "advanced" AND week = "vegas verdicts"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that played at Launceston Cricket Club Ground, launceston during the season of 1853/54? ### Context: CREATE TABLE table_name_47 (opponent VARCHAR, venue VARCHAR, season VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_47 WHERE venue = "launceston cricket club ground, launceston" AND season = "1853/54"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of game that was played on March 19? ### Context: CREATE TABLE table_name_53 (game VARCHAR, date VARCHAR) ### Response: ### Response: SELECT game FROM table_name_53 WHERE date = "march 19"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team's overal record is 22-11? ### Context: CREATE TABLE table_23183195_2 (team VARCHAR, overall_record VARCHAR) ### Response: ### Response: SELECT team FROM table_23183195_2 WHERE overall_record = "22-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 position is todd hammel? ### Context: CREATE TABLE table_name_99 (position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT position FROM table_name_99 WHERE player = "todd hammel"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mill Built in 1802? ### Context: CREATE TABLE table_name_73 (name_of_mill VARCHAR, built VARCHAR) ### Response: ### Response: SELECT name_of_mill FROM table_name_73 WHERE built = "1802"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 desired rate when the rate limit (p) is 50.33? ### Context: CREATE TABLE table_25316812_1 (desired_rate__p_ VARCHAR, rate_limit__p_ VARCHAR) ### Response: ### Response: SELECT desired_rate__p_ FROM table_25316812_1 WHERE rate_limit__p_ = "50.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: Name the most time for katrin meiรŸner and rank less than 5 ### Context: CREATE TABLE table_name_71 (time INTEGER, name VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT MAX(time) FROM table_name_71 WHERE name = "katrin meiรŸner" AND rank < 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which locomotives 12" x 17" are both ex-industrial and built by Manning Wardle? ### Context: CREATE TABLE table_1157867_2 (name VARCHAR, notes VARCHAR, builder VARCHAR) ### Response: ### Response: SELECT name FROM table_1157867_2 WHERE notes = "Ex-industrial" AND builder = "Manning Wardle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week is more than 3 and the attendance shows bye? ### Context: CREATE TABLE table_name_39 (date VARCHAR, week VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_39 WHERE week > 3 AND attendance = "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: How many assets does each maintenance contract contain? List the number and the contract id. ### Context: CREATE TABLE Assets (maintenance_contract_id VARCHAR); CREATE TABLE Maintenance_Contracts (maintenance_contract_id VARCHAR) ### Response: ### Response: SELECT COUNT(*), T1.maintenance_contract_id FROM Maintenance_Contracts AS T1 JOIN Assets AS T2 ON T1.maintenance_contract_id = T2.maintenance_contract_id GROUP BY T1.maintenance_contract_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 C_{high} when the C_{low} value is 250.5? ### Context: CREATE TABLE table_1942366_9 (high VARCHAR, low VARCHAR) ### Response: ### Response: SELECT STRUCT(high) FROM table_1942366_9 WHERE STRUCT(low) = "250.5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team did the Maple Leafs score 9 points against? ### Context: CREATE TABLE table_23453931_4 (opponent VARCHAR, points VARCHAR) ### Response: ### Response: SELECT opponent FROM table_23453931_4 WHERE points = 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 track that from lcd soundsystem? ### Context: CREATE TABLE table_name_28 (track VARCHAR, artist VARCHAR) ### Response: ### Response: SELECT track FROM table_name_28 WHERE artist = "lcd soundsystem"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the player from the Buffalo Braves with the previous team Los Angeles Lakers and a career with the franchase in 1970? ### Context: CREATE TABLE table_name_89 (player VARCHAR, team VARCHAR, previous_team VARCHAR, career_with_the_franchise_ VARCHAR, b_ VARCHAR) ### Response: ### Response: SELECT player FROM table_name_89 WHERE team = "buffalo braves" AND previous_team = "los angeles lakers" AND career_with_the_franchise_[b_] = "1970"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the total when t11 is the finish? ### Context: CREATE TABLE table_name_39 (total INTEGER, finish VARCHAR) ### Response: ### Response: SELECT AVG(total) FROM table_name_39 WHERE finish = "t11"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is Emerson Fittipaldi starting in Pole position? ### Context: CREATE TABLE table_name_60 (city_location VARCHAR, pole_position VARCHAR) ### Response: ### Response: SELECT city_location FROM table_name_60 WHERE pole_position = "emerson fittipaldi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 co-drivers in years after 2010? ### Context: CREATE TABLE table_name_49 (co_drivers VARCHAR, year INTEGER) ### Response: ### Response: SELECT co_drivers FROM table_name_49 WHERE year > 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 w 73-70 is the score what is the location? ### Context: CREATE TABLE table_18904831_6 (location VARCHAR, score VARCHAR) ### Response: ### Response: SELECT location FROM table_18904831_6 WHERE score = "W 73-70"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Pick does the College Southeastern Louisiana have? ### Context: CREATE TABLE table_name_2 (pick VARCHAR, college VARCHAR) ### Response: ### Response: SELECT pick FROM table_name_2 WHERE college = "southeastern louisiana"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Of the series that first aired April 8, 2011, what is the total number of episodes? ### Context: CREATE TABLE table_name_53 (episodes INTEGER, first_aired VARCHAR) ### Response: ### Response: SELECT SUM(episodes) FROM table_name_53 WHERE first_aired = "april 8, 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 was the pick for the game at the College of Kentucky with the team Washington Capitols? ### Context: CREATE TABLE table_name_56 (pick VARCHAR, college VARCHAR, team VARCHAR) ### Response: ### Response: SELECT pick FROM table_name_56 WHERE college = "kentucky" AND team = "washington capitols"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 reunion weight of the contestant that lost 52 lbs at the reunion? ### Context: CREATE TABLE table_28654454_5 (reunion_weight VARCHAR, lbs_lost_reunion VARCHAR) ### Response: ### Response: SELECT reunion_weight FROM table_28654454_5 WHERE lbs_lost_reunion = 52</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the # is 9 what is the U.S original airdate? ### Context: CREATE TABLE table_29475589_5 (us_original_airdate VARCHAR, _number VARCHAR) ### Response: ### Response: SELECT us_original_airdate FROM table_29475589_5 WHERE _number = 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: How many products are there? ### Context: CREATE TABLE Products (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Products</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Game 48? ### Context: CREATE TABLE table_name_33 (score VARCHAR, game VARCHAR) ### Response: ### Response: SELECT score FROM table_name_33 WHERE game = 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: Tell me the tournament for opponents of andrei pavel rogier wassen ### Context: CREATE TABLE table_name_53 (tournament VARCHAR, opponents_in_the_final VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_53 WHERE opponents_in_the_final = "andrei pavel rogier wassen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Goal number smaller than 66? ### Context: CREATE TABLE table_name_29 (rank VARCHAR, goals INTEGER) ### Response: ### Response: SELECT rank FROM table_name_29 WHERE goals < 66</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest position a team with 7 draws earned? ### Context: CREATE TABLE table_18018214_1 (position INTEGER, draws VARCHAR) ### Response: ### Response: SELECT MAX(position) FROM table_18018214_1 WHERE draws = 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 SECOND, when FIRST is Western Australia? ### Context: CREATE TABLE table_name_64 (second VARCHAR, first VARCHAR) ### Response: ### Response: SELECT second FROM table_name_64 WHERE first = "western australia"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time when ss12 is stage? ### Context: CREATE TABLE table_21578303_2 (time VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT time FROM table_21578303_2 WHERE stage = "SS12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first and last name of the faculty participating in the most activities? ### Context: CREATE TABLE Faculty_participates_in (facID VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR, facID VARCHAR) ### Response: ### Response: SELECT T1.fname, T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID 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: How many Games Started are there for Hugh White ? ### Context: CREATE TABLE table_14342210_13 (games_started VARCHAR, player VARCHAR) ### Response: ### Response: SELECT games_started FROM table_14342210_13 WHERE player = "Hugh White"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 new managers replaced manager(s) who resigned? ### Context: CREATE TABLE table_28164986_4 (incoming_manager VARCHAR, manner_of_departure VARCHAR) ### Response: ### Response: SELECT COUNT(incoming_manager) FROM table_28164986_4 WHERE manner_of_departure = "Resigned"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 covered location has a frequency of 90.7 FM ### Context: CREATE TABLE table_name_32 (covered_location VARCHAR, frequency VARCHAR) ### Response: ### Response: SELECT covered_location FROM table_name_32 WHERE frequency = "90.7 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 was the score in 1997 for the team that has a Progress of no entrants? ### Context: CREATE TABLE table_name_83 (score VARCHAR, progress VARCHAR, year VARCHAR) ### Response: ### Response: SELECT score FROM table_name_83 WHERE progress = "no entrants" AND year = 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: When ยฃ337,000 is ยฃ saved what is the percentage of electricity reduction? ### Context: CREATE TABLE table_29538735_1 (_percentage_electricity_reduction VARCHAR, ยฃ_saved VARCHAR) ### Response: ### Response: SELECT _percentage_electricity_reduction FROM table_29538735_1 WHERE ยฃ_saved = "ยฃ337,000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 spacecraft with end time of 4 September 04:51? ### Context: CREATE TABLE table_name_70 (spacecraft VARCHAR, end_time VARCHAR) ### Response: ### Response: SELECT spacecraft FROM table_name_70 WHERE end_time = "4 september 04:51"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 golden ticket for invesco field ### Context: CREATE TABLE table_22897967_1 (golden_tickets VARCHAR, audition_venue VARCHAR) ### Response: ### Response: SELECT golden_tickets FROM table_22897967_1 WHERE audition_venue = "Invesco Field"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of silver medals won among nations that won 9 medals total? ### Context: CREATE TABLE table_name_88 (silver INTEGER, total VARCHAR) ### Response: ### Response: SELECT AVG(silver) FROM table_name_88 WHERE total = 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: Which player is from Joliet Catholic HIgh School? ### Context: CREATE TABLE table_11677691_7 (player VARCHAR, school VARCHAR) ### Response: ### Response: SELECT player FROM table_11677691_7 WHERE school = "Joliet Catholic High school"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the Belhaven College SSAC conference location? ### Context: CREATE TABLE table_name_23 (location VARCHAR, current_conference VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT location FROM table_name_23 WHERE current_conference = "ssac" AND institution = "belhaven college"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the years, book titles, and publishers for all books, in descending order by year. ### Context: CREATE TABLE book_club (YEAR VARCHAR, book_title VARCHAR, publisher VARCHAR) ### Response: ### Response: SELECT YEAR, book_title, publisher FROM book_club ORDER BY YEAR 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: What is the total number of cuts made when the events are more than 3? ### Context: CREATE TABLE table_name_47 (cuts_made VARCHAR, events INTEGER) ### Response: ### Response: SELECT COUNT(cuts_made) FROM table_name_47 WHERE events > 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 2011, when 2006 is "A", when 2008 is "A", and when Tournament is "Rome"? ### Context: CREATE TABLE table_name_19 (tournament VARCHAR) ### Response: ### Response: SELECT 2011 FROM table_name_19 WHERE 2006 = "a" AND 2008 = "a" AND tournament = "rome"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mean on-site ATMS that have off-site ATMs of 1567, and the total number of ATMs less than 4772? ### Context: CREATE TABLE table_name_20 (on_site_atms INTEGER, off_site_atms VARCHAR, total_atms VARCHAR) ### Response: ### Response: SELECT AVG(on_site_atms) FROM table_name_20 WHERE off_site_atms = 1567 AND total_atms < 4772</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 introductory phrases were there on David Finkel's guest episode? ### Context: CREATE TABLE table_25691838_8 (introductory_phrase VARCHAR, guest VARCHAR) ### Response: ### Response: SELECT COUNT(introductory_phrase) FROM table_25691838_8 WHERE guest = "David Finkel"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player number 9? ### Context: CREATE TABLE table_12962773_12 (height VARCHAR, no VARCHAR) ### Response: ### Response: SELECT height FROM table_12962773_12 WHERE no = 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: When the wins are less than 0 and the Top-5 1 what is the average cuts? ### Context: CREATE TABLE table_name_31 (cuts_made INTEGER, top_5 VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT AVG(cuts_made) FROM table_name_31 WHERE top_5 = 1 AND wins < 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: Which show aired on 19 april? ### Context: CREATE TABLE table_name_81 (show VARCHAR, date VARCHAR) ### Response: ### Response: SELECT show FROM table_name_81 WHERE date = "19 april"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 minimum amount of poles? ### Context: CREATE TABLE table_24937583_1 (poles INTEGER) ### Response: ### Response: SELECT MIN(poles) FROM table_24937583_1</s>