text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Venue with a Result that is win, and a Score that is 5-0?
### Context:
CREATE TABLE table_name_35 (venue VARCHAR, result VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_35 WHERE result = "win" AND score = "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:
What is the Competition with a Result of win with a Score that is 1-0?
### Context:
CREATE TABLE table_name_91 (competition VARCHAR, result VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_91 WHERE result = "win" AND score = "1-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 total Gold medals did the nation ranked #3 receive?
### Context:
CREATE TABLE table_name_22 (gold INTEGER, rank VARCHAR) [/INST]
### Response:
SELECT SUM(gold) FROM table_name_22 WHERE rank = "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 ship size had a cargo value of $46,000 in 2006?
### Context:
CREATE TABLE table_name_89 (ship_size VARCHAR) [/INST]
### Response:
SELECT ship_size FROM table_name_89 WHERE 2006 = "$46,000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What ship size had a cargo value of $31,750 in 2006?
### Context:
CREATE TABLE table_name_57 (ship_size VARCHAR) [/INST]
### Response:
SELECT ship_size FROM table_name_57 WHERE 2006 = "$31,750" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cargo value in 2005 with a ship size of all product carriers?
### Context:
CREATE TABLE table_name_31 (ship_size VARCHAR) [/INST]
### Response:
SELECT 2005 FROM table_name_31 WHERE ship_size = "all product carriers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cargo value in 2004 for ship size?
### Context:
CREATE TABLE table_name_13 (ship_size VARCHAR) [/INST]
### Response:
SELECT 2004 FROM table_name_13 WHERE ship_size = "ship size" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What cargo was contained in a ship size of aframax?
### Context:
CREATE TABLE table_name_40 (cargo VARCHAR, ship_size VARCHAR) [/INST]
### Response:
SELECT cargo FROM table_name_40 WHERE ship_size = "aframax" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cargo value in 2005 for all product carriers?
### Context:
CREATE TABLE table_name_46 (cargo VARCHAR) [/INST]
### Response:
SELECT 2005 FROM table_name_46 WHERE cargo = "all product carriers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Live births has a Migration of -14 873?
### Context:
CREATE TABLE table_name_85 (live_births VARCHAR, migration VARCHAR) [/INST]
### Response:
SELECT live_births FROM table_name_85 WHERE migration = "-14 873" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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/Games for Rummenigge, Karl-Heinz, with Goals less than 162?
### Context:
CREATE TABLE table_name_66 (games VARCHAR, goals INTEGER, name VARCHAR) [/INST]
### Response:
SELECT AVG(goals) / games FROM table_name_66 WHERE name = "rummenigge, karl-heinz" AND goals < 162 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Games for Allofs, Klaus, with Goals less than 177?
### Context:
CREATE TABLE table_name_53 (games INTEGER, name VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT SUM(games) FROM table_name_53 WHERE name = "allofs, klaus" AND goals < 177 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest Rank for more than 220 goals in 1965–1978-78?
### Context:
CREATE TABLE table_name_51 (rank INTEGER, goals VARCHAR, years VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_51 WHERE goals > 220 AND years = "1965–1978-78" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 composer of El Hanone?
### Context:
CREATE TABLE table_name_98 (composer VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT composer FROM table_name_98 WHERE title = "el hanone" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 arranger worked with composer Imad Shams Eldeen at 4:03?
### Context:
CREATE TABLE table_name_19 (arranger VARCHAR, composer VARCHAR, length VARCHAR) [/INST]
### Response:
SELECT arranger FROM table_name_19 WHERE composer = "imad shams eldeen" AND length = "4:03" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the title track that is 3:50 and arranged by Tarek Akef?
### Context:
CREATE TABLE table_name_59 (title VARCHAR, arranger VARCHAR, length VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_59 WHERE arranger = "tarek akef" AND length = "3:50" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 arranger for Ana Rouh?
### Context:
CREATE TABLE table_name_29 (arranger VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT arranger FROM table_name_29 WHERE title = "ana rouh" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 writer that worked with arranger Tarek Akef on a 4:58 song?
### Context:
CREATE TABLE table_name_20 (writer VARCHAR, arranger VARCHAR, length VARCHAR) [/INST]
### Response:
SELECT writer FROM table_name_20 WHERE arranger = "tarek akef" AND length = "4:58" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the ceremony with a not nominated result and ničiji sin as the original title?
### Context:
CREATE TABLE table_name_12 (year__ceremony_ VARCHAR, result VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT year__ceremony_ FROM table_name_12 WHERE result = "not nominated" AND original_title = "ničiji sin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the ceremony with the original title ničiji sin?
### Context:
CREATE TABLE table_name_98 (year__ceremony_ VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT year__ceremony_ FROM table_name_98 WHERE original_title = "ničiji sin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result of the ceremony in 2006 (79th)?
### Context:
CREATE TABLE table_name_1 (result VARCHAR, year__ceremony_ VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_1 WHERE year__ceremony_ = "2006 (79th)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 film title used for nomination with the original title sedamdeset i dva dana?
### Context:
CREATE TABLE table_name_65 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT film_title_used_in_nomination FROM table_name_65 WHERE original_title = "sedamdeset i dva dana" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 director of Cannibal vegetarian, which is the film title used in nomination?
### Context:
CREATE TABLE table_name_92 (director_s_ VARCHAR, film_title_used_in_nomination VARCHAR) [/INST]
### Response:
SELECT director_s_ FROM table_name_92 WHERE film_title_used_in_nomination = "cannibal vegetarian" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 First Downs for december 4?
### Context:
CREATE TABLE table_name_82 (first_downs INTEGER, date VARCHAR) [/INST]
### Response:
SELECT AVG(first_downs) FROM table_name_82 WHERE date = "december 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 lowest Attendance against the tampa bay buccaneers, with Points Against of less than 7?
### Context:
CREATE TABLE table_name_53 (attendance INTEGER, opponent VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_53 WHERE opponent = "tampa bay buccaneers" AND points_against < 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest Points when the record was 12–2, and the Points Against are larger than 6?
### Context:
CREATE TABLE table_name_25 (points_for INTEGER, record VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT MAX(points_for) FROM table_name_25 WHERE record = "12–2" AND points_against > 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Partial thromboplastin time has a Prothrombin time of prolonged and a Condition of factor v deficiency?
### Context:
CREATE TABLE table_name_76 (partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, condition VARCHAR) [/INST]
### Response:
SELECT partial_thromboplastin_time FROM table_name_76 WHERE prothrombin_time = "prolonged" AND condition = "factor v deficiency" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Condition has a Bleeding time of prolonged, a Platelet count of decreased, and Prothrombin time of prolonged?
### Context:
CREATE TABLE table_name_1 (condition VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR, platelet_count VARCHAR) [/INST]
### Response:
SELECT condition FROM table_name_1 WHERE bleeding_time = "prolonged" AND platelet_count = "decreased" AND prothrombin_time = "prolonged" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Platelet count has a Partial thromboplastin time of prolonged or unaffected?
### Context:
CREATE TABLE table_name_20 (platelet_count VARCHAR, partial_thromboplastin_time VARCHAR) [/INST]
### Response:
SELECT platelet_count FROM table_name_20 WHERE partial_thromboplastin_time = "prolonged or unaffected" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Prothrombin time that has a Partial thromboplastin time of unaffected, and a Condition of thrombocytopenia?
### Context:
CREATE TABLE table_name_6 (prothrombin_time VARCHAR, partial_thromboplastin_time VARCHAR, condition VARCHAR) [/INST]
### Response:
SELECT prothrombin_time FROM table_name_6 WHERE partial_thromboplastin_time = "unaffected" AND condition = "thrombocytopenia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Condition has a Bleeding time of unaffected and a Prothrombin time of prolonged?
### Context:
CREATE TABLE table_name_75 (condition VARCHAR, bleeding_time VARCHAR, prothrombin_time VARCHAR) [/INST]
### Response:
SELECT condition FROM table_name_75 WHERE bleeding_time = "unaffected" AND prothrombin_time = "prolonged" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Partial thromboplastin time has a Prothrombin time of prolonged, and a Bleeding time of unaffected, and a Condition of vitamin k deficiency or warfarin? Question 6
### Context:
CREATE TABLE table_name_1 (partial_thromboplastin_time VARCHAR, condition VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR) [/INST]
### Response:
SELECT partial_thromboplastin_time FROM table_name_1 WHERE prothrombin_time = "prolonged" AND bleeding_time = "unaffected" AND condition = "vitamin k deficiency or warfarin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 notes where the authors are Zhou & Zhang?
### Context:
CREATE TABLE table_name_11 (notes VARCHAR, authors VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_11 WHERE authors = "zhou & zhang" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 status where the notes are possible jr synonym of sapeornis?
### Context:
CREATE TABLE table_name_60 (status VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT status FROM table_name_60 WHERE notes = "possible jr synonym of sapeornis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Top-5 finishes with 2 as the Top-10 and a greater than 4 Top-25?
### Context:
CREATE TABLE table_name_74 (top_5 INTEGER, top_10 VARCHAR, top_25 VARCHAR) [/INST]
### Response:
SELECT AVG(top_5) FROM table_name_74 WHERE top_10 = 2 AND top_25 > 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 are the least Top-5 finish when the events are greater than 18?
### Context:
CREATE TABLE table_name_82 (top_5 INTEGER, events INTEGER) [/INST]
### Response:
SELECT MIN(top_5) FROM table_name_82 WHERE events > 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total of wins when the evens is less than 3?
### Context:
CREATE TABLE table_name_66 (wins INTEGER, events INTEGER) [/INST]
### Response:
SELECT SUM(wins) FROM table_name_66 WHERE events < 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many cuts made when the Top-10 is larger than 1, and the wins greater than 0, and a Top-5 greater than 2, when the events is greater than 18?
### Context:
CREATE TABLE table_name_74 (cuts_made VARCHAR, events VARCHAR, top_5 VARCHAR, top_10 VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT COUNT(cuts_made) FROM table_name_74 WHERE top_10 > 1 AND wins > 0 AND top_5 > 2 AND events > 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What years did Omar Sneed play?
### Context:
CREATE TABLE table_name_9 (season VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_9 WHERE name = "omar sneed" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 season did Jovy Sese play?
### Context:
CREATE TABLE table_name_7 (season VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_7 WHERE name = "jovy sese" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the School/Club Team of Manuel Luis Quezon acquire their Forward?
### Context:
CREATE TABLE table_name_53 (acquisition_via VARCHAR, position VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT acquisition_via FROM table_name_53 WHERE position = "forward" AND school_club_team = "manuel luis quezon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which School/ Club Team acquired Jondan Salvador via trade?
### Context:
CREATE TABLE table_name_8 (school_club_team VARCHAR, acquisition_via VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_name_8 WHERE acquisition_via = "trade" AND name = "jondan salvador" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points with a Played larger than 14?
### Context:
CREATE TABLE table_name_18 (points VARCHAR, played INTEGER) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_18 WHERE played > 14 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Points with an Against smaller than 16?
### Context:
CREATE TABLE table_name_51 (points INTEGER, against INTEGER) [/INST]
### Response:
SELECT AVG(points) FROM table_name_51 WHERE against < 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:
Which Team has a Lost larger than 2, and a Position smaller than 7, and a Drawn smaller than 2, and a Points of 22?
### Context:
CREATE TABLE table_name_26 (team VARCHAR, points VARCHAR, drawn VARCHAR, lost VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_26 WHERE lost > 2 AND position < 7 AND drawn < 2 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:
Which Points has a Position of 3, and a Drawn smaller than 2?
### Context:
CREATE TABLE table_name_55 (points INTEGER, position VARCHAR, drawn VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_55 WHERE position = 3 AND drawn < 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Played has a Points of 2, and a Position smaller than 8?
### Context:
CREATE TABLE table_name_28 (played INTEGER, points VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT AVG(played) FROM table_name_28 WHERE points = 2 AND position < 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 average plays have points greater than 14, with an against greater than 17?
### Context:
CREATE TABLE table_name_4 (played INTEGER, points VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT AVG(played) FROM table_name_4 WHERE points > 14 AND against > 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:
Which average against has a lost less than 1?
### Context:
CREATE TABLE table_name_78 (against INTEGER, lost INTEGER) [/INST]
### Response:
SELECT AVG(against) FROM table_name_78 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:
Which of the highest drawn has a played less than 10?
### Context:
CREATE TABLE table_name_96 (drawn INTEGER, played INTEGER) [/INST]
### Response:
SELECT MAX(drawn) FROM table_name_96 WHERE played < 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 played have 3 as the drawn, and a position greater than 4?
### Context:
CREATE TABLE table_name_25 (played VARCHAR, drawn VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(played) FROM table_name_25 WHERE drawn = 3 AND position > 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 sang the song composed by Mariah Carey and Walter Afanasieff?
### Context:
CREATE TABLE table_name_20 (performer_s_ VARCHAR, composer_s_ VARCHAR) [/INST]
### Response:
SELECT performer_s_ FROM table_name_20 WHERE composer_s_ = "mariah carey and walter afanasieff" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was Louis Armstrong performing?
### Context:
CREATE TABLE table_name_51 (year VARCHAR, performer_s_ VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_51 WHERE performer_s_ = "louis armstrong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the Runner(s)-up with the winning score of −16 (66-68-70-68=272)?
### Context:
CREATE TABLE table_name_74 (runner_s__up VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT runner_s__up FROM table_name_74 WHERE winning_score = −16(66 - 68 - 70 - 68 = 272) </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a winning score of −27 (64-64-61=189)?
### Context:
CREATE TABLE table_name_3 (tournament VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_3 WHERE winning_score = −27(64 - 64 - 61 = 189) </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a runner(s)-up of Scott Hoch & Kenny Perry?
### Context:
CREATE TABLE table_name_12 (tournament VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_12 WHERE runner_s__up = "scott hoch & kenny perry" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had a Runner(s)-up of Tom Kite?
### Context:
CREATE TABLE table_name_11 (tournament VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_11 WHERE runner_s__up = "tom kite" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the Outback Steakhouse Pro-Am Tournament?
### Context:
CREATE TABLE table_name_94 (date VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_94 WHERE tournament = "outback steakhouse pro-am" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which tournament has a Runner(s)-up of Gary McCord?
### Context:
CREATE TABLE table_name_47 (tournament VARCHAR, runner_s__up VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_47 WHERE runner_s__up = "gary mccord" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of the game with a score of 2:3?
### Context:
CREATE TABLE table_name_90 (location VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_90 WHERE 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:
What was the location of the home game for Slovakia?
### Context:
CREATE TABLE table_name_62 (location VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_62 WHERE home_team = "slovakia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament where Japan was the home team and Mexico was the away team?
### Context:
CREATE TABLE table_name_21 (tournament VARCHAR, away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_21 WHERE away_team = "mexico" AND home_team = "japan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of the home game for Japan?
### Context:
CREATE TABLE table_name_49 (location VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_49 WHERE home_team = "japan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Runner-up in Hossegor?
### Context:
CREATE TABLE table_name_68 (runner_up VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_name_68 WHERE location = "hossegor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tournament in Gold Coast?
### Context:
CREATE TABLE table_name_88 (date VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_88 WHERE location = "gold coast" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the Winner of the French Polynesia Billabong Pro Event?
### Context:
CREATE TABLE table_name_29 (winner VARCHAR, event VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_29 WHERE event = "billabong pro" AND country = "french polynesia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What shows for 2010 when 2007 is a and 2004 is 2r?
### Context:
CREATE TABLE table_name_97 (Id VARCHAR) [/INST]
### Response:
SELECT 2010 FROM table_name_97 WHERE 2007 = "a" AND 2004 = "2r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the 2005 when the 2008 shows grand slam tournaments?
### Context:
CREATE TABLE table_name_99 (Id VARCHAR) [/INST]
### Response:
SELECT 2005 FROM table_name_99 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 shows for 2002 when 2010 shows 69?
### Context:
CREATE TABLE table_name_85 (Id VARCHAR) [/INST]
### Response:
SELECT 2002 FROM table_name_85 WHERE 2010 = "69" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What shows for 2010 when 2005 shows 1r?
### Context:
CREATE TABLE table_name_60 (Id VARCHAR) [/INST]
### Response:
SELECT 2010 FROM table_name_60 WHERE 2005 = "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 is the highest number of draws with more than 15 points, an against of 19, and less than 3 losses?
### Context:
CREATE TABLE table_name_27 (drawn INTEGER, lost VARCHAR, points VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT MAX(drawn) FROM table_name_27 WHERE points > 15 AND against = 19 AND lost < 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 stage (winner) has thor hushovd as a general classification, and trent lowe as a rider classification?
### Context:
CREATE TABLE table_name_3 (stage__winner_ VARCHAR, general_classification VARCHAR, young_rider_classification VARCHAR) [/INST]
### Response:
SELECT stage__winner_ FROM table_name_3 WHERE general_classification = "thor hushovd" AND young_rider_classification = "trent lowe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What stage (winner) has quick step as the team classification, and trent lowe as the young rider classification?
### Context:
CREATE TABLE table_name_69 (stage__winner_ VARCHAR, team_classification VARCHAR, young_rider_classification VARCHAR) [/INST]
### Response:
SELECT stage__winner_ FROM table_name_69 WHERE team_classification = "quick step" AND young_rider_classification = "trent lowe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2000-2001 Team with a Jersey # that is 19?
### Context:
CREATE TABLE table_name_15 (jersey__number VARCHAR) [/INST]
### Response:
SELECT 2000 AS _2001_team FROM table_name_15 WHERE jersey__number = 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 average number of ties for years with more than 19 wins?
### Context:
CREATE TABLE table_name_33 (tied INTEGER, wins INTEGER) [/INST]
### Response:
SELECT AVG(tied) FROM table_name_33 WHERE wins > 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 number of losses for years with fewer than 9 wins?
### Context:
CREATE TABLE table_name_82 (losses VARCHAR, wins INTEGER) [/INST]
### Response:
SELECT COUNT(losses) FROM table_name_82 WHERE wins < 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 total number of Division(s), when Team is Chongqing Lifan, and when Apps is greater than 9?
### Context:
CREATE TABLE table_name_7 (division VARCHAR, team VARCHAR, apps VARCHAR) [/INST]
### Response:
SELECT COUNT(division) FROM table_name_7 WHERE team = "chongqing lifan" AND apps > 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 Season, when Country is China, when Team is Dalian Shide, when Apps is greater than 8, and when Goals is 2?
### Context:
CREATE TABLE table_name_6 (season VARCHAR, goals VARCHAR, apps VARCHAR, country VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_6 WHERE country = "china" AND team = "dalian shide" AND apps > 8 AND goals = 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest Apps, when Goals are greater than 5?
### Context:
CREATE TABLE table_name_58 (apps INTEGER, goals INTEGER) [/INST]
### Response:
SELECT MAX(apps) FROM table_name_58 WHERE goals > 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 Season, when Country is China, when Team is Dalian Shide, and when Goals are 0?
### Context:
CREATE TABLE table_name_48 (season VARCHAR, goals VARCHAR, country VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_48 WHERE country = "china" AND team = "dalian shide" AND 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:
What is the total number of Division(s), when Country is China, when Apps is greater than 9, and when Season is 2008?
### Context:
CREATE TABLE table_name_32 (division VARCHAR, season VARCHAR, country VARCHAR, apps VARCHAR) [/INST]
### Response:
SELECT COUNT(division) FROM table_name_32 WHERE country = "china" AND apps > 9 AND season = "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:
What is the lowest Division, when Goals are less than 10, when Team is Dalian Shide, when Apps are less than 17, and when Season is 2007?
### Context:
CREATE TABLE table_name_79 (division INTEGER, season VARCHAR, apps VARCHAR, goals VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT MIN(division) FROM table_name_79 WHERE goals < 10 AND team = "dalian shide" AND apps < 17 AND season = "2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest area when the density is greater than 234.77, the population is less than 965,040, and the rank is 32?
### Context:
CREATE TABLE table_name_75 (area INTEGER, population VARCHAR, density VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(area) FROM table_name_75 WHERE density > 234.77 AND rank = 32 AND population < 965 OFFSET 040 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Home with a Time that is 14:00?
### Context:
CREATE TABLE table_name_28 (home VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_28 WHERE time = "14:00" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Score with an Away that is high park demons?
### Context:
CREATE TABLE table_name_66 (score VARCHAR, away VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_66 WHERE away = "high park demons" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Score with a Hoe that is etobicoke kangaroos?
### Context:
CREATE TABLE table_name_60 (score VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_60 WHERE home = "etobicoke kangaroos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a Score that is 46-77?
### Context:
CREATE TABLE table_name_65 (date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_65 WHERE score = "46-77" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pavilion depth has a Crown angle of 34.0–34.7°?
### Context:
CREATE TABLE table_name_49 (pavilion_depth VARCHAR, crown_angle VARCHAR) [/INST]
### Response:
SELECT pavilion_depth FROM table_name_49 WHERE crown_angle = "34.0–34.7°" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Brilliance Grade has a Benchmark of practical fine cut?
### Context:
CREATE TABLE table_name_69 (brilliance_grade VARCHAR, benchmark VARCHAR) [/INST]
### Response:
SELECT brilliance_grade FROM table_name_69 WHERE benchmark = "practical fine cut" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Table diameter has a Crown height of 14.45%?
### Context:
CREATE TABLE table_name_35 (table_diameter VARCHAR, crown_height VARCHAR) [/INST]
### Response:
SELECT table_diameter FROM table_name_35 WHERE crown_height = "14.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:
Which Brilliance Grade has a Crown angle of 41.1°?
### Context:
CREATE TABLE table_name_6 (brilliance_grade VARCHAR, crown_angle VARCHAR) [/INST]
### Response:
SELECT brilliance_grade FROM table_name_6 WHERE crown_angle = "41.1°" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Pavilion depth has a Brilliance Grade of 100% and a Pavilion angle of n/a?
### Context:
CREATE TABLE table_name_36 (pavilion_depth VARCHAR, brilliance_grade VARCHAR, pavilion_angle VARCHAR) [/INST]
### Response:
SELECT pavilion_depth FROM table_name_36 WHERE brilliance_grade = "100%" AND pavilion_angle = "n/a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the number of lost with 2 points?
### Context:
CREATE TABLE table_name_70 (lost VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(lost) FROM table_name_70 WHERE points = 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 aggregate for the match with a team 2 of Kenya?
### Context:
CREATE TABLE table_name_60 (agg VARCHAR, team_2 VARCHAR) [/INST]
### Response:
SELECT agg FROM table_name_60 WHERE team_2 = "kenya" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the aggregate for the match with Sierra Leone as team 1?
### Context:
CREATE TABLE table_name_28 (agg VARCHAR, team_1 VARCHAR) [/INST]
### Response:
SELECT agg FROM table_name_28 WHERE team_1 = "sierra leone" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1st leg score for the match with Lesotho as team 1?
### Context:
CREATE TABLE table_name_14 (team_1 VARCHAR) [/INST]
### Response:
SELECT 1 AS st_leg FROM table_name_14 WHERE team_1 = "lesotho" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2nd leg score for the match with Lesotho as team 1?
### Context:
CREATE TABLE table_name_82 (team_1 VARCHAR) [/INST]
### Response:
SELECT 2 AS nd_leg FROM table_name_82 WHERE team_1 = "lesotho" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ladies ranked who had less than 3 silvers, less than 2 total medals, and more than 0 bronze medals?
### Context:
CREATE TABLE table_name_9 (rank VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT COUNT(rank) FROM table_name_9 WHERE silver < 3 AND total < 2 AND bronze > 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 total number of gold medals for the skater with less than 3 bronze medals, more than 0 silver medals and a rank smaller than 11?
### Context:
CREATE TABLE table_name_17 (gold VARCHAR, silver VARCHAR, bronze VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(gold) FROM table_name_17 WHERE bronze < 3 AND rank < 11 AND silver > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was Matthew Warchus' Award?
### Context:
CREATE TABLE table_name_29 (award VARCHAR, nominee VARCHAR) [/INST]
### Response:
SELECT award FROM table_name_29 WHERE nominee = "matthew warchus" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.