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:
What is the Result for Couple Kelly & Alec when they have a Score of 22 (8, 7, 7)?
### Context:
CREATE TABLE table_name_48 (result VARCHAR, couple VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_48 WHERE couple = "kelly & alec" AND score = "22 (8, 7, 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 Music for the Dance that Scored 25 (9, 8, 8) and a Result of bottom 2?
### Context:
CREATE TABLE table_name_2 (music VARCHAR, score VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT music FROM table_name_2 WHERE score = "25 (9, 8, 8)" AND result = "bottom 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 totals are there for players with an average under 8 and less than 4 matches?
### Context:
CREATE TABLE table_name_53 (total VARCHAR, average VARCHAR, matches VARCHAR) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_53 WHERE average < 8 AND matches < 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest rank for championships with christy heffernan with over 4 matches?
### Context:
CREATE TABLE table_name_44 (rank INTEGER, player VARCHAR, matches VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_44 WHERE player = "christy heffernan" AND matches > 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the game at Junction Oval?
### Context:
CREATE TABLE table_name_55 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_55 WHERE venue = "junction 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:
What was the away team score at Windy Hill?
### Context:
CREATE TABLE table_name_25 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_25 WHERE venue = "windy hill" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where did St Kilda play as the away team?
### Context:
CREATE TABLE table_name_50 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_50 WHERE away_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 away team played at Glenferrie Oval?
### Context:
CREATE TABLE table_name_34 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_34 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:
How many people attended the game at Lake Oval?
### Context:
CREATE TABLE table_name_76 (crowd VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_76 WHERE venue = "lake 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:
What home team played at Lake Oval?
### Context:
CREATE TABLE table_name_1 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_1 WHERE venue = "lake 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:
What was the terrain for stage 10 of the tour?
### Context:
CREATE TABLE table_name_69 (terrain VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT terrain FROM table_name_69 WHERE stage = "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:
Which stage took the tour through Boulogne-Billancourt?
### Context:
CREATE TABLE table_name_90 (stage VARCHAR, route VARCHAR) [/INST]
### Response:
SELECT stage FROM table_name_90 WHERE route = "boulogne-billancourt" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won at stage 22?
### Context:
CREATE TABLE table_name_85 (winner VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_85 WHERE stage = "22" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winner of stage 12?
### Context:
CREATE TABLE table_name_76 (winner VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_76 WHERE stage = "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:
When was the Hon Ian Causley first elected?
### Context:
CREATE TABLE table_name_66 (first_elected VARCHAR, member VARCHAR) [/INST]
### Response:
SELECT first_elected FROM table_name_66 WHERE member = "hon ian causley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Jill Hall of the Labor Party first elected?
### Context:
CREATE TABLE table_name_6 (first_elected VARCHAR, party VARCHAR, member VARCHAR) [/INST]
### Response:
SELECT first_elected FROM table_name_6 WHERE party = "labor" AND member = "jill hall" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 state is Tanya Plibersek from?
### Context:
CREATE TABLE table_name_15 (state VARCHAR, member VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_15 WHERE member = "tanya plibersek" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of goals for the player from 2008-present named tony beltran, ranked lower than 7?
### Context:
CREATE TABLE table_name_98 (goals INTEGER, rank VARCHAR, years VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT MIN(goals) FROM table_name_98 WHERE years = "2008-present" AND player = "tony beltran" AND rank > 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 smallest number of goals for andy williams?
### Context:
CREATE TABLE table_name_92 (goals INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MIN(goals) FROM table_name_92 WHERE player = "andy williams" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of goals for robbie findley ranked above 10?
### Context:
CREATE TABLE table_name_37 (goals INTEGER, player VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MAX(goals) FROM table_name_37 WHERE player = "robbie findley" 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:
Which NTFS has a yes for FAT32 and a no for ReFS?
### Context:
CREATE TABLE table_name_20 (ntfs VARCHAR, fat32 VARCHAR, refs VARCHAR) [/INST]
### Response:
SELECT ntfs FROM table_name_20 WHERE fat32 = "yes" AND refs = "no" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 HPFS has a no for ReFS?
### Context:
CREATE TABLE table_name_51 (hpfs VARCHAR, refs VARCHAR) [/INST]
### Response:
SELECT hpfs FROM table_name_51 WHERE refs = "no" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 FAT32 has yes v1.0/v1.1 for NTFS?
### Context:
CREATE TABLE table_name_31 (fat32 VARCHAR, ntfs VARCHAR) [/INST]
### Response:
SELECT fat32 FROM table_name_31 WHERE ntfs = "yes v1.0/v1.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:
Which FAT32 has a no for HPFS, a no for ReFS, and a yes v3.0 fir NTFS?
### Context:
CREATE TABLE table_name_54 (fat32 VARCHAR, ntfs VARCHAR, hpfs VARCHAR, refs VARCHAR) [/INST]
### Response:
SELECT fat32 FROM table_name_54 WHERE hpfs = "no" AND refs = "no" AND ntfs = "yes v3.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:
Which ReFS has yes v3.0 for NTFS?
### Context:
CREATE TABLE table_name_43 (refs VARCHAR, ntfs VARCHAR) [/INST]
### Response:
SELECT refs FROM table_name_43 WHERE ntfs = "yes v3.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:
Which NTFS has a no for ReFS and a yes for HPFS?
### Context:
CREATE TABLE table_name_50 (ntfs VARCHAR, refs VARCHAR, hpfs VARCHAR) [/INST]
### Response:
SELECT ntfs FROM table_name_50 WHERE refs = "no" AND hpfs = "yes" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team plays at glenferrie oval?
### Context:
CREATE TABLE table_name_5 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_5 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:
What is the away side that playes at lake oval?
### Context:
CREATE TABLE table_name_12 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_12 WHERE venue = "lake 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 away team at western oval?
### Context:
CREATE TABLE table_name_84 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_84 WHERE venue = "western 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:
What is the Icelandic title for the Norweigan titled galgeblomsten?
### Context:
CREATE TABLE table_name_28 (icelandic_title VARCHAR, norwegian_title VARCHAR) [/INST]
### Response:
SELECT icelandic_title FROM table_name_28 WHERE norwegian_title = "galgeblomsten" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the event at lake oval?
### Context:
CREATE TABLE table_name_79 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_79 WHERE venue = "lake 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:
What is the away team's score at western oval?
### Context:
CREATE TABLE table_name_73 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_73 WHERE venue = "western 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:
What's the home team's score at lake oval?
### Context:
CREATE TABLE table_name_89 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_89 WHERE venue = "lake 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:
What date did VFL play MCG?
### Context:
CREATE TABLE table_name_87 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_87 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:
How many times is st kilda the away team?
### Context:
CREATE TABLE table_name_15 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_15 WHERE away_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:
When the crowd was larger than 20,915 what did the Away team score?
### Context:
CREATE TABLE table_name_87 (away_team VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT away_team AS score FROM table_name_87 WHERE crowd > 20 OFFSET 915 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in their game at Victoria Park?
### Context:
CREATE TABLE table_name_64 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_64 WHERE venue = "victoria park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What did the Home team score when they were in MCG?
### Context:
CREATE TABLE table_name_25 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_25 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 was the attendance for each game held at Foxboro Stadium?
### Context:
CREATE TABLE table_name_48 (attendance VARCHAR, game_site VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_48 WHERE game_site = "foxboro stadium" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the game against the Indianapolis Colts?
### Context:
CREATE TABLE table_name_40 (date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_40 WHERE opponent = "indianapolis colts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 weeks total did the New York Jets face the Pittsburgh Steelers?
### Context:
CREATE TABLE table_name_72 (week VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT COUNT(week) FROM table_name_72 WHERE opponent = "pittsburgh steelers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What week did the Jets play in the meadowlands with and attendance of 78,161?
### Context:
CREATE TABLE table_name_13 (week INTEGER, game_site VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT SUM(week) FROM table_name_13 WHERE game_site = "the meadowlands" AND attendance = "78,161" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the Jets play in the Meadowlands on week 14?
### Context:
CREATE TABLE table_name_46 (opponent VARCHAR, game_site VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_46 WHERE game_site = "the meadowlands" AND week = 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 was the Jets week 17 attendance?
### Context:
CREATE TABLE table_name_21 (attendance VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_21 WHERE week = 17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 hotel with 727 rooms open?
### Context:
CREATE TABLE table_name_80 (opening_date VARCHAR, hotel_rooms VARCHAR) [/INST]
### Response:
SELECT opening_date FROM table_name_80 WHERE hotel_rooms = 727 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 school(s) had a wide receiver drafted in round 4?
### Context:
CREATE TABLE table_name_16 (school_club_team VARCHAR, round VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_name_16 WHERE round > 4 AND position = "wide receiver" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 before week 6 at cleveland municipal stadium?
### Context:
CREATE TABLE table_name_19 (opponent VARCHAR, week VARCHAR, game_site VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_19 WHERE week < 6 AND game_site = "cleveland municipal stadium" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was Richmond the away team?
### Context:
CREATE TABLE table_name_28 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_28 WHERE away_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 county has a % (2040) larger than 1.8, a % (2000) smaller than 4.1, a % (1960) smaller than 3.2, and is ranked 13?
### Context:
CREATE TABLE table_name_82 (county VARCHAR, rank VARCHAR, _percentage__1960_ VARCHAR, _percentage__2040_ VARCHAR, _percentage__2000_ VARCHAR) [/INST]
### Response:
SELECT county FROM table_name_82 WHERE _percentage__2040_ > 1.8 AND _percentage__2000_ < 4.1 AND _percentage__1960_ < 3.2 AND rank = "13" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 % (1960) of Troms, which has a % (2040) smaller than 100 and a % (2000) smaller than 4.7?
### Context:
CREATE TABLE table_name_48 (_percentage__1960_ INTEGER, county VARCHAR, _percentage__2040_ VARCHAR, _percentage__2000_ VARCHAR) [/INST]
### Response:
SELECT SUM(_percentage__1960_) FROM table_name_48 WHERE _percentage__2040_ < 100 AND _percentage__2000_ < 4.7 AND county = "troms" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 % (1960) of the county with a % (2040) of 3.4?
### Context:
CREATE TABLE table_name_98 (_percentage__1960_ VARCHAR, _percentage__2040_ VARCHAR) [/INST]
### Response:
SELECT COUNT(_percentage__1960_) FROM table_name_98 WHERE _percentage__2040_ = 3.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 record company has robert craft conducting?
### Context:
CREATE TABLE table_name_32 (record_company VARCHAR, conductor VARCHAR) [/INST]
### Response:
SELECT record_company FROM table_name_32 WHERE conductor = "robert craft" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 conductor when the chicago symphony orchestra is featured?
### Context:
CREATE TABLE table_name_3 (conductor VARCHAR, orchestra VARCHAR) [/INST]
### Response:
SELECT conductor FROM table_name_3 WHERE orchestra = "chicago symphony orchestra" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attended the Cleveland Browns game on November 11, 1979?
### Context:
CREATE TABLE table_name_58 (attendance INTEGER, date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_58 WHERE date = "november 11, 1979" AND week > 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The game on September 2, 1979 was during which week of the season?
### Context:
CREATE TABLE table_name_89 (week VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(week) FROM table_name_89 WHERE date = "september 2, 1979" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team's score at the game where Richmond was the away team?
### Context:
CREATE TABLE table_name_19 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_19 WHERE away_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 size of the crowd when Essendon was the away team?
### Context:
CREATE TABLE table_name_40 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_40 WHERE away_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:
What is the whenbuilt of the Brighton built Blandford Forum with a withdrawn of september 1964?
### Context:
CREATE TABLE table_name_67 (whenbuilt VARCHAR, name VARCHAR, builder VARCHAR, withdrawn VARCHAR) [/INST]
### Response:
SELECT whenbuilt FROM table_name_67 WHERE builder = "brighton" AND withdrawn = "september 1964" AND name = "blandford forum" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 listed attendance when north melbourne was the home team?
### Context:
CREATE TABLE table_name_71 (crowd VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_71 WHERE home_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:
What day was geelong the home team?
### Context:
CREATE TABLE table_name_81 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_81 WHERE home_team = "geelong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played as the home team when the attendance was more than 30,080?
### Context:
CREATE TABLE table_name_21 (home_team VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT home_team FROM table_name_21 WHERE crowd > 30 OFFSET 080 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest attendance at Junction Oval?
### Context:
CREATE TABLE table_name_90 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_90 WHERE venue = "junction 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:
What was the away teams score when Hawthorn played as the home team?
### Context:
CREATE TABLE table_name_5 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_5 WHERE home_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bids does Atlantic 10 have?
### Context:
CREATE TABLE table_name_98 (_number_of_bids VARCHAR, conference VARCHAR) [/INST]
### Response:
SELECT _number_of_bids FROM table_name_98 WHERE conference = "atlantic 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 was the away team's score in the game against North Melbourne?
### Context:
CREATE TABLE table_name_35 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_35 WHERE home_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:
What was the average crowd size when the away team was South Melbourne?
### Context:
CREATE TABLE table_name_63 (crowd INTEGER, away_team VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_63 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:
At what venue was the away team Fitzroy?
### Context:
CREATE TABLE table_name_19 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_19 WHERE away_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:
In what year saw a total distance of 1,870.23 km?
### Context:
CREATE TABLE table_name_52 (year VARCHAR, distance VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_52 WHERE distance = "1,870.23 km" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won in 1965?
### Context:
CREATE TABLE table_name_42 (winner VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_42 WHERE year = "1965" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 stage was 1,648 km achieved?
### Context:
CREATE TABLE table_name_59 (stages VARCHAR, distance VARCHAR) [/INST]
### Response:
SELECT stages FROM table_name_59 WHERE distance = "1,648 km" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year was stage 8 reached?
### Context:
CREATE TABLE table_name_54 (year VARCHAR, stages VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_54 WHERE stages = "8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest number of bronze medals for teams ranked below 13?
### Context:
CREATE TABLE table_name_91 (bronze INTEGER, rank INTEGER) [/INST]
### Response:
SELECT MIN(bronze) FROM table_name_91 WHERE rank > 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 golds for teams ranking below 7 with 3 bronze and less than 5 total medals?
### Context:
CREATE TABLE table_name_79 (gold VARCHAR, total VARCHAR, bronze VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(gold) FROM table_name_79 WHERE bronze = 3 AND rank > 7 AND total < 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 lowest score in the Highest score column when Master P was the Worst dancer(s), Drew Lachey was the Best dancer(s), and the Lowest score was under 8?
### Context:
CREATE TABLE table_name_92 (highest_score INTEGER, lowest_score VARCHAR, worst_dancer_s_ VARCHAR, best_dancer_s_ VARCHAR) [/INST]
### Response:
SELECT MIN(highest_score) FROM table_name_92 WHERE worst_dancer_s_ = "master p" AND best_dancer_s_ = "drew lachey" AND lowest_score < 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:
Which of the Worst dancer(s) has the Lowest score of 14?
### Context:
CREATE TABLE table_name_43 (worst_dancer_s_ VARCHAR, lowest_score VARCHAR) [/INST]
### Response:
SELECT worst_dancer_s_ FROM table_name_43 WHERE lowest_score = 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 Dance with the Highest score under 30 and Stacy Keibler as the Best dancer(s)?
### Context:
CREATE TABLE table_name_10 (dance VARCHAR, highest_score VARCHAR, best_dancer_s_ VARCHAR) [/INST]
### Response:
SELECT dance FROM table_name_10 WHERE highest_score < 30 AND best_dancer_s_ = "stacy keibler" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the Highest score for the Quickstep Dance and the Lowest score under 16?
### Context:
CREATE TABLE table_name_72 (highest_score INTEGER, dance VARCHAR, lowest_score VARCHAR) [/INST]
### Response:
SELECT MIN(highest_score) FROM table_name_72 WHERE dance = "quickstep" AND lowest_score < 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is his record at ufc 67?
### Context:
CREATE TABLE table_name_20 (record VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_20 WHERE event = "ufc 67" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 his record at ufc 115?
### Context:
CREATE TABLE table_name_14 (record VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_14 WHERE event = "ufc 115" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent had an attendance of 40,070?
### Context:
CREATE TABLE table_name_48 (opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_48 WHERE attendance = "40,070" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the result for the game held on December 27, 2004 with a week greater than 2?
### Context:
CREATE TABLE table_name_4 (result VARCHAR, week VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_4 WHERE week > 2 AND date = "december 27, 2004" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for week 6?
### Context:
CREATE TABLE table_name_40 (opponent VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_40 WHERE week = 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:
Which opponent had the result of W 24-14?
### Context:
CREATE TABLE table_name_64 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_64 WHERE result = "w 24-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's the attendance for the game held on January 2, 2005?
### Context:
CREATE TABLE table_name_28 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_28 WHERE date = "january 2, 2005" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had an attendance of larger than 33,435?
### Context:
CREATE TABLE table_name_26 (result VARCHAR, attendance INTEGER) [/INST]
### Response:
SELECT result FROM table_name_26 WHERE attendance > 33 OFFSET 435 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lost under interim head coach, Dewayne Walker?
### Context:
CREATE TABLE table_name_18 (team VARCHAR, result VARCHAR, interim_head_coach VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_18 WHERE result = "lost" AND interim_head_coach = "dewayne walker" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 under interim head coach, Gary Darnell?
### Context:
CREATE TABLE table_name_62 (result VARCHAR, interim_head_coach VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_62 WHERE interim_head_coach = "gary darnell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a bowl of humanitarian?
### Context:
CREATE TABLE table_name_21 (team VARCHAR, bowl VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_21 WHERE bowl = "humanitarian" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result under the season coach Rich Rodriguez?
### Context:
CREATE TABLE table_name_29 (result VARCHAR, season_coach VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_29 WHERE season_coach = "rich rodriguez" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2008 head coach of UCLA?
### Context:
CREATE TABLE table_name_7 (team VARCHAR) [/INST]
### Response:
SELECT 2008 AS _head_coach FROM table_name_7 WHERE team = "ucla" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 score did the match against Marcos Daniel end?
### Context:
CREATE TABLE table_name_43 (score VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_43 WHERE opponent_in_the_final = "marcos daniel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the game played on a clay surface on June 6, 2005?
### Context:
CREATE TABLE table_name_23 (score VARCHAR, surface VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_23 WHERE surface = "clay" AND date = "june 6, 2005" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 match against Flavio Cipolla, played on a clay surface, occur?
### Context:
CREATE TABLE table_name_58 (date VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_58 WHERE surface = "clay" AND opponent_in_the_final = "flavio cipolla" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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's score when they were the home team?
### Context:
CREATE TABLE table_name_16 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_16 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:
Where was the Hawthorn game played?
### Context:
CREATE TABLE table_name_43 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_43 WHERE away_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away teams score at Princes Park?
### Context:
CREATE TABLE table_name_27 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_27 WHERE venue = "princes park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Rider finished with a speed of 81.91mph?
### Context:
CREATE TABLE table_name_39 (rider VARCHAR, speed VARCHAR) [/INST]
### Response:
SELECT rider FROM table_name_39 WHERE speed = "81.91mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rider finished with a speed of 80.18mph?
### Context:
CREATE TABLE table_name_61 (rider VARCHAR, speed VARCHAR) [/INST]
### Response:
SELECT rider FROM table_name_61 WHERE speed = "80.18mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team's score at princes park?
### Context:
CREATE TABLE table_name_85 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_85 WHERE venue = "princes park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the venue for the Footscray home team?
### Context:
CREATE TABLE table_name_66 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_66 WHERE home_team = "footscray" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.