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 total number of clubs when the runner-up was Liaoning Fushun? ### Context: CREATE TABLE table_17632217_2 (number_of_clubs VARCHAR, runners_up VARCHAR) ### Response: ### Response: SELECT COUNT(number_of_clubs) FROM table_17632217_2 WHERE runners_up = "Liaoning Fushun"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Nominated work has a Year of 1997? ### Context: CREATE TABLE table_name_96 (nominated_work VARCHAR, year VARCHAR) ### Response: ### Response: SELECT nominated_work FROM table_name_96 WHERE year = 1997</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the 2013 of the grand slam tournaments? ### Context: CREATE TABLE table_name_71 (tournament VARCHAR) ### Response: ### Response: SELECT 2013 FROM table_name_71 WHERE tournament = "grand slam tournaments"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 visitor on January 19, 2008? ### Context: CREATE TABLE table_name_38 (visitor VARCHAR, date VARCHAR) ### Response: ### Response: SELECT visitor FROM table_name_38 WHERE date = "january 19, 2008"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the literary traidtion for the film in english in 2011? ### Context: CREATE TABLE table_name_74 (literary_tradition VARCHAR, language_s_ VARCHAR, year VARCHAR) ### Response: ### Response: SELECT literary_tradition FROM table_name_74 WHERE language_s_ = "english" AND year = 2011</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the producer for the film directed by 1997? ### Context: CREATE TABLE table_name_42 (producer VARCHAR, director VARCHAR) ### Response: ### Response: SELECT producer FROM table_name_42 WHERE director = "1997"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Ivaiporã, pr's biggest population? ### Context: CREATE TABLE table_name_13 (population INTEGER, town_city VARCHAR) ### Response: ### Response: SELECT MAX(population) FROM table_name_13 WHERE town_city = "ivaiporã, pr"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 movies rated as R? List the titles. ### Context: CREATE TABLE film (title VARCHAR, rating VARCHAR) ### Response: ### Response: SELECT title FROM film WHERE rating = 'R'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 week 3 when week 6 is 26.05? ### Context: CREATE TABLE table_name_78 (week_3 VARCHAR, week_6 VARCHAR) ### Response: ### Response: SELECT week_3 FROM table_name_78 WHERE week_6 = "26.05"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goals scored against the opposing team occurred with more than 7 losses, less than 27 goals scored for the team and drawn more than 1? ### Context: CREATE TABLE table_name_85 (goals_against VARCHAR, drawn VARCHAR, lost VARCHAR, goals_for VARCHAR) ### Response: ### Response: SELECT COUNT(goals_against) FROM table_name_85 WHERE lost > 7 AND goals_for < 27 AND drawn > 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: List the text of all tweets in the order of date. ### Context: CREATE TABLE tweets (text VARCHAR, createdate VARCHAR) ### Response: ### Response: SELECT text FROM tweets ORDER BY createdate</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 RESULT WITH A FILM TITLE FIREDANCER? ### Context: CREATE TABLE table_name_3 (result VARCHAR, film_title_used_in_nomination VARCHAR) ### Response: ### Response: SELECT result FROM table_name_3 WHERE film_title_used_in_nomination = "firedancer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 stage when the winner is charly mottet? ### Context: CREATE TABLE table_name_80 (stage VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT stage FROM table_name_80 WHERE winner = "charly mottet"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 pick number where the overall pick number was 38? ### Context: CREATE TABLE table_name_73 (pick INTEGER, overall VARCHAR) ### Response: ### Response: SELECT MIN(pick) FROM table_name_73 WHERE overall = 38</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 FA Cup Goals, when Total Goals is greater than 0, when League Goals is "4", when FA Cup Apps is "1", and when League Cup Goals is greater than 0? ### Context: CREATE TABLE table_name_10 (fa_cup_goals INTEGER, league_cup_goals VARCHAR, fa_cup_apps VARCHAR, total_goals VARCHAR, league_goals VARCHAR) ### Response: ### Response: SELECT MIN(fa_cup_goals) FROM table_name_10 WHERE total_goals > 0 AND league_goals = 4 AND fa_cup_apps = "1" AND league_cup_goals > 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: How many people attended on July 5? ### Context: CREATE TABLE table_name_10 (attendance INTEGER, date VARCHAR) ### Response: ### Response: SELECT SUM(attendance) FROM table_name_10 WHERE date = "july 5"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest share with an air date of March 21, 2008 and had viewers larger than 5.15? ### Context: CREATE TABLE table_name_8 (share INTEGER, air_date VARCHAR, viewers VARCHAR) ### Response: ### Response: SELECT MIN(share) FROM table_name_8 WHERE air_date = "march 21, 2008" AND viewers > 5.15</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What sport in the 1960 Rome Games did Pakistan play in the Men's Freestyle Welterweight? ### Context: CREATE TABLE table_name_56 (sport VARCHAR, games VARCHAR, event VARCHAR) ### Response: ### Response: SELECT sport FROM table_name_56 WHERE games = "1960 rome" AND event = "men's freestyle welterweight"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game held that resulted in a draw? ### Context: CREATE TABLE table_name_64 (venue VARCHAR, result VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_64 WHERE result = "draw"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Amal McCaskill who plays forward-center played for what school/club team? ### Context: CREATE TABLE table_name_55 (school_club_team VARCHAR, position VARCHAR, player VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_name_55 WHERE position = "forward-center" AND player = "amal mccaskill"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Format has a Catalog smaller than 61298? ### Context: CREATE TABLE table_name_11 (format VARCHAR, catalog INTEGER) ### Response: ### Response: SELECT format FROM table_name_11 WHERE catalog < 61298</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country has a television service with Cartello Promozionale sky hd? ### Context: CREATE TABLE table_name_95 (country VARCHAR, television_service VARCHAR) ### Response: ### Response: SELECT country FROM table_name_95 WHERE television_service = "cartello promozionale sky hd"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 second couple for the episode having an ITV1 ranking of 29? ### Context: CREATE TABLE table_25664518_3 (second_couple VARCHAR, itv1_weekly_ranking VARCHAR) ### Response: ### Response: SELECT second_couple FROM table_25664518_3 WHERE itv1_weekly_ranking = 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: Who did the high points in the game played on April 12? ### Context: CREATE TABLE table_17060277_10 (high_points VARCHAR, date VARCHAR) ### Response: ### Response: SELECT high_points FROM table_17060277_10 WHERE date = "April 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: What was the sum for a top-10 U.S. open that had a top-25 bigger than 0? ### Context: CREATE TABLE table_name_83 (top_10 INTEGER, tournament VARCHAR, top_25 VARCHAR) ### Response: ### Response: SELECT SUM(top_10) FROM table_name_83 WHERE tournament = "u.s. open" AND top_25 > 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: Who was the host country when Bar was the host city? ### Context: CREATE TABLE table_26669939_1 (host_country VARCHAR, host_city VARCHAR) ### Response: ### Response: SELECT host_country FROM table_26669939_1 WHERE host_city = "Bar"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Streak has a Game larger than 49? ### Context: CREATE TABLE table_name_56 (streak VARCHAR, game INTEGER) ### Response: ### Response: SELECT streak FROM table_name_56 WHERE game > 49</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Petersville's census ranking? ### Context: CREATE TABLE table_171356_2 (census_ranking VARCHAR, official_name VARCHAR) ### Response: ### Response: SELECT census_ranking FROM table_171356_2 WHERE official_name = "Petersville"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 result of the hypo-meeting before 2010? ### Context: CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT result FROM table_name_49 WHERE year < 2010 AND tournament = "hypo-meeting"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 method of resolution when Katsuhisa Fujii's record was 0-1? ### Context: CREATE TABLE table_name_31 (method VARCHAR, record VARCHAR) ### Response: ### Response: SELECT method FROM table_name_31 WHERE record = "0-1"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the position for chivu ### Context: CREATE TABLE table (position VARCHAR, player VARCHAR, Chivu VARCHAR) ### Response: ### Response: SELECT position FROM table WHERE player = Chivu</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 held the Communications Rep position in 2011? ### Context: CREATE TABLE table_name_65 (position VARCHAR) ### Response: ### Response: SELECT 2011 FROM table_name_65 WHERE position = "communications rep"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 incumbent in the Alabama 6 voting district? ### Context: CREATE TABLE table_1341973_3 (incumbent VARCHAR, district VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_1341973_3 WHERE district = "Alabama 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: Where did the event with a final score of 15.050 occur? ### Context: CREATE TABLE table_26681728_1 (location VARCHAR, score_final VARCHAR) ### Response: ### Response: SELECT location FROM table_26681728_1 WHERE score_final = "15.050"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Report includes the Belgian Grand Prix Race? ### Context: CREATE TABLE table_name_25 (report VARCHAR, race VARCHAR) ### Response: ### Response: SELECT report FROM table_name_25 WHERE race = "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: What is the location of fightfest 2, which has 3 rounds? ### Context: CREATE TABLE table_name_46 (location VARCHAR, round VARCHAR, event VARCHAR) ### Response: ### Response: SELECT location FROM table_name_46 WHERE round = 3 AND event = "fightfest 2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country does the player named Mark Cox play for? ### Context: CREATE TABLE table_29302711_13 (country VARCHAR, name VARCHAR) ### Response: ### Response: SELECT country FROM table_29302711_13 WHERE name = "Mark Cox"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 FCC info of the w214ba call sign with a frequency below 96.3? ### Context: CREATE TABLE table_name_64 (fcc_info VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR) ### Response: ### Response: SELECT fcc_info FROM table_name_64 WHERE frequency_mhz < 96.3 AND call_sign = "w214ba"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the most april with record of 38-33-10 ### Context: CREATE TABLE table_name_19 (april INTEGER, record VARCHAR) ### Response: ### Response: SELECT MAX(april) FROM table_name_19 WHERE record = "38-33-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: How many games had a deficit of 175? ### Context: CREATE TABLE table_18505065_1 (played VARCHAR, against VARCHAR) ### Response: ### Response: SELECT COUNT(played) FROM table_18505065_1 WHERE against = 175</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Races, when Series is Toyota Racing Series, and when Podiums is greater than 3? ### Context: CREATE TABLE table_name_9 (races INTEGER, series VARCHAR, podiums VARCHAR) ### Response: ### Response: SELECT SUM(races) FROM table_name_9 WHERE series = "toyota racing series" AND podiums > 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 shows for loaned to when the loan expires end of the season, Francis Jeffers is the player? ### Context: CREATE TABLE table_name_37 (loaned_to VARCHAR, loan_expires VARCHAR, player VARCHAR) ### Response: ### Response: SELECT loaned_to FROM table_name_37 WHERE loan_expires = "end of the season" AND player = "francis jeffers"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 fastest lap at the Mexican Grand Prix? ### Context: CREATE TABLE table_1137718_2 (fastest_lap VARCHAR, grand_prix VARCHAR) ### Response: ### Response: SELECT fastest_lap FROM table_1137718_2 WHERE grand_prix = "Mexican 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: What is the payment method of the customer that has purchased the least quantity of items? ### Context: CREATE TABLE order_items (order_id VARCHAR, order_quantity INTEGER); CREATE TABLE customers (payment_method VARCHAR, customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR) ### Response: ### Response: SELECT t1.payment_method FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id GROUP BY t1.customer_name ORDER BY SUM(t3.order_quantity) 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 lowest pick when the position was OF with the Chicago White Sox? ### Context: CREATE TABLE table_name_35 (pick INTEGER, position VARCHAR, team VARCHAR) ### Response: ### Response: SELECT MIN(pick) FROM table_name_35 WHERE position = "of" AND team = "chicago white sox"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 north america for september 18, 2009 ### Context: CREATE TABLE table_name_64 (north_america VARCHAR, europe VARCHAR) ### Response: ### Response: SELECT north_america FROM table_name_64 WHERE europe = "september 18, 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: Who is the captain for the manufacturer Pony, and the manager Harry Redknapp? ### Context: CREATE TABLE table_name_59 (captain VARCHAR, kit_manufacturer VARCHAR, manager VARCHAR) ### Response: ### Response: SELECT captain FROM table_name_59 WHERE kit_manufacturer = "pony" AND manager = "harry redknapp"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 track number 3:25 long and a title of Great Getting up Mornin'? ### Context: CREATE TABLE table_name_52 (track_number INTEGER, time VARCHAR, title VARCHAR) ### Response: ### Response: SELECT AVG(track_number) FROM table_name_52 WHERE time = "3:25" AND title = "great getting up mornin'"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 guests for the episode with an original airdate of december 07? ### Context: CREATE TABLE table_25691838_12 (guest VARCHAR, original_airdate VARCHAR) ### Response: ### Response: SELECT guest FROM table_25691838_12 WHERE original_airdate = "December 07"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the sum of the member when the saros is more than 127, gamma is less than 1.1508 and the magnitude is 0.742? ### Context: CREATE TABLE table_name_11 (member INTEGER, magnitude VARCHAR, saros VARCHAR, gamma VARCHAR) ### Response: ### Response: SELECT SUM(member) FROM table_name_11 WHERE saros > 127 AND gamma < 1.1508 AND magnitude = 0.742</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ERP W for callsign K207BK? ### Context: CREATE TABLE table_name_97 (erp_w INTEGER, call_sign VARCHAR) ### Response: ### Response: SELECT AVG(erp_w) FROM table_name_97 WHERE call_sign = "k207bk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 singles does Lisa Stansfield have? ### Context: CREATE TABLE table_26400075_2 (single VARCHAR, artist VARCHAR) ### Response: ### Response: SELECT COUNT(single) FROM table_26400075_2 WHERE artist = "Lisa Stansfield"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 permanence of the body where purity is rudra ### Context: CREATE TABLE table_11609814_1 (permanence_of_the_body VARCHAR, purity VARCHAR) ### Response: ### Response: SELECT permanence_of_the_body FROM table_11609814_1 WHERE purity = "Rudra"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 to par for Dave hill? ### Context: CREATE TABLE table_name_52 (to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_52 WHERE player = "dave 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: When fr2.0 9 is the series who is the winning team? ### Context: CREATE TABLE table_25572118_1 (winning_team VARCHAR, series VARCHAR) ### Response: ### Response: SELECT winning_team FROM table_25572118_1 WHERE series = "FR2.0 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: A plural abbreviation of pp. is used for what singular word? ### Context: CREATE TABLE table_name_82 (singular_word VARCHAR, plural_abbreviation VARCHAR) ### Response: ### Response: SELECT singular_word FROM table_name_82 WHERE plural_abbreviation = "pp."</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 game 21? ### Context: CREATE TABLE table_17288869_6 (date VARCHAR, game VARCHAR) ### Response: ### Response: SELECT date FROM table_17288869_6 WHERE game = 21</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When id the episode broadcast with Mark Webber as Jamie and John's guest? ### Context: CREATE TABLE table_29141354_4 (first_broadcast VARCHAR, jamie_and_johns_guest VARCHAR) ### Response: ### Response: SELECT first_broadcast FROM table_29141354_4 WHERE jamie_and_johns_guest = "Mark Webber"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 water area (sqmi) for the township at latitude 48.423224? ### Context: CREATE TABLE table_18600760_20 (water__sqmi_ VARCHAR, latitude VARCHAR) ### Response: ### Response: SELECT water__sqmi_ FROM table_18600760_20 WHERE latitude = "48.423224"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Time has a Year larger than 1985, and a Place smaller than 2, and an Athlete of riochy sekiya? ### Context: CREATE TABLE table_name_60 (time VARCHAR, athlete VARCHAR, year VARCHAR, place VARCHAR) ### Response: ### Response: SELECT time FROM table_name_60 WHERE year > 1985 AND place < 2 AND athlete = "riochy sekiya"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What communes have enrolled values of 174946? ### Context: CREATE TABLE table_2683116_1 (communes VARCHAR, enrolled VARCHAR) ### Response: ### Response: SELECT communes FROM table_2683116_1 WHERE enrolled = 174946</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on Jon's team when Sean's team had Matthew Crosby and Kimberly Wyatt? ### Context: CREATE TABLE table_23292220_13 (jons_team VARCHAR, seans_team VARCHAR) ### Response: ### Response: SELECT jons_team FROM table_23292220_13 WHERE seans_team = "Matthew Crosby and Kimberly Wyatt"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of bank branch that provided the greatest total amount of loans to customers with credit score is less than 100. ### Context: CREATE TABLE loan (branch_id VARCHAR, cust_id VARCHAR, amount INTEGER); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR); CREATE TABLE customer (cust_id VARCHAR, credit_score INTEGER) ### Response: ### Response: SELECT T2.bname FROM loan AS T1 JOIN bank AS T2 ON T1.branch_id = T2.branch_id JOIN customer AS T3 ON T1.cust_id = T3.cust_id WHERE T3.credit_score < 100 GROUP BY T2.bname ORDER BY SUM(T1.amount) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average FA Cup Goal value for players that have 0 Other goals, 0 FL Cup goals, and fewer than 39 League goals? ### Context: CREATE TABLE table_name_33 (fa_cup_goals INTEGER, league_goals VARCHAR, other_goals VARCHAR, fl_cup_goals VARCHAR) ### Response: ### Response: SELECT AVG(fa_cup_goals) FROM table_name_33 WHERE other_goals = 0 AND fl_cup_goals = 0 AND league_goals < 39</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 archbishop was ordained as bishop November 30, 1925? ### Context: CREATE TABLE table_1656555_1 (archbishop VARCHAR, ordained_bishop VARCHAR) ### Response: ### Response: SELECT archbishop FROM table_1656555_1 WHERE ordained_bishop = "November 30, 1925"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1940 value where 1929 values are 101.4 and 1933 values are over 68.3? ### Context: CREATE TABLE table_name_6 (Id VARCHAR) ### Response: ### Response: SELECT AVG(1940) FROM table_name_6 WHERE 1929 = 101.4 AND 1933 > 68.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 was the Winter Olympics was Japan as the country? ### Context: CREATE TABLE table_name_38 (winter_olympics VARCHAR, country VARCHAR) ### Response: ### Response: SELECT winter_olympics FROM table_name_38 WHERE country = "japan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the average losses when the club is warrnambool and wins is less than 12? ### Context: CREATE TABLE table_name_58 (losses INTEGER, club VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT AVG(losses) FROM table_name_58 WHERE club = "warrnambool" AND wins < 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: Which Wins have a Goal Difference larger than 0, and Goals against larger than 40, and a Position smaller than 6, and a Club of sd indauchu? ### Context: CREATE TABLE table_name_33 (wins INTEGER, club VARCHAR, position VARCHAR, goal_difference VARCHAR, goals_against VARCHAR) ### Response: ### Response: SELECT MIN(wins) FROM table_name_33 WHERE goal_difference > 0 AND goals_against > 40 AND position < 6 AND club = "sd indauchu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 did Collingwood play as the home team? ### Context: CREATE TABLE table_name_75 (date VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_75 WHERE home_team = "collingwood"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Year(s) Won, when Player is Ed Furgol, and when To Par is greater than 12? ### Context: CREATE TABLE table_name_27 (year_s__won VARCHAR, player VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT COUNT(year_s__won) FROM table_name_27 WHERE player = "ed furgol" AND to_par > 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: Which college with a position of rb had a pick larger than 6 in round 28? ### Context: CREATE TABLE table_name_19 (college VARCHAR, round VARCHAR, pick VARCHAR, position VARCHAR) ### Response: ### Response: SELECT college FROM table_name_19 WHERE pick > 6 AND position = "rb" AND round = 28</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What wiaa classifications does vancouver itech prepratory have? ### Context: CREATE TABLE table_22058547_1 (wiaa_classification VARCHAR, high_school VARCHAR) ### Response: ### Response: SELECT wiaa_classification FROM table_22058547_1 WHERE high_school = "Vancouver iTech Prepratory"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number 12's mother? ### Context: CREATE TABLE table_name_90 (mother VARCHAR, number VARCHAR) ### Response: ### Response: SELECT mother FROM table_name_90 WHERE number = 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: The minimum average number of dancers is 34.1 how many times ### Context: CREATE TABLE table_1354805_3 (number_of_dances INTEGER, average VARCHAR) ### Response: ### Response: SELECT MIN(number_of_dances) FROM table_1354805_3 WHERE average = "34.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 year was the No. 7 charts? ### Context: CREATE TABLE table_name_32 (year INTEGER, charts VARCHAR) ### Response: ### Response: SELECT AVG(year) FROM table_name_32 WHERE charts = "no. 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 result F-A on 5 August 1990? ### Context: CREATE TABLE table_name_70 (result_f___a VARCHAR, date VARCHAR) ### Response: ### Response: SELECT result_f___a FROM table_name_70 WHERE date = "5 august 1990"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Genre did Sándor Simó direct? ### Context: CREATE TABLE table_name_88 (genre VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT genre FROM table_name_88 WHERE directed_by = "sándor simó"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 to par that has macdonald smith as the player? ### Context: CREATE TABLE table_name_41 (to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_41 WHERE player = "macdonald smith"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 last round with club team Guelph Storm (ohl)? ### Context: CREATE TABLE table_11803648_22 (round INTEGER, club_team VARCHAR) ### Response: ### Response: SELECT MAX(round) FROM table_11803648_22 WHERE club_team = "Guelph Storm (OHL)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Venue, when Status is "2007 Rugby World Cup", when Against is less than 22, and when Date is "08/09/2007"? ### Context: CREATE TABLE table_name_22 (venue VARCHAR, date VARCHAR, status VARCHAR, against VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_22 WHERE status = "2007 rugby world cup" AND against < 22 AND date = "08/09/2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the range of the head of household whereas single is $171,551–$372,950? ### Context: CREATE TABLE table_11647327_2 (head_of_household VARCHAR, single VARCHAR) ### Response: ### Response: SELECT head_of_household FROM table_11647327_2 WHERE single = "$171,551–$372,950"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What reactor type that has a commercial operation of —, and a tianwan-7 unit? ### Context: CREATE TABLE table_name_25 (reactor_type VARCHAR, commercial_operation VARCHAR, unit VARCHAR) ### Response: ### Response: SELECT reactor_type FROM table_name_25 WHERE commercial_operation = "—" AND unit = "tianwan-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 Round has a Player of brunel christensen and a Pick smaller than 293? ### Context: CREATE TABLE table_name_38 (round INTEGER, player VARCHAR, pick VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_38 WHERE player = "brunel christensen" AND pick < 293</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the rank of the airport with freight ( metric tonnes ) of 255121? ### Context: CREATE TABLE table_13836704_6 (rank VARCHAR, freight___metric_tonnes__ VARCHAR) ### Response: ### Response: SELECT rank FROM table_13836704_6 WHERE freight___metric_tonnes__ = 255121</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the most cuts made with top-25 more than 4 and top 5 of 1 with wins more than 0 ### Context: CREATE TABLE table_name_61 (cuts_made INTEGER, wins VARCHAR, top_25 VARCHAR, top_5 VARCHAR) ### Response: ### Response: SELECT MAX(cuts_made) FROM table_name_61 WHERE top_25 > 4 AND top_5 = 1 AND wins > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent in the championship in Johannesburg, South Africa? ### Context: CREATE TABLE table_name_63 (opponent_in_the_final VARCHAR, championship VARCHAR) ### Response: ### Response: SELECT opponent_in_the_final FROM table_name_63 WHERE championship = "johannesburg, south africa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of Laps for Qual being larger than 142.81 with Grid of 12 ### Context: CREATE TABLE table_name_68 (laps VARCHAR, qual VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT COUNT(laps) FROM table_name_68 WHERE qual > 142.81 AND grid = 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: What is the pick # of cfl team bc lions (7) ### Context: CREATE TABLE table_26996293_7 (pick__number VARCHAR, cfl_team VARCHAR) ### Response: ### Response: SELECT pick__number FROM table_26996293_7 WHERE cfl_team = "BC Lions (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 was the final score in Robert F. Kennedy Memorial Stadium? ### Context: CREATE TABLE table_name_26 (final_score VARCHAR, stadium VARCHAR) ### Response: ### Response: SELECT final_score FROM table_name_26 WHERE stadium = "robert f. kennedy memorial stadium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Location Attendance, when High Assists is Alvin Williams (9)? ### Context: CREATE TABLE table_name_29 (location_attendance VARCHAR, high_assists VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_name_29 WHERE high_assists = "alvin williams (9)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When has Result of 2–0, and a Score of 2 – 0? ### Context: CREATE TABLE table_name_38 (date VARCHAR, result VARCHAR, score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_38 WHERE result = "2–0" AND score = "2 – 0"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the game record if Marcus Camby (13) got the high rebounds? ### Context: CREATE TABLE table_27734769_9 (record VARCHAR, high_rebounds VARCHAR) ### Response: ### Response: SELECT record FROM table_27734769_9 WHERE high_rebounds = "Marcus Camby (13)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the number of the game against Charlotte? ### Context: CREATE TABLE table_name_63 (game INTEGER, team VARCHAR) ### Response: ### Response: SELECT SUM(game) FROM table_name_63 WHERE team = "charlotte"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 schools left in 2002-03? ### Context: CREATE TABLE table_262560_2 (location VARCHAR, left VARCHAR) ### Response: ### Response: SELECT COUNT(location) FROM table_262560_2 WHERE left = "2002-03"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 earliest year that had less than 1 point? ### Context: CREATE TABLE table_name_85 (year INTEGER, points INTEGER) ### Response: ### Response: SELECT MIN(year) FROM table_name_85 WHERE points < 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 lowest Code that's got a Most Spoke Language of Xhosa, a Place of Addo Elephant National Park, and an Area (KM 2) that's smaller than 1.08? ### Context: CREATE TABLE table_name_92 (code INTEGER, area__km_2__ VARCHAR, most_spoken_language VARCHAR, place VARCHAR) ### Response: ### Response: SELECT MIN(code) FROM table_name_92 WHERE most_spoken_language = "xhosa" AND place = "addo elephant national park" AND area__km_2__ < 1.08</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What number episode in the series is the episode "things that fly"? ### Context: CREATE TABLE table_13505192_3 (series_number INTEGER, episode_title VARCHAR) ### Response: ### Response: SELECT MAX(series_number) FROM table_13505192_3 WHERE episode_title = "Things That Fly"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 song for julia bermejo ### Context: CREATE TABLE table_19763199_5 (song VARCHAR, artist VARCHAR) ### Response: ### Response: SELECT COUNT(song) FROM table_19763199_5 WHERE artist = "Julia Bermejo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 are the contenders In the New York 19 polling area race? ### Context: CREATE TABLE table_1342256_32 (candidates VARCHAR, district VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1342256_32 WHERE district = "New York 19"</s>