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: Show the names of people and the number of times they have been on the affirmative side of debates. ### Context: CREATE TABLE people (Name VARCHAR, People_ID VARCHAR); CREATE TABLE debate_people (Affirmative VARCHAR) ### Response: ### Response: SELECT T2.Name, COUNT(*) FROM debate_people AS T1 JOIN people AS T2 ON T1.Affirmative = T2.People_ID GROUP BY T2.Name</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: what is the total number of playoffs where regular season is 6th, southwest ### Context: CREATE TABLE table_1046454_1 (playoffs VARCHAR, regular_season VARCHAR) ### Response: ### Response: SELECT COUNT(playoffs) FROM table_1046454_1 WHERE regular_season = "6th, Southwest"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 finishing position for the person who had a grid of 3? ### Context: CREATE TABLE table_name_44 (fin_pos VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT fin_pos FROM table_name_44 WHERE grid = "3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the tournament with A in 2011? ### Context: CREATE TABLE table_name_77 (tournament VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_77 WHERE 2011 = "a"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which film is rented at a fee of 0.99 and has less than 3 in the inventory? List the film title and id. ### Context: CREATE TABLE film (title VARCHAR, film_id VARCHAR, rental_rate VARCHAR); CREATE TABLE inventory (film_id VARCHAR); CREATE TABLE film (title VARCHAR, film_id VARCHAR) ### Response: ### Response: SELECT title, film_id FROM film WHERE rental_rate = 0.99 INTERSECT SELECT T1.title, T1.film_id FROM film AS T1 JOIN inventory AS T2 ON T1.film_id = T2.film_id GROUP BY T1.film_id HAVING COUNT(*) < 3</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average number of played of the team with 3 losses, more than 9 points, a position of 5, and less than 12 against? ### Context: CREATE TABLE table_name_51 (played INTEGER, against VARCHAR, position VARCHAR, lost VARCHAR, points VARCHAR) ### Response: ### Response: SELECT AVG(played) FROM table_name_51 WHERE lost = 3 AND points > 9 AND position = 5 AND against < 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 Player, when Country is "United States", and when Place is "6"? ### Context: CREATE TABLE table_name_41 (player VARCHAR, country VARCHAR, place VARCHAR) ### Response: ### Response: SELECT player FROM table_name_41 WHERE country = "united states" AND place = "6"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT WAS ESSENDON'S HIGHEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM? ### Context: CREATE TABLE table_name_85 (crowd INTEGER, away_team VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_name_85 WHERE away_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: What are the first name and last name of Linda Smith's advisor? ### Context: CREATE TABLE Student (advisor VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR) ### Response: ### Response: SELECT T1.fname, T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T2.fname = "Linda" AND T2.lname = "Smith"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the rank of the player with the 39.69 average? ### Context: CREATE TABLE table_26041144_11 (rank VARCHAR, average VARCHAR) ### Response: ### Response: SELECT rank FROM table_26041144_11 WHERE average = "39.69"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where did Carlton play? ### Context: CREATE TABLE table_name_9 (venue VARCHAR, away_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_9 WHERE away_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 are the coreceptors of the chromosomes in that location 11q22.2-q22.3? ### Context: CREATE TABLE table_29871617_1 (coreceptor VARCHAR, chromosomal_location VARCHAR) ### Response: ### Response: SELECT coreceptor FROM table_29871617_1 WHERE chromosomal_location = "11q22.2-q22.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 date did home team liverpool play? ### Context: CREATE TABLE table_name_70 (date VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT date FROM table_name_70 WHERE home_team = "liverpool"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 attendance of the match with Carlisle united as the home team? ### Context: CREATE TABLE table_name_64 (attendance VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_64 WHERE home_team = "carlisle united"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 marcos daniel the opponent? ### Context: CREATE TABLE table_name_16 (date VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT date FROM table_name_16 WHERE opponent = "marcos daniel"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 TYPE WITH 124? ### Context: CREATE TABLE table_name_56 (type VARCHAR, quantity VARCHAR) ### Response: ### Response: SELECT type FROM table_name_56 WHERE quantity = "124"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Attendance of New Zealand Scores in bold? ### Context: CREATE TABLE table_name_6 (attendance VARCHAR, date VARCHAR) ### Response: ### Response: SELECT attendance FROM table_name_6 WHERE date = "new zealand scores in bold"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Score, when Country is "United States", and when Player is "John Mahaffey"? ### Context: CREATE TABLE table_name_13 (score VARCHAR, country VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_13 WHERE country = "united states" AND player = "john mahaffey"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 circuit has a Race Title of japanese grand prix? ### Context: CREATE TABLE table_name_22 (circuit VARCHAR, race_title VARCHAR) ### Response: ### Response: SELECT circuit FROM table_name_22 WHERE race_title = "japanese grand prix"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the least tries for when w is 4 ### Context: CREATE TABLE table_16770037_4 (tries_for INTEGER, w VARCHAR) ### Response: ### Response: SELECT MIN(tries_for) FROM table_16770037_4 WHERE w = 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: Against what opponent did the Wildcats have a record of 5-4? ### Context: CREATE TABLE table_24464253_1 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_24464253_1 WHERE record = "5-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 most points when the chassis was Jaguar R3 later than 2002? ### Context: CREATE TABLE table_name_42 (points INTEGER, chassis VARCHAR, year VARCHAR) ### Response: ### Response: SELECT MAX(points) FROM table_name_42 WHERE chassis = "jaguar r3" AND year > 2002</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 results for mens 40 when the mens u20 was Southern Suns def Gold Coast Sharks? ### Context: CREATE TABLE table_16724844_1 (mens_40 VARCHAR, mens_u20 VARCHAR) ### Response: ### Response: SELECT mens_40 FROM table_16724844_1 WHERE mens_u20 = "Southern Suns def Gold Coast Sharks"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 production code for viewers for 1.69 ### Context: CREATE TABLE table_19229713_4 (production_code VARCHAR, us_viewers__million_ VARCHAR) ### Response: ### Response: SELECT production_code FROM table_19229713_4 WHERE us_viewers__million_ = "1.69"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Can you tell me the sum of Score that has the Place of t5, and the Country of united states, and the Player of jeff maggert? ### Context: CREATE TABLE table_name_27 (score INTEGER, player VARCHAR, place VARCHAR, country VARCHAR) ### Response: ### Response: SELECT SUM(score) FROM table_name_27 WHERE place = "t5" AND country = "united states" AND player = "jeff maggert"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Brown Motors best point total using the Offenhauser L4 engine since 1950? ### Context: CREATE TABLE table_name_72 (points INTEGER, entrant VARCHAR, year VARCHAR, engine VARCHAR) ### Response: ### Response: SELECT MAX(points) FROM table_name_72 WHERE year > 1950 AND engine = "offenhauser l4" AND entrant = "brown motors"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winning score for 8 feb 2009 ### Context: CREATE TABLE table_21469545_2 (winning_score VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(winning_score) FROM table_21469545_2 WHERE date = "8 Feb 2009"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the average number of wins for events larger than 28? ### Context: CREATE TABLE table_name_22 (wins INTEGER, events INTEGER) ### Response: ### Response: SELECT AVG(wins) FROM table_name_22 WHERE events > 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 total number of yes votes in Newfoundland, which had less than 77,881 vote no? ### Context: CREATE TABLE table_name_49 (voted_yes VARCHAR, jurisdiction VARCHAR, voted_no VARCHAR) ### Response: ### Response: SELECT COUNT(voted_yes) FROM table_name_49 WHERE jurisdiction = "newfoundland" AND voted_no < 77 OFFSET 881</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 students who didn't take any course from Biology department. ### Context: CREATE TABLE student (name VARCHAR, id VARCHAR); CREATE TABLE course (course_id VARCHAR, dept_name VARCHAR); CREATE TABLE takes (id VARCHAR, course_id VARCHAR) ### Response: ### Response: SELECT name FROM student WHERE NOT id IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.dept_name = 'Biology')</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tall was the member of Nymburk, who was born in 1982? ### Context: CREATE TABLE table_name_23 (height INTEGER, year_born VARCHAR, current_club VARCHAR) ### Response: ### Response: SELECT MAX(height) FROM table_name_23 WHERE year_born = 1982 AND current_club = "nymburk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 births for conversion being 26,333 ### Context: CREATE TABLE table_28137918_5 (births INTEGER, conversions VARCHAR) ### Response: ### Response: SELECT MIN(births) FROM table_28137918_5 WHERE conversions = "26,333"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the result for the nomination of Best Revival of a Musical? ### Context: CREATE TABLE table_name_90 (result VARCHAR, category VARCHAR) ### Response: ### Response: SELECT result FROM table_name_90 WHERE category = "best revival of a musical"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 School/Club Team has a Player of michael bradley? ### Context: CREATE TABLE table_name_36 (school_club_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT school_club_team FROM table_name_36 WHERE player = "michael bradley"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 width for a frame size of 5k and a height shorter than 2700? ### Context: CREATE TABLE table_name_18 (width INTEGER, frame_size VARCHAR, height VARCHAR) ### Response: ### Response: SELECT MIN(width) FROM table_name_18 WHERE frame_size = "5k" AND height < 2700</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 purpose for the katherine freq of 8rn? ### Context: CREATE TABLE table_name_50 (purpose VARCHAR, freq_currently VARCHAR, area_served VARCHAR) ### Response: ### Response: SELECT purpose FROM table_name_50 WHERE freq_currently = "8rn" AND area_served = "katherine"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Mike Souchak's to par? ### Context: CREATE TABLE table_name_89 (to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT to_par FROM table_name_89 WHERE player = "mike souchak"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has an against value larger than 21 and had Argentina as an opposing team. ### Context: CREATE TABLE table_name_91 (venue VARCHAR, against VARCHAR, opposing_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_91 WHERE against > 21 AND opposing_team = "argentina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 positions are there for RB1 Motorsports? ### Context: CREATE TABLE table_26609690_1 (position VARCHAR, team_s_ VARCHAR) ### Response: ### Response: SELECT COUNT(position) FROM table_26609690_1 WHERE team_s_ = "RB1 Motorsports"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 airport with IATA of dmk ### Context: CREATE TABLE table_name_74 (airport VARCHAR, iata VARCHAR) ### Response: ### Response: SELECT airport FROM table_name_74 WHERE iata = "dmk"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Total is the lowest one that has a Bronze of 0, and a Silver larger than 0, and a Rank of 5? ### Context: CREATE TABLE table_name_51 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR) ### Response: ### Response: SELECT MIN(total) FROM table_name_51 WHERE bronze = 0 AND silver > 0 AND rank = 5</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many episodes directed by david carson? ### Context: CREATE TABLE table_25604014_5 (no_in_season VARCHAR, directed_by VARCHAR) ### Response: ### Response: SELECT COUNT(no_in_season) FROM table_25604014_5 WHERE directed_by = "David Carson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 votes did kennedy win when coaklely won 2139 votes? ### Context: CREATE TABLE table_24115349_4 (kennedy_votes VARCHAR, coakley_votes VARCHAR) ### Response: ### Response: SELECT COUNT(kennedy_votes) FROM table_24115349_4 WHERE coakley_votes = 2139</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 game where the high points is by manu ginóbili (26)? ### Context: CREATE TABLE table_27715173_8 (game VARCHAR, high_points VARCHAR) ### Response: ### Response: SELECT game FROM table_27715173_8 WHERE high_points = "Manu Ginóbili (26)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Label has a Region of united states, and a Format of cassette? ### Context: CREATE TABLE table_name_68 (label VARCHAR, region VARCHAR, format VARCHAR) ### Response: ### Response: SELECT label FROM table_name_68 WHERE region = "united states" AND format = "cassette"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the most joined for molloy college ### Context: CREATE TABLE table_1969577_1 (joined INTEGER, institution VARCHAR) ### Response: ### Response: SELECT MAX(joined) FROM table_1969577_1 WHERE institution = "Molloy College"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What position did the player have who was from the college of california? ### Context: CREATE TABLE table_name_55 (position VARCHAR, college VARCHAR) ### Response: ### Response: SELECT position FROM table_name_55 WHERE college = "california"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 area in km with a population of 110 in 2011? ### Context: CREATE TABLE table_name_59 (area__km_2__ INTEGER, population__2011_ VARCHAR) ### Response: ### Response: SELECT SUM(area__km_2__) FROM table_name_59 WHERE population__2011_ = 110</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the location for Yemen in 1994? ### Context: CREATE TABLE table_name_1 (location VARCHAR, year VARCHAR, country VARCHAR) ### Response: ### Response: SELECT location FROM table_name_1 WHERE year = "1994" AND country = "yemen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who were the opposition in the quarter-final? ### Context: CREATE TABLE table_name_50 (opposition VARCHAR, round VARCHAR) ### Response: ### Response: SELECT opposition FROM table_name_50 WHERE round = "quarter-final"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 countries did participated in both Friendly and Tournament type competitions. ### Context: CREATE TABLE competition (country VARCHAR, competition_type VARCHAR) ### Response: ### Response: SELECT country FROM competition WHERE competition_type = 'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type = 'Tournament'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 game that has april 21 as the date? ### Context: CREATE TABLE table_name_64 (game INTEGER, date VARCHAR) ### Response: ### Response: SELECT MAX(game) FROM table_name_64 WHERE date = "april 21"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many titles for the production code of NABF07? ### Context: CREATE TABLE table_20942925_1 (title VARCHAR, production_code VARCHAR) ### Response: ### Response: SELECT COUNT(title) FROM table_20942925_1 WHERE production_code = "NABF07"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of those who stayed in the southeast had 19,600 emigrated or forcibly removed? ### Context: CREATE TABLE table_name_58 (number_stayed_in_southeast VARCHAR, total_number_emigrated_or_forcibly_removed VARCHAR) ### Response: ### Response: SELECT number_stayed_in_southeast FROM table_name_58 WHERE total_number_emigrated_or_forcibly_removed = "19,600"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 fee on a CSU campus in 2005? ### Context: CREATE TABLE csu_fees (campusfee INTEGER, YEAR VARCHAR) ### Response: ### Response: SELECT AVG(campusfee) FROM csu_fees WHERE YEAR = 2005</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Apps, when Goals are greater than 5? ### Context: CREATE TABLE table_name_58 (apps INTEGER, goals INTEGER) ### Response: ### Response: SELECT MAX(apps) FROM table_name_58 WHERE goals > 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 of win percentages when the year is 2008 and the crew is varsity 8+? ### Context: CREATE TABLE table_name_74 (win__percentage INTEGER, year VARCHAR, crew VARCHAR) ### Response: ### Response: SELECT SUM(win__percentage) FROM table_name_74 WHERE year = "2008" AND crew = "varsity 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: Which Goals have Games smaller than 41, and a Player of mark amos? ### Context: CREATE TABLE table_name_57 (goals INTEGER, games VARCHAR, player VARCHAR) ### Response: ### Response: SELECT MIN(goals) FROM table_name_57 WHERE games < 41 AND player = "mark amos"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What lane did the swimmer with a time of 52.84 have? ### Context: CREATE TABLE table_name_43 (lane INTEGER, time VARCHAR) ### Response: ### Response: SELECT MAX(lane) FROM table_name_43 WHERE time = 52.84</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What series was Sam Evans on? ### Context: CREATE TABLE table_name_20 (series VARCHAR, name VARCHAR) ### Response: ### Response: SELECT series FROM table_name_20 WHERE name = "sam evans"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Episode of 9 in which performer 3 had? ### Context: CREATE TABLE table_name_82 (performer_3 VARCHAR, episode VARCHAR) ### Response: ### Response: SELECT performer_3 FROM table_name_82 WHERE episode = 9</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Time is listed for the Loss of Okajima (1-2)? ### Context: CREATE TABLE table_name_72 (time VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT time FROM table_name_72 WHERE loss = "okajima (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: What is the cyrillic name for the settlement with the population of 5414? ### Context: CREATE TABLE table_2562572_9 (cyrillic_name_other_names VARCHAR, population__2011_ VARCHAR) ### Response: ### Response: SELECT cyrillic_name_other_names FROM table_2562572_9 WHERE population__2011_ = 5414</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Partial thromboplastin time has a Prothrombin time of prolonged, and a Bleeding time of unaffected, and a Condition of vitamin k deficiency or warfarin? Question 6 ### Context: CREATE TABLE table_name_1 (partial_thromboplastin_time VARCHAR, condition VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR) ### Response: ### Response: SELECT partial_thromboplastin_time FROM table_name_1 WHERE prothrombin_time = "prolonged" AND bleeding_time = "unaffected" AND condition = "vitamin k deficiency or warfarin"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: I want to know the driver when grid is greater than 13 and laps is less than 60 with time/retired of accident ### Context: CREATE TABLE table_name_41 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR) ### Response: ### Response: SELECT driver FROM table_name_41 WHERE grid > 13 AND laps < 60 AND time_retired = "accident"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Count the Pommel Horse that has Rings smaller than 59.85 and a Team Total larger than 361.2? ### Context: CREATE TABLE table_name_6 (pommel_horse INTEGER, rings VARCHAR, team_total VARCHAR) ### Response: ### Response: SELECT SUM(pommel_horse) FROM table_name_6 WHERE rings < 59.85 AND team_total > 361.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 highest share? ### Context: CREATE TABLE table_25304789_1 (share INTEGER) ### Response: ### Response: SELECT MAX(share) FROM table_25304789_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 Tournament has a Score of 6–4, 6–2? ### Context: CREATE TABLE table_name_62 (tournament VARCHAR, score VARCHAR) ### Response: ### Response: SELECT tournament FROM table_name_62 WHERE score = "6–4, 6–2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When circuit ricardo tormo is the circuit who is the winning team? ### Context: CREATE TABLE table_21191496_1 (winning_team VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT winning_team FROM table_21191496_1 WHERE circuit = "circuit Ricardo Tormo"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 incumbent for 1954 ### Context: CREATE TABLE table_1341549_10 (incumbent VARCHAR, first_elected VARCHAR) ### Response: ### Response: SELECT incumbent FROM table_1341549_10 WHERE first_elected = "1954"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 different college/junior/club teams had player John Dzikowski? ### Context: CREATE TABLE table_2850912_6 (college_junior_club_team VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(college_junior_club_team) FROM table_2850912_6 WHERE player = "John Dzikowski"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for January with points of 51 ### Context: CREATE TABLE table_name_7 (january VARCHAR, points VARCHAR) ### Response: ### Response: SELECT january FROM table_name_7 WHERE points = 51</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Games has a Season of 2003/2004, and a Red Cards smaller than 5? ### Context: CREATE TABLE table_name_65 (games INTEGER, season VARCHAR, red_cards VARCHAR) ### Response: ### Response: SELECT AVG(games) FROM table_name_65 WHERE season = "2003/2004" AND red_cards < 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 mean number of played when there are less than 18 points and the position is less than 8? ### Context: CREATE TABLE table_name_45 (played INTEGER, points VARCHAR, position VARCHAR) ### Response: ### Response: SELECT AVG(played) FROM table_name_45 WHERE points < 18 AND position < 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: In seris episode 11-04, what is the B segment titled? ### Context: CREATE TABLE table_15187735_11 (segment_b VARCHAR, series_ep VARCHAR) ### Response: ### Response: SELECT segment_b FROM table_15187735_11 WHERE series_ep = "11-04"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Top-25 with an Events of 20, and a Wins larger than 2? ### Context: CREATE TABLE table_name_45 (top_25 INTEGER, events VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT AVG(top_25) FROM table_name_45 WHERE events = 20 AND wins > 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When mcwilliams-franklin (8) has the highest rebounds what is the date? ### Context: CREATE TABLE table_18904831_6 (date VARCHAR, high_rebounds VARCHAR) ### Response: ### Response: SELECT date FROM table_18904831_6 WHERE high_rebounds = "McWilliams-Franklin (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 the candidates with incumbent being alfred j. elliott ### Context: CREATE TABLE table_1342233_6 (candidates VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT candidates FROM table_1342233_6 WHERE incumbent = "Alfred J. Elliott"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Tell me the sum of round for record of 6-3 ### Context: CREATE TABLE table_name_41 (round INTEGER, record VARCHAR) ### Response: ### Response: SELECT SUM(round) FROM table_name_41 WHERE record = "6-3"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What was the Rampage's regular season in 1997? ### Context: CREATE TABLE table_name_12 (reg_season VARCHAR, year VARCHAR) ### Response: ### Response: SELECT reg_season FROM table_name_12 WHERE year = 1997</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the poles for avg finish is 26.8 ### Context: CREATE TABLE table_1671401_2 (poles VARCHAR, avg_finish VARCHAR) ### Response: ### Response: SELECT poles FROM table_1671401_2 WHERE avg_finish = "26.8"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What engine was used by Curb Motorsports after 1982 that had 11 points? ### Context: CREATE TABLE table_name_2 (engine VARCHAR, team VARCHAR, year VARCHAR, points VARCHAR) ### Response: ### Response: SELECT engine FROM table_name_2 WHERE year > 1982 AND points = 11 AND team = "curb motorsports"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 date successor seated for failure to elect ### Context: CREATE TABLE table_225094_4 (date_successor_seated VARCHAR, reason_for_change VARCHAR) ### Response: ### Response: SELECT date_successor_seated FROM table_225094_4 WHERE reason_for_change = "failure to elect"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team hired Renato Gaúcho? ### Context: CREATE TABLE table_29414946_3 (team VARCHAR, replaced_by VARCHAR) ### Response: ### Response: SELECT team FROM table_29414946_3 WHERE replaced_by = "Renato Gaúcho"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Frequency has an Owner of rogers communications rogers radio, and a Call sign of cikz-fm? ### Context: CREATE TABLE table_name_77 (frequency VARCHAR, owner VARCHAR, call_sign VARCHAR) ### Response: ### Response: SELECT frequency FROM table_name_77 WHERE owner = "rogers communications rogers radio" AND call_sign = "cikz-fm"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when the Drawn is less than 2, with a Difference of 2? ### Context: CREATE TABLE table_name_65 (position VARCHAR, drawn VARCHAR, difference VARCHAR) ### Response: ### Response: SELECT position FROM table_name_65 WHERE drawn < "2" AND difference = "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 position of the player picked at 243? ### Context: CREATE TABLE table_name_32 (position VARCHAR, pick INTEGER) ### Response: ### Response: SELECT position FROM table_name_32 WHERE pick > 243</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What rank has a gold greater than 0, 0 as the bronze, with germany (ger) as the nation? ### Context: CREATE TABLE table_name_20 (rank VARCHAR, nation VARCHAR, gold VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_20 WHERE gold > 0 AND bronze = 0 AND nation = "germany (ger)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player was born June 30, 1981? ### Context: CREATE TABLE table_name_90 (position VARCHAR, birthdate VARCHAR) ### Response: ### Response: SELECT position FROM table_name_90 WHERE birthdate = "june 30, 1981"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mascot has a School of logansport community? ### Context: CREATE TABLE table_name_76 (mascot VARCHAR, school VARCHAR) ### Response: ### Response: SELECT mascot FROM table_name_76 WHERE school = "logansport community"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 items appear in the dividend per share when the turnover is 0.42? ### Context: CREATE TABLE table_2856898_1 (dividend_per_share__p_ VARCHAR, turnover__£m_ VARCHAR) ### Response: ### Response: SELECT COUNT(dividend_per_share__p_) FROM table_2856898_1 WHERE turnover__£m_ = "0.42"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructor for the car driven by George Heath? ### Context: CREATE TABLE table_18893428_1 (constructor VARCHAR, driver VARCHAR) ### Response: ### Response: SELECT constructor FROM table_18893428_1 WHERE driver = "George Heath"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 one mora for the three-mora word /kaze/ [kázé]? ### Context: CREATE TABLE table_name_73 (one_mora VARCHAR, three_mora_word VARCHAR) ### Response: ### Response: SELECT one_mora FROM table_name_73 WHERE three_mora_word = "/kaze/ [kázé]"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2011, when 2012 is "1R"? ### Context: CREATE TABLE table_name_73 (Id VARCHAR) ### Response: ### Response: SELECT 2011 FROM table_name_73 WHERE 2012 = "1r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What shows for 2002 when the 2004 is A, and the 2005 is 1r? ### Context: CREATE TABLE table_name_40 (Id VARCHAR) ### Response: ### Response: SELECT 2002 FROM table_name_40 WHERE 2004 = "a" AND 2005 = "1r"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 biggest grid when the laps are 65? ### Context: CREATE TABLE table_name_86 (grid INTEGER, laps VARCHAR) ### Response: ### Response: SELECT MAX(grid) FROM table_name_86 WHERE laps = 65</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 kinds of different ratings are listed? ### Context: CREATE TABLE film (rating VARCHAR) ### Response: ### Response: SELECT COUNT(DISTINCT rating) FROM film</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall pick number went to college at Youngstown State? ### Context: CREATE TABLE table_10360823_1 (overall INTEGER, college VARCHAR) ### Response: ### Response: SELECT MIN(overall) FROM table_10360823_1 WHERE college = "Youngstown State"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What district was John Dawson from? ### Context: CREATE TABLE table_2668374_18 (district VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT district FROM table_2668374_18 WHERE incumbent = "John Dawson"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 members of "Bootup Baltimore" are older than 18? ### Context: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (stuid VARCHAR, age VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" AND t3.age > 18</s>