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: Name the high rebounds for american airlines center 20,557 ### Context: CREATE TABLE table_23284271_11 (high_rebounds VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT high_rebounds FROM table_23284271_11 WHERE location_attendance = "American Airlines Center 20,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: How many people have attended victoria park? ### Context: CREATE TABLE table_name_62 (crowd VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT COUNT(crowd) FROM table_name_62 WHERE venue = "victoria park"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 transfer window when moving to alianza atlético by the name of v. zapata? ### Context: CREATE TABLE table_name_76 (transfer_window VARCHAR, moving_to VARCHAR, name VARCHAR) ### Response: ### Response: SELECT transfer_window FROM table_name_76 WHERE moving_to = "alianza atlético" AND name = "v. zapata"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 position when houston, tx is the hometown and worthing is the high school? ### Context: CREATE TABLE table_22496344_1 (position VARCHAR, home_town VARCHAR, high_school VARCHAR) ### Response: ### Response: SELECT position FROM table_22496344_1 WHERE home_town = "Houston, TX" AND high_school = "Worthing"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What manufacturer made the car that won in 2004? ### Context: CREATE TABLE table_2241841_1 (manufacturer VARCHAR, year VARCHAR) ### Response: ### Response: SELECT manufacturer FROM table_2241841_1 WHERE year = "2004"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When victoria coren and rhod gilbert are both on the lees team what is the score? ### Context: CREATE TABLE table_23575917_6 (scores VARCHAR, lees_team VARCHAR) ### Response: ### Response: SELECT scores FROM table_23575917_6 WHERE lees_team = "Victoria Coren and Rhod Gilbert"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Area (km²), when Population (2007) is 6,176? ### Context: CREATE TABLE table_name_13 (area__km²_ VARCHAR, population__2007_ VARCHAR) ### Response: ### Response: SELECT COUNT(area__km²_) FROM table_name_13 WHERE population__2007_ = 6 OFFSET 176</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show name of all students who have some friends and also are liked by someone else. ### Context: CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Likes (student_id VARCHAR, liked_id VARCHAR); CREATE TABLE Friend (student_id VARCHAR, liked_id VARCHAR) ### Response: ### Response: SELECT T2.name FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id INTERSECT SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.liked_id = T2.id</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT IS THE AVERAGE SQUAD NUMBER WITH MARTIN SMITH, AND LEAGUE GOALS LESS THAN 17? ### Context: CREATE TABLE table_name_8 (squad_no INTEGER, name VARCHAR, league_goals VARCHAR) ### Response: ### Response: SELECT AVG(squad_no) FROM table_name_8 WHERE name = "martin smith" AND league_goals < 17</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the largest number of goals with less than 101 assists and 172 points? ### Context: CREATE TABLE table_name_97 (goals INTEGER, assists VARCHAR, points VARCHAR) ### Response: ### Response: SELECT MAX(goals) FROM table_name_97 WHERE assists < 101 AND points < 172</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 tail number with 3/3 fatalities? ### Context: CREATE TABLE table_name_32 (tail_number VARCHAR, fatalities VARCHAR) ### Response: ### Response: SELECT tail_number FROM table_name_32 WHERE fatalities = "3/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: Who is the home team with a tie no. 12? ### Context: CREATE TABLE table_name_70 (home_team VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT home_team FROM table_name_70 WHERE tie_no = "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 title numer 103's rank for weekly rank sky1? ### Context: CREATE TABLE table_26826304_2 (weekly_rank_sky1 VARCHAR, _number VARCHAR) ### Response: ### Response: SELECT weekly_rank_sky1 FROM table_26826304_2 WHERE _number = 103</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What league has a value of 0 29 (152) for Europe? ### Context: CREATE TABLE table_name_43 (league VARCHAR, europe VARCHAR) ### Response: ### Response: SELECT league FROM table_name_43 WHERE europe = "0 29 (152)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game with 13 as the tie no had what as the score? ### Context: CREATE TABLE table_name_69 (score VARCHAR, tie_no VARCHAR) ### Response: ### Response: SELECT score FROM table_name_69 WHERE tie_no = "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: Name the status for unemployment rate being 6.7% ### Context: CREATE TABLE table_22815568_12 (status VARCHAR, unemployment_rate VARCHAR) ### Response: ### Response: SELECT status FROM table_22815568_12 WHERE unemployment_rate = "6.7%"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the time/retired when the laps is less than 4? ### Context: CREATE TABLE table_name_23 (time_retired VARCHAR, laps INTEGER) ### Response: ### Response: SELECT time_retired FROM table_name_23 WHERE laps < 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's the minimal number of dances a couple has danced? ### Context: CREATE TABLE table_20424140_3 (number_of_dances INTEGER) ### Response: ### Response: SELECT MIN(number_of_dances) FROM table_20424140_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: How many were built with a locomotive number of 11-20? ### Context: CREATE TABLE table_name_17 (no_built VARCHAR, loco_nos VARCHAR) ### Response: ### Response: SELECT no_built FROM table_name_17 WHERE loco_nos = "11-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: What is Result, when Opponent is New England Patriots? ### Context: CREATE TABLE table_name_8 (result VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT result FROM table_name_8 WHERE opponent = "new england patriots"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When did grid 8 finish? ### Context: CREATE TABLE table_name_66 (time_retired VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_66 WHERE grid = 8</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the sprint classification for michael barry ### Context: CREATE TABLE table_23944514_15 (sprint_classification VARCHAR, aggressive_rider VARCHAR) ### Response: ### Response: SELECT sprint_classification FROM table_23944514_15 WHERE aggressive_rider = "Michael Barry"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent for date of bye and week of 1 ### Context: CREATE TABLE table_name_39 (opponent VARCHAR, date VARCHAR, week VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_39 WHERE date = "bye" AND week = 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: Which opponent has april 2 as the date? ### Context: CREATE TABLE table_name_93 (opponent VARCHAR, date VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_93 WHERE date = "april 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 Right ascension of the Object type spiral galaxy that has an Apparent magnitude larger that 12.2 ### Context: CREATE TABLE table_name_15 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, apparent_magnitude VARCHAR) ### Response: ### Response: SELECT right_ascension___j2000__ FROM table_name_15 WHERE object_type = "spiral galaxy" AND apparent_magnitude > 12.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 was the attendance for the final quarter (1)? ### Context: CREATE TABLE table_name_97 (attendance VARCHAR, final VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_97 WHERE final = "quarter (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: Find the names of customers who have used either the service "Close a policy" or the service "Upgrade a policy". ### Context: CREATE TABLE first_notification_of_loss (customer_id VARCHAR, service_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE services (service_id VARCHAR, service_name VARCHAR) ### Response: ### Response: SELECT t1.customer_name FROM customers AS t1 JOIN first_notification_of_loss AS t2 ON t1.customer_id = t2.customer_id JOIN services AS t3 ON t2.service_id = t3.service_id WHERE t3.service_name = "Close a policy" OR t3.service_name = "Upgrade a policy"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 countries that have mountains with height more than 5600 stories and mountains with height less than 5200. ### Context: CREATE TABLE mountain (Country VARCHAR, Height INTEGER) ### Response: ### Response: SELECT Country FROM mountain WHERE Height > 5600 INTERSECT SELECT Country FROM mountain WHERE Height < 5200</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many candidates won the election of john n. sandlin? ### Context: CREATE TABLE table_1342426_18 (candidates VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT COUNT(candidates) FROM table_1342426_18 WHERE incumbent = "John N. Sandlin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 area where barangay is guadalupe viejo? ### Context: CREATE TABLE table_210279_2 (area__km_2__ VARCHAR, barangay VARCHAR) ### Response: ### Response: SELECT area__km_2__ FROM table_210279_2 WHERE barangay = "Guadalupe Viejo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 fuel delivery where power is hp (kw) @6500 rpm ### Context: CREATE TABLE table_11167610_1 (fuel_delivery VARCHAR, power VARCHAR) ### Response: ### Response: SELECT fuel_delivery FROM table_11167610_1 WHERE power = "hp (kW) @6500 rpm"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Cover Model was featured on 8-03? ### Context: CREATE TABLE table_name_8 (cover_model VARCHAR, date VARCHAR) ### Response: ### Response: SELECT cover_model FROM table_name_8 WHERE date = "8-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: How many touchdowns were scored in the year with a completion percentage of 56.0? ### Context: CREATE TABLE table_1037590_1 (touchdowns INTEGER, completion__percentage VARCHAR) ### Response: ### Response: SELECT MIN(touchdowns) FROM table_1037590_1 WHERE completion__percentage = "56.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 party that was frist elected in 1919? ### Context: CREATE TABLE table_1342292_42 (party VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT party FROM table_1342292_42 WHERE first_elected = 1919</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What party is incumbent thomas j. lane from? ### Context: CREATE TABLE table_1341930_21 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT party FROM table_1341930_21 WHERE incumbent = "Thomas J. Lane"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was the date of an event at Tokyo venue? ### Context: CREATE TABLE table_name_86 (date VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_86 WHERE venue = "tokyo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the Time with an Away that is broadview hawks? ### Context: CREATE TABLE table_name_91 (time VARCHAR, away VARCHAR) ### Response: ### Response: SELECT time FROM table_name_91 WHERE away = "broadview hawks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 listing for 2009 when 1989 is less than 0? ### Context: CREATE TABLE table_name_5 (Id VARCHAR) ### Response: ### Response: SELECT SUM(2009) FROM table_name_5 WHERE 1989 < 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: Find the name, address, number of students in the departments that have the top 3 highest number of students. ### Context: CREATE TABLE student (dept_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_address VARCHAR, dept_code VARCHAR) ### Response: ### Response: SELECT T2.dept_name, T2.dept_address, COUNT(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.dept_code ORDER BY COUNT(*) DESC LIMIT 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: How many bronze had a total less than 4 and gold bigger than 1? ### Context: CREATE TABLE table_name_43 (bronze VARCHAR, total VARCHAR, gold VARCHAR) ### Response: ### Response: SELECT COUNT(bronze) FROM table_name_43 WHERE total < 4 AND gold > 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 Rank of the Character with Tenure of 2011? ### Context: CREATE TABLE table_name_2 (rank VARCHAR, tenure VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_2 WHERE tenure = "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: Which report includes a Circuit of Tripoli? ### Context: CREATE TABLE table_name_71 (report VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT report FROM table_name_71 WHERE circuit = "tripoli"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the team 2 with cobreloa as team 1? ### Context: CREATE TABLE table_name_2 (team_2 VARCHAR, team_1 VARCHAR) ### Response: ### Response: SELECT team_2 FROM table_name_2 WHERE team_1 = "cobreloa"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 in the game that had a record of 25-8? ### Context: CREATE TABLE table_18904831_7 (score VARCHAR, record VARCHAR) ### Response: ### Response: SELECT score FROM table_18904831_7 WHERE record = "25-8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the Wednesday presenter of the show Big Brother 13? ### Context: CREATE TABLE table_11748792_2 (wednesday VARCHAR, series VARCHAR) ### Response: ### Response: SELECT wednesday 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: What is the engine of the goodyear tire and Herdez as a sponsor? ### Context: CREATE TABLE table_name_16 (engine VARCHAR, tire VARCHAR, sponsor VARCHAR) ### Response: ### Response: SELECT engine FROM table_name_16 WHERE tire = "goodyear" AND sponsor = "herdez"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 air date when the U.S. viewers was 5.50 million? ### Context: CREATE TABLE table_17467447_1 (original_airdate VARCHAR, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT original_airdate FROM table_17467447_1 WHERE us_viewers__million_ = "5.50"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Cathi O'Malley was featured in Week 3, who was the cyber girl for Week 5? ### Context: CREATE TABLE table_name_96 (week_5 VARCHAR, week_3 VARCHAR) ### Response: ### Response: SELECT week_5 FROM table_name_96 WHERE week_3 = "cathi o'malley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Margin of victory in the southwest golf classic Tournament? ### Context: CREATE TABLE table_name_84 (margin_of_victory VARCHAR, tournament VARCHAR) ### Response: ### Response: SELECT margin_of_victory FROM table_name_84 WHERE tournament = "southwest golf classic"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Player from Dayton, Oh with a Pick of 15 or larger? ### Context: CREATE TABLE table_name_99 (player VARCHAR, pick VARCHAR, hometown_school VARCHAR) ### Response: ### Response: SELECT player FROM table_name_99 WHERE pick > 15 AND hometown_school = "dayton, oh"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When was Lachlan Dale born? ### Context: CREATE TABLE table_name_47 (dob VARCHAR, surname VARCHAR, first VARCHAR) ### Response: ### Response: SELECT dob FROM table_name_47 WHERE surname = "dale" AND first = "lachlan"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What competition has the club villareal? ### Context: CREATE TABLE table_name_89 (competition VARCHAR, club VARCHAR) ### Response: ### Response: SELECT competition FROM table_name_89 WHERE club = "villareal"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What group was in office when the term ended in January 3, 1993? ### Context: CREATE TABLE table_197446_1 (office VARCHAR, term_ended VARCHAR) ### Response: ### Response: SELECT office FROM table_197446_1 WHERE term_ended = "January 3, 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: Who won the men's ski jump when the FIS Nordic World Ski Championships was 1980? ### Context: CREATE TABLE table_name_34 (winner VARCHAR, fis_nordic_world_ski_championships VARCHAR) ### Response: ### Response: SELECT winner FROM table_name_34 WHERE fis_nordic_world_ski_championships = "1980"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of episodes directed by linda mendoza. ### Context: CREATE TABLE table_25548213_1 (production_code VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT COUNT(production_code) FROM table_25548213_1 WHERE directed_by = "Linda Mendoza"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 customers who have both saving and checking account types. ### Context: CREATE TABLE customer (cust_name VARCHAR, acc_type VARCHAR) ### Response: ### Response: SELECT cust_name FROM customer WHERE acc_type = 'saving' INTERSECT SELECT cust_name FROM customer WHERE acc_type = 'checking'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2002, when 2011 was, "atp masters series"? ### Context: CREATE TABLE table_name_71 (Id VARCHAR) ### Response: ### Response: SELECT 2002 FROM table_name_71 WHERE 2011 = "atp masters 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: When in 2009 season has a Group of group b, and cancha del mystic with a Club of el tecal? ### Context: CREATE TABLE table_name_17 (club VARCHAR, group VARCHAR, stadium VARCHAR) ### Response: ### Response: SELECT 2009 AS _season FROM table_name_17 WHERE group = "group b" AND stadium = "cancha del mystic" AND club = "el tecal"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What position does Maryland have a player for Round 3? ### Context: CREATE TABLE table_name_81 (position VARCHAR, school_club_team VARCHAR, round VARCHAR) ### Response: ### Response: SELECT position FROM table_name_81 WHERE school_club_team = "maryland" AND round = 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year was 2,242 yards achieved? ### Context: CREATE TABLE table_name_68 (year VARCHAR, yards VARCHAR) ### Response: ### Response: SELECT year FROM table_name_68 WHERE yards = "2,242"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What dat did episode 195 in the series originally air? ### Context: CREATE TABLE table_27988559_1 (original_air_date VARCHAR, no_in_series VARCHAR) ### Response: ### Response: SELECT original_air_date FROM table_27988559_1 WHERE no_in_series = 195</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 receipts for tom tancredo ### Context: CREATE TABLE table_name_44 (total_receipts VARCHAR, candidate VARCHAR) ### Response: ### Response: SELECT total_receipts FROM table_name_44 WHERE candidate = "tom tancredo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 power of an engine of 1972? ### Context: CREATE TABLE table_name_73 (power VARCHAR, years VARCHAR) ### Response: ### Response: SELECT power FROM table_name_73 WHERE years = "1972"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 chassis is more recent than 1972 and has more than 0 Pts. ? ### Context: CREATE TABLE table_name_53 (chassis VARCHAR, year VARCHAR, pts VARCHAR) ### Response: ### Response: SELECT chassis FROM table_name_53 WHERE year > 1972 AND pts > 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: When did Essendon play at home? ### Context: CREATE TABLE table_name_15 (date VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_15 WHERE home_team = "essendon"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: under which president was gunther volz executed? ### Context: CREATE TABLE table_2861364_1 (under_president VARCHAR, executed_person VARCHAR) ### Response: ### Response: SELECT under_president FROM table_2861364_1 WHERE executed_person = "Gunther Volz"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attended tie number 3? ### Context: CREATE TABLE table_name_97 (attendance INTEGER, tie_no VARCHAR) ### Response: ### Response: SELECT MAX(attendance) FROM table_name_97 WHERE tie_no = "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 are first and last names of players participating in all star game in 1998? ### Context: CREATE TABLE all_star (player_id VARCHAR); CREATE TABLE player (player_id VARCHAR) ### Response: ### Response: SELECT name_first, name_last FROM player AS T1 JOIN all_star AS T2 ON T1.player_id = T2.player_id WHERE 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 the date for the match where Tweedie-Yates' partner was jodi kenoyer? ### Context: CREATE TABLE table_name_18 (date VARCHAR, partner VARCHAR) ### Response: ### Response: SELECT date FROM table_name_18 WHERE partner = "jodi kenoyer"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What order has the Species Authority of hydrochaeris hydrochaeris (linnaeus, 1766)? ### Context: CREATE TABLE table_name_84 (order VARCHAR, species_authority VARCHAR) ### Response: ### Response: SELECT order FROM table_name_84 WHERE species_authority = "hydrochaeris hydrochaeris (linnaeus, 1766)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many points are there when the lost is 7? ### Context: CREATE TABLE table_14058433_3 (points_for VARCHAR, lost VARCHAR) ### Response: ### Response: SELECT points_for FROM table_14058433_3 WHERE lost = "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: How many attempts did Charles White make? ### Context: CREATE TABLE table_11157122_5 (attempts INTEGER, player VARCHAR) ### Response: ### Response: SELECT MIN(attempts) FROM table_11157122_5 WHERE player = "Charles White"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 margin results are listed in the election that was won by L. Adaikalaraj C and the party was the Indian national congress? ### Context: CREATE TABLE table_22753245_1 (margin VARCHAR, party VARCHAR, winner VARCHAR) ### Response: ### Response: SELECT COUNT(margin) FROM table_22753245_1 WHERE party = "Indian National Congress" AND winner = "L. Adaikalaraj c"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 local title with seasons and winners being series 1, 2006: lucy benjamin ### Context: CREATE TABLE table_13779832_1 (local_title VARCHAR, seasons_and_winners VARCHAR) ### Response: ### Response: SELECT local_title FROM table_13779832_1 WHERE seasons_and_winners = "Series 1, 2006: Lucy Benjamin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the attendance of the game that had a loss of Wolf (3-4)? ### Context: CREATE TABLE table_name_84 (attendance VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_84 WHERE loss = "wolf (3-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's the diameter of the 2006 equestrian Reverse? ### Context: CREATE TABLE table_name_49 (diameter VARCHAR, year VARCHAR, reverse VARCHAR) ### Response: ### Response: SELECT diameter FROM table_name_49 WHERE year = 2006 AND reverse = "equestrian"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What day was the total smaller than 19 at Venue of anz stadium? ### Context: CREATE TABLE table_name_42 (date VARCHAR, total VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT date FROM table_name_42 WHERE total < 19 AND venue = "anz 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: How many University founded in 1863? ### Context: CREATE TABLE table_19210115_1 (enrollment VARCHAR, founded VARCHAR) ### Response: ### Response: SELECT COUNT(enrollment) FROM table_19210115_1 WHERE founded = 1863</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Postion, when the Name is Rod Paavola? ### Context: CREATE TABLE table_name_27 (position VARCHAR, name VARCHAR) ### Response: ### Response: SELECT position FROM table_name_27 WHERE name = "rod paavola"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which film has the highest rental rate? And what is the rate? ### Context: CREATE TABLE film (title VARCHAR, rental_rate VARCHAR) ### Response: ### Response: SELECT title, rental_rate FROM film ORDER BY rental_rate 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: Phil Klemmer wrote all titles and production code is 3t6455. ### Context: CREATE TABLE table_27115960_1 (title VARCHAR, written_by VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT title FROM table_27115960_1 WHERE written_by = "Phil Klemmer" AND production_code = "3T6455"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team on October 4? ### Context: CREATE TABLE table_name_31 (host_team VARCHAR, date VARCHAR) ### Response: ### Response: SELECT host_team FROM table_name_31 WHERE date = "october 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 driver has more than 39 laps on gird 15? ### Context: CREATE TABLE table_name_67 (driver VARCHAR, laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_67 WHERE laps > 39 AND grid = 15</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the campus fee of "San Jose State University" in year 1996? ### Context: CREATE TABLE csu_fees (year VARCHAR); CREATE TABLE campuses (id VARCHAR) ### Response: ### Response: SELECT campusfee FROM campuses AS T1 JOIN csu_fees AS T2 ON T1.id = t2.campus WHERE t1.campus = "San Jose State University" AND T2.year = 1996</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 religious affiliation for the athletics nicknamed lords/ladies? ### Context: CREATE TABLE table_name_34 (religious_affiliation VARCHAR, athletics_nickname VARCHAR) ### Response: ### Response: SELECT religious_affiliation FROM table_name_34 WHERE athletics_nickname = "lords/ladies"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What method resulted in a win and a time of 4:36? ### Context: CREATE TABLE table_name_44 (method VARCHAR, res VARCHAR, time VARCHAR) ### Response: ### Response: SELECT method FROM table_name_44 WHERE res = "win" AND time = "4: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: Election results of 1976 ### Context: CREATE TABLE table_1341640_43 (result VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT result FROM table_1341640_43 WHERE first_elected = 1976</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many times was the high assists earl watson (5) and the date of the game was december 2? ### Context: CREATE TABLE table_11964154_7 (score VARCHAR, high_assists VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(score) FROM table_11964154_7 WHERE high_assists = "Earl Watson (5)" AND date = "December 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 name of the player with a 71-69-71-69=280 score? ### Context: CREATE TABLE table_name_79 (player VARCHAR, score VARCHAR) ### Response: ### Response: SELECT player FROM table_name_79 WHERE score = 71 - 69 - 71 - 69 = 280</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which season has q145 as its format? ### Context: CREATE TABLE table_name_63 (season__number INTEGER, format__number VARCHAR) ### Response: ### Response: SELECT MIN(season__number) FROM table_name_63 WHERE format__number = "q145"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 week of the game played December 6, 1964? ### Context: CREATE TABLE table_name_75 (week INTEGER, date VARCHAR) ### Response: ### Response: SELECT SUM(week) FROM table_name_75 WHERE date = "december 6, 1964"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What year was incumbent mark w. hannaford elected? ### Context: CREATE TABLE table_1341672_6 (first_elected INTEGER, incumbent VARCHAR) ### Response: ### Response: SELECT MIN(first_elected) FROM table_1341672_6 WHERE incumbent = "Mark W. Hannaford"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2006 population for the local government area of alexandrina council whose rank was smaller than 19? ### Context: CREATE TABLE table_name_66 (population_2006_census INTEGER, local_government_area VARCHAR, rank VARCHAR) ### Response: ### Response: SELECT AVG(population_2006_census) FROM table_name_66 WHERE local_government_area = "alexandrina council" AND rank < 19</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which team has fewer than 4 rounds for Jan Van Breda Kolff? ### Context: CREATE TABLE table_name_47 (school_club_team VARCHAR, round VARCHAR, player VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_name_47 WHERE round < 4 AND player = "jan van breda kolff"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 occurred for Stein Huysegems when the caps value is more than 8? ### Context: CREATE TABLE table_name_13 (goals VARCHAR, caps VARCHAR, player VARCHAR) ### Response: ### Response: SELECT goals FROM table_name_13 WHERE caps > 8 AND player = "stein huysegems"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many laps did Eddie Irvine have? ### Context: CREATE TABLE table_name_73 (laps VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT laps FROM table_name_73 WHERE driver = "eddie irvine"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 and ceremony was the original title বৃত্তের বাইরে (britter baire)? ### Context: CREATE TABLE table_17156199_1 (year__ceremony_ VARCHAR, original_title VARCHAR) ### Response: ### Response: SELECT year__ceremony_ FROM table_17156199_1 WHERE original_title = "বৃত্তের বাইরে (Britter Baire)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 where the license number is PL 22? ### Context: CREATE TABLE table_name_7 (name__year_commissioned_ VARCHAR, licence_number VARCHAR) ### Response: ### Response: SELECT name__year_commissioned_ FROM table_name_7 WHERE licence_number = "pl 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 was McCain's vote when Obama had 48.35% ### Context: CREATE TABLE table_20722805_1 (mccain_number INTEGER, obama_percentage VARCHAR) ### Response: ### Response: SELECT MIN(mccain_number) FROM table_20722805_1 WHERE obama_percentage = "48.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: Name the record for verizon center 20,173 ### Context: CREATE TABLE table_17288845_8 (record VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT record FROM table_17288845_8 WHERE location_attendance = "Verizon Center 20,173"</s>