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 is the winning driver of the race on 2 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team? ### Context: CREATE TABLE table_name_15 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT winning_driver FROM table_name_15 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND date = "2 june"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 technology when the gel pouring is no and the analysis time is 8 days? ### Context: CREATE TABLE table_name_88 (technology VARCHAR, gel_pouring VARCHAR, analysis_time VARCHAR) ### Response: ### Response: SELECT technology FROM table_name_88 WHERE gel_pouring = "no" AND analysis_time = "8 days"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sum of gold for bronze less than 0 ### Context: CREATE TABLE table_name_31 (gold INTEGER, bronze INTEGER) ### Response: ### Response: SELECT SUM(gold) FROM table_name_31 WHERE bronze < 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: Name the bulgarian name for mart ### Context: CREATE TABLE table_15275060_1 (bulgarian_name VARCHAR, Mart VARCHAR, Transliteration VARCHAR) ### Response: ### Response: SELECT bulgarian_name FROM table_15275060_1 WHERE BULGARIAN_NAME(Transliteration) = Mart</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 title of series number 56? ### Context: CREATE TABLE table_2468961_4 (title VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT title FROM table_2468961_4 WHERE no_in_series = 56</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 bleeding time for factor xii deficiency ### Context: CREATE TABLE table_1099080_1 (bleeding_time VARCHAR, condition VARCHAR) ### Response: ### Response: SELECT bleeding_time FROM table_1099080_1 WHERE condition = "Factor XII deficiency"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Producer/Director of Political Engagement? ### Context: CREATE TABLE table_name_67 (producer_director VARCHAR, film VARCHAR) ### Response: ### Response: SELECT producer_director FROM table_name_67 WHERE film = "political engagement"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 spent per voter when total amount spent was 210,280,000? ### Context: CREATE TABLE table_22097588_9 (spent_per_voter___php__ VARCHAR, amount_spent___php__ VARCHAR) ### Response: ### Response: SELECT spent_per_voter___php__ FROM table_22097588_9 WHERE amount_spent___php__ = "210,280,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 average rating of songs for each language? ### Context: CREATE TABLE song (languages VARCHAR, rating INTEGER) ### Response: ### Response: SELECT AVG(rating), languages FROM song GROUP BY languages</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when the opponent was Rory Markham? ### Context: CREATE TABLE table_name_96 (res VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT res FROM table_name_96 WHERE opponent = "rory markham"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 qualification with more than 162 laps in 1953? ### Context: CREATE TABLE table_name_35 (qual VARCHAR, laps VARCHAR, year VARCHAR) ### Response: ### Response: SELECT qual FROM table_name_35 WHERE laps > 162 AND year = "1953"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 number of f/laps? ### Context: CREATE TABLE table_26222468_1 (f_laps INTEGER) ### Response: ### Response: SELECT MIN(f_laps) FROM table_26222468_1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what's the pts with team being kopron team scot ### Context: CREATE TABLE table_14139408_1 (pts VARCHAR, team VARCHAR) ### Response: ### Response: SELECT pts FROM table_14139408_1 WHERE team = "Kopron team Scot"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the score on August 8? ### Context: CREATE TABLE table_name_82 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_82 WHERE date = "august 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 lowest number of cuts made when her best finish is t4? ### Context: CREATE TABLE table_14853156_2 (cuts_made INTEGER, best_finish VARCHAR) ### Response: ### Response: SELECT MIN(cuts_made) FROM table_14853156_2 WHERE best_finish = "T4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Set 1 of the 45:40 Total? ### Context: CREATE TABLE table_name_73 (set_1 VARCHAR, total VARCHAR) ### Response: ### Response: SELECT set_1 FROM table_name_73 WHERE total = "45:40"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 poll source is research 2000/daily kos, what is the total number of dates administered? ### Context: CREATE TABLE table_16751596_13 (dates_administered VARCHAR, poll_source VARCHAR) ### Response: ### Response: SELECT COUNT(dates_administered) FROM table_16751596_13 WHERE poll_source = "Research 2000/Daily Kos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which date had a venue of the Gold Coast Convention Centre? ### Context: CREATE TABLE table_name_36 (date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_36 WHERE venue = "gold coast convention centre"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: On what ground was the game on 31 Jul 2007? ### Context: CREATE TABLE table_name_60 (ground VARCHAR, date VARCHAR) ### Response: ### Response: SELECT ground FROM table_name_60 WHERE date = "31 jul 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: Who was the incumbent when henry e. barbour ran? ### Context: CREATE TABLE table_1342379_5 (candidates VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1342379_5 WHERE incumbent = "Henry E. Barbour"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 drivers did not participate in the races held in 2009? ### Context: CREATE TABLE races (driverId VARCHAR, raceId VARCHAR, YEAR VARCHAR); CREATE TABLE results (driverId VARCHAR, raceId VARCHAR, YEAR VARCHAR) ### Response: ### Response: SELECT COUNT(DISTINCT driverId) FROM results WHERE NOT raceId IN (SELECT raceId FROM races WHERE YEAR <> 2009)</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the attribute for mutation and domcharacterdatamodified ### Context: CREATE TABLE table_name_81 (attribute VARCHAR, category VARCHAR, type VARCHAR) ### Response: ### Response: SELECT attribute FROM table_name_81 WHERE category = "mutation" AND type = "domcharacterdatamodified"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where was the landing site when the duration on the lunar surface was 21:31? ### Context: CREATE TABLE table_name_52 (lunar_landing_site VARCHAR, duration_on_lunar_surface VARCHAR) ### Response: ### Response: SELECT lunar_landing_site FROM table_name_52 WHERE duration_on_lunar_surface = "21:31"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 candidates were there when Henry Garland Dupré was the incumbent? ### Context: CREATE TABLE table_1342451_16 (candidates VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT COUNT(candidates) FROM table_1342451_16 WHERE incumbent = "Henry Garland Dupré"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 competition was the score reported as 12.8 (80) - 8.7 (55)? ### Context: CREATE TABLE table_name_30 (competition VARCHAR, score VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_30 WHERE score = "12.8 (80) - 8.7 (55)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tries against did Pentyrch RFC have? ### Context: CREATE TABLE table_name_92 (tries_against VARCHAR, club VARCHAR) ### Response: ### Response: SELECT tries_against FROM table_name_92 WHERE club = "pentyrch 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: How many Points were awarded to Sabahudin Kurt with a Draw is greater than 7? ### Context: CREATE TABLE table_name_64 (points VARCHAR, draw VARCHAR, artist VARCHAR) ### Response: ### Response: SELECT points FROM table_name_64 WHERE draw > 7 AND artist = "sabahudin kurt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 employees do we have? ### Context: CREATE TABLE Employee (Id VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM Employee</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What type of surface did they play on 23 October 2000? ### Context: CREATE TABLE table_name_67 (surface VARCHAR, date VARCHAR) ### Response: ### Response: SELECT surface FROM table_name_67 WHERE date = "23 october 2000"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2nd leg score for Chemie Halle? ### Context: CREATE TABLE table_name_73 (team__number1 VARCHAR) ### Response: ### Response: SELECT 2 AS nd_leg FROM table_name_73 WHERE team__number1 = "chemie halle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the most time for the swimmer from South Africa who was in a lane greater than 3? ### Context: CREATE TABLE table_name_64 (time INTEGER, nationality VARCHAR, lane VARCHAR) ### Response: ### Response: SELECT MAX(time) FROM table_name_64 WHERE nationality = "south africa" AND lane > 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 land area of Switzerland with a population density fewer than 188 km²? ### Context: CREATE TABLE table_name_98 (land_area__km²_ INTEGER, country VARCHAR, population_density__pop_per_km²_ VARCHAR) ### Response: ### Response: SELECT AVG(land_area__km²_) FROM table_name_98 WHERE country = "switzerland" AND population_density__pop_per_km²_ < 188</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 placed third in 2001? ### Context: CREATE TABLE table_17632217_2 (third_place VARCHAR, season VARCHAR) ### Response: ### Response: SELECT third_place FROM table_17632217_2 WHERE season = 2001</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 PICK FOR BOSTON COLLEGE? ### Context: CREATE TABLE table_name_32 (pick VARCHAR, college VARCHAR) ### Response: ### Response: SELECT COUNT(pick) FROM table_name_32 WHERE college = "boston 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: Which Stadium has a Visiting team of pittsburgh steelers? ### Context: CREATE TABLE table_name_44 (stadium VARCHAR, visiting_team VARCHAR) ### Response: ### Response: SELECT stadium FROM table_name_44 WHERE visiting_team = "pittsburgh steelers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Vice President, when Inaugurated is "15 March 1935"? ### Context: CREATE TABLE table_name_49 (second_vice_president VARCHAR, inaugurated VARCHAR) ### Response: ### Response: SELECT second_vice_president FROM table_name_49 WHERE inaugurated = "15 march 1935"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Date, when Away Team is Kangaroos? ### Context: CREATE TABLE table_name_38 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_38 WHERE away_team = "kangaroos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: reginald hudlin directed how many written by. ### Context: CREATE TABLE table_21994729_3 (written_by VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT written_by FROM table_21994729_3 WHERE directed_by = "Reginald Hudlin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 where the line judge was Bob Beeks, the head linesman was Jerry Bergman, and Paul Baetz was the back judge? ### Context: CREATE TABLE table_name_61 (date VARCHAR, back_judge VARCHAR, line_judge VARCHAR, head_linesman VARCHAR) ### Response: ### Response: SELECT date FROM table_name_61 WHERE line_judge = "bob beeks" AND head_linesman = "jerry bergman" AND back_judge = "paul baetz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in the WMMA 1: McCorkle vs. Heden event that went more than 1 round? ### Context: CREATE TABLE table_name_12 (opponent VARCHAR, round VARCHAR, event VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_12 WHERE round > 1 AND event = "wmma 1: mccorkle vs. heden"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What score has a year later than 1974, with hawthorn as the champion? ### Context: CREATE TABLE table_name_31 (score VARCHAR, year VARCHAR, champion VARCHAR) ### Response: ### Response: SELECT score FROM table_name_31 WHERE year > 1974 AND champion = "hawthorn"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What word in German translates into the Icelandic word efja? ### Context: CREATE TABLE table_name_10 (german VARCHAR, icelandic VARCHAR) ### Response: ### Response: SELECT german FROM table_name_10 WHERE icelandic = "efja"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 film did Al Mackay write? ### Context: CREATE TABLE table_name_8 (film VARCHAR, writer_s_ VARCHAR) ### Response: ### Response: SELECT film FROM table_name_8 WHERE writer_s_ = "al mackay"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who had the highest rebounds on December 30? ### Context: CREATE TABLE table_name_4 (high_rebounds VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_name_4 WHERE date = "december 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: What is the name of the player that has a To par of –1? ### Context: CREATE TABLE table_name_27 (player VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT player FROM table_name_27 WHERE to_par = "–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 smith with a 16 ashmolean? ### Context: CREATE TABLE table_name_62 (smith VARCHAR, ashmolean VARCHAR) ### Response: ### Response: SELECT smith FROM table_name_62 WHERE ashmolean = 16</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the time for Cuba, with a notes entry of QS? ### Context: CREATE TABLE table_name_54 (time VARCHAR, notes VARCHAR, country VARCHAR) ### Response: ### Response: SELECT time FROM table_name_54 WHERE notes = "qs" AND country = "cuba"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 runs for econ of 3.63 ### Context: CREATE TABLE table_name_80 (runs VARCHAR, econ VARCHAR) ### Response: ### Response: SELECT runs FROM table_name_80 WHERE econ = "3.63"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wrestling event was at the 2008 Beijing games? ### Context: CREATE TABLE table_name_31 (event VARCHAR, sport VARCHAR, games VARCHAR) ### Response: ### Response: SELECT event FROM table_name_31 WHERE sport = "wrestling" AND games = "2008 beijing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Date has an Opponent of manchester united, and a Venue A? ### Context: CREATE TABLE table_name_31 (date VARCHAR, opponent VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_31 WHERE opponent = "manchester united" AND venue = "a"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year did maggs magnificent mild bear win overall at the camra reading branch beer festival? ### Context: CREATE TABLE table_name_62 (year INTEGER, category VARCHAR, beer_name VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT MAX(year) FROM table_name_62 WHERE beer_name = "maggs magnificent mild" AND competition = "camra reading branch beer festival" AND category = "overall"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 in October with less than 2.48 in September, after 2002, more than 1.42 in June, and smaller than 7.44 in February? ### Context: CREATE TABLE table_name_41 (october VARCHAR, february VARCHAR, june VARCHAR, september VARCHAR, year VARCHAR) ### Response: ### Response: SELECT COUNT(october) FROM table_name_41 WHERE september < 2.48 AND year > 2002 AND june > 1.42 AND february < 7.44</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season has the Werder Bremen Club and is in Round 2r? ### Context: CREATE TABLE table_name_50 (season VARCHAR, club VARCHAR, round VARCHAR) ### Response: ### Response: SELECT season FROM table_name_50 WHERE club = "werder bremen" AND round = "2r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the geo id for Logan county? ### Context: CREATE TABLE table_18600760_10 (geo_id INTEGER, county VARCHAR) ### Response: ### Response: SELECT MAX(geo_id) FROM table_18600760_10 WHERE county = "Logan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the sum of number of bearers in 2009 for a rank above 1, a type of patronymic, an etymology meaning son of Christian, and the number of bearers in 1971 greater than 45.984? ### Context: CREATE TABLE table_name_3 (number_of_bearers_2009 INTEGER, number_of_bearers_1971 VARCHAR, etymology VARCHAR, rank VARCHAR, type VARCHAR) ### Response: ### Response: SELECT SUM(number_of_bearers_2009) FROM table_name_3 WHERE rank > 1 AND type = "patronymic" AND etymology = "son of christian" AND number_of_bearers_1971 > 45.984</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wd number for lms number being 7638 ### Context: CREATE TABLE table_20236726_2 (wd_no VARCHAR, lms_no VARCHAR) ### Response: ### Response: SELECT COUNT(wd_no) FROM table_20236726_2 WHERE lms_no = 7638</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 D 47 when the D 49 is r 32? ### Context: CREATE TABLE table_name_92 (d_47 VARCHAR, d_49 VARCHAR) ### Response: ### Response: SELECT d_47 FROM table_name_92 WHERE d_49 = "r 32"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which date has a Record of 4-5? ### Context: CREATE TABLE table_name_71 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_name_71 WHERE record = "4-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 venue is the friendly match in? ### Context: CREATE TABLE table_name_7 (venue VARCHAR, competition VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_7 WHERE competition = "friendly match"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 FG percent values are associated with 59 assists and offensive rebounds under 40? ### Context: CREATE TABLE table_name_21 (fg_pct VARCHAR, asst VARCHAR, off_reb VARCHAR) ### Response: ### Response: SELECT COUNT(fg_pct) FROM table_name_21 WHERE asst = 59 AND off_reb < 40</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the average speed of Tony Stewart's winning Chevrolet Impala? ### Context: CREATE TABLE table_name_47 (avg_speed VARCHAR, winning_driver VARCHAR, make VARCHAR) ### Response: ### Response: SELECT avg_speed FROM table_name_47 WHERE winning_driver = "tony stewart" AND make = "chevrolet impala"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who won the rookie award the week the transition award was given to Brodie Merrill and the offensive award was given to Pat Maddalena? ### Context: CREATE TABLE table_14132239_3 (rookie VARCHAR, transition VARCHAR, offensive VARCHAR) ### Response: ### Response: SELECT rookie FROM table_14132239_3 WHERE transition = "Brodie Merrill" AND offensive = "Pat Maddalena"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 tournament in Scotland with a score of 270 (–18)? ### Context: CREATE TABLE table_name_71 (date VARCHAR, score VARCHAR, location VARCHAR) ### Response: ### Response: SELECT date FROM table_name_71 WHERE score = "270 (–18)" AND location = "scotland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 explaining beasts? ### Context: CREATE TABLE table_1216675_1 (pinyin VARCHAR, translation VARCHAR) ### Response: ### Response: SELECT pinyin FROM table_1216675_1 WHERE translation = "Explaining Beasts"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in year 2003 that have Gary Murphy and Neil Thompson? ### Context: CREATE TABLE table_name_10 (episode VARCHAR, nominee_s_ VARCHAR, year VARCHAR) ### Response: ### Response: SELECT episode FROM table_name_10 WHERE nominee_s_ = "gary murphy and neil thompson" AND year = 2003</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Street Address of 401 n. wabash avenue involves what name? ### Context: CREATE TABLE table_name_32 (name VARCHAR, street_address VARCHAR) ### Response: ### Response: SELECT name FROM table_name_32 WHERE street_address = "401 n. wabash avenue"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 visitor when Milt Palacio (15) was the leading scorer? ### Context: CREATE TABLE table_name_82 (visitor VARCHAR, leading_scorer VARCHAR) ### Response: ### Response: SELECT visitor FROM table_name_82 WHERE leading_scorer = "milt palacio (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: Who was the home team for the game played at Corio Oval? ### Context: CREATE TABLE table_name_20 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_20 WHERE venue = "corio oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Japanese show on NHK had average ratings of 9.2%? ### Context: CREATE TABLE table_name_26 (japanese_title VARCHAR, tv_station VARCHAR, average_ratings VARCHAR) ### Response: ### Response: SELECT japanese_title FROM table_name_26 WHERE tv_station = "nhk" AND average_ratings = "9.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: Where is ropery lane and la matches 7 location? ### Context: CREATE TABLE table_1176371_1 (location VARCHAR, la_matches VARCHAR, name_of_ground VARCHAR) ### Response: ### Response: SELECT location FROM table_1176371_1 WHERE la_matches = 7 AND name_of_ground = "Ropery Lane"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 users were using other Mozilla browsers during the period in which 9.00% were using Chrome? ### Context: CREATE TABLE table_name_58 (other_mozilla VARCHAR, chrome VARCHAR) ### Response: ### Response: SELECT other_mozilla FROM table_name_58 WHERE chrome = "9.00%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find all procedures which cost more than 1000 or which physician John Wen was trained in. ### Context: CREATE TABLE trained_in (physician VARCHAR, treatment VARCHAR); CREATE TABLE procedures (name VARCHAR, cost INTEGER); CREATE TABLE physician (employeeid VARCHAR, name VARCHAR); CREATE TABLE procedures (name VARCHAR, code VARCHAR) ### Response: ### Response: SELECT name FROM procedures WHERE cost > 1000 UNION SELECT T3.name FROM physician AS T1 JOIN trained_in AS T2 ON T1.employeeid = T2.physician JOIN procedures AS T3 ON T3.code = T2.treatment WHERE T1.name = "John Wen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 attendance last year when more than 176 were hosted? ### Context: CREATE TABLE table_name_87 (last_year INTEGER, hosted INTEGER) ### Response: ### Response: SELECT MIN(last_year) FROM table_name_87 WHERE hosted > 176</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which venue had a crowd larger than 20,000? ### Context: CREATE TABLE table_name_68 (venue VARCHAR, crowd INTEGER) ### Response: ### Response: SELECT venue FROM table_name_68 WHERE crowd > 20 OFFSET 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: How big was the crowd of away team Richmond? ### Context: CREATE TABLE table_name_34 (crowd VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT crowd FROM table_name_34 WHERE away_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 Years, when Nationality is United States, and when Position is PG / SG? ### Context: CREATE TABLE table_name_83 (years VARCHAR, nationality VARCHAR, position VARCHAR) ### Response: ### Response: SELECT years FROM table_name_83 WHERE nationality = "united states" AND position = "pg / sg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 iron chef when herb Faust was the challenger? ### Context: CREATE TABLE table_29281529_2 (iron_chef VARCHAR, challenger VARCHAR) ### Response: ### Response: SELECT iron_chef FROM table_29281529_2 WHERE challenger = "Herb Faust"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When is the earliest year the venue is in gothenburg, sweden? ### Context: CREATE TABLE table_name_69 (year INTEGER, venue VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_69 WHERE venue = "gothenburg, 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: Which competition was in Dubai? ### Context: CREATE TABLE table_name_80 (competition VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_80 WHERE venue = "dubai"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the election in the Virginia 3 district? ### Context: CREATE TABLE table_1341577_47 (result VARCHAR, district VARCHAR) ### Response: ### Response: SELECT result FROM table_1341577_47 WHERE district = "Virginia 3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Class has a Quantity made of 29? ### Context: CREATE TABLE table_name_66 (class VARCHAR, quantity_made VARCHAR) ### Response: ### Response: SELECT class FROM table_name_66 WHERE quantity_made = "29"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What time was the 50m freestyle event? ### Context: CREATE TABLE table_name_26 (time VARCHAR, event VARCHAR) ### Response: ### Response: SELECT time FROM table_name_26 WHERE event = "50m freestyle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 rank team akasvayu girona had with less than 311 rebounds? ### Context: CREATE TABLE table_name_52 (rank INTEGER, team VARCHAR, rebounds VARCHAR) ### Response: ### Response: SELECT MAX(rank) FROM table_name_52 WHERE team = "akasvayu girona" AND rebounds < 311</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 running with for elizabeth falco ### Context: CREATE TABLE table_1855841_1 (running_with__in_team_ VARCHAR, candidate VARCHAR) ### Response: ### Response: SELECT running_with__in_team_ FROM table_1855841_1 WHERE candidate = "Elizabeth Falco"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the class when part 2 is bond? ### Context: CREATE TABLE table_name_33 (class VARCHAR, part_2 VARCHAR) ### Response: ### Response: SELECT class FROM table_name_33 WHERE part_2 = "bond"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 listsed as the Height feet/m and has a Street address of 2345 Grand Avenue? ### Context: CREATE TABLE table_name_40 (height_feet___m VARCHAR, street_address VARCHAR) ### Response: ### Response: SELECT height_feet___m FROM table_name_40 WHERE street_address = "2345 grand avenue"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the number for the player that has a k position? ### Context: CREATE TABLE table_name_77 (number VARCHAR, position VARCHAR) ### Response: ### Response: SELECT number FROM table_name_77 WHERE position = "k"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 MacKinnon Stakes races took place on how many venues? ### Context: CREATE TABLE table_24850630_3 (venue VARCHAR, race VARCHAR) ### Response: ### Response: SELECT COUNT(venue) FROM table_24850630_3 WHERE race = "Mackinnon Stakes"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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/retired when the grid is 9? ### Context: CREATE TABLE table_name_77 (time_retired VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_77 WHERE grid = 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 date has high park demons as the away? ### Context: CREATE TABLE table_name_15 (date VARCHAR, away VARCHAR) ### Response: ### Response: SELECT date FROM table_name_15 WHERE away = "high park demons"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 guest 4 for 8 december ### Context: CREATE TABLE table_20466963_13 (guest_4 VARCHAR, date VARCHAR) ### Response: ### Response: SELECT guest_4 FROM table_20466963_13 WHERE date = "8 December"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 have a Time/Retired of + 4 laps, and a Driver of graham hill? ### Context: CREATE TABLE table_name_3 (laps VARCHAR, time_retired VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT laps FROM table_name_3 WHERE time_retired = "+ 4 laps" AND driver = "graham 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: How many draws when there are fewer than 6 wins and the goal difference is less than -15? ### Context: CREATE TABLE table_name_28 (draws VARCHAR, wins VARCHAR, goal_difference VARCHAR) ### Response: ### Response: SELECT COUNT(draws) FROM table_name_28 WHERE wins < 6 AND goal_difference < -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: Which date has an Away team of fitzroy? ### Context: CREATE TABLE table_name_67 (date VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_67 WHERE away_team = "fitzroy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 had a 100m freestyle event? ### Context: CREATE TABLE table_name_73 (year_set VARCHAR, event VARCHAR) ### Response: ### Response: SELECT COUNT(year_set) FROM table_name_73 WHERE event = "100m freestyle"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 unit of measurement and product category code of product named "chervil". ### Context: CREATE TABLE ref_product_categories (unit_of_measure VARCHAR, product_category_code VARCHAR); CREATE TABLE products (product_category_code VARCHAR, product_name VARCHAR) ### Response: ### Response: SELECT t2.unit_of_measure, t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = "chervil"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record has john flemming as the opponent? ### Context: CREATE TABLE table_name_14 (record VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT record FROM table_name_14 WHERE opponent = "john flemming"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Week was the Result W 24-17? ### Context: CREATE TABLE table_name_65 (week INTEGER, result VARCHAR) ### Response: ### Response: SELECT MAX(week) FROM table_name_65 WHERE result = "w 24-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: Which Pick has a Nationality of canada, and a Round of 5? ### Context: CREATE TABLE table_name_98 (pick VARCHAR, nationality VARCHAR, round VARCHAR) ### Response: ### Response: SELECT pick FROM table_name_98 WHERE nationality = "canada" AND round = 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 Played has a Lost larger than 2, and a Team of américa? ### Context: CREATE TABLE table_name_4 (played VARCHAR, lost VARCHAR, team VARCHAR) ### Response: ### Response: SELECT played FROM table_name_4 WHERE lost > 2 AND team = "américa"</s>