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:
Who was the home team on the May 2 game?
### Context:
CREATE TABLE table_name_30 (home VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT home FROM table_name_30 WHERE date = "may 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:
On what date was there a record of 76-72?
### Context:
CREATE TABLE table_name_6 (date VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_6 WHERE record = "76-72"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Name has a Height (cm) of 175 and a Birthplace of detroit, michigan
### Context:
CREATE TABLE table_name_42 (name VARCHAR, height__cm_ VARCHAR, birthplace VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_42 WHERE height__cm_ = 175 AND birthplace = "detroit, michigan"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 smallest possible spoilt vote with the sør-trøndelag constituency.
### Context:
CREATE TABLE table_1289762_1 (s_spoilt_vote INTEGER, constituency VARCHAR)
### Response:
### Response:
SELECT MIN(s_spoilt_vote) FROM table_1289762_1 WHERE constituency = "Sør-Trøndelag"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does number 23 play?
### Context:
CREATE TABLE table_name_13 (position VARCHAR, number VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_13 WHERE number = "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:
Can you tell me the Chassis that has the Entrant of trivellato racing team?
### Context:
CREATE TABLE table_name_61 (chassis VARCHAR, entrant VARCHAR)
### Response:
### Response:
SELECT chassis FROM table_name_61 WHERE entrant = "trivellato racing team"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 hometown of the player who attended American Heritage School?
### Context:
CREATE TABLE table_11677691_11 (hometown VARCHAR, school VARCHAR)
### Response:
### Response:
SELECT hometown FROM table_11677691_11 WHERE school = "American Heritage 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:
What was the smallest total number of medals?
### Context:
CREATE TABLE table_1305623_20 (total_medals INTEGER)
### Response:
### Response:
SELECT MIN(total_medals) FROM table_1305623_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:
What time did team kawasaki zx10 1000cc have?
### Context:
CREATE TABLE table_name_72 (time VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT time FROM table_name_72 WHERE team = "kawasaki zx10 1000cc"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What opponents have a record of 90-70?
### Context:
CREATE TABLE table_name_34 (opponent VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_34 WHERE record = "90-70"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round when the match was against sergis kyratzis?
### Context:
CREATE TABLE table_name_21 (round VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT round FROM table_name_21 WHERE opponent = "sergis kyratzis"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 county had 915 third party voters?
### Context:
CREATE TABLE table_20278716_2 (county VARCHAR, others__number VARCHAR)
### Response:
### Response:
SELECT county FROM table_20278716_2 WHERE others__number = 915</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total defensive points for marion bartoli.
### Context:
CREATE TABLE table_24431264_17 (points VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT points AS defending FROM table_24431264_17 WHERE player = "Marion Bartoli"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earliest year Þorvaldur Ásgeirsson Lovísa Sigurðardóttir won mixed doubles
### Context:
CREATE TABLE table_14903999_1 (year INTEGER, mixed_doubles VARCHAR)
### Response:
### Response:
SELECT MIN(year) FROM table_14903999_1 WHERE mixed_doubles = "Þorvaldur Ásgeirsson Lovísa Sigurðardóttir"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 are there?
### Context:
CREATE TABLE member (Id VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM member</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 category won the Sundance Film Festival award in 1998?
### Context:
CREATE TABLE table_name_95 (category VARCHAR, award VARCHAR, result VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT category FROM table_name_95 WHERE result = "won" AND year = 1998 AND award = "sundance film festival"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 run 3 for the team with a run 1 of 1:17.6?
### Context:
CREATE TABLE table_name_40 (run_3 VARCHAR, run_1 VARCHAR)
### Response:
### Response:
SELECT run_3 FROM table_name_40 WHERE run_1 = "1:17.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:
Name the dates for margin of victory being 5 strokes
### Context:
CREATE TABLE table_1628792_1 (dates VARCHAR, margin_of_victory VARCHAR)
### Response:
### Response:
SELECT COUNT(dates) FROM table_1628792_1 WHERE margin_of_victory = "5 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:
What is the mens singles of 2008?
### Context:
CREATE TABLE table_12104319_1 (mens_singles VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT mens_singles FROM table_12104319_1 WHERE 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:
Ken Hemenway is in which Round?
### Context:
CREATE TABLE table_name_23 (round VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT round FROM table_name_23 WHERE player = "ken hemenway"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high rebounds from the date of April 14?
### Context:
CREATE TABLE table_name_29 (high_rebounds VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT high_rebounds FROM table_name_29 WHERE date = "april 14"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the highest NGC number that has a Declination ( J2000 ) of °04′58″ and a Apparent magnitude larger than 7.3?
### Context:
CREATE TABLE table_name_5 (ngc_number INTEGER, declination___j2000__ VARCHAR, apparent_magnitude VARCHAR)
### Response:
### Response:
SELECT MAX(ngc_number) FROM table_name_5 WHERE declination___j2000__ = "°04′58″" AND apparent_magnitude > 7.3</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What location did Zach Veach have the fastest lap?
### Context:
CREATE TABLE table_29285076_2 (location VARCHAR, fastest_lap VARCHAR)
### Response:
### Response:
SELECT location FROM table_29285076_2 WHERE fastest_lap = "Zach Veach"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 television network with the television channel of Astro Pelangi & Astro Bintang?
### Context:
CREATE TABLE table_27469019_2 (television_network VARCHAR, television_channel VARCHAR)
### Response:
### Response:
SELECT television_network FROM table_27469019_2 WHERE television_channel = "Astro Pelangi & Astro Bintang"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the total number of attendance when the cavaliers visited
### Context:
CREATE TABLE table_name_84 (attendance VARCHAR, visitor VARCHAR)
### Response:
### Response:
SELECT COUNT(attendance) FROM table_name_84 WHERE visitor = "cavaliers"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country had an interview score of 9.40 and average of 9.44?
### Context:
CREATE TABLE table_11884814_3 (country VARCHAR, interview VARCHAR, average VARCHAR)
### Response:
### Response:
SELECT country FROM table_11884814_3 WHERE interview = "9.40" AND average = "9.44"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
In which year did Misaki Doi lose the Australian Open Grand Slam?
### Context:
CREATE TABLE table_name_32 (year INTEGER, grand_slam VARCHAR, loser VARCHAR)
### Response:
### Response:
SELECT SUM(year) FROM table_name_32 WHERE grand_slam = "australian open" AND loser = "misaki doi"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2007-08 season at Stadio Silvio Piola?
### Context:
CREATE TABLE table_name_75 (stadium VARCHAR)
### Response:
### Response:
SELECT 2007 AS _08_season FROM table_name_75 WHERE stadium = "stadio silvio piola"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the opponents has bye as their box score?
### Context:
CREATE TABLE table_name_32 (opponent VARCHAR, box_scores VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_32 WHERE box_scores = "bye"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 frequency have a Status of owned by cumulus media, and a Format of news?
### Context:
CREATE TABLE table_name_66 (frequency INTEGER, status VARCHAR, format VARCHAR)
### Response:
### Response:
SELECT SUM(frequency) FROM table_name_66 WHERE status = "owned by cumulus media" AND format = "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:
How many numbers are there for kam wa7ed fina?
### Context:
CREATE TABLE table_28005100_1 (no VARCHAR, title VARCHAR)
### Response:
### Response:
SELECT COUNT(no) FROM table_28005100_1 WHERE title = "Kam Wa7ed Fina"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who scored 18-19?
### Context:
CREATE TABLE table_name_69 (opponent VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_69 WHERE score = "18-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 date was the Circuit of Indianapolis?
### Context:
CREATE TABLE table_name_33 (date VARCHAR, circuit VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_33 WHERE circuit = "indianapolis"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which average Crowd has a Home team of essendon?
### Context:
CREATE TABLE table_name_59 (crowd INTEGER, home_team VARCHAR)
### Response:
### Response:
SELECT AVG(crowd) FROM table_name_59 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:
How many documents have expenses?
### Context:
CREATE TABLE Documents_with_expenses (Id VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM Documents_with_expenses</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 population density of Strakonice (st) with more than 112 settlements?
### Context:
CREATE TABLE table_name_66 (pop_dens INTEGER, district VARCHAR, noof_settlements VARCHAR)
### Response:
### Response:
SELECT MIN(pop_dens) FROM table_name_66 WHERE district = "strakonice (st)" AND noof_settlements > 112</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the resolution of the fight where andre roberts record was 9-1?
### Context:
CREATE TABLE table_name_60 (res VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT res FROM table_name_60 WHERE record = "9-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 channel when the analogue terrestrial channel shows n/a, and the internet is itv.com, with a position larger than 6, and digital terrestrial channel is 6 27 (+1)?
### Context:
CREATE TABLE table_name_10 (channel VARCHAR, digital_terrestrial_channel VARCHAR, position VARCHAR, analogue_terrestrial_channel VARCHAR, internet VARCHAR)
### Response:
### Response:
SELECT channel FROM table_name_10 WHERE analogue_terrestrial_channel = "n/a" AND internet = "itv.com" AND position > 6 AND digital_terrestrial_channel = "6 27 (+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 title that had 13.59 u.s. viewers (millions)?
### Context:
CREATE TABLE table_22078691_2 (title VARCHAR, us_viewers__millions_ VARCHAR)
### Response:
### Response:
SELECT title FROM table_22078691_2 WHERE us_viewers__millions_ = "13.59"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 there a score of 5-1?
### Context:
CREATE TABLE table_name_42 (date VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_42 WHERE score = "5-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 points is there when the lost is 6 and the try bonus is 9?
### Context:
CREATE TABLE table_name_24 (points_for VARCHAR, lost VARCHAR, try_bonus VARCHAR)
### Response:
### Response:
SELECT points_for FROM table_name_24 WHERE lost = "6" AND try_bonus = "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 average number of years associated with 51 games tied and over 1184 total games?
### Context:
CREATE TABLE table_name_60 (years INTEGER, tied VARCHAR, total_games VARCHAR)
### Response:
### Response:
SELECT AVG(years) FROM table_name_60 WHERE tied = 51 AND total_games > 1184</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average cuts for top-25 more than 13 and top-5 less than 11
### Context:
CREATE TABLE table_name_5 (cuts_made INTEGER, top_25 VARCHAR, top_5 VARCHAR)
### Response:
### Response:
SELECT AVG(cuts_made) FROM table_name_5 WHERE top_25 > 13 AND top_5 < 11</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is High Rebounds, when High Assists is "Delonte West (10)"?
### Context:
CREATE TABLE table_name_86 (high_rebounds VARCHAR, high_assists VARCHAR)
### Response:
### Response:
SELECT high_rebounds FROM table_name_86 WHERE high_assists = "delonte west (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's the record of game number 23?
### Context:
CREATE TABLE table_name_50 (record VARCHAR, number VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_50 WHERE number = 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:
Name the listed owners for brevak racing
### Context:
CREATE TABLE table_2187178_1 (listed_owner_s_ VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT listed_owner_s_ FROM table_2187178_1 WHERE team = "Brevak Racing"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Away team score has a Crowd larger than 6,000?
### Context:
CREATE TABLE table_name_21 (away_team VARCHAR, crowd INTEGER)
### Response:
### Response:
SELECT away_team AS score FROM table_name_21 WHERE crowd > 6 OFFSET 000</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on November 10, 2007?
### Context:
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_76 WHERE date = "november 10, 2007"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the 2005-2006 team for player Phil Kessel?
### Context:
CREATE TABLE table_name_89 (name VARCHAR)
### Response:
### Response:
SELECT 2005 AS _2006_team FROM table_name_89 WHERE name = "phil kessel"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Test Mission: War Heads and Missile Payload launch when there was a partial failure?
### Context:
CREATE TABLE table_11869952_3 (launch_site VARCHAR, mission VARCHAR, results VARCHAR)
### Response:
### Response:
SELECT launch_site FROM table_11869952_3 WHERE mission = "Test mission: war heads and Missile payload" AND results = "Partial Failure"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What number does aleksandar ćapin wear?
### Context:
CREATE TABLE table_12962773_14 (no INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MAX(no) FROM table_12962773_14 WHERE player = "Aleksandar Ćapin"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has an opponent of Freiburg?
### Context:
CREATE TABLE table_name_39 (round VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT round FROM table_name_39 WHERE opponent = "freiburg"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the player with a total less than 300 and a to par of 9 have a win?
### Context:
CREATE TABLE table_name_36 (year_s__won VARCHAR, total VARCHAR, to_par VARCHAR)
### Response:
### Response:
SELECT year_s__won FROM table_name_36 WHERE total < 300 AND to_par = 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:
In season 2005–06, who is 3rd place?
### Context:
CREATE TABLE table_25058269_1 (season VARCHAR)
### Response:
### Response:
SELECT 3 AS rd_place FROM table_25058269_1 WHERE season = "2005–06"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 leading scorer on 2006-11-22?
### Context:
CREATE TABLE table_name_5 (leading_scorer VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT leading_scorer FROM table_name_5 WHERE date = "2006-11-22"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the finish of the Kentucky Derby?
### Context:
CREATE TABLE table_name_32 (finish VARCHAR, race VARCHAR)
### Response:
### Response:
SELECT finish FROM table_name_32 WHERE race = "kentucky derby"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To par has a Player of johanna head?
### Context:
CREATE TABLE table_name_87 (to_par VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT to_par FROM table_name_87 WHERE player = "johanna head"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who had the high points when the score was w 108–105 (ot)?
### Context:
CREATE TABLE table_name_59 (high_points VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT high_points FROM table_name_59 WHERE score = "w 108–105 (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:
How many games resulted in a loss?
### Context:
CREATE TABLE table_20745746_1 (_number VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT _number FROM table_20745746_1 WHERE record = "Loss"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tie no of the game with a Score of 1–1?
### Context:
CREATE TABLE table_name_39 (tie_no VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT tie_no FROM table_name_39 WHERE score = "1–1"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the position of Allen Gamboa?
### Context:
CREATE TABLE table_name_50 (position VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_50 WHERE name = "allen gamboa"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a Result of 7–20?
### Context:
CREATE TABLE table_name_37 (date VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_37 WHERE result = "7–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:
If the film title nominated is Baran, what was the result?
### Context:
CREATE TABLE table_19625976_1 (result VARCHAR, film_title_used_in_nomination VARCHAR)
### Response:
### Response:
SELECT result FROM table_19625976_1 WHERE film_title_used_in_nomination = "Baran"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the sum of the b score when the a score is 6.6 and the total is 15.6?
### Context:
CREATE TABLE table_name_37 (b_score INTEGER, a_score VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT SUM(b_score) FROM table_name_37 WHERE a_score = 6.6 AND total = 15.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 rank does Rodney Marsh have?
### Context:
CREATE TABLE table_21100348_15 (rank INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MAX(rank) FROM table_21100348_15 WHERE player = "Rodney Marsh"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 takeover date of the FA division mitre?
### Context:
CREATE TABLE table_name_19 (takeover_date VARCHAR, fa_division_s_ VARCHAR)
### Response:
### Response:
SELECT takeover_date FROM table_name_19 WHERE fa_division_s_ = "mitre"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Award has best performance by a leading actor in a musical
### Context:
CREATE TABLE table_name_20 (award VARCHAR, category VARCHAR)
### Response:
### Response:
SELECT award FROM table_name_20 WHERE category = "best performance by a leading actor in a musical"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record when the attendance was 28,531?
### Context:
CREATE TABLE table_name_62 (record VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_62 WHERE attendance = "28,531"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 visitors in 2007 were there for ski jumping hill?
### Context:
CREATE TABLE table_name_10 (_2007 VARCHAR, visitors INTEGER, type VARCHAR)
### Response:
### Response:
SELECT SUM(visitors), _2007 FROM table_name_10 WHERE type = "ski jumping hill"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What driver has under 19 laps and a grid under 10?
### Context:
CREATE TABLE table_name_89 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT driver FROM table_name_89 WHERE laps < 19 AND grid < 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 the home team when Tottenham Hotspur is the away team?
### Context:
CREATE TABLE table_name_86 (home_team VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_86 WHERE away_team = "tottenham hotspur"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What position does gerald carter play?
### Context:
CREATE TABLE table_name_52 (position VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_52 WHERE player = "gerald carter"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ethnic group had the largest population in сурдук in 2002?
### Context:
CREATE TABLE table_2562572_53 (largest_ethnic_group__2002_ VARCHAR, cyrillic_name VARCHAR)
### Response:
### Response:
SELECT largest_ethnic_group__2002_ FROM table_2562572_53 WHERE cyrillic_name = "Сурдук"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Canty (6) receive high assists?
### Context:
CREATE TABLE table_17118657_7 (date VARCHAR, high_assists VARCHAR)
### Response:
### Response:
SELECT date FROM table_17118657_7 WHERE high_assists = "Canty (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:
When the away team was collingwood, what was the away team score?
### Context:
CREATE TABLE table_name_86 (away_team VARCHAR)
### Response:
### Response:
SELECT away_team AS score FROM table_name_86 WHERE away_team = "collingwood"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the score when the game took place on January 18?
### Context:
CREATE TABLE table_17355628_7 (score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_17355628_7 WHERE date = "January 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:
Which democratic incumbent is from the district of ohio 7?
### Context:
CREATE TABLE table_name_93 (incumbent VARCHAR, party VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT incumbent FROM table_name_93 WHERE party = "democratic" AND district = "ohio 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:
Find the customer name and date of the orders that have the status "Delivered".
### Context:
CREATE TABLE customer_orders (order_date VARCHAR, customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
### Response:
### Response:
SELECT t1.customer_name, t2.order_date FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id WHERE order_status = "Delivered"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cfl team is winnipeg (3) via hamilton what are all the player
### Context:
CREATE TABLE table_26996293_2 (player VARCHAR, cfl_team VARCHAR)
### Response:
### Response:
SELECT player FROM table_26996293_2 WHERE cfl_team = "Winnipeg (3) via Hamilton"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Suited Match with a 2.99% House Edge?
### Context:
CREATE TABLE table_name_44 (suited_match VARCHAR, house_edge VARCHAR)
### Response:
### Response:
SELECT suited_match FROM table_name_44 WHERE house_edge = "2.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:
What is the date of the performance with the highest number of attendees?
### Context:
CREATE TABLE performance (Date VARCHAR, Attendance VARCHAR)
### Response:
### Response:
SELECT Date FROM performance ORDER BY Attendance DESC LIMIT 1</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the number of draws when played is less than 38?
### Context:
CREATE TABLE table_name_53 (draws VARCHAR, played INTEGER)
### Response:
### Response:
SELECT COUNT(draws) FROM table_name_53 WHERE played < 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 was the turnout percentage in the place that had 44.6% vote for brown?
### Context:
CREATE TABLE table_24115349_6 (turnout__percentage VARCHAR, brown__percentage VARCHAR)
### Response:
### Response:
SELECT turnout__percentage FROM table_24115349_6 WHERE brown__percentage = "44.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:
Which event is in the 1952 summer olympics?
### Context:
CREATE TABLE table_name_57 (event VARCHAR, olympics VARCHAR)
### Response:
### Response:
SELECT event FROM table_name_57 WHERE olympics = "1952 summer olympics"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which venue did the African Championships have after 2006 with a position of 2nd and 3000 m s'chase in notes?
### Context:
CREATE TABLE table_name_28 (venue VARCHAR, competition VARCHAR, position VARCHAR, year VARCHAR, notes VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_28 WHERE year > 2006 AND notes = "3000 m s'chase" AND position = "2nd" AND competition = "african championships"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Road Team of Game 3?
### Context:
CREATE TABLE table_name_64 (road_team VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT road_team FROM table_name_64 WHERE game = "game 3"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the highest pick of ron whaley?
### Context:
CREATE TABLE table_name_58 (pick INTEGER, name VARCHAR)
### Response:
### Response:
SELECT MAX(pick) FROM table_name_58 WHERE name = "ron whaley"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 happened on November 20, 1983 before week 15?
### Context:
CREATE TABLE table_name_51 (result VARCHAR, week VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_51 WHERE week < 15 AND date = "november 20, 1983"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a Score that is 46-77?
### Context:
CREATE TABLE table_name_65 (date VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_65 WHERE score = "46-77"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Surface of the match played on October 5, 1987?
### Context:
CREATE TABLE table_name_77 (surface VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT surface FROM table_name_77 WHERE date = "october 5, 1987"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
give the least number of times an episode was shown from 1997-1998
### Context:
CREATE TABLE table_10953197_6 (no_in_season INTEGER)
### Response:
### Response:
SELECT MIN(no_in_season) FROM table_10953197_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 is the total number of t (µm), when Technology is u c-si?
### Context:
CREATE TABLE table_name_67 (t__µm_ VARCHAR, technology VARCHAR)
### Response:
### Response:
SELECT COUNT(t__µm_) FROM table_name_67 WHERE technology = "u c-si"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 have a Save of ||20,599||32-37?
### Context:
CREATE TABLE table_name_90 (date VARCHAR, save VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_90 WHERE save = "||20,599||32-37"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest Col ranked less than 6 with an Island of Molokaʻi?
### Context:
CREATE TABLE table_name_96 (col__m_ INTEGER, island VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT MIN(col__m_) FROM table_name_96 WHERE island = "island of molokaʻi" AND 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:
Name the power for when the torque is n·m (lb·ft)/*n·m (lb·ft) @1750
### Context:
CREATE TABLE table_name_62 (power_rpm VARCHAR, torque__nm__rpm VARCHAR)
### Response:
### Response:
SELECT power_rpm FROM table_name_62 WHERE torque__nm__rpm = "n·m (lb·ft)/*n·m (lb·ft) @1750"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 teleplay by when the director is Rob Bailey?
### Context:
CREATE TABLE table_14346950_1 (teleplay_by VARCHAR, directed_by VARCHAR)
### Response:
### Response:
SELECT teleplay_by FROM table_14346950_1 WHERE directed_by = "Rob Bailey"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the Venue of Head Coach Farhad Kazemi?
### Context:
CREATE TABLE table_name_34 (capacity INTEGER, head_coach VARCHAR)
### Response:
### Response:
SELECT SUM(capacity) FROM table_name_34 WHERE head_coach = "farhad kazemi"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the sum of the evening gown scores where the interview score is less than 8.77, the swimsuit score is equal to 7.8, and the average score is less than 8.2?
### Context:
CREATE TABLE table_name_4 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, swimsuit VARCHAR)
### Response:
### Response:
SELECT SUM(evening_gown) FROM table_name_4 WHERE interview < 8.77 AND swimsuit = 7.8 AND average < 8.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 episode when the production code is 11.01?
### Context:
CREATE TABLE table_2226817_12 (title VARCHAR, production_code VARCHAR)
### Response:
### Response:
SELECT title FROM table_2226817_12 WHERE production_code = "11.01"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the largest 1st LBSC number with a LBSC Name of northcote?
### Context:
CREATE TABLE table_name_23 (lbsc_name VARCHAR)
### Response:
### Response:
SELECT MAX(1 AS st_lbsc_no) FROM table_name_23 WHERE lbsc_name = "northcote"</s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.