text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What 2011 has 4r as the 2008?
### Context:
CREATE TABLE table_name_68 (Id VARCHAR) [/INST]
### Response:
SELECT 2011 FROM table_name_68 WHERE 2008 = "4r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What 2007 has wimbledon as the tournament?
### Context:
CREATE TABLE table_name_88 (tournament VARCHAR) [/INST]
### Response:
SELECT 2007 FROM table_name_88 WHERE tournament = "wimbledon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What 2006 has 1r as the 2007?
### Context:
CREATE TABLE table_name_74 (Id VARCHAR) [/INST]
### Response:
SELECT 2006 FROM table_name_74 WHERE 2007 = "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:
What tournament has q2 as the 2004?
### Context:
CREATE TABLE table_name_66 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_66 WHERE 2004 = "q2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What 2009 has grand slam tournaments of 2008?
### Context:
CREATE TABLE table_name_43 (Id VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_43 WHERE 2008 = "grand slam tournaments" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What 2006 has 0-0 as the 2011?
### Context:
CREATE TABLE table_name_29 (Id VARCHAR) [/INST]
### Response:
SELECT 2006 FROM table_name_29 WHERE 2011 = "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:
What is the Lineup from a Match that is 27?
### Context:
CREATE TABLE table_name_12 (lineup VARCHAR, match VARCHAR) [/INST]
### Response:
SELECT lineup FROM table_name_12 WHERE match = "27" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date for Orangeville?
### Context:
CREATE TABLE table_name_56 (date VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_56 WHERE name = "orangeville" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 builder with a works number of 2534?
### Context:
CREATE TABLE table_name_16 (builder VARCHAR, works_number VARCHAR) [/INST]
### Response:
SELECT builder FROM table_name_16 WHERE works_number = "2534" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 name with a works number of 809?
### Context:
CREATE TABLE table_name_49 (name VARCHAR, works_number VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_49 WHERE works_number = "809" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 early 1873, Owen sound had what works number?
### Context:
CREATE TABLE table_name_39 (works_number VARCHAR, date VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT works_number FROM table_name_39 WHERE date = "early 1873" AND name = "owen sound" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name for the locomotive with a type of 2-8-0 and a number of 20?
### Context:
CREATE TABLE table_name_23 (name VARCHAR, type VARCHAR, number VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_23 WHERE type = "2-8-0" AND number = 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:
What is the Year won for the player with a larger than 4 To par and less the 157 Total?
### Context:
CREATE TABLE table_name_4 (year_won VARCHAR, to_par VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT year_won FROM table_name_4 WHERE to_par > 4 AND total < 157 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the Player who won after 1983 with less than 4 To par?
### Context:
CREATE TABLE table_name_66 (total INTEGER, to_par VARCHAR, year_won VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_66 WHERE to_par < 4 AND year_won > 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 is the Total of the player who won before 1983 with a smaller than 4 To par?
### Context:
CREATE TABLE table_name_46 (total VARCHAR, to_par VARCHAR, year_won VARCHAR) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_46 WHERE to_par < 4 AND year_won < 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:
Which venue led to a draw?
### Context:
CREATE TABLE table_name_93 (venue VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_93 WHERE result = "draw" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Stolen Ends when ludmila privivkova shows for skip?
### Context:
CREATE TABLE table_name_54 (stolen_ends INTEGER, skip VARCHAR) [/INST]
### Response:
SELECT MAX(stolen_ends) FROM table_name_54 WHERE skip = "ludmila privivkova" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Blank Ends for Denmark when less than 42 is the ends lost?
### Context:
CREATE TABLE table_name_39 (blank_ends INTEGER, nation VARCHAR, ends_lost VARCHAR) [/INST]
### Response:
SELECT SUM(blank_ends) FROM table_name_39 WHERE nation = "denmark" AND ends_lost < 42 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Blank Ends when there are less than 39 ends won and, more than 35 ends lost, and 4 stolen ends.
### Context:
CREATE TABLE table_name_88 (blank_ends VARCHAR, stolen_ends VARCHAR, ends_won VARCHAR, ends_lost VARCHAR) [/INST]
### Response:
SELECT blank_ends FROM table_name_88 WHERE ends_won < 39 AND ends_lost > 35 AND stolen_ends = 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:
Who was the 20 Questions section aimed at when the Interview Subject was Camille Paglia?
### Context:
CREATE TABLE table_name_97 (interview_subject VARCHAR) [/INST]
### Response:
SELECT 20 AS _questions FROM table_name_97 WHERE interview_subject = "camille paglia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Centerfold Model on 5-95?
### Context:
CREATE TABLE table_name_32 (centerfold_model VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT centerfold_model FROM table_name_32 WHERE date = "5-95" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 20 Questions section aimed at when Cover Model was Kimberley Conrad Hefner?
### Context:
CREATE TABLE table_name_21 (cover_model VARCHAR) [/INST]
### Response:
SELECT 20 AS _questions FROM table_name_21 WHERE cover_model = "kimberley conrad hefner" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Centerfold Model when the Cover Model was Julie Lynn Cialini?
### Context:
CREATE TABLE table_name_56 (centerfold_model VARCHAR, cover_model VARCHAR) [/INST]
### Response:
SELECT centerfold_model FROM table_name_56 WHERE cover_model = "julie lynn cialini" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Interview Subject when the Centerfold Model was Melissa Deanne Holliday?
### Context:
CREATE TABLE table_name_3 (interview_subject VARCHAR, centerfold_model VARCHAR) [/INST]
### Response:
SELECT interview_subject FROM table_name_3 WHERE centerfold_model = "melissa deanne holliday" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 20 Questions section aimed at when Centerfold Model was Rachel Jeán Marteen?
### Context:
CREATE TABLE table_name_46 (centerfold_model VARCHAR) [/INST]
### Response:
SELECT 20 AS _questions FROM table_name_46 WHERE centerfold_model = "rachel jeán marteen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Jersey # of Steve Griffith, when his Weight (kg) was less than 84?
### Context:
CREATE TABLE table_name_71 (jersey__number INTEGER, name VARCHAR, weight__kg_ VARCHAR) [/INST]
### Response:
SELECT AVG(jersey__number) FROM table_name_71 WHERE name = "steve griffith" AND weight__kg_ < 84 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Weight (kg) for a player that had Jersey #10?
### Context:
CREATE TABLE table_name_67 (weight__kg_ INTEGER, jersey__number VARCHAR) [/INST]
### Response:
SELECT MIN(weight__kg_) FROM table_name_67 WHERE jersey__number = 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:
How many different Heights (cm) did Mark Fusco have, when his Jersey # was less than 16?
### Context:
CREATE TABLE table_name_19 (height__cm_ VARCHAR, jersey__number VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT COUNT(height__cm_) FROM table_name_19 WHERE jersey__number < 16 AND name = "mark fusco" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the title of the episode that martin worth wrote the story for?
### Context:
CREATE TABLE table_name_55 (title VARCHAR, story VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_55 WHERE story = "martin worth" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what year was Xavier Malisse the runner-up with scores of 4–6, 6–4, [8–10]?
### Context:
CREATE TABLE table_name_65 (year VARCHAR, outcome VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_65 WHERE outcome = "runner-up" AND score = "4–6, 6–4, [8–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:
On what surface was the game played that had a score of 4–6, 6–4, [8–10]?
### Context:
CREATE TABLE table_name_51 (surface VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_51 WHERE score = "4–6, 6–4, [8–10]" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Caps, when Province / Club is Example, when Position is Prop, and when Player is Sam Walters?
### Context:
CREATE TABLE table_name_96 (caps VARCHAR, player VARCHAR, province___club VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT caps FROM table_name_96 WHERE province___club = "example" AND position = "prop" AND player = "sam walters" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Postition, when Date of Birth (Age) is Example, and when Player is Mark Spencer?
### Context:
CREATE TABLE table_name_59 (position VARCHAR, date_of_birth__age_ VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_59 WHERE date_of_birth__age_ = "example" AND player = "mark spencer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Player, when Caps is Example, and when Position is Center?
### Context:
CREATE TABLE table_name_66 (player VARCHAR, caps VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_66 WHERE caps = "example" AND position = "center" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Caps, when Province / Club is DRFC, and when Position is Center?
### Context:
CREATE TABLE table_name_49 (caps VARCHAR, province___club VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT caps FROM table_name_49 WHERE province___club = "drfc" AND position = "center" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position, when Caps is Example, and When Player is Shane Kelly?
### Context:
CREATE TABLE table_name_66 (position VARCHAR, caps VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_66 WHERE caps = "example" AND player = "shane kelly" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position, when Province / Club is Example, when Date of Birth (Age) is Example, and when Player is Michael Elumeze?
### Context:
CREATE TABLE table_name_52 (position VARCHAR, player VARCHAR, province___club VARCHAR, date_of_birth__age_ VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_52 WHERE province___club = "example" AND date_of_birth__age_ = "example" AND player = "michael elumeze" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played of the team with 1 drawn and 24 against?
### Context:
CREATE TABLE table_name_79 (played INTEGER, drawn VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT AVG(played) FROM table_name_79 WHERE drawn = 1 AND against = 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 is the highest lost number of the team with less than 14 points and less than 18 played?
### Context:
CREATE TABLE table_name_65 (lost INTEGER, points VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT MAX(lost) FROM table_name_65 WHERE points < 14 AND played < 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:
Which team had 1 position?
### Context:
CREATE TABLE table_name_65 (team VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_65 WHERE position = 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest number of played of the team with 18 points and a position greater than 5?
### Context:
CREATE TABLE table_name_74 (played INTEGER, points VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT MIN(played) FROM table_name_74 WHERE points = 18 AND position > 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of points of the team with less than 4 drawn and an against of 34?
### Context:
CREATE TABLE table_name_24 (points VARCHAR, drawn VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_24 WHERE drawn < 4 AND against = 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 is the average number of drawn with a difference of 17 and 22 points?
### Context:
CREATE TABLE table_name_64 (drawn INTEGER, difference VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT AVG(drawn) FROM table_name_64 WHERE difference = "17" AND points = 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 is the team that has forward-center as a position?
### Context:
CREATE TABLE table_name_24 (school_club_team VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_name_24 WHERE position = "forward-center" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does Kenny Smith play for?
### Context:
CREATE TABLE table_name_25 (school_club_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_name_25 WHERE player = "kenny smith" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What years was Lebanon the nationality?
### Context:
CREATE TABLE table_name_82 (years_in_orlando VARCHAR, nationality VARCHAR) [/INST]
### Response:
SELECT years_in_orlando FROM table_name_82 WHERE nationality = "lebanon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 margin of victory has cyber agent ladies as the tournament?
### Context:
CREATE TABLE table_name_78 (margin_of_victory VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT margin_of_victory FROM table_name_78 WHERE tournament = "cyber agent ladies" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 yani tseng as the runner (s)-up?
### Context:
CREATE TABLE table_name_91 (date VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_91 WHERE runner_s__up = "yani tseng" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 margin of victory that has masters gc ladies as the tournament?
### Context:
CREATE TABLE table_name_45 (margin_of_victory VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT margin_of_victory FROM table_name_45 WHERE tournament = "masters gc ladies" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date that has yani tseng as the runner (s)-up?
### Context:
CREATE TABLE table_name_97 (date VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_97 WHERE runner_s__up = "yani tseng" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winning score that has victory of 2 strokes for the margin, and cyber agent ladies for the tournament?
### Context:
CREATE TABLE table_name_30 (winning_score VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT winning_score FROM table_name_30 WHERE margin_of_victory = "2 strokes" AND tournament = "cyber agent ladies" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Poles with a win that is smaller than 0?
### Context:
CREATE TABLE table_name_74 (poles INTEGER, wins INTEGER) [/INST]
### Response:
SELECT MAX(poles) FROM table_name_74 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 the headphone model with a plastic construction and a prestige headphone class?
### Context:
CREATE TABLE table_name_28 (headphone_model VARCHAR, construction VARCHAR, headphone_class VARCHAR) [/INST]
### Response:
SELECT headphone_model FROM table_name_28 WHERE construction = "plastic" AND headphone_class = "prestige" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What earpads does the headphone with plastic contruction and was succeeded by igrado have?
### Context:
CREATE TABLE table_name_67 (earpads VARCHAR, construction VARCHAR, succeeded_by VARCHAR) [/INST]
### Response:
SELECT earpads FROM table_name_67 WHERE construction = "plastic" AND succeeded_by = "igrado" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the earpads of the headphone with a plastic construction, an unknown sensitivity, and was succeeded by sr325?
### Context:
CREATE TABLE table_name_43 (earpads VARCHAR, succeeded_by VARCHAR, construction VARCHAR, sensitivity__db_ VARCHAR) [/INST]
### Response:
SELECT earpads FROM table_name_43 WHERE construction = "plastic" AND sensitivity__db_ = "unknown" AND succeeded_by = "sr325" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 headphone model which was succeeded by sr325?
### Context:
CREATE TABLE table_name_59 (headphone_model VARCHAR, succeeded_by VARCHAR) [/INST]
### Response:
SELECT headphone_model FROM table_name_59 WHERE succeeded_by = "sr325" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What regulations have hudson as the winning constructor?
### Context:
CREATE TABLE table_name_84 (regulations VARCHAR, winning_constructor VARCHAR) [/INST]
### Response:
SELECT regulations FROM table_name_84 WHERE winning_constructor = "hudson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What regulations have carlos arzani as the winning driver?
### Context:
CREATE TABLE table_name_13 (regulations VARCHAR, winning_drivers VARCHAR) [/INST]
### Response:
SELECT regulations FROM table_name_13 WHERE winning_drivers = "carlos arzani" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year that has ferrari 166 fl as the winning constructor?
### Context:
CREATE TABLE table_name_7 (year INTEGER, winning_constructor VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_7 WHERE winning_constructor = "ferrari 166 fl" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 city of license that has lp as the class?
### Context:
CREATE TABLE table_name_40 (city_of_license VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT city_of_license FROM table_name_40 WHERE class = "lp" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 identifier that has 50,000 watts of power?
### Context:
CREATE TABLE table_name_45 (identifier VARCHAR, power VARCHAR) [/INST]
### Response:
SELECT identifier FROM table_name_45 WHERE power = "50,000 watts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What RECNet has 40 watts of power and temagami as the city of license?
### Context:
CREATE TABLE table_name_20 (recnet VARCHAR, power VARCHAR, city_of_license VARCHAR) [/INST]
### Response:
SELECT recnet FROM table_name_20 WHERE power = "40 watts" AND city_of_license = "temagami" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What city of license has A as a class, and cbec-fm as the identifier?
### Context:
CREATE TABLE table_name_86 (city_of_license VARCHAR, class VARCHAR, identifier VARCHAR) [/INST]
### Response:
SELECT city_of_license FROM table_name_86 WHERE class = "a" AND identifier = "cbec-fm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What RECNet has elk lake as the city of license?
### Context:
CREATE TABLE table_name_57 (recnet VARCHAR, city_of_license VARCHAR) [/INST]
### Response:
SELECT recnet FROM table_name_57 WHERE city_of_license = "elk lake" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What frequency has temagami as the city of license?
### Context:
CREATE TABLE table_name_92 (frequency VARCHAR, city_of_license VARCHAR) [/INST]
### Response:
SELECT frequency FROM table_name_92 WHERE city_of_license = "temagami" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Current Branch Opened, when Neighborhood is W. Portland Park?
### Context:
CREATE TABLE table_name_79 (current_branch_opened INTEGER, neighborhood VARCHAR) [/INST]
### Response:
SELECT MAX(current_branch_opened) FROM table_name_79 WHERE neighborhood = "w. portland park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the First Branch Opened, when Branch is Belmont Library?
### Context:
CREATE TABLE table_name_21 (first_branch_opened VARCHAR, branch VARCHAR) [/INST]
### Response:
SELECT first_branch_opened FROM table_name_21 WHERE branch = "belmont library" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Neighborhood, when Branch is Hollywood Library?
### Context:
CREATE TABLE table_name_92 (neighborhood VARCHAR, branch VARCHAR) [/INST]
### Response:
SELECT neighborhood FROM table_name_92 WHERE branch = "hollywood library" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Current Branch Opened, when Branch is Midland Library?
### Context:
CREATE TABLE table_name_22 (current_branch_opened VARCHAR, branch VARCHAR) [/INST]
### Response:
SELECT current_branch_opened FROM table_name_22 WHERE branch = "midland library" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player has the fewest assists and played 2 games or fewer?
### Context:
CREATE TABLE table_name_72 (assists INTEGER, games INTEGER) [/INST]
### Response:
SELECT MIN(assists) FROM table_name_72 WHERE games < 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 was the total number for March with less than 8.77 in January, more than 1.69 in December, an average monthly addition less than 5.35, and before 2004?
### Context:
CREATE TABLE table_name_83 (march VARCHAR, year VARCHAR, average_monthly_additions_in_millions_ VARCHAR, january VARCHAR, december VARCHAR) [/INST]
### Response:
SELECT COUNT(march) FROM table_name_83 WHERE january < 8.77 AND december > 1.69 AND average_monthly_additions_in_millions_ < 5.35 AND year < 2004 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number for November, larger than 8.53 in February, 20.21 in March, and less than 7.9 in September?
### Context:
CREATE TABLE table_name_50 (november VARCHAR, september VARCHAR, february VARCHAR, march VARCHAR) [/INST]
### Response:
SELECT COUNT(november) FROM table_name_50 WHERE february > 8.53 AND march = 20.21 AND september < 7.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 sum for December that has 0.36 in July, and lager than 0.35000000000000003 in February?
### Context:
CREATE TABLE table_name_95 (december INTEGER, july VARCHAR, february VARCHAR) [/INST]
### Response:
SELECT SUM(december) FROM table_name_95 WHERE july = 0.36 AND february > 0.35000000000000003 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for July with less than 8.05 in October, more than 4.46 in December, and more than 6.79 in November?
### Context:
CREATE TABLE table_name_12 (july VARCHAR, november VARCHAR, october VARCHAR, december VARCHAR) [/INST]
### Response:
SELECT COUNT(july) FROM table_name_12 WHERE october < 8.05 AND december > 4.46 AND november > 6.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:
What is the total number in October with less than 2.48 in September, after 2002, more than 1.42 in June, and smaller than 7.44 in February?
### Context:
CREATE TABLE table_name_41 (october VARCHAR, february VARCHAR, june VARCHAR, september VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT COUNT(october) FROM table_name_41 WHERE september < 2.48 AND year > 2002 AND june > 1.42 AND february < 7.44 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Catalog with a Region that is europe?
### Context:
CREATE TABLE table_name_56 (catalog VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT catalog FROM table_name_56 WHERE region = "europe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 SFC in g/(kN*s) for Rolls-Royce/Snecma Olympus 593 engines and SFCs under 1.195 lb/(lbf*h)?
### Context:
CREATE TABLE table_name_12 (sfc_in_g__kn INTEGER, engine_type VARCHAR, sfc_in_lb__lbf·h_ VARCHAR) [/INST]
### Response:
SELECT MAX(sfc_in_g__kn) AS ·s_ FROM table_name_12 WHERE engine_type = "rolls-royce/snecma olympus 593" AND sfc_in_lb__lbf·h_ < 1.195 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Winner, when Week is 8 May, when Semi Finalists is Helena Suková Mary Pierce, and when Runner-Up is Conchita Martínez Patricia Tarabini?
### Context:
CREATE TABLE table_name_70 (winner VARCHAR, runner_up VARCHAR, week_of VARCHAR, semi_finalists VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_70 WHERE week_of = "8 may" AND semi_finalists = "helena suková mary pierce" AND runner_up = "conchita martínez patricia tarabini" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Week, when Semi Finalists is Sandrine Testud Yone Kamio?
### Context:
CREATE TABLE table_name_53 (week_of VARCHAR, semi_finalists VARCHAR) [/INST]
### Response:
SELECT week_of FROM table_name_53 WHERE semi_finalists = "sandrine testud yone kamio" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what Season was Colin Miller (TAS) the Player?
### Context:
CREATE TABLE table_name_34 (season VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_34 WHERE player = "colin miller (tas)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Rank has a 65 s Wicket?
### Context:
CREATE TABLE table_name_25 (rank VARCHAR, s_wicket VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_25 WHERE s_wicket = "65" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result featured the Indianapolis Colts as opponents?
### Context:
CREATE TABLE table_name_72 (result VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_72 WHERE opponent = "indianapolis colts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Whose Name has a Date of reclassification of 2003-04-01 (merge into shizuoka )?
### Context:
CREATE TABLE table_name_52 (name VARCHAR, date_of_reclassification VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_52 WHERE date_of_reclassification = "2003-04-01 (merge into shizuoka )" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Japanese has a Prefecture of iwate?
### Context:
CREATE TABLE table_name_99 (japanese VARCHAR, prefecture VARCHAR) [/INST]
### Response:
SELECT japanese FROM table_name_99 WHERE prefecture = "iwate" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of designation has a Name of kurume?
### Context:
CREATE TABLE table_name_36 (date_of_designation VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT date_of_designation FROM table_name_36 WHERE name = "kurume" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What kind of Japanese has a Region of tōhoku?
### Context:
CREATE TABLE table_name_71 (japanese VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT japanese FROM table_name_71 WHERE region = "tōhoku" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Name has a Region of kansai on 2012-04-01 ( core city )?
### Context:
CREATE TABLE table_name_63 (name VARCHAR, region VARCHAR, date_of_reclassification VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_63 WHERE region = "kansai" AND date_of_reclassification = "2012-04-01 ( core city )" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position with a Birthdate that is august 17, 1980?
### Context:
CREATE TABLE table_name_92 (position VARCHAR, birthdate VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_92 WHERE birthdate = "august 17, 1980" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 capacity has a purple and white colors?
### Context:
CREATE TABLE table_name_77 (capacity VARCHAR, colors VARCHAR) [/INST]
### Response:
SELECT capacity FROM table_name_77 WHERE colors = "purple and white" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 households have a median family income of $60,400?
### Context:
CREATE TABLE table_name_15 (number_of_households VARCHAR, median_family_income VARCHAR) [/INST]
### Response:
SELECT number_of_households FROM table_name_15 WHERE median_family_income = "$60,400" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 weight of the player with a height of 180 cm and plays the d position?
### Context:
CREATE TABLE table_name_53 (weight__kg_ INTEGER, height__cm_ VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT AVG(weight__kg_) FROM table_name_53 WHERE height__cm_ = 180 AND position = "d" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 resting potential with an AP duration of 1.0 and a median giant fiber cell type?
### Context:
CREATE TABLE table_name_69 (resting_potential__mv_ VARCHAR, ap_duration__ms_ VARCHAR, cell_type VARCHAR) [/INST]
### Response:
SELECT resting_potential__mv_ FROM table_name_69 WHERE ap_duration__ms_ = "1.0" AND cell_type = "median giant fiber" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 animal has a resting potential of −60?
### Context:
CREATE TABLE table_name_75 (animal VARCHAR, resting_potential__mv_ VARCHAR) [/INST]
### Response:
SELECT animal FROM table_name_75 WHERE resting_potential__mv_ = "−60" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 animal has an AP duration of 1.0 and a conduction speed of 7–30?
### Context:
CREATE TABLE table_name_11 (animal VARCHAR, ap_duration__ms_ VARCHAR, conduction_speed__m_s_ VARCHAR) [/INST]
### Response:
SELECT animal FROM table_name_11 WHERE ap_duration__ms_ = "1.0" AND conduction_speed__m_s_ = "7–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:
What AP increase has an AP duration of 0.75?
### Context:
CREATE TABLE table_name_68 (ap_increase__mv_ VARCHAR, ap_duration__ms_ VARCHAR) [/INST]
### Response:
SELECT ap_increase__mv_ FROM table_name_68 WHERE ap_duration__ms_ = "0.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 cell type has a conduction speed of 35?
### Context:
CREATE TABLE table_name_15 (cell_type VARCHAR, conduction_speed__m_s_ VARCHAR) [/INST]
### Response:
SELECT cell_type FROM table_name_15 WHERE conduction_speed__m_s_ = "35" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total matches that ranked above 10?
### Context:
CREATE TABLE table_name_9 (matches INTEGER, rank INTEGER) [/INST]
### Response:
SELECT SUM(matches) FROM table_name_9 WHERE rank > 10 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the total amount of matches for Alan Shearer?
### Context:
CREATE TABLE table_name_81 (matches VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT COUNT(matches) FROM table_name_81 WHERE name = "alan shearer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goals for Jimmy Greaves, and matches more than 516?
### Context:
CREATE TABLE table_name_91 (goals INTEGER, name VARCHAR, matches VARCHAR) [/INST]
### Response:
SELECT AVG(goals) FROM table_name_91 WHERE name = "jimmy greaves" AND matches > 516 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total number of matches for Nat Lofthouse, ranking higher than 7?
### Context:
CREATE TABLE table_name_55 (matches VARCHAR, name VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(matches) FROM table_name_55 WHERE name = "nat lofthouse" AND rank > 7 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.