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 were the totals when the average is 6.25?
### Context:
CREATE TABLE table_28628309_6 (totals VARCHAR, average VARCHAR)
### Response:
### Response:
SELECT totals FROM table_28628309_6 WHERE average = "6.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 previous rank for italy with points more than 100
### Context:
CREATE TABLE table_name_92 (Previous VARCHAR, nationality VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT Previous AS rank FROM table_name_92 WHERE nationality = "italy" AND points > 100</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the style for 27
### Context:
CREATE TABLE table_28677723_14 (style VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT style FROM table_28677723_14 WHERE total = 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 lost from drawn of 1 or greater?
### Context:
CREATE TABLE table_name_18 (lost INTEGER, drawn INTEGER)
### Response:
### Response:
SELECT MIN(lost) FROM table_name_18 WHERE drawn > 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 different advisors are listed?
### Context:
CREATE TABLE Student (advisor VARCHAR)
### Response:
### Response:
SELECT COUNT(DISTINCT advisor) FROM Student</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Centennial has a del Pueblo of 1986?
### Context:
CREATE TABLE table_name_40 (centennial VARCHAR, del_pueblo VARCHAR)
### Response:
### Response:
SELECT centennial FROM table_name_40 WHERE del_pueblo = "1986"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in the high rebounds is in the honda center 15,625 location attendance?
### Context:
CREATE TABLE table_27734286_1 (high_rebounds VARCHAR, location_attendance VARCHAR)
### Response:
### Response:
SELECT high_rebounds FROM table_27734286_1 WHERE location_attendance = "Honda Center 15,625"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 socket location for sSPEC number sl3f7(kc0)sl3fj(kc0)?
### Context:
CREATE TABLE table_16400024_1 (socket VARCHAR, sspec_number VARCHAR)
### Response:
### Response:
SELECT socket FROM table_16400024_1 WHERE sspec_number = "SL3F7(kC0)SL3FJ(kC0)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record has 2:57 as the time?
### Context:
CREATE TABLE table_name_91 (record VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_91 WHERE time = "2:57"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who wrote the episode "The Dream Lover", which was viewed by 3.96 million viewers?
### Context:
CREATE TABLE table_17467578_1 (written_by VARCHAR, us_viewers__million_ VARCHAR)
### Response:
### Response:
SELECT written_by FROM table_17467578_1 WHERE us_viewers__million_ = "3.96"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Byes have Losses larger than 0, and an Against larger than 3049?
### Context:
CREATE TABLE table_name_7 (byes INTEGER, losses VARCHAR, against VARCHAR)
### Response:
### Response:
SELECT AVG(byes) FROM table_name_7 WHERE losses > 0 AND against > 3049</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 highest place result in 2010 with a Clean and Jerk weight of 224kg?
### Context:
CREATE TABLE table_name_92 (place INTEGER, year VARCHAR, clean_and_jerk VARCHAR)
### Response:
### Response:
SELECT MAX(place) FROM table_name_92 WHERE year = 2010 AND clean_and_jerk = "224kg"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 times the tournament was pga championship and evens is less than 4?
### Context:
CREATE TABLE table_name_95 (top_5 VARCHAR, tournament VARCHAR, events VARCHAR)
### Response:
### Response:
SELECT COUNT(top_5) FROM table_name_95 WHERE tournament = "pga championship" AND events < 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:
How many entries are shown for high points when the score was l 87–89 (ot)?
### Context:
CREATE TABLE table_27722408_6 (high_points VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT COUNT(high_points) FROM table_27722408_6 WHERE score = "L 87–89 (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:
what is the right ascension (j2000) when the constellation is sextans and the declination (j2000) is °28′01″?
### Context:
CREATE TABLE table_name_53 (right_ascension___j2000__ VARCHAR, constellation VARCHAR, declination___j2000__ VARCHAR)
### Response:
### Response:
SELECT right_ascension___j2000__ FROM table_name_53 WHERE constellation = "sextans" AND declination___j2000__ = "°28′01″"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team at Arden Street Oval?
### Context:
CREATE TABLE table_name_24 (away_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_24 WHERE venue = "arden street oval"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the Partner in a game with the Score of 6–4, 6–2 on a hard surface?
### Context:
CREATE TABLE table_name_74 (partner VARCHAR, surface VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT partner FROM table_name_74 WHERE surface = "hard" AND score = "6–4, 6–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 Power, when City of License is Sioux Lookout?
### Context:
CREATE TABLE table_name_93 (power VARCHAR, city_of_license VARCHAR)
### Response:
### Response:
SELECT power FROM table_name_93 WHERE city_of_license = "sioux lookout"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who wrote the episode that originally aired April 29, 1994?
### Context:
CREATE TABLE table_2468961_4 (written_by VARCHAR, original_air_date VARCHAR)
### Response:
### Response:
SELECT written_by FROM table_2468961_4 WHERE original_air_date = "April 29, 1994"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the L2 cache for the 7140N model?
### Context:
CREATE TABLE table_269920_3 (l2_cache__mb_ VARCHAR, model VARCHAR)
### Response:
### Response:
SELECT l2_cache__mb_ FROM table_269920_3 WHERE model = "7140N"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opposition has a City of taunton?
### Context:
CREATE TABLE table_name_17 (opposition VARCHAR, city VARCHAR)
### Response:
### Response:
SELECT opposition FROM table_name_17 WHERE city = "taunton"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 who made the most scores on new jersey
### Context:
CREATE TABLE table_13464416_6 (high_points VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT high_points FROM table_13464416_6 WHERE team = "New Jersey"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 result has a Location of canada, and a Record of 3-3?
### Context:
CREATE TABLE table_name_77 (res VARCHAR, location VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT res FROM table_name_77 WHERE location = "canada" AND record = "3-3"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the weekly rank for living when the air date is october 6, 2008?
### Context:
CREATE TABLE table_name_96 (weekly_rank_for_living VARCHAR, air_date VARCHAR)
### Response:
### Response:
SELECT weekly_rank_for_living FROM table_name_96 WHERE air_date = "october 6, 2008"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the first leg score for the match that had AS Police as team 2?
### Context:
CREATE TABLE table_name_34 (team_2 VARCHAR)
### Response:
### Response:
SELECT 1 AS st_leg FROM table_name_34 WHERE team_2 = "as police"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 end dates are there for the series seen by 4.2 million people?
### Context:
CREATE TABLE table_24057191_2 (end_date VARCHAR, average_viewers__millions_ VARCHAR)
### Response:
### Response:
SELECT COUNT(end_date) FROM table_24057191_2 WHERE average_viewers__millions_ = "4.2"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the away team at Windy Hill?
### Context:
CREATE TABLE table_name_11 (away_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_11 WHERE venue = "windy hill"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 ANSI code of the township where the area is 35.737 square miles?
### Context:
CREATE TABLE table_18600760_18 (ansi_code INTEGER, land___sqmi__ VARCHAR)
### Response:
### Response:
SELECT MIN(ansi_code) FROM table_18600760_18 WHERE land___sqmi__ = "35.737"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 how many times the number of people in the room reached the maximum occupancy of the room. The number of people include adults and kids.
### Context:
CREATE TABLE Rooms (RoomId VARCHAR, maxOccupancy VARCHAR); CREATE TABLE Reservations (Room VARCHAR, Adults VARCHAR, Kids VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM Reservations AS T1 JOIN Rooms AS T2 ON T1.Room = T2.RoomId WHERE T2.maxOccupancy = T1.Adults + T1.Kids</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 capacity for Bursa?
### Context:
CREATE TABLE table_name_10 (capacity INTEGER, city VARCHAR)
### Response:
### Response:
SELECT MIN(capacity) FROM table_name_10 WHERE city = "bursa"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Give the Finish for a Stage that is larger than 15
### Context:
CREATE TABLE table_name_44 (finish VARCHAR, stage INTEGER)
### Response:
### Response:
SELECT finish FROM table_name_44 WHERE stage > 15</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What notes have a rank greater than 2, with mexico as the country?
### Context:
CREATE TABLE table_name_64 (notes VARCHAR, rank VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT notes FROM table_name_64 WHERE rank > 2 AND country = "mexico"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What place did the player from England come in?
### Context:
CREATE TABLE table_name_50 (place VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_50 WHERE country = "england"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many distinct countries are the climbers from?
### Context:
CREATE TABLE climber (Country VARCHAR)
### Response:
### Response:
SELECT COUNT(DISTINCT Country) FROM climber</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did they play against in a week after 6 and the result was l 30–24?
### Context:
CREATE TABLE table_name_32 (opponent VARCHAR, week VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_32 WHERE week > 6 AND result = "l 30–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:
Which result has a Date of november 2, 2007?
### Context:
CREATE TABLE table_name_86 (result VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_86 WHERE date = "november 2, 2007"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What country has a +3 to par?
### Context:
CREATE TABLE table_name_57 (country VARCHAR, to_par VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_57 WHERE to_par = "+3"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the series number for the episode directed by jay sandrich that aired October 23, 1986?
### Context:
CREATE TABLE table_2818164_4 (no_in_series INTEGER, directed_by VARCHAR, original_air_date VARCHAR)
### Response:
### Response:
SELECT MIN(no_in_series) FROM table_2818164_4 WHERE directed_by = "Jay Sandrich" AND original_air_date = "October 23, 1986"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Outcome, when Tournament is "Chiang Mai , Thailand"?
### Context:
CREATE TABLE table_name_90 (outcome VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT outcome FROM table_name_90 WHERE tournament = "chiang mai , thailand"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Player with Versus with australia?
### Context:
CREATE TABLE table_name_34 (player VARCHAR, versus VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_34 WHERE versus = "australia"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Constituency number for Bikhangaon with a Reserved for ( SC / ST /None) of st?
### Context:
CREATE TABLE table_name_11 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT constituency_number FROM table_name_11 WHERE reserved_for___sc___st__none_ = "st" AND name = "bikhangaon"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 air dates for 102 episode
### Context:
CREATE TABLE table_15584067_7 (original_air_date VARCHAR, no_in_series VARCHAR)
### Response:
### Response:
SELECT COUNT(original_air_date) FROM table_15584067_7 WHERE no_in_series = "102"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 stroke where the vehicle code is t211?
### Context:
CREATE TABLE table_23722304_2 (stroke__mm_ VARCHAR, vehicle_code VARCHAR)
### Response:
### Response:
SELECT stroke__mm_ FROM table_23722304_2 WHERE vehicle_code = "T211"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 director of the episode with series number 116?
### Context:
CREATE TABLE table_28212888_2 (directed_by VARCHAR, no_in_series VARCHAR)
### Response:
### Response:
SELECT directed_by FROM table_28212888_2 WHERE no_in_series = 116</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is Shaq Thompson from?
### Context:
CREATE TABLE table_11677691_6 (hometown VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT hometown FROM table_11677691_6 WHERE player = "Shaq Thompson"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 was the successor seated in March 28, 1878?
### Context:
CREATE TABLE table_2417390_4 (district VARCHAR, date_successor_seated VARCHAR)
### Response:
### Response:
SELECT district FROM table_2417390_4 WHERE date_successor_seated = "March 28, 1878"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 seasons have a production code of 204?
### Context:
CREATE TABLE table_16581695_3 (no_in_season VARCHAR, production_code VARCHAR)
### Response:
### Response:
SELECT COUNT(no_in_season) FROM table_16581695_3 WHERE production_code = 204</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What team was c1 class, had over 331 laps after 1990?
### Context:
CREATE TABLE table_name_55 (team VARCHAR, year VARCHAR, class VARCHAR, laps VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_55 WHERE class = "c1" AND laps > 331 AND year > 1990</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What score did Dixon give to the song "samba / young hearts run free", which was in second place?
### Context:
CREATE TABLE table_1014319_1 (dixon VARCHAR, dance_song VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT dixon FROM table_1014319_1 WHERE dance_song = "Samba / Young Hearts Run Free" AND result = "Second place"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location on 2006-04-07 for direct fire
### Context:
CREATE TABLE table_name_9 (location VARCHAR, date VARCHAR, circumstances VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_9 WHERE date = "2006-04-07" AND circumstances = "direct fire"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What date was the game against Royal Antwerp?
### Context:
CREATE TABLE table_name_87 (date VARCHAR, opponents VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_87 WHERE opponents = "royal antwerp"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first elected for re-elected and brian higgins
### Context:
CREATE TABLE table_19753079_35 (first_elected VARCHAR, result VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT first_elected FROM table_19753079_35 WHERE result = "Re-elected" AND incumbent = "Brian Higgins"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Where was the game played and what was the attendance on May 13?
### Context:
CREATE TABLE table_27756474_13 (location_attendance VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT location_attendance FROM table_27756474_13 WHERE date = "May 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:
Where is the director Dariush Mehrjui from?
### Context:
CREATE TABLE table_name_99 (country VARCHAR, director VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_99 WHERE director = "dariush mehrjui"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time has eddie miller as opponent?
### Context:
CREATE TABLE table_name_11 (time VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT time FROM table_name_11 WHERE opponent = "eddie miller"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 products have a price higher than the average?
### Context:
CREATE TABLE products (product_price INTEGER)
### Response:
### Response:
SELECT COUNT(*) FROM products WHERE product_price > (SELECT AVG(product_price) FROM products)</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which player had a position of OL from Ohio State?
### Context:
CREATE TABLE table_name_65 (player VARCHAR, pos VARCHAR, college VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_65 WHERE pos = "ol" AND college = "ohio 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:
Who was the original artist of the Top 12 Men theme?
### Context:
CREATE TABLE table_27614707_1 (original_artist VARCHAR, theme VARCHAR)
### Response:
### Response:
SELECT original_artist FROM table_27614707_1 WHERE theme = "Top 12 Men"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high rebounds when the high assists were from J. Johnson (7)?
### Context:
CREATE TABLE table_11961582_10 (high_rebounds VARCHAR, high_assists VARCHAR)
### Response:
### Response:
SELECT high_rebounds FROM table_11961582_10 WHERE high_assists = "J. Johnson (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 sum of frequency will call sign of k259aw
### Context:
CREATE TABLE table_name_67 (frequency_mhz INTEGER, call_sign VARCHAR)
### Response:
### Response:
SELECT SUM(frequency_mhz) FROM table_name_67 WHERE call_sign = "k259aw"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
I want to know the lowest week with a date of december 19, 2004
### Context:
CREATE TABLE table_name_26 (week INTEGER, date VARCHAR)
### Response:
### Response:
SELECT MIN(week) FROM table_name_26 WHERE date = "december 19, 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:
How many tries did the player Paul Sykes take when he earned 0 points?
### Context:
CREATE TABLE table_name_49 (tries INTEGER, player VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT MAX(tries) FROM table_name_49 WHERE player = "paul sykes" AND points > 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's the salmonella with shigella being ipgc
### Context:
CREATE TABLE table_10321124_1 (salmonella VARCHAR, shigella VARCHAR)
### Response:
### Response:
SELECT salmonella FROM table_10321124_1 WHERE shigella = "IpgC"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average Laps for grid of 6
### Context:
CREATE TABLE table_name_51 (laps INTEGER, grid VARCHAR)
### Response:
### Response:
SELECT AVG(laps) FROM table_name_51 WHERE grid = 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:
At what venue was the game played where the away team was South Melbourne
### Context:
CREATE TABLE table_name_49 (venue VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_49 WHERE away_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:
When 12th is the final placing what is the wins?
### Context:
CREATE TABLE table_26815674_1 (wins VARCHAR, final_placing VARCHAR)
### Response:
### Response:
SELECT wins FROM table_26815674_1 WHERE final_placing = "12th"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What home team had a record of 4-16-7?
### Context:
CREATE TABLE table_name_34 (home VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT home FROM table_name_34 WHERE record = "4-16-7"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Brazil scorers have a 1-1 Score?
### Context:
CREATE TABLE table_name_93 (brazil_scorers VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT brazil_scorers FROM table_name_93 WHERE score = "1-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 location of the game with a score of 2:3?
### Context:
CREATE TABLE table_name_90 (location VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_90 WHERE score = "2: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 integrated school had a decile of 2 and a roll larger than 55?
### Context:
CREATE TABLE table_name_69 (name VARCHAR, roll VARCHAR, decile VARCHAR, authority VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_69 WHERE decile = 2 AND authority = "integrated" AND roll > 55</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lifetime Achievement Award when Snow Patrol performed and Juliet Turner presented?
### Context:
CREATE TABLE table_name_38 (lifetime_achievement_award VARCHAR, band VARCHAR, female VARCHAR)
### Response:
### Response:
SELECT lifetime_achievement_award FROM table_name_38 WHERE band = "snow patrol" AND female = "juliet turner"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 trains have 'Express' in their names?
### Context:
CREATE TABLE train (name VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM train WHERE name LIKE "%Express%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the result of the game played on May 5?
### Context:
CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_5 WHERE date = "may 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 grid when the time/retired is +27.112?
### Context:
CREATE TABLE table_name_79 (grid VARCHAR, time_retired VARCHAR)
### Response:
### Response:
SELECT grid FROM table_name_79 WHERE time_retired = "+27.112"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 fr-08: the product ( farbrausch ) win best pc intro?
### Context:
CREATE TABLE table_2490289_1 (year VARCHAR, pc_intro VARCHAR)
### Response:
### Response:
SELECT year FROM table_2490289_1 WHERE pc_intro = "FR-08: The Product ( Farbrausch )"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 height when the locale is nepean sea road, floors is more than 30 and sr no is 58?
### Context:
CREATE TABLE table_name_99 (height VARCHAR, sr_no VARCHAR, locale VARCHAR, floors VARCHAR)
### Response:
### Response:
SELECT height FROM table_name_99 WHERE locale = "nepean sea road" AND floors > 30 AND sr_no = 58</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ids of all distinct orders ordered by placed date.
### Context:
CREATE TABLE orders (order_id VARCHAR, date_order_placed VARCHAR)
### Response:
### Response:
SELECT DISTINCT order_id FROM orders ORDER BY date_order_placed</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ran in the election where Claude Fuller was the incumbent?
### Context:
CREATE TABLE table_1342338_5 (candidates VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT candidates FROM table_1342338_5 WHERE incumbent = "Claude Fuller"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Current Club has a Rank of 4?
### Context:
CREATE TABLE table_name_20 (current_club VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT current_club FROM table_name_20 WHERE rank = 4</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is every strike rate when cathces/stumpings is 13/1?
### Context:
CREATE TABLE table_2985664_8 (strike_rate VARCHAR, catches_stumpings VARCHAR)
### Response:
### Response:
SELECT strike_rate FROM table_2985664_8 WHERE catches_stumpings = "13/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:
Name the most draws when goals against is more than 56 and wins is more than 14
### Context:
CREATE TABLE table_name_89 (draws INTEGER, goals_against VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT MAX(draws) FROM table_name_89 WHERE goals_against > 56 AND wins > 14</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 PICK FOR JOE DAY, ROUND LARGER THAN 1, AND OVERALL SMALLER THAN 150?
### Context:
CREATE TABLE table_name_57 (pick INTEGER, overall VARCHAR, round VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT MIN(pick) FROM table_name_57 WHERE round > 1 AND name = "joe day" AND overall < 150</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week had 39,056 people in attendance?
### Context:
CREATE TABLE table_name_89 (week VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT week FROM table_name_89 WHERE attendance = "39,056"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in the family has a gentle personality?
### Context:
CREATE TABLE table_1912713_2 (家族_family VARCHAR, 性情_personality VARCHAR)
### Response:
### Response:
SELECT 家族_family FROM table_1912713_2 WHERE 性情_personality = "Gentle"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cover models were on the edition that featured Jennifer Pershing as the centerfold?
### Context:
CREATE TABLE table_1566852_10 (cover_model VARCHAR, centerfold_model VARCHAR)
### Response:
### Response:
SELECT COUNT(cover_model) FROM table_1566852_10 WHERE centerfold_model = "Jennifer Pershing"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What source gave 26% of the votes to Brian Moran?
### Context:
CREATE TABLE table_21535453_1 (source VARCHAR, brian_moran VARCHAR)
### Response:
### Response:
SELECT source FROM table_21535453_1 WHERE brian_moran = "26%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the most common company type, and how many are there?
### Context:
CREATE TABLE operate_company (TYPE VARCHAR)
### Response:
### Response:
SELECT TYPE, COUNT(*) FROM operate_company GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the loss of the game when the record was 20-16?
### Context:
CREATE TABLE table_name_77 (loss VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT loss FROM table_name_77 WHERE record = "20-16"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Illinois 13 District's Party?
### Context:
CREATE TABLE table_name_59 (party VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT party FROM table_name_59 WHERE district = "illinois 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:
Who scored the most points?
### Context:
CREATE TABLE table_14342367_11 (points INTEGER)
### Response:
### Response:
SELECT MAX(points) FROM table_14342367_11</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the smallest Class Position that has drivers Les Palmer, Terry Morris, and a Position larger than 23?
### Context:
CREATE TABLE table_name_59 (class INTEGER, drivers VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT MIN(class) AS position FROM table_name_59 WHERE drivers = "les palmer, terry morris" AND position > 23</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team at the Football Park match?
### Context:
CREATE TABLE table_name_18 (away_team VARCHAR, ground VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_18 WHERE ground = "football park"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Away team score has a Home team of richmond?
### Context:
CREATE TABLE table_name_58 (away_team VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT away_team AS score FROM table_name_58 WHERE home_team = "richmond"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Constructor has a +1.027 Time/Retired?
### Context:
CREATE TABLE table_name_21 (constructor VARCHAR, time_retired VARCHAR)
### Response:
### Response:
SELECT constructor FROM table_name_21 WHERE time_retired = "+1.027"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 hits for year less than 1920 and player of ed delahanty
### Context:
CREATE TABLE table_name_28 (hits INTEGER, year VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT MIN(hits) FROM table_name_28 WHERE year < 1920 AND player = "ed delahanty"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 last year a sponsorship ended?
### Context:
CREATE TABLE table_28005160_2 (sponsorship INTEGER)
### Response:
### Response:
SELECT MAX(sponsorship) AS Ended FROM table_28005160_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:
Show student ids for all male students.
### Context:
CREATE TABLE Student (StuID VARCHAR, Sex VARCHAR)
### Response:
### Response:
SELECT StuID FROM Student WHERE Sex = 'M'</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Fate of the San Pablo ship?
### Context:
CREATE TABLE table_name_48 (fate VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT fate FROM table_name_48 WHERE name = "san pablo"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 categories that have at least two books after year 1989.
### Context:
CREATE TABLE book_club (category VARCHAR, YEAR INTEGER)
### Response:
### Response:
SELECT category FROM book_club WHERE YEAR > 1989 GROUP BY category 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:
What is the %2006 when the %2001 was more than 62.5?
### Context:
CREATE TABLE table_name_52 (_percentage_2006 INTEGER, _percentage_2001 INTEGER)
### Response:
### Response:
SELECT AVG(_percentage_2006) FROM table_name_52 WHERE _percentage_2001 > 62.5</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.