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:
Who were the opponents in the final on 9 January 1994?
### Context:
CREATE TABLE table_name_29 (opponents_in_final VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT opponents_in_final FROM table_name_29 WHERE date = "9 january 1994"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Where did Audette Racing win?
### Context:
CREATE TABLE table_25773116_2 (location VARCHAR, winning_team VARCHAR)
### Response:
### Response:
SELECT location FROM table_25773116_2 WHERE winning_team = "Audette Racing"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lawrence academy at groton established?
### Context:
CREATE TABLE table_2439728_1 (founded INTEGER, school VARCHAR)
### Response:
### Response:
SELECT MIN(founded) FROM table_2439728_1 WHERE school = "Lawrence Academy at Groton"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 lane of the athlete from japan with a time of 4:37.35 and a heat less than 3?
### Context:
CREATE TABLE table_name_78 (lane INTEGER, heat VARCHAR, nationality VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT AVG(lane) FROM table_name_78 WHERE nationality = "japan" AND time = "4:37.35" AND heat < 3</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the source for Zares at 8.6%?
### Context:
CREATE TABLE table_name_12 (source VARCHAR, zares VARCHAR)
### Response:
### Response:
SELECT source FROM table_name_12 WHERE zares = "8.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:
Why did the change happened in Massachusetts (2)?
### Context:
CREATE TABLE table_18563954_3 (reason_for_change VARCHAR, state__class_ VARCHAR)
### Response:
### Response:
SELECT reason_for_change FROM table_18563954_3 WHERE state__class_ = "Massachusetts (2)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many rounds does Colby Robak have with a position of (d)?
### Context:
CREATE TABLE table_name_20 (round VARCHAR, position VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT round FROM table_name_20 WHERE position = "(d)" AND player = "colby robak"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
state the wins of the team with 2 top 10
### Context:
CREATE TABLE table_2012187_1 (wins VARCHAR, top_10 VARCHAR)
### Response:
### Response:
SELECT COUNT(wins) FROM table_2012187_1 WHERE top_10 = 2</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which athlete is from Norway?
### Context:
CREATE TABLE table_name_44 (athlete VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT athlete FROM table_name_44 WHERE country = "norway"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 3rd place when the venue was Pardubice?
### Context:
CREATE TABLE table_name_81 (venue VARCHAR)
### Response:
### Response:
SELECT 3 AS rd_place FROM table_name_81 WHERE venue = "pardubice"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What university did Steve Hoar attend.
### Context:
CREATE TABLE table_18042409_1 (alma_mater VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT alma_mater FROM table_18042409_1 WHERE player = "Steve Hoar"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 general classification with a 13 stage?
### Context:
CREATE TABLE table_name_63 (general_classification VARCHAR, stage VARCHAR)
### Response:
### Response:
SELECT general_classification FROM table_name_63 WHERE stage = "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 schools are accredited by COE?
### Context:
CREATE TABLE table_2064747_1 (location_s_ VARCHAR, accreditation VARCHAR)
### Response:
### Response:
SELECT location_s_ FROM table_2064747_1 WHERE accreditation = "COE"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a round 1 CONMEBOL 1995?
### Context:
CREATE TABLE table_name_28 (team VARCHAR, conmebol_1995 VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_28 WHERE conmebol_1995 = "round 1"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was tied at 15 played?
### Context:
CREATE TABLE table_name_50 (tied VARCHAR, played VARCHAR)
### Response:
### Response:
SELECT tied FROM table_name_50 WHERE played = "15"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the maximum season with byu-usu score being 29–7
### Context:
CREATE TABLE table_13665809_2 (season INTEGER, byu_usu_score VARCHAR)
### Response:
### Response:
SELECT MAX(season) FROM table_13665809_2 WHERE byu_usu_score = "29–7"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who is the away team that goes against Team Zambia?
### Context:
CREATE TABLE table_name_13 (away_team VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_13 WHERE home_team = "zambia"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What date did the home team from Carlton play on?
### Context:
CREATE TABLE table_name_11 (date VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_11 WHERE home_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 was the date with a resulted score of 130-100?
### Context:
CREATE TABLE table_name_16 (date VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_16 WHERE score = "130-100"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tracy mcgrady (8) is leading in assists what is the date?
### Context:
CREATE TABLE table_17288825_6 (date VARCHAR, high_assists VARCHAR)
### Response:
### Response:
SELECT date FROM table_17288825_6 WHERE high_assists = "Tracy McGrady (8)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who is the earliest graduate of the school? List the first name, middle name and last name.
### Context:
CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, date_left VARCHAR)
### Response:
### Response:
SELECT first_name, middle_name, last_name FROM Students ORDER BY date_left 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:
How many regions are affected?
### Context:
CREATE TABLE affected_region (region_id VARCHAR)
### Response:
### Response:
SELECT COUNT(DISTINCT region_id) FROM affected_region</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did kim woodburn enter?
### Context:
CREATE TABLE table_name_92 (entered VARCHAR, celebrity VARCHAR)
### Response:
### Response:
SELECT entered FROM table_name_92 WHERE celebrity = "kim woodburn"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 24th is the final placing how many wins are there?
### Context:
CREATE TABLE table_26815674_1 (wins VARCHAR, final_placing VARCHAR)
### Response:
### Response:
SELECT COUNT(wins) FROM table_26815674_1 WHERE final_placing = "24th"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Give me the minimum number of people in 1991 with 92.5% of Slovenes in 1991.
### Context:
CREATE TABLE table_10798421_1 (number_of_people_1991 INTEGER, percent_of_slovenes_1991 VARCHAR)
### Response:
### Response:
SELECT MIN(number_of_people_1991) FROM table_10798421_1 WHERE percent_of_slovenes_1991 = "92.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 final score had a surface of hard (i) on October 22, 2000?
### Context:
CREATE TABLE table_name_47 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score_in_the_final FROM table_name_47 WHERE surface = "hard (i)" AND date = "october 22, 2000"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Blanco Encalada's main artillery?
### Context:
CREATE TABLE table_23614702_1 (main_artillery VARCHAR, warship VARCHAR)
### Response:
### Response:
SELECT main_artillery FROM table_23614702_1 WHERE warship = "Blanco Encalada"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 work number of Gowrie after 1875?
### Context:
CREATE TABLE table_name_45 (works_number INTEGER, date VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT SUM(works_number) FROM table_name_45 WHERE date > 1875 AND name = "gowrie"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 rank of the United States, with fewer than 4 bronze medals?
### Context:
CREATE TABLE table_name_55 (rank INTEGER, nation VARCHAR, bronze VARCHAR)
### Response:
### Response:
SELECT MIN(rank) FROM table_name_55 WHERE nation = "united states" AND bronze < 4</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the location of the competition with a Rank-Final of 1st and a Score-Qualifying under 28.975?
### Context:
CREATE TABLE table_name_95 (location VARCHAR, rank_final VARCHAR, score_qualifying VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_95 WHERE rank_final = "1st" AND score_qualifying < 28.975</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Does the s35 model have bluetooth?
### Context:
CREATE TABLE table_name_31 (bluetooth VARCHAR, model VARCHAR)
### Response:
### Response:
SELECT bluetooth FROM table_name_31 WHERE model = "s35"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points have a Drawn smaller than 0?
### Context:
CREATE TABLE table_name_36 (points VARCHAR, drawn INTEGER)
### Response:
### Response:
SELECT COUNT(points) FROM table_name_36 WHERE drawn < 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 name when Windows is partial?
### Context:
CREATE TABLE table_name_55 (name VARCHAR, windows VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_55 WHERE windows = "partial"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To par has a Money ($) larger than 5,500?
### Context:
CREATE TABLE table_name_48 (to_par VARCHAR, money___$__ INTEGER)
### Response:
### Response:
SELECT to_par FROM table_name_48 WHERE money___$__ > 5 OFFSET 500</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 arkansas play?
### Context:
CREATE TABLE table_name_57 (pos VARCHAR, school_country VARCHAR)
### Response:
### Response:
SELECT pos FROM table_name_57 WHERE school_country = "arkansas"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Type of stratovolcano, and a Name of goat rocks, and a Elevation (m) larger than 2,494 has what highest elevation in feet?
### Context:
CREATE TABLE table_name_40 (elevation__ft_ INTEGER, elevation__m_ VARCHAR, type VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT MAX(elevation__ft_) FROM table_name_40 WHERE type = "stratovolcano" AND name = "goat rocks" AND elevation__m_ > 2 OFFSET 494</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Place of t9, and a Score of 71-71-72=214, and a Player of ernie els?
### Context:
CREATE TABLE table_name_95 (country VARCHAR, player VARCHAR, place VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_95 WHERE place = "t9" AND score = 71 - 71 - 72 = 214 AND player = "ernie els"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 picks does Matt Moran have altogether after round 6?
### Context:
CREATE TABLE table_name_72 (pick VARCHAR, name VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT COUNT(pick) FROM table_name_72 WHERE name = "matt moran" AND round > 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 total number of Wins, when Top-25 is less than 4, and when Top-10 is less than 1?
### Context:
CREATE TABLE table_name_81 (wins VARCHAR, top_25 VARCHAR, top_10 VARCHAR)
### Response:
### Response:
SELECT COUNT(wins) FROM table_name_81 WHERE top_25 < 4 AND top_10 < 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 state had the name of wu for the royal house of ji?
### Context:
CREATE TABLE table_name_21 (state VARCHAR, royal_house VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT state FROM table_name_21 WHERE royal_house = "ji" AND name = "wu"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 drafted was an OG?
### Context:
CREATE TABLE table_26996293_3 (player VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT player FROM table_26996293_3 WHERE position = "OG"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many times did drinking games win the poll?
### Context:
CREATE TABLE table_15781170_3 (_number VARCHAR, poll_winner VARCHAR)
### Response:
### Response:
SELECT COUNT(_number) FROM table_15781170_3 WHERE poll_winner = "Drinking Games"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 season for a bowl game of the 1993 Independence Bowl?
### Context:
CREATE TABLE table_15647838_3 (season INTEGER, bowl_game VARCHAR)
### Response:
### Response:
SELECT MAX(season) FROM table_15647838_3 WHERE bowl_game = "1993 Independence Bowl"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 native american with es mulatto being 0.7%
### Context:
CREATE TABLE table_1333612_1 (native_american VARCHAR, es_mulatto VARCHAR)
### Response:
### Response:
SELECT native_american FROM table_1333612_1 WHERE es_mulatto = "0.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:
How many points did the team that won 5 games make?
### Context:
CREATE TABLE table_28201906_1 (pts_for VARCHAR, won VARCHAR)
### Response:
### Response:
SELECT pts_for FROM table_28201906_1 WHERE won = 5</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the minimum length of the locations where the average climb percentage is exactly 59%?
### Context:
CREATE TABLE table_206361_2 (length__in_m_ INTEGER, average_climb___percentage_ VARCHAR)
### Response:
### Response:
SELECT MIN(length__in_m_) FROM table_206361_2 WHERE average_climb___percentage_ = 59</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What country has a time of 3:19.167?
### Context:
CREATE TABLE table_name_36 (country VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_36 WHERE time = "3:19.167"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Cover Date of the Story Title Spacehikers (Part 2)?
### Context:
CREATE TABLE table_name_59 (cover_date VARCHAR, story_title VARCHAR)
### Response:
### Response:
SELECT cover_date FROM table_name_59 WHERE story_title = "spacehikers (part 2)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the winning score on Aug 21, 1977?
### Context:
CREATE TABLE table_name_92 (winning_score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT winning_score FROM table_name_92 WHERE date = "aug 21, 1977"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 moved to barcelona?
### Context:
CREATE TABLE table_name_61 (name VARCHAR, moving_to VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_61 WHERE moving_to = "barcelona"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the largest byes with lost games of 4 and Ballarat FL of Melton and the against less than 1819?
### Context:
CREATE TABLE table_name_3 (byes INTEGER, against VARCHAR, losses VARCHAR, ballarat_fl VARCHAR)
### Response:
### Response:
SELECT MAX(byes) FROM table_name_3 WHERE losses = 4 AND ballarat_fl = "melton" AND against < 1819</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Date has a Result of 3–4?
### Context:
CREATE TABLE table_name_11 (date VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_11 WHERE result = "3–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 league for 2003
### Context:
CREATE TABLE table_2511876_1 (league VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT league FROM table_2511876_1 WHERE year = 2003</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the winner in the match that had John Higgins as runner-up?
### Context:
CREATE TABLE table_name_63 (winner VARCHAR, runner_up VARCHAR)
### Response:
### Response:
SELECT winner FROM table_name_63 WHERE runner_up = "john higgins"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 theme of the coin from before 2006?
### Context:
CREATE TABLE table_name_91 (theme VARCHAR, year INTEGER)
### Response:
### Response:
SELECT theme FROM table_name_91 WHERE year < 2006</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the sum of total for gold less than 1 and bronze of 3
### Context:
CREATE TABLE table_name_56 (total INTEGER, gold VARCHAR, bronze VARCHAR)
### Response:
### Response:
SELECT SUM(total) FROM table_name_56 WHERE gold < 1 AND bronze = 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:
Which Year is the lowest one that has Wins smaller than 0?
### Context:
CREATE TABLE table_name_47 (year INTEGER, wins INTEGER)
### Response:
### Response:
SELECT MIN(year) FROM table_name_47 WHERE wins < 0</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the population with an area of 1,126.84?
### Context:
CREATE TABLE table_name_44 (population INTEGER, area VARCHAR)
### Response:
### Response:
SELECT MIN(population) FROM table_name_44 WHERE area = 1 OFFSET 126.84</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was from England with a to par of +1?
### Context:
CREATE TABLE table_name_32 (player VARCHAR, to_par VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_32 WHERE to_par = "+1" AND country = "england"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the type of the document named "David CV"?
### Context:
CREATE TABLE documents (document_type_code VARCHAR, document_name VARCHAR)
### Response:
### Response:
SELECT document_type_code FROM documents WHERE document_name = "David CV"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Date has a Score of 4–5, and a Game smaller than 4?
### Context:
CREATE TABLE table_name_33 (date VARCHAR, score VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_33 WHERE score = "4–5" AND game < 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:
WhatTranslation has a Composer of jacques brel, rod mckuen?
### Context:
CREATE TABLE table_name_61 (translation VARCHAR, composer VARCHAR)
### Response:
### Response:
SELECT translation FROM table_name_61 WHERE composer = "jacques brel, rod mckuen"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Tell me the call sign which has a frequency Mhz more than 90.1 and ERP W of 1
### Context:
CREATE TABLE table_name_83 (call_sign VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR)
### Response:
### Response:
SELECT call_sign FROM table_name_83 WHERE frequency_mhz > 90.1 AND erp_w = 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:
For all games with calgary as home, what is the average number of attendees?
### Context:
CREATE TABLE table_name_1 (attendance INTEGER, home VARCHAR)
### Response:
### Response:
SELECT AVG(attendance) FROM table_name_1 WHERE home = "calgary"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 game on June 9?
### Context:
CREATE TABLE table_name_75 (score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_75 WHERE date = "june 9"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Outcome of the Doubles played on Carpet?
### Context:
CREATE TABLE table_name_35 (outcome VARCHAR, surface VARCHAR)
### Response:
### Response:
SELECT outcome FROM table_name_35 WHERE surface = "carpet"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 median family income for riverside
### Context:
CREATE TABLE table_1356555_2 (median_family_income VARCHAR, county VARCHAR)
### Response:
### Response:
SELECT median_family_income FROM table_1356555_2 WHERE county = "Riverside"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 amount of money of players in t8 place with a 68-71-69-72=280 score?
### Context:
CREATE TABLE table_name_53 (money___ INTEGER, place VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT AVG(money___) AS $__ FROM table_name_53 WHERE place = "t8" AND score = 68 - 71 - 69 - 72 = 280</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the specific impulse for the engine with a scenario of sr-71 at mach 3.2 (wet)?
### Context:
CREATE TABLE table_name_19 (specific_impulse__s_ VARCHAR, scenario VARCHAR)
### Response:
### Response:
SELECT specific_impulse__s_ FROM table_name_19 WHERE scenario = "sr-71 at mach 3.2 (wet)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 flag is most widely used among all ships?
### Context:
CREATE TABLE ship (flag VARCHAR)
### Response:
### Response:
SELECT flag FROM ship GROUP BY flag ORDER BY COUNT(*) 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 is the reverse when the £1 fraction is 1/480?
### Context:
CREATE TABLE table_1682865_1 (reverse VARCHAR, £1_fraction VARCHAR)
### Response:
### Response:
SELECT reverse FROM table_1682865_1 WHERE £1_fraction = "1/480"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 with a Score that is 2–6, 6–4, 3–6?
### Context:
CREATE TABLE table_name_55 (tournament VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT tournament FROM table_name_55 WHERE score = "2–6, 6–4, 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:
Name the outcome that had an opponent in final of nina bratchikova kathrin wörle
### Context:
CREATE TABLE table_name_56 (outcome VARCHAR, opponent_in_final VARCHAR)
### Response:
### Response:
SELECT outcome FROM table_name_56 WHERE opponent_in_final = "nina bratchikova kathrin wörle"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 game number when the opposing team was the Buffalo Sabres?
### Context:
CREATE TABLE table_23486853_6 (game INTEGER, opponent VARCHAR)
### Response:
### Response:
SELECT MIN(game) FROM table_23486853_6 WHERE opponent = "Buffalo Sabres"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 record when the visiting team was the montreal canadiens?
### Context:
CREATE TABLE table_name_45 (record VARCHAR, visitor VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_45 WHERE visitor = "montreal canadiens"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Builder has a Date of early 1871?
### Context:
CREATE TABLE table_name_39 (builder VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT builder FROM table_name_39 WHERE date = "early 1871"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when yes votes are 546255?
### Context:
CREATE TABLE table_256286_61 (type VARCHAR, yes_votes VARCHAR)
### Response:
### Response:
SELECT type FROM table_256286_61 WHERE yes_votes = 546255</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who had the most assists and how many did they have in the game against Miami?
### Context:
CREATE TABLE table_17001658_5 (high_assists VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT high_assists FROM table_17001658_5 WHERE team = "Miami"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 NBA draft result of the player from Dunbar High School?
### Context:
CREATE TABLE table_name_61 (nba_draft VARCHAR, school VARCHAR)
### Response:
### Response:
SELECT nba_draft FROM table_name_61 WHERE school = "dunbar high school"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
In 2007 what category won?
### Context:
CREATE TABLE table_name_62 (category VARCHAR, result VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT category FROM table_name_62 WHERE result = "won" AND year < 2007</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Show the names of the drivers without a school bus.
### Context:
CREATE TABLE school_bus (name VARCHAR, driver_id VARCHAR); CREATE TABLE driver (name VARCHAR, driver_id VARCHAR)
### Response:
### Response:
SELECT name FROM driver WHERE NOT driver_id IN (SELECT driver_id FROM school_bus)</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 barony of mountcotton?
### Context:
CREATE TABLE table_30120605_1 (barony VARCHAR, townland VARCHAR)
### Response:
### Response:
SELECT barony FROM table_30120605_1 WHERE townland = "Mountcotton"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which season had a margin of 10?
### Context:
CREATE TABLE table_name_48 (season VARCHAR, margin VARCHAR)
### Response:
### Response:
SELECT season FROM table_name_48 WHERE margin = 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 media market ranking for new york, new york?
### Context:
CREATE TABLE table_name_54 (media_market_ranking VARCHAR, metropolitan_area VARCHAR)
### Response:
### Response:
SELECT media_market_ranking FROM table_name_54 WHERE metropolitan_area = "new york, new york"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 competition took place on October 11, 2006?
### Context:
CREATE TABLE table_name_63 (competition VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT competition FROM table_name_63 WHERE date = "october 11, 2006"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which dam type was completed in 1961?
### Context:
CREATE TABLE table_name_90 (dam_type VARCHAR, year_completed VARCHAR)
### Response:
### Response:
SELECT dam_type FROM table_name_90 WHERE year_completed = 1961</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
In what year was the bridge in Clarkdale built?
### Context:
CREATE TABLE table_name_16 (built VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT built FROM table_name_16 WHERE location = "clarkdale"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What date did De Vries start?
### Context:
CREATE TABLE table_12608427_8 (started VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT started FROM table_12608427_8 WHERE name = "de Vries"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the high loss total for players with zero wins and a win % greater than 0?
### Context:
CREATE TABLE table_name_82 (losses INTEGER, wins VARCHAR, win__percentage VARCHAR)
### Response:
### Response:
SELECT MAX(losses) FROM table_name_82 WHERE wins = 0 AND win__percentage > 0</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which competition was on 17/9/00?
### Context:
CREATE TABLE table_name_47 (competition VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT competition FROM table_name_47 WHERE date = "17/9/00"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what are the results of the opponent of spain?
### Context:
CREATE TABLE table_name_78 (results¹ VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT results¹ FROM table_name_78 WHERE opponent = "spain"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Chassis did Team BMS Scuderia Italia use with G Tyres and a Ferrari 037 3.5 v12 engine?
### Context:
CREATE TABLE table_name_76 (chassis VARCHAR, engine VARCHAR, team VARCHAR, tyres VARCHAR)
### Response:
### Response:
SELECT chassis FROM table_name_76 WHERE team = "bms scuderia italia" AND tyres = "g" AND engine = "ferrari 037 3.5 v12"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What competition took place on 28/04/1906?
### Context:
CREATE TABLE table_name_11 (competition VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT competition FROM table_name_11 WHERE date = "28/04/1906"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 cities/towns located in the municipality of Moss?
### Context:
CREATE TABLE table_157826_1 (city_town VARCHAR, municipality VARCHAR)
### Response:
### Response:
SELECT city_town FROM table_157826_1 WHERE municipality = "Moss"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the developer of Wii?
### Context:
CREATE TABLE table_name_50 (developer_s_ VARCHAR, platform_s_ VARCHAR)
### Response:
### Response:
SELECT developer_s_ FROM table_name_50 WHERE platform_s_ = "wii"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wins with top-25 of 10 and events less than 26
### Context:
CREATE TABLE table_name_67 (wins VARCHAR, top_25 VARCHAR, events VARCHAR)
### Response:
### Response:
SELECT COUNT(wins) FROM table_name_67 WHERE top_25 = 10 AND events < 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:
I want the constituency which has a swing to gain less than 6.05 and a rank of 2
### Context:
CREATE TABLE table_name_4 (constituency VARCHAR, swing_to_gain VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT constituency FROM table_name_4 WHERE swing_to_gain < 6.05 AND rank = 2</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the grid for Jack Brabham with more than 65 laps?
### Context:
CREATE TABLE table_name_34 (grid INTEGER, driver VARCHAR, laps VARCHAR)
### Response:
### Response:
SELECT SUM(grid) FROM table_name_34 WHERE driver = "jack brabham" AND laps > 65</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score for Geelong?
### Context:
CREATE TABLE table_name_84 (away_team VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT away_team AS score FROM table_name_84 WHERE home_team = "geelong"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score of the Kings game attended by more than 18,630 people?
### Context:
CREATE TABLE table_name_76 (score VARCHAR, attendance INTEGER)
### Response:
### Response:
SELECT score FROM table_name_76 WHERE attendance > 18 OFFSET 630</s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.