inputs
stringlengths 400
1.34k
|
|---|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the leader team in the Trofeo Fast Team in stage 20?
### Context:
CREATE TABLE table_12261714_2 (trofeo_fast_team VARCHAR, stage VARCHAR)
### Response:
### Response:
SELECT trofeo_fast_team FROM table_12261714_2 WHERE stage = "20"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What track name had Terry Tamm as the soloist?
### Context:
CREATE TABLE table_28715942_3 (track VARCHAR, soloist_s_ VARCHAR)
### Response:
### Response:
SELECT track FROM table_28715942_3 WHERE soloist_s_ = "Terry Tamm"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What circuit has a race called ii cape south easter trophy.
### Context:
CREATE TABLE table_1140099_6 (circuit VARCHAR, race_name VARCHAR)
### Response:
### Response:
SELECT circuit FROM table_1140099_6 WHERE race_name = "II Cape South Easter Trophy"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Bronze, when Silver is 0, when Rank is 19, and when Total is greater than 2?
### Context:
CREATE TABLE table_name_29 (bronze INTEGER, total VARCHAR, silver VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT AVG(bronze) FROM table_name_29 WHERE silver = 0 AND rank = "19" AND total > 2</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
In which discipline was non-championship under Championship?
### Context:
CREATE TABLE table_name_45 (discipline VARCHAR, championship VARCHAR)
### Response:
### Response:
SELECT discipline FROM table_name_45 WHERE championship = "non-championship"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 qual 2 of team rocketsports racing, which has the best of 1:10.949?
### Context:
CREATE TABLE table_name_34 (qual_2 VARCHAR, team VARCHAR, best VARCHAR)
### Response:
### Response:
SELECT qual_2 FROM table_name_34 WHERE team = "rocketsports racing" AND best = "1:10.949"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which series was on May 16?
### Context:
CREATE TABLE table_name_4 (series VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT series FROM table_name_4 WHERE date = "may 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 is the Streak in the game with a Record of 20–16?
### Context:
CREATE TABLE table_name_42 (streak VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT streak FROM table_name_42 WHERE record = "20–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:
Who drove car 44?
### Context:
CREATE TABLE table_15491596_1 (driver VARCHAR, no VARCHAR)
### Response:
### Response:
SELECT driver FROM table_15491596_1 WHERE no = 44</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the highest league goals that have barry endean as the name, wirh FA cup apps greater than 0?
### Context:
CREATE TABLE table_name_46 (league_goals INTEGER, name VARCHAR, fa_cup_apps VARCHAR)
### Response:
### Response:
SELECT MAX(league_goals) FROM table_name_46 WHERE name = "barry endean" AND fa_cup_apps > 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:
At what venue was there a competition with a score reported as 7.14 (56) - 4.5 (29)?
### Context:
CREATE TABLE table_name_89 (venue VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_89 WHERE score = "7.14 (56) - 4.5 (29)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2006 with 2003 of a and 2012 of a
### Context:
CREATE TABLE table_name_1 (Id VARCHAR)
### Response:
### Response:
SELECT 2006 FROM table_name_1 WHERE 2003 = "a" AND 2012 = "a"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the English title for years after 1981 originating from Argentina?
### Context:
CREATE TABLE table_name_93 (english_title VARCHAR, year VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT english_title FROM table_name_93 WHERE year > 1981 AND country = "argentina"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 awardees for best cinematography
### Context:
CREATE TABLE table_24446718_7 (awardee_s_ VARCHAR, name_of_award VARCHAR)
### Response:
### Response:
SELECT COUNT(awardee_s_) FROM table_24446718_7 WHERE name_of_award = "Best Cinematography"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What value for university students and adult goes with male gender for minimum weight?
### Context:
CREATE TABLE table_name_57 (university_students_and_adults__18yrs VARCHAR, _ VARCHAR, gender VARCHAR, specification VARCHAR)
### Response:
### Response:
SELECT university_students_and_adults__18yrs + _ FROM table_name_57 WHERE gender = "male" AND specification = "minimum weight"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 giants points for opponents being 31
### Context:
CREATE TABLE table_16661199_2 (giants_points VARCHAR, opponents VARCHAR)
### Response:
### Response:
SELECT COUNT(giants_points) FROM table_16661199_2 WHERE opponents = 31</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the rank number with 562-506 goals before season 13?
### Context:
CREATE TABLE table_name_88 (rank VARCHAR, goals VARCHAR, seasons VARCHAR)
### Response:
### Response:
SELECT COUNT(rank) FROM table_name_88 WHERE goals = "562-506" AND seasons < 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:
On Race 14 when the FLap is larger than 1, what is the podium number?
### Context:
CREATE TABLE table_name_42 (podium VARCHAR, race VARCHAR, flap VARCHAR)
### Response:
### Response:
SELECT COUNT(podium) FROM table_name_42 WHERE race = 14 AND flap > 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 weeks had the Green Bay packers as opponents?
### Context:
CREATE TABLE table_name_74 (week INTEGER, opponent VARCHAR)
### Response:
### Response:
SELECT SUM(week) FROM table_name_74 WHERE opponent = "green bay packers"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of drivers in descending order of age.
### Context:
CREATE TABLE driver (name VARCHAR, age VARCHAR)
### Response:
### Response:
SELECT name FROM driver ORDER BY age DESC</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the namesake of the feature found at 189.5w longitude?
### Context:
CREATE TABLE table_16768245_2 (namesake VARCHAR, longitude VARCHAR)
### Response:
### Response:
SELECT namesake FROM table_16768245_2 WHERE longitude = "189.5W"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 l/100km urban (cold) with a CO 2 g/km less than 222, an mpg-us urban greater than 17.8, an mpg-uk extra-urban of 55.4, and an engine capacity greater than 1560?
### Context:
CREATE TABLE table_name_24 (l_100km_urban__cold_ VARCHAR, engine_capacity VARCHAR, mpg_uk_extra_urban VARCHAR, co_2_g_km VARCHAR, mpg_us_urban VARCHAR)
### Response:
### Response:
SELECT l_100km_urban__cold_ FROM table_name_24 WHERE co_2_g_km < 222 AND mpg_us_urban > 17.8 AND mpg_uk_extra_urban = 55.4 AND engine_capacity > 1560</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the artist All Mixed Up place?
### Context:
CREATE TABLE table_name_4 (place INTEGER, artist VARCHAR)
### Response:
### Response:
SELECT MIN(place) FROM table_name_4 WHERE artist = "all mixed up"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 lowest wins for Australia?
### Context:
CREATE TABLE table_name_45 (wins INTEGER, country VARCHAR)
### Response:
### Response:
SELECT MIN(wins) FROM table_name_45 WHERE country = "australia"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Year, when Name is "Dong Shihou, 29 (董世侯)"?
### Context:
CREATE TABLE table_name_93 (year VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_93 WHERE name = "dong shihou, 29 (董世侯)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 there a team of Simon and the start was 3?
### Context:
CREATE TABLE table_name_48 (year VARCHAR, team VARCHAR, start VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_48 WHERE team = "simon" AND start = "3"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many years are there where the the under-15 is Arturo Salazar Martinez and the under-19 is Moises Galvez?
### Context:
CREATE TABLE table_26368963_1 (year VARCHAR, under_15 VARCHAR, under_19 VARCHAR)
### Response:
### Response:
SELECT COUNT(year) FROM table_26368963_1 WHERE under_15 = "Arturo Salazar Martinez" AND under_19 = "Moises Galvez"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 name of the Competition in Rome, Italy?
### Context:
CREATE TABLE table_name_46 (competition VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT competition FROM table_name_46 WHERE venue = "rome, italy"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
when was the first start date that actually began on august 6, 1969
### Context:
CREATE TABLE table_291768_1 (launched VARCHAR, commissioned VARCHAR)
### Response:
### Response:
SELECT launched FROM table_291768_1 WHERE commissioned = "August 6, 1969"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score of T3 place?
### Context:
CREATE TABLE table_name_67 (score VARCHAR, place VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_67 WHERE place = "t3"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 sa/b as the notes, and a time of 5:51.30?
### Context:
CREATE TABLE table_name_55 (country VARCHAR, notes VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_55 WHERE notes = "sa/b" AND time = "5:51.30"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 earliest year someone was first elected from Massachusetts 3
### Context:
CREATE TABLE table_1341395_22 (first_elected INTEGER, district VARCHAR)
### Response:
### Response:
SELECT MIN(first_elected) FROM table_1341395_22 WHERE district = "Massachusetts 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 airing date for the show with 62 episodes?
### Context:
CREATE TABLE table_name_1 (airing_date VARCHAR, number_of_episodes VARCHAR)
### Response:
### Response:
SELECT airing_date FROM table_name_1 WHERE number_of_episodes = 62</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What club/province has 41 caps?
### Context:
CREATE TABLE table_name_66 (club_province VARCHAR, caps VARCHAR)
### Response:
### Response:
SELECT club_province FROM table_name_66 WHERE caps = 41</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the earliest Round for Central Florida?
### Context:
CREATE TABLE table_name_32 (round INTEGER, team VARCHAR)
### Response:
### Response:
SELECT MIN(round) FROM table_name_32 WHERE team = "central florida"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Can you tell me the lowest Long that has the Yards 293, and the Returns smaller than 16?
### Context:
CREATE TABLE table_name_56 (long INTEGER, yards VARCHAR, returns VARCHAR)
### Response:
### Response:
SELECT MIN(long) FROM table_name_56 WHERE yards = 293 AND returns < 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 is the date of the episode written by Michael Poryes?
### Context:
CREATE TABLE table_12030612_3 (original_air_date VARCHAR, written_by VARCHAR)
### Response:
### Response:
SELECT original_air_date FROM table_12030612_3 WHERE written_by = "Michael Poryes"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2006 Cobra Starship song has work done of guest vocals?
### Context:
CREATE TABLE table_name_53 (song VARCHAR, artist_s_ VARCHAR, work_done VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT song FROM table_name_53 WHERE work_done = "guest vocals" AND year = 2006 AND artist_s_ = "cobra starship"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Venue of the San Francisco 49ers Home game with a Result of 30-10?
### Context:
CREATE TABLE table_name_89 (venue VARCHAR, home_team VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_89 WHERE home_team = "san francisco 49ers" AND result = "30-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 number of the player who attended Delta State?
### Context:
CREATE TABLE table_15621965_16 (no INTEGER, school_club_team VARCHAR)
### Response:
### Response:
SELECT MAX(no) FROM table_15621965_16 WHERE school_club_team = "Delta State"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the finals qualification during the 2009-10 season?
### Context:
CREATE TABLE table_name_88 (finals_qualification VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT finals_qualification FROM table_name_88 WHERE season = "2009-10"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many picks were there for the Bentley team?
### Context:
CREATE TABLE table_name_31 (pick VARCHAR, school_club_team VARCHAR)
### Response:
### Response:
SELECT COUNT(pick) FROM table_name_31 WHERE school_club_team = "bentley"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 hometown of Bubba Starling?
### Context:
CREATE TABLE table_11677100_17 (hometown VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT hometown FROM table_11677100_17 WHERE player = "Bubba Starling"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name for doncaster newbury
### Context:
CREATE TABLE table_22977424_8 (name VARCHAR, promoted_to_league VARCHAR)
### Response:
### Response:
SELECT name FROM table_22977424_8 WHERE promoted_to_league = "Doncaster Newbury"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 boroughs with different ranks have a total Asian population of 33338?
### Context:
CREATE TABLE table_19149550_9 (rank VARCHAR, total_asian_population VARCHAR)
### Response:
### Response:
SELECT COUNT(rank) FROM table_19149550_9 WHERE total_asian_population = 33338</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 episode title for the episode numbered #1.4?
### Context:
CREATE TABLE table_15211468_1 (episode_title VARCHAR, episode_no VARCHAR)
### Response:
### Response:
SELECT episode_title FROM table_15211468_1 WHERE episode_no = "#1.4"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Away team did West Ham United play against?
### Context:
CREATE TABLE table_name_95 (away_team VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_95 WHERE home_team = "west ham united"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 u.s. viewers (million) have a series # 83?
### Context:
CREATE TABLE table_22570439_1 (us_viewers__millions_ VARCHAR, series__number VARCHAR)
### Response:
### Response:
SELECT us_viewers__millions_ FROM table_22570439_1 WHERE series__number = 83</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the result of week 2?
### Context:
CREATE TABLE table_name_93 (result VARCHAR, week VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_93 WHERE week = "week 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 amount won with tries against at 54?
### Context:
CREATE TABLE table_12828723_5 (won VARCHAR, tries_against VARCHAR)
### Response:
### Response:
SELECT won FROM table_12828723_5 WHERE tries_against = "54"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 market value of a company in billions that has 172.7 billion in sales?
### Context:
CREATE TABLE table_1682026_6 (market_value__billion_$_ VARCHAR, sales__billion_$_ VARCHAR)
### Response:
### Response:
SELECT market_value__billion_$_ FROM table_1682026_6 WHERE sales__billion_$_ = "172.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:
Show the case burden of counties in descending order of population.
### Context:
CREATE TABLE county_public_safety (Case_burden VARCHAR, Population VARCHAR)
### Response:
### Response:
SELECT Case_burden FROM county_public_safety ORDER BY Population DESC</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What are the rounds for champion New Zealand (130 points)?
### Context:
CREATE TABLE table_name_1 (rounds INTEGER, champion VARCHAR)
### Response:
### Response:
SELECT AVG(rounds) FROM table_name_1 WHERE champion = "new zealand (130 points)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 week that has September 19, 1965 as the date, with an attendance less than 46,941?
### Context:
CREATE TABLE table_name_70 (week INTEGER, date VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT MIN(week) FROM table_name_70 WHERE date = "september 19, 1965" AND attendance < 46 OFFSET 941</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 score of submissions?
### Context:
CREATE TABLE submission (Scores INTEGER)
### Response:
### Response:
SELECT AVG(Scores) FROM submission</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the earliest launch that was from Beijing?
### Context:
CREATE TABLE table_name_58 (launch INTEGER, origin VARCHAR)
### Response:
### Response:
SELECT MIN(launch) FROM table_name_58 WHERE origin = "beijing"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 timeslot for the episode in the year 2008?
### Context:
CREATE TABLE table_2639433_4 (timeslot VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT timeslot FROM table_2639433_4 WHERE year = 2008</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the up/down associated with the Subiaco Oval?
### Context:
CREATE TABLE table_2472711_32 (up_down VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT up_down FROM table_2472711_32 WHERE venue = "Subiaco 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:
Tell me the part 1 of grid of 1
### Context:
CREATE TABLE table_name_60 (part_1 VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT part_1 FROM table_name_60 WHERE 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:
What is the location of the salem district?
### Context:
CREATE TABLE table_name_16 (location VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_16 WHERE district = "salem district"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Europe/Africa group i's opponent?
### Context:
CREATE TABLE table_name_61 (opponent VARCHAR, zone VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_61 WHERE zone = "europe/africa group i"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Television Service offering Cartomanzia?
### Context:
CREATE TABLE table_name_36 (television_service VARCHAR, content VARCHAR)
### Response:
### Response:
SELECT television_service FROM table_name_36 WHERE content = "cartomanzia"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 drawn are there where the Club is new ross?
### Context:
CREATE TABLE table_20760802_1 (drawn VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT drawn FROM table_20760802_1 WHERE club = "New Ross"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Score has an Opponent of @ houston, and a Record of 2-0?
### Context:
CREATE TABLE table_name_46 (score VARCHAR, opponent VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_46 WHERE opponent = "@ houston" AND record = "2-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 of the winner of the tour championship tournament?
### Context:
CREATE TABLE table_name_73 (winner VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT winner FROM table_name_73 WHERE tournament = "the tour championship"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 runner-up in 1887 competition for 'Articles with HCards'?
### Context:
CREATE TABLE table_name_39 (runner_up VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT runner_up FROM table_name_39 WHERE year = 1887</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 kills have 15 as the injured, with a year prior to 1987?
### Context:
CREATE TABLE table_name_4 (killed INTEGER, injured VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT SUM(killed) FROM table_name_4 WHERE injured = "15" AND year < 1987</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What work was nominated at Rockferendum 2007 and got 1st place and got the award for best album?
### Context:
CREATE TABLE table_name_55 (nominated_work VARCHAR, award VARCHAR, type VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT nominated_work FROM table_name_55 WHERE type = "rockferendum 2007" AND position = "1st place" AND award = "best album"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 median income for the region where 24.4% pf people make below 60% of the median income?
### Context:
CREATE TABLE table_25042332_16 (median_income___intl INTEGER, below_60_percentage_of_median_income VARCHAR)
### Response:
### Response:
SELECT MIN(median_income___intl) AS $__ FROM table_25042332_16 WHERE below_60_percentage_of_median_income = "24.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:
who were the candidates when the incumbent was ed derwinski?
### Context:
CREATE TABLE table_1341718_14 (candidates VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT candidates FROM table_1341718_14 WHERE incumbent = "Ed Derwinski"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Release date has a Developer(s) of microsoft research?
### Context:
CREATE TABLE table_name_84 (release_date VARCHAR, developer_s_ VARCHAR)
### Response:
### Response:
SELECT release_date FROM table_name_84 WHERE developer_s_ = "microsoft research"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 T3?
### Context:
CREATE TABLE table_name_70 (player VARCHAR, place VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_70 WHERE place = "t3"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the sounddock series II aux in?
### Context:
CREATE TABLE table_24384861_1 (aux_in VARCHAR, version VARCHAR)
### Response:
### Response:
SELECT COUNT(aux_in) FROM table_24384861_1 WHERE version = "SoundDock series II"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 after february 4 in the game 61?
### Context:
CREATE TABLE table_name_30 (score VARCHAR, february VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_30 WHERE february > 4 AND game = 61</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 silver medals for germany with a bronze count more than 0?
### Context:
CREATE TABLE table_name_81 (silver INTEGER, nation VARCHAR, bronze VARCHAR)
### Response:
### Response:
SELECT MAX(silver) FROM table_name_81 WHERE nation = "germany" AND bronze > 0</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
find the event names that have more than 2 records.
### Context:
CREATE TABLE party_events (event_name VARCHAR)
### Response:
### Response:
SELECT event_name FROM party_events GROUP BY event_name HAVING COUNT(*) > 2</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When st kilda played as the away team, what date was that?
### Context:
CREATE TABLE table_name_67 (date VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_67 WHERE away_team = "st kilda"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2004 results for npa
### Context:
CREATE TABLE table_name_18 (results_2004 VARCHAR, party VARCHAR)
### Response:
### Response:
SELECT results_2004 FROM table_name_18 WHERE party = "npa"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 callsign in Zamboanga?
### Context:
CREATE TABLE table_12547903_3 (callsign VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT callsign FROM table_12547903_3 WHERE location = "Zamboanga"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 team that the replaced by is miroslav đukić?
### Context:
CREATE TABLE table_24231638_3 (team VARCHAR, replaced_by VARCHAR)
### Response:
### Response:
SELECT team FROM table_24231638_3 WHERE replaced_by = "Miroslav Đukić"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the date with chicago visiting
### Context:
CREATE TABLE table_name_64 (date VARCHAR, visitor VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_64 WHERE visitor = "chicago"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the least overall for tony baker
### Context:
CREATE TABLE table_name_15 (overall INTEGER, name VARCHAR)
### Response:
### Response:
SELECT MIN(overall) FROM table_name_15 WHERE name = "tony baker"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
54 is the game where location attendance are.
### Context:
CREATE TABLE table_17080868_8 (location_attendance VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT location_attendance FROM table_17080868_8 WHERE game = 54</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 copa libertadores 1992 for round of 16 and team of fluminense
### Context:
CREATE TABLE table_15013825_8 (copa_libertadores_1992 VARCHAR, copa_conmebol_1992 VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT copa_libertadores_1992 FROM table_15013825_8 WHERE copa_conmebol_1992 = "Round of 16" AND team = "Fluminense"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 13 january 2009 host
### Context:
CREATE TABLE table_name_19 (host VARCHAR, premiere VARCHAR)
### Response:
### Response:
SELECT host FROM table_name_19 WHERE premiere = "13 january 2009"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What club has over 1 runners-up and last won the final in 2010?
### Context:
CREATE TABLE table_name_28 (club VARCHAR, runners_up VARCHAR, last_final_won VARCHAR)
### Response:
### Response:
SELECT club FROM table_name_28 WHERE runners_up > 1 AND last_final_won = "2010"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 mean Evaluation number (before April 2009) when the Peak lessons taught was less than 80 and the negative percentage of evaluations was 0.8%?
### Context:
CREATE TABLE table_name_23 (evaluation_average__before_april_2009_ VARCHAR, peak_lessons_taught VARCHAR, _percentage_of_negative_evaluations VARCHAR)
### Response:
### Response:
SELECT evaluation_average__before_april_2009_ FROM table_name_23 WHERE peak_lessons_taught < 80 AND _percentage_of_negative_evaluations = "0.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:
Loss of finley (8-7) had what record?
### Context:
CREATE TABLE table_name_99 (record VARCHAR, loss VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_99 WHERE loss = "finley (8-7)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the record when the visitor was toronto maple leafs and the score was 3–10?
### Context:
CREATE TABLE table_name_67 (record VARCHAR, visitor VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_67 WHERE visitor = "toronto maple leafs" AND score = "3–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 Set 3 when the Total was 98 - 92?
### Context:
CREATE TABLE table_name_27 (set_3 VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT set_3 FROM table_name_27 WHERE total = "98 - 92"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 distinct nationalities are there?
### Context:
CREATE TABLE people (Nationality VARCHAR)
### Response:
### Response:
SELECT COUNT(DISTINCT Nationality) FROM people</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Attack has a 30,00% GERB?
### Context:
CREATE TABLE table_name_74 (attack VARCHAR, gerb VARCHAR)
### Response:
### Response:
SELECT attack FROM table_name_74 WHERE gerb = "30,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:
In language where Wednesday is বুধবার budhbar, what is Thursday?
### Context:
CREATE TABLE table_1277350_3 (thursday_guru__jupiter_ VARCHAR, wednesday_budha__mercury_ VARCHAR)
### Response:
### Response:
SELECT thursday_guru__jupiter_ FROM table_1277350_3 WHERE wednesday_budha__mercury_ = "বুধবার Budhbar"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What date was the release when the format was lp?
### Context:
CREATE TABLE table_name_21 (date VARCHAR, format VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_21 WHERE format = "lp"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 how many weeks was the game played on November 3 played?
### Context:
CREATE TABLE table_17869717_1 (week VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT COUNT(week) FROM table_17869717_1 WHERE date = "November 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 record for the game on January 19?
### Context:
CREATE TABLE table_name_92 (record VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_92 WHERE date = "january 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:
What is the Date of the Match with a Score of 6–4, 7–5?
### Context:
CREATE TABLE table_name_27 (date VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_27 WHERE score = "6–4, 7–5"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the composer of te3rafy?
### Context:
CREATE TABLE table_28005100_1 (composer VARCHAR, title VARCHAR)
### Response:
### Response:
SELECT composer FROM table_28005100_1 WHERE title = "Te3rafy"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 mean number in the top 5 when the top 25 is 1 and there's fewer than 0 wins?
### Context:
CREATE TABLE table_name_61 (top_5 INTEGER, top_25 VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT AVG(top_5) FROM table_name_61 WHERE top_25 = 1 AND 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 number for the international with 669 domestic earlier than 2005?
### Context:
CREATE TABLE table_name_78 (international INTEGER, domestic VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT AVG(international) FROM table_name_78 WHERE domestic = 669 AND year < 2005</s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.