<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
 how many incumbent with first elected being 1932

### Context:
CREATE TABLE table_1342331_5 (incumbent VARCHAR, first_elected VARCHAR)

### Response:

### Response:
SELECT COUNT(incumbent) FROM table_1342331_5 WHERE first_elected = 1932</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 earliest year that includes a Seattle Storm guard?

### Context:
CREATE TABLE table_name_54 (year INTEGER, position VARCHAR, wnba_team VARCHAR)

### Response:

### Response:
SELECT MIN(year) FROM table_name_54 WHERE position = "guard" AND wnba_team = "seattle storm"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 big was the crowd of the Home team of Collingwood?

### Context:
CREATE TABLE table_name_92 (crowd INTEGER, home_team VARCHAR)

### Response:

### Response:
SELECT MAX(crowd) FROM table_name_92 WHERE home_team = "collingwood"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What is the sum of sliver medals when there were 2 gold medals, less than 15 total medals, and the rank is greater than 5?

### Context:
CREATE TABLE table_name_88 (silver INTEGER, rank VARCHAR, gold VARCHAR, total VARCHAR)

### Response:

### Response:
SELECT SUM(silver) FROM table_name_88 WHERE gold = 2 AND total < 15 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:
Name the district for others being 18.3

### Context:
CREATE TABLE table_23214055_2 (district VARCHAR, others VARCHAR)

### Response:

### Response:
SELECT district FROM table_23214055_2 WHERE others = "18.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 1993, when Tournament is "Cincinnati"?

### Context:
CREATE TABLE table_name_35 (tournament VARCHAR)

### Response:

### Response:
SELECT 1993 FROM table_name_35 WHERE tournament = "cincinnati"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player for ballarat football league

### Context:
CREATE TABLE table_name_94 (player VARCHAR, competition VARCHAR)

### Response:

### Response:
SELECT player FROM table_name_94 WHERE competition = "ballarat football league"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Position, when Overallis less than 314, and when Pick is less than 8?

### Context:
CREATE TABLE table_name_84 (position VARCHAR, overall VARCHAR, pick VARCHAR)

### Response:

### Response:
SELECT position FROM table_name_84 WHERE overall < 314 AND pick < 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 is the score on March 18?

### Context:
CREATE TABLE table_name_97 (score VARCHAR, date VARCHAR)

### Response:

### Response:
SELECT score FROM table_name_97 WHERE date = "march 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:
What was the visiting team for the game that ended 82-75?

### Context:
CREATE TABLE table_name_51 (visitor VARCHAR, score VARCHAR)

### Response:

### Response:
SELECT visitor FROM table_name_51 WHERE score = "82-75"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 top picki n the draft?

### Context:
CREATE TABLE table_10360656_1 (choice INTEGER)

### Response:

### Response:
SELECT MIN(choice) FROM table_10360656_1</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Find the rooms of faculties with rank professor who live in building NEB.

### Context:
CREATE TABLE FACULTY (Room VARCHAR, Rank VARCHAR, Building VARCHAR)

### Response:

### Response:
SELECT Room FROM FACULTY WHERE Rank = "Professor" AND Building = "NEB"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 best 5-year period has a best 15-year period of alekhine; lasker?

### Context:
CREATE TABLE table_name_37 (best_5_year_period VARCHAR, best_15_year_period VARCHAR)

### Response:

### Response:
SELECT best_5_year_period FROM table_name_37 WHERE best_15_year_period = "alekhine; lasker"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lost has an Against larger than 19, and a Drawn smaller than 1?

### Context:
CREATE TABLE table_name_67 (lost INTEGER, against VARCHAR, drawn VARCHAR)

### Response:

### Response:
SELECT SUM(lost) FROM table_name_67 WHERE against > 19 AND drawn < 1</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Which teams had a difference of 8 between goals scored and goals conceeded

### Context:
CREATE TABLE table_15420044_1 (team VARCHAR, difference VARCHAR)

### Response:

### Response:
SELECT team FROM table_15420044_1 WHERE difference = "8"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Name the number of mens doubles for 2004/2005

### Context:
CREATE TABLE table_12193259_1 (mens_doubles VARCHAR, season VARCHAR)

### Response:

### Response:
SELECT COUNT(mens_doubles) FROM table_12193259_1 WHERE season = "2004/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:
Find the names of all the tracks that contain the word "you".

### Context:
CREATE TABLE TRACK (Name VARCHAR)

### Response:

### Response:
SELECT Name FROM TRACK WHERE Name LIKE '%you%'</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ranks are for Switzerland with more than 2 total medals?

### Context:
CREATE TABLE table_name_39 (rank VARCHAR, nation VARCHAR, total VARCHAR)

### Response:

### Response:
SELECT COUNT(rank) FROM table_name_39 WHERE nation = "switzerland" AND total > 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 lowest pick number for the Boston Celtics?

### Context:
CREATE TABLE table_name_5 (pick INTEGER, team VARCHAR)

### Response:

### Response:
SELECT MIN(pick) FROM table_name_5 WHERE team = "boston celtics"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver Jacky Ickx had what time/retired?

### Context:
CREATE TABLE table_name_64 (time_retired VARCHAR, driver VARCHAR)

### Response:

### Response:
SELECT time_retired FROM table_name_64 WHERE driver = "jacky ickx"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Who was the host team for the game with the final score of 26-24?

### Context:
CREATE TABLE table_name_67 (host_team VARCHAR, final_score VARCHAR)

### Response:

### Response:
SELECT host_team FROM table_name_67 WHERE final_score = "26-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:
How many Wins have Goals against smaller than 30, and Goals for larger than 25, and Draws larger than 5?

### Context:
CREATE TABLE table_name_66 (wins VARCHAR, draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR)

### Response:

### Response:
SELECT COUNT(wins) FROM table_name_66 WHERE goals_against < 30 AND goals_for > 25 AND draws > 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:
Which terminations correspond to a US MSRP of $49?

### Context:
CREATE TABLE table_1601027_1 (termination VARCHAR, us_msrp VARCHAR)

### Response:

### Response:
SELECT termination FROM table_1601027_1 WHERE us_msrp = "$49"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What league has a number less than 122, and least wins as the record?

### Context:
CREATE TABLE table_name_38 (league VARCHAR, number VARCHAR, record VARCHAR)

### Response:

### Response:
SELECT league FROM table_name_38 WHERE number < 122 AND record = "least wins"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 was Ryan Callahan, who received a penalty for roughing, playing for?

### Context:
CREATE TABLE table_name_87 (team VARCHAR, penalty VARCHAR, player VARCHAR)

### Response:

### Response:
SELECT team FROM table_name_87 WHERE penalty = "roughing" AND player = "ryan callahan"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 money did the player Ed Oliver win?

### Context:
CREATE TABLE table_name_74 (money___ INTEGER, player VARCHAR)

### Response:

### Response:
SELECT SUM(money___) AS $__ FROM table_name_74 WHERE player = "ed oliver"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Who won the points classification when the teams classification winner was Lampre-Farnese?

### Context:
CREATE TABLE table_28092844_16 (points_classification_klasyfikacja_punktowa VARCHAR, teams_classification VARCHAR)

### Response:

### Response:
SELECT points_classification_klasyfikacja_punktowa FROM table_28092844_16 WHERE teams_classification = "Lampre-Farnese"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 drove for team Circle Sport?

### Context:
CREATE TABLE table_1266602_2 (driver_s_ VARCHAR, team VARCHAR)

### Response:

### Response:
SELECT driver_s_ FROM table_1266602_2 WHERE team = "Circle Sport"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 loss of the game when the record was 32–34?

### Context:
CREATE TABLE table_name_52 (loss VARCHAR, record VARCHAR)

### Response:

### Response:
SELECT loss FROM table_name_52 WHERE record = "32–34"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 series when wins is less than 3, points is 9 and podiums is 1?

### Context:
CREATE TABLE table_name_7 (series VARCHAR, podiums VARCHAR, wins VARCHAR, points VARCHAR)

### Response:

### Response:
SELECT series FROM table_name_7 WHERE wins < 3 AND points = "9" AND podiums = 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 Record is on March of 12

### Context:
CREATE TABLE table_name_53 (record VARCHAR, march VARCHAR)

### Response:

### Response:
SELECT record FROM table_name_53 WHERE march = 12</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Which team had fans took of 288?

### Context:
CREATE TABLE table_name_71 (team VARCHAR, fans_took VARCHAR)

### Response:

### Response:
SELECT team FROM table_name_71 WHERE fans_took = "288"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 club/province of the player born on 12 May 1984?

### Context:
CREATE TABLE table_name_77 (club_province VARCHAR, date_of_birth__age_ VARCHAR)

### Response:

### Response:
SELECT club_province FROM table_name_77 WHERE date_of_birth__age_ = "12 may 1984"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Date, when Away is High Park Demons?

### Context:
CREATE TABLE table_name_43 (date VARCHAR, away VARCHAR)

### Response:

### Response:
SELECT date FROM table_name_43 WHERE away = "high park demons"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What type has an overall length of 1.605 m?

### Context:
CREATE TABLE table_name_92 (type VARCHAR, length_overall VARCHAR)

### Response:

### Response:
SELECT type FROM table_name_92 WHERE length_overall = "1.605 m"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Date of 8 july 1994 involves which performer 1?

### Context:
CREATE TABLE table_name_31 (performer_1 VARCHAR, date VARCHAR)

### Response:

### Response:
SELECT performer_1 FROM table_name_31 WHERE date = "8 july 1994"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Who had high assists in game number 9?

### Context:
CREATE TABLE table_27712702_7 (high_assists VARCHAR, game VARCHAR)

### Response:

### Response:
SELECT high_assists FROM table_27712702_7 WHERE game = 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 was the result when Dundee were the Opponent at Venue A on 6 September 1986?

### Context:
CREATE TABLE table_name_9 (result VARCHAR, date VARCHAR, opponent VARCHAR, venue VARCHAR)

### Response:

### Response:
SELECT result FROM table_name_9 WHERE opponent = "dundee" AND venue = "a" AND date = "6 september 1986"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Works number has a Number larger than 807, and a Type of 0-6-0, and a Date of 1920?

### Context:
CREATE TABLE table_name_1 (works_number INTEGER, date VARCHAR, number VARCHAR, type VARCHAR)

### Response:

### Response:
SELECT AVG(works_number) FROM table_name_1 WHERE number > 807 AND type = "0-6-0" AND date = 1920</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 series number

### Context:
CREATE TABLE table_2430014_9 (series_no INTEGER)

### Response:

### Response:
SELECT MIN(series_no) FROM table_2430014_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 was the team's score against detroit?

### Context:
CREATE TABLE table_27713030_8 (score VARCHAR, team VARCHAR)

### Response:

### Response:
SELECT score FROM table_27713030_8 WHERE team = "Detroit"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2013 finish for the tournament that had a 2007 finish of A?

### Context:
CREATE TABLE table_name_94 (Id VARCHAR)

### Response:

### Response:
SELECT 2013 FROM table_name_94 WHERE 2007 = "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:
Who was the trainer when Crowd Pleaser won?

### Context:
CREATE TABLE table_name_67 (trainer VARCHAR, winner VARCHAR)

### Response:

### Response:
SELECT trainer FROM table_name_67 WHERE winner = "crowd pleaser"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 with a record of 58–11?

### Context:
CREATE TABLE table_name_49 (result VARCHAR, record VARCHAR)

### Response:

### Response:
SELECT result FROM table_name_49 WHERE record = "58–11"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 pick number for jerry hackenbruck who was overall pick less than 282?

### Context:
CREATE TABLE table_name_78 (pick INTEGER, name VARCHAR, overall VARCHAR)

### Response:

### Response:
SELECT AVG(pick) FROM table_name_78 WHERE name = "jerry hackenbruck" AND overall < 282</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest points for officine alfieri maserati

### Context:
CREATE TABLE table_name_7 (points INTEGER, entrant VARCHAR)

### Response:

### Response:
SELECT MIN(points) FROM table_name_7 WHERE entrant = "officine alfieri maserati"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location Caversham, what is the name of the captain?

### Context:
CREATE TABLE table_18752986_1 (captain VARCHAR, location VARCHAR)

### Response:

### Response:
SELECT captain FROM table_18752986_1 WHERE location = "Caversham"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What player is a lock with 1 cap?

### Context:
CREATE TABLE table_name_16 (player VARCHAR, position VARCHAR, caps VARCHAR)

### Response:

### Response:
SELECT player FROM table_name_16 WHERE position = "lock" AND caps = 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 Goals For has a Lost of 12, and a Played larger than 34?

### Context:
CREATE TABLE table_name_28 (goals_for INTEGER, lost VARCHAR, played VARCHAR)

### Response:

### Response:
SELECT MAX(goals_for) FROM table_name_28 WHERE lost = 12 AND played > 34</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 poll winner for march 19, 2008

### Context:
CREATE TABLE table_15781170_2 (poll_winner VARCHAR, original_air_date VARCHAR)

### Response:

### Response:
SELECT COUNT(poll_winner) FROM table_15781170_2 WHERE original_air_date = "March 19, 2008"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What is District, when Incumbent is "Richard Neal"?

### Context:
CREATE TABLE table_name_8 (district VARCHAR, incumbent VARCHAR)

### Response:

### Response:
SELECT district FROM table_name_8 WHERE incumbent = "richard neal"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Which Season has a Home of 0–1?

### Context:
CREATE TABLE table_name_24 (season VARCHAR, home VARCHAR)

### Response:

### Response:
SELECT season FROM table_name_24 WHERE home = "0–1"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Waht laps have points smaller than 1, and a team of dale coyne racing, and the grid larger than 13?

### Context:
CREATE TABLE table_name_87 (laps VARCHAR, grid VARCHAR, points VARCHAR, team VARCHAR)

### Response:

### Response:
SELECT laps FROM table_name_87 WHERE points < 1 AND team = "dale coyne racing" AND grid > 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 year was Luis Gutierrez election

### Context:
CREATE TABLE table_1341423_13 (first_elected INTEGER, incumbent VARCHAR)

### Response:

### Response:
SELECT MIN(first_elected) FROM table_1341423_13 WHERE incumbent = "Luis Gutierrez"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest Round with Opponent of rolando delgado?

### Context:
CREATE TABLE table_name_18 (round INTEGER, opponent VARCHAR)

### Response:

### Response:
SELECT MIN(round) FROM table_name_18 WHERE opponent = "rolando delgado"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Money (£) with a Place of t6, and a Player of ian baker-finch?

### Context:
CREATE TABLE table_name_61 (money___ VARCHAR, place VARCHAR, player VARCHAR)

### Response:

### Response:
SELECT COUNT(money___) AS £__ FROM table_name_61 WHERE place = "t6" AND player = "ian baker-finch"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What is the number of blank ends when the stolen ends were 17 and Jennifer Jones was skipped with a more than 83 shot pct?

### Context:
CREATE TABLE table_name_57 (blank_ends VARCHAR, shot_pct VARCHAR, stolen_ends VARCHAR, skip VARCHAR)

### Response:

### Response:
SELECT COUNT(blank_ends) FROM table_name_57 WHERE stolen_ends = 17 AND skip = "jennifer jones" AND shot_pct > 83</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Cancelable of yes, and a Type of drag, what was the Category?

### Context:
CREATE TABLE table_name_72 (category VARCHAR, cancelable VARCHAR, type VARCHAR)

### Response:

### Response:
SELECT category FROM table_name_72 WHERE cancelable = "yes" AND type = "drag"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 what week was the December 21, 1969 game?

### Context:
CREATE TABLE table_name_68 (week INTEGER, date VARCHAR)

### Response:

### Response:
SELECT AVG(week) FROM table_name_68 WHERE date = "december 21, 1969"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score on 1978-12-16

### Context:
CREATE TABLE table_name_91 (score VARCHAR, date VARCHAR)

### Response:

### Response:
SELECT score FROM table_name_91 WHERE date = "1978-12-16"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Name the interacting settings for co-operate, plan, take care of, help

### Context:
CREATE TABLE table_name_40 (interacting__settings_ VARCHAR, doing__actions_ VARCHAR)

### Response:

### Response:
SELECT interacting__settings_ FROM table_name_40 WHERE doing__actions_ = "co-operate, plan, take care of, help"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 height entries are there for players from bayside high school?

### Context:
CREATE TABLE table_22496374_1 (height VARCHAR, high_school VARCHAR)

### Response:

### Response:
SELECT COUNT(height) FROM table_22496374_1 WHERE high_school = "Bayside"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 22 is the number what is the episode title?

### Context:
CREATE TABLE table_29475589_3 (episode_title VARCHAR, no VARCHAR)

### Response:

### Response:
SELECT episode_title FROM table_29475589_3 WHERE no = 22</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What is the name of the primary with a DCSF number larger than 2337 and an Ofsted number smaller than 135339?

### Context:
CREATE TABLE table_name_74 (name VARCHAR, ofsted_number VARCHAR, type VARCHAR, dcsf_number VARCHAR)

### Response:

### Response:
SELECT name FROM table_name_74 WHERE type = "primary" AND dcsf_number > 2337 AND ofsted_number < 135339</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 air date of the episode "Another Happy Day"?

### Context:
CREATE TABLE table_2570269_3 (original_air_date__uk_ VARCHAR, episode_title VARCHAR)

### Response:

### Response:
SELECT original_air_date__uk_ FROM table_2570269_3 WHERE episode_title = "Another Happy Day"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What is the name of the driver with a grid less than 14, laps smaller than 53 and a Time/Retired of collision, and a Constructor of ferrari?

### Context:
CREATE TABLE table_name_58 (driver VARCHAR, constructor VARCHAR, time_retired VARCHAR, grid VARCHAR, laps VARCHAR)

### Response:

### Response:
SELECT driver FROM table_name_58 WHERE grid < 14 AND laps < 53 AND time_retired = "collision" AND constructor = "ferrari"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 %2006 that has fewer seats than 23 in Seats 2001, more seats than 4 in 2006 Seats, and a % in 2001 of 25.4?

### Context:
CREATE TABLE table_name_12 (_percentage_2006 VARCHAR, _percentage_2001 VARCHAR, seats_2001 VARCHAR, seats_2006 VARCHAR)

### Response:

### Response:
SELECT _percentage_2006 FROM table_name_12 WHERE seats_2001 < 23 AND seats_2006 > 4 AND _percentage_2001 = 25.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:
How may draws did libertad have?

### Context:
CREATE TABLE table_14889048_2 (draws VARCHAR, team VARCHAR)

### Response:

### Response:
SELECT COUNT(draws) FROM table_14889048_2 WHERE team = "Libertad"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Player #10?

### Context:
CREATE TABLE table_12962773_10 (height VARCHAR, no VARCHAR)

### Response:

### Response:
SELECT height FROM table_12962773_10 WHERE no = 10</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
How many people voted in the election of 1941?

### Context:
CREATE TABLE table_name_79 (number_of_votes VARCHAR, election VARCHAR)

### Response:

### Response:
SELECT number_of_votes FROM table_name_79 WHERE election = 1941</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 province where the age of the contestant is 27?

### Context:
CREATE TABLE table_18349697_1 (province VARCHAR, _community VARCHAR, age VARCHAR)

### Response:

### Response:
SELECT province, _community FROM table_18349697_1 WHERE age = 27</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the Suns have high points with a record of 33–13?

### Context:
CREATE TABLE table_name_8 (date VARCHAR, high_points VARCHAR, record VARCHAR)

### Response:

### Response:
SELECT date FROM table_name_8 WHERE high_points = "suns" AND record = "33–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:
Which tie number had an away team of the Tranmere Rovers?

### Context:
CREATE TABLE table_name_44 (tie_no VARCHAR, away_team VARCHAR)

### Response:

### Response:
SELECT tie_no FROM table_name_44 WHERE away_team = "tranmere rovers"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2007 value with a 4r in 2006, a 1r in 2004, and a 4r in 2009?

### Context:
CREATE TABLE table_name_48 (Id VARCHAR)

### Response:

### Response:
SELECT 2007 FROM table_name_48 WHERE 2006 = "4r" AND 2004 = "1r" AND 2009 = "4r"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Who had a qual 1 of 1:01.461?

### Context:
CREATE TABLE table_name_98 (name VARCHAR, qual_1 VARCHAR)

### Response:

### Response:
SELECT name FROM table_name_98 WHERE qual_1 = "1:01.461"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What Week 2 has a Week 1 of crystal beddows?

### Context:
CREATE TABLE table_name_66 (week_2 VARCHAR, week_1 VARCHAR)

### Response:

### Response:
SELECT week_2 FROM table_name_66 WHERE week_1 = "crystal beddows"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 deaths per year have 66.3 as the life expectancy females?

### Context:
CREATE TABLE table_23423_2 (deaths_per_year VARCHAR, life_expectancy_females VARCHAR)

### Response:

### Response:
SELECT deaths_per_year FROM table_23423_2 WHERE life_expectancy_females = "66.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:
On what day is geelong the home team?

### Context:
CREATE TABLE table_name_37 (date VARCHAR, home_team VARCHAR)

### Response:

### Response:
SELECT date FROM table_name_37 WHERE home_team = "geelong"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What is the epicenter of the earthquake on March 2, 1825 with an unknown intensity?

### Context:
CREATE TABLE table_name_10 (epicenter VARCHAR, intensity VARCHAR, date VARCHAR)

### Response:

### Response:
SELECT epicenter FROM table_name_10 WHERE intensity = "unknown" AND date = "march 2, 1825"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 population density in Buffalo Lake?

### Context:
CREATE TABLE table_2500440_1 (population_density__per_km_2__ VARCHAR, name VARCHAR)

### Response:

### Response:
SELECT population_density__per_km_2__ FROM table_2500440_1 WHERE name = "Buffalo Lake"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What's the lane with a time of 1:00.66?

### Context:
CREATE TABLE table_name_93 (lane INTEGER, time VARCHAR)

### Response:

### Response:
SELECT AVG(lane) FROM table_name_93 WHERE time = "1:00.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:
What is the acronym used for Beirut Arab University?

### Context:
CREATE TABLE table_1160660_1 (acronym VARCHAR, university_name VARCHAR)

### Response:

### Response:
SELECT acronym FROM table_1160660_1 WHERE university_name = "Beirut Arab 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:
How many people attended Junction Oval?

### Context:
CREATE TABLE table_name_17 (crowd INTEGER, venue VARCHAR)

### Response:

### Response:
SELECT SUM(crowd) FROM table_name_17 WHERE venue = "junction oval"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Player of matt ruth?

### Context:
CREATE TABLE table_name_62 (rank INTEGER, player VARCHAR)

### Response:

### Response:
SELECT SUM(rank) FROM table_name_62 WHERE player = "matt ruth"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 54 holes for The Open Championship (4)?

### Context:
CREATE TABLE table_name_7 (championship VARCHAR)

### Response:

### Response:
SELECT 54 AS _holes FROM table_name_7 WHERE championship = "the open championship (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 was the score when the opponent in the final was iroda tulyaganova?

### Context:
CREATE TABLE table_name_44 (score VARCHAR, opponent_in_the_final VARCHAR)

### Response:

### Response:
SELECT score FROM table_name_44 WHERE opponent_in_the_final = "iroda tulyaganova"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What home team plays at princes park?

### Context:
CREATE TABLE table_name_81 (home_team VARCHAR, venue VARCHAR)

### Response:

### Response:
SELECT home_team FROM table_name_81 WHERE venue = "princes park"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What is the party of the politician who left office on January 12, 1857

### Context:
CREATE TABLE table_name_47 (party VARCHAR, left_office VARCHAR)

### Response:

### Response:
SELECT party FROM table_name_47 WHERE left_office = "january 12, 1857"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Manufacturer of honda, and a Rank of 8 had what highest wins?

### Context:
CREATE TABLE table_name_71 (wins INTEGER, manufacturer VARCHAR, rank VARCHAR)

### Response:

### Response:
SELECT MAX(wins) FROM table_name_71 WHERE manufacturer = "honda" AND rank = 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 did Steve Stricker score?

### Context:
CREATE TABLE table_name_54 (score VARCHAR, player VARCHAR)

### Response:

### Response:
SELECT score FROM table_name_54 WHERE player = "steve stricker"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ship has a Pennant number of h.69?

### Context:
CREATE TABLE table_name_43 (ship VARCHAR, pennant_number VARCHAR)

### Response:

### Response:
SELECT ship FROM table_name_43 WHERE pennant_number = "h.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:
When there are more than 12 total medals and less than 5 gold medals, how many bronze medals are there?

### Context:
CREATE TABLE table_name_55 (bronze VARCHAR, total VARCHAR, gold VARCHAR)

### Response:

### Response:
SELECT COUNT(bronze) FROM table_name_55 WHERE total > 12 AND gold < 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 Area's are there for Armstrong?

### Context:
CREATE TABLE table_28367242_1 (area__km²_ VARCHAR, name VARCHAR)

### Response:

### Response:
SELECT COUNT(area__km²_) FROM table_28367242_1 WHERE name = "Armstrong"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
what is the name ofhte company where the plant is in burnaston?

### Context:
CREATE TABLE table_250309_1 (company VARCHAR, plant VARCHAR)

### Response:

### Response:
SELECT company FROM table_250309_1 WHERE plant = "Burnaston"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What is the name that has July 1823 as the Laid down, and portsmouth as the built by hm dockyard?

### Context:
CREATE TABLE table_name_96 (name VARCHAR, laid_down VARCHAR, built_by_hm_dockyard VARCHAR)

### Response:

### Response:
SELECT name FROM table_name_96 WHERE laid_down = "july 1823" AND built_by_hm_dockyard = "portsmouth"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 products that are in orders with status "Cancelled"?

### Context:
CREATE TABLE customer_orders (order_id VARCHAR, order_status VARCHAR); CREATE TABLE order_items (order_quantity INTEGER, order_id VARCHAR)

### Response:

### Response:
SELECT SUM(t2.order_quantity) FROM customer_orders AS t1 JOIN order_items AS t2 ON t1.order_id = t2.order_id WHERE t1.order_status = "Cancelled"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 NBA draft has a School of st. mary's high school?

### Context:
CREATE TABLE table_name_91 (nba_draft VARCHAR, school VARCHAR)

### Response:

### Response:
SELECT nba_draft FROM table_name_91 WHERE school = "st. mary's high 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:
What is the listed crowd at junction oval?

### Context:
CREATE TABLE table_name_54 (crowd VARCHAR, venue VARCHAR)

### Response:

### Response:
SELECT crowd FROM table_name_54 WHERE venue = "junction oval"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructed the I Italian Republic Grand Prix?

### Context:
CREATE TABLE table_1140088_6 (constructor VARCHAR, race_name VARCHAR)

### Response:

### Response:
SELECT constructor FROM table_1140088_6 WHERE race_name = "I Italian Republic Grand Prix"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What is the fewest wins for Thomas in events he had entered exactly 9 times?

### Context:
CREATE TABLE table_name_13 (wins INTEGER, events VARCHAR)

### Response:

### Response:
SELECT MIN(wins) FROM table_name_13 WHERE events = 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:
Which college did the player picked number 136 go to?

### Context:
CREATE TABLE table_name_54 (college VARCHAR, pick VARCHAR)

### Response:

### Response:
SELECT college FROM table_name_54 WHERE pick = 136</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What's the lost when there were more than 16 points and had a drawn less than 1?

### Context:
CREATE TABLE table_name_18 (lost INTEGER, points VARCHAR, drawn VARCHAR)

### Response:

### Response:
SELECT SUM(lost) FROM table_name_18 WHERE points > 16 AND drawn < 1</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
List the player that scored 4 times.

### Context:
CREATE TABLE table_24565004_15 (name VARCHAR, goals¹ VARCHAR)

### Response:

### Response:
SELECT name FROM table_24565004_15 WHERE goals¹ = 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:
When there were 767 points, what was the point difference?

### Context:
CREATE TABLE table_name_34 (points_difference VARCHAR, points_against VARCHAR)

### Response:

### Response:
SELECT points_difference FROM table_name_34 WHERE points_against = "767"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Grid, when Time is +45.855?

### Context:
CREATE TABLE table_name_87 (grid INTEGER, time VARCHAR)

### Response:

### Response:
SELECT AVG(grid) FROM table_name_87 WHERE time = "+45.855"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 IcAO of Frankfurt?

### Context:
CREATE TABLE table_name_91 (icao VARCHAR, city VARCHAR)

### Response:

### Response:
SELECT icao FROM table_name_91 WHERE city = "frankfurt"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2010 with tournament of grand slam tournaments

### Context:
CREATE TABLE table_name_33 (tournament VARCHAR)

### Response:

### Response:
SELECT 2010 FROM table_name_33 WHERE tournament = "grand slam tournaments"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What Mascot has an Enrollment greater than 2,464?

### Context:
CREATE TABLE table_name_23 (mascot VARCHAR, enrollment INTEGER)

### Response:

### Response:
SELECT mascot FROM table_name_23 WHERE enrollment > 2 OFFSET 464</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
When the venue was A and the date was 2 january 2008, what was the average attendance?

### Context:
CREATE TABLE table_name_61 (attendance INTEGER, venue VARCHAR, date VARCHAR)

### Response:

### Response:
SELECT AVG(attendance) FROM table_name_61 WHERE venue = "a" AND date = "2 january 2008"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Which tracks have a length of 18:36?

### Context:
CREATE TABLE table_name_26 (tracks INTEGER, length VARCHAR)

### Response:

### Response:
SELECT MIN(tracks) FROM table_name_26 WHERE length = "18:36"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Which species show a negative result with both voges-proskauer and indole?

### Context:
CREATE TABLE table_16083989_1 (species VARCHAR, voges_proskauer VARCHAR, indole VARCHAR)

### Response:

### Response:
SELECT species FROM table_16083989_1 WHERE voges_proskauer = "Negative" AND indole = "Negative"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 scores for  david baddiel and maureen lipman

### Context:
CREATE TABLE table_23575917_2 (scores VARCHAR, davids_team VARCHAR)

### Response:

### Response:
SELECT COUNT(scores) FROM table_23575917_2 WHERE davids_team = "David Baddiel and Maureen Lipman"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
How many people were in attendance when the home shows as Bulls?

### Context:
CREATE TABLE table_name_89 (attendance VARCHAR, home VARCHAR)

### Response:

### Response:
SELECT COUNT(attendance) FROM table_name_89 WHERE home = "bulls"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 data with a percent gain of 28.4%

### Context:
CREATE TABLE table_name_41 (data VARCHAR, percent_gain VARCHAR)

### Response:

### Response:
SELECT data FROM table_name_41 WHERE percent_gain = "28.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 were the casualties in the Baghlan location?

### Context:
CREATE TABLE table_name_64 (casualties VARCHAR, location VARCHAR)

### Response:

### Response:
SELECT casualties FROM table_name_64 WHERE location = "baghlan"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 total number of places in which the draw was less than 4 and the amount lost was less than 6?

### Context:
CREATE TABLE table_name_73 (place VARCHAR, draw VARCHAR, lost VARCHAR)

### Response:

### Response:
SELECT COUNT(place) FROM table_name_73 WHERE draw < 4 AND lost < 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:
When south Melbourne was the home team, what was the away team?

### Context:
CREATE TABLE table_name_53 (away_team VARCHAR, home_team VARCHAR)

### Response:

### Response:
SELECT away_team FROM table_name_53 WHERE home_team = "south melbourne"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Where did Footscray play as the home team?

### Context:
CREATE TABLE table_name_41 (venue VARCHAR, home_team VARCHAR)

### Response:

### Response:
SELECT venue FROM table_name_41 WHERE home_team = "footscray"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?

### Context:
CREATE TABLE song (f_id VARCHAR, resolution INTEGER, rating INTEGER)

### Response:

### Response:
SELECT f_id FROM song WHERE resolution > (SELECT MAX(resolution) FROM song WHERE rating < 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 is the high rebounds with a record that is 18-14?

### Context:
CREATE TABLE table_name_44 (high_rebounds VARCHAR, record VARCHAR)

### Response:

### Response:
SELECT high_rebounds FROM table_name_44 WHERE record = "18-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:
What was the date of game #3?

### Context:
CREATE TABLE table_27712180_13 (date VARCHAR, game VARCHAR)

### Response:

### Response:
SELECT date FROM table_27712180_13 WHERE game = 3</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
How many people were in the crowd when the Home Team was Hawthorn?

### Context:
CREATE TABLE table_name_58 (crowd INTEGER, home_team VARCHAR)

### Response:

### Response:
SELECT SUM(crowd) FROM table_name_58 WHERE home_team = "hawthorn"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What city and state are the miners located in?

### Context:
CREATE TABLE table_11044765_1 (location VARCHAR, mascot VARCHAR)

### Response:

### Response:
SELECT location FROM table_11044765_1 WHERE mascot = "Miners"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Points with a Series of italian formula renault 2.0, and Poles smaller than 0?

### Context:
CREATE TABLE table_name_39 (points VARCHAR, series VARCHAR, poles VARCHAR)

### Response:

### Response:
SELECT COUNT(points) FROM table_name_39 WHERE series = "italian formula renault 2.0" AND poles < 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 is Player, when Year(s) Won is 1955?

### Context:
CREATE TABLE table_name_84 (player VARCHAR, year_s__won VARCHAR)

### Response:

### Response:
SELECT player FROM table_name_84 WHERE year_s__won = "1955"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a Gold larger than 0, and a Total larger than 4, and a Rank of 6?

### Context:
CREATE TABLE table_name_74 (nation VARCHAR, rank VARCHAR, gold VARCHAR, total VARCHAR)

### Response:

### Response:
SELECT nation FROM table_name_74 WHERE gold > 0 AND total > 4 AND rank = "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:
How many opponents were in North Carolina state game?

### Context:
CREATE TABLE table_20928649_1 (opponents VARCHAR, opponent VARCHAR)

### Response:

### Response:
SELECT COUNT(opponents) FROM table_20928649_1 WHERE opponent = "North Carolina 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 4.45 for Yelena Isinbayeva?

### Context:
CREATE TABLE table_name_5 (name VARCHAR)

### Response:

### Response:
SELECT 445 FROM table_name_5 WHERE name = "yelena isinbayeva"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 was rank 4?

### Context:
CREATE TABLE table_name_43 (country VARCHAR, rank VARCHAR)

### Response:

### Response:
SELECT country FROM table_name_43 WHERE rank = "4"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Which college had rounds smaller than 2?

### Context:
CREATE TABLE table_name_80 (college VARCHAR, round INTEGER)

### Response:

### Response:
SELECT college FROM table_name_80 WHERE round < 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 latest episode number that was directed by Tom Dicillo?

### Context:
CREATE TABLE table_28561455_1 (no_in_series INTEGER, directed_by VARCHAR)

### Response:

### Response:
SELECT MAX(no_in_series) FROM table_28561455_1 WHERE directed_by = "Tom DiCillo"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'

### Context:
CREATE TABLE ship (lost_in_battle VARCHAR, name VARCHAR); CREATE TABLE battle (name VARCHAR, date VARCHAR, id VARCHAR)

### Response:

### Response:
SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'Lettice' INTERSECT SELECT T1.name, T1.date FROM battle AS T1 JOIN ship AS T2 ON T1.id = T2.lost_in_battle WHERE T2.name = 'HMS Atalanta'</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What's the network in 2011?

### Context:
CREATE TABLE table_name_25 (network VARCHAR, year VARCHAR)

### Response:

### Response:
SELECT network FROM table_name_25 WHERE year = 2011</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What date has dallas cowboys as the opponent?

### Context:
CREATE TABLE table_name_91 (date VARCHAR, opponent VARCHAR)

### Response:

### Response:
SELECT date FROM table_name_91 WHERE opponent = "dallas cowboys"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average lost that has a match less than 14?

### Context:
CREATE TABLE table_name_9 (lost INTEGER, match INTEGER)

### Response:

### Response:
SELECT AVG(lost) FROM table_name_9 WHERE match < 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:
Find the last name of the author with first name "Amal".

### Context:
CREATE TABLE authors (lname VARCHAR, fname VARCHAR)

### Response:

### Response:
SELECT lname FROM authors WHERE fname = "Amal"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 grid that roger williamson lapped less than 7?

### Context:
CREATE TABLE table_name_73 (grid INTEGER, driver VARCHAR, laps VARCHAR)

### Response:

### Response:
SELECT MAX(grid) FROM table_name_73 WHERE driver = "roger williamson" AND laps < 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:
Tell me the calls for frequency of 1290 khz

### Context:
CREATE TABLE table_name_88 (calls VARCHAR, frequency VARCHAR)

### Response:

### Response:
SELECT calls FROM table_name_88 WHERE frequency = "1290 khz"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 against Elimination number 2?

### Context:
CREATE TABLE table_name_21 (time VARCHAR, elimination VARCHAR)

### Response:

### Response:
SELECT time FROM table_name_21 WHERE elimination = "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 home for season 1949-50?

### Context:
CREATE TABLE table_name_79 (home VARCHAR, season VARCHAR)

### Response:

### Response:
SELECT home FROM table_name_79 WHERE season = "1949-50"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What are the High assists for February 2?

### Context:
CREATE TABLE table_name_12 (high_assists VARCHAR, date VARCHAR)

### Response:

### Response:
SELECT high_assists FROM table_name_12 WHERE date = "february 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:
Who was the developer(s) of the genre Adventure?

### Context:
CREATE TABLE table_name_22 (developer_s_ VARCHAR, genre VARCHAR)

### Response:

### Response:
SELECT developer_s_ FROM table_name_22 WHERE genre = "adventure"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 price for the manufacturer LETech?

### Context:
CREATE TABLE table_29778616_1 (price VARCHAR, manufacturer VARCHAR)

### Response:

### Response:
SELECT price FROM table_29778616_1 WHERE manufacturer = "LETech"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Alliance Constituency has Seamus Close, position 2 and an election smaller than 1997?

### Context:
CREATE TABLE table_name_41 (constituency VARCHAR, candidate VARCHAR, position VARCHAR, party VARCHAR, election VARCHAR)

### Response:

### Response:
SELECT constituency FROM table_name_41 WHERE party = "alliance" AND election < 1997 AND position = 2 AND candidate = "seamus close"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Li-FeS 2, when Type is Nominal Voltage?

### Context:
CREATE TABLE table_name_9 (li_fes_2 VARCHAR, type VARCHAR)

### Response:

### Response:
SELECT li_fes_2 FROM table_name_9 WHERE type = "nominal voltage"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
List all pilot names in ascending alphabetical order.

### Context:
CREATE TABLE pilot (Name VARCHAR)

### Response:

### Response:
SELECT Name FROM pilot ORDER BY 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 listed under try bonus when listed under Tries for is tries for?

### Context:
CREATE TABLE table_13399573_3 (try_bonus VARCHAR)

### Response:

### Response:
SELECT try_bonus FROM table_13399573_3 WHERE "tries_for" = "tries_for"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Who had the  highest assists on November 4

### Context:
CREATE TABLE table_11959669_3 (high_assists VARCHAR, date VARCHAR)

### Response:

### Response:
SELECT high_assists FROM table_11959669_3 WHERE date = "November 4"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Which Score has an October smaller than 15, and a Record of 2–0–0?

### Context:
CREATE TABLE table_name_73 (score VARCHAR, october VARCHAR, record VARCHAR)

### Response:

### Response:
SELECT score FROM table_name_73 WHERE october < 15 AND record = "2–0–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:
Which Class has a Weight of 203?

### Context:
CREATE TABLE table_name_57 (class VARCHAR, weight VARCHAR)

### Response:

### Response:
SELECT class FROM table_name_57 WHERE weight = 203</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season for old hoss radbourn

### Context:
CREATE TABLE table_242813_2 (season INTEGER, pitcher VARCHAR)

### Response:

### Response:
SELECT MAX(season) FROM table_242813_2 WHERE pitcher = "Old Hoss Radbourn"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lost has a Drawn larger than 5, and a Played larger than 18?

### Context:
CREATE TABLE table_name_78 (lost INTEGER, drawn VARCHAR, played VARCHAR)

### Response:

### Response:
SELECT SUM(lost) FROM table_name_78 WHERE drawn > 5 AND played > 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:
When was the first election in the district whose incumbent is Ron Kind?

### Context:
CREATE TABLE table_1341423_49 (first_elected INTEGER, incumbent VARCHAR)

### Response:

### Response:
SELECT MIN(first_elected) FROM table_1341423_49 WHERE incumbent = "Ron Kind"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2 has lokomotiva as team 1?

### Context:
CREATE TABLE table_name_16 (team_2 VARCHAR, team_1 VARCHAR)

### Response:

### Response:
SELECT team_2 FROM table_name_16 WHERE team_1 = "lokomotiva"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What was the score to par in 1960?

### Context:
CREATE TABLE table_name_74 (to_par VARCHAR, year_s__won VARCHAR)

### Response:

### Response:
SELECT to_par FROM table_name_74 WHERE year_s__won = "1960"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 goals for entries with more than 12 losses, more than 10 wins, more than 3 draws, and fewer than 29 points?

### Context:
CREATE TABLE table_name_99 (goals_for INTEGER, draws VARCHAR, points VARCHAR, losses VARCHAR, wins VARCHAR)

### Response:

### Response:
SELECT AVG(goals_for) FROM table_name_99 WHERE losses > 12 AND wins > 10 AND points < 29 AND draws > 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 Opponent, when Date is December 18, 1988?

### Context:
CREATE TABLE table_name_7 (opponent VARCHAR, date VARCHAR)

### Response:

### Response:
SELECT opponent FROM table_name_7 WHERE date = "december 18, 1988"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 source on 6 September?

### Context:
CREATE TABLE table_name_27 (source VARCHAR, date VARCHAR)

### Response:

### Response:
SELECT source FROM table_name_27 WHERE date = "6 september"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
A list of the top 8 countries by gross/total invoice size. List country name and gross invoice size.

### Context:
CREATE TABLE invoices (billing_country VARCHAR, total INTEGER)

### Response:

### Response:
SELECT billing_country, SUM(total) FROM invoices GROUP BY billing_country ORDER BY SUM(total) DESC LIMIT 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 was the original Japanese cast if Sean Barrett acted on the English (Manga UK) version?

### Context:
CREATE TABLE table_2160215_1 (original_japanese VARCHAR, english___manga_uk__ VARCHAR)

### Response:

### Response:
SELECT original_japanese FROM table_2160215_1 WHERE english___manga_uk__ = "Sean Barrett"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What is the largest district for delegate Cheryl Glenn, that she had taken after 2006?

### Context:
CREATE TABLE table_name_30 (district INTEGER, delegate VARCHAR, took_office VARCHAR)

### Response:

### Response:
SELECT MAX(district) FROM table_name_30 WHERE delegate = "cheryl glenn" AND took_office > 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 was the location and attendance on the May 22 game?

### Context:
CREATE TABLE table_name_13 (location_attendance VARCHAR, date VARCHAR)

### Response:

### Response:
SELECT location_attendance FROM table_name_13 WHERE date = "may 22"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What is the lowest round for the player whose position is guard and had a pick number smaller than 144?

### Context:
CREATE TABLE table_name_84 (round INTEGER, position VARCHAR, pick VARCHAR)

### Response:

### Response:
SELECT MIN(round) FROM table_name_84 WHERE position = "guard" AND pick < 144</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 F/Laps has Podiums of 1, and a Season of 2000, and a Final Placing of nc?

### Context:
CREATE TABLE table_name_98 (f_laps VARCHAR, final_placing VARCHAR, podiums VARCHAR, season VARCHAR)

### Response:

### Response:
SELECT f_laps FROM table_name_98 WHERE podiums = "1" AND season = 2000 AND final_placing = "nc"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Zack Jordan has the lowest pick and a round of less than 28?

### Context:
CREATE TABLE table_name_69 (pick INTEGER, player VARCHAR, round VARCHAR)

### Response:

### Response:
SELECT MIN(pick) FROM table_name_69 WHERE player = "zack jordan" AND round < 28</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What is Date, when Region is Yugoslavia?

### Context:
CREATE TABLE table_name_33 (date VARCHAR, region VARCHAR)

### Response:

### Response:
SELECT date FROM table_name_33 WHERE region = "yugoslavia"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 translation of chetvert?

### Context:
CREATE TABLE table_name_81 (translation VARCHAR, unit VARCHAR)

### Response:

### Response:
SELECT translation FROM table_name_81 WHERE unit = "chetvert"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 NCAA Tournament record after the June 26 game?

### Context:
CREATE TABLE table_28001186_8 (ncaat_record VARCHAR, date VARCHAR)

### Response:

### Response:
SELECT ncaat_record FROM table_28001186_8 WHERE date = "June 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 is the commissioned date with laid down of 17 dec 1951?

### Context:
CREATE TABLE table_name_8 (commissioned VARCHAR, laid_down VARCHAR)

### Response:

### Response:
SELECT commissioned FROM table_name_8 WHERE laid_down = "17 dec 1951"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What is the to par for Bart Bryant?

### Context:
CREATE TABLE table_name_9 (to_par VARCHAR, player VARCHAR)

### Response:

### Response:
SELECT to_par FROM table_name_9 WHERE player = "bart bryant"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of loan and the transfer fee loan?

### Context:
CREATE TABLE table_name_32 (nat VARCHAR, type VARCHAR, transfer_fee VARCHAR)

### Response:

### Response:
SELECT nat FROM table_name_32 WHERE type = "loan" AND transfer_fee = "loan"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Please list all songs in volumes in ascending alphabetical order.

### Context:
CREATE TABLE volume (Song VARCHAR)

### Response:

### Response:
SELECT Song FROM volume ORDER BY Song</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Cincinnati College player?

### Context:
CREATE TABLE table_name_71 (player VARCHAR, college VARCHAR)

### Response:

### Response:
SELECT player FROM table_name_71 WHERE college = "cincinnati"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What is the largest start for a player with 14 conv, 10 tries and more than 22 pens?

### Context:
CREATE TABLE table_name_29 (start INTEGER, pens VARCHAR, conv VARCHAR, tries VARCHAR)

### Response:

### Response:
SELECT MAX(start) FROM table_name_29 WHERE conv = 14 AND tries = 10 AND pens > 22</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
How many parks is Zippin Pippin located in

### Context:
CREATE TABLE table_2665085_1 (park VARCHAR, name VARCHAR)

### Response:

### Response:
SELECT COUNT(park) FROM table_2665085_1 WHERE name = "Zippin Pippin"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 rank of the actor who played the character of arthur hastings during series 1-8, 13?

### Context:
CREATE TABLE table_name_7 (title_rank VARCHAR, series VARCHAR, character VARCHAR)

### Response:

### Response:
SELECT title_rank FROM table_name_7 WHERE series = "1-8, 13" AND character = "arthur hastings"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 grid number that had Team China with less than 10 laps?

### Context:
CREATE TABLE table_name_29 (grid INTEGER, laps VARCHAR, team VARCHAR)

### Response:

### Response:
SELECT AVG(grid) FROM table_name_29 WHERE laps < 10 AND team = "china"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Wjat score is greater than 22 with this song: 林俊杰 - 木乃伊?

### Context:
CREATE TABLE table_name_86 (name VARCHAR, score VARCHAR, song VARCHAR)

### Response:

### Response:
SELECT name FROM table_name_86 WHERE score > 22 AND song = "林俊杰 - 木乃伊"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 account details with the largest value or with value having char '5' in it?

### Context:
CREATE TABLE Accounts (Account_details INTEGER)

### Response:

### Response:
SELECT MAX(Account_details) FROM Accounts UNION SELECT Account_details FROM Accounts WHERE Account_details LIKE "%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:
For End of Fiscal Years past 1980 that also have as % of GDP Low-High of 83.4-84.4, and a Debt Held By Public ($Billions) smaller than 7,552 what would be the average Gross Debt in $Billions undeflated Treas. in said years?

### Context:
CREATE TABLE table_name_1 (gross_debt_in_ INTEGER, debt_held_by_public__$billions_ VARCHAR, end_of_fiscal_year VARCHAR, as__percentage_of_gdp_low_high VARCHAR)

### Response:

### Response:
SELECT AVG(gross_debt_in_) AS $billions_undeflated_treas FROM table_name_1 WHERE end_of_fiscal_year > 1980 AND as__percentage_of_gdp_low_high = "83.4-84.4" AND debt_held_by_public__$billions_ < 7 OFFSET 552</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 crowd at the Victoria Park Venue?

### Context:
CREATE TABLE table_name_94 (crowd INTEGER, venue VARCHAR)

### Response:

### Response:
SELECT MIN(crowd) FROM table_name_94 WHERE venue = "victoria park"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
What is the sum of Total, when Year(s) Won is "1966 , 1970 , 1978", and when To par is less than 4?

### Context:
CREATE TABLE table_name_81 (total INTEGER, year_s__won VARCHAR, to_par VARCHAR)

### Response:

### Response:
SELECT SUM(total) FROM table_name_81 WHERE year_s__won = "1966 , 1970 , 1978" AND to_par < 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 catalog number for the January 25, 1987 release?

### Context:
CREATE TABLE table_name_5 (catalog VARCHAR, date VARCHAR)

### Response:

### Response:
SELECT catalog FROM table_name_5 WHERE date = "january 25, 1987"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 reason for change to the successor that was seated on December 13, 1880?

### Context:
CREATE TABLE table_2417395_4 (reason_for_change VARCHAR, date_successor_seated VARCHAR)

### Response:

### Response:
SELECT reason_for_change FROM table_2417395_4 WHERE date_successor_seated = "December 13, 1880"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
Who is the captain of Neil Warnock's team?

### Context:
CREATE TABLE table_26593762_2 (team VARCHAR, manager VARCHAR)

### Response:

### Response:
SELECT team AS captain FROM table_26593762_2 WHERE manager = "Neil Warnock"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.

You must output the SQL query that answers the question.

    ### Dialect:
sqlite

### Input:
How many times did Robin Hayes run?

### Context:
CREATE TABLE table_1805191_34 (candidates VARCHAR, incumbent VARCHAR)

### Response:

### Response:
SELECT COUNT(candidates) FROM table_1805191_34 WHERE incumbent = "Robin Hayes"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 operator for peak 90, in startup year 2010 for the project named Aosp expansion 1 (jackpine ph 1a)?

### Context:
CREATE TABLE table_name_89 (operator VARCHAR, project_name VARCHAR, peak VARCHAR, year_startup VARCHAR)

### Response:

### Response:
SELECT operator FROM table_name_89 WHERE peak = "90" AND year_startup = "2010" AND project_name = "aosp expansion 1 (jackpine ph 1a)"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Top-25 when events shows 12, the top-5 is 1, and less than 11 cuts?

### Context:
CREATE TABLE table_name_63 (top_25 INTEGER, cuts_made VARCHAR, events VARCHAR, top_5 VARCHAR)

### Response:

### Response:
SELECT MIN(top_25) FROM table_name_63 WHERE events = 12 AND top_5 = 1 AND cuts_made < 11</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 earliest round for nominee david mundy?

### Context:
CREATE TABLE table_name_98 (round INTEGER, nominees VARCHAR)

### Response:

### Response:
SELECT MIN(round) FROM table_name_98 WHERE nominees = "david mundy"</s>


<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 number of days in 1945 where the constituent was heywood and radcliffe?

### Context:
CREATE TABLE table_name_18 (days VARCHAR, year VARCHAR, constituency VARCHAR)

### Response:

### Response:
SELECT days FROM table_name_18 WHERE year = "1945" AND constituency = "heywood and radcliffe"</s>