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 name of the constructor who has more than 50 laps and a grid of 7?
### Context:
CREATE TABLE table_name_9 (constructor VARCHAR, laps VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT constructor FROM table_name_9 WHERE laps > 50 AND grid = 7</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who built the conant creek pegram truss railroad bridge?
### Context:
CREATE TABLE table_name_71 (built VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT built FROM table_name_71 WHERE name = "conant creek pegram truss railroad bridge"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 smallest roll with a Decile larger than 6, and a Name of broomfield school?
### Context:
CREATE TABLE table_name_40 (roll INTEGER, decile VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT MIN(roll) FROM table_name_40 WHERE decile > 6 AND name = "broomfield school"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the to par dated may 4, 2003?
### Context:
CREATE TABLE table_1121352_2 (to_par VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT to_par FROM table_1121352_2 WHERE date = "May 4, 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:
Score of postponed (rain) rescheduled for June 27 had what loss?
### Context:
CREATE TABLE table_name_32 (loss VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT loss FROM table_name_32 WHERE score = "postponed (rain) rescheduled for june 27"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Place, when Points are greater than 2?
### Context:
CREATE TABLE table_name_17 (place INTEGER, points INTEGER)
### Response:
### Response:
SELECT MIN(place) FROM table_name_17 WHERE points > 2</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many tries for Nelson RFC?
### Context:
CREATE TABLE table_name_99 (tries_for VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT tries_for FROM table_name_99 WHERE club = "nelson rfc"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which TV Time has a Result of w 24–17?
### Context:
CREATE TABLE table_name_93 (tv_time VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT tv_time FROM table_name_93 WHERE result = "w 24–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:
Which source date has an Internet Explorer usage of 60.2%?
### Context:
CREATE TABLE table_name_52 (source VARCHAR, internet_explorer VARCHAR)
### Response:
### Response:
SELECT source FROM table_name_52 WHERE internet_explorer = "60.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 colours have a House Name of ogun?
### Context:
CREATE TABLE table_name_93 (colours VARCHAR, house_name VARCHAR)
### Response:
### Response:
SELECT colours FROM table_name_93 WHERE house_name = "ogun"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When did the episode featuring a master using Brazilian jiu-jitsu air?
### Context:
CREATE TABLE table_14937957_1 (original_airdate VARCHAR, martial_art_style VARCHAR)
### Response:
### Response:
SELECT original_airdate FROM table_14937957_1 WHERE martial_art_style = "Brazilian Jiu-Jitsu"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Kim Weiskopf and Jeff Franklin wrote all the no. in series.
### Context:
CREATE TABLE table_25276528_2 (no_in_series VARCHAR, written_by VARCHAR)
### Response:
### Response:
SELECT no_in_series FROM table_25276528_2 WHERE written_by = "Kim Weiskopf and Jeff Franklin"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 occurred when the 7800 was 5040.00?
### Context:
CREATE TABLE table_2544694_3 (indonesia_super_series_2008 VARCHAR)
### Response:
### Response:
SELECT indonesia_super_series_2008 FROM table_2544694_3 WHERE 780000 = "5040.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:
Name the most founded for sea gulls
### Context:
CREATE TABLE table_1973648_1 (founded INTEGER, nickname VARCHAR)
### Response:
### Response:
SELECT MAX(founded) FROM table_1973648_1 WHERE nickname = "Sea Gulls"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 version of Itu g.992.3 Annex J?
### Context:
CREATE TABLE table_name_97 (version VARCHAR, standard_name VARCHAR)
### Response:
### Response:
SELECT version FROM table_name_97 WHERE standard_name = "itu g.992.3 annex j"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 minimum amount of transactions whose type code is "PUR" and whose share count is bigger than 50.
### Context:
CREATE TABLE TRANSACTIONS (amount_of_transaction INTEGER, transaction_type_code VARCHAR, share_count VARCHAR)
### Response:
### Response:
SELECT MIN(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code = "PUR" AND share_count > 50</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the role for mono studio and title of paradise canyon
### Context:
CREATE TABLE table_name_62 (role VARCHAR, studio VARCHAR, title VARCHAR)
### Response:
### Response:
SELECT role FROM table_name_62 WHERE studio = "mono" AND title = "paradise canyon"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 iata for icao of tjrv
### Context:
CREATE TABLE table_name_2 (iata VARCHAR, icao VARCHAR)
### Response:
### Response:
SELECT iata FROM table_name_2 WHERE icao = "tjrv"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cfl teams for jeff traversy
### Context:
CREATE TABLE table_28059992_2 (cfl_team VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT COUNT(cfl_team) FROM table_28059992_2 WHERE player = "Jeff Traversy"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Song with an Issue Date(s) that is 19 june?
### Context:
CREATE TABLE table_name_70 (song VARCHAR, issue_date_s_ VARCHAR)
### Response:
### Response:
SELECT song FROM table_name_70 WHERE issue_date_s_ = "19 june"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 result from texas stadium?
### Context:
CREATE TABLE table_name_89 (result VARCHAR, field VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_89 WHERE field = "texas 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:
When did the course Vasto to Campitello Matese took place?
### Context:
CREATE TABLE table_name_25 (date VARCHAR, course VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_25 WHERE course = "vasto to campitello matese"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the home team on April 15?
### Context:
CREATE TABLE table_name_91 (home VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT home FROM table_name_91 WHERE date = "april 15"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which country is the player that went to Georgetown from?
### Context:
CREATE TABLE table_10015132_21 (nationality VARCHAR, school_club_team VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_10015132_21 WHERE school_club_team = "Georgetown"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 48-30 is the record who has the highest amount of points?
### Context:
CREATE TABLE table_23286158_10 (high_points VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT high_points FROM table_23286158_10 WHERE record = "48-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:
Who were the candidates in the district whose incumbent is Joe Waggonner?
### Context:
CREATE TABLE table_1341843_19 (candidates VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT candidates FROM table_1341843_19 WHERE incumbent = "Joe Waggonner"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
If the Representative is Barbara sears, what is the district number?
### Context:
CREATE TABLE table_26131768_4 (district INTEGER, representative VARCHAR)
### Response:
### Response:
SELECT MAX(district) FROM table_26131768_4 WHERE representative = "Barbara Sears"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 played that has points greater than 11, 1 as the position, and a loss less than 1?
### Context:
CREATE TABLE table_name_38 (played INTEGER, lost VARCHAR, points VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT MIN(played) FROM table_name_38 WHERE points > 11 AND position = 1 AND lost < 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 state Yi?
### Context:
CREATE TABLE table_name_35 (state VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT state FROM table_name_35 WHERE name = "yi"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 remixed an album of dance remixes?
### Context:
CREATE TABLE table_name_50 (remixed_by VARCHAR, album VARCHAR)
### Response:
### Response:
SELECT remixed_by FROM table_name_50 WHERE album = "dance remixes"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for round 1?
### Context:
CREATE TABLE table_29686983_1 (fastest_lap VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT fastest_lap FROM table_29686983_1 WHERE round = 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the Score of the game with a Record of 0-1?
### Context:
CREATE TABLE table_name_31 (score VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_31 WHERE record = "0-1"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Find the name and email of the user whose name contains the word ‘Swift’.
### Context:
CREATE TABLE user_profiles (name VARCHAR, email VARCHAR)
### Response:
### Response:
SELECT name, email FROM user_profiles WHERE name LIKE '%Swift%'</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Event in Round 1 with a Time of 1:25?
### Context:
CREATE TABLE table_name_21 (location VARCHAR, round VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_21 WHERE round = 1 AND time = "1: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:
Who is the women's doubles when the mixed doubles are sudket prapakamol saralee thungthongkam?
### Context:
CREATE TABLE table_27753492_2 (womens_doubles VARCHAR, mixed_doubles VARCHAR)
### Response:
### Response:
SELECT womens_doubles FROM table_27753492_2 WHERE mixed_doubles = "Sudket Prapakamol Saralee Thungthongkam"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 browser that became compatible with the accelerator 'CProxy' after year 1998 ?
### Context:
CREATE TABLE accelerator_compatible_browser (browser_id VARCHAR, accelerator_id VARCHAR, compatible_since_year VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, name VARCHAR); CREATE TABLE browser (name VARCHAR, id VARCHAR)
### Response:
### Response:
SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id = T3.id WHERE T3.name = 'CProxy' AND T2.compatible_since_year > 1998</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the status in the district with the incumbent Bob Barr?
### Context:
CREATE TABLE table_26336739_1 (status VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT status FROM table_26336739_1 WHERE incumbent = "Bob Barr"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1st leg when club is a.c. libertas?
### Context:
CREATE TABLE table_1233026_4 (club VARCHAR)
### Response:
### Response:
SELECT 1 AS st_leg FROM table_1233026_4 WHERE club = "A.C. Libertas"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 at march when class is j66
### Context:
CREATE TABLE table_15608800_2 (number_at_march VARCHAR, class VARCHAR)
### Response:
### Response:
SELECT number_at_march FROM table_15608800_2 WHERE class = "J66"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in the Louisiana 4 district?
### Context:
CREATE TABLE table_1341604_19 (candidates VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT candidates FROM table_1341604_19 WHERE district = "Louisiana 4"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the year for the film "Vitus"?
### Context:
CREATE TABLE table_22034853_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
### Response:
### Response:
SELECT year__ceremony_ FROM table_22034853_1 WHERE original_title = "Vitus"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Long with a Av/g of 124.9 but Loss greater than 0?
### Context:
CREATE TABLE table_name_3 (long VARCHAR, loss VARCHAR, avg_g VARCHAR)
### Response:
### Response:
SELECT COUNT(long) FROM table_name_3 WHERE loss > 0 AND avg_g = 124.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:
When the average ratings is 10.3%, what is the average episodes?
### Context:
CREATE TABLE table_name_32 (episodes INTEGER, average_ratings VARCHAR)
### Response:
### Response:
SELECT AVG(episodes) FROM table_name_32 WHERE average_ratings = "10.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:
Name the number of gn divisions for mannar
### Context:
CREATE TABLE table_24574438_1 (gn_divisions VARCHAR, ds_division VARCHAR)
### Response:
### Response:
SELECT COUNT(gn_divisions) FROM table_24574438_1 WHERE ds_division = "Mannar"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of San Diego State?
### Context:
CREATE TABLE table_name_63 (pick INTEGER, college VARCHAR)
### Response:
### Response:
SELECT AVG(pick) FROM table_name_63 WHERE college = "san diego 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 is 2006 when 1997 is 6.8?
### Context:
CREATE TABLE table_27146868_1 (Id VARCHAR)
### Response:
### Response:
SELECT 2006 FROM table_27146868_1 WHERE 1997 = "6.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:
What kind of Wind has an Athlete of kerron stewart?
### Context:
CREATE TABLE table_name_26 (wind VARCHAR, athlete VARCHAR)
### Response:
### Response:
SELECT wind FROM table_name_26 WHERE athlete = "kerron stewart"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 maximum kerry # for where others is 47
### Context:
CREATE TABLE table_1733457_1 (kerry_number INTEGER, others_number VARCHAR)
### Response:
### Response:
SELECT MAX(kerry_number) FROM table_1733457_1 WHERE others_number = 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:
How much Enrollment has an IHSAA Class of aaaaa, and a Mascot of spartans?
### Context:
CREATE TABLE table_name_79 (enrollment VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)
### Response:
### Response:
SELECT COUNT(enrollment) FROM table_name_79 WHERE ihsaa_class = "aaaaa" AND mascot = "spartans"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 position of the song that adam sandahl wrote?
### Context:
CREATE TABLE table_23585197_3 (position VARCHAR, songwriter_s_ VARCHAR)
### Response:
### Response:
SELECT position FROM table_23585197_3 WHERE songwriter_s_ = "Adam Sandahl"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Santa Clara was played how many times?
### Context:
CREATE TABLE table_21058836_1 (opponents VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT opponents FROM table_21058836_1 WHERE opponent = "Santa Clara"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 total number of moves with a result of ½–½ and a black of Anand before 1999?
### Context:
CREATE TABLE table_name_52 (moves VARCHAR, black VARCHAR, result VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT COUNT(moves) FROM table_name_52 WHERE result = "½–½" AND year < 1999 AND black = "anand"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which date has the tier of Itf $10k?
### Context:
CREATE TABLE table_name_66 (date VARCHAR, tier VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_66 WHERE tier = "itf $10k"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 North Melbourne is the Away team, what is the total number of the Crowd?
### Context:
CREATE TABLE table_name_46 (crowd VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT COUNT(crowd) FROM table_name_46 WHERE away_team = "north melbourne"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the final score on Saturday, May 25?
### Context:
CREATE TABLE table_24776075_2 (final_score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT final_score FROM table_24776075_2 WHERE date = "Saturday, May 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:
Where did Obama get 37.1%?
### Context:
CREATE TABLE table_20453681_1 (county VARCHAR, obama_percentage VARCHAR)
### Response:
### Response:
SELECT county FROM table_20453681_1 WHERE obama_percentage = "37.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 sum of 1938 values where 1933 values are under 68.3 and 1940 valures are under 4.02?
### Context:
CREATE TABLE table_name_8 (Id VARCHAR)
### Response:
### Response:
SELECT SUM(1938) FROM table_name_8 WHERE 1933 < 68.3 AND 1940 < 4.02</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What band has a year above 2011?
### Context:
CREATE TABLE table_name_75 (band VARCHAR, year INTEGER)
### Response:
### Response:
SELECT band FROM table_name_75 WHERE year > 2011</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Chassis had a Weslake v12 in it?
### Context:
CREATE TABLE table_name_30 (chassis VARCHAR, engine VARCHAR)
### Response:
### Response:
SELECT chassis FROM table_name_30 WHERE engine = "weslake v12"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the original air date for episode 4?
### Context:
CREATE TABLE table_23399481_3 (original_air_date VARCHAR, season__number VARCHAR)
### Response:
### Response:
SELECT original_air_date FROM table_23399481_3 WHERE season__number = 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 year was the game developed by Music Comp in?
### Context:
CREATE TABLE table_name_88 (year VARCHAR, developer VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_88 WHERE developer = "music comp"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 group B region with a Group E region of Georgia?
### Context:
CREATE TABLE table_name_17 (group_b VARCHAR, group_e VARCHAR)
### Response:
### Response:
SELECT group_b FROM table_name_17 WHERE group_e = "georgia"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When the United States had a total score of 274 what was the average year?
### Context:
CREATE TABLE table_name_67 (year INTEGER, total_score VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT AVG(year) FROM table_name_67 WHERE total_score = "274" AND country = "united states"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goals for were scored for the team(s) that won fewer than 4 games and lost more than 6?
### Context:
CREATE TABLE table_name_50 (goals_for INTEGER, wins VARCHAR, losses VARCHAR)
### Response:
### Response:
SELECT SUM(goals_for) FROM table_name_50 WHERE wins < 4 AND losses > 6</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Score has a Time of 2:28?
### Context:
CREATE TABLE table_name_41 (score VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_41 WHERE time = "2:28"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When Netherlands is the country what is the report?
### Context:
CREATE TABLE table_21191496_1 (report VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT report FROM table_21191496_1 WHERE country = "Netherlands"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team with laps less than 315 and co-drivers of david brabham franck lagorce?
### Context:
CREATE TABLE table_name_83 (team VARCHAR, laps VARCHAR, co_drivers VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_83 WHERE laps < 315 AND co_drivers = "david brabham franck lagorce"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 with a Score that is l 79–92 (ot)?
### Context:
CREATE TABLE table_name_35 (team VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_35 WHERE score = "l 79–92 (ot)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
For upper Arlington, what was the median household income?
### Context:
CREATE TABLE table_1840495_2 (median_house__hold_income VARCHAR, place VARCHAR)
### Response:
### Response:
SELECT median_house__hold_income FROM table_1840495_2 WHERE place = "Upper Arlington"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 hometowns shared by at least two teachers.
### Context:
CREATE TABLE teacher (Hometown VARCHAR)
### Response:
### Response:
SELECT Hometown FROM teacher GROUP BY Hometown 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:
Can you tell me the Third runner-up that has the Year of 1969?
### Context:
CREATE TABLE table_name_80 (third_runner_up VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT third_runner_up FROM table_name_80 WHERE year = 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 are the gains for the player with average of 26.8 and lost yard fewer than 13?
### Context:
CREATE TABLE table_name_43 (gain INTEGER, avg_g VARCHAR, loss VARCHAR)
### Response:
### Response:
SELECT SUM(gain) FROM table_name_43 WHERE avg_g = "26.8" AND loss < 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:
Name the opponent for april 24
### Context:
CREATE TABLE table_name_5 (opponent VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_5 WHERE date = "april 24"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the number in attendance at Los Angeles Memorial Coliseum?
### Context:
CREATE TABLE table_name_68 (attendance VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT COUNT(attendance) FROM table_name_68 WHERE venue = "los angeles memorial coliseum"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What higher harmonics have an NOAA of 8?
### Context:
CREATE TABLE table_name_19 (higher_harmonics VARCHAR, noaa VARCHAR)
### Response:
### Response:
SELECT higher_harmonics FROM table_name_19 WHERE noaa = "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:
The lowest rank with 2011 less than 80.7 and 2012 less than 73.1 is what?
### Context:
CREATE TABLE table_name_82 (rank INTEGER)
### Response:
### Response:
SELECT MIN(rank) FROM table_name_82 WHERE 2011 < 80.7 AND 2012 < 73.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 number Played that has 310 Points for?
### Context:
CREATE TABLE table_name_77 (played VARCHAR, points_for VARCHAR)
### Response:
### Response:
SELECT played FROM table_name_77 WHERE points_for = "310"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Runner-Up has a Last 16 of £300?
### Context:
CREATE TABLE table_name_52 (runner_up VARCHAR, last_16 VARCHAR)
### Response:
### Response:
SELECT runner_up FROM table_name_52 WHERE last_16 = "£300"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
On what date was the episode aired where event 2 was Hang Tough?
### Context:
CREATE TABLE table_17257687_1 (air_date VARCHAR, event_2 VARCHAR)
### Response:
### Response:
SELECT air_date FROM table_17257687_1 WHERE event_2 = "Hang Tough"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 3’UTR sequence has the GenBank ID at hq021440?
### Context:
CREATE TABLE table_name_87 (genbank_id VARCHAR)
### Response:
### Response:
SELECT 3 AS ’utr_sequence FROM table_name_87 WHERE genbank_id = "hq021440"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many Points have a Position larger than 4, and Losses larger than 5, and a Conceded of 15, and a Scored larger than 11?
### Context:
CREATE TABLE table_name_70 (points VARCHAR, scored VARCHAR, conceded VARCHAR, position VARCHAR, losses VARCHAR)
### Response:
### Response:
SELECT COUNT(points) FROM table_name_70 WHERE position > 4 AND losses > 5 AND conceded = 15 AND scored > 11</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the Republican when the green was Harold Burbank?
### Context:
CREATE TABLE table_name_27 (republican VARCHAR, green VARCHAR)
### Response:
### Response:
SELECT republican FROM table_name_27 WHERE green = "harold burbank"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who won the 250 cc in 1987?
### Context:
CREATE TABLE table_name_31 (year VARCHAR)
### Response:
### Response:
SELECT 250 AS _cc FROM table_name_31 WHERE 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 was the location and attendance for the game against the team with a 51-15 record with the Cavaliers?
### Context:
CREATE TABLE table_22654073_10 (location_attendance VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT location_attendance FROM table_22654073_10 WHERE record = "51-15"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the least game for october 10 at shibe park
### Context:
CREATE TABLE table_name_5 (game INTEGER, location VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT MIN(game) FROM table_name_5 WHERE location = "shibe park" AND date = "october 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 date of the Kmart greater greensboro open in North Carolina?
### Context:
CREATE TABLE table_name_65 (date VARCHAR, location VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_65 WHERE location = "north carolina" AND tournament = "kmart greater greensboro open"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 & name of the livery in 1958?
### Context:
CREATE TABLE table_name_78 (number_ VARCHAR, _name VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT number_ & _name FROM table_name_78 WHERE date = "1958"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What award was Hannah Gal the recipient of?
### Context:
CREATE TABLE table_name_23 (award VARCHAR, recipient VARCHAR)
### Response:
### Response:
SELECT award FROM table_name_23 WHERE recipient = "hannah gal"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When the year was 1992, what were the points won?
### Context:
CREATE TABLE table_1628607_5 (points_won VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT points_won FROM table_1628607_5 WHERE year = "1992"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the home team against Geelong?
### Context:
CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_70 WHERE away_team = "geelong"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the date of the Ace Group Classic tournament with a 1 stroke margin of victory?
### Context:
CREATE TABLE table_name_24 (date VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_24 WHERE margin_of_victory = "1 stroke" AND tournament = "the ace group classic"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What happened to the incombent who was elected in 1980?
### Context:
CREATE TABLE table_1341586_14 (result VARCHAR, first_elected VARCHAR)
### Response:
### Response:
SELECT result FROM table_1341586_14 WHERE first_elected = 1980</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 duration for viewership of 5.46 million
### Context:
CREATE TABLE table_17641206_6 (duration VARCHAR, viewership VARCHAR)
### Response:
### Response:
SELECT COUNT(duration) FROM table_17641206_6 WHERE viewership = "5.46 million"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 position of the player with a Height of 2.06 and club of Triumph Lyubertsy?
### Context:
CREATE TABLE table_name_99 (position VARCHAR, height VARCHAR, current_club VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_99 WHERE height = 2.06 AND current_club = "triumph lyubertsy"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Drawn is the average one that has a Position smaller than 9, and Points smaller than 22, and a Lost smaller than 9, and an Against larger than 29?
### Context:
CREATE TABLE table_name_76 (drawn INTEGER, against VARCHAR, lost VARCHAR, position VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT AVG(drawn) FROM table_name_76 WHERE position < 9 AND points < 22 AND lost < 9 AND against > 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 was the score in Spain T3?
### Context:
CREATE TABLE table_name_59 (score VARCHAR, place VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_59 WHERE place = "t3" AND country = "spain"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the platform & frequency [MHz] of the whr-g54s model?
### Context:
CREATE TABLE table_name_46 (platform_ VARCHAR, _frequency_ VARCHAR, mhz VARCHAR, model VARCHAR)
### Response:
### Response:
SELECT platform_ & _frequency_[mhz] FROM table_name_46 WHERE model = "whr-g54s"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tie no that has an Away team of altrincham?
### Context:
CREATE TABLE table_name_28 (tie_no VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT tie_no FROM table_name_28 WHERE away_team = "altrincham"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 appointment for the team osasuna?
### Context:
CREATE TABLE table_24231638_3 (date_of_appointment VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT date_of_appointment FROM table_24231638_3 WHERE team = "Osasuna"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 27 missing kisses used in nomination
### Context:
CREATE TABLE table_18069789_1 (e_ VARCHAR, film_title_used_in_nomination VARCHAR, year_ VARCHAR)
### Response:
### Response:
SELECT COUNT(year_)[e_] AS __ceremony_ FROM table_18069789_1 WHERE film_title_used_in_nomination = "27 Missing Kisses"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.