text
stringlengths 380
1.33k
|
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what date was the away team Sheffield Wednesday?
### Context:
CREATE TABLE table_name_51 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_51 WHERE away_team = "sheffield wednesday" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the tie number for the game with an away team of Hartlepool United?
### Context:
CREATE TABLE table_name_81 (tie_no VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_81 WHERE away_team = "hartlepool united" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score in Tie number 16?
### Context:
CREATE TABLE table_name_16 (score VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_16 WHERE tie_no = "16" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the duration of the commissioner from the zeeland province?
### Context:
CREATE TABLE table_name_47 (duration VARCHAR, province VARCHAR) [/INST]
### Response:
SELECT duration FROM table_name_47 WHERE province = "zeeland" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Rich round has an H/A of A and the opponent Sheffield United?
### Context:
CREATE TABLE table_name_83 (round VARCHAR, h___a VARCHAR, opponents VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_83 WHERE h___a = "a" AND opponents = "sheffield united" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the population (2008) when the capital was Sanniquellie, created later than 1964?
### Context:
CREATE TABLE table_name_1 (population__2008_ INTEGER, capital VARCHAR, created VARCHAR) [/INST]
### Response:
SELECT SUM(population__2008_) FROM table_name_1 WHERE capital = "sanniquellie" AND created > 1964 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest population (2008) created earlier than 1857, and the county was Sinoe?
### Context:
CREATE TABLE table_name_69 (population__2008_ INTEGER, created VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT MAX(population__2008_) FROM table_name_69 WHERE created < 1857 AND county = "sinoe" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the earliest created year when the map# was 10?
### Context:
CREATE TABLE table_name_33 (created INTEGER, map_number VARCHAR) [/INST]
### Response:
SELECT MIN(created) FROM table_name_33 WHERE map_number = 10 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Venue of the game with a Score of 0–0?
### Context:
CREATE TABLE table_name_47 (venue VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_47 WHERE score = "0–0" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Venue of the Friendly Competition with a Score of 1–4?
### Context:
CREATE TABLE table_name_58 (venue VARCHAR, competition VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_58 WHERE competition = "friendly" AND score = "1–4" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Venue of the WCQ5 Competition?
### Context:
CREATE TABLE table_name_49 (venue VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_49 WHERE competition = "wcq5" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Date of the Competition with a Score of 2–0?
### Context:
CREATE TABLE table_name_96 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_96 WHERE score = "2–0" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Venue of the Competition with a Score of 0–2?
### Context:
CREATE TABLE table_name_1 (venue VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_1 WHERE score = "0–2" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Venue of the Competition with a Score of 2–0?
### Context:
CREATE TABLE table_name_89 (venue VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_89 WHERE score = "2–0" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the binary meaning for symbol p?
### Context:
CREATE TABLE table_name_91 (binary_meaning VARCHAR, symbol VARCHAR) [/INST]
### Response:
SELECT binary_meaning FROM table_name_91 WHERE symbol = "p" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What;s the SI Meaning for symbol m?
### Context:
CREATE TABLE table_name_40 (si_meaning VARCHAR, symbol VARCHAR) [/INST]
### Response:
SELECT si_meaning FROM table_name_40 WHERE symbol = "m" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the size difference for exa?
### Context:
CREATE TABLE table_name_29 (size_difference VARCHAR, prefix VARCHAR) [/INST]
### Response:
SELECT size_difference FROM table_name_29 WHERE prefix = "exa" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of champion masahiro kawamura?
### Context:
CREATE TABLE table_name_32 (score VARCHAR, champion VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_32 WHERE champion = "masahiro kawamura" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What dates was champion masahiro kawamura at the ibaraki country club tournament?
### Context:
CREATE TABLE table_name_6 (dates VARCHAR, tournament_location VARCHAR, champion VARCHAR) [/INST]
### Response:
SELECT dates FROM table_name_6 WHERE tournament_location = "ibaraki country club" AND champion = "masahiro kawamura" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the champion with a ¥200,000,000 purse?
### Context:
CREATE TABLE table_name_96 (champion VARCHAR, purse VARCHAR) [/INST]
### Response:
SELECT champion FROM table_name_96 WHERE purse = "¥200,000,000" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What round had Canada with a draft of 1970 and a pick of 7?
### Context:
CREATE TABLE table_name_34 (round INTEGER, pick VARCHAR, nationality VARCHAR, draft VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_34 WHERE nationality = "canada" AND draft < 1970 AND pick = 7 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Placement in Miss Universe has a Delegate of janine mari raymundo tugonon?
### Context:
CREATE TABLE table_name_72 (placement_in_miss_universe VARCHAR, delegate VARCHAR) [/INST]
### Response:
SELECT placement_in_miss_universe FROM table_name_72 WHERE delegate = "janine mari raymundo tugonon" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Placement in Miss Universe is armi barbara quiray crespo?
### Context:
CREATE TABLE table_name_3 (placement_in_miss_universe VARCHAR, delegate VARCHAR) [/INST]
### Response:
SELECT placement_in_miss_universe FROM table_name_3 WHERE delegate = "armi barbara quiray crespo" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Delegate has a Placement in Miss Universe of fourth runner-up, and a Hometown of makati , rizal?
### Context:
CREATE TABLE table_name_96 (delegate VARCHAR, placement_in_miss_universe VARCHAR, hometown VARCHAR) [/INST]
### Response:
SELECT delegate FROM table_name_96 WHERE placement_in_miss_universe = "fourth runner-up" AND hometown = "makati , rizal" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What kind of Placement in Miss Universe that rosita cornell capuyon is in?
### Context:
CREATE TABLE table_name_4 (placement_in_miss_universe VARCHAR, delegate VARCHAR) [/INST]
### Response:
SELECT placement_in_miss_universe FROM table_name_4 WHERE delegate = "rosita cornell capuyon" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Year jennifer tarol barrientos is in?
### Context:
CREATE TABLE table_name_50 (year INTEGER, delegate VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_50 WHERE delegate = "jennifer tarol barrientos" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
WHAT YEAR WAS THE WORLD CHAMPIONSHIPS IN WITH NOTES OF 39.01?
### Context:
CREATE TABLE table_name_18 (year INTEGER, competition VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_18 WHERE competition = "world championships" AND notes = 39.01 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the sum of money ($) that angela park has won?
### Context:
CREATE TABLE table_name_99 (money___ INTEGER, player VARCHAR) [/INST]
### Response:
SELECT SUM(money___) AS $__ FROM table_name_99 WHERE player = "angela park" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What number was the pick for the position of DT in 1952, after round 1, where the overall was less than 155?
### Context:
CREATE TABLE table_name_10 (pick VARCHAR, year VARCHAR, overall VARCHAR, position VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT pick FROM table_name_10 WHERE position = "dt" AND round > 1 AND overall < 155 AND year = "1952" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which NFL team chose a position of DE when the pick was larger than 9, after round 5, and the overal was larger than 118?
### Context:
CREATE TABLE table_name_91 (nfl_team VARCHAR, position VARCHAR, round VARCHAR, overall VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT nfl_team FROM table_name_91 WHERE overall > 118 AND pick > 9 AND round > 5 AND position = "de" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is 2006, when 2007 is "1R", and when 2002 is "Q2"?
### Context:
CREATE TABLE table_name_63 (Id VARCHAR) [/INST]
### Response:
SELECT 2006 FROM table_name_63 WHERE 2007 = "1r" AND 2002 = "q2" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is 2001, when 2007 is "1R", and when 2008 is "Q1"?
### Context:
CREATE TABLE table_name_99 (Id VARCHAR) [/INST]
### Response:
SELECT 2001 FROM table_name_99 WHERE 2007 = "1r" AND 2008 = "q1" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Tournament, when 2003 is "A"?
### Context:
CREATE TABLE table_name_90 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_90 WHERE 2003 = "a" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is 2012, when Tournament is "French Open"?
### Context:
CREATE TABLE table_name_55 (tournament VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_55 WHERE tournament = "french open" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Tournament, when 2012 is "Grand Slam Tournaments"?
### Context:
CREATE TABLE table_name_35 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_35 WHERE 2012 = "grand slam tournaments" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is 2004, when 2010 is "Grand Slam Tournaments"?
### Context:
CREATE TABLE table_name_81 (Id VARCHAR) [/INST]
### Response:
SELECT 2004 FROM table_name_81 WHERE 2010 = "grand slam tournaments" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Member has an Electorate of southern melbourne?
### Context:
CREATE TABLE table_name_36 (member VARCHAR, electorate VARCHAR) [/INST]
### Response:
SELECT member FROM table_name_36 WHERE electorate = "southern melbourne" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was H.B. Higgins first elected?
### Context:
CREATE TABLE table_name_7 (first_elected VARCHAR, member VARCHAR) [/INST]
### Response:
SELECT first_elected FROM table_name_7 WHERE member = "h.b. higgins" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of byes when draws are larger than 0?
### Context:
CREATE TABLE table_name_37 (byes INTEGER, draws INTEGER) [/INST]
### Response:
SELECT MAX(byes) FROM table_name_37 WHERE draws > 0 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest amount of losses when the goldne rivers is quambatook, wins are smaller than 15 and draws larger than 0?
### Context:
CREATE TABLE table_name_24 (losses INTEGER, draws VARCHAR, wins VARCHAR, golden_rivers VARCHAR) [/INST]
### Response:
SELECT MIN(losses) FROM table_name_24 WHERE wins < 15 AND golden_rivers = "quambatook" AND draws > 0 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many losses did the golden rivers of ultima have when wins were less than 12 and byes larger than 2?
### Context:
CREATE TABLE table_name_43 (losses VARCHAR, byes VARCHAR, wins VARCHAR, golden_rivers VARCHAR) [/INST]
### Response:
SELECT COUNT(losses) FROM table_name_43 WHERE wins < 12 AND golden_rivers = "ultima" AND byes > 2 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many losses did the Golden rivers of hay have?
### Context:
CREATE TABLE table_name_2 (losses INTEGER, golden_rivers VARCHAR) [/INST]
### Response:
SELECT AVG(losses) FROM table_name_2 WHERE golden_rivers = "hay" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of byes when the wins were 9?
### Context:
CREATE TABLE table_name_59 (byes VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT COUNT(byes) FROM table_name_59 WHERE wins = 9 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is th average dras when wins are less than 12 and the against is 989?
### Context:
CREATE TABLE table_name_15 (draws INTEGER, against VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT AVG(draws) FROM table_name_15 WHERE against = 989 AND wins < 12 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest pole for class 125 cc and a WChmp more than 1?
### Context:
CREATE TABLE table_name_88 (pole INTEGER, class VARCHAR, wchmp VARCHAR) [/INST]
### Response:
SELECT MAX(pole) FROM table_name_88 WHERE class = "125 cc" AND wchmp > 1 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest flap for class 500 cc?
### Context:
CREATE TABLE table_name_5 (flap INTEGER, class VARCHAR) [/INST]
### Response:
SELECT MAX(flap) FROM table_name_5 WHERE class = "500 cc" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the Result F – A that has a League position of 1st on 4 january 1994?
### Context:
CREATE TABLE table_name_87 (result_f___a VARCHAR, league_position VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result_f___a FROM table_name_87 WHERE league_position = "1st" AND date = "4 january 1994" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Thai name for the word abbreviated มี.ค.?
### Context:
CREATE TABLE table_name_75 (thai_name VARCHAR, abbr VARCHAR) [/INST]
### Response:
SELECT thai_name FROM table_name_75 WHERE abbr = "มี.ค." </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the English word that is abbreviated พ.ย.?
### Context:
CREATE TABLE table_name_23 (english_name VARCHAR, abbr VARCHAR) [/INST]
### Response:
SELECT english_name FROM table_name_23 WHERE abbr = "พ.ย." </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the transcription for the English word March?
### Context:
CREATE TABLE table_name_11 (transcription VARCHAR, english_name VARCHAR) [/INST]
### Response:
SELECT transcription FROM table_name_11 WHERE english_name = "march" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the zodiac sign for the English March?
### Context:
CREATE TABLE table_name_81 (zodiac_sign VARCHAR, english_name VARCHAR) [/INST]
### Response:
SELECT zodiac_sign FROM table_name_81 WHERE english_name = "march" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the abbreviation for the sign of Capricorn?
### Context:
CREATE TABLE table_name_22 (abbr VARCHAR, zodiac_sign VARCHAR) [/INST]
### Response:
SELECT abbr FROM table_name_22 WHERE zodiac_sign = "capricorn" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the transcription for the English March?
### Context:
CREATE TABLE table_name_98 (transcription VARCHAR, english_name VARCHAR) [/INST]
### Response:
SELECT transcription FROM table_name_98 WHERE english_name = "march" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was the 1988 world group i edition with a result of 7–6 (7–5) , 6–3?
### Context:
CREATE TABLE table_name_69 (date VARCHAR, edition VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_69 WHERE edition = "1988 world group i" AND result = "7–6 (7–5) , 6–3" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent on april 24, 1999?
### Context:
CREATE TABLE table_name_8 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_8 WHERE date = "april 24, 1999" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the result for the clay surface edition on july 17, 1992?
### Context:
CREATE TABLE table_name_97 (result VARCHAR, surface VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_97 WHERE surface = "clay" AND date = "july 17, 1992" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What round had a result of 6–7 (6–8) , 1–6?
### Context:
CREATE TABLE table_name_83 (round VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_83 WHERE result = "6–7 (6–8) , 1–6" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent when the result was 7–6 (7–5) , 6–3?
### Context:
CREATE TABLE table_name_75 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_75 WHERE result = "7–6 (7–5) , 6–3" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What clay surface edition had an opponent of miho saeki?
### Context:
CREATE TABLE table_name_2 (edition VARCHAR, surface VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT edition FROM table_name_2 WHERE surface = "clay" AND opponent = "miho saeki" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is To par, when Country is "Spain"?
### Context:
CREATE TABLE table_name_47 (to_par VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_47 WHERE country = "spain" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Country, when Player is "José María Olazábal"?
### Context:
CREATE TABLE table_name_55 (country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_55 WHERE player = "josé maría olazábal" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Place, when Player is "John Cook"?
### Context:
CREATE TABLE table_name_49 (place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_49 WHERE player = "john cook" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Score, when Country is "United States", and when Player is "Raymond Floyd"?
### Context:
CREATE TABLE table_name_98 (score VARCHAR, country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_98 WHERE country = "united states" AND player = "raymond floyd" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is To par, when Player is "Larry Rinker"?
### Context:
CREATE TABLE table_name_59 (to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_59 WHERE player = "larry rinker" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Country, when Place is "T8", and when Score is "70-67=137"?
### Context:
CREATE TABLE table_name_98 (country VARCHAR, place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_98 WHERE place = "t8" AND score = 70 - 67 = 137 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Country is player Sandy Lyle from when she scored less than 69?
### Context:
CREATE TABLE table_name_25 (country VARCHAR, score VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_25 WHERE score < 69 AND player = "sandy lyle" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the to par of Philip Parkin?
### Context:
CREATE TABLE table_name_64 (to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_64 WHERE player = "philip parkin" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the lowest attendance was the opponent was chelsea?
### Context:
CREATE TABLE table_name_68 (attendance INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_68 WHERE opponent = "chelsea" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Date of Birth of the CB Player with a Height of m (ft 4in)?
### Context:
CREATE TABLE table_name_61 (date_of_birth VARCHAR, pos VARCHAR, height VARCHAR) [/INST]
### Response:
SELECT date_of_birth FROM table_name_61 WHERE pos = "cb" AND height = "m (ft 4in)" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which country had a t4 place and scored 66-73=139?
### Context:
CREATE TABLE table_name_42 (country VARCHAR, place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_42 WHERE place = "t4" AND score = 66 - 73 = 139 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who placed t1 in Scotland?
### Context:
CREATE TABLE table_name_37 (player VARCHAR, place VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_37 WHERE place = "t1" AND country = "scotland" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who had a to par of e and scored 71-69=140?
### Context:
CREATE TABLE table_name_32 (player VARCHAR, to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_32 WHERE to_par = "e" AND score = 71 - 69 = 140 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the to par for t10 and Colin Montgomerie?
### Context:
CREATE TABLE table_name_35 (to_par VARCHAR, place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_35 WHERE place = "t10" AND player = "colin montgomerie" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country scored 71-69=140?
### Context:
CREATE TABLE table_name_97 (country VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_97 WHERE score = 71 - 69 = 140 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What week's game had a result of bye?
### Context:
CREATE TABLE table_name_67 (week VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT week FROM table_name_67 WHERE result = "bye" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record at week 9?
### Context:
CREATE TABLE table_name_26 (record VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_26 WHERE week = "9" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the to par of player vijay singh?
### Context:
CREATE TABLE table_name_31 (to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_31 WHERE player = "vijay singh" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the player with playoff money from the United States?
### Context:
CREATE TABLE table_name_87 (player VARCHAR, money___£__ VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_87 WHERE money___£__ = "playoff" AND country = "united states" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the place of the player from New Zealand?
### Context:
CREATE TABLE table_name_82 (place VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_82 WHERE country = "new zealand" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the to par of the player from the United States with a t1 place?
### Context:
CREATE TABLE table_name_76 (to_par VARCHAR, country VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_76 WHERE country = "united states" AND place = "t1" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How much money does the player with a 72-70-71-72=285 score have?
### Context:
CREATE TABLE table_name_54 (money___£__ VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT money___£__ FROM table_name_54 WHERE score = 72 - 70 - 71 - 72 = 285 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the save of the game with a 7-6 score?
### Context:
CREATE TABLE table_name_67 (save VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT save FROM table_name_67 WHERE score = "7-6" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the save of the game where moran (1-2) lost?
### Context:
CREATE TABLE table_name_79 (save VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT save FROM table_name_79 WHERE loss = "moran (1-2)" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the opponent on June 15?
### Context:
CREATE TABLE table_name_71 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_71 WHERE date = "june 15" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the save of the game with rice as the opponent?
### Context:
CREATE TABLE table_name_49 (save VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT save FROM table_name_49 WHERE opponent = "rice" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest Goals Agains, when Played is greater than 34?
### Context:
CREATE TABLE table_name_38 (goals_against INTEGER, played INTEGER) [/INST]
### Response:
SELECT MIN(goals_against) FROM table_name_38 WHERE played > 34 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest Lost, when Goals For is greater than 52, when Points 1 is "44", and when Drawn is less than 8?
### Context:
CREATE TABLE table_name_88 (lost INTEGER, drawn VARCHAR, goals_for VARCHAR, points_1 VARCHAR) [/INST]
### Response:
SELECT MIN(lost) FROM table_name_88 WHERE goals_for > 52 AND points_1 = "44" AND drawn < 8 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of Lost, when Played is less than 34?
### Context:
CREATE TABLE table_name_91 (lost VARCHAR, played INTEGER) [/INST]
### Response:
SELECT COUNT(lost) FROM table_name_91 WHERE played < 34 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which song has a U.S. R&B 100 in 2010?
### Context:
CREATE TABLE table_name_53 (song VARCHAR, year VARCHAR, us_r VARCHAR, b VARCHAR) [/INST]
### Response:
SELECT song FROM table_name_53 WHERE year = 2010 AND us_r & b = "100" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Champion at Sopot prior to 2006 with a Score of 6–4, 6–7(7), 6–3?
### Context:
CREATE TABLE table_name_69 (champion VARCHAR, score VARCHAR, location VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT champion FROM table_name_69 WHERE location = "sopot" AND year < 2006 AND score = "6–4, 6–7(7), 6–3" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what Year was the match at Sopot with a Score of 2–6, 6–2, 6–3?
### Context:
CREATE TABLE table_name_77 (year VARCHAR, location VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_77 WHERE location = "sopot" AND score = "2–6, 6–2, 6–3" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Team has Podiums of 0, and a Position of nc†?
### Context:
CREATE TABLE table_name_94 (team VARCHAR, podiums VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_94 WHERE podiums = "0" AND position = "nc†" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Wins has a Team of scuderia toro rosso, Poles of 0, and Races of 16?
### Context:
CREATE TABLE table_name_99 (wins VARCHAR, races VARCHAR, team VARCHAR, poles VARCHAR) [/INST]
### Response:
SELECT wins FROM table_name_99 WHERE team = "scuderia toro rosso" AND poles = "0" AND races = "16" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Season has Podiums of 0, and Races of 16?
### Context:
CREATE TABLE table_name_44 (season INTEGER, podiums VARCHAR, races VARCHAR) [/INST]
### Response:
SELECT MAX(season) FROM table_name_44 WHERE podiums = "0" AND races = "16" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Wins has Podiums of 0, and a Series of masters of formula 3?
### Context:
CREATE TABLE table_name_40 (wins VARCHAR, podiums VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT wins FROM table_name_40 WHERE podiums = "0" AND series = "masters of formula 3" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the method used when the time was 4:52?
### Context:
CREATE TABLE table_name_49 (method VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_49 WHERE time = "4:52" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result when the time was 4:15?
### Context:
CREATE TABLE table_name_66 (res VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT res FROM table_name_66 WHERE time = "4:15" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the nationality of player Jani Hakanpaa?
### Context:
CREATE TABLE table_name_65 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_65 WHERE player = "jani hakanpaa" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
From which league is the player chosen by the Atlanta Thrashers (from Dallas) 6?
### Context:
CREATE TABLE table_name_69 (league_from VARCHAR, nhl_team VARCHAR) [/INST]
### Response:
SELECT league_from FROM table_name_69 WHERE nhl_team = "atlanta thrashers (from dallas) 6" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many households have yadkin as the county?
### Context:
CREATE TABLE table_name_71 (number_of_households VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT number_of_households FROM table_name_71 WHERE county = "yadkin" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.