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 Result has a Competition of world cup qualifying, and a Date of march 21, 1954?
### Context:
CREATE TABLE table_name_85 (result VARCHAR, competition VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_85 WHERE competition = "world cup qualifying" AND date = "march 21, 1954"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 svein tuft is the winner what is the highest stage?
### Context:
CREATE TABLE table_28298471_14 (stage INTEGER, winner VARCHAR)
### Response:
### Response:
SELECT MAX(stage) FROM table_28298471_14 WHERE winner = "Svein Tuft"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructor for david coulthard
### Context:
CREATE TABLE table_name_10 (constructor VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT constructor FROM table_name_10 WHERE driver = "david coulthard"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 matches were drawn associated with a percentage of 7.14% and more than 12 losses?
### Context:
CREATE TABLE table_name_57 (drawn VARCHAR, percentage VARCHAR, lost VARCHAR)
### Response:
### Response:
SELECT COUNT(drawn) FROM table_name_57 WHERE percentage = "7.14%" AND lost > 12</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What are the original air date(s) for episodes written by aron eli coleite?
### Context:
CREATE TABLE table_28215780_4 (original_air_date VARCHAR, written_by VARCHAR)
### Response:
### Response:
SELECT original_air_date FROM table_28215780_4 WHERE written_by = "Aron Eli Coleite"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Poles has a Wins larger than 0, and a Podiums smaller than 17?
### Context:
CREATE TABLE table_name_94 (poles VARCHAR, fastest_laps VARCHAR, wins VARCHAR, podiums VARCHAR)
### Response:
### Response:
SELECT poles FROM table_name_94 WHERE wins > 0 AND podiums < 17 AND fastest_laps = 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:
Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type.
### Context:
CREATE TABLE university (affiliation VARCHAR, Enrollment INTEGER, founded INTEGER)
### Response:
### Response:
SELECT SUM(Enrollment), affiliation FROM university WHERE founded > 1850 GROUP BY affiliation</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 during the competition of 1998 fifa world cup qualification?
### Context:
CREATE TABLE table_name_42 (score VARCHAR, competition VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_42 WHERE competition = "1998 fifa world cup qualification"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home for 21-17
### Context:
CREATE TABLE table_name_93 (home VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT home FROM table_name_93 WHERE score = "21-17"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Cover model has a Pictorials of brande roderick-pmoy, naked news?
### Context:
CREATE TABLE table_name_56 (cover_model VARCHAR, pictorials VARCHAR)
### Response:
### Response:
SELECT cover_model FROM table_name_56 WHERE pictorials = "brande roderick-pmoy, naked news"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team on March 7?
### Context:
CREATE TABLE table_name_61 (home VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT home FROM table_name_61 WHERE date = "march 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:
Show the names of members and the location of the performances they attended.
### Context:
CREATE TABLE performance (Location VARCHAR, Performance_ID VARCHAR); CREATE TABLE member (Name VARCHAR, Member_ID VARCHAR); CREATE TABLE member_attendance (Member_ID VARCHAR, Performance_ID VARCHAR)
### Response:
### Response:
SELECT T2.Name, T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID = T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID = T3.Performance_ID</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
If the field goals is 26, what are the players names?
### Context:
CREATE TABLE table_23346303_5 (player VARCHAR, field_goals VARCHAR)
### Response:
### Response:
SELECT player FROM table_23346303_5 WHERE field_goals = 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 club lost 10 games ?
### Context:
CREATE TABLE table_name_93 (club VARCHAR, lost VARCHAR)
### Response:
### Response:
SELECT club FROM table_name_93 WHERE lost = "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 team was in 1st plate in a year later than 1956?
### Context:
CREATE TABLE table_name_84 (year INTEGER)
### Response:
### Response:
SELECT 1 AS st_place_team FROM table_name_84 WHERE year > 1956</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 competition in 2003?
### Context:
CREATE TABLE table_name_76 (competition VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT competition FROM table_name_76 WHERE 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 was the date of the discus throw for Bulgaria?
### Context:
CREATE TABLE table_name_40 (date VARCHAR, nationality VARCHAR, event VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_40 WHERE nationality = "bulgaria" AND event = "discus throw"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 iwas the attendance of the game that took place on december 6, 1998?
### Context:
CREATE TABLE table_name_41 (attendance VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT attendance FROM table_name_41 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 is the location of the Conquista Fight 1?
### Context:
CREATE TABLE table_name_11 (location VARCHAR, event VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_11 WHERE event = "conquista fight 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:
On what Date was the Score 4–1?
### Context:
CREATE TABLE table_name_76 (date VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_76 WHERE score = "4–1"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score of the home team of carlton?
### Context:
CREATE TABLE table_name_60 (home_team VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_60 WHERE home_team = "carlton"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity when the generators were 781?
### Context:
CREATE TABLE table_11456251_5 (power_capacity__gw_ VARCHAR, number_of_generators VARCHAR)
### Response:
### Response:
SELECT power_capacity__gw_ FROM table_11456251_5 WHERE number_of_generators = 781</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many seasons has UPS sponsored a car with a number larger than 17?
### Context:
CREATE TABLE table_name_9 (season VARCHAR, car__number VARCHAR, sponsor VARCHAR)
### Response:
### Response:
SELECT COUNT(season) FROM table_name_9 WHERE car__number > 17 AND sponsor = "ups"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 play for New Jersey from 2007-2009?
### Context:
CREATE TABLE table_name_62 (nationality VARCHAR, years_in_new_jersey VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_62 WHERE years_in_new_jersey = "2007-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 record for the date november 19?
### Context:
CREATE TABLE table_27712180_6 (record VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT record FROM table_27712180_6 WHERE date = "November 19"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the maximum number of points?
### Context:
CREATE TABLE table_14342367_5 (points INTEGER)
### Response:
### Response:
SELECT MAX(points) FROM table_14342367_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 was the year the MRWA with a wheel arrangement of 4-6-2 was introduced?
### Context:
CREATE TABLE table_name_76 (year_introduced_mrwa VARCHAR, wheel_arrangement VARCHAR)
### Response:
### Response:
SELECT year_introduced_mrwa FROM table_name_76 WHERE wheel_arrangement = "4-6-2"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the least spirou
### Context:
CREATE TABLE table_15163938_1 (spirou INTEGER)
### Response:
### Response:
SELECT MIN(spirou) FROM table_15163938_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 Jeremy Duchesne's position?
### Context:
CREATE TABLE table_name_67 (position VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_67 WHERE player = "jeremy duchesne"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the total number of Heat recorded for the british virgin islands?
### Context:
CREATE TABLE table_name_5 (heat VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT COUNT(heat) FROM table_name_5 WHERE country = "british virgin islands"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 division for years earlier than 2011?
### Context:
CREATE TABLE table_name_27 (division INTEGER, year INTEGER)
### Response:
### Response:
SELECT MAX(division) FROM table_name_27 WHERE year < 2011</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many episodes did Alison Maclean direct?
### Context:
CREATE TABLE table_17624965_1 (written_by VARCHAR, directed_by VARCHAR)
### Response:
### Response:
SELECT COUNT(written_by) FROM table_17624965_1 WHERE directed_by = "Alison Maclean"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Sanchez ( esp ) w 5-0 were the bout 6, which were the class?
### Context:
CREATE TABLE table_19398910_4 (class VARCHAR, bout_6 VARCHAR)
### Response:
### Response:
SELECT class FROM table_19398910_4 WHERE bout_6 = "Sanchez ( ESP ) W 5-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 administration when the division was Ykkönen (first division), and they were in the 1st position in 1996?
### Context:
CREATE TABLE table_name_21 (administration VARCHAR, season VARCHAR, division VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT administration FROM table_name_21 WHERE division = "ykkönen (first division)" AND position = "1st" AND season = 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 average final with an all around larger than 19.4 and total more than 39.9?
### Context:
CREATE TABLE table_name_12 (final INTEGER, all_around VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT AVG(final) FROM table_name_12 WHERE all_around > 19.4 AND total > 39.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:
How many days in April has a record of 42–22–12–3, and less than 99 points?
### Context:
CREATE TABLE table_name_98 (april VARCHAR, record VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT COUNT(april) FROM table_name_98 WHERE record = "42–22–12–3" AND points < 99</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that played against Aylesbury Vale?
### Context:
CREATE TABLE table_name_37 (home_team VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_37 WHERE away_team = "aylesbury vale"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many weeks have a Result of t 10-10?
### Context:
CREATE TABLE table_name_78 (week VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT COUNT(week) FROM table_name_78 WHERE result = "t 10-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 was the away team that played at Corio Oval?
### Context:
CREATE TABLE table_name_9 (away_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_9 WHERE venue = "corio 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 rank of a transfer fee larger than 13 million, and after 2008?
### Context:
CREATE TABLE table_name_26 (rank VARCHAR, transfer_fee___€_million_ VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT COUNT(rank) FROM table_name_26 WHERE transfer_fee___€_million_ > 13 AND year > 2008</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the most number of cuts made that had more than 7 events played and more than 2 top-25s?
### Context:
CREATE TABLE table_name_18 (cuts_made INTEGER, events VARCHAR, top_25 VARCHAR)
### Response:
### Response:
SELECT MAX(cuts_made) FROM table_name_18 WHERE events = 7 AND top_25 > 2</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Nelspruit's population?
### Context:
CREATE TABLE table_name_74 (population__2013_ VARCHAR, largest_city VARCHAR)
### Response:
### Response:
SELECT COUNT(population__2013_) FROM table_name_74 WHERE largest_city = "nelspruit"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity when the code is d4f bi-fuel 732?
### Context:
CREATE TABLE table_name_36 (capacity VARCHAR, code VARCHAR)
### Response:
### Response:
SELECT capacity FROM table_name_36 WHERE code = "d4f bi-fuel 732"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 status has 10 as the population?
### Context:
CREATE TABLE table_name_10 (status VARCHAR, population VARCHAR)
### Response:
### Response:
SELECT status FROM table_name_10 WHERE population = 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 was the result of the Top 12 Men theme?
### Context:
CREATE TABLE table_27614707_1 (result VARCHAR, theme VARCHAR)
### Response:
### Response:
SELECT result FROM table_27614707_1 WHERE theme = "Top 12 Men"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the nationality with a lane larger than 1, and a rank larger than 5, for Hsu Chi-Chieh?
### Context:
CREATE TABLE table_name_24 (nationality VARCHAR, name VARCHAR, lane VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_24 WHERE lane > 1 AND rank > 5 AND name = "hsu chi-chieh"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick number when Paul Krake was selected?
### Context:
CREATE TABLE table_2897457_8 (pick__number INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MIN(pick__number) FROM table_2897457_8 WHERE player = "Paul Krake"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mean number of play-offs when the league number was bigger than 18, where the player was John Grant and the total number was bigger than 25?
### Context:
CREATE TABLE table_name_15 (play_offs INTEGER, total VARCHAR, league VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT AVG(play_offs) FROM table_name_15 WHERE league > 18 AND player = "john grant" AND total > 25</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What round is sf/sg player sly williams from a year after 1965 from?
### Context:
CREATE TABLE table_name_66 (round VARCHAR, player VARCHAR, position VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT round FROM table_name_66 WHERE position = "sf/sg" AND year > 1965 AND player = "sly williams"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 City with December 21 as a Date?
### Context:
CREATE TABLE table_name_94 (city VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT city FROM table_name_94 WHERE date = "december 21"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Panthers' Division Record?
### Context:
CREATE TABLE table_name_48 (division_record VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT division_record FROM table_name_48 WHERE team = "panthers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Enrollment of Dickinson College?
### Context:
CREATE TABLE table_name_41 (enrollment INTEGER, institution VARCHAR)
### Response:
### Response:
SELECT AVG(enrollment) FROM table_name_41 WHERE institution = "dickinson 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:
Which Date has a Time of 11:00, and a Set 3 of 25–18?
### Context:
CREATE TABLE table_name_62 (date VARCHAR, time VARCHAR, set_3 VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_62 WHERE time = "11:00" AND set_3 = "25–18"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When was the most recent game that he partnered with nicklas kulti and they scored 3–6, 7–6, 6–4?
### Context:
CREATE TABLE table_name_19 (date INTEGER, partner VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT MAX(date) FROM table_name_19 WHERE partner = "nicklas kulti" AND score = "3–6, 7–6, 6–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:
List the position for the boston bruins.
### Context:
CREATE TABLE table_2679061_12 (position VARCHAR, nhl_team VARCHAR)
### Response:
### Response:
SELECT position FROM table_2679061_12 WHERE nhl_team = "Boston Bruins"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year(s) Won that has the Country of united states, and the Total larger than 152?
### Context:
CREATE TABLE table_name_62 (year_s__won VARCHAR, country VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT year_s__won FROM table_name_62 WHERE country = "united states" AND total > 152</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does DeShawn Stevenson weigh?
### Context:
CREATE TABLE table_name_52 (weight INTEGER, player VARCHAR)
### Response:
### Response:
SELECT SUM(weight) FROM table_name_52 WHERE player = "deshawn stevenson"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponents, when Raiders Points is "42", when Attendance is less than 52,505?
### Context:
CREATE TABLE table_name_16 (opponents VARCHAR, raiders_points VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT COUNT(opponents) FROM table_name_16 WHERE raiders_points = 42 AND attendance < 52 OFFSET 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:
Who was the week 12 nomination when the week 9 nomination walked (day 11)?
### Context:
CREATE TABLE table_name_10 (week_12 VARCHAR, week_9 VARCHAR)
### Response:
### Response:
SELECT week_12 FROM table_name_10 WHERE week_9 = "walked (day 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:
How many platinum points were awarded when 9 gold points were awarded?
### Context:
CREATE TABLE table_11254821_2 (points_awarded__platinum_ VARCHAR, points_awarded__gold_ VARCHAR)
### Response:
### Response:
SELECT points_awarded__platinum_ FROM table_11254821_2 WHERE points_awarded__gold_ = 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 last year on this list someone was first elected?
### Context:
CREATE TABLE table_1342451_38 (first_elected INTEGER)
### Response:
### Response:
SELECT MAX(first_elected) FROM table_1342451_38</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What year did a school from Jennings County join?
### Context:
CREATE TABLE table_name_5 (year_joined VARCHAR, school VARCHAR)
### Response:
### Response:
SELECT year_joined FROM table_name_5 WHERE school = "jennings county"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the champion for christopher miles runner-up
### Context:
CREATE TABLE table_name_52 (champion VARCHAR, runner_up VARCHAR)
### Response:
### Response:
SELECT champion FROM table_name_52 WHERE runner_up = "christopher miles"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 character did Katie Rowley Jones play in the Original West End Cast?
### Context:
CREATE TABLE table_name_22 (character VARCHAR, original_west_end_cast VARCHAR)
### Response:
### Response:
SELECT character FROM table_name_22 WHERE original_west_end_cast = "katie rowley jones"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What country has OF-1 Locotenent?
### Context:
CREATE TABLE table_name_1 (country VARCHAR, of_1 VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_1 WHERE of_1 = "locotenent"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a Date with december 9?
### Context:
CREATE TABLE table_name_97 (record VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_97 WHERE date = "december 9"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When 1 is the number what episodes were used?
### Context:
CREATE TABLE table_2144389_9 (episodes_used VARCHAR, _number VARCHAR)
### Response:
### Response:
SELECT episodes_used FROM table_2144389_9 WHERE _number = 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 final score of the 1st round game of club Union Luxembourg?
### Context:
CREATE TABLE table_name_17 (score VARCHAR, round VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_17 WHERE round = "1st round" AND club = "union luxembourg"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 byes has a draw larger than 0?
### Context:
CREATE TABLE table_name_55 (byes VARCHAR, draws INTEGER)
### Response:
### Response:
SELECT COUNT(byes) FROM table_name_55 WHERE draws > 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 was the score for Hawthorn when they were the away team?
### Context:
CREATE TABLE table_name_56 (away_team VARCHAR)
### Response:
### Response:
SELECT away_team AS score FROM table_name_56 WHERE away_team = "hawthorn"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position, when Points is greater than 7, and when Series is Toyota Racing Series?
### Context:
CREATE TABLE table_name_3 (position VARCHAR, points VARCHAR, series VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_3 WHERE points > 7 AND series = "toyota racing series"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
how many points for with points against being 177
### Context:
CREATE TABLE table_14058433_5 (points_for VARCHAR, points_against VARCHAR)
### Response:
### Response:
SELECT COUNT(points_for) FROM table_14058433_5 WHERE points_against = "177"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who is the opponent of player phil graham?
### Context:
CREATE TABLE table_name_72 (opponent VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_72 WHERE player = "phil graham"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver whose Constructor was Era, and whose entrant was T.A.S.O. Mathieson?
### Context:
CREATE TABLE table_name_94 (driver VARCHAR, constructor VARCHAR, entrant VARCHAR)
### Response:
### Response:
SELECT driver FROM table_name_94 WHERE constructor = "era" AND entrant = "t.a.s.o. mathieson"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 episode number was associated with Vibhav Gautam?
### Context:
CREATE TABLE table_name_1 (episode_number VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT episode_number FROM table_name_1 WHERE name = "vibhav gautam"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Elevator of Giacomo Colonna?
### Context:
CREATE TABLE table_name_21 (elevator VARCHAR, elector VARCHAR)
### Response:
### Response:
SELECT elevator FROM table_name_21 WHERE elector = "giacomo colonna"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 draft round in 2012 did a player from Rio Hondo get drafted?
### Context:
CREATE TABLE table_20589703_2 (draft_round VARCHAR, college VARCHAR, draft_year VARCHAR)
### Response:
### Response:
SELECT draft_round FROM table_20589703_2 WHERE college = "Rio Hondo" AND draft_year = 2012</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the result of the game that had 20,627 fans in attendance?
### Context:
CREATE TABLE table_name_79 (result VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_79 WHERE attendance = "20,627"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 RF when the SP was vicente padilla?
### Context:
CREATE TABLE table_12142298_2 (rightfielder VARCHAR, starting_pitcher VARCHAR)
### Response:
### Response:
SELECT rightfielder FROM table_12142298_2 WHERE starting_pitcher = "Vicente Padilla"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the Tie no was 60?
### Context:
CREATE TABLE table_name_31 (home_team VARCHAR, tie_no VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_31 WHERE tie_no = "60"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the date of game 81?
### Context:
CREATE TABLE table_name_40 (date VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_40 WHERE game = 81</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 greatest round of overall 83?
### Context:
CREATE TABLE table_10361625_1 (round INTEGER, overall VARCHAR)
### Response:
### Response:
SELECT MAX(round) FROM table_10361625_1 WHERE overall = 83</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the date of death of the Countess of Flanders who was born in 1309?
### Context:
CREATE TABLE table_name_75 (death VARCHAR, birth VARCHAR)
### Response:
### Response:
SELECT death FROM table_name_75 WHERE birth = "1309"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 metal has one rupee as the denomination?
### Context:
CREATE TABLE table_name_83 (metal VARCHAR, denomination VARCHAR)
### Response:
### Response:
SELECT metal FROM table_name_83 WHERE denomination = "one rupee"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 starting position in the year before 1986?
### Context:
CREATE TABLE table_name_33 (start VARCHAR, year INTEGER)
### Response:
### Response:
SELECT start FROM table_name_33 WHERE year < 1986</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the stage of winner Carlos Sastre when the general classification was Denis Menchov?
### Context:
CREATE TABLE table_name_21 (stage VARCHAR, general_classification VARCHAR, winner VARCHAR)
### Response:
### Response:
SELECT stage FROM table_name_21 WHERE general_classification = "denis menchov" AND winner = "carlos sastre"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 MONEY WITH 74-74-76-74=298 SCORE?
### Context:
CREATE TABLE table_name_2 (money___ INTEGER, score VARCHAR)
### Response:
### Response:
SELECT MIN(money___) AS $__ FROM table_name_2 WHERE score = 74 - 74 - 76 - 74 = 298</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Nationality of united states, and a Player of roger powell?
### Context:
CREATE TABLE table_name_9 (position VARCHAR, nationality VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_9 WHERE nationality = "united states" AND player = "roger powell"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 integrated where the component are customers?
### Context:
CREATE TABLE table_11944282_1 (integrated VARCHAR, component VARCHAR)
### Response:
### Response:
SELECT integrated FROM table_11944282_1 WHERE component = "Customers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 townships where pop (2010) and ater is 0.818
### Context:
CREATE TABLE table_18600760_2 (pop__2010_ VARCHAR, water__sqmi_ VARCHAR)
### Response:
### Response:
SELECT COUNT(pop__2010_) FROM table_18600760_2 WHERE water__sqmi_ = "0.818"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average access count of documents with the least popular structure.
### Context:
CREATE TABLE documents (access_count INTEGER, document_structure_code VARCHAR)
### Response:
### Response:
SELECT AVG(access_count) FROM documents GROUP BY document_structure_code ORDER BY COUNT(*) 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 Goals for team Kairat, in the 2002 season with more than 29 apps?
### Context:
CREATE TABLE table_name_81 (goals INTEGER, apps VARCHAR, team VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT AVG(goals) FROM table_name_81 WHERE team = "kairat" AND season = "2002" AND apps > 29</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the result of the match with Zab Judah as the opponent?
### Context:
CREATE TABLE table_name_42 (result VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_42 WHERE opponent = "zab judah"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Issue Date for an Eric Prydz song with a no available Download information?
### Context:
CREATE TABLE table_name_89 (issue_date VARCHAR, download VARCHAR, artist VARCHAR)
### Response:
### Response:
SELECT issue_date FROM table_name_89 WHERE download = "no available" AND artist = "eric prydz"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 more than 90 points?
### Context:
CREATE TABLE table_name_60 (attendance VARCHAR, points INTEGER)
### Response:
### Response:
SELECT attendance FROM table_name_60 WHERE points > 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:
what is the average year for 0 points and ferrari v8?
### Context:
CREATE TABLE table_name_85 (year INTEGER, points VARCHAR, engine VARCHAR)
### Response:
### Response:
SELECT AVG(year) FROM table_name_85 WHERE points = 0 AND engine = "ferrari v8"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 timeslot(s) for broadcast on February 22, 2008?
### Context:
CREATE TABLE table_16072430_1 (timeslot VARCHAR, air_date VARCHAR)
### Response:
### Response:
SELECT timeslot FROM table_16072430_1 WHERE air_date = "February 22, 2008"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Tally has a County of limerick, and a Rank larger than 1?
### Context:
CREATE TABLE table_name_3 (tally VARCHAR, county VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT tally FROM table_name_3 WHERE county = "limerick" 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 Country that has a Player of Scott Hoch?
### Context:
CREATE TABLE table_name_31 (country VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_31 WHERE player = "scott hoch"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1958 CIE is class s?
### Context:
CREATE TABLE table_name_69 (class VARCHAR)
### Response:
### Response:
SELECT 1958 AS _cié FROM table_name_69 WHERE class = "s"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.