inputs stringlengths 400 1.34k |
|---|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the dissolved date of the parliament assembled on 3 June 1467?
### Context:
CREATE TABLE table_name_31 (dissolved VARCHAR, assembled VARCHAR)
### Response:
### Response:
SELECT dissolved FROM table_name_31 WHERE assembled = "3 june 1467"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 students attend course English?
### Context:
CREATE TABLE student_course_attendance (course_id VARCHAR); CREATE TABLE courses (course_id VARCHAR, course_name VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM courses AS T1 JOIN student_course_attendance AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "English"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which record has a Team of manchester yankees?
### Context:
CREATE TABLE table_name_43 (record VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_43 WHERE team = "manchester yankees"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 assists for houston
### Context:
CREATE TABLE table_17288845_9 (high_assists VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT high_assists FROM table_17288845_9 WHERE team = "Houston"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank is the nation with 2 silver medals?
### Context:
CREATE TABLE table_name_44 (rank VARCHAR, silver VARCHAR)
### Response:
### Response:
SELECT rank FROM table_name_44 WHERE silver = "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 Opponent has a Location/Attendance of delta center/19,911 on dec 6?
### Context:
CREATE TABLE table_name_63 (opponent VARCHAR, location_attendance VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_63 WHERE location_attendance = "delta center/19,911" AND date = "dec 6"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who has a bowling style of source:?
### Context:
CREATE TABLE table_name_7 (player VARCHAR, bowling_style VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_7 WHERE bowling_style = "source:"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fire has dry metal?
### Context:
CREATE TABLE table_name_24 (fire VARCHAR, metal VARCHAR)
### Response:
### Response:
SELECT fire FROM table_name_24 WHERE metal = "dry"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record when the score was w 108–93 (ot)?
### Context:
CREATE TABLE table_13619135_5 (record VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT record FROM table_13619135_5 WHERE score = "W 108–93 (OT)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the result during the week # of top 8?
### Context:
CREATE TABLE table_name_26 (result VARCHAR, week__number VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_26 WHERE week__number = "top 8"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What venue listed is dated February 22, 2003?
### Context:
CREATE TABLE table_name_4 (venue VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_4 WHERE date = "february 22, 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 losses consist of the team of japan?
### Context:
CREATE TABLE table_name_13 (losses VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT losses FROM table_name_13 WHERE team = "japan"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the play based in Athens at the Attis Theatre company?
### Context:
CREATE TABLE table_name_33 (country VARCHAR, base VARCHAR, company VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_33 WHERE base = "athens" AND company = "attis theatre"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 English Translation, when Lyricist(s) is "Giorgos Moukidis", and when Original Album is "Ena (New Edition)"
### Context:
CREATE TABLE table_name_23 (english_translation VARCHAR, lyricist_s_ VARCHAR, original_album VARCHAR)
### Response:
### Response:
SELECT english_translation FROM table_name_23 WHERE lyricist_s_ = "giorgos moukidis" AND original_album = "ena (new edition)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grant amount of the organisations described as research?
### Context:
CREATE TABLE organisation_Types (organisation_type VARCHAR, organisation_type_description VARCHAR); CREATE TABLE Grants (organisation_id VARCHAR); CREATE TABLE Organisations (organisation_id VARCHAR, organisation_type VARCHAR)
### Response:
### Response:
SELECT SUM(grant_amount) FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id JOIN organisation_Types AS T3 ON T2.organisation_type = T3.organisation_type WHERE T3.organisation_type_description = 'Research'</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What score has a to par greater than 15, money ($) greater than 116, with billy burke as the player?
### Context:
CREATE TABLE table_name_81 (score VARCHAR, player VARCHAR, to_par VARCHAR, money___$__ VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_81 WHERE to_par > 15 AND money___$__ > 116 AND player = "billy burke"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Where did Scott Fitzgerald rank on the UK charts?
### Context:
CREATE TABLE table_name_84 (uk_chart VARCHAR, artist VARCHAR)
### Response:
### Response:
SELECT uk_chart FROM table_name_84 WHERE artist = "scott fitzgerald"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 borough or census area has a $59,596 median household income?
### Context:
CREATE TABLE table_name_68 (borough_or_census_area VARCHAR, median_household_income VARCHAR)
### Response:
### Response:
SELECT borough_or_census_area FROM table_name_68 WHERE median_household_income = "$59,596"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were scored on 21 Junio 2008?
### Context:
CREATE TABLE table_name_26 (goal VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT COUNT(goal) FROM table_name_26 WHERE date = "21 junio 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:
How many opponents have wimbledon (2) as the championship?
### Context:
CREATE TABLE table_22860698_2 (opponents VARCHAR, championship VARCHAR)
### Response:
### Response:
SELECT COUNT(opponents) FROM table_22860698_2 WHERE championship = "Wimbledon (2)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the largest ration with an ordinary value of 84 zolotnik?
### Context:
CREATE TABLE table_name_85 (ratio INTEGER, ordinary_value VARCHAR)
### Response:
### Response:
SELECT MAX(ratio) FROM table_name_85 WHERE ordinary_value = "84 zolotnik"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the smallest number for 102 when Friendly of friendly, and an Austria of greece?
### Context:
CREATE TABLE table_name_78 (austria VARCHAR)
### Response:
### Response:
SELECT MIN(102) FROM table_name_78 WHERE "friendly" = "friendly" AND austria = "greece"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall prior to 1996 with a slalom of 39?
### Context:
CREATE TABLE table_name_33 (overall INTEGER, slalom VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT MAX(overall) FROM table_name_33 WHERE slalom = "39" 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:
Who was the Opponent of the Game with a Result of l 23-41?
### Context:
CREATE TABLE table_name_91 (opponent VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_91 WHERE result = "l 23-41"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 years does the school have with a roll of 33?
### Context:
CREATE TABLE table_name_85 (years VARCHAR, roll VARCHAR)
### Response:
### Response:
SELECT years FROM table_name_85 WHERE roll = 33</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Northeastern University join?
### Context:
CREATE TABLE table_name_59 (joined INTEGER, institution VARCHAR)
### Response:
### Response:
SELECT SUM(joined) FROM table_name_59 WHERE institution = "northeastern university"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 election in which Lindley Beckworth was the incumbent?
### Context:
CREATE TABLE table_1341897_45 (result VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT result FROM table_1341897_45 WHERE incumbent = "Lindley Beckworth"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the game on October 20 with it's corresponding attendance?
### Context:
CREATE TABLE table_28768469_2 (location_attendance VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT location_attendance FROM table_28768469_2 WHERE date = "October 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 format has a Station of kcbs?
### Context:
CREATE TABLE table_name_80 (format VARCHAR, station VARCHAR)
### Response:
### Response:
SELECT format FROM table_name_80 WHERE station = "kcbs"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 local authorities and services provided by all stations.
### Context:
CREATE TABLE station (local_authority VARCHAR, services VARCHAR)
### Response:
### Response:
SELECT local_authority, services FROM station</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 after for geoff ogilvy?
### Context:
CREATE TABLE table_28498999_4 (after INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MAX(after) FROM table_28498999_4 WHERE player = "Geoff Ogilvy"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 one of the songs was originally performed by Rickie Lee Jones?
### Context:
CREATE TABLE table_12310814_1 (song_choice VARCHAR, original_artist VARCHAR)
### Response:
### Response:
SELECT song_choice FROM table_12310814_1 WHERE original_artist = "Rickie Lee 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 chassis does Gary Bettenhausen use?
### Context:
CREATE TABLE table_name_13 (chassis VARCHAR, drivers VARCHAR)
### Response:
### Response:
SELECT chassis FROM table_name_13 WHERE drivers = "gary bettenhausen"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 field goals for players with more than 60 points?
### Context:
CREATE TABLE table_name_65 (field_goals INTEGER, points INTEGER)
### Response:
### Response:
SELECT AVG(field_goals) FROM table_name_65 WHERE points > 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:
Who was the director for the episode on May 2, 1959?
### Context:
CREATE TABLE table_25800134_3 (director VARCHAR, airdate VARCHAR)
### Response:
### Response:
SELECT director FROM table_25800134_3 WHERE airdate = "May 2, 1959"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is The Opponents of lincoln city and a H / A of a?
### Context:
CREATE TABLE table_name_31 (date VARCHAR, opponents VARCHAR, h___a VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_31 WHERE opponents = "lincoln city" AND h___a = "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:
Find the name of department has the highest amount of students?
### Context:
CREATE TABLE student (dept_name VARCHAR)
### Response:
### Response:
SELECT dept_name FROM student GROUP BY dept_name ORDER BY COUNT(*) DESC LIMIT 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Record for Game 17?
### Context:
CREATE TABLE table_name_36 (record VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_36 WHERE game = "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:
How many gold did Gabon have when they were ranked no higher than 17, and less than 7 in total?
### Context:
CREATE TABLE table_name_94 (gold INTEGER, rank VARCHAR, total VARCHAR, nation VARCHAR)
### Response:
### Response:
SELECT SUM(gold) FROM table_name_94 WHERE total < 7 AND nation = "gabon" AND rank < 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:
What score has ipswich town as the home team, and replay as the tie no.?
### Context:
CREATE TABLE table_name_74 (score VARCHAR, home_team VARCHAR, tie_no VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_74 WHERE home_team = "ipswich town" AND tie_no = "replay"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winner for the Rome to Teramo course?
### Context:
CREATE TABLE table_name_97 (winner VARCHAR, course VARCHAR)
### Response:
### Response:
SELECT winner FROM table_name_97 WHERE course = "rome to teramo"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lost is the highest one that has a Season of 2001–02, and Points larger than 47?
### Context:
CREATE TABLE table_name_58 (lost INTEGER, season VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT MAX(lost) FROM table_name_58 WHERE season = "2001–02" AND points > 47</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the opponent for 11-1
### Context:
CREATE TABLE table_22847880_2 (opponent VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_22847880_2 WHERE record = "11-1"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the location for 2007
### Context:
CREATE TABLE table_23379776_6 (location VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT location FROM table_23379776_6 WHERE year = 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:
In what Venue was Surrey the Opposition in the 2nd Wicket?
### Context:
CREATE TABLE table_name_45 (venue VARCHAR, opposition VARCHAR, wicket VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_45 WHERE opposition = "surrey" AND wicket = "2nd"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 exactly 7 matches?
### Context:
CREATE TABLE table_27293285_6 (club VARCHAR, lost VARCHAR)
### Response:
### Response:
SELECT club FROM table_27293285_6 WHERE lost = "7"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the 2 car sets for 622
### Context:
CREATE TABLE table_19255192_2 (total_vehicles VARCHAR)
### Response:
### Response:
SELECT 2 AS _car_sets FROM table_19255192_2 WHERE total_vehicles = 622</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the comp 33?
### Context:
CREATE TABLE table_name_99 (year VARCHAR, comp VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_99 WHERE comp = "33"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the country is ESP and the transfer fee is € 7m?
### Context:
CREATE TABLE table_name_20 (name VARCHAR, country VARCHAR, transfer_fee VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_20 WHERE country = "esp" AND transfer_fee = "€ 7m"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played drums for the Gray Race album?
### Context:
CREATE TABLE table_name_89 (drums VARCHAR, album VARCHAR)
### Response:
### Response:
SELECT drums FROM table_name_89 WHERE album = "the gray race"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team for the home team wigan athletic?
### Context:
CREATE TABLE table_name_23 (away_team VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT away_team FROM table_name_23 WHERE home_team = "wigan athletic"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
I want to know the sum of fa cup goals for david mirfin and total goals less than 1
### Context:
CREATE TABLE table_name_59 (fa_cup_goals INTEGER, name VARCHAR, total_goals VARCHAR)
### Response:
### Response:
SELECT SUM(fa_cup_goals) FROM table_name_59 WHERE name = "david mirfin" AND total_goals < 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 most wins for draws greater than 0?
### Context:
CREATE TABLE table_name_31 (wins INTEGER, draws INTEGER)
### Response:
### Response:
SELECT MAX(wins) FROM table_name_31 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:
Which gender has a Name of rangitoto school?
### Context:
CREATE TABLE table_name_6 (gender VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT gender FROM table_name_6 WHERE name = "rangitoto school"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Director has a Role of melissa?
### Context:
CREATE TABLE table_name_80 (director VARCHAR, role VARCHAR)
### Response:
### Response:
SELECT director FROM table_name_80 WHERE role = "melissa"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Jake Johnson's position?
### Context:
CREATE TABLE table_name_60 (position VARCHAR, players VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_60 WHERE players = "jake johnson"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attended on mathches against atlanta thrashers
### Context:
CREATE TABLE table_17360840_4 (attendance VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT COUNT(attendance) FROM table_17360840_4 WHERE opponent = "Atlanta Thrashers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 members have professor edward acton as vice-chancellor?
### Context:
CREATE TABLE table_142950_1 (total_number_of_students VARCHAR, vice_chancellor VARCHAR)
### Response:
### Response:
SELECT COUNT(total_number_of_students) FROM table_142950_1 WHERE vice_chancellor = "Professor Edward Acton"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 field goals did Walter Rheinschild have?
### Context:
CREATE TABLE table_25724294_2 (field_goals INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MAX(field_goals) FROM table_25724294_2 WHERE player = "Walter Rheinschild"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Song has a Year smaller than 1979, and a US Hot 100 of 8?
### Context:
CREATE TABLE table_name_1 (song VARCHAR, year VARCHAR, us_hot_100 VARCHAR)
### Response:
### Response:
SELECT song FROM table_name_1 WHERE year < 1979 AND us_hot_100 = "8"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What song has draw number less than 2?
### Context:
CREATE TABLE table_name_41 (song VARCHAR, draw INTEGER)
### Response:
### Response:
SELECT song FROM table_name_41 WHERE draw < 2</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average number of points for places over 7 and having a draw order of 4?
### Context:
CREATE TABLE table_name_49 (points INTEGER, place VARCHAR, draw VARCHAR)
### Response:
### Response:
SELECT AVG(points) FROM table_name_49 WHERE place > 7 AND draw = 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 Award has a date of 2002?
### Context:
CREATE TABLE table_name_5 (award VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT award FROM table_name_5 WHERE year = 2002</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game played at the Boston Garden with a score of 118-110, what is the opposing team's record?
### Context:
CREATE TABLE table_name_68 (record VARCHAR, location VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_68 WHERE location = "boston garden" AND score = "118-110"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How much did jim colbert earned ranked above 2?
### Context:
CREATE TABLE table_name_64 (earnings__ VARCHAR, player VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT COUNT(earnings__) AS $__ FROM table_name_64 WHERE player = "jim colbert" AND rank < 2</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the name of the writer when the ratings was 2.61 million?
### Context:
CREATE TABLE table_23705843_1 (writer VARCHAR, ratings__millions_ VARCHAR)
### Response:
### Response:
SELECT writer FROM table_23705843_1 WHERE ratings__millions_ = "2.61"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player for 7 round
### Context:
CREATE TABLE table_name_74 (player VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_74 WHERE round = 7</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the highest points when year is more than 1953
### Context:
CREATE TABLE table_name_8 (points INTEGER, year INTEGER)
### Response:
### Response:
SELECT MAX(points) FROM table_name_8 WHERE year > 1953</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 city for athous lavrensis
### Context:
CREATE TABLE table_name_22 (city VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT city FROM table_name_22 WHERE name = "athous lavrensis"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
I want the type for host interface of pci saa7146 tmx320av7111
### Context:
CREATE TABLE table_name_89 (type VARCHAR, host_interface VARCHAR)
### Response:
### Response:
SELECT type FROM table_name_89 WHERE host_interface = "pci saa7146 tmx320av7111"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructed Mike Sparken's car with a tyre of E?
### Context:
CREATE TABLE table_name_79 (constructor VARCHAR, tyre VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT constructor FROM table_name_79 WHERE tyre = "e" AND driver = "mike sparken"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 vp8 ( webm ) is 6.0, how much is the vp9 ( webm )?
### Context:
CREATE TABLE table_26099252_1 (vp9___webm__ VARCHAR, vp8___webm__ VARCHAR)
### Response:
### Response:
SELECT vp9___webm__ FROM table_26099252_1 WHERE vp8___webm__ = "6.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:
Rank 6 has what notes?
### Context:
CREATE TABLE table_name_10 (notes VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT notes FROM table_name_10 WHERE rank = 6</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What general classification has 4 as the stage?
### Context:
CREATE TABLE table_name_96 (general_classification VARCHAR, stage VARCHAR)
### Response:
### Response:
SELECT general_classification FROM table_name_96 WHERE stage = "4"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many losses did the 1943 MLB have?
### Context:
CREATE TABLE table_name_61 (losses INTEGER, mlb_season VARCHAR)
### Response:
### Response:
SELECT AVG(losses) FROM table_name_61 WHERE mlb_season = "1943"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Gold has a Total of 2998, and a Bronze smaller than 1191?
### Context:
CREATE TABLE table_name_68 (gold INTEGER, total VARCHAR, bronze VARCHAR)
### Response:
### Response:
SELECT AVG(gold) FROM table_name_68 WHERE total = 2998 AND bronze < 1191</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2005 that has a grand slam tournaments in 2007?
### Context:
CREATE TABLE table_name_52 (Id VARCHAR)
### Response:
### Response:
SELECT 2005 FROM table_name_52 WHERE 2007 = "grand slam tournaments"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team with 39+1 points and fewer than 7 draws, how many wins were scored?
### Context:
CREATE TABLE table_name_32 (wins VARCHAR, points VARCHAR, draws VARCHAR)
### Response:
### Response:
SELECT COUNT(wins) FROM table_name_32 WHERE points = "39+1" AND draws < 7</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the Years of schools with a Roll Larger than 23 and a Decile greater than 5.
### Context:
CREATE TABLE table_name_27 (years VARCHAR, roll VARCHAR, decile VARCHAR)
### Response:
### Response:
SELECT years FROM table_name_27 WHERE roll > 23 AND decile > 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:
On October 8, what city was the game played?
### Context:
CREATE TABLE table_name_82 (city VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT city FROM table_name_82 WHERE date = "october 8"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
If the parallel bars is 16.150, who is the gymnast?
### Context:
CREATE TABLE table_18662026_10 (gymnast VARCHAR, parallel_bars VARCHAR)
### Response:
### Response:
SELECT gymnast FROM table_18662026_10 WHERE parallel_bars = "16.150"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the studio for catalog number 81063
### Context:
CREATE TABLE table_27303975_2 (studio VARCHAR, catalog_number VARCHAR)
### Response:
### Response:
SELECT studio FROM table_27303975_2 WHERE catalog_number = "81063"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What are the first names of students studying in room 107?
### Context:
CREATE TABLE list (firstname VARCHAR, classroom VARCHAR)
### Response:
### Response:
SELECT DISTINCT firstname FROM list WHERE classroom = 107</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Round was Player Adam Cracknell Picked after 231 in a Draft year after 1988?
### Context:
CREATE TABLE table_name_4 (round VARCHAR, player VARCHAR, pick VARCHAR, draft VARCHAR)
### Response:
### Response:
SELECT round FROM table_name_4 WHERE pick > 231 AND draft > 1988 AND player = "adam cracknell"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mean number of extra points was there when James Lawrence was a player and the touchdown number was less than 1?
### Context:
CREATE TABLE table_name_7 (extra_points INTEGER, player VARCHAR, touchdowns VARCHAR)
### Response:
### Response:
SELECT AVG(extra_points) FROM table_name_7 WHERE player = "james lawrence" AND touchdowns < 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many yes votes did the measure that got 60.39% yes votes get?
### Context:
CREATE TABLE table_256286_23 (yes_votes VARCHAR, _percentage_yes VARCHAR)
### Response:
### Response:
SELECT yes_votes FROM table_256286_23 WHERE _percentage_yes = "60.39%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament ending with a margin of victory of 2 strokes, who was the runner(s)-up?
### Context:
CREATE TABLE table_name_58 (runner_s__up VARCHAR, margin_of_victory VARCHAR)
### Response:
### Response:
SELECT runner_s__up FROM table_name_58 WHERE margin_of_victory = "2 strokes"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tree species are listed when the total plant species is 258?
### Context:
CREATE TABLE table_16577990_1 (tree_species VARCHAR, total_plant_species VARCHAR)
### Response:
### Response:
SELECT tree_species FROM table_16577990_1 WHERE total_plant_species = 258</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fitzroy play at home?
### Context:
CREATE TABLE table_name_38 (date VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_38 WHERE home_team = "fitzroy"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 extra points
### Context:
CREATE TABLE table_25730460_2 (extra_points INTEGER)
### Response:
### Response:
SELECT MIN(extra_points) FROM table_25730460_2</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the lowest Round with Overall of 247 and pick less than 41?
### Context:
CREATE TABLE table_name_39 (round INTEGER, overall VARCHAR, pick__number VARCHAR)
### Response:
### Response:
SELECT MIN(round) FROM table_name_39 WHERE overall = 247 AND pick__number < 41</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Jeff Staples player for which College, Junior or Club league?
### Context:
CREATE TABLE table_name_28 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT college_junior_club_team__league_ FROM table_name_28 WHERE player = "jeff staples"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which player had 9 blocks?
### Context:
CREATE TABLE table_25353861_5 (player VARCHAR, blocks VARCHAR)
### Response:
### Response:
SELECT player FROM table_25353861_5 WHERE blocks = 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:
Who won the 1973 democratic initial primary for queens of 19%?
### Context:
CREATE TABLE table_1108394_24 (queens VARCHAR)
### Response:
### Response:
SELECT 1973 AS _democratic_initial_primary FROM table_1108394_24 WHERE queens = "19_percentage"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 reference when romaji title is heartbreak sniper?
### Context:
CREATE TABLE table_10979230_5 (reference VARCHAR, romaji_title VARCHAR)
### Response:
### Response:
SELECT reference FROM table_10979230_5 WHERE romaji_title = "Heartbreak Sniper"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 players were selected after 2011?
### Context:
CREATE TABLE table_name_53 (player_name VARCHAR, year_ VARCHAR, a_ VARCHAR)
### Response:
### Response:
SELECT player_name FROM table_name_53 WHERE year_[a_] > 2011</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the lowest Top-10, when the Wins were 0, when the Top-25 was 12, and when the Events were less than 23?
### Context:
CREATE TABLE table_name_4 (top_10 INTEGER, events VARCHAR, wins VARCHAR, top_25 VARCHAR)
### Response:
### Response:
SELECT MIN(top_10) FROM table_name_4 WHERE wins = 0 AND top_25 = 12 AND events < 23</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
On what date was the Essendon home match?
### Context:
CREATE TABLE table_name_66 (date VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_66 WHERE home_team = "essendon"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Series has a Home of 2–0, and an Opponent of panathinaikos?
### Context:
CREATE TABLE table_name_96 (series VARCHAR, home VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT series FROM table_name_96 WHERE home = "2–0" AND opponent = "panathinaikos"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank has 1 silver medal and more than 1 gold medal?
### Context:
CREATE TABLE table_name_38 (rank VARCHAR, silver VARCHAR, gold VARCHAR)
### Response:
### Response:
SELECT rank FROM table_name_38 WHERE silver = 1 AND gold > 1</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.