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:
What is the value in 2013 when it is 1R in 2007 and 2009?
### Context:
CREATE TABLE table_name_38 (Id VARCHAR)
### Response:
### Response:
SELECT 2013 FROM table_name_38 WHERE 2007 = "1r" AND 2009 = "1r"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the july average low associated with a january average high of 30.4?
### Context:
CREATE TABLE table_name_28 (july__avg_low_ VARCHAR, january__avg_high_°f_ VARCHAR)
### Response:
### Response:
SELECT COUNT(july__avg_low_) AS °f_ FROM table_name_28 WHERE january__avg_high_°f_ = "30.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 Opponent has an Attendance of 24,791?
### Context:
CREATE TABLE table_name_94 (opponent VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_94 WHERE attendance = "24,791"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the fastest lap at the Tenneco Automotive Grand Prix of Detroit?
### Context:
CREATE TABLE table_11056278_3 (fastest_lap VARCHAR, race_name VARCHAR)
### Response:
### Response:
SELECT fastest_lap FROM table_11056278_3 WHERE race_name = "Tenneco Automotive Grand Prix of 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 is the score of the match on November 15, 2011?
### Context:
CREATE TABLE table_name_44 (score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_44 WHERE date = "november 15, 2011"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which route has a terminus of pine Forest?
### Context:
CREATE TABLE table_name_57 (name VARCHAR, terminus VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_57 WHERE terminus = "pine forest"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 leagues entering this round for 4
### Context:
CREATE TABLE table_19089486_1 (leagues_entering_this_round VARCHAR, clubs_involved VARCHAR)
### Response:
### Response:
SELECT leagues_entering_this_round FROM table_19089486_1 WHERE clubs_involved = 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 Reservoir capacity has an Impounded body of water of tumut two pondage?
### Context:
CREATE TABLE table_name_41 (reservoir_capacity VARCHAR, impounded_body_of_water VARCHAR)
### Response:
### Response:
SELECT reservoir_capacity FROM table_name_41 WHERE impounded_body_of_water = "tumut two pondage"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What number is Fall 08 from the state with 57 in Fall 06 and 74 or less in Fall 05?
### Context:
CREATE TABLE table_name_52 (fall_08 VARCHAR, fall_06 VARCHAR, fall_05 VARCHAR)
### Response:
### Response:
SELECT COUNT(fall_08) FROM table_name_52 WHERE fall_06 = 57 AND fall_05 < 74</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for score l 110-112
### Context:
CREATE TABLE table_22871239_8 (_number VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT COUNT(_number) FROM table_22871239_8 WHERE score = "L 110-112"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What nationality is Diogo?
### Context:
CREATE TABLE table_name_53 (nat VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT nat FROM table_name_53 WHERE name = "diogo"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 event where there are 10 score points?
### Context:
CREATE TABLE table_name_10 (event VARCHAR, score_points VARCHAR)
### Response:
### Response:
SELECT event FROM table_name_10 WHERE score_points = "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 date was the game with a score of w 116–93 (ot)?
### Context:
CREATE TABLE table_27715173_6 (date VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_27715173_6 WHERE score = "W 116–93 (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 tournament was on May 31, 1987?
### Context:
CREATE TABLE table_name_93 (tournament VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT tournament FROM table_name_93 WHERE date = "may 31, 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 player was drafted number 10?
### Context:
CREATE TABLE table_name_75 (player VARCHAR, pick VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_75 WHERE pick = 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 years have a Catalog Number of 80429 / bta80429?
### Context:
CREATE TABLE table_name_69 (year VARCHAR, catalog_number VARCHAR)
### Response:
### Response:
SELECT COUNT(year) FROM table_name_69 WHERE catalog_number = "80429 / bta80429"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 PLAYERS PLAYED IN THE GAME THAT WON WITH 438 POINTS
### Context:
CREATE TABLE table_12807904_3 (played VARCHAR, points_for VARCHAR)
### Response:
### Response:
SELECT played FROM table_12807904_3 WHERE points_for = "438"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 7 september 1996 includes which highest rank athlete?
### Context:
CREATE TABLE table_name_68 (rank INTEGER, date VARCHAR)
### Response:
### Response:
SELECT MAX(rank) FROM table_name_68 WHERE date = "7 september 1996"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What are the date of ceremony of music festivals with category "Best Song" and result "Awarded"?
### Context:
CREATE TABLE music_festival (Date_of_ceremony VARCHAR, Category VARCHAR, RESULT VARCHAR)
### Response:
### Response:
SELECT Date_of_ceremony FROM music_festival WHERE Category = "Best Song" AND RESULT = "Awarded"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall goals were scored at moses mabhida stadium?
### Context:
CREATE TABLE table_27708484_3 (overall_goals_scored INTEGER, stadium VARCHAR)
### Response:
### Response:
SELECT MAX(overall_goals_scored) FROM table_27708484_3 WHERE stadium = "Moses Mabhida stadium"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which country has a to par of +2 for Bernhard Langer?
### Context:
CREATE TABLE table_name_3 (country VARCHAR, to_par VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_3 WHERE to_par = "+2" AND player = "bernhard langer"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of release for the album labelled 艺能动音?
### Context:
CREATE TABLE table_name_93 (year_of_release INTEGER, label_s_ VARCHAR)
### Response:
### Response:
SELECT MIN(year_of_release) FROM table_name_93 WHERE label_s_ = "艺能动音"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Competition with a Result of win with a Score that is 1-0?
### Context:
CREATE TABLE table_name_91 (competition VARCHAR, result VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT competition FROM table_name_91 WHERE result = "win" AND score = "1-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 are the song names for the film kaal bhairav?
### Context:
CREATE TABLE table_11827596_2 (song_name VARCHAR, film_name VARCHAR)
### Response:
### Response:
SELECT song_name FROM table_11827596_2 WHERE film_name = "Kaal Bhairav"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many attended the game with north melbourne as the away side?
### Context:
CREATE TABLE table_name_99 (crowd VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT COUNT(crowd) FROM table_name_99 WHERE away_team = "north 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:
Flap of 0, and a Race smaller than 2, and a Season of 1989, and a Pole smaller than 0 had what average podium?
### Context:
CREATE TABLE table_name_10 (podium INTEGER, pole VARCHAR, season VARCHAR, flap VARCHAR, race VARCHAR)
### Response:
### Response:
SELECT AVG(podium) FROM table_name_10 WHERE flap = 0 AND race < 2 AND season = "1989" AND pole < 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 the minimum number of f/laps in the Italian Formula Renault 2.0 Winter Series?
### Context:
CREATE TABLE table_21795650_1 (f_laps INTEGER, series VARCHAR)
### Response:
### Response:
SELECT MIN(f_laps) FROM table_21795650_1 WHERE series = "Italian Formula Renault 2.0 Winter series"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Method has a Round of 1, and a Time of 0:28?
### Context:
CREATE TABLE table_name_98 (method VARCHAR, round VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT method FROM table_name_98 WHERE round = 1 AND time = "0:28"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Johnny Palmer with a To larger than 6 Money sum?
### Context:
CREATE TABLE table_name_81 (money___ INTEGER, to_par VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT SUM(money___) AS $__ FROM table_name_81 WHERE to_par > 6 AND player = "johnny palmer"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 maximum and minimum number of cows across all farms.
### Context:
CREATE TABLE farm (Cows INTEGER)
### Response:
### Response:
SELECT MAX(Cows), MIN(Cows) FROM farm</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What the listed in round when the hawthorn score is 17.7.109?
### Context:
CREATE TABLE table_28211103_1 (round INTEGER, hawthorn_score VARCHAR)
### Response:
### Response:
SELECT MAX(round) FROM table_28211103_1 WHERE hawthorn_score = "17.7.109"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 wins when percent is more than 0.4 and teams is chargers~?
### Context:
CREATE TABLE table_name_53 (wins INTEGER, percent VARCHAR, teams VARCHAR)
### Response:
### Response:
SELECT AVG(wins) FROM table_name_53 WHERE percent > 0.4 AND teams = "chargers~"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the score of 1–6 6–1 3–6 achieved?
### Context:
CREATE TABLE table_name_12 (date VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_12 WHERE score = "1–6 6–1 3–6"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average year for Maserati Straight-4 Engines?
### Context:
CREATE TABLE table_name_86 (year INTEGER, engine VARCHAR)
### Response:
### Response:
SELECT AVG(year) FROM table_name_86 WHERE engine = "maserati straight-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 incumbent for alabama 6
### Context:
CREATE TABLE table_19753079_4 (incumbent VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT incumbent FROM table_19753079_4 WHERE district = "Alabama 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:
Which game has an opponent of Phoenix Coyotes and was before Dec 9?
### Context:
CREATE TABLE table_name_96 (game INTEGER, opponent VARCHAR, december VARCHAR)
### Response:
### Response:
SELECT AVG(game) FROM table_name_96 WHERE opponent = "phoenix coyotes" AND december < 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:
Name the total number of first elected for dranesville
### Context:
CREATE TABLE table_name_20 (first_elected VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT COUNT(first_elected) FROM table_name_20 WHERE district = "dranesville"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 incumbent William Vandever's results?
### Context:
CREATE TABLE table_name_81 (result VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_81 WHERE incumbent = "william vandever"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the Catalog FT 507?
### Context:
CREATE TABLE table_name_93 (date VARCHAR, catalog VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_93 WHERE catalog = "ft 507"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Baronies when the area (in acres) is 276?
### Context:
CREATE TABLE table_30121082_1 (barony VARCHAR, area__acres__ VARCHAR)
### Response:
### Response:
SELECT barony FROM table_30121082_1 WHERE area__acres__ = 276</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stores whose number products is more than the average number of products.
### Context:
CREATE TABLE shop (name VARCHAR, number_products INTEGER)
### Response:
### Response:
SELECT name FROM shop WHERE number_products > (SELECT AVG(number_products) FROM shop)</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 does the Home team of Richmond have?
### Context:
CREATE TABLE table_name_32 (date VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_32 WHERE home_team = "richmond"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
List the teams of the players with the top 5 largest ages.
### Context:
CREATE TABLE player (Team VARCHAR, Age VARCHAR)
### Response:
### Response:
SELECT Team FROM player ORDER BY Age DESC LIMIT 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 Performer 2 has an Episode of 5?
### Context:
CREATE TABLE table_name_26 (performer_2 VARCHAR, episode VARCHAR)
### Response:
### Response:
SELECT performer_2 FROM table_name_26 WHERE episode = 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:
If the number of floors is 70, what is the height?
### Context:
CREATE TABLE table_27067379_1 (height VARCHAR, number_of_floors VARCHAR)
### Response:
### Response:
SELECT height FROM table_27067379_1 WHERE number_of_floors = 70</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Where is scott starr from?
### Context:
CREATE TABLE table_11677691_6 (hometown VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT hometown FROM table_11677691_6 WHERE player = "Scott Starr"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at Junction Oval?
### Context:
CREATE TABLE table_name_63 (away_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_63 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:
What was the score when Stefan Edberg won?
### Context:
CREATE TABLE table_name_64 (score VARCHAR, winner VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_64 WHERE winner = "stefan edberg"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 visitor on december 15, 1976?
### Context:
CREATE TABLE table_name_94 (visitor VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT visitor FROM table_name_94 WHERE date = "december 15, 1976"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the indoor track status for the school that has yes for tennis and no for golf?
### Context:
CREATE TABLE table_name_91 (indoor_track VARCHAR, tennis VARCHAR, golf VARCHAR)
### Response:
### Response:
SELECT indoor_track FROM table_name_91 WHERE tennis = "yes" AND golf = "no"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the least episode for november 29, 1985
### Context:
CREATE TABLE table_20967430_2 (ep INTEGER, original_air_date VARCHAR)
### Response:
### Response:
SELECT MIN(ep) FROM table_20967430_2 WHERE original_air_date = "November 29, 1985"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Tom Kite's Place?
### Context:
CREATE TABLE table_name_78 (place VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_78 WHERE player = "tom kite"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 German Pluperfect when the Macedonian is беше слушнал/-а/-о?
### Context:
CREATE TABLE table_name_85 (german VARCHAR, macedonian VARCHAR)
### Response:
### Response:
SELECT german FROM table_name_85 WHERE macedonian = "беше слушнал/-а/-о"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Poor Law Unions when the area (in acres) is 142?
### Context:
CREATE TABLE table_30121082_1 (poor_law_union VARCHAR, area__acres__ VARCHAR)
### Response:
### Response:
SELECT poor_law_union FROM table_30121082_1 WHERE area__acres__ = 142</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Dutch word has the same meaning as the Greek word πλέω (pléō)?
### Context:
CREATE TABLE table_name_1 (dutch VARCHAR, greek VARCHAR)
### Response:
### Response:
SELECT dutch FROM table_name_1 WHERE greek = "πλέω (pléō)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Tyre for 19 January?
### Context:
CREATE TABLE table_name_95 (tyre VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT tyre FROM table_name_95 WHERE date = "19 january"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 SiO 2, when K 2 O is greater than 0.16, when Fe 2 O 3 is greater than 0.16, and when Na 2 O is less than 7.53?
### Context:
CREATE TABLE table_name_50 (sio_2 INTEGER, na_2_o VARCHAR, k_2_o VARCHAR, fe_2_o_3 VARCHAR)
### Response:
### Response:
SELECT MAX(sio_2) FROM table_name_50 WHERE k_2_o > 0.16 AND fe_2_o_3 > 0.16 AND na_2_o < 7.53</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the date of the game that had a score of 3 – 1?
### Context:
CREATE TABLE table_name_60 (date VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_60 WHERE score = "3 – 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 person who has exactly one friend.
### Context:
CREATE TABLE PersonFriend (name VARCHAR)
### Response:
### Response:
SELECT name FROM PersonFriend GROUP BY name HAVING COUNT(*) = 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 the attendance on location when the record was 3–16?
### Context:
CREATE TABLE table_name_86 (location_attendance VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT location_attendance FROM table_name_86 WHERE record = "3–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:
Find the email and phone number of the customers who have never filed a complaint before.
### Context:
CREATE TABLE complaints (email_address VARCHAR, phone_number VARCHAR, customer_id VARCHAR); CREATE TABLE customers (email_address VARCHAR, phone_number VARCHAR, customer_id VARCHAR)
### Response:
### Response:
SELECT email_address, phone_number FROM customers WHERE NOT customer_id IN (SELECT customer_id FROM complaints)</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 movinig to alianza atlético?
### Context:
CREATE TABLE table_name_28 (type VARCHAR, moving_to VARCHAR)
### Response:
### Response:
SELECT type FROM table_name_28 WHERE moving_to = "alianza atlético"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 providers use exchange server?
### Context:
CREATE TABLE table_14465871_2 (provider VARCHAR, application VARCHAR)
### Response:
### Response:
SELECT provider FROM table_14465871_2 WHERE application = "Exchange Server"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
WHAT IS THE WEEK WITH AN ATTENDANCE OF 75,555?
### Context:
CREATE TABLE table_name_23 (week INTEGER, attendance VARCHAR)
### Response:
### Response:
SELECT SUM(week) FROM table_name_23 WHERE attendance = "75,555"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tour when jing junhong li jiawei played womens doubles?
### Context:
CREATE TABLE table_28138035_20 (year_location VARCHAR, womens_doubles VARCHAR)
### Response:
### Response:
SELECT year_location FROM table_28138035_20 WHERE womens_doubles = "Jing Junhong Li Jiawei"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Draws, when Wins is "Did Not Qualify"?
### Context:
CREATE TABLE table_name_80 (draws VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT draws FROM table_name_80 WHERE wins = "did not qualify"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 times is regular season 1063 and playoffs more than 119?
### Context:
CREATE TABLE table_name_10 (total VARCHAR, regular_season VARCHAR, playoffs VARCHAR)
### Response:
### Response:
SELECT COUNT(total) FROM table_name_10 WHERE regular_season = 1063 AND playoffs > 119</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 number of laps when the Time/Retired is differential?
### Context:
CREATE TABLE table_name_76 (laps INTEGER, time_retired VARCHAR)
### Response:
### Response:
SELECT MAX(laps) FROM table_name_76 WHERE time_retired = "differential"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 started where car number is 55
### Context:
CREATE TABLE table_1688640_4 (year_started INTEGER, car__number VARCHAR)
### Response:
### Response:
SELECT MAX(year_started) FROM table_1688640_4 WHERE car__number = "55"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the 1993 finish for the event that had a 1990 of QF and 1995 of 2R?
### Context:
CREATE TABLE table_name_44 (Id VARCHAR)
### Response:
### Response:
SELECT 1993 FROM table_name_44 WHERE 1990 = "qf" AND 1995 = "2r"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Country of the Player with a To par of –5?
### Context:
CREATE TABLE table_name_46 (country VARCHAR, to_par VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_46 WHERE to_par = "–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 North Melbourne's home opponent?
### Context:
CREATE TABLE table_name_26 (home_team VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_26 WHERE away_team = "north 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 Country's team is Rajasthan Royals at the 2008 Indian Premier League?
### Context:
CREATE TABLE table_name_87 (country VARCHAR, domestic_tournament VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_87 WHERE domestic_tournament = "2008 indian premier league" AND team = "rajasthan royals"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 a Position of back, later than 1964, and a Test debut of 1st rl test v new zealand?
### Context:
CREATE TABLE table_name_98 (date VARCHAR, test_debut VARCHAR, position VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_98 WHERE position = "back" AND year > 1964 AND test_debut = "1st rl test v new zealand"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the Record of the game with a Score of 118–105?
### Context:
CREATE TABLE table_name_10 (record VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_10 WHERE score = "118–105"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What date was the 6d introduced?
### Context:
CREATE TABLE table_1682865_1 (introduction VARCHAR, numeral VARCHAR)
### Response:
### Response:
SELECT introduction FROM table_1682865_1 WHERE numeral = "6d"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 low silver total for switzerland with over 0 golds?
### Context:
CREATE TABLE table_name_30 (silver INTEGER, gold VARCHAR, nation VARCHAR)
### Response:
### Response:
SELECT MIN(silver) FROM table_name_30 WHERE gold > 0 AND nation = "switzerland"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points have a Year larger than 1966, and Wins larger than 1?
### Context:
CREATE TABLE table_name_78 (points INTEGER, year VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT AVG(points) FROM table_name_78 WHERE year > 1966 AND wins > 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:
Name how other lyers say enga ullale
### Context:
CREATE TABLE table_name_22 (how_other_iyers_say_it VARCHAR, how_ashtagrama_iyers_say_it VARCHAR)
### Response:
### Response:
SELECT how_other_iyers_say_it FROM table_name_22 WHERE how_ashtagrama_iyers_say_it = "enga ullale"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 time with a lane larger than 6, a nationality of canada, and the react smaller than 0.151?
### Context:
CREATE TABLE table_name_70 (time INTEGER, react VARCHAR, lane VARCHAR, nationality VARCHAR)
### Response:
### Response:
SELECT SUM(time) FROM table_name_70 WHERE lane > 6 AND nationality = "canada" AND react < 0.151</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What arena was season 6 played at?
### Context:
CREATE TABLE table_14015965_1 (arena__capacity_ VARCHAR, previous_season VARCHAR)
### Response:
### Response:
SELECT arena__capacity_ FROM table_14015965_1 WHERE previous_season = "6"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is 2007, when 2003 is "85"?
### Context:
CREATE TABLE table_name_37 (Id VARCHAR)
### Response:
### Response:
SELECT 2007 FROM table_name_37 WHERE 2003 = "85"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the date for l 92–103 (ot)
### Context:
CREATE TABLE table_17322817_6 (date VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_17322817_6 WHERE score = "L 92–103 (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:
Which game had a record of 45-16?
### Context:
CREATE TABLE table_name_12 (game INTEGER, record VARCHAR)
### Response:
### Response:
SELECT AVG(game) FROM table_name_12 WHERE record = "45-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:
What was the record when Canty (5) was the high assists?
### Context:
CREATE TABLE table_17118657_7 (record VARCHAR, high_assists VARCHAR)
### Response:
### Response:
SELECT record FROM table_17118657_7 WHERE high_assists = "Canty (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 tries were for the 7 lost?
### Context:
CREATE TABLE table_name_87 (tries_for VARCHAR, lost VARCHAR)
### Response:
### Response:
SELECT tries_for FROM table_name_87 WHERE lost = "7"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the highest rank of a building erected in 1976 with fewer than 21 floors?
### Context:
CREATE TABLE table_name_60 (rank INTEGER, year VARCHAR, floors VARCHAR)
### Response:
### Response:
SELECT MAX(rank) FROM table_name_60 WHERE year = 1976 AND floors < 21</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which team has 7757 as the average?
### Context:
CREATE TABLE table_21824695_8 (team VARCHAR, average VARCHAR)
### Response:
### Response:
SELECT team FROM table_21824695_8 WHERE average = 7757</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Time of the Athlete with a Reaction time of 0.164?
### Context:
CREATE TABLE table_name_48 (time INTEGER, reaction_time VARCHAR)
### Response:
### Response:
SELECT SUM(time) FROM table_name_48 WHERE reaction_time = 0.164</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 stations with a line that is u 6?
### Context:
CREATE TABLE table_name_86 (stations INTEGER, line VARCHAR)
### Response:
### Response:
SELECT SUM(stations) FROM table_name_86 WHERE line = "u 6"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the home team score for the game with the away team Carlton?
### Context:
CREATE TABLE table_name_25 (home_team VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_25 WHERE away_team = "carlton"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Score, when Date is "May 11"?
### Context:
CREATE TABLE table_name_97 (score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_97 WHERE date = "may 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 was the date of the game in which Holt (4-4) took the loss?
### Context:
CREATE TABLE table_name_36 (date VARCHAR, loss VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_36 WHERE loss = "holt (4-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 title of series episode 11-05's segment d?
### Context:
CREATE TABLE table_15187735_11 (segment_d VARCHAR, series_ep VARCHAR)
### Response:
### Response:
SELECT segment_d FROM table_15187735_11 WHERE series_ep = "11-05"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 final position for the season 2008?
### Context:
CREATE TABLE table_name_76 (final_position VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT final_position FROM table_name_76 WHERE season = "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 the grid for dirk heidolf?
### Context:
CREATE TABLE table_name_25 (grid INTEGER, rider VARCHAR)
### Response:
### Response:
SELECT SUM(grid) FROM table_name_25 WHERE rider = "dirk heidolf"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 titles of the episodes which had 1.10 million U.S. viewers?
### Context:
CREATE TABLE table_23399481_4 (title VARCHAR, us_viewers__in_millions_ VARCHAR)
### Response:
### Response:
SELECT title FROM table_23399481_4 WHERE us_viewers__in_millions_ = "1.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 was the score of the game against the Royals when the record was 24–52?
### Context:
CREATE TABLE table_name_75 (score VARCHAR, opponent VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_75 WHERE opponent = "royals" AND record = "24–52"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 partner is alexandra fusai?
### Context:
CREATE TABLE table_name_67 (score VARCHAR, partner VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_67 WHERE partner = "alexandra fusai"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rush song was played for Mike Fincke?
### Context:
CREATE TABLE table_name_4 (song VARCHAR, played_for VARCHAR, artist VARCHAR)
### Response:
### Response:
SELECT song FROM table_name_4 WHERE played_for = "mike fincke" AND artist = "rush"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.