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:
Which nation has a heat of 4, and is ranked 8?
### Context:
CREATE TABLE table_name_13 (nation VARCHAR, heat VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT nation FROM table_name_13 WHERE heat = 4 AND rank = 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 report is for the Pau circuit?
### Context:
CREATE TABLE table_1140111_5 (report VARCHAR, circuit VARCHAR)
### Response:
### Response:
SELECT report FROM table_1140111_5 WHERE circuit = "Pau"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 discs
### Context:
CREATE TABLE table_14562722_2 (discs INTEGER)
### Response:
### Response:
SELECT MAX(discs) FROM table_14562722_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 model has both a standard byte string and floating-point?
### Context:
CREATE TABLE table_name_90 (model VARCHAR, byte_string VARCHAR, floating_point VARCHAR)
### Response:
### Response:
SELECT model FROM table_name_90 WHERE byte_string = "standard" AND floating_point = "standard"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which venue had a note of 3:34.88 after 2003?
### Context:
CREATE TABLE table_name_32 (venue VARCHAR, year VARCHAR, notes VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_32 WHERE year > 2003 AND notes = "3:34.88"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What position did the player from San Jose State play?
### Context:
CREATE TABLE table_22719663_3 (position VARCHAR, college VARCHAR)
### Response:
### Response:
SELECT position FROM table_22719663_3 WHERE college = "San Jose 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:
List the description of all the colors.
### Context:
CREATE TABLE ref_colors (color_description VARCHAR)
### Response:
### Response:
SELECT color_description FROM ref_colors</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week was the finalist Martina Hingis?
### Context:
CREATE TABLE table_name_6 (week VARCHAR, finalist VARCHAR)
### Response:
### Response:
SELECT week FROM table_name_6 WHERE finalist = "martina hingis"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Attendance of 30,335 had what record?
### Context:
CREATE TABLE table_name_74 (record VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_74 WHERE attendance = "30,335"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Website, when License is Apache License 2.0?
### Context:
CREATE TABLE table_name_55 (website VARCHAR, license VARCHAR)
### Response:
### Response:
SELECT website FROM table_name_55 WHERE license = "apache license 2.0"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many s hindu are where buddhists are 955?
### Context:
CREATE TABLE table_14598_5 (s_hindu VARCHAR, buddhist VARCHAR)
### Response:
### Response:
SELECT s_hindu FROM table_14598_5 WHERE buddhist = "955"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 club where the home ground is wilfred taylor reserve?
### Context:
CREATE TABLE table_name_80 (location VARCHAR, home_ground VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_80 WHERE home_ground = "wilfred taylor reserve"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the earliest season with a premiere of february5,2007?
### Context:
CREATE TABLE table_name_90 (episodes INTEGER, premiere VARCHAR)
### Response:
### Response:
SELECT MIN(episodes) FROM table_name_90 WHERE premiere = "february5,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:
With a club that has 400 Points against, what are the points?
### Context:
CREATE TABLE table_name_50 (points_for VARCHAR, points_against VARCHAR)
### Response:
### Response:
SELECT points_for FROM table_name_50 WHERE points_against = "400"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Overall Record that has the Week smaller than 16, and the Divisional Record of (1-0), and the Away Team of miami?
### Context:
CREATE TABLE table_name_42 (overall_record VARCHAR, away_team VARCHAR, week VARCHAR, divisional_record VARCHAR)
### Response:
### Response:
SELECT overall_record FROM table_name_42 WHERE week < 16 AND divisional_record = "(1-0)" AND away_team = "miami"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Rank smaller than 5, and a Time larger than 10.7, and a Date of 10 july 2009 has what location?
### Context:
CREATE TABLE table_name_37 (location VARCHAR, date VARCHAR, rank VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_37 WHERE rank < 5 AND time > 10.7 AND date = "10 july 2009"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What are the first and last name for those employees who works either in department 70 or 90?
### Context:
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, department_id VARCHAR)
### Response:
### Response:
SELECT first_name, last_name FROM employees WHERE department_id = 70 OR department_id = 90</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sail number is AUS 03, what are all associated race numbers?
### Context:
CREATE TABLE table_14882588_2 (race_number VARCHAR, sail_number VARCHAR)
### Response:
### Response:
SELECT race_number FROM table_14882588_2 WHERE sail_number = "AUS 03"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 place for the player whose final score was 71-69=140?
### Context:
CREATE TABLE table_name_78 (place VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_78 WHERE score = 71 - 69 = 140</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many picks does Auburn have?
### Context:
CREATE TABLE table_name_47 (pick VARCHAR, school_club_team VARCHAR)
### Response:
### Response:
SELECT COUNT(pick) FROM table_name_47 WHERE school_club_team = "auburn"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Melbourne has Sydney yes, Gold Coast yes, and Perth yes?
### Context:
CREATE TABLE table_name_71 (melbourne VARCHAR, perth VARCHAR, sydney VARCHAR, gold_coast VARCHAR)
### Response:
### Response:
SELECT melbourne FROM table_name_71 WHERE sydney = "yes" AND gold_coast = "yes" AND perth = "yes"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 have Games smaller than 6, and a Debut year of 1939, and Years at club of 1939, 1941?
### Context:
CREATE TABLE table_name_48 (goals VARCHAR, years_at_club VARCHAR, games VARCHAR, debut_year VARCHAR)
### Response:
### Response:
SELECT COUNT(goals) FROM table_name_48 WHERE games < 6 AND debut_year = 1939 AND years_at_club = "1939, 1941"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 assists when the game was less than 13 and the score was w 75-66?
### Context:
CREATE TABLE table_name_41 (high_assists VARCHAR, game VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT high_assists FROM table_name_41 WHERE game < 13 AND score = "w 75-66"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
In which round is pick number 242?
### Context:
CREATE TABLE table_name_92 (round VARCHAR, pick VARCHAR)
### Response:
### Response:
SELECT COUNT(round) FROM table_name_92 WHERE pick = "242"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 runner-up for the intercontinental cup
### Context:
CREATE TABLE table_name_67 (intercontinental_cup_1998 VARCHAR, copa_mercosur_1998 VARCHAR)
### Response:
### Response:
SELECT intercontinental_cup_1998 FROM table_name_67 WHERE copa_mercosur_1998 = "runner-up"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Player has a Place of t2?
### Context:
CREATE TABLE table_name_31 (player VARCHAR, place VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_31 WHERE place = "t2"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rating of the episode with a rating/share of 0.9/4?
### Context:
CREATE TABLE table_17525955_2 (rating VARCHAR)
### Response:
### Response:
SELECT rating FROM table_17525955_2 WHERE rating / SHARE(18 AS –49) = 0.9 / 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 n are listed for 0.6% r1b1a2 (r-m269)?
### Context:
CREATE TABLE table_21481509_4 (COUnT VARCHAR, r1b1a2__r_m269_ VARCHAR)
### Response:
### Response:
SELECT COUnT AS n FROM table_21481509_4 WHERE r1b1a2__r_m269_ = "0.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:
How many NHL teams does Terry French play for?
### Context:
CREATE TABLE table_1213511_2 (nhl_team VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT COUNT(nhl_team) FROM table_1213511_2 WHERE player = "Terry French"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 racing team/s had the 92nd position?
### Context:
CREATE TABLE table_2190919_1 (team_s_ VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT team_s_ FROM table_2190919_1 WHERE position = "92nd"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the film that has music of nino oliviero?
### Context:
CREATE TABLE table_name_10 (country VARCHAR, music VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_10 WHERE music = "nino oliviero"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Gauthier had a 15 Liscumb?
### Context:
CREATE TABLE table_name_65 (gauthier VARCHAR, liscumb VARCHAR)
### Response:
### Response:
SELECT gauthier FROM table_name_65 WHERE liscumb = "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:
When 22 is the tries for what is the lost?
### Context:
CREATE TABLE table_17941032_1 (lost VARCHAR, tries_for VARCHAR)
### Response:
### Response:
SELECT lost FROM table_17941032_1 WHERE tries_for = "22"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 hypotenuse for vertices 月山泛 δymf
### Context:
CREATE TABLE table_25519358_1 (hypotenuse_0_c VARCHAR, vertices VARCHAR)
### Response:
### Response:
SELECT hypotenuse_0_c FROM table_25519358_1 WHERE vertices = "月山泛 ΔYMF"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grids for peter gethin?
### Context:
CREATE TABLE table_name_58 (grid INTEGER, driver VARCHAR)
### Response:
### Response:
SELECT SUM(grid) FROM table_name_58 WHERE driver = "peter gethin"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 longitude is 147.1w what is the namesake of the feature?
### Context:
CREATE TABLE table_16768245_2 (namesake VARCHAR, longitude VARCHAR)
### Response:
### Response:
SELECT namesake FROM table_16768245_2 WHERE longitude = "147.1W"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of total for vovinam and bronze less than 3
### Context:
CREATE TABLE table_name_16 (total VARCHAR, sport VARCHAR, bronze VARCHAR)
### Response:
### Response:
SELECT COUNT(total) FROM table_name_16 WHERE sport = "vovinam" AND bronze < 3</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who operates the xfm station?
### Context:
CREATE TABLE table_1601792_3 (operator VARCHAR, station VARCHAR)
### Response:
### Response:
SELECT operator FROM table_1601792_3 WHERE station = "XFM"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average money has a To par larger than 12?
### Context:
CREATE TABLE table_name_16 (money___ INTEGER, to_par INTEGER)
### Response:
### Response:
SELECT AVG(money___) AS $__ FROM table_name_16 WHERE to_par > 12</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the type for hobart college
### Context:
CREATE TABLE table_1974482_1 (type VARCHAR, institution VARCHAR)
### Response:
### Response:
SELECT type FROM table_1974482_1 WHERE institution = "Hobart College"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year for spiele leben
### Context:
CREATE TABLE table_16255245_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
### Response:
### Response:
SELECT year__ceremony_ FROM table_16255245_1 WHERE original_title = "Spiele Leben"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 opponent when they played at the legion field • birmingham, al site?
### Context:
CREATE TABLE table_name_7 (opponent VARCHAR, site VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_7 WHERE site = "legion field • birmingham, al"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 no votes
### Context:
CREATE TABLE table_256286_14 (no_votes INTEGER)
### Response:
### Response:
SELECT MAX(no_votes) FROM table_256286_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:
How many 3rd ru does Canada have?
### Context:
CREATE TABLE table_17522854_6 (country VARCHAR)
### Response:
### Response:
SELECT COUNT(3 AS rd_ru) FROM table_17522854_6 WHERE country = "Canada"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What date did the episode that was written by Fintan Ryan originally air?
### Context:
CREATE TABLE table_27218002_2 (originalairdate VARCHAR, written_by VARCHAR)
### Response:
### Response:
SELECT originalairdate FROM table_27218002_2 WHERE written_by = "Fintan Ryan"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many touchdowns were made where field goals were less than 0?
### Context:
CREATE TABLE table_name_81 (touchdowns INTEGER, field_goals INTEGER)
### Response:
### Response:
SELECT SUM(touchdowns) FROM table_name_81 WHERE field_goals < 0</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Masaaki Mochizuki has a Gran Hamada of hamada (10:47)?
### Context:
CREATE TABLE table_name_56 (masaaki_mochizuki VARCHAR, gran_hamada VARCHAR)
### Response:
### Response:
SELECT masaaki_mochizuki FROM table_name_56 WHERE gran_hamada = "hamada (10:47)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the highest goals against the goalkeeper of Dallas Burn, who had a GA average larger than 1.46, had?
### Context:
CREATE TABLE table_name_96 (goals_against INTEGER, club VARCHAR, ga_average VARCHAR)
### Response:
### Response:
SELECT MAX(goals_against) FROM table_name_96 WHERE club = "dallas burn" AND ga_average > 1.46</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 courses that do not have prerequisite?
### Context:
CREATE TABLE prereq (course_id VARCHAR); CREATE TABLE course (course_id VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM course WHERE NOT course_id IN (SELECT course_id FROM prereq)</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the date successor seated is south carolina 3rd
### Context:
CREATE TABLE table_224837_4 (date_successor_seated VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT date_successor_seated FROM table_224837_4 WHERE district = "South Carolina 3rd"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Zone 2008 has Services of greater anglia, and a Station of cheshunt?
### Context:
CREATE TABLE table_name_17 (zone_2008 VARCHAR, services VARCHAR, station VARCHAR)
### Response:
### Response:
SELECT zone_2008 FROM table_name_17 WHERE services = "greater anglia" AND station = "cheshunt"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 engine for ecurie lutetia
### Context:
CREATE TABLE table_28190534_1 (engine VARCHAR, entrant VARCHAR)
### Response:
### Response:
SELECT engine FROM table_28190534_1 WHERE entrant = "Ecurie Lutetia"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Uni # has a Surname of ough?
### Context:
CREATE TABLE table_name_40 (uni_number VARCHAR, surname VARCHAR)
### Response:
### Response:
SELECT uni_number FROM table_name_40 WHERE surname = "ough"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the venue that featured the Melbourne Tigers as the away team?
### Context:
CREATE TABLE table_name_95 (venue VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_95 WHERE away_team = "melbourne tigers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was Bob Jameson's lowest bonus where he had less than 15 rides?
### Context:
CREATE TABLE table_name_36 (bonus_pts INTEGER, rider VARCHAR, rides VARCHAR)
### Response:
### Response:
SELECT MIN(bonus_pts) FROM table_name_36 WHERE rider = "bob jameson" AND rides < 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 video is on channel 31.2 with a 4:3 aspect?
### Context:
CREATE TABLE table_name_97 (video VARCHAR, aspect VARCHAR, channel VARCHAR)
### Response:
### Response:
SELECT video FROM table_name_97 WHERE aspect = "4:3" AND channel = 31.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:
name the civil parish for garryduff
### Context:
CREATE TABLE table_30120664_1 (civil_parish VARCHAR, townland VARCHAR)
### Response:
### Response:
SELECT civil_parish FROM table_30120664_1 WHERE townland = "Garryduff"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team classification was quick step, what was the total number of general classifications?
### Context:
CREATE TABLE table_15294880_2 (general_classification VARCHAR, team_classification VARCHAR)
### Response:
### Response:
SELECT COUNT(general_classification) FROM table_15294880_2 WHERE team_classification = "Quick Step"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 all the distinct names of the products with the characteristic name 'warm'.
### Context:
CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE products (product_name VARCHAR, product_id VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### Response:
### Response:
SELECT DISTINCT t1.product_name FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = "warm"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
I want the average year of 敗犬女王
### Context:
CREATE TABLE table_name_14 (year INTEGER, chinese_title VARCHAR)
### Response:
### Response:
SELECT AVG(year) FROM table_name_14 WHERE chinese_title = "敗犬女王"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament did Thomas Enqvist win?
### Context:
CREATE TABLE table_name_23 (tournament VARCHAR, winner VARCHAR)
### Response:
### Response:
SELECT tournament FROM table_name_23 WHERE winner = "thomas enqvist"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team with a Tie no of 7?
### Context:
CREATE TABLE table_name_40 (away_team VARCHAR, tie_no VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_40 WHERE tie_no = "7"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the constructor for round 15?
### Context:
CREATE TABLE table_1140083_2 (constructor VARCHAR, rnd VARCHAR)
### Response:
### Response:
SELECT constructor FROM table_1140083_2 WHERE rnd = 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 Japanese title had average ratings of 9.2% on the NHK station?
### Context:
CREATE TABLE table_name_78 (japanese_title VARCHAR, average_ratings VARCHAR, tv_station VARCHAR)
### Response:
### Response:
SELECT japanese_title FROM table_name_78 WHERE average_ratings = "9.2%" AND tv_station = "nhk"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 plays at glenferrie oval?
### Context:
CREATE TABLE table_name_5 (home_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_5 WHERE venue = "glenferrie 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:
What was the title of the episode with a production code of 1gowo04?
### Context:
CREATE TABLE table_name_3 (episode_title VARCHAR, prod_code VARCHAR)
### Response:
### Response:
SELECT episode_title FROM table_name_3 WHERE prod_code = "1gowo04"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the match on 9 September 2009?
### Context:
CREATE TABLE table_name_95 (result VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_95 WHERE date = "9 september 2009"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the name of the player with an Overall larger than 227?
### Context:
CREATE TABLE table_name_14 (player VARCHAR, overall INTEGER)
### Response:
### Response:
SELECT player FROM table_name_14 WHERE overall > 227</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average's against score has 2 as a difference and a lost of 5?
### Context:
CREATE TABLE table_name_34 (against INTEGER, difference VARCHAR, lost VARCHAR)
### Response:
### Response:
SELECT AVG(against) FROM table_name_34 WHERE difference = "2" AND lost = 5</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who had the most rebounds on January 3?
### Context:
CREATE TABLE table_name_7 (high_rebounds VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT high_rebounds FROM table_name_7 WHERE date = "january 3"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score for t9 place for Harold Mcspaden?
### Context:
CREATE TABLE table_name_9 (score VARCHAR, place VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_9 WHERE place = "t9" AND player = "harold mcspaden"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home teams score while playing the away team of south melbourne?
### Context:
CREATE TABLE table_name_73 (home_team VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_73 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:
How many descriptions are there when the attribute is "ondragstart"?
### Context:
CREATE TABLE table_1507852_1 (description VARCHAR, attribute VARCHAR)
### Response:
### Response:
SELECT COUNT(description) FROM table_1507852_1 WHERE attribute = "ondragstart"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Extra points has Points smaller than 12, and a Player of chuck bernard, and Touchdowns larger than 1?
### Context:
CREATE TABLE table_name_45 (extra_points INTEGER, touchdowns VARCHAR, points VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT SUM(extra_points) FROM table_name_45 WHERE points < 12 AND player = "chuck bernard" AND touchdowns > 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 tv time on december 6, 1998?
### Context:
CREATE TABLE table_name_24 (tv_time VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT tv_time FROM table_name_24 WHERE date = "december 6, 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 place did the golfer from the United States come in with a To Par of +2, and a score of 73-74-71-72=290?
### Context:
CREATE TABLE table_name_43 (place VARCHAR, country VARCHAR, to_par VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_43 WHERE country = "united states" AND to_par = "+2" AND score = 73 - 74 - 71 - 72 = 290</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episodes where hugh laurie was the 3rd performer?
### Context:
CREATE TABLE table_name_70 (episode VARCHAR, performer_3 VARCHAR)
### Response:
### Response:
SELECT COUNT(episode) FROM table_name_70 WHERE performer_3 = "hugh laurie"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a Date of june 26?
### Context:
CREATE TABLE table_name_81 (record VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_81 WHERE date = "june 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:
Which Score has a Place of t5, and a Country of united states?
### Context:
CREATE TABLE table_name_30 (score VARCHAR, place VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_30 WHERE place = "t5" 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:
What was the Attendance when the Time was 2:13?
### Context:
CREATE TABLE table_name_34 (attendance INTEGER, time VARCHAR)
### Response:
### Response:
SELECT MIN(attendance) FROM table_name_34 WHERE time = "2: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:
How many times is vuelta wins when points is more than 0, country is spain and the name is josé pérez-francés?
### Context:
CREATE TABLE table_name_67 (vuelta_wins VARCHAR, name VARCHAR, points VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT COUNT(vuelta_wins) FROM table_name_67 WHERE points > 0 AND country = "spain" AND name = "josé pérez-francés"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What shows for 2008 at the Shanghai tournament?
### Context:
CREATE TABLE table_name_22 (tournament VARCHAR)
### Response:
### Response:
SELECT 2008 FROM table_name_22 WHERE tournament = "shanghai"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high assist on january 2?
### Context:
CREATE TABLE table_name_61 (high_assists VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT high_assists FROM table_name_61 WHERE date = "january 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's the listed average of Cuts made that has a Top-5 of 3, and a Top-10 that's smaller than 5?
### Context:
CREATE TABLE table_name_17 (cuts_made INTEGER, top_5 VARCHAR, top_10 VARCHAR)
### Response:
### Response:
SELECT AVG(cuts_made) FROM table_name_17 WHERE top_5 = 3 AND top_10 < 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 opponents played Waldstadion in a game?
### Context:
CREATE TABLE table_24951872_2 (opponent VARCHAR, game_site VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_24951872_2 WHERE game_site = "Waldstadion"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 racing club team made supercopa 1996?
### Context:
CREATE TABLE table_name_14 (supercopa_1996 VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT supercopa_1996 FROM table_name_14 WHERE team = "racing club"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 traditional form for 宁陵县?
### Context:
CREATE TABLE table_2135222_2 (traditional VARCHAR, simplified VARCHAR)
### Response:
### Response:
SELECT traditional FROM table_2135222_2 WHERE simplified = "宁陵县"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 exaltation has a detriment of Saturn and Cancer as a sign?
### Context:
CREATE TABLE table_name_75 (exaltation VARCHAR, detriment VARCHAR, sign VARCHAR)
### Response:
### Response:
SELECT exaltation FROM table_name_75 WHERE detriment = "saturn" AND sign = "cancer"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Date, when Name is "Guay, Albert , 32"?
### Context:
CREATE TABLE table_name_48 (date VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_48 WHERE name = "guay, albert , 32"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 remark for Norway?
### Context:
CREATE TABLE table_name_38 (remarks VARCHAR, country_of_origin VARCHAR)
### Response:
### Response:
SELECT remarks FROM table_name_38 WHERE country_of_origin = "norway"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Ecclesiastical Province has a type diocese and a latin name alexiensis?
### Context:
CREATE TABLE table_name_21 (ecclesiastical_province VARCHAR, type VARCHAR, latin_name VARCHAR)
### Response:
### Response:
SELECT ecclesiastical_province FROM table_name_21 WHERE type = "diocese" AND latin_name = "alexiensis"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Friesland's gdp per capita?
### Context:
CREATE TABLE table_1067441_1 (_in_€_ VARCHAR, gdp_per_cap__2003 INTEGER, province VARCHAR)
### Response:
### Response:
SELECT MIN(gdp_per_cap__2003), _in_€_ FROM table_1067441_1 WHERE province = "Friesland"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position has a Pick of 174?
### Context:
CREATE TABLE table_name_66 (position VARCHAR, pick VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_66 WHERE pick = 174</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total of all the years with a bell that weighed 857 kilograms?
### Context:
CREATE TABLE table_name_40 (year INTEGER, weight__kg_ VARCHAR)
### Response:
### Response:
SELECT SUM(year) FROM table_name_40 WHERE weight__kg_ = "857"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 measurements of the Czech Republic's population density are recorded in this table?
### Context:
CREATE TABLE table_24066938_1 (pop_density_people_km_2 VARCHAR, member_state VARCHAR)
### Response:
### Response:
SELECT COUNT(pop_density_people_km_2) FROM table_24066938_1 WHERE member_state = "Czech Republic"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Site when the Result was w52-0?
### Context:
CREATE TABLE table_name_92 (site VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT site FROM table_name_92 WHERE result = "w52-0"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the work number for Victor?
### Context:
CREATE TABLE table_name_80 (works_number VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT works_number FROM table_name_80 WHERE name = "victor"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 period for south korea with peak position of #24
### Context:
CREATE TABLE table_name_74 (period VARCHAR, country VARCHAR, peak_position VARCHAR)
### Response:
### Response:
SELECT period FROM table_name_74 WHERE country = "south korea" AND peak_position = "#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:
In games where the opponent was the San Francisco 49ers what was the minimum amount of points scored?
### Context:
CREATE TABLE table_16710971_2 (falcons_points INTEGER, opponent VARCHAR)
### Response:
### Response:
SELECT MIN(falcons_points) FROM table_16710971_2 WHERE opponent = "San Francisco 49ers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 remelting temperature for the alloy that has a Sn/Sb ratio of 9.5/15?
### Context:
CREATE TABLE table_name_51 (remelting_at__°c_ VARCHAR, sn_sb___percentage_ VARCHAR)
### Response:
### Response:
SELECT remelting_at__°c_ FROM table_name_51 WHERE sn_sb___percentage_ = "9.5/15"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.