inputs stringlengths 400 1.34k |
|---|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which rounds had the B195 chassis?
### Context:
CREATE TABLE table_name_89 (rounds VARCHAR, chassis VARCHAR)
### Response:
### Response:
SELECT rounds FROM table_name_89 WHERE chassis = "b195"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Can you tell me the Series that has the Wins of 0, and the Season of a 2002?
### Context:
CREATE TABLE table_name_63 (series VARCHAR, wins VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT series FROM table_name_63 WHERE wins = 0 AND season = "2002"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which engine of bmw had the lowest points and chassis of march 792 that is newer than 1979?
### Context:
CREATE TABLE table_name_85 (points INTEGER, year VARCHAR, engine VARCHAR, chassis VARCHAR)
### Response:
### Response:
SELECT MIN(points) FROM table_name_85 WHERE engine = "bmw" AND chassis = "march 792" AND year > 1979</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 every affiliation for the Tottenham constituency?
### Context:
CREATE TABLE table_25818630_1 (affiliation VARCHAR, constituency VARCHAR)
### Response:
### Response:
SELECT affiliation FROM table_25818630_1 WHERE constituency = "Tottenham"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 distinct payment method codes in all the invoices?
### Context:
CREATE TABLE INVOICES (payment_method_code VARCHAR)
### Response:
### Response:
SELECT DISTINCT payment_method_code FROM INVOICES</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the year when start was 32
### Context:
CREATE TABLE table_name_78 (year VARCHAR, start VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_78 WHERE start = 32</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the game when on november 27?
### Context:
CREATE TABLE table_name_26 (game INTEGER, november VARCHAR)
### Response:
### Response:
SELECT SUM(game) FROM table_name_26 WHERE november = 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:
What is the Venue with a Result of 3–0, and a Competition with 2006 fifa world cup qualifier, and with a Score of 3–0?
### Context:
CREATE TABLE table_name_22 (venue VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_22 WHERE result = "3–0" AND competition = "2006 fifa world cup qualifier" AND score = "3–0"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Find the products which have problems reported by both Lacey Bosco and Kenton Champlin?
### Context:
CREATE TABLE product (product_name VARCHAR, product_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_first_name VARCHAR, staff_last_name VARCHAR); CREATE TABLE problems (product_id VARCHAR, reported_by_staff_id VARCHAR)
### Response:
### Response:
SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = "Lacey" AND T3.staff_last_name = "Bosco" INTERSECT SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = "Kenton" AND T3.staff_last_name = "Champlin"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the year of the movie with an opening day on Friday with a rank 10?
### Context:
CREATE TABLE table_name_78 (year VARCHAR, day_of_week VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT COUNT(year) FROM table_name_78 WHERE day_of_week = "friday" AND rank = 10</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the place of the Pinyin transcription Xi Wangri?
### Context:
CREATE TABLE table_1805919_1 (standard_order INTEGER, transcription__based_on_pinyin_ VARCHAR)
### Response:
### Response:
SELECT MAX(standard_order) FROM table_1805919_1 WHERE transcription__based_on_pinyin_ = "Xi Wangri"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
I want the total number of matches for draw less than 7 and lost point of 16 with lose more than 4
### Context:
CREATE TABLE table_name_14 (matches VARCHAR, lose VARCHAR, draw VARCHAR, lost_point VARCHAR)
### Response:
### Response:
SELECT COUNT(matches) FROM table_name_14 WHERE draw < 7 AND lost_point = 16 AND lose > 4</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the first season in the series for 2006
### Context:
CREATE TABLE table_2454589_1 (first_season_in_the_serie_a VARCHAR, last_title VARCHAR)
### Response:
### Response:
SELECT first_season_in_the_serie_a FROM table_2454589_1 WHERE last_title = "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 driving wheels are on the m1 original NER class?
### Context:
CREATE TABLE table_name_8 (driving_wheels VARCHAR, original_ner_class VARCHAR)
### Response:
### Response:
SELECT driving_wheels FROM table_name_8 WHERE original_ner_class = "m1"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 assists score of Nick Collison (11)?
### Context:
CREATE TABLE table_name_85 (high_assists VARCHAR, high_rebounds VARCHAR)
### Response:
### Response:
SELECT high_assists FROM table_name_85 WHERE high_rebounds = "nick collison (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 Competition's Score was 1-2?
### Context:
CREATE TABLE table_name_76 (competition VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT competition FROM table_name_76 WHERE score = "1-2"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Score has a Record of 15–12–2?
### Context:
CREATE TABLE table_name_28 (score VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_28 WHERE record = "15–12–2"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Where did someone run a 61:32
### Context:
CREATE TABLE table_name_61 (event_place VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT event_place FROM table_name_61 WHERE time = "61:32"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What current club does the player born in 1984 play for?
### Context:
CREATE TABLE table_12962773_12 (current_club VARCHAR, year_born VARCHAR)
### Response:
### Response:
SELECT current_club FROM table_12962773_12 WHERE year_born = 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:
Which athlete is ranked less than 5 with time over 11.22?
### Context:
CREATE TABLE table_name_15 (athlete VARCHAR, time___sec__ VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT athlete FROM table_name_15 WHERE time___sec__ > 11.22 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:
What is the NUT 3 region with area of 41.58?
### Context:
CREATE TABLE table_name_38 (nuts_3_region VARCHAR, area__km²_ VARCHAR)
### Response:
### Response:
SELECT nuts_3_region FROM table_name_38 WHERE area__km²_ = "41.58"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 field goals for alexis yackley
### Context:
CREATE TABLE table_23184448_4 (field_goals INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MAX(field_goals) FROM table_23184448_4 WHERE player = "Alexis Yackley"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score of the game against the Braves with a record of 41–27?
### Context:
CREATE TABLE table_name_25 (score VARCHAR, opponent VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_25 WHERE opponent = "braves" AND record = "41–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 the Date of March 13, who was the Home team?
### Context:
CREATE TABLE table_name_96 (home VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT home FROM table_name_96 WHERE date = "march 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's the mountains classification of winner Carlos Sastre when the general classification is Denis Menchov?
### Context:
CREATE TABLE table_name_15 (mountains_classification VARCHAR, general_classification VARCHAR, winner VARCHAR)
### Response:
### Response:
SELECT mountains_classification FROM table_name_15 WHERE general_classification = "denis menchov" AND winner = "carlos sastre"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for floysvik and christer tornell is 7?
### Context:
CREATE TABLE table_28677723_11 (tor_fløysvik VARCHAR, christer_tornell VARCHAR)
### Response:
### Response:
SELECT COUNT(tor_fløysvik) FROM table_28677723_11 WHERE christer_tornell = 7</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which NFL team picked Patrick Collins?
### Context:
CREATE TABLE table_name_30 (nfl_team VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT nfl_team FROM table_name_30 WHERE player = "patrick collins"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 series had a score of l 103–112 (ot)?
### Context:
CREATE TABLE table_27713030_16 (series VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT series FROM table_27713030_16 WHERE score = "L 103–112 (OT)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the highest # Of Constituency Votes, when Election is 2005?
### Context:
CREATE TABLE table_name_22 (_number_of_constituency_votes INTEGER, election VARCHAR)
### Response:
### Response:
SELECT MAX(_number_of_constituency_votes) FROM table_name_22 WHERE election = 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:
Name the recopa sudamericana 1992 for did not qualify for libertadores 1992 and round of 16 for bragantino
### Context:
CREATE TABLE table_15013825_8 (recopa_sudamericana_1992 VARCHAR, team VARCHAR, copa_libertadores_1992 VARCHAR, copa_conmebol_1992 VARCHAR)
### Response:
### Response:
SELECT recopa_sudamericana_1992 FROM table_15013825_8 WHERE copa_libertadores_1992 = "Did not qualify" AND copa_conmebol_1992 = "Round of 16" AND team = "Bragantino"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 format for 12cm note and catalog of alca-9198
### Context:
CREATE TABLE table_name_28 (format VARCHAR, note VARCHAR, catalog VARCHAR)
### Response:
### Response:
SELECT format FROM table_name_28 WHERE note = "12cm" AND catalog = "alca-9198"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fastest lapf or jim clark being the winning driver for prince george
### Context:
CREATE TABLE table_name_35 (fastest_lap VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
### Response:
### Response:
SELECT fastest_lap FROM table_name_35 WHERE winning_driver = "jim clark" AND circuit = "prince george"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Pasadena is at 10%, what is La Crescenta-Montrose?
### Context:
CREATE TABLE table_name_25 (la_crescenta__montrose VARCHAR, pasadena VARCHAR)
### Response:
### Response:
SELECT la_crescenta__montrose FROM table_name_25 WHERE pasadena = "10%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the regional county municipality when the type is m and the code is less than 91015?
### Context:
CREATE TABLE table_name_90 (regional_county_municipality VARCHAR, type VARCHAR, code VARCHAR)
### Response:
### Response:
SELECT regional_county_municipality FROM table_name_90 WHERE type = "m" AND code < 91015</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 from flower mound, tx?
### Context:
CREATE TABLE table_name_47 (player VARCHAR, hometown VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_47 WHERE hometown = "flower mound, tx"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Quantity Made, when Year Made is "4-4-0 — oooo — american"?
### Context:
CREATE TABLE table_name_65 (quantity_made VARCHAR, year_made VARCHAR)
### Response:
### Response:
SELECT quantity_made FROM table_name_65 WHERE year_made = "4-4-0 — oooo — american"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points during the game with a record of 2-7?
### Context:
CREATE TABLE table_23274514_4 (high_points VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT high_points FROM table_23274514_4 WHERE record = "2-7"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Position has a Pick # of 18?
### Context:
CREATE TABLE table_name_99 (position VARCHAR, pick__number VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_99 WHERE pick__number = 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:
Which Game site has 27,189 Attendances ?
### Context:
CREATE TABLE table_name_99 (game_site VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT game_site FROM table_name_99 WHERE attendance = "27,189"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
List the name of browsers in descending order by market share.
### Context:
CREATE TABLE browser (name VARCHAR, market_share VARCHAR)
### Response:
### Response:
SELECT name FROM browser ORDER BY market_share DESC</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 score of Game 5?
### Context:
CREATE TABLE table_name_79 (score VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_79 WHERE game = "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:
Who was the away team when the home team was South Melbourne?
### Context:
CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_7 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:
What was the number of high assists for game 1?
### Context:
CREATE TABLE table_name_94 (high_assists VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT high_assists FROM table_name_94 WHERE game = 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:
Can you tell me the Artist that has the Draw smaller than 16, and the English translation of lullaby?
### Context:
CREATE TABLE table_name_66 (artist VARCHAR, draw VARCHAR, english_translation VARCHAR)
### Response:
### Response:
SELECT artist FROM table_name_66 WHERE draw < 16 AND english_translation = "lullaby"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the International Cup that was won by Akron Goodyear Wingfoots and had Real Madrid as runner-up?
### Context:
CREATE TABLE table_name_56 (year VARCHAR, champion VARCHAR, runner_up VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_56 WHERE champion = "akron goodyear wingfoots" AND runner_up = "real madrid"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What record has February 25 as the date?
### Context:
CREATE TABLE table_name_7 (record VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_7 WHERE date = "february 25"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Show the dates of transactions if the share count is bigger than 100 or the amount is bigger than 1000.
### Context:
CREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, share_count VARCHAR, amount_of_transaction VARCHAR)
### Response:
### Response:
SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count > 100 OR amount_of_transaction > 1000</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for the 2010 world cup qualifying?
### Context:
CREATE TABLE table_name_1 (score VARCHAR, competition VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_1 WHERE competition = "2010 world cup qualifying"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the largest number Lost to david nalbandian with a Win Rate of 20%?
### Context:
CREATE TABLE table_name_91 (lost INTEGER, win__percentage VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT MAX(lost) FROM table_name_91 WHERE win__percentage = "20%" AND opponent = "david nalbandian"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the least amount of blank ends for a skip who has 44 PF?
### Context:
CREATE TABLE table_29546030_2 (blank_ends INTEGER, pf VARCHAR)
### Response:
### Response:
SELECT MIN(blank_ends) FROM table_29546030_2 WHERE pf = 44</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Show the average price of hotels for different pet policy.
### Context:
CREATE TABLE HOTELS (pets_allowed_yn VARCHAR, price_range INTEGER)
### Response:
### Response:
SELECT pets_allowed_yn, AVG(price_range) FROM HOTELS GROUP BY pets_allowed_yn</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bahamas is the country what is the height in centimeters?
### Context:
CREATE TABLE table_18626383_2 (height__cm_ VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT height__cm_ FROM table_18626383_2 WHERE country = "Bahamas"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Runner(s)-up has a Winning score of –8 (68-68-72-72=280)?
### Context:
CREATE TABLE table_name_26 (runner_s__up VARCHAR, winning_score VARCHAR)
### Response:
### Response:
SELECT runner_s__up FROM table_name_26 WHERE winning_score = –8(68 - 68 - 72 - 72 = 280)</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What other cadidate ran against Dave Treen?
### Context:
CREATE TABLE table_1341663_19 (candidates VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT candidates FROM table_1341663_19 WHERE incumbent = "Dave Treen"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Is wireless combo keyboard and mouse support part of the DDM class?
### Context:
CREATE TABLE table_1153898_1 (ddm_class VARCHAR, comparisons VARCHAR)
### Response:
### Response:
SELECT ddm_class FROM table_1153898_1 WHERE comparisons = "Wireless Combo keyboard and mouse support"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gp-gs have 121.70 as an effic and an avg/g less than 218.7?
### Context:
CREATE TABLE table_name_41 (gp_gs VARCHAR, effic VARCHAR, avg_g VARCHAR)
### Response:
### Response:
SELECT COUNT(gp_gs) FROM table_name_41 WHERE effic = "121.70" AND avg_g < 218.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:
Who is the captain of Middlesbrough?
### Context:
CREATE TABLE table_name_15 (captain VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT captain FROM table_name_15 WHERE club = "middlesbrough"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Place, when Prize is "$381.030"?
### Context:
CREATE TABLE table_name_32 (place VARCHAR, prize VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_32 WHERE prize = "$381.030"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when the outcome was runner-up, earlier than 1975?
### Context:
CREATE TABLE table_name_25 (score VARCHAR, outcome VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_25 WHERE outcome = "runner-up" AND date < 1975</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Area km 2 have a Population of 1,215?
### Context:
CREATE TABLE table_name_61 (area_km_2 VARCHAR, population VARCHAR)
### Response:
### Response:
SELECT COUNT(area_km_2) FROM table_name_61 WHERE population = 1 OFFSET 215</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed as the Runners-up that also has a Winner of Hajduk Split (3)?
### Context:
CREATE TABLE table_name_63 (runners_up VARCHAR, winner VARCHAR)
### Response:
### Response:
SELECT runners_up FROM table_name_63 WHERE winner = "hajduk split (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 years have a Name of tour quartier des spectacles, and Floors smaller than 31?
### Context:
CREATE TABLE table_name_51 (year VARCHAR, name VARCHAR, floors VARCHAR)
### Response:
### Response:
SELECT COUNT(year) FROM table_name_51 WHERE name = "tour quartier des spectacles" AND floors < 31</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 percentage for T. Papadopoulos when I. Kasoulidis was 27.1%?
### Context:
CREATE TABLE table_name_85 (t_papadopoulos VARCHAR, i_kasoulidis VARCHAR)
### Response:
### Response:
SELECT t_papadopoulos FROM table_name_85 WHERE i_kasoulidis = "27.1%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What country is Greg Norman from?
### Context:
CREATE TABLE table_name_28 (country VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_28 WHERE player = "greg norman"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the game played when the Buffalo Bills had a record of 8-8?
### Context:
CREATE TABLE table_name_80 (location VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_80 WHERE record = "8-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 perfomer one on 30 January 1988?
### Context:
CREATE TABLE table_14934885_1 (performer_1 VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT performer_1 FROM table_14934885_1 WHERE date = "30 January 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 game number against the team Boston?
### Context:
CREATE TABLE table_name_3 (game VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT COUNT(game) FROM table_name_3 WHERE team = "boston"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the highest Population, when State is Puerto Rico, and when Total Congregations is greater than 41?
### Context:
CREATE TABLE table_name_16 (population INTEGER, state VARCHAR, total_congregations VARCHAR)
### Response:
### Response:
SELECT MAX(population) FROM table_name_16 WHERE state = "puerto rico" AND total_congregations > 41</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total itv viewers were there for the episode with official itv ratings of 10.24 million?
### Context:
CREATE TABLE table_27319183_7 (total_itv_viewers__millions_ VARCHAR, official_itv_rating__millions_ VARCHAR)
### Response:
### Response:
SELECT total_itv_viewers__millions_ FROM table_27319183_7 WHERE official_itv_rating__millions_ = "10.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 heavy is the maximum
### Context:
CREATE TABLE table_13950065_1 (per_lift INTEGER)
### Response:
### Response:
SELECT MAX(per_lift) FROM table_13950065_1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was Australia's to par when the place was t9?
### Context:
CREATE TABLE table_name_7 (to_par VARCHAR, place VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT to_par FROM table_name_7 WHERE place = "t9" AND country = "australia"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
display the department id and the total salary for those departments which contains at least two employees.
### Context:
CREATE TABLE employees (department_id VARCHAR, salary INTEGER)
### Response:
### Response:
SELECT department_id, SUM(salary) FROM employees GROUP BY department_id HAVING COUNT(*) >= 2</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the segment a for 162
### Context:
CREATE TABLE table_15187735_13 (segment_a VARCHAR, episode VARCHAR)
### Response:
### Response:
SELECT segment_a FROM table_15187735_13 WHERE episode = 162</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 losses for leslie mann
### Context:
CREATE TABLE table_16512618_1 (losses INTEGER, manager VARCHAR)
### Response:
### Response:
SELECT MAX(losses) FROM table_16512618_1 WHERE manager = "Leslie Mann"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Gold, when Silver is less than 107, when Bronze is greater than 42, and when Rank is 3?
### Context:
CREATE TABLE table_name_95 (gold INTEGER, rank VARCHAR, silver VARCHAR, bronze VARCHAR)
### Response:
### Response:
SELECT AVG(gold) FROM table_name_95 WHERE silver < 107 AND bronze > 42 AND rank = "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:
Name the team for ricky rudd
### Context:
CREATE TABLE table_2150776_1 (team VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT team FROM table_2150776_1 WHERE driver = "Ricky Rudd"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1991 when 1997 is 18?
### Context:
CREATE TABLE table_name_26 (Id VARCHAR)
### Response:
### Response:
SELECT 1991 FROM table_name_26 WHERE 1997 = "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 is Score, when Attendance is "303"?
### Context:
CREATE TABLE table_name_14 (score VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_14 WHERE attendance = 303</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What date did the institution that left in 2013 and that is nicknamed Corsairs, join?
### Context:
CREATE TABLE table_261927_2 (joined VARCHAR, left VARCHAR, nickname VARCHAR)
### Response:
### Response:
SELECT joined FROM table_261927_2 WHERE left = "2013" AND nickname = "Corsairs"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What shows for the 1st round when the team 1 was Lb Châteauroux (d2)?
### Context:
CREATE TABLE table_name_33 (team_1 VARCHAR)
### Response:
### Response:
SELECT 1 AS st_round FROM table_name_33 WHERE team_1 = "lb châteauroux (d2)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 outcome for the Hershey tournament?
### Context:
CREATE TABLE table_name_1 (outcome VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT outcome FROM table_name_1 WHERE tournament = "hershey"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mixed doubles is danny bawa chrisnanta debby susanto what is the boys singles?
### Context:
CREATE TABLE table_14319023_2 (boys_singles VARCHAR, mixed_doubles VARCHAR)
### Response:
### Response:
SELECT boys_singles FROM table_14319023_2 WHERE mixed_doubles = "Danny Bawa Chrisnanta Debby Susanto"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of last 5 meetings for texas tech
### Context:
CREATE TABLE table_16201038_3 (last_5_meetings VARCHAR, missouri_vs VARCHAR)
### Response:
### Response:
SELECT COUNT(last_5_meetings) FROM table_16201038_3 WHERE missouri_vs = "Texas Tech"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What race did Meo Constantini win at the circuit of monza ?
### Context:
CREATE TABLE table_name_36 (name VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_36 WHERE winning_driver = "meo constantini" AND circuit = "monza"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 extra when the result is 4th at the NCAA Championships?
### Context:
CREATE TABLE table_name_28 (extra VARCHAR, result VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT extra FROM table_name_28 WHERE result = "4th" AND tournament = "ncaa championships"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 director when the writter is Andrea Newman?
### Context:
CREATE TABLE table_24910733_1 (directed_by VARCHAR, written_by VARCHAR)
### Response:
### Response:
SELECT directed_by FROM table_24910733_1 WHERE written_by = "Andrea Newman"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 pick number minimum if the player is Mark Bortz?
### Context:
CREATE TABLE table_2508633_8 (pick__number INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MIN(pick__number) FROM table_2508633_8 WHERE player = "Mark Bortz"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round is u.s. open cup division semifinals
### Context:
CREATE TABLE table_1046170_5 (us_open_cup VARCHAR, playoffs VARCHAR)
### Response:
### Response:
SELECT us_open_cup FROM table_1046170_5 WHERE playoffs = "division Semifinals"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 base pairs with 784 genes?
### Context:
CREATE TABLE table_name_53 (base_pairs INTEGER, genes VARCHAR)
### Response:
### Response:
SELECT AVG(base_pairs) FROM table_name_53 WHERE genes = 784</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the decision of the game when Montreal was the home team?
### Context:
CREATE TABLE table_name_90 (decision VARCHAR, home VARCHAR)
### Response:
### Response:
SELECT decision FROM table_name_90 WHERE home = "montreal"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Pick # is the highest one that has an Overall larger than 21, and a College of north carolina, and a Round smaller than 3?
### Context:
CREATE TABLE table_name_14 (pick__number INTEGER, round VARCHAR, overall VARCHAR, college VARCHAR)
### Response:
### Response:
SELECT MAX(pick__number) FROM table_name_14 WHERE overall > 21 AND college = "north carolina" AND round < 3</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score when Françoise Dürr was partner?
### Context:
CREATE TABLE table_177273_2 (score VARCHAR, partner VARCHAR)
### Response:
### Response:
SELECT score FROM table_177273_2 WHERE partner = "Françoise Dürr"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Place has a Player of mark brooks?
### Context:
CREATE TABLE table_name_30 (place VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_30 WHERE player = "mark brooks"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What party is Marie-Dominique Simonet part of?
### Context:
CREATE TABLE table_name_97 (party VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT party FROM table_name_97 WHERE name = "marie-dominique simonet"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first elected for new york 11
### Context:
CREATE TABLE table_1341472_34 (first_elected VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT COUNT(first_elected) FROM table_1341472_34 WHERE district = "New York 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:
Who was the winner at the tournament in Hamburg?
### Context:
CREATE TABLE table_name_11 (winner VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT winner FROM table_name_11 WHERE tournament = "hamburg"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many laps were there for the car with a qual of 138.750?
### Context:
CREATE TABLE table_name_3 (laps VARCHAR, qual VARCHAR)
### Response:
### Response:
SELECT laps FROM table_name_3 WHERE qual = "138.750"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 cardinal direction of Monday in English?
### Context:
CREATE TABLE table_name_84 (cardinal_direction VARCHAR, english VARCHAR)
### Response:
### Response:
SELECT cardinal_direction FROM table_name_84 WHERE english = "monday"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Draws, when Goal Difference is greater than -3, when Goals Against is 30, and when Points is greater than 45?
### Context:
CREATE TABLE table_name_97 (draws INTEGER, points VARCHAR, goal_difference VARCHAR, goals_against VARCHAR)
### Response:
### Response:
SELECT AVG(draws) FROM table_name_97 WHERE goal_difference > -3 AND goals_against = 30 AND points > 45</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for the match with tie number 23?
### Context:
CREATE TABLE table_name_76 (score VARCHAR, tie_no VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_76 WHERE tie_no = "23"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.