inputs stringlengths 400 1.34k |
|---|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total number of losses that has draws larger than 1 and a Portland DFL of westerns?
### Context:
CREATE TABLE table_name_75 (losses INTEGER, portland_dfl VARCHAR, draws VARCHAR)
### Response:
### Response:
SELECT SUM(losses) FROM table_name_75 WHERE portland_dfl = "westerns" AND draws > 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 touchdowns were scored when QB rating was 82.7?
### Context:
CREATE TABLE table_20906175_3 (touchdowns INTEGER, qb_rating VARCHAR)
### Response:
### Response:
SELECT MAX(touchdowns) FROM table_20906175_3 WHERE qb_rating = "82.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:
Name the revenue for eps being 1.19
### Context:
CREATE TABLE table_20614109_1 (revenue__ INTEGER, earnings_per_share__€_ VARCHAR)
### Response:
### Response:
SELECT MAX(revenue__) AS €million_ FROM table_20614109_1 WHERE earnings_per_share__€_ = "1.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 are the manuals with an opus of 147?
### Context:
CREATE TABLE table_name_2 (manuals VARCHAR, opus VARCHAR)
### Response:
### Response:
SELECT manuals FROM table_name_2 WHERE opus = "147"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 South Melbourne's score as the home team?
### Context:
CREATE TABLE table_name_19 (home_team VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_19 WHERE home_team = "south melbourne"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score when the record was 21-31-13?
### Context:
CREATE TABLE table_17360840_9 (score VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT score FROM table_17360840_9 WHERE record = "21-31-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 was the College of Player Perry Ellis?
### Context:
CREATE TABLE table_name_69 (college VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT college FROM table_name_69 WHERE player = "perry ellis"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Olivier Jacque's Time/Retired?
### Context:
CREATE TABLE table_name_43 (time_retired VARCHAR, rider VARCHAR)
### Response:
### Response:
SELECT time_retired FROM table_name_43 WHERE rider = "olivier jacque"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which pick did Michel Larocque receive?
### Context:
CREATE TABLE table_2840500_6 (pick VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT pick FROM table_2840500_6 WHERE player = "Michel Larocque"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 fitzroy the away team?
### Context:
CREATE TABLE table_name_65 (date VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_65 WHERE away_team = "fitzroy"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fastest lap in bowmanville, ontario?
### Context:
CREATE TABLE table_30134667_2 (fastest_lap VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT fastest_lap FROM table_30134667_2 WHERE location = "Bowmanville, Ontario"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 properties of sodium when potassium is lii (1.5)?
### Context:
CREATE TABLE table_name_66 (sodium VARCHAR, potassium VARCHAR)
### Response:
### Response:
SELECT sodium FROM table_name_66 WHERE potassium = "lii (1.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 sum of Polish Cup, when Player is "Maciej Iwański", and when Ekstraklasa is less than 1?
### Context:
CREATE TABLE table_name_34 (polish_cup INTEGER, player VARCHAR, ekstraklasa VARCHAR)
### Response:
### Response:
SELECT SUM(polish_cup) FROM table_name_34 WHERE player = "maciej iwański" AND ekstraklasa < 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the production number of the episode filmed in aug/sept 1968?
### Context:
CREATE TABLE table_1971734_1 (prod__number VARCHAR, filmed VARCHAR)
### Response:
### Response:
SELECT prod__number FROM table_1971734_1 WHERE filmed = "Aug/Sept 1968"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Pittsburgh Home game on March 3 with 61 Points?
### Context:
CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR, home VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_18 WHERE home = "pittsburgh" AND points = 61 AND date = "march 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 writer had a producer DKA, JL, AS?
### Context:
CREATE TABLE table_name_85 (writer VARCHAR, producer_executive_producer VARCHAR)
### Response:
### Response:
SELECT writer FROM table_name_85 WHERE producer_executive_producer = "dka, jl, as"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which method has a record of 3-0?
### Context:
CREATE TABLE table_name_27 (method VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT method FROM table_name_27 WHERE record = "3-0"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the weight with the shape of scalloped, and that is a size of 20mm (across scallops)?
### Context:
CREATE TABLE table_name_92 (weight VARCHAR, shape VARCHAR, size VARCHAR)
### Response:
### Response:
SELECT weight FROM table_name_92 WHERE shape = "scalloped" AND size = "20mm (across scallops)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Street address with a Name of New York Life Insurance building?
### Context:
CREATE TABLE table_name_74 (street_address VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT street_address FROM table_name_74 WHERE name = "new york life insurance building"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
WHAT IS THE PLACE WITH A SCORE OF 76-69-64-70=279?
### Context:
CREATE TABLE table_name_62 (place VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_62 WHERE score = 76 - 69 - 64 - 70 = 279</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Home has a Visitor of nashville?
### Context:
CREATE TABLE table_name_44 (home VARCHAR, visitor VARCHAR)
### Response:
### Response:
SELECT home FROM table_name_44 WHERE visitor = "nashville"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
List the weight for 56 kilograms.
### Context:
CREATE TABLE table_2581397_3 (distance VARCHAR, weight__kg_ VARCHAR)
### Response:
### Response:
SELECT distance FROM table_2581397_3 WHERE weight__kg_ = "56"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 laps for 12 grids
### Context:
CREATE TABLE table_name_82 (laps INTEGER, grid VARCHAR)
### Response:
### Response:
SELECT SUM(laps) FROM table_name_82 WHERE grid = 12</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the number of enrollment for county of 48 madison
### Context:
CREATE TABLE table_name_47 (enrollment VARCHAR, _number___county VARCHAR)
### Response:
### Response:
SELECT COUNT(enrollment) FROM table_name_47 WHERE _number___county = "48 madison"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What seasons had a ranking of #47?
### Context:
CREATE TABLE table_175980_2 (season VARCHAR, ranking VARCHAR)
### Response:
### Response:
SELECT season FROM table_175980_2 WHERE ranking = "#47"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Ido Kozikaro's position?
### Context:
CREATE TABLE table_12962773_2 (position VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT position FROM table_12962773_2 WHERE player = "Ido Kozikaro"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How much does the Independencia weight?
### Context:
CREATE TABLE table_23614702_1 (tons___lton__ INTEGER, warship VARCHAR)
### Response:
### Response:
SELECT MIN(tons___lton__) FROM table_23614702_1 WHERE warship = "Independencia"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 half-life discovered in 2003?
### Context:
CREATE TABLE table_name_22 (half_life VARCHAR, discovery_year VARCHAR)
### Response:
### Response:
SELECT half_life FROM table_name_22 WHERE discovery_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:
What is the 1995 value with of the 1993 ATP Masters Series?
### Context:
CREATE TABLE table_name_15 (Id VARCHAR)
### Response:
### Response:
SELECT 1995 FROM table_name_15 WHERE 1993 = "atp masters series"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many weeks are associated with Season 3 – spring 2008?
### Context:
CREATE TABLE table_name_74 (_number_of_weeks VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT COUNT(_number_of_weeks) FROM table_name_74 WHERE season = "3 – spring 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:
Name the Driver that has Races greater than 16?
### Context:
CREATE TABLE table_name_16 (driver VARCHAR, races INTEGER)
### Response:
### Response:
SELECT driver FROM table_name_16 WHERE races > 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 Event, when Year is 2002, and when Competition is European Indoor Championships?
### Context:
CREATE TABLE table_name_6 (event VARCHAR, year VARCHAR, competition VARCHAR)
### Response:
### Response:
SELECT event FROM table_name_6 WHERE year = 2002 AND competition = "european indoor championships"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total points for a place less than 2 with a played greater than 18?
### Context:
CREATE TABLE table_name_16 (points INTEGER, place VARCHAR, played VARCHAR)
### Response:
### Response:
SELECT SUM(points) FROM table_name_16 WHERE place < 2 AND played > 18</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which grade did the chin-up (reps) 9-10 receive?
### Context:
CREATE TABLE table_name_54 (grade VARCHAR, chin_up__reps_ VARCHAR)
### Response:
### Response:
SELECT grade FROM table_name_54 WHERE chin_up__reps_ = "9-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 acres does the area of Lissagroom with Bandon as its poor law union cover?
### Context:
CREATE TABLE table_30120633_1 (area__acres__ VARCHAR, poor_law_union VARCHAR, townland VARCHAR)
### Response:
### Response:
SELECT area__acres__ FROM table_30120633_1 WHERE poor_law_union = "Bandon" AND townland = "Lissagroom"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the most number for air date 2009/12/29
### Context:
CREATE TABLE table_21002034_7 (_number INTEGER, air_date_netherlands_yyyy_mm_dd VARCHAR)
### Response:
### Response:
SELECT MAX(_number) FROM table_21002034_7 WHERE air_date_netherlands_yyyy_mm_dd = "2009/12/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:
What is the average Pick with a Position of pg, and a Round less than 1?
### Context:
CREATE TABLE table_name_14 (pick INTEGER, position VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT AVG(pick) FROM table_name_14 WHERE position = "pg" AND 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:
Which Venue has an Against of 25?
### Context:
CREATE TABLE table_name_26 (venue VARCHAR, against VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_26 WHERE against = 25</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Tell me the highest NGC number for right ascension of 09h40m28.5s
### Context:
CREATE TABLE table_name_57 (ngc_number INTEGER, right_ascension___j2000__ VARCHAR)
### Response:
### Response:
SELECT MAX(ngc_number) FROM table_name_57 WHERE right_ascension___j2000__ = "09h40m28.5s"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 songs that have a release date of 6/17/61, a track larger than 20, and a writer of Woody Harris, what is the chart peak?
### Context:
CREATE TABLE table_name_46 (chart_peak VARCHAR, writer_s_ VARCHAR, release_date VARCHAR, track VARCHAR)
### Response:
### Response:
SELECT chart_peak FROM table_name_46 WHERE release_date = "6/17/61" AND track > 20 AND writer_s_ = "woody harris"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 pole position of Round 9
### Context:
CREATE TABLE table_name_4 (pole_position VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT pole_position FROM table_name_4 WHERE round = 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 year did Tom Watson win?
### Context:
CREATE TABLE table_name_87 (year_s__won VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT year_s__won FROM table_name_87 WHERE player = "tom watson"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 series number of the episode directed by Rob Bailey?
### Context:
CREATE TABLE table_14346689_1 (series__number INTEGER, directed_by VARCHAR)
### Response:
### Response:
SELECT MAX(series__number) FROM table_14346689_1 WHERE directed_by = "Rob Bailey"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 language for kunar
### Context:
CREATE TABLE table_16278349_1 (language VARCHAR, province VARCHAR)
### Response:
### Response:
SELECT language FROM table_16278349_1 WHERE province = "Kunar"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Altadeña has a Aprende of jaguars?
### Context:
CREATE TABLE table_name_83 (altadeña VARCHAR, aprende VARCHAR)
### Response:
### Response:
SELECT altadeña FROM table_name_83 WHERE aprende = "jaguars"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Report for 08 jul, and a Score of 3–1?
### Context:
CREATE TABLE table_name_79 (report VARCHAR, date VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT report FROM table_name_79 WHERE date = "08 jul" AND score = "3–1"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the Attendance before Week 17 with a Record of Bye?
### Context:
CREATE TABLE table_name_77 (attendance VARCHAR, week VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT attendance FROM table_name_77 WHERE week < 17 AND record = "bye"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average attendance when the opponent is telford tigers?
### Context:
CREATE TABLE table_name_75 (attendance INTEGER, opponent VARCHAR)
### Response:
### Response:
SELECT AVG(attendance) FROM table_name_75 WHERE opponent = "telford tigers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Prize, when Season is "2"?
### Context:
CREATE TABLE table_name_56 (prize VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT prize FROM table_name_56 WHERE season = "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 region where Milan is located?
### Context:
CREATE TABLE table_14532_1 (region VARCHAR, capital VARCHAR)
### Response:
### Response:
SELECT region FROM table_14532_1 WHERE capital = "Milan"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Original Broadway production has a First US National Tour of roger bart?
### Context:
CREATE TABLE table_name_52 (original_broadway_production VARCHAR, first_us_national_tour VARCHAR)
### Response:
### Response:
SELECT original_broadway_production FROM table_name_52 WHERE first_us_national_tour = "roger bart"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 release date with par116 as the cat. #?
### Context:
CREATE TABLE table_name_96 (release_date VARCHAR, cat__number VARCHAR)
### Response:
### Response:
SELECT release_date FROM table_name_96 WHERE cat__number = "par116"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What city was a visitor on the date of April 30?
### Context:
CREATE TABLE table_name_74 (visitor VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT visitor FROM table_name_74 WHERE date = "april 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 is the language of the malacca fm station?
### Context:
CREATE TABLE table_1601792_3 (language VARCHAR, station VARCHAR)
### Response:
### Response:
SELECT language FROM table_1601792_3 WHERE station = "Malacca FM"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Report for the School for Ages of 2-17?
### Context:
CREATE TABLE table_name_10 (report VARCHAR, ages VARCHAR)
### Response:
### Response:
SELECT report FROM table_name_10 WHERE ages = "2-17"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who's the incumbent in the district that first elected in 1969?
### Context:
CREATE TABLE table_1341453_51 (incumbent VARCHAR, first_elected VARCHAR)
### Response:
### Response:
SELECT incumbent FROM table_1341453_51 WHERE first_elected = 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 is the full amount of Total for Austria when the number of gold is less than 0?
### Context:
CREATE TABLE table_name_45 (total INTEGER, nation VARCHAR, gold VARCHAR)
### Response:
### Response:
SELECT SUM(total) FROM table_name_45 WHERE nation = "austria" AND gold < 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 sum of the glyph with a 38 hexadecimal and a binary less than 111000?
### Context:
CREATE TABLE table_name_4 (glyph INTEGER, hexadecimal VARCHAR, binary VARCHAR)
### Response:
### Response:
SELECT SUM(glyph) FROM table_name_4 WHERE hexadecimal = 38 AND binary < 111000</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Opponents in the game with a Date of nov. 25?
### Context:
CREATE TABLE table_name_80 (opponents INTEGER, date VARCHAR)
### Response:
### Response:
SELECT MIN(opponents) FROM table_name_80 WHERE date = "nov. 25"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many wins did the club have with the last win in 2000?
### Context:
CREATE TABLE table_name_42 (wins VARCHAR, last_win VARCHAR)
### Response:
### Response:
SELECT wins FROM table_name_42 WHERE last_win = "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 is the average year for Team Oreca?
### Context:
CREATE TABLE table_name_46 (year INTEGER, team VARCHAR)
### Response:
### Response:
SELECT AVG(year) FROM table_name_46 WHERE team = "team oreca"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of wins and losses for Denver's ball club?
### Context:
CREATE TABLE table_17311759_5 (record VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT record FROM table_17311759_5 WHERE team = "Denver"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 entrant for 1967?
### Context:
CREATE TABLE table_name_76 (entrant VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT entrant FROM table_name_76 WHERE year = 1967</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 loss for the angels opponent
### Context:
CREATE TABLE table_name_10 (loss VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT loss FROM table_name_10 WHERE opponent = "angels"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the date october 3, 2010?
### Context:
CREATE TABLE table_27552095_27 (player VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT COUNT(player) FROM table_27552095_27 WHERE date = "October 3, 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 percentage of browsers were using Chrome during the period in which 0.30% were using Opera and 6.77% were using Safari?
### Context:
CREATE TABLE table_name_22 (chrome VARCHAR, opera VARCHAR, safari VARCHAR)
### Response:
### Response:
SELECT chrome FROM table_name_22 WHERE opera = "0.30%" AND safari = "6.77%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 floor when the position is less than 21, and less than 81.2 total, and the pommel horse score is 13.925?
### Context:
CREATE TABLE table_name_1 (floor VARCHAR, pommel_horse VARCHAR, position VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT floor FROM table_name_1 WHERE position < 21 AND total < 81.2 AND pommel_horse = "13.925"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Score of 8 - 1 happened on what day in December?
### Context:
CREATE TABLE table_name_27 (december VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT december FROM table_name_27 WHERE score = "8 - 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:
Which 2008 Tournament has a 2007 of a and a 2010 of qf?
### Context:
CREATE TABLE table_name_46 (Id VARCHAR)
### Response:
### Response:
SELECT 2008 FROM table_name_46 WHERE 2007 = "a" AND 2010 = "qf"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the value for lowest Sacks, when the Team is New Orleans Saints, and when the value for Tackles is 132?
### Context:
CREATE TABLE table_name_22 (sacks INTEGER, team VARCHAR, tackles VARCHAR)
### Response:
### Response:
SELECT MIN(sacks) FROM table_name_22 WHERE team = "new orleans saints" AND tackles = "132"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Season, when Lead is "Michael Goodfellow"?
### Context:
CREATE TABLE table_name_12 (season VARCHAR, lead VARCHAR)
### Response:
### Response:
SELECT season FROM table_name_12 WHERE lead = "michael goodfellow"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 scored the most assists in game 59?
### Context:
CREATE TABLE table_15780718_8 (high_assists VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT high_assists FROM table_15780718_8 WHERE game = 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:
Venue for Hawke's bay?
### Context:
CREATE TABLE table_name_14 (venue VARCHAR, opposing_team VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_14 WHERE opposing_team = "hawke's bay"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 minimum property crimes stats if the burglary committed was 45350?
### Context:
CREATE TABLE table_26060884_2 (property_crimes INTEGER, burglary VARCHAR)
### Response:
### Response:
SELECT MIN(property_crimes) FROM table_26060884_2 WHERE burglary = 45350</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 within the walls is larger than 56174.0 what is the lowest amount without the walls?
### Context:
CREATE TABLE table_16677738_1 (without_the_walls INTEGER, within_the_walls INTEGER)
### Response:
### Response:
SELECT MIN(without_the_walls) FROM table_16677738_1 WHERE within_the_walls > 56174.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 Stage, when the Rally leader is C. Atkinson?
### Context:
CREATE TABLE table_name_19 (stage VARCHAR, rally_leader VARCHAR)
### Response:
### Response:
SELECT stage FROM table_name_19 WHERE rally_leader = "c. atkinson"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 with third place of stefan edberg?
### Context:
CREATE TABLE table_name_33 (score VARCHAR, third_place VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_33 WHERE third_place = "stefan edberg"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Fractievoorzitter, when Lijsttrekker is "No Elections", and when Year is after 2005?
### Context:
CREATE TABLE table_name_80 (fractievoorzitter VARCHAR, lijsttrekker VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT fractievoorzitter FROM table_name_80 WHERE lijsttrekker = "no elections" AND year > 2005</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the top-5 when the tournament is totals and the top-25 is more than 4?
### Context:
CREATE TABLE table_name_80 (top_5 INTEGER, tournament VARCHAR, top_25 VARCHAR)
### Response:
### Response:
SELECT AVG(top_5) FROM table_name_80 WHERE tournament = "totals" AND top_25 > 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 driver uses the ts16 chassis?
### Context:
CREATE TABLE table_name_7 (driver VARCHAR, chassis VARCHAR)
### Response:
### Response:
SELECT driver FROM table_name_7 WHERE chassis = "ts16"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What number is the player whose hometown is Tampa, FL?
### Context:
CREATE TABLE table_29418619_1 (_number VARCHAR, hometown VARCHAR)
### Response:
### Response:
SELECT _number FROM table_29418619_1 WHERE hometown = "Tampa, FL"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 points with 6 draws and lower than rank 10?
### Context:
CREATE TABLE table_name_62 (points INTEGER, draw VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT MIN(points) FROM table_name_62 WHERE draw = 6 AND rank > 10</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many different results were there for the scores 6–7 (2–7) , 6–2, 7–6 (7–3)?
### Context:
CREATE TABLE table_29026564_9 (result VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT COUNT(result) FROM table_29026564_9 WHERE score = "6–7 (2–7) , 6–2, 7–6 (7–3)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the visiting team on November 12?
### Context:
CREATE TABLE table_name_12 (visiting_team VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT visiting_team FROM table_name_12 WHERE date = "november 12"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the per capita income for Fayette County?
### Context:
CREATE TABLE table_1447085_1 (per_capita_income VARCHAR, county VARCHAR)
### Response:
### Response:
SELECT per_capita_income FROM table_1447085_1 WHERE county = "Fayette county"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What district has Dan Crane as incumbent?
### Context:
CREATE TABLE table_1341598_14 (district VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT district FROM table_1341598_14 WHERE incumbent = "Dan Crane"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 heats had 5 lanes and a rank less than 110 for the nationality of Honduras?
### Context:
CREATE TABLE table_name_18 (heat VARCHAR, nationality VARCHAR, lane VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT COUNT(heat) FROM table_name_18 WHERE lane = 5 AND rank > 110 AND nationality = "honduras"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 2007 value with a 2r in 2012 and 1r in 2002?
### Context:
CREATE TABLE table_name_53 (Id VARCHAR)
### Response:
### Response:
SELECT 2007 FROM table_name_53 WHERE 2012 = "2r" AND 2002 = "1r"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What circuit did Clay Regazzoni win?
### Context:
CREATE TABLE table_1140090_6 (circuit VARCHAR, winning_driver VARCHAR)
### Response:
### Response:
SELECT circuit FROM table_1140090_6 WHERE winning_driver = "Clay Regazzoni"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 in Gelora Sriwijaya Stadium?
### Context:
CREATE TABLE table_name_47 (score VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_47 WHERE venue = "gelora sriwijaya stadium"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many episodes directed by ben jones and written by paul dini?
### Context:
CREATE TABLE table_20360535_3 (no VARCHAR, directed_by VARCHAR, written_by VARCHAR)
### Response:
### Response:
SELECT COUNT(no) FROM table_20360535_3 WHERE directed_by = "Ben Jones" AND written_by = "Paul Dini"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 vote for Alvin Green when other was 9%?
### Context:
CREATE TABLE table_name_22 (alvin_greene__d_ VARCHAR, other VARCHAR)
### Response:
### Response:
SELECT alvin_greene__d_ FROM table_name_22 WHERE other = "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 Magnitude on the Date May 28, 2004?
### Context:
CREATE TABLE table_name_49 (magnitude VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT magnitude FROM table_name_49 WHERE date = "may 28, 2004"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Score, when Attendance is "349"?
### Context:
CREATE TABLE table_name_66 (score VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_66 WHERE attendance = "349"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Week was the Record 4–7–1?
### Context:
CREATE TABLE table_name_7 (week INTEGER, record VARCHAR)
### Response:
### Response:
SELECT MIN(week) FROM table_name_7 WHERE record = "4–7–1"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who is the away side when north melbourne is the home side?
### Context:
CREATE TABLE table_name_79 (away_team VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_79 WHERE home_team = "north melbourne"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Akira when Tiger Mask IV is Akira (10:05)?
### Context:
CREATE TABLE table_name_94 (akira VARCHAR, tiger_mask_iv VARCHAR)
### Response:
### Response:
SELECT akira FROM table_name_94 WHERE tiger_mask_iv = "akira (10:05)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who is the opponent for the game played on august 20, 2006?
### Context:
CREATE TABLE table_name_47 (opponent VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_47 WHERE date = "august 20, 2006"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the record when they played golden state?
### Context:
CREATE TABLE table_23274514_9 (record VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT record FROM table_23274514_9 WHERE team = "Golden 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:
Name the total number of roll for st joseph's school when decile is less than 5
### Context:
CREATE TABLE table_name_19 (roll VARCHAR, name VARCHAR, decile VARCHAR)
### Response:
### Response:
SELECT COUNT(roll) FROM table_name_19 WHERE name = "st joseph's school" AND decile < 5</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.