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 number episode in the series had and original United States air date of December 24, 2010?
### Context:
CREATE TABLE table_29087004_2 (series__number INTEGER, united_states_original_airdate VARCHAR)
### Response:
### Response:
SELECT MAX(series__number) FROM table_29087004_2 WHERE united_states_original_airdate = "December 24, 2010"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What date did the capitols play the toronto maple leafs?
### Context:
CREATE TABLE table_23308178_6 (date VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT date FROM table_23308178_6 WHERE opponent = "Toronto Maple Leafs"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the 2007 big red?
### Context:
CREATE TABLE table_name_96 (year VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_96 WHERE 2007 = "big red"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 city of Maharashtra's Pune team?
### Context:
CREATE TABLE table_name_31 (city VARCHAR, state VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT city FROM table_name_31 WHERE state = "maharashtra" AND team = "pune"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 parameter when the best fit (WMAP only) is .9 ± .1, and symbol is a?
### Context:
CREATE TABLE table_name_94 (parameter VARCHAR, best_fit__wmap_only_ VARCHAR, symbol VARCHAR)
### Response:
### Response:
SELECT parameter FROM table_name_94 WHERE best_fit__wmap_only_ = ".9 ± .1" AND symbol = "a"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What kind of paper were the stamps with the theme duck decoys, barrow's golden eye printed on?
### Context:
CREATE TABLE table_11900773_4 (paper_type VARCHAR, theme VARCHAR)
### Response:
### Response:
SELECT paper_type FROM table_11900773_4 WHERE theme = "Duck Decoys, Barrow's Golden Eye"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Moving From, when Ends is before 2011?
### Context:
CREATE TABLE table_name_65 (moving_from VARCHAR, ends INTEGER)
### Response:
### Response:
SELECT moving_from FROM table_name_65 WHERE ends < 2011</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the least yes for dublin south
### Context:
CREATE TABLE table_1705429_1 (yes INTEGER, constituency VARCHAR)
### Response:
### Response:
SELECT MIN(yes) FROM table_1705429_1 WHERE constituency = "Dublin South"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 artist for 7 points
### Context:
CREATE TABLE table_21378339_5 (artist VARCHAR, televote_points VARCHAR)
### Response:
### Response:
SELECT COUNT(artist) FROM table_21378339_5 WHERE televote_points = 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 is every entry for description when the value of %yes is 51.82%?
### Context:
CREATE TABLE table_256286_43 (description VARCHAR, _percentage_yes VARCHAR)
### Response:
### Response:
SELECT description FROM table_256286_43 WHERE _percentage_yes = "51.82%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What number draft pick was Oklahoma State's Greg Hill in 1983?
### Context:
CREATE TABLE table_2508633_4 (pick__number VARCHAR, college VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT pick__number FROM table_2508633_4 WHERE college = "Oklahoma State" AND player = "Greg 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:
Who is the Winning Driver in the race viii gran premio di siracusa?
### Context:
CREATE TABLE table_name_42 (winning_driver VARCHAR, race_name VARCHAR)
### Response:
### Response:
SELECT winning_driver FROM table_name_42 WHERE race_name = "viii gran premio di siracusa"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does the train departuring at 11.35 arrive
### Context:
CREATE TABLE table_18333678_2 (arrival VARCHAR, departure VARCHAR)
### Response:
### Response:
SELECT arrival FROM table_18333678_2 WHERE departure = "11.35"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 least year when men's singles is Raju Rai?
### Context:
CREATE TABLE table_22587192_1 (year INTEGER, mens_singles VARCHAR)
### Response:
### Response:
SELECT MIN(year) FROM table_22587192_1 WHERE mens_singles = "Raju Rai"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When did the episode with production code 213 air for the first time?
### Context:
CREATE TABLE table_23403578_3 (original_air_date VARCHAR, prod_code VARCHAR)
### Response:
### Response:
SELECT original_air_date FROM table_23403578_3 WHERE prod_code = "213"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 South Melbourne's away team opponent?
### Context:
CREATE TABLE table_name_8 (away_team VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_8 WHERE home_team = "south melbourne"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the record at 3:00?
### Context:
CREATE TABLE table_name_71 (record VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_71 WHERE time = "3:00"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which locations did Gordon Johncock hold the pole position?
### Context:
CREATE TABLE table_22673872_1 (location VARCHAR, pole_position VARCHAR)
### Response:
### Response:
SELECT location FROM table_22673872_1 WHERE pole_position = "Gordon Johncock"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team score with an away team of Melbourne?
### Context:
CREATE TABLE table_name_65 (home_team VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_65 WHERE away_team = "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 was the Hopperstad Stavkyrkje built?
### Context:
CREATE TABLE table_name_83 (year_built VARCHAR, church_name VARCHAR)
### Response:
### Response:
SELECT year_built FROM table_name_83 WHERE church_name = "hopperstad stavkyrkje"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 used Ford v8 and Jordan 191 after 1990 and got 8 points?
### Context:
CREATE TABLE table_name_50 (entrant VARCHAR, chassis VARCHAR, points VARCHAR, year VARCHAR, engine VARCHAR)
### Response:
### Response:
SELECT entrant FROM table_name_50 WHERE year > 1990 AND engine = "ford v8" AND points = 8 AND chassis = "jordan 191"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 School has a Previous Conference of none (new school), and a Year Joined larger than 1960, and a Location of versailles?
### Context:
CREATE TABLE table_name_78 (school VARCHAR, location VARCHAR, previous_conference VARCHAR, year_joined VARCHAR)
### Response:
### Response:
SELECT school FROM table_name_78 WHERE previous_conference = "none (new school)" AND year_joined > 1960 AND location = "versailles"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 league apps did the player with 11 team goals have?
### Context:
CREATE TABLE table_27170987_5 (league_apps VARCHAR, total_goals VARCHAR)
### Response:
### Response:
SELECT league_apps FROM table_27170987_5 WHERE total_goals = 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 RESULT FOR best urban/alternative performance, IN 2003 OR GREATER?
### Context:
CREATE TABLE table_name_1 (result VARCHAR, category VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_1 WHERE category = "best urban/alternative performance" AND year > 2003</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Home Ground with the Location n/a for the Club kcdrsc?
### Context:
CREATE TABLE table_name_39 (home_ground VARCHAR, location VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT home_ground FROM table_name_39 WHERE location = "n/a" AND club = "kcdrsc"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round was northeastern college player Reggie Lewis drafted in?
### Context:
CREATE TABLE table_name_26 (round INTEGER, college VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT MIN(round) FROM table_name_26 WHERE college = "northeastern" AND player = "reggie lewis"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 programs are there for the South Fork Dirt Riders track?
### Context:
CREATE TABLE table_name_44 (program VARCHAR, track_name VARCHAR)
### Response:
### Response:
SELECT program FROM table_name_44 WHERE track_name = "south fork dirt riders"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 batting team played in Chittagong in 2003?
### Context:
CREATE TABLE table_name_63 (batting_team VARCHAR, venue VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT batting_team FROM table_name_63 WHERE venue = "chittagong" AND season = "2003"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What number-one single is performed by artist Pep's?
### Context:
CREATE TABLE table_27441210_17 (number_one_single_s_ VARCHAR, artist VARCHAR)
### Response:
### Response:
SELECT number_one_single_s_ FROM table_27441210_17 WHERE artist = "Pep'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 are the Votes for the Song by Artist Filipa Batista?
### Context:
CREATE TABLE table_name_11 (votes VARCHAR, artist VARCHAR)
### Response:
### Response:
SELECT votes FROM table_name_11 WHERE artist = "filipa batista"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When was H.B. Higgins first elected?
### Context:
CREATE TABLE table_name_7 (first_elected VARCHAR, member VARCHAR)
### Response:
### Response:
SELECT first_elected FROM table_name_7 WHERE member = "h.b. 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:
Name the host for prime
### Context:
CREATE TABLE table_16884579_1 (host_s_ VARCHAR, network VARCHAR)
### Response:
### Response:
SELECT host_s_ FROM table_16884579_1 WHERE network = "Prime"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
who is the pole position for the rnd 3
### Context:
CREATE TABLE table_1140085_2 (pole_position VARCHAR, rnd VARCHAR)
### Response:
### Response:
SELECT pole_position FROM table_1140085_2 WHERE rnd = 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's the inventor when it was mutated from Redsport Type 2, has a stripe pattern and a spur habit?
### Context:
CREATE TABLE table_name_2 (mutated_from VARCHAR, habit VARCHAR, pattern VARCHAR)
### Response:
### Response:
SELECT "inventor" FROM table_name_2 WHERE habit = "spur" AND pattern = "stripe" AND mutated_from = "redsport type 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:
Which language do 1% of males speak?
### Context:
CREATE TABLE table_name_31 (percentage___percentage_ VARCHAR, males VARCHAR)
### Response:
### Response:
SELECT percentage___percentage_ FROM table_name_31 WHERE males = "1"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the lowest year joined in the city of College Park at the Conference championships smaller than 0?
### Context:
CREATE TABLE table_name_81 (joined INTEGER, city VARCHAR, conference_championships VARCHAR)
### Response:
### Response:
SELECT MIN(joined) FROM table_name_81 WHERE city = "college park" AND conference_championships < 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 juries are there for Brolle?
### Context:
CREATE TABLE table_27994983_8 (juries INTEGER, artist VARCHAR)
### Response:
### Response:
SELECT MAX(juries) FROM table_27994983_8 WHERE artist = "Brolle"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
In what position did the winning driver finish at Chicagoland?
### Context:
CREATE TABLE table_16099880_5 (winning_driver VARCHAR, race VARCHAR)
### Response:
### Response:
SELECT COUNT(winning_driver) FROM table_16099880_5 WHERE race = "Chicagoland"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of Episode Number that has a Air Date on 20 july 2007?
### Context:
CREATE TABLE table_name_79 (episode_number INTEGER, air_date VARCHAR)
### Response:
### Response:
SELECT MIN(episode_number) FROM table_name_79 WHERE air_date = "20 july 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:
How many stadiums are there?
### Context:
CREATE TABLE stadium (Id VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM stadium</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the played when the wins is 21 and the positions is higher than 3?
### Context:
CREATE TABLE table_name_55 (played INTEGER, wins VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT SUM(played) FROM table_name_55 WHERE wins = 21 AND position > 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:
When philippe gilbert is the winner who is the points classification?
### Context:
CREATE TABLE table_18733814_2 (points_classification VARCHAR, winner VARCHAR)
### Response:
### Response:
SELECT points_classification FROM table_18733814_2 WHERE winner = "Philippe Gilbert"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 word would a Castilian speaker use for the Italian word auto(mobile)?
### Context:
CREATE TABLE table_name_95 (castilian VARCHAR, italian VARCHAR)
### Response:
### Response:
SELECT castilian FROM table_name_95 WHERE italian = "auto(mobile)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title was used in the nomination of Matrimonio All'Italiana?
### Context:
CREATE TABLE table_name_5 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
### Response:
### Response:
SELECT film_title_used_in_nomination FROM table_name_5 WHERE original_title = "matrimonio all'italiana"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 type has the characters 廣丙?
### Context:
CREATE TABLE table_name_25 (type VARCHAR, characters VARCHAR)
### Response:
### Response:
SELECT type FROM table_name_25 WHERE characters = "廣丙"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 type of video game Call of Destiny.
### Context:
CREATE TABLE Video_games (gtype VARCHAR, gname VARCHAR)
### Response:
### Response:
SELECT gtype FROM Video_games WHERE gname = "Call of Destiny"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
During what week was the match on November 10, 1963?
### Context:
CREATE TABLE table_name_37 (week INTEGER, date VARCHAR)
### Response:
### Response:
SELECT AVG(week) FROM table_name_37 WHERE date = "november 10, 1963"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has an IATA of BVA?
### Context:
CREATE TABLE table_name_69 (city VARCHAR, iata VARCHAR)
### Response:
### Response:
SELECT city FROM table_name_69 WHERE iata = "bva"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Score that has a To standard of –3, and a Player of Jim Furyk?
### Context:
CREATE TABLE table_name_15 (score VARCHAR, to_par VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_15 WHERE to_par = "–3" AND player = "jim furyk"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 First elected that has republican Party and a Result of retired democratic gain?
### Context:
CREATE TABLE table_name_61 (first_elected VARCHAR, party VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT first_elected FROM table_name_61 WHERE party = "republican" AND result = "retired democratic gain"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average number of floors at 170 Fourth Avenue North?
### Context:
CREATE TABLE table_name_76 (floors INTEGER, street_address VARCHAR)
### Response:
### Response:
SELECT AVG(floors) FROM table_name_76 WHERE street_address = "170 fourth avenue north"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tim Andree's greatest number?
### Context:
CREATE TABLE table_name_50 (number INTEGER, name VARCHAR)
### Response:
### Response:
SELECT MAX(number) FROM table_name_50 WHERE name = "tim andree"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Japanese name of the Province with a Korean name of Chungcheong-Bukdo?
### Context:
CREATE TABLE table_name_46 (japanese_name VARCHAR, korean_name VARCHAR)
### Response:
### Response:
SELECT japanese_name FROM table_name_46 WHERE korean_name = "chungcheong-bukdo"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the value for the League Cup when the FA Cup value is 0 13 0 (49)?
### Context:
CREATE TABLE table_name_20 (league VARCHAR, fa_cup VARCHAR)
### Response:
### Response:
SELECT league AS Cup FROM table_name_20 WHERE fa_cup = "0 13 0 (49)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Home team of aston villa?
### Context:
CREATE TABLE table_name_20 (score VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_20 WHERE home_team = "aston villa"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Region of the 1766390 Catalog?
### Context:
CREATE TABLE table_name_71 (region VARCHAR, catalog VARCHAR)
### Response:
### Response:
SELECT region FROM table_name_71 WHERE catalog = "1766390"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the language for villa 1167
### Context:
CREATE TABLE table_2509350_3 (language VARCHAR, villa_alcalá_municipality VARCHAR)
### Response:
### Response:
SELECT language FROM table_2509350_3 WHERE villa_alcalá_municipality = 1167</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
For team Atlético Nacional, what were the points?
### Context:
CREATE TABLE table_16795394_3 (points VARCHAR, team__number2 VARCHAR)
### Response:
### Response:
SELECT points FROM table_16795394_3 WHERE team__number2 = "Atlético Nacional"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Find the number of flights landing in the city of Aberdeen or Abilene.
### Context:
CREATE TABLE Airports (AirportCode VARCHAR, city VARCHAR); CREATE TABLE Flights (DestAirport VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport = T2.AirportCode WHERE T2.city = "Aberdeen" OR T2.city = "Abilene"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 power stage wins total number if the wins is 10?
### Context:
CREATE TABLE table_23385853_20 (power_stage_wins VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT COUNT(power_stage_wins) FROM table_23385853_20 WHERE wins = 10</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many players were in the event after 2011 with less than 9 aces?
### Context:
CREATE TABLE table_name_72 (player VARCHAR, event VARCHAR, aces VARCHAR)
### Response:
### Response:
SELECT COUNT(player) FROM table_name_72 WHERE event > 2011 AND NOT aces < 9</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the lowest amount of silver when the gold is less than 0?
### Context:
CREATE TABLE table_name_70 (silver INTEGER, gold INTEGER)
### Response:
### Response:
SELECT MIN(silver) FROM table_name_70 WHERE gold < 0</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the sum of all laps starting at 10 and finishing at 20?
### Context:
CREATE TABLE table_name_32 (laps INTEGER, start VARCHAR, finish VARCHAR)
### Response:
### Response:
SELECT SUM(laps) FROM table_name_32 WHERE start = "10" AND finish = "20"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Precincts has a G. Hager of 2,260 (15%)?
### Context:
CREATE TABLE table_name_88 (precincts VARCHAR, g_hager VARCHAR)
### Response:
### Response:
SELECT precincts FROM table_name_88 WHERE g_hager = "2,260 (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 is the latest year where glos & wilts is warminster?
### Context:
CREATE TABLE table_12043148_2 (year INTEGER, glos_ VARCHAR, _wilts VARCHAR)
### Response:
### Response:
SELECT MAX(year) FROM table_12043148_2 WHERE glos_ & _wilts = "Warminster"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
for the rank more than 1 and nationality of netherlands, what is the lane?
### Context:
CREATE TABLE table_name_30 (lane INTEGER, nationality VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT AVG(lane) FROM table_name_30 WHERE nationality = "netherlands" AND rank > 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average Gold when the rank is less than 3 and the bronze is less than 1?
### Context:
CREATE TABLE table_name_79 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
### Response:
### Response:
SELECT AVG(gold) FROM table_name_79 WHERE rank < 3 AND bronze < 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the country of player vijay singh?
### Context:
CREATE TABLE table_name_59 (country VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_59 WHERE player = "vijay singh"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high rebounds for record 10-19
### Context:
CREATE TABLE table_23274514_5 (high_rebounds VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT high_rebounds FROM table_23274514_5 WHERE record = "10-19"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the airport with IATA of cxb
### Context:
CREATE TABLE table_name_64 (airport VARCHAR, iata VARCHAR)
### Response:
### Response:
SELECT airport FROM table_name_64 WHERE iata = "cxb"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Time/Retired value for Ludovico Scarfiotti?
### Context:
CREATE TABLE table_name_80 (time_retired VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT time_retired FROM table_name_80 WHERE driver = "ludovico scarfiotti"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 entrant used the chassis de tomaso 505?
### Context:
CREATE TABLE table_name_9 (entrant VARCHAR, chassis VARCHAR)
### Response:
### Response:
SELECT entrant FROM table_name_9 WHERE chassis = "de tomaso 505"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 surface area of the continents Asia and Europe?
### Context:
CREATE TABLE country (SurfaceArea INTEGER, Continent VARCHAR)
### Response:
### Response:
SELECT SUM(SurfaceArea) FROM country WHERE Continent = "Asia" OR Continent = "Europe"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Chris Bosh (16) had the high points?
### Context:
CREATE TABLE table_11960407_4 (high_rebounds VARCHAR, high_points VARCHAR)
### Response:
### Response:
SELECT high_rebounds FROM table_11960407_4 WHERE high_points = "Chris Bosh (16)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the lowest Nick production number?
### Context:
CREATE TABLE table_2655016_4 (nick_prod__number INTEGER)
### Response:
### Response:
SELECT MIN(nick_prod__number) FROM table_2655016_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:
Name the original title for the last metro
### Context:
CREATE TABLE table_18987377_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
### Response:
### Response:
SELECT original_title FROM table_18987377_1 WHERE film_title_used_in_nomination = "The Last Metro"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 id of the student who most recently registered course 301?
### Context:
CREATE TABLE student_course_attendance (student_id VARCHAR, course_id VARCHAR, date_of_attendance VARCHAR)
### Response:
### Response:
SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance 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 is the average rank of Roman Koudelka, who has less than 274.4 points?
### Context:
CREATE TABLE table_name_41 (rank INTEGER, points VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT AVG(rank) FROM table_name_41 WHERE points < 274.4 AND name = "roman koudelka"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the home team for tie number 11?
### Context:
CREATE TABLE table_name_26 (home_team VARCHAR, tie_no VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_26 WHERE tie_no = "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 title of the episode with production code 3x5405?
### Context:
CREATE TABLE table_24938621_2 (title VARCHAR, production_code VARCHAR)
### Response:
### Response:
SELECT title FROM table_24938621_2 WHERE production_code = "3X5405"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Find the number of courses provided in each semester and year.
### Context:
CREATE TABLE SECTION (semester VARCHAR, YEAR VARCHAR)
### Response:
### Response:
SELECT COUNT(*), semester, YEAR FROM SECTION GROUP BY semester, YEAR</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who is driver of the d6 chassis?
### Context:
CREATE TABLE table_name_99 (driver VARCHAR, chassis VARCHAR)
### Response:
### Response:
SELECT driver FROM table_name_99 WHERE chassis = "d6"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ICAO when the IATA is ika?
### Context:
CREATE TABLE table_name_19 (icao VARCHAR, iata VARCHAR)
### Response:
### Response:
SELECT icao FROM table_name_19 WHERE iata = "ika"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score of the game that had a round of Rd 26, 2001?
### Context:
CREATE TABLE table_name_90 (score VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_90 WHERE round = "rd 26, 2001"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gold medals won by nations that won 2 silver medals but fewer than 7 in total?
### Context:
CREATE TABLE table_name_24 (gold INTEGER, silver VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT SUM(gold) FROM table_name_24 WHERE silver = 2 AND total < 7</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the opponent for game number less than 47 and a record of 24-13-4?
### Context:
CREATE TABLE table_name_34 (opponent VARCHAR, game VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_34 WHERE game < 47 AND record = "24-13-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 position is Sweden in round 2?
### Context:
CREATE TABLE table_name_55 (position VARCHAR, nationality VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_55 WHERE nationality = "sweden" AND round = "2"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When Jim Thorpe of United States has a score of 71, what is the place?
### Context:
CREATE TABLE table_name_2 (place VARCHAR, player VARCHAR, score VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_2 WHERE score = 71 AND country = "united states" AND player = "jim thorpe"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 right ascension for open cluster and NGC number more than 2547
### Context:
CREATE TABLE table_name_59 (right_ascension___j2000__ VARCHAR, object_type VARCHAR, ngc_number VARCHAR)
### Response:
### Response:
SELECT right_ascension___j2000__ FROM table_name_59 WHERE object_type = "open cluster" AND ngc_number > 2547</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many wins did Hobbs had a 15th finish at poles 0?
### Context:
CREATE TABLE table_name_89 (wins VARCHAR, poles VARCHAR, final_placing VARCHAR)
### Response:
### Response:
SELECT wins FROM table_name_89 WHERE poles = "0" AND final_placing = "15th"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 volume for co 2 for 168 g/km
### Context:
CREATE TABLE table_17941111_2 (volume VARCHAR, co_2 VARCHAR)
### Response:
### Response:
SELECT volume FROM table_17941111_2 WHERE co_2 = "168 g/km"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average length for the song "Ma Ke Jaisi"?
### Context:
CREATE TABLE table_name_53 (length VARCHAR, song_title VARCHAR)
### Response:
### Response:
SELECT length FROM table_name_53 WHERE song_title = "ma ke jaisi"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many Goals For have Drawn of 10?
### Context:
CREATE TABLE table_name_83 (goals_for VARCHAR, drawn VARCHAR)
### Response:
### Response:
SELECT COUNT(goals_for) FROM table_name_83 WHERE drawn = 10</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total outcome for the clay surface on April 21, 1996?
### Context:
CREATE TABLE table_name_91 (outcome VARCHAR, surface VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT outcome FROM table_name_91 WHERE surface = "clay" AND date = "april 21, 1996"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points when the goals conceded is less than 24, place is less than 6 and goals scored is less than 26?
### Context:
CREATE TABLE table_name_15 (points INTEGER, goals_scored VARCHAR, goals_conceded VARCHAR, place VARCHAR)
### Response:
### Response:
SELECT SUM(points) FROM table_name_15 WHERE goals_conceded < 24 AND place < 6 AND goals_scored < 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 was the Bhofen #2 score and rank for the player whose GA-PA score and rank was 227.5 (19)?
### Context:
CREATE TABLE table_14948647_1 (bhofen_number2__rk_ VARCHAR, ga_pa__rk_ VARCHAR)
### Response:
### Response:
SELECT bhofen_number2__rk_ FROM table_14948647_1 WHERE ga_pa__rk_ = "227.5 (19)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Paul McCartney has a Linda McCartney of keyboards?
### Context:
CREATE TABLE table_name_98 (paul_mccartney VARCHAR, linda_mccartney VARCHAR)
### Response:
### Response:
SELECT paul_mccartney FROM table_name_98 WHERE linda_mccartney = "keyboards"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Nationality of the Aracataca Ship?
### Context:
CREATE TABLE table_name_17 (nationality VARCHAR, ship VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_17 WHERE ship = "aracataca"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Attendance has a Round of 52, and a Home of södertälje sk?
### Context:
CREATE TABLE table_name_67 (attendance INTEGER, round VARCHAR, home VARCHAR)
### Response:
### Response:
SELECT MIN(attendance) FROM table_name_67 WHERE round = 52 AND home = "södertälje sk"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 captain is managed by gianluca vialli?
### Context:
CREATE TABLE table_name_31 (captain VARCHAR, manager VARCHAR)
### Response:
### Response:
SELECT captain FROM table_name_31 WHERE manager = "gianluca vialli"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.