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:
I want the lowest Grid for Rolf Stommelen
### Context:
CREATE TABLE table_name_48 (grid INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_48 WHERE driver = "rolf stommelen" </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:
I want the constructor for grid less than 20 and Laps of 6
### Context:
CREATE TABLE table_name_68 (constructor VARCHAR, grid VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_68 WHERE grid < 20 AND laps = 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 german total population after 1910 with an other total of 143 and 32 hungarians?
### Context:
CREATE TABLE table_name_59 (german VARCHAR, hungarian VARCHAR, year VARCHAR, other VARCHAR) [/INST]
### Response:
SELECT german FROM table_name_59 WHERE year > 1910 AND other = "143" AND hungarian = "32" </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 did Naoki Tsukahara finish 3rd in the 200 m race?
### Context:
CREATE TABLE table_name_4 (year VARCHAR, notes VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_4 WHERE notes = "200 m" AND position = "3rd" </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 attendance at the Dallas home game on may 12?
### Context:
CREATE TABLE table_name_67 (attendance VARCHAR, home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_67 WHERE home = "dallas" AND date = "may 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 nationality is the player ranked 2?
### Context:
CREATE TABLE table_name_83 (country VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_83 WHERE rank = 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 wins for mike hill ranked below 4?
### Context:
CREATE TABLE table_name_49 (wins VARCHAR, player VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(wins) FROM table_name_49 WHERE player = "mike hill" AND rank < 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 Trevor Cann's nationality?
### Context:
CREATE TABLE table_name_10 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_10 WHERE player = "trevor cann" </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 Kent Patterson's nationality?
### Context:
CREATE TABLE table_name_60 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_60 WHERE player = "kent patterson" </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 unit has a Pennant Number of 82?
### Context:
CREATE TABLE table_name_27 (unit VARCHAR, pennant_number VARCHAR) [/INST]
### Response:
SELECT unit FROM table_name_27 WHERE pennant_number = 82 </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 pennant number with ships in raahe class?
### Context:
CREATE TABLE table_name_54 (pennant_number INTEGER, ships_in_class VARCHAR) [/INST]
### Response:
SELECT MAX(pennant_number) FROM table_name_54 WHERE ships_in_class = "raahe" </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 pennant number with ships in pori class?
### Context:
CREATE TABLE table_name_61 (pennant_number INTEGER, ships_in_class VARCHAR) [/INST]
### Response:
SELECT MAX(pennant_number) FROM table_name_61 WHERE ships_in_class = "pori" </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 name of the competition that ended with a score of 2-1?
### Context:
CREATE TABLE table_name_90 (competition VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_90 WHERE score = "2-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 name of the competition that ended with a score of 1-3?
### Context:
CREATE TABLE table_name_63 (competition VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_63 WHERE score = "1-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:
At which venue did the game on 28 october 2013 take place?
### Context:
CREATE TABLE table_name_5 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_5 WHERE date = "28 october 2013" </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 Competition name of the competition that ended with a score of 2-1?
### Context:
CREATE TABLE table_name_74 (competition VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_74 WHERE score = "2-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:
In what year did a car have a yamaha v12 engine and a brabham bt60y chassis
### Context:
CREATE TABLE table_name_70 (year VARCHAR, engine VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_70 WHERE engine = "yamaha v12" AND chassis = "brabham bt60y" </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:
waht is the last year with a mclaren mp4/10b chassis
### Context:
CREATE TABLE table_name_31 (year INTEGER, chassis VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_31 WHERE chassis = "mclaren mp4/10b" </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:
before 1995 waht is the aveage pts for a mclaren mp4/10b chassis
### Context:
CREATE TABLE table_name_58 (pts INTEGER, chassis VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT AVG(pts) FROM table_name_58 WHERE chassis = "mclaren mp4/10b" AND year < 1995 </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 most recent year for a ligier gitanes blondes
### Context:
CREATE TABLE table_name_84 (year INTEGER, entrant VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_84 WHERE entrant = "ligier gitanes blondes" </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 averages with an interview of 8.75 when the evening gown number was bigger than 8.75?
### Context:
CREATE TABLE table_name_62 (average INTEGER, interview VARCHAR, evening_gown VARCHAR) [/INST]
### Response:
SELECT SUM(average) FROM table_name_62 WHERE interview = 8.75 AND evening_gown > 8.75 </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 interviews where the evening gown number is less than 8.82, the state is Kentucky, and the average is more than 8.85?
### Context:
CREATE TABLE table_name_64 (interview INTEGER, average VARCHAR, evening_gown VARCHAR, state VARCHAR) [/INST]
### Response:
SELECT SUM(interview) FROM table_name_64 WHERE evening_gown < 8.82 AND state = "kentucky" AND average > 8.85 </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 averages had a swimsuit number of 8.42 and an evening gown number that was less than 8.71?
### Context:
CREATE TABLE table_name_96 (average INTEGER, swimsuit VARCHAR, evening_gown VARCHAR) [/INST]
### Response:
SELECT SUM(average) FROM table_name_96 WHERE swimsuit = 8.42 AND evening_gown < 8.71 </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 state had an average of less than 8.67, a swimsuit score of 8.27, an evening gown score of 8.78, and an interview number of 8.52?
### Context:
CREATE TABLE table_name_70 (state VARCHAR, interview VARCHAR, evening_gown VARCHAR, average VARCHAR, swimsuit VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_70 WHERE average < 8.67 AND swimsuit = 8.27 AND evening_gown = 8.78 AND interview = 8.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 is the record when the visitor was Nashville?
### Context:
CREATE TABLE table_name_82 (record VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_82 WHERE visitor = "nashville" </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 a competition held at Pietermaritzburg?
### Context:
CREATE TABLE table_name_83 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_83 WHERE venue = "pietermaritzburg" </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 were the bowling figures for the competition at Pietermaritzburg?
### Context:
CREATE TABLE table_name_19 (bowling_figures_wickets_runs__overs_ VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT bowling_figures_wickets_runs__overs_ FROM table_name_19 WHERE venue = "pietermaritzburg" </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 during the competition in which the bowling figures were 5-33 (10)?
### Context:
CREATE TABLE table_name_82 (versus VARCHAR, bowling_figures_wickets_runs__overs_ VARCHAR) [/INST]
### Response:
SELECT versus FROM table_name_82 WHERE bowling_figures_wickets_runs__overs_ = "5-33 (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 were GD Mcgrath's bowling figures?
### Context:
CREATE TABLE table_name_42 (bowling_figures_wickets_runs__overs_ VARCHAR, bowler VARCHAR) [/INST]
### Response:
SELECT bowling_figures_wickets_runs__overs_ FROM table_name_42 WHERE bowler = "gd mcgrath" </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:
During the competition at Port Elizabeth, where the opponent was Australia, what were the bowling figures?
### Context:
CREATE TABLE table_name_43 (bowling_figures_wickets_runs__overs_ VARCHAR, venue VARCHAR, versus VARCHAR) [/INST]
### Response:
SELECT bowling_figures_wickets_runs__overs_ FROM table_name_43 WHERE venue = "port elizabeth" AND versus = "australia" </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 floors after rank 1 in the Trillium (residential) building?
### Context:
CREATE TABLE table_name_33 (floors INTEGER, rank VARCHAR, building VARCHAR) [/INST]
### Response:
SELECT MIN(floors) FROM table_name_33 WHERE rank > 1 AND building = "the trillium (residential)" </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 floors in the building completed before 1970 ranked more than 14?
### Context:
CREATE TABLE table_name_4 (floors INTEGER, completed VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(floors) FROM table_name_4 WHERE completed < 1970 AND rank > 14 </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 largest amount of floors in the 70m (233ft) Tupper building (educational)?
### Context:
CREATE TABLE table_name_11 (floors INTEGER, height VARCHAR, building VARCHAR) [/INST]
### Response:
SELECT MAX(floors) FROM table_name_11 WHERE height = "70m (233ft)" AND building = "tupper building (educational)" </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 manufacturer has 23 laps and a time of +45.195?
### Context:
CREATE TABLE table_name_52 (manufacturer VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT manufacturer FROM table_name_52 WHERE laps = 23 AND time_retired = "+45.195" </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 sum of Sylvain Guintoli's laps?
### Context:
CREATE TABLE table_name_8 (laps INTEGER, rider VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_8 WHERE rider = "sylvain guintoli" </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 runs were scored when the strike rate was 101.42?
### Context:
CREATE TABLE table_name_75 (runs VARCHAR, strike_rate VARCHAR) [/INST]
### Response:
SELECT runs FROM table_name_75 WHERE strike_rate = "101.42" </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 amount of grain in 2001?
### Context:
CREATE TABLE table_name_4 (product VARCHAR) [/INST]
### Response:
SELECT 2001 FROM table_name_4 WHERE product = "grain" </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 amount of oil terminal in 2004?
### Context:
CREATE TABLE table_name_51 (product VARCHAR) [/INST]
### Response:
SELECT 2004 FROM table_name_51 WHERE product = "oil terminal" </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 2003 statistic for the product that had 514,000 tonnes in 2001?
### Context:
CREATE TABLE table_name_34 (Id VARCHAR) [/INST]
### Response:
SELECT 2003 FROM table_name_34 WHERE 2001 = "514,000 tonnes" </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 2002 statistic for the product that had 452,000 tonnes in 2001?
### Context:
CREATE TABLE table_name_7 (Id VARCHAR) [/INST]
### Response:
SELECT 2002 FROM table_name_7 WHERE 2001 = "452,000 tonnes" </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 2001 statistic for the product that had 2,360,000 tonnes in 2002?
### Context:
CREATE TABLE table_name_91 (Id VARCHAR) [/INST]
### Response:
SELECT 2001 FROM table_name_91 WHERE 2002 = "2,360,000 tonnes" </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 2003 statistic for general cargo?
### Context:
CREATE TABLE table_name_94 (product VARCHAR) [/INST]
### Response:
SELECT 2003 FROM table_name_94 WHERE product = "general cargo" </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 did the home team score at MCG?
### Context:
CREATE TABLE table_name_30 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_30 WHERE venue = "mcg" </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 did the away team score when playing South Melbourne?
### Context:
CREATE TABLE table_name_44 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_44 WHERE home_team = "south 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 did the game with North Melbourne as the away team take place?
### Context:
CREATE TABLE table_name_89 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_89 WHERE away_team = "north 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:
If the Away team was south melbourne what Date did they play?
### Context:
CREATE TABLE table_name_57 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_57 WHERE away_team = "south 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 the Home team of essendon is playing what is the Away team score?
### Context:
CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_67 WHERE home_team = "essendon" </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:
I wan the date of vacancy for departure of resigned and outgoing manager of gordon wylde
### Context:
CREATE TABLE table_name_22 (date_of_vacancy VARCHAR, manner_of_departure VARCHAR, outgoing_manager VARCHAR) [/INST]
### Response:
SELECT date_of_vacancy FROM table_name_22 WHERE manner_of_departure = "resigned" AND outgoing_manager = "gordon wylde" </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:
I want the replaced for date of appointment being 12 october 2007
### Context:
CREATE TABLE table_name_73 (replaced_by VARCHAR, date_of_appointment VARCHAR) [/INST]
### Response:
SELECT replaced_by FROM table_name_73 WHERE date_of_appointment = "12 october 2007" </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:
I want the team for date of vacancy being 28 february
### Context:
CREATE TABLE table_name_52 (team VARCHAR, date_of_vacancy VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_52 WHERE date_of_vacancy = "28 february" </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:
I want the manner of departure for date of appointment being 12 october 2007
### Context:
CREATE TABLE table_name_87 (manner_of_departure VARCHAR, date_of_appointment VARCHAR) [/INST]
### Response:
SELECT manner_of_departure FROM table_name_87 WHERE date_of_appointment = "12 october 2007" </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 date was the syracuse circuit?
### Context:
CREATE TABLE table_name_67 (date VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_67 WHERE circuit = "syracuse" </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 date was the x gran premio di napoli?
### Context:
CREATE TABLE table_name_7 (date VARCHAR, race_name VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_7 WHERE race_name = "x gran premio di napoli" </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 report happened on 22 september?
### Context:
CREATE TABLE table_name_25 (report VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT report FROM table_name_25 WHERE date = "22 september" </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 report has a Winning driver of peter collins, and a Circuit of syracuse?
### Context:
CREATE TABLE table_name_33 (report VARCHAR, winning_driver VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT report FROM table_name_33 WHERE winning_driver = "peter collins" AND circuit = "syracuse" </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 appointed Judge Edward E. Cushman?
### Context:
CREATE TABLE table_name_73 (appointed_by VARCHAR, judge VARCHAR) [/INST]
### Response:
SELECT appointed_by FROM table_name_73 WHERE judge = "edward e. cushman" </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 Judge Jack Edward Tanner's chief judge?
### Context:
CREATE TABLE table_name_37 (Chief VARCHAR, judge VARCHAR) [/INST]
### Response:
SELECT Chief AS judge FROM table_name_37 WHERE judge = "jack edward tanner" </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 player that has 11 caps and plays the prop position?
### Context:
CREATE TABLE table_name_41 (date_of_birth__age_ VARCHAR, caps VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT date_of_birth__age_ FROM table_name_41 WHERE caps = 11 AND position = "prop" </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 club or province is the player with 12 caps from?
### Context:
CREATE TABLE table_name_49 (club_province VARCHAR, caps VARCHAR) [/INST]
### Response:
SELECT club_province FROM table_name_49 WHERE caps = 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 position does Toby Flood, who is from Newcastle and has fewer than 24 caps, play?
### Context:
CREATE TABLE table_name_47 (position VARCHAR, player VARCHAR, club_province VARCHAR, caps VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_47 WHERE club_province = "newcastle" AND caps < 24 AND player = "toby flood" </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 beat the Newcastle Breakers?
### Context:
CREATE TABLE table_name_76 (winningteam VARCHAR, losingteam VARCHAR) [/INST]
### Response:
SELECT winningteam FROM table_name_76 WHERE losingteam = "newcastle breakers" </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 team lost on 20 August 1989?
### Context:
CREATE TABLE table_name_82 (losingteam VARCHAR, cup_finaldate VARCHAR) [/INST]
### Response:
SELECT losingteam FROM table_name_82 WHERE cup_finaldate = "20 august 1989" </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:
On what date did the Brisbane Lions (1) win?
### Context:
CREATE TABLE table_name_44 (cup_finaldate VARCHAR, winningteam VARCHAR) [/INST]
### Response:
SELECT cup_finaldate FROM table_name_44 WHERE winningteam = "brisbane lions (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 was the winning team with the 8,132 final attendance?
### Context:
CREATE TABLE table_name_20 (winningteam VARCHAR, cup_final_attendance VARCHAR) [/INST]
### Response:
SELECT winningteam FROM table_name_20 WHERE cup_final_attendance = "8,132" </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 attendance on August 2?
### Context:
CREATE TABLE table_name_48 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_48 WHERE date = "august 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 date where the attendance was 31,220?
### Context:
CREATE TABLE table_name_62 (date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_62 WHERE attendance = "31,220" </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 team's record on August 4?
### Context:
CREATE TABLE table_name_8 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_8 WHERE date = "august 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 was the date when the attendance was 48,041?
### Context:
CREATE TABLE table_name_84 (date VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_84 WHERE attendance = "48,041" </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 are the finals opponents for the match with partner Ricardo Hocevar?
### Context:
CREATE TABLE table_name_44 (opponents_in_the_final VARCHAR, partnering VARCHAR) [/INST]
### Response:
SELECT opponents_in_the_final FROM table_name_44 WHERE partnering = "ricardo hocevar" </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 were the opponents of the final on June 23, 2003?
### Context:
CREATE TABLE table_name_4 (opponents_in_the_final VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponents_in_the_final FROM table_name_4 WHERE date = "june 23, 2003" </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 home side at glenferrie oval?
### Context:
CREATE TABLE table_name_37 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_37 WHERE venue = "glenferrie oval" </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 author of Episode 38 (16)?
### Context:
CREATE TABLE table_name_2 (written_by VARCHAR, episode__number VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_name_2 WHERE episode__number = "38 (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:
When did Episode 29 (7) originally air?
### Context:
CREATE TABLE table_name_65 (original_airdate VARCHAR, episode__number VARCHAR) [/INST]
### Response:
SELECT original_airdate FROM table_name_65 WHERE episode__number = "29 (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:
What is the episode # of the episode that aired on April 5, 1998?
### Context:
CREATE TABLE table_name_23 (episode__number VARCHAR, original_airdate VARCHAR) [/INST]
### Response:
SELECT episode__number FROM table_name_23 WHERE original_airdate = "april 5, 1998" </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 wrote the episode that originally aired on March 1, 1998?
### Context:
CREATE TABLE table_name_42 (written_by VARCHAR, original_airdate VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_name_42 WHERE original_airdate = "march 1, 1998" </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 tournament has 2000 of 3r?
### Context:
CREATE TABLE table_name_35 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_35 WHERE 2000 = "3r" </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 2001 has 1991 of 4r?
### Context:
CREATE TABLE table_name_42 (Id VARCHAR) [/INST]
### Response:
SELECT 2001 FROM table_name_42 WHERE 1991 = "4r" </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 1989 has 2002 of 4r and 2005 of 4r?
### Context:
CREATE TABLE table_name_22 (Id VARCHAR) [/INST]
### Response:
SELECT 1989 FROM table_name_22 WHERE 2002 = "4r" AND 2005 = "4r" </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 team played in front of 28,536 at an away stadium?
### Context:
CREATE TABLE table_name_34 (away_team VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT away_team AS score FROM table_name_34 WHERE crowd > 28 OFFSET 536 </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 Fitzroy score at their home stadium?
### Context:
CREATE TABLE table_name_25 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_25 WHERE home_team = "fitzroy" </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 faced off against St Kilda at their home?
### Context:
CREATE TABLE table_name_43 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_43 WHERE home_team = "st kilda" </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 low number of top 25s in an event with over 15 appearances?
### Context:
CREATE TABLE table_name_42 (top_25 INTEGER, events INTEGER) [/INST]
### Response:
SELECT MIN(top_25) FROM table_name_42 WHERE events > 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 average rank of the Reliance Entertainment movie with an opening day on Wednesday before 2012?
### Context:
CREATE TABLE table_name_8 (rank INTEGER, studio_s_ VARCHAR, day_of_week VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_8 WHERE day_of_week = "wednesday" AND year < 2012 AND studio_s_ = "reliance entertainment" </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 opening day net gross a Reliance Entertainment movie before 2011 had?
### Context:
CREATE TABLE table_name_90 (opening_day_net_gross INTEGER, studio_s_ VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT SUM(opening_day_net_gross) FROM table_name_90 WHERE studio_s_ = "reliance entertainment" AND year < 2011 </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 studio of ra.one?
### Context:
CREATE TABLE table_name_89 (studio_s_ VARCHAR, movie VARCHAR) [/INST]
### Response:
SELECT studio_s_ FROM table_name_89 WHERE movie = "ra.one" </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 year of the movie with an opening day on Friday with a rank 10?
### Context:
CREATE TABLE table_name_78 (year VARCHAR, day_of_week VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_78 WHERE day_of_week = "friday" AND rank = 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 lowest Sack with a Solo of 24, with Tackles larger than 25.5, with Yards larger than 0?
### Context:
CREATE TABLE table_name_1 (sack INTEGER, yards VARCHAR, solo VARCHAR, tackles VARCHAR) [/INST]
### Response:
SELECT MIN(sack) FROM table_name_1 WHERE solo = 24 AND tackles > 25.5 AND yards > 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 total number of Solo with a Player with sean mcinerney, and Yards larger than 0?
### Context:
CREATE TABLE table_name_33 (solo VARCHAR, player VARCHAR, yards VARCHAR) [/INST]
### Response:
SELECT COUNT(solo) FROM table_name_33 WHERE player = "sean mcinerney" AND yards > 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:
At the power plant located in ramakkalmedu, what is the sum of the total capacity (MWe)?
### Context:
CREATE TABLE table_name_86 (total_capacity__mwe_ INTEGER, power_plant VARCHAR) [/INST]
### Response:
SELECT SUM(total_capacity__mwe_) FROM table_name_86 WHERE power_plant = "ramakkalmedu" </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 company is the producer in the chennai mohan power plant?
### Context:
CREATE TABLE table_name_79 (producer VARCHAR, power_plant VARCHAR) [/INST]
### Response:
SELECT producer FROM table_name_79 WHERE power_plant = "chennai mohan" </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 company is the producer at the poolavadi location
### Context:
CREATE TABLE table_name_99 (producer VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT producer FROM table_name_99 WHERE location = "poolavadi" </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 company is known as the producer at the kethanur location?
### Context:
CREATE TABLE table_name_64 (producer VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT producer FROM table_name_64 WHERE location = "kethanur" </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 the duration was 11 min, 34 sec, what was the feathered (Fxx)?
### Context:
CREATE TABLE table_name_37 (feathered__fxx_ VARCHAR, duration VARCHAR) [/INST]
### Response:
SELECT feathered__fxx_ FROM table_name_37 WHERE duration = "11 min, 34 sec" </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:
I want to know the city for guelferbytanus b and the 5th
### Context:
CREATE TABLE table_name_6 (city VARCHAR, date VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_6 WHERE date = "5th" AND name = "guelferbytanus b" </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 country for the 9th and sign of g e
### Context:
CREATE TABLE table_name_51 (country VARCHAR, date VARCHAR, sign VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_51 WHERE date = "9th" AND sign = "g e" </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 content for sign of g e
### Context:
CREATE TABLE table_name_54 (content VARCHAR, sign VARCHAR) [/INST]
### Response:
SELECT content FROM table_name_54 WHERE sign = "g e" </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 city for athous lavrensis
### Context:
CREATE TABLE table_name_22 (city VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_22 WHERE name = "athous lavrensis" </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 race had a distance of 4 miles where the runner-up was not known?
### Context:
CREATE TABLE table_name_22 (race_name VARCHAR, dist__miles_ VARCHAR, runner_up VARCHAR) [/INST]
### Response:
SELECT race_name FROM table_name_22 WHERE dist__miles_ = "4" AND runner_up = "not known" </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 did the Jazz play the Bulls at home?
### Context:
CREATE TABLE table_name_91 (date VARCHAR, home VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_91 WHERE home = "jazz" AND visitor = "bulls" </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:
On February 26, who was the leading scorer?
### Context:
CREATE TABLE table_name_30 (leading_scorer VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT leading_scorer FROM table_name_30 WHERE date = "february 26" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.