inputs
stringlengths
400
1.34k
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of the venue when the competition was friendly, with a Result of 2–3? ### Context: CREATE TABLE table_name_98 (venue VARCHAR, competition VARCHAR, result VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_98 WHERE competition = "friendly" AND result = "2–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 smallest apps in Honduras with less than 2 goals for Club Deportivo Victoria in a division over 1? ### Context: CREATE TABLE table_name_79 (apps INTEGER, division VARCHAR, team VARCHAR, country VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT MIN(apps) FROM table_name_79 WHERE country = "honduras" AND goals < 2 AND team = "club deportivo victoria" AND division > 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the date Listed of the Bridge Built CA.1876? ### Context: CREATE TABLE table_name_46 (listed VARCHAR, built VARCHAR) ### Response: ### Response: SELECT listed FROM table_name_46 WHERE built = "ca.1876"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 car specs for team Airwaves BMW's driver Rob Collard? ### Context: CREATE TABLE table_name_68 (car_spec VARCHAR, team VARCHAR, drivers VARCHAR) ### Response: ### Response: SELECT car_spec FROM table_name_68 WHERE team = "airwaves bmw" AND drivers = "rob collard"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: From which school did the Minnesota Twins SS come from? ### Context: CREATE TABLE table_name_50 (school VARCHAR, team VARCHAR, position VARCHAR) ### Response: ### Response: SELECT school FROM table_name_50 WHERE team = "minnesota twins" AND position = "ss"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 catalog number is 81258 , what are all the studio ? ### Context: CREATE TABLE table_11222744_2 (studio VARCHAR, catalog_number VARCHAR) ### Response: ### Response: SELECT studio FROM table_11222744_2 WHERE catalog_number = "81258"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the episode written by Robert Haywood? ### Context: CREATE TABLE table_name_83 (title VARCHAR, written_by VARCHAR) ### Response: ### Response: SELECT title FROM table_name_83 WHERE written_by = "robert haywood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 writer is named mongolbittacus? ### Context: CREATE TABLE table_name_62 (authors VARCHAR, name VARCHAR) ### Response: ### Response: SELECT authors FROM table_name_62 WHERE name = "mongolbittacus"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Season, when Third is "Glen Muirhead"? ### Context: CREATE TABLE table_name_62 (season VARCHAR, third VARCHAR) ### Response: ### Response: SELECT season FROM table_name_62 WHERE third = "glen muirhead"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 WITH THE TEAM OF INDIANA? ### Context: CREATE TABLE table_name_75 (score VARCHAR, team VARCHAR) ### Response: ### Response: SELECT score FROM table_name_75 WHERE team = "indiana"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the school that has an enrollment more than 441 with chargers as their mascot? ### Context: CREATE TABLE table_name_35 (school VARCHAR, enrollment VARCHAR, mascot VARCHAR) ### Response: ### Response: SELECT school FROM table_name_35 WHERE enrollment > 441 AND mascot = "chargers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 speed rank in 1963? ### Context: CREATE TABLE table_name_11 (speed_rank VARCHAR, year VARCHAR) ### Response: ### Response: SELECT speed_rank FROM table_name_11 WHERE year = "1963"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 race time of 3:31:24? ### Context: CREATE TABLE table_2226343_1 (laps VARCHAR, race_time VARCHAR) ### Response: ### Response: SELECT laps FROM table_2226343_1 WHERE race_time = "3:31:24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has Sun Jin won the women's doubles? ### Context: CREATE TABLE table_28138035_33 (mens_doubles VARCHAR, womens_singles VARCHAR) ### Response: ### Response: SELECT COUNT(mens_doubles) FROM table_28138035_33 WHERE womens_singles = "Sun Jin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick for pittsburgh penguins ### Context: CREATE TABLE table_name_12 (pick VARCHAR, nhl_team VARCHAR) ### Response: ### Response: SELECT pick FROM table_name_12 WHERE nhl_team = "pittsburgh penguins"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 queens where richmond staten is 42%? ### Context: CREATE TABLE table_1108394_24 (queens VARCHAR, richmond_ VARCHAR, staten_is VARCHAR) ### Response: ### Response: SELECT queens FROM table_1108394_24 WHERE richmond_[staten_is] = "42_percentage"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 running where the winner is daniel montgomery ### Context: CREATE TABLE table_2668378_13 (candidates VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT candidates FROM table_2668378_13 WHERE incumbent = "Daniel Montgomery"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 size of the crowd at the game played at Junction Oval? ### Context: CREATE TABLE table_name_66 (crowd INTEGER, venue VARCHAR) ### Response: ### Response: SELECT AVG(crowd) FROM table_name_66 WHERE venue = "junction 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 are all the report for the Belgian Grand Prix? ### Context: CREATE TABLE table_26258348_4 (report VARCHAR, grand_prix VARCHAR) ### Response: ### Response: SELECT report FROM table_26258348_4 WHERE grand_prix = "Belgian grand_prix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 supercentenarians were born in Manitoba? ### Context: CREATE TABLE table_name_52 (name VARCHAR, province_or_country_of_birth VARCHAR) ### Response: ### Response: SELECT name FROM table_name_52 WHERE province_or_country_of_birth = "manitoba"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: At what Games did the competitor win a Silver medal in the light heavyweight event? ### Context: CREATE TABLE table_name_54 (games VARCHAR, medal VARCHAR, event VARCHAR) ### Response: ### Response: SELECT games FROM table_name_54 WHERE medal = "silver" AND event = "light heavyweight"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 names of goods that receive a rating of 10. ### Context: CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating VARCHAR) ### Response: ### Response: SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating = 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 Volume:Issue, when Artist is Elton John, and when Weeks on Top is 4? ### Context: CREATE TABLE table_name_86 (volume VARCHAR, artist VARCHAR, weeks_on_top VARCHAR) ### Response: ### Response: SELECT volume AS :issue FROM table_name_86 WHERE artist = "elton john" AND weeks_on_top = 4</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the time for an opponent of Satoshi Honma? ### Context: CREATE TABLE table_name_78 (time VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT time FROM table_name_78 WHERE opponent = "satoshi honma"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the location of the station at Huntingdonshire with a station number of c17? ### Context: CREATE TABLE table_name_85 (location VARCHAR, district VARCHAR, station_number VARCHAR) ### Response: ### Response: SELECT location FROM table_name_85 WHERE district = "huntingdonshire" AND station_number = "c17"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when winter is the transfer window? ### Context: CREATE TABLE table_name_47 (name VARCHAR, transfer_window VARCHAR) ### Response: ### Response: SELECT name FROM table_name_47 WHERE transfer_window = "winter"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the year for guillermo cañas ### Context: CREATE TABLE table_23284597_3 (year VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT year FROM table_23284597_3 WHERE opponent_in_the_final = "Guillermo Cañas"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 byes that has 1 draw and an against of 1374? ### Context: CREATE TABLE table_name_1 (byes VARCHAR, draws VARCHAR, against VARCHAR) ### Response: ### Response: SELECT COUNT(byes) FROM table_name_1 WHERE draws = 1 AND against = 1374</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 result for the game held on December 27, 2004 with a week greater than 2? ### Context: CREATE TABLE table_name_4 (result VARCHAR, week VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result FROM table_name_4 WHERE week > 2 AND date = "december 27, 2004"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What date was Rodger Ward the winning driver? ### Context: CREATE TABLE table_name_48 (date VARCHAR, winning_driver VARCHAR) ### Response: ### Response: SELECT date FROM table_name_48 WHERE winning_driver = "rodger ward"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 percentage of Glendale when La Canada Flintridge is 5%? ### Context: CREATE TABLE table_name_20 (glendale VARCHAR, la_cañada_flintridge VARCHAR) ### Response: ### Response: SELECT glendale FROM table_name_20 WHERE la_cañada_flintridge = "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 rounds did geoff lees drive with chassis of n180? ### Context: CREATE TABLE table_name_15 (rounds VARCHAR, chassis VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT rounds FROM table_name_15 WHERE chassis = "n180" AND driver = "geoff lees"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 club has 15 losses and 14 wins? ### Context: CREATE TABLE table_name_60 (club VARCHAR, losses VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT club FROM table_name_60 WHERE losses = 15 AND wins = 14</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the points when the club is Barry RFC with a 5 as the try bonus? ### Context: CREATE TABLE table_name_27 (points VARCHAR, try_bonus VARCHAR, club VARCHAR) ### Response: ### Response: SELECT points FROM table_name_27 WHERE try_bonus = "5" AND club = "barry 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: Which of the highest pick numbers had a round of less than 2? ### Context: CREATE TABLE table_name_81 (pick__number INTEGER, round INTEGER) ### Response: ### Response: SELECT MAX(pick__number) FROM table_name_81 WHERE round < 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: When was there a game at Arden Street Oval? ### Context: CREATE TABLE table_name_21 (date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_21 WHERE venue = "arden street 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: For Team AJS, what is the total number of points for drivers with 0 wins? ### Context: CREATE TABLE table_name_49 (points VARCHAR, team VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT COUNT(points) FROM table_name_49 WHERE team = "ajs" AND wins < 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Payments were processed with Visa? List the payment Id, the date and the amount. ### Context: CREATE TABLE Payments (Payment_ID VARCHAR, Date_Payment_Made VARCHAR, Amount_Payment VARCHAR, Payment_Method_Code VARCHAR) ### Response: ### Response: SELECT Payment_ID, Date_Payment_Made, Amount_Payment FROM Payments WHERE Payment_Method_Code = 'Visa'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the round played on 13 October 1984? ### Context: CREATE TABLE table_name_41 (round VARCHAR, date VARCHAR) ### Response: ### Response: SELECT round FROM table_name_41 WHERE date = "13 october 1984"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 time that it took for the driver to finish 14 laps? ### Context: CREATE TABLE table_name_52 (time VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT time FROM table_name_52 WHERE laps = 14</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Directed By, when Episode # is 7? ### Context: CREATE TABLE table_name_18 (directed_by VARCHAR, episode__number VARCHAR) ### Response: ### Response: SELECT directed_by FROM table_name_18 WHERE episode__number = 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 rnd for gt1 winning team for doc bundy andy wallace? ### Context: CREATE TABLE table_12146068_2 (rnd VARCHAR, gt1_winning_team VARCHAR) ### Response: ### Response: SELECT rnd FROM table_12146068_2 WHERE gt1_winning_team = "Doc Bundy Andy Wallace"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in the 2005 film with the role mark cohen? ### Context: CREATE TABLE table_26436_2 (role VARCHAR) ### Response: ### Response: SELECT 2005 AS _film FROM table_26436_2 WHERE role = "Mark Cohen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Assets (USD) Millions from Equity Bank and less than 44 branches? ### Context: CREATE TABLE table_name_37 (assets__usd__millions INTEGER, bank VARCHAR, number_of_branches VARCHAR) ### Response: ### Response: SELECT MAX(assets__usd__millions) FROM table_name_37 WHERE bank = "equity bank" AND number_of_branches < 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: Who is the Elector with a Cardinalatial title of Priest of S. Sabina and Archbishop of Reims? ### Context: CREATE TABLE table_name_91 (elector VARCHAR, cardinalatial_title VARCHAR) ### Response: ### Response: SELECT elector FROM table_name_91 WHERE cardinalatial_title = "priest of s. sabina and archbishop of reims"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 used instrument? ### Context: CREATE TABLE instruments (instrument VARCHAR) ### Response: ### Response: SELECT instrument FROM instruments GROUP BY instrument 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: Name the number of jons team for 15x10 ### Context: CREATE TABLE table_23292220_17 (jons_team VARCHAR, episode VARCHAR) ### Response: ### Response: SELECT COUNT(jons_team) FROM table_23292220_17 WHERE episode = "15x10"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Are there SPI on the number 7 cylinder? ### Context: CREATE TABLE table_16731248_1 (spi VARCHAR, number_on_cyl VARCHAR) ### Response: ### Response: SELECT spi FROM table_16731248_1 WHERE number_on_cyl = "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: Which Season has a UFL Cup of tbd? ### Context: CREATE TABLE table_name_52 (season VARCHAR, ufl_cup VARCHAR) ### Response: ### Response: SELECT season FROM table_name_52 WHERE ufl_cup = "tbd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the Pride of Britain Awards had an audience of 6.06 million viewers? ### Context: CREATE TABLE table_13943239_1 (episode VARCHAR, viewers__millions_ VARCHAR) ### Response: ### Response: SELECT episode FROM table_13943239_1 WHERE viewers__millions_ = "6.06"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many people attended the game at Lake Oval? ### Context: CREATE TABLE table_name_76 (crowd VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT crowd FROM table_name_76 WHERE venue = "lake oval"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many regions had an hdi of 0.896? ### Context: CREATE TABLE table_25042332_33 (combined_gross_enrollment_ratio__2009_ VARCHAR, hdi VARCHAR) ### Response: ### Response: SELECT COUNT(combined_gross_enrollment_ratio__2009_) FROM table_25042332_33 WHERE hdi = "0.896"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Bruno Soares and a partner face in the finals on a clay surface on August 1, 2010? ### Context: CREATE TABLE table_name_37 (opponents_in_the_final VARCHAR, date VARCHAR, partnering VARCHAR, surface VARCHAR) ### Response: ### Response: SELECT opponents_in_the_final FROM table_name_37 WHERE partnering = "bruno soares" AND surface = "clay" AND date = "august 1, 2010"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the total number of replaced by for 13 june 2009 ### Context: CREATE TABLE table_22640051_3 (replaced_by VARCHAR, date_of_appointment VARCHAR) ### Response: ### Response: SELECT COUNT(replaced_by) FROM table_22640051_3 WHERE date_of_appointment = "13 June 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: What is the highest lost that has an against greater than 60, points less than 61 and an 18 drawn? ### Context: CREATE TABLE table_name_9 (lost INTEGER, drawn VARCHAR, against VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MAX(lost) FROM table_name_9 WHERE against > 60 AND points < 61 AND drawn > 18</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the overall pick number of the player selected before round 3? ### Context: CREATE TABLE table_name_40 (overall_pick VARCHAR, round INTEGER) ### Response: ### Response: SELECT COUNT(overall_pick) FROM table_name_40 WHERE round < 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 current conference is Post University a member of? ### Context: CREATE TABLE table_12936521_2 (current_conference VARCHAR, institution VARCHAR) ### Response: ### Response: SELECT current_conference FROM table_12936521_2 WHERE institution = "Post University"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the sum of draws for against larger than 1228 with fewer than 1 wins? ### Context: CREATE TABLE table_name_72 (draws INTEGER, against VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT SUM(draws) FROM table_name_72 WHERE against > 1228 AND wins < 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 British for the Australian ɔ? ### Context: CREATE TABLE table_name_93 (british VARCHAR, australian VARCHAR) ### Response: ### Response: SELECT british FROM table_name_93 WHERE australian = "ɔ"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Anders Forsbrand's score when the TO par is +4? ### Context: CREATE TABLE table_name_65 (score VARCHAR, to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_65 WHERE to_par = "+4" AND player = "anders forsbrand"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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, location and seating for the most recently opened track? ### Context: CREATE TABLE track (name VARCHAR, LOCATION VARCHAR, seating VARCHAR, year_opened VARCHAR) ### Response: ### Response: SELECT name, LOCATION, seating FROM track ORDER BY year_opened 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 final score of the game on November 24 with the visiting team the Indianapolis Colts? ### Context: CREATE TABLE table_name_23 (final_score VARCHAR, visiting_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT final_score FROM table_name_23 WHERE visiting_team = "indianapolis colts" AND date = "november 24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What tournament was played on Feb 3, 1991? ### Context: CREATE TABLE table_name_5 (tournament VARCHAR, date VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_5 WHERE date = "feb 3, 1991"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What rank has Bill Ponsford (vic) as the player? ### Context: CREATE TABLE table_name_82 (rank VARCHAR, player VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_82 WHERE player = "bill ponsford (vic)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 42 when the D 50 is d 31? ### Context: CREATE TABLE table_name_17 (d_42 VARCHAR, d_50 VARCHAR) ### Response: ### Response: SELECT d_42 FROM table_name_17 WHERE d_50 = "d 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: What was the score on 26 July 1930? ### Context: CREATE TABLE table_name_62 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_62 WHERE date = "26 july 1930"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the location of the University that joined in 1926, 1996 2? ### Context: CREATE TABLE table_261941_1 (location VARCHAR, joined VARCHAR) ### Response: ### Response: SELECT location FROM table_261941_1 WHERE joined = "1926, 1996 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: How many poles does the European F3 Open series have? ### Context: CREATE TABLE table_29434211_1 (poles VARCHAR, series VARCHAR) ### Response: ### Response: SELECT poles FROM table_29434211_1 WHERE series = "European F3 Open"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament has an Outcome of runner-up, and an Opponent of maša zec peškirič? ### Context: CREATE TABLE table_name_93 (tournament VARCHAR, outcome VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_93 WHERE outcome = "runner-up" AND opponent = "maša zec peškirič"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponents when there was an attendance of 48,165? ### Context: CREATE TABLE table_name_1 (opponent_number VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT opponent_number FROM table_name_1 WHERE attendance = "48,165"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 date was the attendance of the crowd 78,431? ### Context: CREATE TABLE table_name_54 (date VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT date FROM table_name_54 WHERE attendance = "78,431"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Game, when Date is "December 23"? ### Context: CREATE TABLE table_name_58 (game INTEGER, date VARCHAR) ### Response: ### Response: SELECT AVG(game) FROM table_name_58 WHERE date = "december 23"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of students in each department. ### Context: CREATE TABLE student (dept_name VARCHAR) ### Response: ### Response: SELECT COUNT(*), dept_name FROM student GROUP BY dept_name</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What are the release dates for songs in 2003? ### Context: CREATE TABLE table_12588029_3 (release_date VARCHAR, year VARCHAR) ### Response: ### Response: SELECT release_date FROM table_12588029_3 WHERE 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: What is the number of electorates (2009) for the Indore district, when reserved for (SC / ST /None) is none, and constituency number is 208? ### Context: CREATE TABLE table_name_21 (number_of_electorates__2009_ INTEGER, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR) ### Response: ### Response: SELECT SUM(number_of_electorates__2009_) FROM table_name_21 WHERE district = "indore" AND reserved_for___sc___st__none_ = "none" AND constituency_number = "208"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What player is from the California Golden Seals? ### Context: CREATE TABLE table_1965650_10 (player VARCHAR, nhl_team VARCHAR) ### Response: ### Response: SELECT player FROM table_1965650_10 WHERE nhl_team = "California Golden Seals"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 cities/towns located in the municipality of Horten? ### Context: CREATE TABLE table_157826_1 (city_town VARCHAR, municipality VARCHAR) ### Response: ### Response: SELECT city_town FROM table_157826_1 WHERE municipality = "Horten"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 does Glory Alozie play for? ### Context: CREATE TABLE table_name_15 (country VARCHAR, name VARCHAR) ### Response: ### Response: SELECT country FROM table_name_15 WHERE name = "glory alozie"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Losses, when Ties is 2, and when Wins is greater than 8? ### Context: CREATE TABLE table_name_81 (losses VARCHAR, ties VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT COUNT(losses) FROM table_name_81 WHERE ties = 2 AND wins > 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: Whats the season/episode of segment a digital dentistry ### Context: CREATE TABLE table_15187735_16 (netflix VARCHAR, segment_a VARCHAR) ### Response: ### Response: SELECT netflix FROM table_15187735_16 WHERE segment_a = "Digital Dentistry"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lead Pitch/mm has a Body Width/mm larger than 10.16? ### Context: CREATE TABLE table_name_28 (lead_pitch_mm INTEGER, body_width_mm INTEGER) ### Response: ### Response: SELECT SUM(lead_pitch_mm) FROM table_name_28 WHERE body_width_mm > 10.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 average L/100km urban value having an L/100km extraurban under 7.2, mpg combined in the UK under 39.8, l/100km combined over 7.9, and mpg combined in the US under 25.1? ### Context: CREATE TABLE table_name_97 (l_100km_urban__cold_ INTEGER, mpg_us_combined VARCHAR, l_100km_combined VARCHAR, l_100km_extra_urban VARCHAR, mpg_uk_combined VARCHAR) ### Response: ### Response: SELECT AVG(l_100km_urban__cold_) FROM table_name_97 WHERE l_100km_extra_urban < 7.2 AND mpg_uk_combined < 39.8 AND l_100km_combined > 7.9 AND mpg_us_combined < 25.1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the stage winner when the stage was more than 10 and yellow jersey was Joseph Planckaert? ### Context: CREATE TABLE table_name_99 (stage VARCHAR, yellow_jersey VARCHAR) ### Response: ### Response: SELECT stage AS winner FROM table_name_99 WHERE stage > 10 AND yellow_jersey = "joseph planckaert"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 conditions are both the platelet count and prothrombin time unaffected? ### Context: CREATE TABLE table_20592988_1 (condition VARCHAR, platelet_count VARCHAR, prothrombin_time VARCHAR) ### Response: ### Response: SELECT condition FROM table_20592988_1 WHERE platelet_count = "Unaffected" AND prothrombin_time = "Unaffected"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 q1 time is 1:16.218 what is the highest q1 pos? ### Context: CREATE TABLE table_1924975_1 (q1_pos INTEGER, q1_time VARCHAR) ### Response: ### Response: SELECT MAX(q1_pos) FROM table_1924975_1 WHERE q1_time = "1:16.218"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 number of the 1.0.12 release version? ### Context: CREATE TABLE table_28540539_2 (version VARCHAR, release VARCHAR) ### Response: ### Response: SELECT COUNT(version) FROM table_28540539_2 WHERE release = "1.0.12"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was the game before week 15 with the result of bye? ### Context: CREATE TABLE table_name_26 (date VARCHAR, week VARCHAR, result VARCHAR) ### Response: ### Response: SELECT date FROM table_name_26 WHERE week < 15 AND result = "bye"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Change is the average one that has a Centre of buenos aires, and a Rank smaller than 46? ### Context: CREATE TABLE table_name_31 (change INTEGER, centre VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT AVG(change) FROM table_name_31 WHERE centre = "buenos aires" AND rank < 46</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for the game against the New Jersey Nets? ### Context: CREATE TABLE table_name_14 (score VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT score FROM table_name_14 WHERE opponent = "new jersey nets"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2.15 for Tom Parsons? ### Context: CREATE TABLE table_name_9 (athlete VARCHAR) ### Response: ### Response: SELECT 215 FROM table_name_9 WHERE athlete = "tom parsons"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 much Distance has Notes of north end terminus of ar 155? ### Context: CREATE TABLE table_name_87 (distance INTEGER, notes VARCHAR) ### Response: ### Response: SELECT SUM(distance) FROM table_name_87 WHERE notes = "north end terminus of ar 155"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What's the total number of Silver that has Gold that's larger than 0, Bronze that's smaller than 23, a Total that's larger than 22, and has the Nation of Saint Kitts and Nevis? ### Context: CREATE TABLE table_name_96 (silver VARCHAR, nation VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT COUNT(silver) FROM table_name_96 WHERE gold > 0 AND bronze < 23 AND total > 22 AND nation = "saint kitts and nevis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 there was a tie of 16 what was the attendance? ### Context: CREATE TABLE table_name_8 (attendance VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_8 WHERE tie_no = "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 district with Republican party in place? ### Context: CREATE TABLE table_1342198_25 (district VARCHAR, party VARCHAR) ### Response: ### Response: SELECT district FROM table_1342198_25 WHERE party = "Republican"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Number stayed in Southeast has over 4,000 emigrated or forcibly removed? ### Context: CREATE TABLE table_name_26 (number_stayed_in_southeast VARCHAR, total_number_emigrated_or_forcibly_removed VARCHAR) ### Response: ### Response: SELECT number_stayed_in_southeast FROM table_name_26 WHERE total_number_emigrated_or_forcibly_removed = "over 4,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: Game site of kingdome, and a Result of w 24-6 has what record? ### Context: CREATE TABLE table_name_32 (record VARCHAR, game_site VARCHAR, result VARCHAR) ### Response: ### Response: SELECT record FROM table_name_32 WHERE game_site = "kingdome" AND result = "w 24-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 promotion when the arena was the venue and the event of legends of the arena? ### Context: CREATE TABLE table_name_4 (promotion VARCHAR, venue VARCHAR, event VARCHAR) ### Response: ### Response: SELECT promotion FROM table_name_4 WHERE venue = "the arena" AND event = "legends of the arena"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When did sony music direct a label? ### Context: CREATE TABLE table_name_60 (date VARCHAR, label VARCHAR) ### Response: ### Response: SELECT date FROM table_name_60 WHERE label = "sony music direct"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: List the names and origins of people who are not body builders. ### Context: CREATE TABLE people (Name VARCHAR, birth_place VARCHAR, people_id VARCHAR); CREATE TABLE body_builder (people_id VARCHAR); CREATE TABLE people (Name VARCHAR, birth_place VARCHAR) ### Response: ### Response: SELECT Name, birth_place FROM people EXCEPT SELECT T1.Name, T1.birth_place FROM people AS T1 JOIN body_builder AS T2 ON T1.people_id = T2.people_id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Count the Money ( £ ) of south africa with a To par of +1, and a Player of ernie els? ### Context: CREATE TABLE table_name_50 (money___£__ VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT money___£__ FROM table_name_50 WHERE country = "south africa" AND to_par = "+1" AND player = "ernie els"</s>