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 location and how many people were in attendance where the record was 9-4 for the season? ### Context: CREATE TABLE table_23285849_5 (location_attendance VARCHAR, record VARCHAR) ### Response: ### Response: SELECT location_attendance FROM table_23285849_5 WHERE record = "9-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: Which R.A. (J2000) has a Name of ngc 1543? ### Context: CREATE TABLE table_name_68 (ra___j2000__ VARCHAR, name VARCHAR) ### Response: ### Response: SELECT ra___j2000__ FROM table_name_68 WHERE name = "ngc 1543"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What segment A is associated with a Segment D of manual motorcycle transmissions? ### Context: CREATE TABLE table_name_76 (segment_a VARCHAR, segment_d VARCHAR) ### Response: ### Response: SELECT segment_a FROM table_name_76 WHERE segment_d = "manual motorcycle transmissions"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 exited on Day 12? ### Context: CREATE TABLE table_name_64 (celebrity VARCHAR, exited VARCHAR) ### Response: ### Response: SELECT celebrity FROM table_name_64 WHERE exited = "day 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: Who is the thursday presenter of the show Big Brother 13? ### Context: CREATE TABLE table_11748792_2 (thursday VARCHAR, series VARCHAR) ### Response: ### Response: SELECT thursday FROM table_11748792_2 WHERE series = "Big Brother 13"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the home team when the crowd was larger than 13,557? ### Context: CREATE TABLE table_name_71 (home_team VARCHAR, crowd INTEGER) ### Response: ### Response: SELECT home_team FROM table_name_71 WHERE crowd > 13 OFFSET 557</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 wins with a 0 F.L., 0 poles, a position of 7th, and 35 points? ### Context: CREATE TABLE table_name_98 (wins VARCHAR, points VARCHAR, position VARCHAR, fl VARCHAR, poles VARCHAR) ### Response: ### Response: SELECT wins FROM table_name_98 WHERE fl = "0" AND poles = "0" AND position = "7th" AND points = "35"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Venue when the result was 88–87? ### Context: CREATE TABLE table_name_78 (venue VARCHAR, result VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_78 WHERE result = "88–87"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which charts had debut sales of of more than 339333.011497678? ### Context: CREATE TABLE table_23180638_1 (oricon_albums_chart VARCHAR, debut_sales__copies_ INTEGER) ### Response: ### Response: SELECT oricon_albums_chart FROM table_23180638_1 WHERE debut_sales__copies_ > 339333.011497678</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 dates in december that were against the atlanta flames before game 40? ### Context: CREATE TABLE table_name_88 (december INTEGER, opponent VARCHAR, game VARCHAR) ### Response: ### Response: SELECT SUM(december) FROM table_name_88 WHERE opponent = "atlanta flames" AND game < 40</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the rider when Fri 28 Aug was 24' 23.36 92.820mph? ### Context: CREATE TABLE table_23465864_6 (rider VARCHAR, fri_28_aug VARCHAR) ### Response: ### Response: SELECT rider FROM table_23465864_6 WHERE fri_28_aug = "24' 23.36 92.820mph"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all open years when at least two shops are opened. ### Context: CREATE TABLE branch (open_year VARCHAR) ### Response: ### Response: SELECT open_year FROM branch GROUP BY open_year HAVING COUNT(*) >= 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 is the average rank of one who is at 76 laps? ### Context: CREATE TABLE table_name_98 (rank INTEGER, laps VARCHAR) ### Response: ### Response: SELECT AVG(rank) FROM table_name_98 WHERE laps = 76</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 age groups for the Big League World Series? ### Context: CREATE TABLE table_name_26 (age_groups VARCHAR, competition_name VARCHAR) ### Response: ### Response: SELECT age_groups FROM table_name_26 WHERE competition_name = "big league world series"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What semi-finalists has 2 (1993, 2003) as the fourth-place? ### Context: CREATE TABLE table_name_1 (semi_finalists VARCHAR, fourth_place VARCHAR) ### Response: ### Response: SELECT semi_finalists FROM table_name_1 WHERE fourth_place = "2 (1993, 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 lowest play with ue figueres club and a goal difference more than 16? ### Context: CREATE TABLE table_name_41 (played INTEGER, club VARCHAR, goal_difference VARCHAR) ### Response: ### Response: SELECT MIN(played) FROM table_name_41 WHERE club = "ue figueres" AND goal_difference > 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: Which Format has a Catalog of vcrdx 106? ### Context: CREATE TABLE table_name_72 (format VARCHAR, catalog VARCHAR) ### Response: ### Response: SELECT format FROM table_name_72 WHERE catalog = "vcrdx 106"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 decision when Tampa Bay was the visitor? ### Context: CREATE TABLE table_name_14 (decision VARCHAR, visitor VARCHAR) ### Response: ### Response: SELECT decision FROM table_name_14 WHERE visitor = "tampa bay"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team when the away team is rivercity rage? ### Context: CREATE TABLE table_name_91 (home_team VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_91 WHERE away_team = "rivercity rage"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 melbourne's home team score? ### Context: CREATE TABLE table_name_97 (home_team VARCHAR) ### Response: ### Response: SELECT home_team AS score FROM table_name_97 WHERE home_team = "melbourne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the most common nationality of hosts. ### Context: CREATE TABLE HOST (Nationality VARCHAR) ### Response: ### Response: SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the competition that had a final score of 6:5? ### Context: CREATE TABLE table_name_79 (competition VARCHAR, final_score VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_79 WHERE final_score = "6: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 total amount of Gold from guatemala and silver smaller than 0? ### Context: CREATE TABLE table_name_88 (gold INTEGER, nation VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT SUM(gold) FROM table_name_88 WHERE nation = "guatemala" AND silver < 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 driver has a team of officine alfieri maserati and belongs to the class of non-championship f2 and has a position of 2, as well as a date of 9/1952? ### Context: CREATE TABLE table_name_51 (driver VARCHAR, date VARCHAR, position VARCHAR, team VARCHAR, class VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_51 WHERE team = "officine alfieri maserati" AND class = "non-championship f2" AND position = 2 AND date = "9/1952"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 elementary schools list Cort Monroe as the principal from 2013 to 2014? ### Context: CREATE TABLE table_14254419_3 (elementary_schools VARCHAR, principal__2013_2014_ VARCHAR) ### Response: ### Response: SELECT elementary_schools FROM table_14254419_3 WHERE principal__2013_2014_ = "Cort Monroe"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 investor that has invested in the most number of entrepreneurs? ### Context: CREATE TABLE entrepreneur (Investor VARCHAR) ### Response: ### Response: SELECT Investor FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC LIMIT 1</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Network, when Title is "Epik High's Love And Delusion"? ### Context: CREATE TABLE table_name_86 (network VARCHAR, title VARCHAR) ### Response: ### Response: SELECT network FROM table_name_86 WHERE title = "epik high's love and delusion"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1st leg result in the round where team #1 is Iraklis? ### Context: CREATE TABLE table_19130829_4 (team__number1 VARCHAR) ### Response: ### Response: SELECT 1 AS st_leg FROM table_19130829_4 WHERE team__number1 = "Iraklis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location for haruna fukuoka ### Context: CREATE TABLE table_28138035_4 (year_location VARCHAR, womens_singles VARCHAR) ### Response: ### Response: SELECT year_location FROM table_28138035_4 WHERE womens_singles = "Haruna Fukuoka"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 crowd size for the Carlton at home? ### Context: CREATE TABLE table_name_2 (crowd INTEGER, home_team VARCHAR) ### Response: ### Response: SELECT MIN(crowd) FROM table_name_2 WHERE home_team = "carlton"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 starting weight if weight lost is 54.6? ### Context: CREATE TABLE table_24370270_10 (starting_weight__kg_ VARCHAR, weight_lost__kg_ VARCHAR) ### Response: ### Response: SELECT starting_weight__kg_ FROM table_24370270_10 WHERE weight_lost__kg_ = "54.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: Which Save is on June 15? ### Context: CREATE TABLE table_name_55 (save VARCHAR, date VARCHAR) ### Response: ### Response: SELECT save FROM table_name_55 WHERE date = "june 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 venue had an event on 17 November 1963? ### Context: CREATE TABLE table_name_16 (venue VARCHAR, season VARCHAR, date VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_16 WHERE season = 1963 AND date = "17 november 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: What date was the record 11-67? ### Context: CREATE TABLE table_22879323_10 (date VARCHAR, record VARCHAR) ### Response: ### Response: SELECT date FROM table_22879323_10 WHERE record = "11-67"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 thursday iuppiter (jupiter) with friday venus (venus) being vendredi ### Context: CREATE TABLE table_1277350_1 (thursday_iuppiter__jupiter_ VARCHAR, friday_venus__venus_ VARCHAR) ### Response: ### Response: SELECT thursday_iuppiter__jupiter_ FROM table_1277350_1 WHERE friday_venus__venus_ = "vendredi"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the release Date of Catalog RR 8655-2? ### Context: CREATE TABLE table_name_39 (date VARCHAR, catalog VARCHAR) ### Response: ### Response: SELECT date FROM table_name_39 WHERE catalog = "rr 8655-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 is the smallest round to have a record of 4-0? ### Context: CREATE TABLE table_name_95 (round INTEGER, record VARCHAR) ### Response: ### Response: SELECT MIN(round) FROM table_name_95 WHERE record = "4-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 score of the game on June 28? ### Context: CREATE TABLE table_name_81 (score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT score FROM table_name_81 WHERE date = "june 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 is the year retired of the locomotive which had the quantity made of 25? ### Context: CREATE TABLE table_name_5 (year_s__retired VARCHAR, quantity_made VARCHAR) ### Response: ### Response: SELECT year_s__retired FROM table_name_5 WHERE quantity_made = "25"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year has a fleet number of 603? ### Context: CREATE TABLE table_name_22 (year VARCHAR, fleet_number VARCHAR) ### Response: ### Response: SELECT year FROM table_name_22 WHERE fleet_number = "603"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Tim Herron place? ### Context: CREATE TABLE table_name_83 (place VARCHAR, player VARCHAR) ### Response: ### Response: SELECT place FROM table_name_83 WHERE player = "tim herron"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Brendan Locke's College/Junior/Club Team (League)? ### Context: CREATE TABLE table_name_11 (college_junior_club_team__league_ VARCHAR, player VARCHAR) ### Response: ### Response: SELECT college_junior_club_team__league_ FROM table_name_11 WHERE player = "brendan locke"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team when the category is field goal percentage? ### Context: CREATE TABLE table_28628309_6 (team VARCHAR, category VARCHAR) ### Response: ### Response: SELECT team FROM table_28628309_6 WHERE category = "Field goal 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: Which Emission (in nanometers) has an absorbtion of 593 nm? ### Context: CREATE TABLE table_name_6 (emit__nm_ VARCHAR, absorb__nm_ VARCHAR) ### Response: ### Response: SELECT emit__nm_ FROM table_name_6 WHERE absorb__nm_ = "593"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 incumbent with district  being tennessee 5 ### Context: CREATE TABLE table_1341865_44 (incumbent VARCHAR, district VARCHAR) ### Response: ### Response: SELECT COUNT(incumbent) FROM table_1341865_44 WHERE district = "Tennessee 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 was the length of the jumper representing FIN, in meters? ### Context: CREATE TABLE table_14407512_4 (nationality VARCHAR) ### Response: ### Response: SELECT 1 AS st__m_ FROM table_14407512_4 WHERE nationality = "FIN"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 win/loss percentage with wins of 63 and losses smaller than 76? ### Context: CREATE TABLE table_name_77 (w_l__percentage VARCHAR, wins VARCHAR, losses VARCHAR) ### Response: ### Response: SELECT w_l__percentage FROM table_name_77 WHERE wins = 63 AND losses < 76</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for Chen Yibing ( chn ), when his B Score was smaller than 9.225? ### Context: CREATE TABLE table_name_87 (total VARCHAR, gymnast VARCHAR, b_score VARCHAR) ### Response: ### Response: SELECT COUNT(total) FROM table_name_87 WHERE gymnast = "chen yibing ( chn )" AND b_score < 9.225</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 city does has most number of customers? ### Context: CREATE TABLE Customers (customer_address_id VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR) ### Response: ### Response: SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city 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 antonio thomas for Hikaru Sato of tanaka (8:09) ### Context: CREATE TABLE table_name_24 (antonio_thomas VARCHAR, hikaru_sato VARCHAR) ### Response: ### Response: SELECT antonio_thomas FROM table_name_24 WHERE hikaru_sato = "tanaka (8:09)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year had less than 36 laps? ### Context: CREATE TABLE table_name_17 (year VARCHAR, laps INTEGER) ### Response: ### Response: SELECT year FROM table_name_17 WHERE laps < 36</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which Opponent has a Surface of hard on 28 august 1993? ### Context: CREATE TABLE table_name_46 (opponent VARCHAR, surface VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_46 WHERE surface = "hard" AND date = "28 august 1993"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mark has an Athlete of tatyana lebedeva? ### Context: CREATE TABLE table_name_84 (mark VARCHAR, athlete VARCHAR) ### Response: ### Response: SELECT mark FROM table_name_84 WHERE athlete = "tatyana lebedeva"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 goals for less than 63 goals against, more than 65 points 1, and more than 10 losses? ### Context: CREATE TABLE table_name_97 (goals_for INTEGER, lost VARCHAR, goals_against VARCHAR, points_1 VARCHAR) ### Response: ### Response: SELECT MAX(goals_for) FROM table_name_97 WHERE goals_against < 63 AND points_1 > 65 AND lost > 10</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest rank of Qaanaaq, which has a population greater than 231? ### Context: CREATE TABLE table_name_28 (rank INTEGER, population VARCHAR, name VARCHAR) ### Response: ### Response: SELECT MIN(rank) FROM table_name_28 WHERE population > 231 AND name = "qaanaaq"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2004 population for 山海关区? ### Context: CREATE TABLE table_name_46 (population__2004_est_ VARCHAR, hanzi VARCHAR) ### Response: ### Response: SELECT population__2004_est_ FROM table_name_46 WHERE hanzi = "山海关区"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on April 21, 2008? ### Context: CREATE TABLE table_name_44 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_44 WHERE date = "april 21, 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: Who had the highest rebounds in game 2? ### Context: CREATE TABLE table_23286112_12 (high_rebounds VARCHAR, game VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_23286112_12 WHERE game = 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 players enter hall of fame each year? ### Context: CREATE TABLE hall_of_fame (yearid VARCHAR) ### Response: ### Response: SELECT yearid, COUNT(*) FROM hall_of_fame GROUP BY yearid</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who had the most high assists from Milwaukee? ### Context: CREATE TABLE table_name_73 (high_assists VARCHAR, team VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_name_73 WHERE team = "milwaukee"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Markatal, when Municipality is Leirvík, and when Inhabitants Per Km² is greater than 79? ### Context: CREATE TABLE table_name_69 (markatal INTEGER, municipality VARCHAR, inhabitants_per_km² VARCHAR) ### Response: ### Response: SELECT MAX(markatal) FROM table_name_69 WHERE municipality = "leirvík" AND inhabitants_per_km² > 79</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 human development index for the year 2000 where the ingei code is 10? ### Context: CREATE TABLE table_1480455_1 (human_development_index__2000_ VARCHAR, inegi_code VARCHAR) ### Response: ### Response: SELECT human_development_index__2000_ FROM table_1480455_1 WHERE inegi_code = 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: Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id, last name and cell phone. ### Context: CREATE TABLE Treatments (professional_id VARCHAR); CREATE TABLE Professionals (professional_id VARCHAR, last_name VARCHAR, cell_number VARCHAR); CREATE TABLE Professionals (professional_id VARCHAR, last_name VARCHAR, cell_number VARCHAR, state VARCHAR) ### Response: ### Response: SELECT professional_id, last_name, cell_number FROM Professionals WHERE state = 'Indiana' UNION SELECT T1.professional_id, T1.last_name, T1.cell_number FROM Professionals AS T1 JOIN Treatments AS T2 ON T1.professional_id = T2.professional_id GROUP BY T1.professional_id HAVING COUNT(*) > 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 are the final points a 0 total and 22 draws? ### Context: CREATE TABLE table_name_60 (final_points VARCHAR, total VARCHAR, draw VARCHAR) ### Response: ### Response: SELECT final_points FROM table_name_60 WHERE total = "0" AND draw = 22</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average rank for team cle when the BB/SO is 10.89? ### Context: CREATE TABLE table_name_97 (rank INTEGER, team VARCHAR, bb_so VARCHAR) ### Response: ### Response: SELECT AVG(rank) FROM table_name_97 WHERE team = "cle" AND bb_so = 10.89</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had an outcome of winner, a hard surface, and happened on August 26, 2006? ### Context: CREATE TABLE table_name_76 (tournament VARCHAR, date VARCHAR, outcome VARCHAR, surface VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_76 WHERE outcome = "winner" AND surface = "hard" AND date = "august 26, 2006"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the pilots who have flied for both a company that mainly provide 'Cargo' services and a company that runs 'Catering services' activities. ### Context: CREATE TABLE operate_company (id VARCHAR, principal_activities VARCHAR); CREATE TABLE flight (Id VARCHAR) ### Response: ### Response: SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Cargo' INTERSECT SELECT T2.pilot FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_id WHERE T1.principal_activities = 'Catering services'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What kind of Week 4 has a Week 2 of tiffany logan? ### Context: CREATE TABLE table_name_65 (week_4 VARCHAR, week_2 VARCHAR) ### Response: ### Response: SELECT week_4 FROM table_name_65 WHERE week_2 = "tiffany logan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country that has LP as a format? ### Context: CREATE TABLE table_name_55 (country VARCHAR, format VARCHAR) ### Response: ### Response: SELECT country FROM table_name_55 WHERE format = "lp"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rebounds did Novica Veličković get in less than 22 Games? ### Context: CREATE TABLE table_name_6 (rebounds INTEGER, name VARCHAR, games VARCHAR) ### Response: ### Response: SELECT SUM(rebounds) FROM table_name_6 WHERE name = "novica veličković" AND games < 22</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the score with lost as the result? ### Context: CREATE TABLE table_name_80 (score VARCHAR, result VARCHAR) ### Response: ### Response: SELECT score FROM table_name_80 WHERE result = "lost"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What make and model of the diesel vehicle with a high floor type, bike capacity less than 3, and a quantity of 4? ### Context: CREATE TABLE table_name_67 (make_and_model VARCHAR, quantity VARCHAR, bicycle_capacity† VARCHAR, fuel_propulsion VARCHAR, floor_type VARCHAR) ### Response: ### Response: SELECT make_and_model FROM table_name_67 WHERE fuel_propulsion = "diesel" AND floor_type = "high" AND bicycle_capacity† < 3 AND quantity = 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 highest market value in billions of the company with profits of 20.96 billions and 166.99 billions in assets? ### Context: CREATE TABLE table_name_79 (market_value__billion_ INTEGER, profits__billion_$_ VARCHAR, assets__billion_$_ VARCHAR) ### Response: ### Response: SELECT MAX(market_value__billion_) AS $_ FROM table_name_79 WHERE profits__billion_$_ = 20.96 AND assets__billion_$_ > 166.99</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 play by play commentator for ABC after 1998? ### Context: CREATE TABLE table_name_61 (play_by_play VARCHAR, network VARCHAR, year VARCHAR) ### Response: ### Response: SELECT play_by_play FROM table_name_61 WHERE network = "abc" AND year > 1998</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Olazabal's winning score in the event in which Phillip Price finished 2nd? ### Context: CREATE TABLE table_name_90 (winning_score VARCHAR, runner_s__up VARCHAR) ### Response: ### Response: SELECT winning_score FROM table_name_90 WHERE runner_s__up = "phillip price"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 rating of the restaurant Subway? ### Context: CREATE TABLE Restaurant (Rating VARCHAR, ResName VARCHAR) ### Response: ### Response: SELECT Rating FROM Restaurant WHERE ResName = "Subway"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Venue is mcg what is the Home team? ### Context: CREATE TABLE table_name_47 (home_team VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_47 WHERE venue = "mcg"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which venue led to a result of 13th and had an extra of Long Race? ### Context: CREATE TABLE table_name_51 (venue VARCHAR, extra VARCHAR, result VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_51 WHERE extra = "long race" AND result = "13th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 position number when there were 29 points, and less than 2 is lost? ### Context: CREATE TABLE table_name_86 (position VARCHAR, points VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT COUNT(position) FROM table_name_86 WHERE points = 29 AND lost < 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which the lowest Against has a Status of tour match, and a Venue of ravenhill , belfast? ### Context: CREATE TABLE table_name_66 (against INTEGER, status VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT MIN(against) FROM table_name_66 WHERE status = "tour match" AND venue = "ravenhill , belfast"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 number of drawn games when there are fewer than 4 points and more than 4 lost games? ### Context: CREATE TABLE table_name_52 (drawn INTEGER, points VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT MIN(drawn) FROM table_name_52 WHERE points < 4 AND lost > 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: Name the venue for geelong away team ### Context: CREATE TABLE table_name_54 (venue VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_54 WHERE away_team = "geelong"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the least decile for state authority and area of eketahuna with roll more than 44 ### Context: CREATE TABLE table_name_78 (decile INTEGER, roll VARCHAR, authority VARCHAR, area VARCHAR) ### Response: ### Response: SELECT MIN(decile) FROM table_name_78 WHERE authority = "state" AND area = "eketahuna" AND roll > 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: How many home games did the team Boston Red Stockings play from 1990 to 2000 in total? ### Context: CREATE TABLE team (team_id_br VARCHAR, name VARCHAR); CREATE TABLE home_game (games INTEGER, team_id VARCHAR, year VARCHAR) ### Response: ### Response: SELECT SUM(T1.games) FROM home_game AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' AND T1.year BETWEEN 1990 AND 2000</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the name of the opponent Tommy Haas played in the Championship? ### Context: CREATE TABLE table_name_31 (championship VARCHAR, opponent_in_the_final VARCHAR) ### Response: ### Response: SELECT championship FROM table_name_31 WHERE opponent_in_the_final = "tommy haas"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played as overall when Josh Sims was transition? ### Context: CREATE TABLE table_name_16 (overall VARCHAR, transition VARCHAR) ### Response: ### Response: SELECT overall FROM table_name_16 WHERE transition = "josh sims"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Absorbtion (in nanometers) of the color Violet with an emission of 432 nm? ### Context: CREATE TABLE table_name_59 (absorb__nm_ VARCHAR, color VARCHAR, emit__nm_ VARCHAR) ### Response: ### Response: SELECT absorb__nm_ FROM table_name_59 WHERE color = "violet" AND emit__nm_ = "432"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 median income for a family whose per capita income is $18,296? ### Context: CREATE TABLE table_name_14 (median_family_income VARCHAR, per_capita_income VARCHAR) ### Response: ### Response: SELECT median_family_income FROM table_name_14 WHERE per_capita_income = "$18,296"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 had numbers of 20 ### Context: CREATE TABLE table_name_67 (player VARCHAR, no_s_ VARCHAR) ### Response: ### Response: SELECT player FROM table_name_67 WHERE no_s_ = "20"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the 012 club which has of norbert hosnyánszky category:articles with hcards? ### Context: CREATE TABLE table_name_23 (name VARCHAR) ### Response: ### Response: SELECT 2012 AS _club FROM table_name_23 WHERE name = "norbert hosnyánszky category:articles with hcards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where is the headquarters of Alpha Nu Omega ### Context: CREATE TABLE table_10054296_1 (headquarters VARCHAR, member VARCHAR) ### Response: ### Response: SELECT headquarters FROM table_10054296_1 WHERE member = "Alpha Nu Omega"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which position had fewer rounds than 3, and an overall of less than 48? ### Context: CREATE TABLE table_name_96 (position VARCHAR, round VARCHAR, overall VARCHAR) ### Response: ### Response: SELECT position FROM table_name_96 WHERE round < 3 AND overall < 48</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the name of episode # 10a? ### Context: CREATE TABLE table_2701851_2 (title VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT title FROM table_2701851_2 WHERE no_in_series = "10a"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 which city is the network with the callsign kgns-dt3 licensed? ### Context: CREATE TABLE table_name_71 (city_of_license VARCHAR, callsign VARCHAR) ### Response: ### Response: SELECT city_of_license FROM table_name_71 WHERE callsign = "kgns-dt3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What were the television air dates for the series that had a production start date of June 16? ### Context: CREATE TABLE table_1949994_8 (premiere_air_dates VARCHAR, start_date VARCHAR) ### Response: ### Response: SELECT premiere_air_dates FROM table_1949994_8 WHERE start_date = "June 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 State with the imsa gt as the Major Series and a track in new orleans? ### Context: CREATE TABLE table_name_23 (state VARCHAR, major_series VARCHAR, track VARCHAR) ### Response: ### Response: SELECT state FROM table_name_23 WHERE major_series = "imsa gt" AND track = "new orleans"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 syrian christians for thiruvananthapuram ### Context: CREATE TABLE table_23214055_2 (syrian_christians VARCHAR, district VARCHAR) ### Response: ### Response: SELECT syrian_christians FROM table_23214055_2 WHERE district = "Thiruvananthapuram"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high assists for 1-2 series ### Context: CREATE TABLE table_23284271_11 (high_assists VARCHAR, series VARCHAR) ### Response: ### Response: SELECT high_assists FROM table_23284271_11 WHERE series = "1-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: Name the solo when name is briggs, diyral ### Context: CREATE TABLE table_15128839_22 (solo VARCHAR, name VARCHAR) ### Response: ### Response: SELECT solo FROM table_15128839_22 WHERE name = "Briggs, Diyral"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 preliminary score associated with the interview score of 8.488? ### Context: CREATE TABLE table_12338595_1 (preliminaries VARCHAR, interview VARCHAR) ### Response: ### Response: SELECT COUNT(preliminaries) FROM table_12338595_1 WHERE interview = "8.488"</s>