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:
Which opponent had round 1?
### Context:
CREATE TABLE table_name_85 (opponent VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_85 WHERE round = "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 date's opponent was Dender when the tournament was in the Jupiler League and the ground was a?
### Context:
CREATE TABLE table_name_52 (date VARCHAR, ground VARCHAR, opponent VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_52 WHERE opponent = "dender" AND tournament = "jupiler league" AND ground = "a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which ground's round was 33?
### Context:
CREATE TABLE table_name_17 (ground VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT ground FROM table_name_17 WHERE round = "33" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 competition had a final position/round of 2?
### Context:
CREATE TABLE table_name_68 (competition VARCHAR, final_position___round VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_68 WHERE final_position___round = "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:
Which first match had a final position/round in the third qualifying round?
### Context:
CREATE TABLE table_name_72 (first_match VARCHAR, final_position___round VARCHAR) [/INST]
### Response:
SELECT first_match FROM table_name_72 WHERE final_position___round = "third qualifying 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 is the lowest number of bronze medals for nations with over 6 total and 2 golds?
### Context:
CREATE TABLE table_name_71 (bronze INTEGER, gold VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MIN(bronze) FROM table_name_71 WHERE gold = 2 AND total > 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of silver medals for karate athletes with over 2 golds?
### Context:
CREATE TABLE table_name_33 (silver VARCHAR, sport VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT COUNT(silver) FROM table_name_33 WHERE sport = "karate" AND gold > 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the 2009 value with a 1r in 2010 and A in 2011?
### Context:
CREATE TABLE table_name_20 (Id VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_20 WHERE 2010 = "1r" AND 2011 = "a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the 2009 value with a 2010 A value?
### Context:
CREATE TABLE table_name_79 (Id VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_79 WHERE 2010 = "a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the 2010 value with A in 2008, A in 2011, and 2r in 2012?
### Context:
CREATE TABLE table_name_50 (Id VARCHAR) [/INST]
### Response:
SELECT 2010 FROM table_name_50 WHERE 2008 = "a" AND 2011 = "a" AND 2012 = "2r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average attendance on april 24?
### Context:
CREATE TABLE table_name_86 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_86 WHERE date = "april 24" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team when Richmond played?
### Context:
CREATE TABLE table_name_85 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_85 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 company was Constructor when there were 16 laps and grid was 9?
### Context:
CREATE TABLE table_name_47 (constructor VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_47 WHERE laps = 16 AND grid = 9 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Time/Retired when lotus - ford was constructor and the laps were less than 17?
### Context:
CREATE TABLE table_name_99 (time_retired VARCHAR, constructor VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_99 WHERE constructor = "lotus - ford" AND laps < 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:
What is the number of the grid when there was a Time/Retired of engine and less than 9 laps?
### Context:
CREATE TABLE table_name_25 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT SUM(grid) FROM table_name_25 WHERE time_retired = "engine" AND laps < 9 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what was the attendance for a home venue and a w 3-0 result?
### Context:
CREATE TABLE table_name_34 (attendance INTEGER, venue VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_34 WHERE venue = "home" AND result = "w 3-0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what was the attendance at the home venue with result w 3-1?
### Context:
CREATE TABLE table_name_99 (attendance INTEGER, venue VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_99 WHERE venue = "home" AND result = "w 3-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:
where did rochdale play as opponent?
### Context:
CREATE TABLE table_name_77 (venue VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_77 WHERE opponent = "rochdale" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was hosted at Adelaide Oval?
### Context:
CREATE TABLE table_name_14 (away_team VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_14 WHERE stadium = "adelaide 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:
When was a report not held?
### Context:
CREATE TABLE table_name_29 (year VARCHAR, report VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_29 WHERE report = "not held" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 visitor when vancouver was at home?
### Context:
CREATE TABLE table_name_77 (visitor VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_77 WHERE home = "vancouver" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 decision when new jersey was away?
### Context:
CREATE TABLE table_name_96 (decision VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT decision FROM table_name_96 WHERE visitor = "new jersey" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 URA Index scale?
### Context:
CREATE TABLE table_name_90 (scale VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT scale FROM table_name_90 WHERE name = "ura index" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 scale of sv_health with a word number smaller than 4?
### Context:
CREATE TABLE table_name_8 (scale VARCHAR, word__number VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT scale FROM table_name_8 WHERE word__number < 4 AND name = "sv_health" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tennis team is from the United States?
### Context:
CREATE TABLE table_name_55 (team VARCHAR, sport VARCHAR, nation_of_citizenship VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_55 WHERE sport = "tennis" AND nation_of_citizenship = "united states" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the nation of citizenship for athletes later than 2011 year of award?
### Context:
CREATE TABLE table_name_12 (nation_of_citizenship VARCHAR, year_of_award INTEGER) [/INST]
### Response:
SELECT nation_of_citizenship FROM table_name_12 WHERE year_of_award > 2011 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Constructor did Michael Schumacher have with a Grid smaller than 5?
### Context:
CREATE TABLE table_name_62 (constructor VARCHAR, grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_62 WHERE grid < 5 AND driver = "michael schumacher" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver has a Time/Retired of +1 lap?
### Context:
CREATE TABLE table_name_66 (driver VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_66 WHERE time_retired = "+1 lap" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 apparatus had a final score that was more than 17.75?
### Context:
CREATE TABLE table_name_38 (apparatus VARCHAR, score_final INTEGER) [/INST]
### Response:
SELECT apparatus FROM table_name_38 WHERE score_final > 17.75 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which competition description's apparatus was ribbon?
### Context:
CREATE TABLE table_name_46 (competition_description VARCHAR, apparatus VARCHAR) [/INST]
### Response:
SELECT competition_description FROM table_name_46 WHERE apparatus = "ribbon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Qualifying score had hoop as an apparatus?
### Context:
CREATE TABLE table_name_94 (score_qualifying VARCHAR, apparatus VARCHAR) [/INST]
### Response:
SELECT score_qualifying FROM table_name_94 WHERE apparatus = "hoop" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of qualifying scores when the final score is 16.625?
### Context:
CREATE TABLE table_name_7 (score_qualifying VARCHAR, score_final VARCHAR) [/INST]
### Response:
SELECT COUNT(score_qualifying) FROM table_name_7 WHERE score_final = 16.625 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played at Princes Park?
### Context:
CREATE TABLE table_name_20 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_20 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 did Melbourne score as the home team?
### Context:
CREATE TABLE table_name_88 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_88 WHERE home_team = "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 position does the player from malvern prep play?
### Context:
CREATE TABLE table_name_40 (position VARCHAR, high_school VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_40 WHERE high_school = "malvern prep" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 scored more than 572 points and had more than 29 games?
### Context:
CREATE TABLE table_name_44 (team VARCHAR, points VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_44 WHERE points > 572 AND games > 29 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 least amount of games for Luis scola with a rank greater than 1?
### Context:
CREATE TABLE table_name_88 (games INTEGER, rank VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT MIN(games) FROM table_name_88 WHERE rank > 1 AND name = "luis scola" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 identity of the brighton works built train?
### Context:
CREATE TABLE table_name_48 (identity VARCHAR, builder VARCHAR) [/INST]
### Response:
SELECT identity FROM table_name_48 WHERE builder = "brighton works" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance on May 13?
### Context:
CREATE TABLE table_name_76 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_76 WHERE date = "may 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 highest Quantity for PTRD Nos. 3, 15?
### Context:
CREATE TABLE table_name_84 (quantity INTEGER, ptrd_nos VARCHAR) [/INST]
### Response:
SELECT MAX(quantity) FROM table_name_84 WHERE ptrd_nos = "3, 15" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many were hosted whene the average attendance was 27,638?
### Context:
CREATE TABLE table_name_85 (hosted VARCHAR, average VARCHAR) [/INST]
### Response:
SELECT COUNT(hosted) FROM table_name_85 WHERE average = 27 OFFSET 638 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance last year when more than 176 were hosted?
### Context:
CREATE TABLE table_name_87 (last_year INTEGER, hosted INTEGER) [/INST]
### Response:
SELECT MIN(last_year) FROM table_name_87 WHERE hosted > 176 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1990 growth numbers had less than 10,522 in 1970?
### Context:
CREATE TABLE table_name_49 (Id VARCHAR) [/INST]
### Response:
SELECT COUNT(1990) FROM table_name_49 WHERE 1970 < 10 OFFSET 522 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the lowest 1980 growth that had 2,610 in 1970?
### Context:
CREATE TABLE table_name_61 (Id VARCHAR) [/INST]
### Response:
SELECT MIN(1980) FROM table_name_61 WHERE 1970 = 2 OFFSET 610 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 high lap total that has a grid of less than 4 and a Time/Retired of + 1 lap?
### Context:
CREATE TABLE table_name_3 (laps INTEGER, grid VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_3 WHERE grid < 4 AND time_retired = "+ 1 lap" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps associated with a Time/Retired of + 1:25.475?
### Context:
CREATE TABLE table_name_62 (laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_62 WHERE time_retired = "+ 1:25.475" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 teams score when the VFL played Princes Park?
### Context:
CREATE TABLE table_name_76 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_76 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 was the opponents score when Geelong played as home team?
### Context:
CREATE TABLE table_name_99 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_99 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:
What was the home teams score when the VFL played at Kardinia Park?
### Context:
CREATE TABLE table_name_80 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_80 WHERE venue = "kardinia 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:
When did Fitzroy play as the away team?
### Context:
CREATE TABLE table_name_70 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_70 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:
What is the average number of goals of the player with 234 apps and a rank above 8?
### Context:
CREATE TABLE table_name_13 (goals INTEGER, apps VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT AVG(goals) FROM table_name_13 WHERE apps = 234 AND rank < 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 average avg/game of the player with 97 goals and a rank above 7?
### Context:
CREATE TABLE table_name_51 (avg_game INTEGER, goals VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT AVG(avg_game) FROM table_name_51 WHERE goals = 97 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 highest number of games won where less than 21 games were conceded and less than 18 games were actually played?
### Context:
CREATE TABLE table_name_85 (won__pg_ INTEGER, goals_conceded__gc_ VARCHAR, played__pj_ VARCHAR) [/INST]
### Response:
SELECT MAX(won__pg_) FROM table_name_85 WHERE goals_conceded__gc_ < 21 AND played__pj_ < 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of goals conceded where more than 19 goals were scored, the team had 31 points, and more than 7 draws?
### Context:
CREATE TABLE table_name_80 (goals_conceded__gc_ INTEGER, draw__pe_ VARCHAR, goals_scored__gf_ VARCHAR, points__pts_ VARCHAR) [/INST]
### Response:
SELECT AVG(goals_conceded__gc_) FROM table_name_80 WHERE goals_scored__gf_ > 19 AND points__pts_ = 31 AND draw__pe_ > 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:
How many goals were conceded against the Chepo F.C. team where they lost 7 games?
### Context:
CREATE TABLE table_name_32 (goals_conceded__gc_ VARCHAR, lost__pp_ VARCHAR, team__equipo_ VARCHAR) [/INST]
### Response:
SELECT goals_conceded__gc_ FROM table_name_32 WHERE lost__pp_ = 7 AND team__equipo_ = "chepo f.c." </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 smallest crowd at junction oval?
### Context:
CREATE TABLE table_name_61 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_61 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 state has Richard Foster as a member?
### Context:
CREATE TABLE table_name_49 (state VARCHAR, member VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_49 WHERE member = "richard foster" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which member has Cook as the electorate?
### Context:
CREATE TABLE table_name_16 (member VARCHAR, electorate VARCHAR) [/INST]
### Response:
SELECT member FROM table_name_16 WHERE electorate = "cook" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the driver with chassis 625 553 500?
### Context:
CREATE TABLE table_name_72 (driver VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_72 WHERE chassis = "625 553 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 was tyre that was made by cooper - bristol that was driven by bob gerard?
### Context:
CREATE TABLE table_name_77 (tyre VARCHAR, constructor VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT tyre FROM table_name_77 WHERE constructor = "cooper - bristol" AND driver = "bob gerard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constructor of the officine alfieri maserati that was driven by Sergio Mantovani?
### Context:
CREATE TABLE table_name_77 (constructor VARCHAR, entrant VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_77 WHERE entrant = "officine alfieri maserati" AND driver = "sergio mantovani" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tyre had Sergio Mantovani as a driver?
### Context:
CREATE TABLE table_name_91 (tyre VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT tyre FROM table_name_91 WHERE driver = "sergio mantovani" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you say what was the entrant of maserati built item with a Tyre of p with a chassis of 250f a6gcm that was driven by Luigi Villoresi?
### Context:
CREATE TABLE table_name_86 (entrant VARCHAR, driver VARCHAR, chassis VARCHAR, constructor VARCHAR, tyre VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_86 WHERE constructor = "maserati" AND tyre = "p" AND chassis = "250f a6gcm" AND driver = "luigi villoresi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dutch word for one?
### Context:
CREATE TABLE table_name_18 (dutch VARCHAR, english VARCHAR) [/INST]
### Response:
SELECT dutch FROM table_name_18 WHERE english = "one" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Middle German (Luxemburgish) word for ein?
### Context:
CREATE TABLE table_name_20 (middle_german___luxemburgish__ VARCHAR, ein VARCHAR, Limburgish VARCHAR) [/INST]
### Response:
SELECT middle_german___luxemburgish__ FROM table_name_20 WHERE DUTCH(Limburgish) = ein </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Middle German (Luxemburgish) word for stone?
### Context:
CREATE TABLE table_name_58 (middle_german___luxemburgish__ VARCHAR, english VARCHAR) [/INST]
### Response:
SELECT middle_german___luxemburgish__ FROM table_name_58 WHERE english = "stone" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Dutch waord for høvd / høvur?
### Context:
CREATE TABLE table_name_68 (dutch VARCHAR, Groningen VARCHAR, høvd VARCHAR, høvur VARCHAR) [/INST]
### Response:
SELECT dutch FROM table_name_68 WHERE LOW_GERMAN(Groningen) = høvd / høvur </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the English word for twie?
### Context:
CREATE TABLE table_name_43 (english VARCHAR, twie VARCHAR, Limburgish VARCHAR) [/INST]
### Response:
SELECT english FROM table_name_43 WHERE DUTCH(Limburgish) = twie </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constructor on the team with 8 rounds and a chassis of 156 158 1512?
### Context:
CREATE TABLE table_name_54 (constructor VARCHAR, rounds VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_54 WHERE rounds = "8" AND chassis = "156 158 1512" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver of the team with tyre d, bt11 chassis, and 8 rounds?
### Context:
CREATE TABLE table_name_92 (driver VARCHAR, rounds VARCHAR, tyre VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_92 WHERE tyre = "d" AND chassis = "bt11" AND rounds = "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 number of bronze that silver is smaller than 1 and gold bigger than 0?
### Context:
CREATE TABLE table_name_51 (bronze INTEGER, silver VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT AVG(bronze) FROM table_name_51 WHERE silver < 1 AND gold > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the name when the nation is France, the pts/game is more than 3 and points is less than 33?
### Context:
CREATE TABLE table_name_55 (name VARCHAR, points VARCHAR, nation VARCHAR, pts_game VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_55 WHERE nation = "france" AND pts_game > 3 AND points < 33 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pts/game for Charlotte barras and the games is 5?
### Context:
CREATE TABLE table_name_78 (pts_game VARCHAR, games VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT pts_game FROM table_name_78 WHERE games = 5 AND name = "charlotte barras" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the average points when the nation is wales and the pts/game is more than 5?
### Context:
CREATE TABLE table_name_97 (points INTEGER, nation VARCHAR, pts_game VARCHAR) [/INST]
### Response:
SELECT AVG(points) FROM table_name_97 WHERE nation = "wales" AND pts_game > 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:
When is the earliest year for it is in barcelona, spain?
### Context:
CREATE TABLE table_name_35 (year INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_35 WHERE venue = "barcelona, spain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average year they finished 5th in santiago, chile?
### Context:
CREATE TABLE table_name_57 (year INTEGER, position VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_57 WHERE position = "5th" AND venue = "santiago, chile" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pick was MIchael Holper?
### Context:
CREATE TABLE table_name_42 (pick INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MIN(pick) FROM table_name_42 WHERE player = "michael holper" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Gold where the Nation is Russia (rus) and the number of silver is less than 2?
### Context:
CREATE TABLE table_name_99 (gold INTEGER, nation VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT AVG(gold) FROM table_name_99 WHERE nation = "russia (rus)" AND silver < 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total where the nation is South Africa (rsa) and bronze is less than 1?
### Context:
CREATE TABLE table_name_45 (total INTEGER, nation VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT SUM(total) FROM table_name_45 WHERE nation = "south africa (rsa)" AND bronze < 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 nation has 0 gold, a rank greater than 14, a total of 1, and silver less than 1?
### Context:
CREATE TABLE table_name_10 (nation VARCHAR, silver VARCHAR, total VARCHAR, gold VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_10 WHERE gold = 0 AND rank > 14 AND total = 1 AND silver < 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:
Tell me the home team for vfl park venue
### Context:
CREATE TABLE table_name_21 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_21 WHERE venue = "vfl 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:
Tell me the home team for venue of mcg
### Context:
CREATE TABLE table_name_70 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_70 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:
Tell me the most crowd for arden street oval venue
### Context:
CREATE TABLE table_name_39 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_39 WHERE venue = "arden street 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's score when South Melbourne was the home team?
### Context:
CREATE TABLE table_name_51 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_51 WHERE home_team = "south melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the placing of the nation of East Germany?
### Context:
CREATE TABLE table_name_92 (placings VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT COUNT(placings) FROM table_name_92 WHERE nation = "east germany" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest level of team Astana since 2007?
### Context:
CREATE TABLE table_name_96 (level INTEGER, team VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT MAX(level) FROM table_name_96 WHERE team = "astana" AND season > 2007 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the away team at Western Oval?
### Context:
CREATE TABLE table_name_52 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_52 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:
Who was the home team that played against Collingwood?
### Context:
CREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_90 WHERE away_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average crowd size for Richmond home games?
### Context:
CREATE TABLE table_name_2 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_2 WHERE home_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 is the largest crowd for North Melbourne home games?
### Context:
CREATE TABLE table_name_48 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT MAX(crowd) FROM table_name_48 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:
In which venue does Melbourne play as the home team?
### Context:
CREATE TABLE table_name_62 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_62 WHERE home_team = "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:
Which Grid has a Driver of johnny dumfries?
### Context:
CREATE TABLE table_name_85 (grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT grid FROM table_name_85 WHERE driver = "johnny dumfries" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score on 22 September 1972?
### Context:
CREATE TABLE table_name_24 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_24 WHERE date = "22 september 1972" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on 3 September 1972?
### Context:
CREATE TABLE table_name_57 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_57 WHERE date = "3 september 1972" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 series for april 30
### Context:
CREATE TABLE table_name_2 (series VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT series FROM table_name_2 WHERE date = "april 30" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest game for west (8) high assists
### Context:
CREATE TABLE table_name_35 (game INTEGER, high_assists VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_35 WHERE high_assists = "west (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 Year has a Date of 14 February?
### Context:
CREATE TABLE table_name_11 (year INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_11 WHERE date = "14 february" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Label has a Date of 20 July?
### Context:
CREATE TABLE table_name_48 (label VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_48 WHERE date = "20 july" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Label has a Date of 14 February?
### Context:
CREATE TABLE table_name_56 (label VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_56 WHERE date = "14 february" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who choreographed the smooth waltz with lacey schwimmer?
### Context:
CREATE TABLE table_name_94 (choreographer_s_ VARCHAR, style VARCHAR, partner VARCHAR) [/INST]
### Response:
SELECT choreographer_s_ FROM table_name_94 WHERE style = "smooth waltz" AND partner = "lacey schwimmer" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.