inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the directors of the film submitted with the title Young Törless? ### Context: CREATE TABLE table_10874596_1 (director VARCHAR, film_title_used_in_nomination VARCHAR) ### Response: ### Response: SELECT director FROM table_10874596_1 WHERE film_title_used_in_nomination = "Young Törless"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the purchase time, age and address of each member, and show the results in the order of purchase time. ### Context: CREATE TABLE member (Time_of_purchase VARCHAR, age VARCHAR, address VARCHAR) ### Response: ### Response: SELECT Time_of_purchase, age, address FROM member ORDER BY Time_of_purchase</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 english name of the ministry of defense with an abbreviation of nda bōei-dai(防衛大)? ### Context: CREATE TABLE table_name_31 (english_name VARCHAR, provider_national_government_ VARCHAR, abbreviation VARCHAR) ### Response: ### Response: SELECT english_name FROM table_name_31 WHERE provider_national_government_ = "ministry of defense" AND abbreviation = "nda bōei-dai(防衛大)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What episode number in the series is also number 17 in the season? ### Context: CREATE TABLE table_2818164_5 (no_in_series VARCHAR, no_in_season VARCHAR) ### Response: ### Response: SELECT no_in_series FROM table_2818164_5 WHERE no_in_season = "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 was the Event in the city of copenhagen? ### Context: CREATE TABLE table_name_32 (event VARCHAR, city VARCHAR) ### Response: ### Response: SELECT event FROM table_name_32 WHERE city = "copenhagen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 College did the Buffalo Sabres' pick play for? ### Context: CREATE TABLE table_1965650_7 (college_junior_club_team VARCHAR, nhl_team VARCHAR) ### Response: ### Response: SELECT college_junior_club_team FROM table_1965650_7 WHERE nhl_team = "Buffalo Sabres"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 symbol for Windpower in China? ### Context: CREATE TABLE table_11347578_1 (wind_power__wp_ VARCHAR, country VARCHAR) ### Response: ### Response: SELECT wind_power__wp_ FROM table_11347578_1 WHERE country = "China"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bronze medals did Bulgaria receive? ### Context: CREATE TABLE table_name_1 (bronze VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT bronze FROM table_name_1 WHERE nation = "bulgaria"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 epicenter latitude for the quake that started at 17:09? ### Context: CREATE TABLE table_25643046_1 (epicentre__lat VARCHAR, _s_ VARCHAR, origin_time VARCHAR) ### Response: ### Response: SELECT epicentre__lat, _s_ FROM table_25643046_1 WHERE origin_time = "17:09"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the Ghantoot Racing and Polo Club? ### Context: CREATE TABLE table_name_4 (time VARCHAR, ground VARCHAR) ### Response: ### Response: SELECT time FROM table_name_4 WHERE ground = "ghantoot racing and polo club"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is moving from Treviso with a loan return? ### Context: CREATE TABLE table_name_42 (name VARCHAR, moving_from VARCHAR, type VARCHAR) ### Response: ### Response: SELECT name FROM table_name_42 WHERE moving_from = "treviso" AND type = "loan return"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the score was 2–0? ### Context: CREATE TABLE table_name_45 (record VARCHAR, score VARCHAR) ### Response: ### Response: SELECT record FROM table_name_45 WHERE score = "2–0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the NBA draft result of the player with a height of 6-7? ### Context: CREATE TABLE table_name_67 (nba_draft VARCHAR, height VARCHAR) ### Response: ### Response: SELECT nba_draft FROM table_name_67 WHERE height = "6-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 the sspec number when the part number is cw8064701470802? ### Context: CREATE TABLE table_name_2 (sspec_number VARCHAR, part_number_s_ VARCHAR) ### Response: ### Response: SELECT sspec_number FROM table_name_2 WHERE part_number_s_ = "cw8064701470802"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2009, when 2000 is 1R, and when 1998 is 3R? ### Context: CREATE TABLE table_name_1 (Id VARCHAR) ### Response: ### Response: SELECT 2009 FROM table_name_1 WHERE 2000 = "1r" AND 1998 = "3r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 original air date for number in season being 1 ### Context: CREATE TABLE table_17625876_1 (original_air_date VARCHAR, no_in_season VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_17625876_1 WHERE no_in_season = 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 score of the game with Grizzlies as the visitor team on 30 December 2007? ### Context: CREATE TABLE table_name_21 (score VARCHAR, visitor VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_21 WHERE visitor = "grizzlies" AND date = "30 december 2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What school/club team is Trey Johnson on? ### Context: CREATE TABLE table_10015132_9 (school_club_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_10015132_9 WHERE player = "Trey Johnson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 forms of the conjucated vos(*) where él / ella / usted is muela ### Context: CREATE TABLE table_1977630_2 (vos__ VARCHAR, _ VARCHAR, él___ella___usted VARCHAR) ### Response: ### Response: SELECT vos__ * _ FROM table_1977630_2 WHERE él___ella___usted = "muela"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wins of drivers from Sweden? ### Context: CREATE TABLE table_name_51 (driver_wins INTEGER, nation VARCHAR) ### Response: ### Response: SELECT AVG(driver_wins) FROM table_name_51 WHERE nation = "sweden"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 parties were first elected in 1994? ### Context: CREATE TABLE table_1805191_39 (party VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT COUNT(party) FROM table_1805191_39 WHERE first_elected = 1994</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 league cup goals when the league cup apps is 4, league goals is less than 4, fa cup apps is 1 and total apps is 35? ### Context: CREATE TABLE table_name_98 (league_cup_goals INTEGER, total_apps VARCHAR, fa_cup_apps VARCHAR, league_cup_apps VARCHAR, league_goals VARCHAR) ### Response: ### Response: SELECT AVG(league_cup_goals) FROM table_name_98 WHERE league_cup_apps = 4 AND league_goals < 4 AND fa_cup_apps = "1" AND total_apps = "35"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 music of the team that was eliminated? ### Context: CREATE TABLE table_name_7 (music VARCHAR, result VARCHAR) ### Response: ### Response: SELECT music FROM table_name_7 WHERE result = "eliminated"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 division is the Derbyshire Falcons in? ### Context: CREATE TABLE table_name_68 (division VARCHAR, team VARCHAR) ### Response: ### Response: SELECT division FROM table_name_68 WHERE team = "derbyshire falcons"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 least wins for 5 losses ### Context: CREATE TABLE table_18607260_6 (wins INTEGER, losses VARCHAR) ### Response: ### Response: SELECT MIN(wins) FROM table_18607260_6 WHERE losses = 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: Where where the bbc three weekly ranking for episode no. 5? ### Context: CREATE TABLE table_24399615_3 (bbc_three_weekly_ranking VARCHAR, episode_no VARCHAR) ### Response: ### Response: SELECT bbc_three_weekly_ranking FROM table_24399615_3 WHERE episode_no = 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: How many laps does peter arundell have? ### Context: CREATE TABLE table_name_65 (laps VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT laps FROM table_name_65 WHERE driver = "peter arundell"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the date of the Cross Code debut that had an Int'l Debut in the year 2008? ### Context: CREATE TABLE table_name_20 (date VARCHAR, year VARCHAR) ### Response: ### Response: SELECT date FROM table_name_20 WHERE year = "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: Which lane ranked less than 4 for the Netherlands? ### Context: CREATE TABLE table_name_4 (lane VARCHAR, rank VARCHAR, nationality VARCHAR) ### Response: ### Response: SELECT lane FROM table_name_4 WHERE rank < 4 AND nationality = "netherlands"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode # when the guests were julie nixon eisenhower and david eisenhower? ### Context: CREATE TABLE table_25691838_12 (episode__number INTEGER, guest VARCHAR) ### Response: ### Response: SELECT MIN(episode__number) FROM table_25691838_12 WHERE guest = "Julie Nixon Eisenhower and David Eisenhower"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 least amount of new adherents per year ### Context: CREATE TABLE table_28137918_5 (new_adherents_per_year INTEGER) ### Response: ### Response: SELECT MIN(new_adherents_per_year) FROM table_28137918_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 is the maximum number that a certain service is provided? List the service id, details and number. ### Context: CREATE TABLE Services (service_id VARCHAR, service_details VARCHAR); CREATE TABLE Residents_Services (service_id VARCHAR) ### Response: ### Response: SELECT T1.service_id, T1.service_details, COUNT(*) FROM Services AS T1 JOIN Residents_Services AS T2 ON T1.service_id = T2.service_id GROUP BY T1.service_id 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 was the attendance at Windy Hill? ### Context: CREATE TABLE table_name_27 (crowd INTEGER, venue VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_name_27 WHERE venue = "windy hill"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the away team score for North Melbourne's home team? ### Context: CREATE TABLE table_name_5 (away_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_5 WHERE away_team = "north melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which original artist has a Episode of workshop #1? ### Context: CREATE TABLE table_name_32 (original_artist VARCHAR, episode VARCHAR) ### Response: ### Response: SELECT original_artist FROM table_name_32 WHERE episode = "workshop #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: Please show the countries and the number of climbers from each country. ### Context: CREATE TABLE climber (Country VARCHAR) ### Response: ### Response: SELECT Country, COUNT(*) FROM climber GROUP BY Country</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was lynn muscarella the high school principal and charlie wiltse the superintendent? ### Context: CREATE TABLE table_25037577_1 (year VARCHAR, high_school_principal VARCHAR, superintendent VARCHAR) ### Response: ### Response: SELECT COUNT(year) FROM table_25037577_1 WHERE high_school_principal = "Lynn Muscarella" AND superintendent = "Charlie Wiltse"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 DIRECTOR WITH FILM hope and pain? ### Context: CREATE TABLE table_name_28 (director VARCHAR, film_title_used_in_nomination VARCHAR) ### Response: ### Response: SELECT director FROM table_name_28 WHERE film_title_used_in_nomination = "hope and pain"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament was the winning score –10 (68-71-69-70=278)? ### Context: CREATE TABLE table_name_21 (tournament VARCHAR, winning_score VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_21 WHERE winning_score = –10(68 - 71 - 69 - 70 = 278)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Authors, when Novelty is Gen Et Sp Nov, and when Name is Lanthanocephalus? ### Context: CREATE TABLE table_name_13 (authors VARCHAR, novelty VARCHAR, name VARCHAR) ### Response: ### Response: SELECT authors FROM table_name_13 WHERE novelty = "gen et sp nov" AND name = "lanthanocephalus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 League has a Venue of martin luther king, jr. recreation center? ### Context: CREATE TABLE table_name_95 (league VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT league FROM table_name_95 WHERE venue = "martin luther king, jr. recreation center"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were all the points for Tonyrefail RFC? ### Context: CREATE TABLE table_13564637_5 (points_for VARCHAR, club VARCHAR) ### Response: ### Response: SELECT points_for FROM table_13564637_5 WHERE club = "Tonyrefail RFC"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earning amount is $309,886, what is the money list ranking? ### Context: CREATE TABLE table_22081847_1 (money_list_rank VARCHAR, earnings__$_ VARCHAR) ### Response: ### Response: SELECT money_list_rank FROM table_22081847_1 WHERE earnings__$_ = "309,886"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total episode for runtime of 24:11 ### Context: CREATE TABLE table_2105721_1 (episode VARCHAR, run_time VARCHAR) ### Response: ### Response: SELECT COUNT(episode) FROM table_2105721_1 WHERE run_time = "24: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 is the total Frequency MHz Port Charlotte, Florida, which has an ERP W larger than 10, has? ### Context: CREATE TABLE table_name_41 (frequency_mhz VARCHAR, city_of_license VARCHAR, erp_w VARCHAR) ### Response: ### Response: SELECT COUNT(frequency_mhz) FROM table_name_41 WHERE city_of_license = "port charlotte, florida" AND erp_w > 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date of the game when attendance is more than 20,682? ### Context: CREATE TABLE table_name_59 (date VARCHAR, attendance INTEGER) ### Response: ### Response: SELECT date FROM table_name_59 WHERE attendance > 20 OFFSET 682</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 roberts 86' is the scorer what is the round? ### Context: CREATE TABLE table_28181401_4 (round VARCHAR, scorers VARCHAR) ### Response: ### Response: SELECT round FROM table_28181401_4 WHERE scorers = "Roberts 86'"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 losses have more than 45,036 attendance? ### Context: CREATE TABLE table_name_50 (loss VARCHAR, attendance INTEGER) ### Response: ### Response: SELECT loss FROM table_name_50 WHERE attendance > 45 OFFSET 036</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record data were written when Devin Harris (6) was High Assists? ### Context: CREATE TABLE table_27700375_8 (record VARCHAR, high_assists VARCHAR) ### Response: ### Response: SELECT COUNT(record) FROM table_27700375_8 WHERE high_assists = "Devin Harris (6)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 contestant who was a small business owner? ### Context: CREATE TABLE table_19810459_1 (result VARCHAR, background VARCHAR) ### Response: ### Response: SELECT result FROM table_19810459_1 WHERE background = "Small business owner"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Visiting team on december 20? ### Context: CREATE TABLE table_name_99 (visiting_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT visiting_team FROM table_name_99 WHERE date = "december 20"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Character has a Category of favourite naya sadasya? ### Context: CREATE TABLE table_name_68 (character VARCHAR, category VARCHAR) ### Response: ### Response: SELECT character FROM table_name_68 WHERE category = "favourite naya sadasya"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total apps for eddie carr ### Context: CREATE TABLE table_19730892_1 (total_apps INTEGER, name VARCHAR) ### Response: ### Response: SELECT MAX(total_apps) FROM table_19730892_1 WHERE name = "Eddie Carr"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the date is December 14, 1985? ### Context: CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_98 WHERE date = "december 14, 1985"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which team was the opponent in game 5? ### Context: CREATE TABLE table_29181479_3 (team VARCHAR, game VARCHAR) ### Response: ### Response: SELECT team FROM table_29181479_3 WHERE game = 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 average year with Laps of 6 ### Context: CREATE TABLE table_name_11 (year INTEGER, laps VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_11 WHERE laps = 6</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Pinyin for the item that has a density of 77? ### Context: CREATE TABLE table_name_65 (hanyu_pinyin VARCHAR, density___km²_ VARCHAR) ### Response: ### Response: SELECT hanyu_pinyin FROM table_name_65 WHERE density___km²_ = "77"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rounds had the score 44-22 ### Context: CREATE TABLE table_21256068_3 (round VARCHAR, score VARCHAR) ### Response: ### Response: SELECT COUNT(round) FROM table_21256068_3 WHERE score = "44-22"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many different PPI does the model with ppcm of 87 have? ### Context: CREATE TABLE table_27653752_1 (ppi__pixels_per_inch__ VARCHAR, ppcm__pixels_per_cm__ VARCHAR) ### Response: ### Response: SELECT COUNT(ppi__pixels_per_inch__) FROM table_27653752_1 WHERE ppcm__pixels_per_cm__ = 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: which is the former pageant in the country where the new pageant is miss bahamas? ### Context: CREATE TABLE table_14308895_2 (former_pageant VARCHAR, new_pageant VARCHAR) ### Response: ### Response: SELECT former_pageant FROM table_14308895_2 WHERE new_pageant = "Miss Bahamas"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 series # 8? ### Context: CREATE TABLE table_27720737_1 (title VARCHAR, series__number VARCHAR) ### Response: ### Response: SELECT title FROM table_27720737_1 WHERE series__number = 8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the team for 1976? ### Context: CREATE TABLE table_name_67 (team VARCHAR, year VARCHAR) ### Response: ### Response: SELECT team FROM table_name_67 WHERE year = "1976"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 compulsory deduction of 29.3%? ### Context: CREATE TABLE table_24486462_1 (country VARCHAR, compulsory_deduction VARCHAR) ### Response: ### Response: SELECT country FROM table_24486462_1 WHERE compulsory_deduction = "29.3%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the largest rank with 2,080 area? ### Context: CREATE TABLE table_name_34 (rank INTEGER, area__sqmi_ VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_34 WHERE area__sqmi_ = 2 OFFSET 080</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 English word has the same meaning as the German word "german"? ### Context: CREATE TABLE table_name_3 (english VARCHAR) ### Response: ### Response: SELECT english FROM table_name_3 WHERE "german" = "german"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year was incumbent jim ramstad first elected? ### Context: CREATE TABLE table_1341423_23 (first_elected INTEGER, incumbent VARCHAR) ### Response: ### Response: SELECT MIN(first_elected) FROM table_1341423_23 WHERE incumbent = "Jim Ramstad"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the player vaughn taylor listed? ### Context: CREATE TABLE table_28498999_3 (before VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(before) FROM table_28498999_3 WHERE player = "Vaughn Taylor"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score of the match with a 3-0 result? ### Context: CREATE TABLE table_name_44 (score VARCHAR, result VARCHAR) ### Response: ### Response: SELECT score FROM table_name_44 WHERE result = "3-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: Can you tell me the lowest Losses that has the Gains smaller than 0? ### Context: CREATE TABLE table_name_24 (losses INTEGER, gains INTEGER) ### Response: ### Response: SELECT MIN(losses) FROM table_name_24 WHERE gains < 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 Year (Ceremony), when Director is "Wang Siu-Di"? ### Context: CREATE TABLE table_name_66 (year__ceremony_ VARCHAR, director VARCHAR) ### Response: ### Response: SELECT year__ceremony_ FROM table_name_66 WHERE director = "wang siu-di"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 statements do we have? ### Context: CREATE TABLE Statements (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Statements</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a runner-up of waseda, and a title of 47th? ### Context: CREATE TABLE table_name_25 (season VARCHAR, runner_up VARCHAR, title VARCHAR) ### Response: ### Response: SELECT season FROM table_name_25 WHERE runner_up = "waseda" AND title = "47th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For the race Champion Spark Plug 300, what is the report? ### Context: CREATE TABLE table_name_78 (report VARCHAR, race_name VARCHAR) ### Response: ### Response: SELECT report FROM table_name_78 WHERE race_name = "champion spark plug 300"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Laps that has a Year after 2002 with Alexander Frei Bruno Besson? ### Context: CREATE TABLE table_name_4 (laps INTEGER, year VARCHAR, co_drivers VARCHAR) ### Response: ### Response: SELECT MIN(laps) FROM table_name_4 WHERE year > 2002 AND co_drivers = "alexander frei bruno besson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Trofeo Fast Team with a point classification of Silvio Martinello and stage 6? ### Context: CREATE TABLE table_name_67 (trofeo_fast_team VARCHAR, points_classification VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT trofeo_fast_team FROM table_name_67 WHERE points_classification = "silvio martinello" AND stage = "6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 main use for the structure listed in walker city, iowa? ### Context: CREATE TABLE table_name_25 (main_use VARCHAR, town VARCHAR) ### Response: ### Response: SELECT main_use FROM table_name_25 WHERE town = "walker city, iowa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 north melbourne's score as an away side? ### Context: CREATE TABLE table_name_80 (away_team VARCHAR) ### Response: ### Response: SELECT away_team AS score FROM table_name_80 WHERE away_team = "north melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the total number of offensive for colin doyle ### Context: CREATE TABLE table_23265433_2 (offensive VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT COUNT(offensive) FROM table_23265433_2 WHERE overall = "Colin Doyle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at memorial stadium • minneapolis, mn, and an Opponent of northwestern? ### Context: CREATE TABLE table_name_45 (date VARCHAR, site VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_45 WHERE site = "memorial stadium • minneapolis, mn" AND opponent = "northwestern"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 hosts of competitions whose theme is not "Aliens"? ### Context: CREATE TABLE farm_competition (Hosts VARCHAR, Theme VARCHAR) ### Response: ### Response: SELECT Hosts FROM farm_competition WHERE Theme <> 'Aliens'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode number 9-10? ### Context: CREATE TABLE table_27832075_2 (title VARCHAR, episode__number VARCHAR) ### Response: ### Response: SELECT title FROM table_27832075_2 WHERE episode__number = "9-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: Who is the Director that speaks dutch? ### Context: CREATE TABLE table_name_8 (director VARCHAR, language VARCHAR) ### Response: ### Response: SELECT director FROM table_name_8 WHERE language = "dutch"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which position is team mons who was replaced by Christophe Dessy (caretaker)? ### Context: CREATE TABLE table_name_91 (position_in_table VARCHAR, team VARCHAR, replaced_by VARCHAR) ### Response: ### Response: SELECT position_in_table FROM table_name_91 WHERE team = "mons" AND replaced_by = "christophe dessy (caretaker)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 accession number for sequence similarity being 54 ### Context: CREATE TABLE table_27155678_2 (accession_number VARCHAR, sequence_similarity VARCHAR) ### Response: ### Response: SELECT accession_number FROM table_27155678_2 WHERE sequence_similarity = 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 date of appointment for the 10th person in position? ### Context: CREATE TABLE table_22133191_3 (date_of_appointment VARCHAR, position_in_table VARCHAR) ### Response: ### Response: SELECT date_of_appointment FROM table_22133191_3 WHERE position_in_table = "10th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the number of scientists involved for the projects that require more than 300 hours. ### Context: CREATE TABLE assignedto (project VARCHAR); CREATE TABLE projects (name VARCHAR, code VARCHAR, hours INTEGER) ### Response: ### Response: SELECT COUNT(*), T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Gary David Saunders' Tenure? ### Context: CREATE TABLE table_name_23 (tenure VARCHAR, name VARCHAR) ### Response: ### Response: SELECT tenure FROM table_name_23 WHERE name = "gary david saunders"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the game when the loss was hargan (14–13)? ### Context: CREATE TABLE table_name_84 (record VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT record FROM table_name_84 WHERE loss = "hargan (14–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 was the venue on 17/02/2008? ### Context: CREATE TABLE table_name_1 (venue VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_1 WHERE date = "17/02/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: Name the score for september 11 ### Context: CREATE TABLE table_name_48 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_48 WHERE date = "september 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: Name the plaform for year more than 2006 and developer of 3g studios ### Context: CREATE TABLE table_name_33 (platform VARCHAR, year VARCHAR, developer VARCHAR) ### Response: ### Response: SELECT platform FROM table_name_33 WHERE year > 2006 AND developer = "3g studios"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the status of the membership application on 2008-12-15? ### Context: CREATE TABLE table_name_26 (status VARCHAR, membership_application VARCHAR) ### Response: ### Response: SELECT status FROM table_name_26 WHERE membership_application = "2008-12-15"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 intergiro classification of stage 21? ### Context: CREATE TABLE table_12261926_2 (intergiro_classification VARCHAR, stage VARCHAR) ### Response: ### Response: SELECT intergiro_classification FROM table_12261926_2 WHERE stage = 21</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Probate Activities, when Notarial Activities is No, when Conduct of Litigation is Yes, and when Regulator is Association of Law Costs Draftsmen? ### Context: CREATE TABLE table_name_16 (probate_activities VARCHAR, regulator VARCHAR, notarial_activities VARCHAR, conduct_of_litigation VARCHAR) ### Response: ### Response: SELECT probate_activities FROM table_name_16 WHERE notarial_activities = "no" AND conduct_of_litigation = "yes" AND regulator = "association of law costs draftsmen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 silver medals when there are 0 Bronze medals, and the nation is the United Kingdom? ### Context: CREATE TABLE table_name_71 (silver VARCHAR, bronze VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT COUNT(silver) FROM table_name_71 WHERE bronze = 0 AND nation = "united kingdom"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 language is the film Marion Bridge? ### Context: CREATE TABLE table_name_46 (language VARCHAR, film VARCHAR) ### Response: ### Response: SELECT language FROM table_name_46 WHERE film = "marion bridge"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 area shows % Hindu of statistics from the bbc in depth report.? ### Context: CREATE TABLE table_name_71 (area VARCHAR, _percentage_hindu VARCHAR) ### Response: ### Response: SELECT area FROM table_name_71 WHERE _percentage_hindu = "statistics from the bbc in depth report."</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 presenter on Monday of "Big Brother 13" in which Alice Levine Jamie East presented on Sunday? ### Context: CREATE TABLE table_name_45 (monday VARCHAR, sunday VARCHAR, series VARCHAR) ### Response: ### Response: SELECT monday FROM table_name_45 WHERE sunday = "alice levine jamie east" AND series = "big brother 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: How many women doubles teams competed in the same year as when Jamie van Hooijdonk competed in men singles? ### Context: CREATE TABLE table_12232843_1 (womens_doubles VARCHAR, mens_singles VARCHAR) ### Response: ### Response: SELECT COUNT(womens_doubles) FROM table_12232843_1 WHERE mens_singles = "Jamie van Hooijdonk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Location /State has a Winner of craig lowndes, and a Date of 29–31 may? ### Context: CREATE TABLE table_name_67 (location___state VARCHAR, winner VARCHAR, date VARCHAR) ### Response: ### Response: SELECT location___state FROM table_name_67 WHERE winner = "craig lowndes" AND date = "29–31 may"</s>