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: How many totals have a Player of ahmad fouzee masuri, and an FA Cup larger than 0? ### Context: CREATE TABLE table_name_37 (total VARCHAR, player VARCHAR, fa_cup VARCHAR) ### Response: ### Response: SELECT COUNT(total) FROM table_name_37 WHERE player = "ahmad fouzee masuri" AND fa_cup > 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 Event used submission (rear naked choke) with 9-4? ### Context: CREATE TABLE table_name_11 (event VARCHAR, method VARCHAR, record VARCHAR) ### Response: ### Response: SELECT event FROM table_name_11 WHERE method = "submission (rear naked choke)" AND record = "9-4"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who is the player of the match at canberra stadium? ### Context: CREATE TABLE table_name_89 (player VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT player FROM table_name_89 WHERE venue = "canberra stadium"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What team won the regular season when georgia state won the tournament? ### Context: CREATE TABLE table_24348134_3 (regular_season_winner VARCHAR, tournament_winner VARCHAR) ### Response: ### Response: SELECT regular_season_winner FROM table_24348134_3 WHERE tournament_winner = "Georgia 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 is the area (km²) of Nairnshire county, which has a population less than 11,050? ### Context: CREATE TABLE table_name_34 (area__km²_ INTEGER, county VARCHAR, population VARCHAR) ### Response: ### Response: SELECT SUM(area__km²_) FROM table_name_34 WHERE county = "nairnshire" AND population < 11 OFFSET 050</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What name has an overall less than 268, and 1 as the round? ### Context: CREATE TABLE table_name_98 (name VARCHAR, overall VARCHAR, round VARCHAR) ### Response: ### Response: SELECT name FROM table_name_98 WHERE overall < 268 AND round = 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: In how many different parts was the incumbent Abraham B. Venable? ### Context: CREATE TABLE table_2668416_18 (party VARCHAR, incumbent VARCHAR) ### Response: ### Response: SELECT COUNT(party) FROM table_2668416_18 WHERE incumbent = "Abraham B. Venable"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 years did he play the forward position and what school/club/team/country of Oregon State did he play? ### Context: CREATE TABLE table_name_92 (no_s_ INTEGER, position VARCHAR, school_club_team_country VARCHAR) ### Response: ### Response: SELECT SUM(no_s_) FROM table_name_92 WHERE position = "forward" AND school_club_team_country = "oregon 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: When east carolina university is the school what is the highest year founded? ### Context: CREATE TABLE table_2076516_1 (founded INTEGER, school VARCHAR) ### Response: ### Response: SELECT MAX(founded) FROM table_2076516_1 WHERE school = "East Carolina University"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What time was the Wrestler Henry eliminated by Batista? ### Context: CREATE TABLE table_name_12 (time VARCHAR, eliminated_by VARCHAR, wrestler VARCHAR) ### Response: ### Response: SELECT time FROM table_name_12 WHERE eliminated_by = "batista" AND wrestler = "henry"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Name the position for european competitions of eurocup regular season ### Context: CREATE TABLE table_name_41 (pos VARCHAR, european_competitions VARCHAR) ### Response: ### Response: SELECT pos FROM table_name_41 WHERE european_competitions = "eurocup regular season"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: how many games with high rebounds where in february 26 ### Context: CREATE TABLE table_19169116_6 (high_rebounds VARCHAR, date VARCHAR) ### Response: ### Response: SELECT COUNT(high_rebounds) FROM table_19169116_6 WHERE date = "February 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: Name the lead for institute of election results and social democratic of 31.7% 8 seats ### Context: CREATE TABLE table_name_95 (lead VARCHAR, institute VARCHAR, social_democratic VARCHAR) ### Response: ### Response: SELECT lead FROM table_name_95 WHERE institute = "election results" AND social_democratic = "31.7% 8 seats"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 discovery/publication for red deer cave people ### Context: CREATE TABLE table_name_69 (discovery___publication_of_name VARCHAR, species VARCHAR) ### Response: ### Response: SELECT discovery___publication_of_name FROM table_name_69 WHERE species = "red deer cave people"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 top fives in 2010 when casey mears had more than 0 wins? ### Context: CREATE TABLE table_name_29 (top_fives VARCHAR, year VARCHAR, wins VARCHAR) ### Response: ### Response: SELECT COUNT(top_fives) FROM table_name_29 WHERE year = "2010" AND wins > 0</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Among all the claims, what is the settlement amount of the claim with the largest claim amount? List both the settlement amount and claim amount. ### Context: CREATE TABLE Claims (Amount_Settled VARCHAR, Amount_Claimed VARCHAR) ### Response: ### Response: SELECT Amount_Settled, Amount_Claimed FROM Claims ORDER BY Amount_Claimed 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: Which track has a Japanese title of メロディー? ### Context: CREATE TABLE table_name_12 (track INTEGER, japanese_title VARCHAR) ### Response: ### Response: SELECT MAX(track) FROM table_name_12 WHERE japanese_title = "メロディー"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 least amount of silver medals won by Total with more than 1 bronze and more than 18 total medals won? ### Context: CREATE TABLE table_name_8 (silver INTEGER, bronze VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT MIN(silver) FROM table_name_8 WHERE bronze > 1 AND nation = "total" AND "total" > 18</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Show the names of counties that have at least two delegates. ### Context: CREATE TABLE election (District VARCHAR); CREATE TABLE county (County_name VARCHAR, County_id VARCHAR) ### Response: ### Response: SELECT T1.County_name FROM county AS T1 JOIN election AS T2 ON T1.County_id = T2.District GROUP BY T1.County_id HAVING COUNT(*) >= 2</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: where are dragons used as mascots? ### Context: CREATE TABLE table_2439728_1 (location VARCHAR, mascot VARCHAR) ### Response: ### Response: SELECT location FROM table_2439728_1 WHERE mascot = "Dragons"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for less than 52 laps in grid 19? ### Context: CREATE TABLE table_name_52 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) ### Response: ### Response: SELECT time_retired FROM table_name_52 WHERE laps < 52 AND grid = 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: What was the lowest Attendance when the Opponent was Maryland? ### Context: CREATE TABLE table_name_4 (attendance INTEGER, opponent VARCHAR) ### Response: ### Response: SELECT MIN(attendance) FROM table_name_4 WHERE opponent = "maryland"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 To Par is "+1", and when Player is "Mike Souchak"? ### Context: CREATE TABLE table_name_7 (score VARCHAR, to_par VARCHAR, player VARCHAR) ### Response: ### Response: SELECT score FROM table_name_7 WHERE to_par = "+1" AND 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 nation had 14 goals? ### Context: CREATE TABLE table_name_89 (nationality VARCHAR, goals VARCHAR) ### Response: ### Response: SELECT nationality FROM table_name_89 WHERE goals = 14</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How many parties received 29.9% of the vote in Manhattan? ### Context: CREATE TABLE table_1108394_47 (party VARCHAR, manhattan VARCHAR) ### Response: ### Response: SELECT COUNT(party) FROM table_1108394_47 WHERE manhattan = "29.9_percentage"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Find the number of students whose city code is NYC and who have class senator votes in the spring election cycle. ### Context: CREATE TABLE STUDENT (StuID VARCHAR, city_code VARCHAR); CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = Class_Senator_Vote WHERE T1.city_code = "NYC" AND T2.Election_Cycle = "Spring"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What country has a time of 8:03.61? ### Context: CREATE TABLE table_name_61 (country VARCHAR, time VARCHAR) ### Response: ### Response: SELECT country FROM table_name_61 WHERE time = "8:03.61"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 week when the result is w 14-13 and the attendance is higher than 53,295? ### Context: CREATE TABLE table_name_51 (week INTEGER, result VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT AVG(week) FROM table_name_51 WHERE result = "w 14-13" AND attendance > 53 OFFSET 295</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 has a location and attendance at the Seattle Center Coliseum 12,591? ### Context: CREATE TABLE table_name_22 (team VARCHAR, location_attendance VARCHAR) ### Response: ### Response: SELECT team FROM table_name_22 WHERE location_attendance = "seattle center coliseum 12,591"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 LEMA/SUBLEMA has a Ch of Senators of 2? ### Context: CREATE TABLE table_name_4 (lema_sublema VARCHAR, ch_of_senators VARCHAR) ### Response: ### Response: SELECT lema_sublema FROM table_name_4 WHERE ch_of_senators = "2"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: How much Loss has an Avg/G larger than 129.2? ### Context: CREATE TABLE table_name_87 (loss VARCHAR, avg_g INTEGER) ### Response: ### Response: SELECT COUNT(loss) FROM table_name_87 WHERE avg_g > 129.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 date of the Circuit of Indianapolis? ### Context: CREATE TABLE table_name_83 (date VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT date FROM table_name_83 WHERE circuit = "indianapolis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 public vote on graeme & kristina ### Context: CREATE TABLE table_19744915_3 (public_vote VARCHAR, couple VARCHAR) ### Response: ### Response: SELECT public_vote FROM table_19744915_3 WHERE couple = "Graeme & Kristina"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 charity of the celebrity with the background reality star? ### Context: CREATE TABLE table_12286195_1 (charity VARCHAR, background VARCHAR) ### Response: ### Response: SELECT charity FROM table_12286195_1 WHERE background = "Reality Star"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which club had round of group stage round 1 and 5? ### Context: CREATE TABLE table_name_1 (club VARCHAR, round VARCHAR) ### Response: ### Response: SELECT club FROM table_name_1 WHERE round = "group stage round 1 and 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 main legion base that disbanded 70 xx? ### Context: CREATE TABLE table_242785_3 (main_legion_base VARCHAR, date_disband VARCHAR) ### Response: ### Response: SELECT main_legion_base FROM table_242785_3 WHERE date_disband = "70 XX"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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, city, and country of the airport that has the highest latitude. ### Context: CREATE TABLE airports (name VARCHAR, city VARCHAR, country VARCHAR, elevation VARCHAR) ### Response: ### Response: SELECT name, city, country FROM airports ORDER BY elevation 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: Tell me the year for rank more than 35 and out of 167 ### Context: CREATE TABLE table_name_11 (year VARCHAR, rank VARCHAR, out_of VARCHAR) ### Response: ### Response: SELECT year FROM table_name_11 WHERE rank > 35 AND out_of = 167</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Try Bonus, when Tries For is "39"? ### Context: CREATE TABLE table_name_98 (try_bonus VARCHAR, tries_for VARCHAR) ### Response: ### Response: SELECT try_bonus FROM table_name_98 WHERE tries_for = "39"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Can you tell me the Score that has the Country of united states, and the To par of 8? ### Context: CREATE TABLE table_name_45 (score VARCHAR, country VARCHAR, to_par VARCHAR) ### Response: ### Response: SELECT score FROM table_name_45 WHERE country = "united states" AND to_par = 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 Games played has a Points of 6, and Goals scored larger than 12? ### Context: CREATE TABLE table_name_83 (games_played INTEGER, points VARCHAR, goals_scored VARCHAR) ### Response: ### Response: SELECT MAX(games_played) FROM table_name_83 WHERE points = 6 AND goals_scored > 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: How many pick numbers did Matt Marquess have? ### Context: CREATE TABLE table_name_57 (pick__number VARCHAR, player VARCHAR) ### Response: ### Response: SELECT COUNT(pick__number) FROM table_name_57 WHERE player = "matt marquess"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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(s) was the race status piston? ### Context: CREATE TABLE table_181892_4 (year VARCHAR, race_status VARCHAR) ### Response: ### Response: SELECT year FROM table_181892_4 WHERE race_status = "Piston"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name with points of 151.66 ### Context: CREATE TABLE table_name_7 (name VARCHAR, points VARCHAR) ### Response: ### Response: SELECT name FROM table_name_7 WHERE points = 151.66</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 20 Questions section aimed at when Centerfold Model was Rachel Jeán Marteen? ### Context: CREATE TABLE table_name_46 (centerfold_model VARCHAR) ### Response: ### Response: SELECT 20 AS _questions FROM table_name_46 WHERE centerfold_model = "rachel jeán marteen"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: For the genus/species arabidopsis thaliana, what are the lengths? ### Context: CREATE TABLE table_15417439_1 (length VARCHAR, genus_species VARCHAR) ### Response: ### Response: SELECT length FROM table_15417439_1 WHERE genus_species = "Arabidopsis thaliana"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 on September 7? ### Context: CREATE TABLE table_name_31 (results¹ VARCHAR, date VARCHAR) ### Response: ### Response: SELECT results¹ FROM table_name_31 WHERE date = "september 7"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Which stadium held the game that 65,677 people attended? ### Context: CREATE TABLE table_name_21 (stadium VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT stadium FROM table_name_21 WHERE attendance = "65,677"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: When the Loss is Johnson (4-12), what is the date? ### Context: CREATE TABLE table_name_9 (date VARCHAR, loss VARCHAR) ### Response: ### Response: SELECT date FROM table_name_9 WHERE loss = "johnson (4-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: How many figures for 08 A points for the team with 1.1863 average? ### Context: CREATE TABLE table_25887826_17 (avg VARCHAR) ### Response: ### Response: SELECT COUNT(08 AS _a_pts) FROM table_25887826_17 WHERE avg = "1.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: Who was the opponent when the record was 31-24? ### Context: CREATE TABLE table_name_40 (opponent VARCHAR, record VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_40 WHERE record = "31-24"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the amount of FA cups goals that were made when the total goals is greater than 16, and the league cup goals is 1 for the Norwich City club? ### Context: CREATE TABLE table_name_78 (fa_cup_goals VARCHAR, club VARCHAR, total VARCHAR, league_cup_goals VARCHAR) ### Response: ### Response: SELECT fa_cup_goals FROM table_name_78 WHERE total > 16 AND league_cup_goals = "1" AND club = "norwich city"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all headquarters without a company in banking industry. ### Context: CREATE TABLE company (headquarters VARCHAR, main_industry VARCHAR) ### Response: ### Response: SELECT headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry = 'Banking'</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Socket, when Voltage is 2.0V, and when Model Number is Pentium II 333? ### Context: CREATE TABLE table_name_64 (socket VARCHAR, voltage VARCHAR, model_number VARCHAR) ### Response: ### Response: SELECT socket FROM table_name_64 WHERE voltage = "2.0v" AND model_number = "pentium ii 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: Name the sum of swimsuit for average more than 9.23 for delaware for interview more than 9.73 ### Context: CREATE TABLE table_name_31 (swimsuit INTEGER, interview VARCHAR, average VARCHAR, country VARCHAR) ### Response: ### Response: SELECT SUM(swimsuit) FROM table_name_31 WHERE average > 9.23 AND country = "delaware" AND interview > 9.73</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 title of the king who left office in 982 and entered office in 949? ### Context: CREATE TABLE table_name_64 (title VARCHAR, left_office VARCHAR, entered_office VARCHAR) ### Response: ### Response: SELECT title FROM table_name_64 WHERE left_office = "982" AND entered_office = "949"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rank that is on september 9, 2004? ### Context: CREATE TABLE table_name_16 (rank VARCHAR, date VARCHAR) ### Response: ### Response: SELECT rank FROM table_name_16 WHERE date = "september 9, 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: On what Date is the Winning Score 71-69-68-70=278? ### Context: CREATE TABLE table_name_60 (date VARCHAR, winning_score VARCHAR) ### Response: ### Response: SELECT date FROM table_name_60 WHERE winning_score = 71 - 69 - 68 - 70 = 278</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Alton Lister Category:Articles with hCards has what as the listed years? ### Context: CREATE TABLE table_name_56 (years VARCHAR, player VARCHAR) ### Response: ### Response: SELECT years FROM table_name_56 WHERE player = "alton lister category:articles with hcards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the stadium of the NK Zagreb? ### Context: CREATE TABLE table_name_70 (stadium VARCHAR, team VARCHAR) ### Response: ### Response: SELECT stadium FROM table_name_70 WHERE team = "nk zagreb"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who was the opponent at the competition held at Jeonju? ### Context: CREATE TABLE table_name_20 (opponent VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT opponent FROM table_name_20 WHERE venue = "jeonju"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 record when there was a fight that lasted 5:00? ### Context: CREATE TABLE table_name_96 (record VARCHAR, time VARCHAR) ### Response: ### Response: SELECT record FROM table_name_96 WHERE time = "5:00"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 biggest crowd when carlton is the away squad? ### Context: CREATE TABLE table_name_48 (crowd INTEGER, away_team VARCHAR) ### Response: ### Response: SELECT MAX(crowd) FROM table_name_48 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: Name the number of proto austronesian for *natu ### Context: CREATE TABLE table_15568886_14 (proto_austronesian VARCHAR, proto_oceanic VARCHAR) ### Response: ### Response: SELECT COUNT(proto_austronesian) FROM table_15568886_14 WHERE proto_oceanic = "*natu"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average overall for james davis ### Context: CREATE TABLE table_name_91 (overall INTEGER, player VARCHAR) ### Response: ### Response: SELECT AVG(overall) FROM table_name_91 WHERE player = "james davis"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 in the game where the visiting team was Louisiana-Monroe? ### Context: CREATE TABLE table_26842217_12 (result VARCHAR, visiting_team VARCHAR) ### Response: ### Response: SELECT result FROM table_26842217_12 WHERE visiting_team = "Louisiana-Monroe"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest total when the Bronze metals are larger than 0 and the nation is France (fra)? ### Context: CREATE TABLE table_name_85 (total INTEGER, bronze VARCHAR, nation VARCHAR) ### Response: ### Response: SELECT MIN(total) FROM table_name_85 WHERE bronze > 0 AND nation = "france (fra)"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 situation has an original u.s. airdate of December 5, 2007? ### Context: CREATE TABLE table_14570857_1 (situation VARCHAR, original_us_airdate VARCHAR) ### Response: ### Response: SELECT situation FROM table_14570857_1 WHERE original_us_airdate = "December 5, 2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Who are all the assistant principals that served from 2013-2014 under the principal Cort Monroe? ### Context: CREATE TABLE table_14254419_3 (Assistant VARCHAR, principal__2013_2014_ VARCHAR) ### Response: ### Response: SELECT Assistant AS principal__2013_2014_ FROM table_14254419_3 WHERE principal__2013_2014_ = "Cort Monroe"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: Where did Richmond play as the home team? ### Context: CREATE TABLE table_name_43 (venue VARCHAR, home_team VARCHAR) ### Response: ### Response: SELECT venue FROM table_name_43 WHERE home_team = "richmond"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 arizona ### Context: CREATE TABLE table_22815259_1 (record VARCHAR, opponent VARCHAR) ### Response: ### Response: SELECT record FROM table_22815259_1 WHERE opponent = "Arizona"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 different locations and the number of performances at each location. ### Context: CREATE TABLE performance (LOCATION VARCHAR) ### Response: ### Response: SELECT LOCATION, COUNT(*) FROM performance GROUP BY LOCATION</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Original U.S. air-date for the Original Canadian air-date of december 9, 2007? ### Context: CREATE TABLE table_name_80 (original_us_air_date VARCHAR, original_canadian_air_date VARCHAR) ### Response: ### Response: SELECT original_us_air_date FROM table_name_80 WHERE original_canadian_air_date = "december 9, 2007"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is Fastest Lap, when Date is Leeds, Alabama, and when Circuit is April 19? ### Context: CREATE TABLE table_name_18 (fastest_lap VARCHAR, date VARCHAR, circuit VARCHAR) ### Response: ### Response: SELECT fastest_lap FROM table_name_18 WHERE date = "leeds, alabama" AND circuit = "april 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: What is the maximum Obama supporters in Wayne county? ### Context: CREATE TABLE table_20688030_1 (obama_number INTEGER, county VARCHAR) ### Response: ### Response: SELECT MAX(obama_number) FROM table_20688030_1 WHERE county = "Wayne"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lbs were lost at the reunion by the contestant whose finale weight was 151.4? ### Context: CREATE TABLE table_28654454_5 (lbs_lost_reunion VARCHAR, finale_weight VARCHAR) ### Response: ### Response: SELECT lbs_lost_reunion FROM table_28654454_5 WHERE finale_weight = "151.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: Compute the number of products with a price larger than or equal to $180. ### Context: CREATE TABLE products (price VARCHAR) ### Response: ### Response: SELECT COUNT(*) FROM products WHERE price >= 180</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of Mount Albert School? ### Context: CREATE TABLE table_name_85 (area VARCHAR, name VARCHAR) ### Response: ### Response: SELECT area FROM table_name_85 WHERE name = "mount albert school"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 matches were won by the teams that scored exactly 61 tries for? ### Context: CREATE TABLE table_27293285_6 (won VARCHAR, tries_for VARCHAR) ### Response: ### Response: SELECT won FROM table_27293285_6 WHERE tries_for = "61"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 plural preterite that is associated with a subjunctive preterite of ü and has an infinitive stem of e + l/r + cons.? ### Context: CREATE TABLE table_name_93 (plur_pret VARCHAR, subj_pret VARCHAR, inf_stem VARCHAR) ### Response: ### Response: SELECT plur_pret FROM table_name_93 WHERE subj_pret = "ü" AND inf_stem = "e + l/r + cons."</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 apps for the rank of 8 in the 2012/13 season? ### Context: CREATE TABLE table_name_7 (apps INTEGER, rank VARCHAR, season VARCHAR) ### Response: ### Response: SELECT MAX(apps) FROM table_name_7 WHERE rank = 8 AND season = "2012/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 sum of gold medals with a total of 12 medals and less than 4 bronze medals? ### Context: CREATE TABLE table_name_72 (gold INTEGER, total VARCHAR, bronze VARCHAR) ### Response: ### Response: SELECT SUM(gold) FROM table_name_72 WHERE total = 12 AND bronze < 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: Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities? ### Context: CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Feb INTEGER, Jun VARCHAR) ### Response: ### Response: SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: WHAT IS THE POINTS WITH 55 TRIES? ### Context: CREATE TABLE table_name_89 (points VARCHAR, tries_for VARCHAR) ### Response: ### Response: SELECT points FROM table_name_89 WHERE tries_for = "55"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Significant Relationship of Parents belongs with what Virtue? ### Context: CREATE TABLE table_name_84 (virtues VARCHAR, significant_relationship VARCHAR) ### Response: ### Response: SELECT virtues FROM table_name_84 WHERE significant_relationship = "parents"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 bedford's mascot? ### Context: CREATE TABLE table_name_20 (mascot VARCHAR, location VARCHAR) ### Response: ### Response: SELECT mascot FROM table_name_20 WHERE location = "bedford"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Attendance has a Opponent of west bromwich albion, and a Result of 3 – 3, and a Match larger than 20? ### Context: CREATE TABLE table_name_79 (attendance INTEGER, match VARCHAR, opponent VARCHAR, result VARCHAR) ### Response: ### Response: SELECT SUM(attendance) FROM table_name_79 WHERE opponent = "west bromwich albion" AND result = "3 – 3" AND match > 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: Which Year is the lowest one that has a To par of –1? ### Context: CREATE TABLE table_name_93 (year INTEGER, to_par VARCHAR) ### Response: ### Response: SELECT MIN(year) FROM table_name_93 WHERE to_par = "–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 hame has points larger than 81? ### Context: CREATE TABLE table_name_44 (game INTEGER, points INTEGER) ### Response: ### Response: SELECT SUM(game) FROM table_name_44 WHERE points > 81</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 totals associated with a UEFA Cup score of 4? ### Context: CREATE TABLE table_name_48 (total INTEGER, UEfa_cup VARCHAR) ### Response: ### Response: SELECT SUM(total) FROM table_name_48 WHERE UEfa_cup = 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: On what position number is the club with a w-l-d of 5-7-4? ### Context: CREATE TABLE table_13713206_1 (club__city_town_ VARCHAR, w_l_d VARCHAR) ### Response: ### Response: SELECT COUNT(club__city_town_) FROM table_13713206_1 WHERE w_l_d = "5-7-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: Who were the opponents that had an attendance of exactly 16115? ### Context: CREATE TABLE table_24852001_2 (opponent VARCHAR, attendance VARCHAR) ### Response: ### Response: SELECT opponent FROM table_24852001_2 WHERE attendance = 16115</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Local authority has a Zone 2007 of outside zones, and a Zone 2008 of outside zones, and a Zone 2010 of outside zones, and a Station of waltham cross? ### Context: CREATE TABLE table_name_46 (local_authority VARCHAR, station VARCHAR, zone_2010 VARCHAR, zone_2007 VARCHAR, zone_2008 VARCHAR) ### Response: ### Response: SELECT local_authority FROM table_name_46 WHERE zone_2007 = "outside zones" AND zone_2008 = "outside zones" AND zone_2010 = "outside zones" AND station = "waltham cross"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 John m. Belk Arena built? ### Context: CREATE TABLE table_name_74 (year_built VARCHAR, venue VARCHAR) ### Response: ### Response: SELECT year_built FROM table_name_74 WHERE venue = "john m. belk arena"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What Percentage did the First game of 1998 have? ### Context: CREATE TABLE table_name_80 (percentage VARCHAR, first_game VARCHAR) ### Response: ### Response: SELECT percentage FROM table_name_80 WHERE first_game = 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: Who was runner-up in the 2006 Pacific Life Open? ### Context: CREATE TABLE table_name_62 (runner_up VARCHAR, name VARCHAR, year VARCHAR) ### Response: ### Response: SELECT runner_up FROM table_name_62 WHERE name = "pacific life open" AND year = "2006"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What School has no no no Unanimously? ### Context: CREATE TABLE table_name_96 (school VARCHAR, unanimous VARCHAR) ### Response: ### Response: SELECT school FROM table_name_96 WHERE unanimous = "no no no"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest number of f/laps in the 5th position? ### Context: CREATE TABLE table_name_17 (f_laps INTEGER, position VARCHAR) ### Response: ### Response: SELECT MIN(f_laps) FROM table_name_17 WHERE position = "5th"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. ### Dialect: sqlite ### Input: What is the lowest grid number when Colin Edwards is the rider? ### Context: CREATE TABLE table_name_46 (grid INTEGER, rider VARCHAR) ### Response: ### Response: SELECT MIN(grid) FROM table_name_46 WHERE rider = "colin edwards"</s>
<s>### Instruction: You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ansi code? ### Context: CREATE TABLE table_18600760_13 (ansi_code INTEGER) ### Response: ### Response: SELECT MIN(ansi_code) FROM table_18600760_13</s>