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 Club has a League goals of 21?
### Context:
CREATE TABLE table_name_66 (club VARCHAR, league_goals VARCHAR)
### Response:
### Response:
SELECT club FROM table_name_66 WHERE league_goals = "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:
On what date did the opponent in the Toshiaki Sakai final play on a grass surface?
### Context:
CREATE TABLE table_name_99 (date VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_99 WHERE opponent_in_the_final = "toshiaki sakai" AND surface = "grass"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the highest drawn has a played less than 10?
### Context:
CREATE TABLE table_name_96 (drawn INTEGER, played INTEGER)
### Response:
### Response:
SELECT MAX(drawn) FROM table_name_96 WHERE played < 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:
Which team has 48 rebounds?
### Context:
CREATE TABLE table_name_62 (team VARCHAR, rebounds VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_62 WHERE rebounds = 48</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 NHL team that has a team (League) of Mississauga Icedogs (ohl)?
### Context:
CREATE TABLE table_name_59 (nhl_team VARCHAR, college_junior_club_team__league_ VARCHAR)
### Response:
### Response:
SELECT nhl_team FROM table_name_59 WHERE college_junior_club_team__league_ = "mississauga icedogs (ohl)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 rank for players with under 26 events and less than 2 wins?
### Context:
CREATE TABLE table_name_74 (rank INTEGER, events VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT AVG(rank) FROM table_name_74 WHERE events < 26 AND wins < 2</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
During Game 2, which position did Andrew Farrar play?
### Context:
CREATE TABLE table_name_20 (position VARCHAR, game_2 VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_20 WHERE game_2 = "andrew farrar"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 against were there were less than 3 byes?
### Context:
CREATE TABLE table_name_93 (against INTEGER, byes INTEGER)
### Response:
### Response:
SELECT AVG(against) FROM table_name_93 WHERE byes < 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:
When the share of votes is 33.9%, what's the highest total amount of seats?
### Context:
CREATE TABLE table_name_4 (total_seats INTEGER, share_of_votes VARCHAR)
### Response:
### Response:
SELECT MAX(total_seats) FROM table_name_4 WHERE share_of_votes = "33.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:
In 1939, what was the finish?
### Context:
CREATE TABLE table_name_89 (finish VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT finish FROM table_name_89 WHERE year = "1939"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Omar Burleson was the incumbent in what district?
### Context:
CREATE TABLE table_1342013_42 (district VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT district FROM table_1342013_42 WHERE incumbent = "Omar Burleson"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 not usable satellited when there are 0 retired, and the launch failures are less than 1?
### Context:
CREATE TABLE table_name_46 (not_usable INTEGER, retired VARCHAR, launch_failures VARCHAR)
### Response:
### Response:
SELECT AVG(not_usable) FROM table_name_46 WHERE retired = 0 AND launch_failures < 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 is the average round for martin havlat?
### Context:
CREATE TABLE table_name_38 (round INTEGER, player VARCHAR)
### Response:
### Response:
SELECT AVG(round) FROM table_name_38 WHERE player = "martin havlat"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Draw for the artist(s), whose language is Swedish, and scored less than 10 points?
### Context:
CREATE TABLE table_name_99 (draw INTEGER, language VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT AVG(draw) FROM table_name_99 WHERE language = "swedish" AND 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 is the highest frequency from uncionfeypoder.com?
### Context:
CREATE TABLE table_name_79 (frequency INTEGER, website VARCHAR)
### Response:
### Response:
SELECT MAX(frequency) FROM table_name_79 WHERE website = "uncionfeypoder.com"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 days did Hawthorn play as a home team?
### Context:
CREATE TABLE table_16388230_1 (date VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT COUNT(date) FROM table_16388230_1 WHERE home_team = "Hawthorn"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which department has a small of 11370?
### Context:
CREATE TABLE table_21249915_1 (department VARCHAR, small__100ha_ VARCHAR)
### Response:
### Response:
SELECT department FROM table_21249915_1 WHERE small__100ha_ = 11370</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is listed for the 2005 that has a 2012 of 4.2%?
### Context:
CREATE TABLE table_name_35 (Id VARCHAR)
### Response:
### Response:
SELECT 2005 FROM table_name_35 WHERE 2012 = "4.2%"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Where are the Alexandria enrollment locations?
### Context:
CREATE TABLE table_2076608_3 (enrollment VARCHAR, location_s_ VARCHAR)
### Response:
### Response:
SELECT enrollment FROM table_2076608_3 WHERE location_s_ = "Alexandria"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament for 2009 2r
### Context:
CREATE TABLE table_name_32 (tournament VARCHAR)
### Response:
### Response:
SELECT tournament FROM table_name_32 WHERE 2009 = "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:
Which Location has a Game greater than 20 and a Date of Wed. Dec. 26?
### Context:
CREATE TABLE table_name_79 (location VARCHAR, game VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_79 WHERE game > 20 AND date = "wed. dec. 26"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What party is the member that has an electorate of Lindsay?
### Context:
CREATE TABLE table_name_34 (party VARCHAR, electorate VARCHAR)
### Response:
### Response:
SELECT party FROM table_name_34 WHERE electorate = "lindsay"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the fewest gold medals won by Greece?
### Context:
CREATE TABLE table_name_92 (gold INTEGER, nation VARCHAR)
### Response:
### Response:
SELECT MIN(gold) FROM table_name_92 WHERE nation = "greece"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What episode in the series had 5.24 million viewers?
### Context:
CREATE TABLE table_27846651_1 (series__number VARCHAR, viewers__millions_ VARCHAR)
### Response:
### Response:
SELECT series__number FROM table_27846651_1 WHERE viewers__millions_ = "5.24"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many schools are in Bloomington, IN?
### Context:
CREATE TABLE table_10082596_1 (founded VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT COUNT(founded) FROM table_10082596_1 WHERE location = "Bloomington, IN"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
For the Persian title گبه, What was the film title used for the nomination?
### Context:
CREATE TABLE table_19625976_1 (film_title_used_in_nomination VARCHAR, persian_title VARCHAR)
### Response:
### Response:
SELECT film_title_used_in_nomination FROM table_19625976_1 WHERE persian_title = "گبه"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the airdate of k0120?
### Context:
CREATE TABLE table_2618113_1 (original_air_date VARCHAR, production_code VARCHAR)
### Response:
### Response:
SELECT original_air_date FROM table_2618113_1 WHERE production_code = "K0120"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 nationality of the person who played small forward?
### Context:
CREATE TABLE table_name_82 (nationality VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_82 WHERE position = "small forward"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What country was the player from with a score of 70-79-74-68=291?
### Context:
CREATE TABLE table_name_74 (country VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_74 WHERE score = 70 - 79 - 74 - 68 = 291</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 quantity made of the e-22 class, which has a quantity preserved of 0?
### Context:
CREATE TABLE table_name_36 (quantity_made VARCHAR, quantity_preserved VARCHAR, class VARCHAR)
### Response:
### Response:
SELECT quantity_made FROM table_name_36 WHERE quantity_preserved = "0" AND class = "e-22"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the rank of BBC 2 in 2005?
### Context:
CREATE TABLE table_name_53 (bbc_two_rank VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT bbc_two_rank FROM table_name_53 WHERE year = "2005"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total prominence in ft of the peak of kangchenjunga central, which has a prominence in m less than 32?
### Context:
CREATE TABLE table_name_67 (prominence__ft_ VARCHAR, name_of_peak VARCHAR, prominence__m_ VARCHAR)
### Response:
### Response:
SELECT COUNT(prominence__ft_) FROM table_name_67 WHERE name_of_peak = "kangchenjunga central" AND prominence__m_ < 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:
Name the fleet numbers for diagram of 186 and lot number of 30798
### Context:
CREATE TABLE table_name_10 (fleet_numbers VARCHAR, diagram VARCHAR, lot_no VARCHAR)
### Response:
### Response:
SELECT fleet_numbers FROM table_name_10 WHERE diagram = 186 AND lot_no = 30798</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 losses for teams with under 16 points and under 3 draws?
### Context:
CREATE TABLE table_name_8 (losses INTEGER, points VARCHAR, draws VARCHAR)
### Response:
### Response:
SELECT AVG(losses) FROM table_name_8 WHERE points < 16 AND draws < 3</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the pick number of the player from New Mexico?
### Context:
CREATE TABLE table_10812938_5 (pick__number INTEGER, college VARCHAR)
### Response:
### Response:
SELECT MAX(pick__number) FROM table_10812938_5 WHERE college = "New Mexico"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 points if the goals against were 222?
### Context:
CREATE TABLE table_name_24 (points VARCHAR, goals_against VARCHAR)
### Response:
### Response:
SELECT points FROM table_name_24 WHERE goals_against = "222"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
how many times is the building type residential and the locale yashodham?
### Context:
CREATE TABLE table_name_22 (sr_no VARCHAR, building_type VARCHAR, locale VARCHAR)
### Response:
### Response:
SELECT COUNT(sr_no) FROM table_name_22 WHERE building_type = "residential" AND locale = "yashodham"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What opponent was playing against the Golden Bears when they scored 3 points?
### Context:
CREATE TABLE table_21035326_1 (opponent VARCHAR, golden_bears_points VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_21035326_1 WHERE golden_bears_points = 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 are the results in the county with Peter Deutsch as a candidate?
### Context:
CREATE TABLE table_1341453_11 (results VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT results FROM table_1341453_11 WHERE incumbent = "Peter Deutsch"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 fewer than 32 against and the opposing team of Australia?
### Context:
CREATE TABLE table_name_84 (date VARCHAR, against VARCHAR, opposing_teams VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_84 WHERE against < 32 AND opposing_teams = "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:
What stadium was the game played at when the result was hunter mariners def. sheffield eagles?
### Context:
CREATE TABLE table_name_43 (stadium VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT stadium FROM table_name_43 WHERE result = "hunter mariners def. sheffield eagles"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
WHAT IS THE ATTENDANCE WITH A READING AWAY TEAM?
### Context:
CREATE TABLE table_name_40 (attendance VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT attendance FROM table_name_40 WHERE away_team = "reading"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played in 1992?
### Context:
CREATE TABLE table_name_25 (player VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_25 WHERE year = 1992</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Tournament, when the Opponent is Patricia Mayr-Achleitner?
### Context:
CREATE TABLE table_name_83 (tournament VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT tournament FROM table_name_83 WHERE opponent = "patricia mayr-achleitner"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Draw for the team tramwajarz łódź?
### Context:
CREATE TABLE table_name_94 (draw VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT draw FROM table_name_94 WHERE team = "tramwajarz łódź"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wrote the episode having joe daniello as director with production code 6ajn05?
### Context:
CREATE TABLE table_26409328_1 (written_by VARCHAR, directed_by VARCHAR, production_code VARCHAR)
### Response:
### Response:
SELECT written_by FROM table_26409328_1 WHERE directed_by = "Joe Daniello" AND production_code = "6AJN05"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 drivers driving toyota corolla
### Context:
CREATE TABLE table_20090682_4 (driver VARCHAR, vehicle VARCHAR)
### Response:
### Response:
SELECT COUNT(driver) FROM table_20090682_4 WHERE vehicle = "Toyota Corolla"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the wins are 46, what is the win%?
### Context:
CREATE TABLE table_name_9 (win_percentage VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT win_percentage FROM table_name_9 WHERE wins = "46"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the points for of Club of penallta rfc?
### Context:
CREATE TABLE table_name_17 (points_for VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT points_for FROM table_name_17 WHERE club = "penallta rfc"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 vote percentage for the couple gary and maria?
### Context:
CREATE TABLE table_26375386_20 (vote_percentage VARCHAR, couple VARCHAR)
### Response:
### Response:
SELECT vote_percentage FROM table_26375386_20 WHERE couple = "Gary and Maria"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player has a cap larger than 12 and Clubs of Toulouse?
### Context:
CREATE TABLE table_name_74 (player VARCHAR, caps VARCHAR, club_province VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_74 WHERE caps > 12 AND club_province = "toulouse"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 playing when the opponent was Real España, in the 2012–13 season?
### Context:
CREATE TABLE table_name_76 (playing_for VARCHAR, opponent VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT playing_for FROM table_name_76 WHERE opponent = "real españa" AND season = "2012–13"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the number of tries for the player who is larger than 16?
### Context:
CREATE TABLE table_name_81 (tries INTEGER, played INTEGER)
### Response:
### Response:
SELECT SUM(tries) FROM table_name_81 WHERE played > 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 results are dated december 19?
### Context:
CREATE TABLE table_name_49 (results¹ VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT results¹ FROM table_name_49 WHERE date = "december 19"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many colors are there?
### Context:
CREATE TABLE ref_colors (Id VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM ref_colors</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Losses have a South West DFL of branxholme-wallacedale, and less than 2 Byes?
### Context:
CREATE TABLE table_name_21 (losses INTEGER, south_west_dfl VARCHAR, byes VARCHAR)
### Response:
### Response:
SELECT AVG(losses) FROM table_name_21 WHERE south_west_dfl = "branxholme-wallacedale" AND byes < 2</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is every BSE code for a free float of 0.2726?
### Context:
CREATE TABLE table_20667854_1 (bse_code VARCHAR, free_float VARCHAR)
### Response:
### Response:
SELECT bse_code FROM table_20667854_1 WHERE free_float = "0.2726"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Parishes in Merrimack which has 4 Cemeteries?
### Context:
CREATE TABLE table_name_62 (parishes INTEGER, pastoral_region VARCHAR, cemeteries VARCHAR)
### Response:
### Response:
SELECT MIN(parishes) FROM table_name_62 WHERE pastoral_region = "merrimack" AND cemeteries < 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 lowest number of participants in 2013 when there were more than 5 participants in 2010, less than 4 participants in 2012 and country was germany?
### Context:
CREATE TABLE table_name_34 (country VARCHAR)
### Response:
### Response:
SELECT MIN(2013) FROM table_name_34 WHERE 2010 > 5 AND country = "germany" AND 2012 < 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 number of celebrity for athlete
### Context:
CREATE TABLE table_14345690_4 (celebrity VARCHAR, famous_for VARCHAR)
### Response:
### Response:
SELECT COUNT(celebrity) FROM table_14345690_4 WHERE famous_for = "Athlete"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wrote the story viewed by 0.53 million viewers?
### Context:
CREATE TABLE table_26914076_3 (story_by VARCHAR, us_viewers__millions_ VARCHAR)
### Response:
### Response:
SELECT story_by FROM table_26914076_3 WHERE us_viewers__millions_ = "0.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:
How fast is the coaster that is 163 feet tall
### Context:
CREATE TABLE table_2665085_1 (speed__mph_ VARCHAR, height__ft_ VARCHAR)
### Response:
### Response:
SELECT speed__mph_ FROM table_2665085_1 WHERE height__ft_ = 163</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Artist has an English translation of all this is music?
### Context:
CREATE TABLE table_name_92 (artist VARCHAR, english_translation VARCHAR)
### Response:
### Response:
SELECT artist FROM table_name_92 WHERE english_translation = "all this is music"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 completed in the race with time of 3:03:50?
### Context:
CREATE TABLE table_2175858_1 (laps VARCHAR, race_time VARCHAR)
### Response:
### Response:
SELECT laps FROM table_2175858_1 WHERE race_time = "3:03:50"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Winner of the Event in Nuevo Vallarta?
### Context:
CREATE TABLE table_name_63 (winner VARCHAR, city VARCHAR)
### Response:
### Response:
SELECT winner FROM table_name_63 WHERE city = "nuevo vallarta"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Find the name of the dorm with the largest capacity.
### Context:
CREATE TABLE dorm (dorm_name VARCHAR, student_capacity VARCHAR)
### Response:
### Response:
SELECT dorm_name FROM dorm ORDER BY student_capacity DESC LIMIT 1</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What ranking is the structure with 01.0 87 floors?
### Context:
CREATE TABLE table_name_51 (rank VARCHAR, floors VARCHAR)
### Response:
### Response:
SELECT rank FROM table_name_51 WHERE floors = "01.0 87"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player is in the position of Guard/Forward?
### Context:
CREATE TABLE table_name_67 (name VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_67 WHERE position = "guard/forward"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when the citation is honor and the author is kadir nelson?
### Context:
CREATE TABLE table_name_37 (year INTEGER, citation VARCHAR, author VARCHAR)
### Response:
### Response:
SELECT SUM(year) FROM table_name_37 WHERE citation = "honor" AND author = "kadir nelson"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What player is on the Montreal Alouettes CFl team?
### Context:
CREATE TABLE table_10812938_5 (player VARCHAR, cfl_team VARCHAR)
### Response:
### Response:
SELECT player FROM table_10812938_5 WHERE cfl_team = "Montreal Alouettes"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 argentine grand prix?
### Context:
CREATE TABLE table_name_42 (location VARCHAR, race VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_42 WHERE race = "argentine grand prix"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many games did they play on january 11?
### Context:
CREATE TABLE table_27882867_6 (location_attendance VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT COUNT(location_attendance) FROM table_27882867_6 WHERE date = "January 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 race is on aug 4 with ron fellows?
### Context:
CREATE TABLE table_name_24 (race_title VARCHAR, drivers VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT race_title FROM table_name_24 WHERE drivers = "ron fellows" AND date = "aug 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 district for matthew clay
### Context:
CREATE TABLE table_2668387_18 (district VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT district FROM table_2668387_18 WHERE incumbent = "Matthew Clay"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
For numbers of 2600-2825 (223 buses), what is the length?
### Context:
CREATE TABLE table_name_38 (length VARCHAR, numbers VARCHAR)
### Response:
### Response:
SELECT length FROM table_name_38 WHERE numbers = "2600-2825 (223 buses)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week for date of bye
### Context:
CREATE TABLE table_name_29 (week VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT week FROM table_name_29 WHERE date = "bye"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What amount of Gold does Russia have and have a rank larger than 1?
### Context:
CREATE TABLE table_name_8 (gold INTEGER, nation VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT SUM(gold) FROM table_name_8 WHERE nation = "russia" AND rank > 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's the number of bronze when they are ranked 29, had a total more than 3 and less than 2 golds?
### Context:
CREATE TABLE table_name_71 (bronze INTEGER, total VARCHAR, gold VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT MIN(bronze) FROM table_name_71 WHERE gold < 2 AND rank = "29" AND total > 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 team played in game 39?
### Context:
CREATE TABLE table_name_79 (team VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_79 WHERE game = 39</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the colloquial translation of (s)he will sing?
### Context:
CREATE TABLE table_23710609_2 (romanian__colloquial_ VARCHAR, english VARCHAR)
### Response:
### Response:
SELECT romanian__colloquial_ FROM table_23710609_2 WHERE english = "(s)he will sing"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 which date was the class 157?
### Context:
CREATE TABLE table_name_40 (date VARCHAR, class VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_40 WHERE class = 157</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the grid 1 engine have?
### Context:
CREATE TABLE table_name_96 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT SUM(laps) FROM table_name_96 WHERE time_retired = "engine" AND grid = 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:
Who was the home team at Brunswick Street Oval?
### Context:
CREATE TABLE table_name_65 (home_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_65 WHERE venue = "brunswick street oval"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which incumbent was first elected in 1984?
### Context:
CREATE TABLE table_1341453_44 (incumbent VARCHAR, first_elected VARCHAR)
### Response:
### Response:
SELECT incumbent FROM table_1341453_44 WHERE first_elected = 1984</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What did the away team score in the game against Richmond?
### Context:
CREATE TABLE table_name_69 (away_team VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT away_team AS score FROM table_name_69 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:
Who won in 1979 with +8 to par?
### Context:
CREATE TABLE table_name_46 (player VARCHAR, to_par VARCHAR, year_s__won VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_46 WHERE to_par = "+8" AND year_s__won = "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 team played on November 17?
### Context:
CREATE TABLE table_name_17 (team VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_17 WHERE date = "november 17"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for are there when 11 were won?
### Context:
CREATE TABLE table_17625749_3 (tries_for VARCHAR, won VARCHAR)
### Response:
### Response:
SELECT tries_for FROM table_17625749_3 WHERE won = "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's the callsign in Tacloban?
### Context:
CREATE TABLE table_name_22 (callsign VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT callsign FROM table_name_22 WHERE location = "tacloban"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 singer part number of the buttonholer whose storage case is a green plastic box?
### Context:
CREATE TABLE table_28652521_1 (singer_part_number VARCHAR, storage_case VARCHAR)
### Response:
### Response:
SELECT singer_part_number FROM table_28652521_1 WHERE storage_case = "green plastic box"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When was the game at the home of the Los Angeles Kings?
### Context:
CREATE TABLE table_name_72 (date VARCHAR, home VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_72 WHERE home = "los angeles kings"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Winner, when Date is "20 August"?
### Context:
CREATE TABLE table_name_50 (winner VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT winner FROM table_name_50 WHERE date = "20 august"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Semimajor axis (AU) has a Companion (in order from star) of g?
### Context:
CREATE TABLE table_name_86 (semimajor_axis___au__ VARCHAR, companion__in_order_from_star_ VARCHAR)
### Response:
### Response:
SELECT semimajor_axis___au__ FROM table_name_86 WHERE companion__in_order_from_star_ = "g"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the lowest lab for Gilera with a grid less than 12?
### Context:
CREATE TABLE table_name_81 (laps INTEGER, manufacturer VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT MIN(laps) FROM table_name_81 WHERE manufacturer = "gilera" AND grid < 12</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the country of the contestant with a swimsuit of 9.46?
### Context:
CREATE TABLE table_name_19 (country VARCHAR, swimsuit VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_19 WHERE swimsuit = 9.46</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Hangul/Japanese of Boys Over Flowers that's drama?
### Context:
CREATE TABLE table_name_80 (hangul___japanese VARCHAR, genre VARCHAR, title VARCHAR)
### Response:
### Response:
SELECT hangul___japanese FROM table_name_80 WHERE genre = "drama" AND title = "boys over flowers"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Hanzi of Hong Kong in 1998?
### Context:
CREATE TABLE table_name_46 (hanzi VARCHAR, origin VARCHAR, launch VARCHAR)
### Response:
### Response:
SELECT hanzi FROM table_name_46 WHERE origin = "hong kong" AND launch = "1998"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which stadium is managed by Kari Martonen?
### Context:
CREATE TABLE table_25129482_1 (stadium VARCHAR, manager VARCHAR)
### Response:
### Response:
SELECT stadium FROM table_25129482_1 WHERE manager = "Kari Martonen"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What position does the player from the Miami University (CCHA) club team play?
### Context:
CREATE TABLE table_name_20 (position VARCHAR, club_team VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_20 WHERE club_team = "miami university (ccha)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winner when the score is 71-62?
### Context:
CREATE TABLE table_name_64 (winner VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT winner FROM table_name_64 WHERE score = "71-62"</s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.