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:
Name the total number of b winning car and bobby archer, tommy archer
### Context:
CREATE TABLE table_27965906_2 (b_winning_car VARCHAR, ss_winning_car VARCHAR) [/INST]
### Response:
SELECT COUNT(b_winning_car) FROM table_27965906_2 WHERE ss_winning_car = "Bobby Archer, Tommy Archer" </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 institutes have the team name Spartans?
### Context:
CREATE TABLE table_27961684_1 (institution VARCHAR, team_name VARCHAR) [/INST]
### Response:
SELECT COUNT(institution) FROM table_27961684_1 WHERE team_name = "Spartans" </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 states were there when there was an enrollment of 2789?
### Context:
CREATE TABLE table_27961684_1 (state VARCHAR, enrollment VARCHAR) [/INST]
### Response:
SELECT COUNT(state) FROM table_27961684_1 WHERE enrollment = 2789 </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 institute is in Indiana?
### Context:
CREATE TABLE table_27961684_1 (affiliation VARCHAR, state VARCHAR) [/INST]
### Response:
SELECT affiliation FROM table_27961684_1 WHERE state = "Indiana" </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 people enrolled for the institute with the Pioneers?
### Context:
CREATE TABLE table_27961684_1 (enrollment INTEGER, team_name VARCHAR) [/INST]
### Response:
SELECT MIN(enrollment) FROM table_27961684_1 WHERE team_name = "Pioneers" </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 is in the city of Rock Island?
### Context:
CREATE TABLE table_27961684_1 (team_name VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT team_name FROM table_27961684_1 WHERE city = "Rock Island" </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 episode written by alison cross?
### Context:
CREATE TABLE table_27969432_2 (title VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT title FROM table_27969432_2 WHERE written_by = "Alison Cross" </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 directed the episode written by karina csolty
### Context:
CREATE TABLE table_27969432_2 (directed_by VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_27969432_2 WHERE written_by = "Karina Csolty" </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 episode written by karina csolty?
### Context:
CREATE TABLE table_27969432_2 (title VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT title FROM table_27969432_2 WHERE written_by = "Karina Csolty" </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 directed the episode whose production code is 2m5901?
### Context:
CREATE TABLE table_27969432_4 (directed_by VARCHAR, production VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_27969432_4 WHERE production = "2M5901" </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 viewers in millions were there for episode 4 of this season?
### Context:
CREATE TABLE table_27969432_4 (us_viewers__in_millions_ VARCHAR, no_in_season VARCHAR) [/INST]
### Response:
SELECT COUNT(us_viewers__in_millions_) FROM table_27969432_4 WHERE no_in_season = 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:
Name the total number of rank for percentage change yoy 13.1%
### Context:
CREATE TABLE table_27956_3 (national_rank VARCHAR, percentage_change_yoy VARCHAR) [/INST]
### Response:
SELECT COUNT(national_rank) FROM table_27956_3 WHERE percentage_change_yoy = "13.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:
Name the percentage change yoy for presbyterian college
### Context:
CREATE TABLE table_27956_3 (percentage_change_yoy VARCHAR, institution VARCHAR) [/INST]
### Response:
SELECT percentage_change_yoy FROM table_27956_3 WHERE institution = "Presbyterian College" </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 national rank for medical university of south carolina
### Context:
CREATE TABLE table_27956_3 (national_rank VARCHAR, institution VARCHAR) [/INST]
### Response:
SELECT national_rank FROM table_27956_3 WHERE institution = "Medical University of South Carolina" </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 numbered episode in the series?
### Context:
CREATE TABLE table_27969432_3 (no_in_series INTEGER) [/INST]
### Response:
SELECT MIN(no_in_series) FROM table_27969432_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:
How many episodes were written by david j. north & janet tamaro?
### Context:
CREATE TABLE table_27969432_3 (original_air_date VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT COUNT(original_air_date) FROM table_27969432_3 WHERE written_by = "David J. North & Janet Tamaro" </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 are the original air dates for episodes directed by fred toye?
### Context:
CREATE TABLE table_27969432_3 (original_air_date VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_27969432_3 WHERE directed_by = "Fred Toye" </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 aggregate score for Montauban?
### Context:
CREATE TABLE table_27986200_3 (aggregate_score VARCHAR, proceed_to_quarter_final VARCHAR) [/INST]
### Response:
SELECT aggregate_score FROM table_27986200_3 WHERE proceed_to_quarter_final = "Montauban" </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 proceeded to the quarter finals with a points margin of 21?
### Context:
CREATE TABLE table_27986200_3 (proceed_to_quarter_final VARCHAR, points_margin VARCHAR) [/INST]
### Response:
SELECT proceed_to_quarter_final FROM table_27986200_3 WHERE points_margin = 21 </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 match points when Bordeaux-Bègles was eliminated from competition?
### Context:
CREATE TABLE table_27986200_3 (match_points VARCHAR, eliminated_from_competition VARCHAR) [/INST]
### Response:
SELECT match_points FROM table_27986200_3 WHERE eliminated_from_competition = "Bordeaux-Bègles" </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 viewers saw the episode written by kevin biegel & bill lawrence?
### Context:
CREATE TABLE table_27987623_1 (us_viewers__in_million_ VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT us_viewers__in_million_ FROM table_27987623_1 WHERE written_by = "Kevin Biegel & Bill Lawrence" </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 episode number veiwed by 7.43 million viewers?
### Context:
CREATE TABLE table_27987623_1 (series_episode INTEGER, us_viewers__in_million_ VARCHAR) [/INST]
### Response:
SELECT MAX(series_episode) FROM table_27987623_1 WHERE us_viewers__in_million_ = "7.43" </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 title of the episode viewed by 5.03 million viewers?
### Context:
CREATE TABLE table_27987623_1 (title VARCHAR, us_viewers__in_million_ VARCHAR) [/INST]
### Response:
SELECT title FROM table_27987623_1 WHERE us_viewers__in_million_ = "5.03" </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 episode number for the episode viewed by 5.68 million viewers?
### Context:
CREATE TABLE table_27987623_1 (season_episode VARCHAR, us_viewers__in_million_ VARCHAR) [/INST]
### Response:
SELECT season_episode FROM table_27987623_1 WHERE us_viewers__in_million_ = "5.68" </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 times is the new entries this round is none?
### Context:
CREATE TABLE table_27973624_1 (number_of_fixtures VARCHAR, new_entries_this_round VARCHAR) [/INST]
### Response:
SELECT COUNT(number_of_fixtures) FROM table_27973624_1 WHERE new_entries_this_round = "none" </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 prize money when the clubs is 392 → 276?
### Context:
CREATE TABLE table_27973624_1 (prize_money VARCHAR, clubs VARCHAR) [/INST]
### Response:
SELECT prize_money FROM table_27973624_1 WHERE clubs = "392 → 276" </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 number of fixtures?
### Context:
CREATE TABLE table_27973624_1 (number_of_fixtures INTEGER) [/INST]
### Response:
SELECT MIN(number_of_fixtures) FROM table_27973624_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 main date when the round is third round qualifying?
### Context:
CREATE TABLE table_27973624_1 (main_date VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT main_date FROM table_27973624_1 WHERE round = "Third round Qualifying" </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 round when the prize money is £7,500?
### Context:
CREATE TABLE table_27973624_1 (round VARCHAR, prize_money VARCHAR) [/INST]
### Response:
SELECT round FROM table_27973624_1 WHERE prize_money = "£7,500" </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 in series was the episode written by Eric Gilliland?
### Context:
CREATE TABLE table_27987768_1 (no_in_series INTEGER, written_by VARCHAR) [/INST]
### Response:
SELECT MAX(no_in_series) FROM table_27987768_1 WHERE written_by = "Eric Gilliland" </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 total number of points margin when brive is the winners
### Context:
CREATE TABLE table_27987767_2 (points_margin VARCHAR, winners VARCHAR) [/INST]
### Response:
SELECT COUNT(points_margin) FROM table_27987767_2 WHERE winners = "Brive" </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 match points did gran parma lost
### Context:
CREATE TABLE table_27987767_2 (match_points VARCHAR, losers VARCHAR) [/INST]
### Response:
SELECT match_points FROM table_27987767_2 WHERE losers = "Gran Parma" </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 match points rotherham lose
### Context:
CREATE TABLE table_27987767_2 (match_points VARCHAR, losers VARCHAR) [/INST]
### Response:
SELECT match_points FROM table_27987767_2 WHERE losers = "Rotherham" </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 brive is the proceed to quarter final how many were eliminated from competition?
### Context:
CREATE TABLE table_27987767_3 (eliminated_from_competition VARCHAR, proceed_to_quarter_final VARCHAR) [/INST]
### Response:
SELECT COUNT(eliminated_from_competition) FROM table_27987767_3 WHERE proceed_to_quarter_final = "Brive" </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 london irish was eliminated from competition who proceeded to quarter final?
### Context:
CREATE TABLE table_27987767_3 (proceed_to_quarter_final VARCHAR, eliminated_from_competition VARCHAR) [/INST]
### Response:
SELECT proceed_to_quarter_final FROM table_27987767_3 WHERE eliminated_from_competition = "London Irish" </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 brive proceeded to quarter final what were the match points?
### Context:
CREATE TABLE table_27987767_3 (match_points VARCHAR, proceed_to_quarter_final VARCHAR) [/INST]
### Response:
SELECT match_points FROM table_27987767_3 WHERE proceed_to_quarter_final = "Brive" </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 production code of the episode written by Jeff Filgo?
### Context:
CREATE TABLE table_27988281_1 (production_code INTEGER, written_by VARCHAR) [/INST]
### Response:
SELECT MAX(production_code) FROM table_27988281_1 WHERE written_by = "Jeff Filgo" </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 original air date for bryan moore & chris peterson
### Context:
CREATE TABLE table_27988408_1 (original_air_date VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_27988408_1 WHERE written_by = "Bryan Moore & Chris Peterson" </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 least production code for bryan moore & chris peterson
### Context:
CREATE TABLE table_27988408_1 (production_code INTEGER, written_by VARCHAR) [/INST]
### Response:
SELECT MIN(production_code) FROM table_27988408_1 WHERE written_by = "Bryan Moore & Chris Peterson" </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 dates did the episode with a production code of 804 originally air on?
### Context:
CREATE TABLE table_27988559_1 (original_air_date VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT COUNT(original_air_date) FROM table_27988559_1 WHERE production_code = 804 </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 directed episode 2 of the season?
### Context:
CREATE TABLE table_27988559_1 (directed_by VARCHAR, no_in_season VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_27988559_1 WHERE no_in_season = 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 dat did episode 195 in the series originally air?
### Context:
CREATE TABLE table_27988559_1 (original_air_date VARCHAR, no_in_series VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_27988559_1 WHERE no_in_series = 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 name of episode 5 in the season?
### Context:
CREATE TABLE table_27988540_1 (title VARCHAR, no_in_season VARCHAR) [/INST]
### Response:
SELECT title FROM table_27988540_1 WHERE no_in_season = 5 </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 title of episode 155 in the series?
### Context:
CREATE TABLE table_27988540_1 (title VARCHAR, no_in_series VARCHAR) [/INST]
### Response:
SELECT title FROM table_27988540_1 WHERE no_in_series = 155 </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 last year a sponsorship ended?
### Context:
CREATE TABLE table_28005160_2 (sponsorship INTEGER) [/INST]
### Response:
SELECT MAX(sponsorship) AS Ended FROM table_28005160_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 countries played in the city of ljungskile?
### Context:
CREATE TABLE table_28005160_2 (country VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT COUNT(country) FROM table_28005160_2 WHERE city = "Ljungskile" </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 cities are in sweden on this list?
### Context:
CREATE TABLE table_28005160_2 (city VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT city FROM table_28005160_2 WHERE country = "Sweden" </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 new orleans in?
### Context:
CREATE TABLE table_28005160_2 (country VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT country FROM table_28005160_2 WHERE city = "New Orleans" </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 are the new orleans shell shockers from?
### Context:
CREATE TABLE table_28005160_2 (country VARCHAR, sponsored_name VARCHAR) [/INST]
### Response:
SELECT country FROM table_28005160_2 WHERE sponsored_name = "New Orleans Shell Shockers" </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 arrangement for bets3ab 3alia nafsy?
### Context:
CREATE TABLE table_28005100_1 (arrangement VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT arrangement FROM table_28005100_1 WHERE title = "Bets3ab 3alia Nafsy" </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 composer of ain shams?
### Context:
CREATE TABLE table_28005100_1 (composer VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT composer FROM table_28005100_1 WHERE title = "Ain Shams" </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 numbers are there for kam wa7ed fina?
### Context:
CREATE TABLE table_28005100_1 (no VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT COUNT(no) FROM table_28005100_1 WHERE title = "Kam Wa7ed Fina" </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 composer of te3rafy?
### Context:
CREATE TABLE table_28005100_1 (composer VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT composer FROM table_28005100_1 WHERE title = "Te3rafy" </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 sound engineers were there for law hakon '3er leek?
### Context:
CREATE TABLE table_28005100_1 (sound_engineer VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT COUNT(sound_engineer) FROM table_28005100_1 WHERE title = "Law Hakon '3er Leek" </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 number was the lyricist ahmed metwally?
### Context:
CREATE TABLE table_28005100_1 (no VARCHAR, lyricist VARCHAR) [/INST]
### Response:
SELECT no FROM table_28005100_1 WHERE lyricist = "Ahmed Metwally" </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 site of the game that had an 11-4 score?
### Context:
CREATE TABLE table_28001186_8 (site_stadium VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT site_stadium FROM table_28001186_8 WHERE score = "11-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 NCAA Tournament record after the June 26 game?
### Context:
CREATE TABLE table_28001186_8 (ncaat_record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT ncaat_record FROM table_28001186_8 WHERE date = "June 26" </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 the save in the game in which Duke (3-2) took the loss?
### Context:
CREATE TABLE table_28001186_8 (save VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT save FROM table_28001186_8 WHERE loss = "Duke (3-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 event dates occurred when event details were women's sabre?
### Context:
CREATE TABLE table_28003469_1 (event_date VARCHAR, event_details VARCHAR) [/INST]
### Response:
SELECT COUNT(event_date) FROM table_28003469_1 WHERE event_details = "Women's Sabre" </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 every value for approximate duration when event details is women's foil?
### Context:
CREATE TABLE table_28003469_1 (approx_duration VARCHAR, event_details VARCHAR) [/INST]
### Response:
SELECT approx_duration FROM table_28003469_1 WHERE event_details = "Women's Foil" </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 every event date on Sunday with a starting time of 9:30 am?
### Context:
CREATE TABLE table_28003469_1 (event_date VARCHAR, event_day VARCHAR, starting_time VARCHAR) [/INST]
### Response:
SELECT event_date FROM table_28003469_1 WHERE event_day = "Sunday" AND starting_time = "9:30 am" </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 items appear in the viewers column when the draw is 2?
### Context:
CREATE TABLE table_27994983_8 (viewers VARCHAR, draw VARCHAR) [/INST]
### Response:
SELECT COUNT(viewers) FROM table_27994983_8 WHERE draw = 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 viewers are the when the draw is 3?
### Context:
CREATE TABLE table_27994983_8 (viewers INTEGER, draw VARCHAR) [/INST]
### Response:
SELECT MAX(viewers) FROM table_27994983_8 WHERE draw = 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:
How many juries are there when the draw is 3?
### Context:
CREATE TABLE table_27994983_8 (juries INTEGER, draw VARCHAR) [/INST]
### Response:
SELECT MAX(juries) FROM table_27994983_8 WHERE draw = 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:
How many juries are there for Brolle?
### Context:
CREATE TABLE table_27994983_8 (juries INTEGER, artist VARCHAR) [/INST]
### Response:
SELECT MAX(juries) FROM table_27994983_8 WHERE artist = "Brolle" </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 are the former counties of the Great Grimsby district?
### Context:
CREATE TABLE table_2801185_2 (former_county VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT former_county FROM table_2801185_2 WHERE district = "Great Grimsby" </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 statuses are there for the Durham district?
### Context:
CREATE TABLE table_2801185_2 (status VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT COUNT(status) FROM table_2801185_2 WHERE district = "Durham" </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 are the statuses of the districts whose successor is Wiltshire?
### Context:
CREATE TABLE table_2801185_2 (status VARCHAR, successor VARCHAR) [/INST]
### Response:
SELECT status FROM table_2801185_2 WHERE successor = "Wiltshire" </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 SDLP of Belfast?
### Context:
CREATE TABLE table_28005809_2 (sdlp INTEGER, council VARCHAR) [/INST]
### Response:
SELECT MAX(sdlp) FROM table_28005809_2 WHERE council = "Belfast" </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 smallest Alliance where the total is 25?
### Context:
CREATE TABLE table_28005809_2 (alliance INTEGER, total VARCHAR) [/INST]
### Response:
SELECT MIN(alliance) FROM table_28005809_2 WHERE total = 25 </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 2.93 million viewers?
### Context:
CREATE TABLE table_28019988_2 (written_by VARCHAR, us_viewers__million_ VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_28019988_2 WHERE us_viewers__million_ = "2.93" </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 series number is the episode with production code bdf101?
### Context:
CREATE TABLE table_28019988_2 (series__number INTEGER, production_code VARCHAR) [/INST]
### Response:
SELECT MAX(series__number) FROM table_28019988_2 WHERE production_code = "BDF101" </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 series number for the episode with production code bdf109?
### Context:
CREATE TABLE table_28019988_2 (series__number VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT series__number FROM table_28019988_2 WHERE production_code = "BDF109" </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 directed the episode with the production code of 6AKY11?
### Context:
CREATE TABLE table_28027307_1 (directed_by VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_28027307_1 WHERE production_code = "6AKY11" </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 millions of U.S. viewers watched the episode with the production code of 6AKY07?
### Context:
CREATE TABLE table_28027307_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT us_viewers__millions_ FROM table_28027307_1 WHERE production_code = "6AKY07" </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 episode in the series was watched by 10.96 million U.S. viewers?
### Context:
CREATE TABLE table_28027307_1 (no_in_series INTEGER, us_viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT MIN(no_in_series) FROM table_28027307_1 WHERE us_viewers__millions_ = "10.96" </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 dance had a score total of 31?
### Context:
CREATE TABLE table_2803106_1 (dance_song VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT dance_song FROM table_2803106_1 WHERE total = "31" </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 for the dance that tonioli's scored an 8 and horwood scored a 6?
### Context:
CREATE TABLE table_2803106_1 (result VARCHAR, tonioli VARCHAR, horwood VARCHAR) [/INST]
### Response:
SELECT result FROM table_2803106_1 WHERE tonioli = "8" AND horwood = "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 times did tonioli score a 9 when horwood scored a 6?
### Context:
CREATE TABLE table_2803106_1 (total VARCHAR, tonioli VARCHAR, horwood VARCHAR) [/INST]
### Response:
SELECT COUNT(total) FROM table_2803106_1 WHERE tonioli = "9" AND horwood = "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:
On week 11 when Dixon scored an 8, what was tonioli's score?
### Context:
CREATE TABLE table_2803106_1 (tonioli VARCHAR, week__number VARCHAR, dixon VARCHAR) [/INST]
### Response:
SELECT tonioli FROM table_2803106_1 WHERE week__number = 11 AND dixon = "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:
How many winners from previous round were there in the semi finals?
### Context:
CREATE TABLE table_28039032_1 (winners_from_previous_round VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT winners_from_previous_round FROM table_28039032_1 WHERE round = "Semi finals" </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 round that had 32 winners from previous round?
### Context:
CREATE TABLE table_28039032_1 (round VARCHAR, winners_from_previous_round VARCHAR) [/INST]
### Response:
SELECT round FROM table_28039032_1 WHERE winners_from_previous_round = "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:
How many clubs were remaining in the preliminary round?
### Context:
CREATE TABLE table_28039032_1 (clubs_remaining VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT clubs_remaining FROM table_28039032_1 WHERE round = "Preliminary round" </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 round when there were 16 winners from the previous round?
### Context:
CREATE TABLE table_28039032_1 (round VARCHAR, winners_from_previous_round VARCHAR) [/INST]
### Response:
SELECT round FROM table_28039032_1 WHERE winners_from_previous_round = "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:
How many clubs were involved in the second round?
### Context:
CREATE TABLE table_28039032_1 (clubs_involved VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT clubs_involved FROM table_28039032_1 WHERE round = "Second round" </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 grand prix de sar la princesse lalla meryem is the tournament what is the town?
### Context:
CREATE TABLE table_2803662_3 (town VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT town FROM table_2803662_3 WHERE tournament = "Grand Prix De SAR La Princesse Lalla Meryem" </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 stuttgart is the town what is the type?
### Context:
CREATE TABLE table_2803662_3 (type VARCHAR, town VARCHAR) [/INST]
### Response:
SELECT type FROM table_2803662_3 WHERE town = "Stuttgart" </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 person that is part of the belgian vw club that works with frédéric miclotte
### Context:
CREATE TABLE table_28046929_2 (driver VARCHAR, entrant VARCHAR, co_driver VARCHAR) [/INST]
### Response:
SELECT driver FROM table_28046929_2 WHERE entrant = "Belgian VW Club" AND co_driver = "Frédéric Miclotte" </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 type of vehicle driven by mark higgins
### Context:
CREATE TABLE table_28046929_2 (car VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT car FROM table_28046929_2 WHERE driver = "Mark 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 entry where the other person is zdeněk hrůza
### Context:
CREATE TABLE table_28046929_2 (entrant VARCHAR, co_driver VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_28046929_2 WHERE co_driver = "Zdeněk Hrůza" </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 other person where the assistant is paulo babo
### Context:
CREATE TABLE table_28046929_2 (driver VARCHAR, co_driver VARCHAR) [/INST]
### Response:
SELECT driver FROM table_28046929_2 WHERE co_driver = "Paulo Babo" </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 are all the people where the entries is peugeot sport polska
### Context:
CREATE TABLE table_28046929_2 (driver VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT driver FROM table_28046929_2 WHERE entrant = "Peugeot Sport Polska" </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 had 6.05 million U.s. viewers?
### Context:
CREATE TABLE table_28037619_2 (written_by VARCHAR, us_viewers__million_ VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_28037619_2 WHERE us_viewers__million_ = "6.05" </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 production codes are there for the episode that had 4.36 million u.s. viewers?
### Context:
CREATE TABLE table_28037619_2 (production_code VARCHAR, us_viewers__million_ VARCHAR) [/INST]
### Response:
SELECT COUNT(production_code) FROM table_28037619_2 WHERE us_viewers__million_ = "4.36" </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 people wrote the episode that had 7.26 million u.s. viewers?
### Context:
CREATE TABLE table_28037619_2 (written_by VARCHAR, us_viewers__million_ VARCHAR) [/INST]
### Response:
SELECT COUNT(written_by) FROM table_28037619_2 WHERE us_viewers__million_ = "7.26" </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 million u.s. viewers saw the episode that was directed by roger young and written by debra j. fisher?
### Context:
CREATE TABLE table_28037619_2 (us_viewers__million_ VARCHAR, directed_by VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT us_viewers__million_ FROM table_28037619_2 WHERE directed_by = "Roger Young" AND written_by = "Debra J. Fisher" </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 episode written by David Matthews?
### Context:
CREATE TABLE table_28037619_2 (title VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT title FROM table_28037619_2 WHERE written_by = "David Matthews" </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 are the colors of the Hudson school?
### Context:
CREATE TABLE table_28051859_3 (colors VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT colors FROM table_28051859_3 WHERE school = "Hudson" </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 were the members tenured in the Field school?
### Context:
CREATE TABLE table_28051859_3 (tenure VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT tenure FROM table_28051859_3 WHERE school = "Field" </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 pick# for CFL team of Toronto Argonauts?
### Context:
CREATE TABLE table_28059992_1 (pick__number VARCHAR, cfl_team VARCHAR) [/INST]
### Response:
SELECT COUNT(pick__number) FROM table_28059992_1 WHERE cfl_team = "Toronto Argonauts" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.