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 details of journey had simon hoggart as a narrator?
### Context:
CREATE TABLE table_name_48 (details_of_journey VARCHAR, narrator VARCHAR) [/INST]
### Response:
SELECT details_of_journey FROM table_name_48 WHERE narrator = "simon hoggart" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 countries visited had an episode number of less than 7 when Ray Gosling was the writer?
### Context:
CREATE TABLE table_name_26 (countries_visited VARCHAR, episode_no VARCHAR, writer VARCHAR) [/INST]
### Response:
SELECT countries_visited FROM table_name_26 WHERE episode_no < 7 AND writer = "ray gosling" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tall is Zipp Duncan?
### Context:
CREATE TABLE table_name_30 (height VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT height FROM table_name_30 WHERE name = "zipp duncan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 games of Tony Dixon?
### Context:
CREATE TABLE table_name_51 (games INTEGER, name VARCHAR) [/INST]
### Response:
SELECT AVG(games) AS ↑ FROM table_name_51 WHERE name = "tony dixon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of wins where the top 25 is 6, top 10 is more than 2, and the event number is less than 19?
### Context:
CREATE TABLE table_name_55 (wins INTEGER, events VARCHAR, top_25 VARCHAR, top_10 VARCHAR) [/INST]
### Response:
SELECT SUM(wins) FROM table_name_55 WHERE top_25 = 6 AND top_10 > 2 AND events < 19 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of cuts made where the top 25 is less than 6 and the top-5 is more than 0?
### Context:
CREATE TABLE table_name_90 (cuts_made INTEGER, top_25 VARCHAR, top_5 VARCHAR) [/INST]
### Response:
SELECT SUM(cuts_made) FROM table_name_90 WHERE top_25 < 6 AND top_5 > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many top-10 numbers had a top 25 of more than 6 with less than 2 wins?
### Context:
CREATE TABLE table_name_61 (top_10 VARCHAR, top_25 VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT COUNT(top_10) FROM table_name_61 WHERE top_25 > 6 AND wins < 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:
Name the 2011 with 2010 of 1r and 2012 of sf
### Context:
CREATE TABLE table_name_35 (Id VARCHAR) [/INST]
### Response:
SELECT 2011 FROM table_name_35 WHERE 2010 = "1r" AND 2012 = "sf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2008 with 2012 of 2r and 2006 of 2r
### Context:
CREATE TABLE table_name_39 (Id VARCHAR) [/INST]
### Response:
SELECT 2008 FROM table_name_39 WHERE 2012 = "2r" AND 2006 = "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:
Name the 2008 for 2012 of sf
### Context:
CREATE TABLE table_name_41 (Id VARCHAR) [/INST]
### Response:
SELECT 2008 FROM table_name_41 WHERE 2012 = "sf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2013 for 2011 of 1r
### Context:
CREATE TABLE table_name_9 (Id VARCHAR) [/INST]
### Response:
SELECT 2013 FROM table_name_9 WHERE 2011 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2011 with 2006 of 2r and 2008 of 2r
### Context:
CREATE TABLE table_name_22 (Id VARCHAR) [/INST]
### Response:
SELECT 2011 FROM table_name_22 WHERE 2006 = "2r" AND 2008 = "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:
Name the 2012 with 2013 of 2r and 2009 of 3r
### Context:
CREATE TABLE table_name_69 (Id VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_69 WHERE 2013 = "2r" AND 2009 = "3r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many Field goals have Points larger than 5, and Touchdowns larger than 2, and an Extra points smaller than 0?
### Context:
CREATE TABLE table_name_33 (field_goals VARCHAR, extra_points VARCHAR, points VARCHAR, touchdowns VARCHAR) [/INST]
### Response:
SELECT COUNT(field_goals) FROM table_name_33 WHERE points > 5 AND touchdowns > 2 AND extra_points < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many Touchdowns have Extra points larger than 0, and Points of 48?
### Context:
CREATE TABLE table_name_84 (touchdowns VARCHAR, extra_points VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(touchdowns) FROM table_name_84 WHERE extra_points > 0 AND points = 48 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Touchdowns have an Extra points smaller than 5, and a Player of clark, and Field goals larger than 0?
### Context:
CREATE TABLE table_name_8 (touchdowns INTEGER, field_goals VARCHAR, extra_points VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT AVG(touchdowns) FROM table_name_8 WHERE extra_points < 5 AND player = "clark" AND field_goals > 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 Points have Touchdowns larger than 0, and an Extra points smaller than 0?
### Context:
CREATE TABLE table_name_70 (points INTEGER, touchdowns VARCHAR, extra_points VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_70 WHERE touchdowns > 0 AND extra_points < 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 Semifinalists has a Champions of michael chang 6-0 6-4?
### Context:
CREATE TABLE table_name_86 (semifinalists VARCHAR, champions VARCHAR) [/INST]
### Response:
SELECT semifinalists FROM table_name_86 WHERE champions = "michael chang 6-0 6-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:
Whose Runner-up has a Semifinalist of guillermo pérez-roldán andrea gaudenzi?
### Context:
CREATE TABLE table_name_68 (runners_up VARCHAR, semifinalists VARCHAR) [/INST]
### Response:
SELECT runners_up FROM table_name_68 WHERE semifinalists = "guillermo pérez-roldán andrea gaudenzi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 least season with level less than 1
### Context:
CREATE TABLE table_name_5 (season INTEGER, level INTEGER) [/INST]
### Response:
SELECT MIN(season) FROM table_name_5 WHERE level < 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Attendance on September 11, 1983?
### Context:
CREATE TABLE table_name_49 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_49 WHERE date = "september 11, 1983" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opponent during the game with a Result of W 37-21?
### Context:
CREATE TABLE table_name_73 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_73 WHERE result = "w 37-21" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Result on Week 8?
### Context:
CREATE TABLE table_name_50 (result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_50 WHERE week = 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 games with less than 1 loss?
### Context:
CREATE TABLE table_name_12 (games INTEGER, lost INTEGER) [/INST]
### Response:
SELECT MIN(games) FROM table_name_12 WHERE lost < 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the nationality of the skater with 108.8 points?
### Context:
CREATE TABLE table_name_52 (nation VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT nation FROM table_name_52 WHERE points = 108.8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many points for the skater from club btsc?
### Context:
CREATE TABLE table_name_43 (points VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_43 WHERE club = "btsc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Original title has a Year of 1983, and a Country of italy?
### Context:
CREATE TABLE table_name_78 (original_title VARCHAR, year VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT original_title FROM table_name_78 WHERE year = 1983 AND country = "italy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years have an Original title of иваново детство?
### Context:
CREATE TABLE table_name_87 (year VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_87 WHERE original_title = "иваново детство" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Length has a Country of soviet union, and a Year larger than 1975?
### Context:
CREATE TABLE table_name_52 (length VARCHAR, country VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT length FROM table_name_52 WHERE country = "soviet union" AND year > 1975 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed as the lowest Year with a Wins that's smaller than 0?
### Context:
CREATE TABLE table_name_25 (year INTEGER, wins INTEGER) [/INST]
### Response:
SELECT MIN(year) FROM table_name_25 WHERE wins < 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 listed for the Wins with a Year of 1989?
### Context:
CREATE TABLE table_name_84 (wins VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT wins FROM table_name_84 WHERE year = 1989 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is listed for the Class that's got a Team of Cagiva and Points of 4?
### Context:
CREATE TABLE table_name_17 (class VARCHAR, team VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_17 WHERE team = "cagiva" AND points = 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 number of Population 2001 Census that has 476,815 in Population 1991 Census?
### Context:
CREATE TABLE table_name_10 (population_2001_census INTEGER, population_1991_census VARCHAR) [/INST]
### Response:
SELECT SUM(population_2001_census) FROM table_name_10 WHERE population_1991_census = 476 OFFSET 815 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What played has 3 as the losing bonus?
### Context:
CREATE TABLE table_name_91 (played VARCHAR, losing_bonus VARCHAR) [/INST]
### Response:
SELECT played FROM table_name_91 WHERE losing_bonus = "3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the try bonus that has llangefni rfc as the club?
### Context:
CREATE TABLE table_name_22 (try_bonus VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT try_bonus FROM table_name_22 WHERE club = "llangefni rfc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What played has 247 as the points?
### Context:
CREATE TABLE table_name_63 (played VARCHAR, points_for VARCHAR) [/INST]
### Response:
SELECT played FROM table_name_63 WHERE points_for = "247" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What try bonus has 19 as the tries against?
### Context:
CREATE TABLE table_name_17 (try_bonus VARCHAR, tries_against VARCHAR) [/INST]
### Response:
SELECT try_bonus FROM table_name_17 WHERE tries_against = "19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What points has 18 for the played and bala rfc as the club?
### Context:
CREATE TABLE table_name_31 (points_for VARCHAR, played VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT points_for FROM table_name_31 WHERE played = "18" AND club = "bala rfc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What try bonus has 18 as the played of and 204 as the points?
### Context:
CREATE TABLE table_name_83 (try_bonus VARCHAR, played VARCHAR, points_for VARCHAR) [/INST]
### Response:
SELECT try_bonus FROM table_name_83 WHERE played = "18" AND points_for = "204" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has montreal as the visitor, and february 2 as the date?
### Context:
CREATE TABLE table_name_4 (record VARCHAR, visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_4 WHERE visitor = "montreal" AND date = "february 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 record has February 25 as the date?
### Context:
CREATE TABLE table_name_7 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_7 WHERE date = "february 25" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date has boston as the visitor?
### Context:
CREATE TABLE table_name_21 (date VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_21 WHERE visitor = "boston" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What score has vancouver as the home, and february 16 as the date?
### Context:
CREATE TABLE table_name_81 (score VARCHAR, home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_81 WHERE home = "vancouver" AND date = "february 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:
Team of corinthians, and a Lost larger than 15 has which highest drawn?
### Context:
CREATE TABLE table_name_80 (drawn INTEGER, team VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT MAX(drawn) FROM table_name_80 WHERE team = "corinthians" AND lost > 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:
Difference of - 20, and a Position smaller than 17 is the highest against?
### Context:
CREATE TABLE table_name_47 (against INTEGER, difference VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT MAX(against) FROM table_name_47 WHERE difference = "- 20" AND position < 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:
Against smaller than 53, and a Drawn smaller than 10, and a Played smaller than 38 has what average points?
### Context:
CREATE TABLE table_name_88 (points INTEGER, played VARCHAR, against VARCHAR, drawn VARCHAR) [/INST]
### Response:
SELECT AVG(points) FROM table_name_88 WHERE against < 53 AND drawn < 10 AND played < 38 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 score was for Toronto Maple Leafs at home on November 12?
### Context:
CREATE TABLE table_name_66 (score VARCHAR, home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_66 WHERE home = "toronto maple leafs" AND date = "november 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:
Which home team had a visitor of Chicago Black Hawks with a score of 2–3?
### Context:
CREATE TABLE table_name_87 (home VARCHAR, visitor VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_87 WHERE visitor = "chicago black hawks" AND score = "2–3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was home on November 26?
### Context:
CREATE TABLE table_name_73 (home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_73 WHERE date = "november 26" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the visitor with a record of 5–8–4?
### Context:
CREATE TABLE table_name_10 (visitor VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_10 WHERE record = "5–8–4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the average rank of a player with more than 52 points, fewer than 10 draws, a goal loss under 44, and a loss under 15?
### Context:
CREATE TABLE table_name_66 (rank INTEGER, lose VARCHAR, goal_loss VARCHAR, point VARCHAR, draw VARCHAR) [/INST]
### Response:
SELECT AVG(rank) FROM table_name_66 WHERE point > 52 AND draw < 10 AND goal_loss < 44 AND lose < 15 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the highest number of lose for a player named Santos with more than 45 points?
### Context:
CREATE TABLE table_name_88 (lose INTEGER, name VARCHAR, point VARCHAR) [/INST]
### Response:
SELECT MAX(lose) FROM table_name_88 WHERE name = "santos" AND point > 45 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What report has a score of 0-0 with Sydney FC?
### Context:
CREATE TABLE table_name_49 (report VARCHAR, score VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT report FROM table_name_49 WHERE score = "0-0" AND away_team = "sydney fc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what date was the score 0-0?
### Context:
CREATE TABLE table_name_33 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_33 WHERE score = "0-0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which home team had the score 1-3?
### Context:
CREATE TABLE table_name_6 (home_team VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_6 WHERE score = "1-3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where did the away team have round 2?
### Context:
CREATE TABLE table_name_71 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_71 WHERE away_team = "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:
When did the venue of round 3 happen?
### Context:
CREATE TABLE table_name_23 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_23 WHERE venue = "round 3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest density of a town with a 13,708 2011 population census ?
### Context:
CREATE TABLE table_name_74 (density INTEGER, population_2011_census VARCHAR) [/INST]
### Response:
SELECT MIN(density) FROM table_name_74 WHERE population_2011_census = 13 OFFSET 708 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
specific orbital energy of −29.8 mj/kg has what orbit?
### Context:
CREATE TABLE table_name_14 (orbit VARCHAR, specific_orbital_energy VARCHAR) [/INST]
### Response:
SELECT orbit FROM table_name_14 WHERE specific_orbital_energy = "−29.8 mj/kg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Orbital period of 89 to 128 min has what specific orbital energy?
### Context:
CREATE TABLE table_name_73 (specific_orbital_energy VARCHAR, orbital_period VARCHAR) [/INST]
### Response:
SELECT specific_orbital_energy FROM table_name_73 WHERE orbital_period = "89 to 128 min" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
center-to-center distance of 6,900 to 46,300 km involves which orbital period?
### Context:
CREATE TABLE table_name_69 (orbital_period VARCHAR, center_to_center_distance VARCHAR) [/INST]
### Response:
SELECT orbital_period FROM table_name_69 WHERE center_to_center_distance = "6,900 to 46,300 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 was the lowest FA Cup for a Malaysia Cup of 0?
### Context:
CREATE TABLE table_name_64 (fa_cup INTEGER, malaysia_cup INTEGER) [/INST]
### Response:
SELECT MIN(fa_cup) FROM table_name_64 WHERE malaysia_cup < 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 Zamri Hassan's lowest Malaysia Cup when there were an FA Cup of 0?
### Context:
CREATE TABLE table_name_74 (malaysia_cup INTEGER, player VARCHAR, fa_cup VARCHAR) [/INST]
### Response:
SELECT MIN(malaysia_cup) FROM table_name_74 WHERE player = "zamri hassan" AND fa_cup < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest league for the Malaysia Cup when it was larger than 0?
### Context:
CREATE TABLE table_name_98 (league INTEGER, malaysia_cup INTEGER) [/INST]
### Response:
SELECT MIN(league) FROM table_name_98 WHERE malaysia_cup > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many Bronze medals did Switzerland with less than 3 Silver medals receive?
### Context:
CREATE TABLE table_name_75 (bronze INTEGER, nation VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT MIN(bronze) FROM table_name_75 WHERE nation = "switzerland" AND silver < 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the least amount of Silver medals that have more than 3 Bronze?
### Context:
CREATE TABLE table_name_39 (silver INTEGER, bronze INTEGER) [/INST]
### Response:
SELECT MIN(silver) FROM table_name_39 WHERE bronze > 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average game for March 8 with less than 84 points?
### Context:
CREATE TABLE table_name_23 (game INTEGER, points VARCHAR, march VARCHAR) [/INST]
### Response:
SELECT AVG(game) FROM table_name_23 WHERE points < 84 AND march = 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 latest in March when the record of 35–16–6–3?
### Context:
CREATE TABLE table_name_34 (march INTEGER, record VARCHAR) [/INST]
### Response:
SELECT MAX(march) FROM table_name_34 WHERE record = "35–16–6–3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the competition for score of 3-0
### Context:
CREATE TABLE table_name_42 (competition VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_42 WHERE score = "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:
Name the competition for september 10, 2008
### Context:
CREATE TABLE table_name_21 (competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_21 WHERE date = "september 10, 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sscore for world cup qualifying october 15, 2008
### Context:
CREATE TABLE table_name_49 (score VARCHAR, competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_49 WHERE competition = "world cup qualifying" AND date = "october 15, 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 competition for november 19, 2008
### Context:
CREATE TABLE table_name_82 (competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_82 WHERE date = "november 19, 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date for rio de janeiro
### Context:
CREATE TABLE table_name_55 (date VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_55 WHERE city = "rio de janeiro" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What number is Fall 08 from the state with 57 in Fall 06 and 74 or less in Fall 05?
### Context:
CREATE TABLE table_name_52 (fall_08 VARCHAR, fall_06 VARCHAR, fall_05 VARCHAR) [/INST]
### Response:
SELECT COUNT(fall_08) FROM table_name_52 WHERE fall_06 = 57 AND fall_05 < 74 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What number is Fall 06 from the state with 79 or less in Fall 08, 36 or greater in Fall 07 and greater than 74 in Fall 05?
### Context:
CREATE TABLE table_name_92 (fall_06 INTEGER, fall_05 VARCHAR, fall_08 VARCHAR, fall_07 VARCHAR) [/INST]
### Response:
SELECT AVG(fall_06) FROM table_name_92 WHERE fall_08 < 79 AND fall_07 > 36 AND fall_05 > 74 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What number is Fall 06 from the state with 34 for Fall 09?
### Context:
CREATE TABLE table_name_97 (fall_06 INTEGER, fall_09 VARCHAR) [/INST]
### Response:
SELECT AVG(fall_06) FROM table_name_97 WHERE fall_09 = 34 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record when the visitor was toronto maple leafs and the score was 3–10?
### Context:
CREATE TABLE table_name_67 (record VARCHAR, visitor VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_67 WHERE visitor = "toronto maple leafs" AND score = "3–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 score when the visitor was toronto maple leafs on march 22?
### Context:
CREATE TABLE table_name_53 (score VARCHAR, visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_53 WHERE visitor = "toronto maple leafs" AND date = "march 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:
What was the Visitor when the home was toronto maple leafs and the score was 4–1?
### Context:
CREATE TABLE table_name_63 (visitor VARCHAR, home VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_63 WHERE home = "toronto maple leafs" AND score = "4–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:
How many total episodes aired over all seasons with 7.79 million viewers?
### Context:
CREATE TABLE table_name_86 (episode_count VARCHAR, viewers__in_millions_ VARCHAR) [/INST]
### Response:
SELECT COUNT(episode_count) FROM table_name_86 WHERE viewers__in_millions_ = 7.79 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Was the semi-final round held at home or away?
### Context:
CREATE TABLE table_name_53 (h___a VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT h___a FROM table_name_53 WHERE round = "semi-final" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 made it to the final round?
### Context:
CREATE TABLE table_name_33 (opponents VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT opponents FROM table_name_33 WHERE round = "final" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the game played in hurst?
### Context:
CREATE TABLE table_name_39 (result_f___a VARCHAR, h___a VARCHAR) [/INST]
### Response:
SELECT result_f___a FROM table_name_39 WHERE h___a = "hurst" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When did the game in whalley range take place?
### Context:
CREATE TABLE table_name_87 (date VARCHAR, h___a VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_87 WHERE h___a = "whalley range" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ERP W is the lowest one that has a Frequency MHz of 91.3?
### Context:
CREATE TABLE table_name_58 (erp_w INTEGER, frequency_mhz VARCHAR) [/INST]
### Response:
SELECT MIN(erp_w) FROM table_name_58 WHERE frequency_mhz = 91.3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Class has a Frequency MHz of 107.5?
### Context:
CREATE TABLE table_name_76 (class VARCHAR, frequency_mhz VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_76 WHERE frequency_mhz = 107.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:
Which Frequency MHz is the highest one that has a City of license of byron, ga?
### Context:
CREATE TABLE table_name_38 (frequency_mhz INTEGER, city_of_license VARCHAR) [/INST]
### Response:
SELECT MAX(frequency_mhz) FROM table_name_38 WHERE city_of_license = "byron, ga" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 FCC info has a Call sign of wsja?
### Context:
CREATE TABLE table_name_75 (fcc_info VARCHAR, call_sign VARCHAR) [/INST]
### Response:
SELECT fcc_info FROM table_name_75 WHERE call_sign = "wsja" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 District has a Party of republican and a Result of lost re-election democratic gain?
### Context:
CREATE TABLE table_name_82 (district VARCHAR, party VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT district FROM table_name_82 WHERE party = "republican" AND result = "lost re-election democratic gain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 First elected that has republican Party and a Result of retired democratic gain?
### Context:
CREATE TABLE table_name_61 (first_elected VARCHAR, party VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT first_elected FROM table_name_61 WHERE party = "republican" AND result = "retired democratic gain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 First elected of california 3?
### Context:
CREATE TABLE table_name_55 (first_elected VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT first_elected FROM table_name_55 WHERE district = "california 3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Incumbent has a Result of retired democratic gain?
### Context:
CREATE TABLE table_name_35 (incumbent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT incumbent FROM table_name_35 WHERE result = "retired democratic gain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 elected has a Incumbent of none (new seat)?
### Context:
CREATE TABLE table_name_15 (first_elected VARCHAR, incumbent VARCHAR) [/INST]
### Response:
SELECT first_elected FROM table_name_15 WHERE incumbent = "none (new seat)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 First elected that has a republican party and california 4?
### Context:
CREATE TABLE table_name_4 (first_elected VARCHAR, party VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT first_elected FROM table_name_4 WHERE party = "republican" AND district = "california 4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result when Dundee was the opponent?
### Context:
CREATE TABLE table_name_74 (result VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_74 WHERE opponent = "dundee" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 entered on day 1 and exited on day 20?
### Context:
CREATE TABLE table_name_94 (celebrity VARCHAR, entered VARCHAR, exited VARCHAR) [/INST]
### Response:
SELECT celebrity FROM table_name_94 WHERE entered = "day 1" AND exited = "day 20" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lucy benjamin exit?
### Context:
CREATE TABLE table_name_18 (exited VARCHAR, celebrity VARCHAR) [/INST]
### Response:
SELECT exited FROM table_name_18 WHERE celebrity = "lucy benjamin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 camilla dallerup finish?
### Context:
CREATE TABLE table_name_84 (finished VARCHAR, celebrity VARCHAR) [/INST]
### Response:
SELECT finished FROM table_name_84 WHERE celebrity = "camilla dallerup" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 kim woodburn enter?
### Context:
CREATE TABLE table_name_92 (entered VARCHAR, celebrity VARCHAR) [/INST]
### Response:
SELECT entered FROM table_name_92 WHERE celebrity = "kim woodburn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a record of 37–26–9?
### Context:
CREATE TABLE table_name_5 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_5 WHERE record = "37–26–9" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.