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 was the high amount of assists before game 60?
### Context:
CREATE TABLE table_name_1 (high_assists VARCHAR, game INTEGER) [/INST]
### Response:
SELECT high_assists FROM table_name_1 WHERE game < 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:
What date was match 5?
### Context:
CREATE TABLE table_name_29 (date VARCHAR, match VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_29 WHERE match = 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 was the game score on april 2, 2008?
### Context:
CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_2 WHERE date = "april 2, 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 average match when the singapore armed forces played away against perak fa (malaysia)?
### Context:
CREATE TABLE table_name_65 (match INTEGER, home_away VARCHAR, opponent_team VARCHAR) [/INST]
### Response:
SELECT AVG(match) FROM table_name_65 WHERE home_away = "away" AND opponent_team = "perak fa (malaysia)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ICAO for Seewoosagur Ramgoolam airport?
### Context:
CREATE TABLE table_name_72 (icao VARCHAR, airport VARCHAR) [/INST]
### Response:
SELECT icao FROM table_name_72 WHERE airport = "seewoosagur ramgoolam airport" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 IATA for San Francisco airport?
### Context:
CREATE TABLE table_name_88 (iata VARCHAR, airport VARCHAR) [/INST]
### Response:
SELECT iata FROM table_name_88 WHERE airport = "san francisco airport" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city has an ICAO of Oejn?
### Context:
CREATE TABLE table_name_61 (city VARCHAR, icao VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_61 WHERE icao = "oejn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 IATA for Gatwick airport?
### Context:
CREATE TABLE table_name_79 (iata VARCHAR, airport VARCHAR) [/INST]
### Response:
SELECT iata FROM table_name_79 WHERE airport = "gatwick airport" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ICAO in France with an IATA of Ory?
### Context:
CREATE TABLE table_name_79 (icao VARCHAR, country VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT icao FROM table_name_79 WHERE country = "france" AND iata = "ory" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Location Attendance has a Game larger than 67, and a Team of @ charlotte?
### Context:
CREATE TABLE table_name_92 (location_attendance VARCHAR, game VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_name_92 WHERE game > 67 AND team = "@ charlotte" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 High rebounds have High points of chris bosh (18)?
### Context:
CREATE TABLE table_name_50 (high_rebounds VARCHAR, high_points VARCHAR) [/INST]
### Response:
SELECT high_rebounds FROM table_name_50 WHERE high_points = "chris bosh (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 High rebounds have High points of chris bosh (34)?
### Context:
CREATE TABLE table_name_29 (high_rebounds VARCHAR, high_points VARCHAR) [/INST]
### Response:
SELECT high_rebounds FROM table_name_29 WHERE high_points = "chris bosh (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 are Utah's high points?
### Context:
CREATE TABLE table_name_49 (high_points VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_name_49 WHERE team = "utah" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rinnal's title?
### Context:
CREATE TABLE table_name_82 (title VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_82 WHERE name = "rinnal" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 from United States is in place of t6?
### Context:
CREATE TABLE table_name_51 (player VARCHAR, country VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_51 WHERE country = "united states" AND place = "t6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Phil Mickelson has what To par?
### Context:
CREATE TABLE table_name_47 (to_par VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_47 WHERE player = "phil mickelson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What high assists have a game greater than 46?
### Context:
CREATE TABLE table_name_61 (high_assists VARCHAR, game INTEGER) [/INST]
### Response:
SELECT high_assists FROM table_name_61 WHERE game > 46 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high points that have 42 as the game?
### Context:
CREATE TABLE table_name_65 (high_points VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_name_65 WHERE game = 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 record has 46 as the game?
### Context:
CREATE TABLE table_name_74 (record VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_74 WHERE game = 46 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 PLACE WITH A SCORE OF 67-70=137?
### Context:
CREATE TABLE table_name_61 (place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_61 WHERE score = 67 - 70 = 137 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
WHAT PLAYER HAS A SCORE OF 66-73=139?
### Context:
CREATE TABLE table_name_79 (player VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_79 WHERE score = 66 - 73 = 139 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
WHAT PLACE WAS A SCORE 67-70=137?
### Context:
CREATE TABLE table_name_48 (place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_48 WHERE score = 67 - 70 = 137 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
WHAT COUNTRY HAS A T7 PLACE, WITH IAN WOOSNAM?
### Context:
CREATE TABLE table_name_13 (country VARCHAR, place VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_13 WHERE place = "t7" AND player = "ian woosnam" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
WHAT COUNTRY HAS A SCORE OF 68-70=138?
### Context:
CREATE TABLE table_name_58 (country VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_58 WHERE score = 68 - 70 = 138 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earliest week when the New Orleans Saints were the opponents?
### Context:
CREATE TABLE table_name_31 (week INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_name_31 WHERE opponent = "new orleans saints" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the opponent that having a TV time of Bye?
### Context:
CREATE TABLE table_name_19 (opponent VARCHAR, tv_time VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_19 WHERE tv_time = "bye" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year did the Grizzlies play for the UNLV team?
### Context:
CREATE TABLE table_name_81 (years_for_grizzlies VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT years_for_grizzlies FROM table_name_81 WHERE school_club_team = "unlv" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What nationality is the forward/center position?
### Context:
CREATE TABLE table_name_37 (nationality VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_37 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 is from the United States and plays a guard position for the Grizzlies in 2012?
### Context:
CREATE TABLE table_name_70 (school_club_team VARCHAR, years_for_grizzlies VARCHAR, nationality VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_name_70 WHERE nationality = "united states" AND position = "guard" AND years_for_grizzlies = "2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position is the player from the United States play for the Grizzlies from 2000-2001?
### Context:
CREATE TABLE table_name_90 (position VARCHAR, nationality VARCHAR, years_for_grizzlies VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_90 WHERE nationality = "united states" AND years_for_grizzlies = "2000-2001" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Bronze, when Gold is greater than 0, when Rank is 4, and when Total is greater than 4?
### Context:
CREATE TABLE table_name_59 (bronze VARCHAR, total VARCHAR, gold VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(bronze) FROM table_name_59 WHERE gold > 0 AND rank = "4" AND total > 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 total number of Total, when Gold is less than 1, when Silver is greater than 0, when Rank is 14, and when Nation is Afghanistan?
### Context:
CREATE TABLE table_name_68 (total VARCHAR, nation VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_68 WHERE gold < 1 AND silver > 0 AND rank = "14" AND nation = "afghanistan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Gold, when Silver is 0, and when Bronze is 2?
### Context:
CREATE TABLE table_name_52 (gold INTEGER, silver VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT MIN(gold) FROM table_name_52 WHERE silver = 0 AND bronze = 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 average Bronze, when Silver is 0, when Rank is 19, and when Total is greater than 2?
### Context:
CREATE TABLE table_name_29 (bronze INTEGER, total VARCHAR, silver VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT AVG(bronze) FROM table_name_29 WHERE silver = 0 AND rank = "19" AND total > 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 lowest number of pieces for a board released in 1984?
### Context:
CREATE TABLE table_name_15 (pieces INTEGER, release VARCHAR) [/INST]
### Response:
SELECT MIN(pieces) FROM table_name_15 WHERE release = 1984 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 dimensions in centimeters of a theater board who started in 1940, who was released after 2010?
### Context:
CREATE TABLE table_name_14 (board__cm_ VARCHAR, release VARCHAR, start VARCHAR, type VARCHAR) [/INST]
### Response:
SELECT board__cm_ FROM table_name_14 WHERE start = "1940" AND type = "theater" AND release > 2010 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pieces for boards that started in 1941 and were released after 2001?
### Context:
CREATE TABLE table_name_14 (pieces INTEGER, start VARCHAR, release VARCHAR) [/INST]
### Response:
SELECT AVG(pieces) FROM table_name_14 WHERE start = "1941" AND release > 2001 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 dimensions in inches of the board released before 2004, that started in 1941?
### Context:
CREATE TABLE table_name_76 (board__inches_ VARCHAR, release VARCHAR, start VARCHAR) [/INST]
### Response:
SELECT board__inches_ FROM table_name_76 WHERE release < 2004 AND start = "1941" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Venue, when Against is less than 30, and when Opposing Team is New South Wales?
### Context:
CREATE TABLE table_name_14 (venue VARCHAR, against VARCHAR, opposing_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_14 WHERE against < 30 AND opposing_team = "new south wales" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Status, when Date is 10/05/1975?
### Context:
CREATE TABLE table_name_33 (status VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT status FROM table_name_33 WHERE date = "10/05/1975" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest Against, when Opposing Team is Queensland?
### Context:
CREATE TABLE table_name_92 (against INTEGER, opposing_team VARCHAR) [/INST]
### Response:
SELECT MIN(against) FROM table_name_92 WHERE opposing_team = "queensland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Date, when Status is Second Test?
### Context:
CREATE TABLE table_name_34 (date VARCHAR, status VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_34 WHERE status = "second test" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 born in Porsgrunn?
### Context:
CREATE TABLE table_name_27 (name VARCHAR, place_of_birth VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_27 WHERE place_of_birth = "porsgrunn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Studio has a Rank smaller than 3, and a Director of adrian lyne?
### Context:
CREATE TABLE table_name_71 (studio VARCHAR, rank VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT studio FROM table_name_71 WHERE rank < 3 AND director = "adrian lyne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Rank is the lowest one that has a Gross of $54,215,416?
### Context:
CREATE TABLE table_name_24 (rank INTEGER, gross VARCHAR) [/INST]
### Response:
SELECT MIN(rank) FROM table_name_24 WHERE gross = "$54,215,416" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match against John McEnroe with a Score of 3–6, 6–3, 2–6?
### Context:
CREATE TABLE table_name_73 (date VARCHAR, opponent VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_73 WHERE opponent = "john mcenroe" AND score = "3–6, 6–3, 2–6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Opponent of the game in 1989?
### Context:
CREATE TABLE table_name_76 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_76 WHERE date = 1989 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest pick of ron whaley?
### Context:
CREATE TABLE table_name_58 (pick INTEGER, name VARCHAR) [/INST]
### Response:
SELECT MAX(pick) FROM table_name_58 WHERE name = "ron whaley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall sum of the game with a pick less than 8 from the college of western michigan?
### Context:
CREATE TABLE table_name_23 (overall INTEGER, pick VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT SUM(overall) FROM table_name_23 WHERE pick < 8 AND college = "western michigan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the player from the college of western michigan?
### Context:
CREATE TABLE table_name_92 (position VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_92 WHERE college = "western michigan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round of bob caldwell, who has a pick greater than 7 and an overall larger than 162?
### Context:
CREATE TABLE table_name_9 (round INTEGER, overall VARCHAR, pick VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_9 WHERE pick > 7 AND name = "bob caldwell" AND overall > 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 college of dave adams, who has a pick greater than 7?
### Context:
CREATE TABLE table_name_63 (college VARCHAR, pick VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_63 WHERE pick > 7 AND name = "dave adams" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What game took place on April 28?
### Context:
CREATE TABLE table_name_33 (game VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_33 WHERE date = "april 28" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 east with ev landsberg as the west?
### Context:
CREATE TABLE table_name_83 (east VARCHAR, west VARCHAR) [/INST]
### Response:
SELECT east FROM table_name_83 WHERE west = "ev landsberg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 north with sb rosenheim as the south?
### Context:
CREATE TABLE table_name_45 (north VARCHAR, south VARCHAR) [/INST]
### Response:
SELECT north FROM table_name_45 WHERE south = "sb rosenheim" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 south with ev lindau as the west and svg burgkirchen as the east?
### Context:
CREATE TABLE table_name_24 (south VARCHAR, west VARCHAR, east VARCHAR) [/INST]
### Response:
SELECT south FROM table_name_24 WHERE west = "ev lindau" AND east = "svg burgkirchen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has esc holzkirchen south, esv buchloe west, and ehc bayreuth north?
### Context:
CREATE TABLE table_name_68 (season VARCHAR, north VARCHAR, south VARCHAR, west VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_68 WHERE south = "esc holzkirchen" AND west = "esv buchloe" AND north = "ehc bayreuth" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 south in the 2001-02 season, which had germering wanderers east?
### Context:
CREATE TABLE table_name_92 (south VARCHAR, east VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT south FROM table_name_92 WHERE east = "germering wanderers" AND season = "2001-02" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 west when ev fürstenfeldbruck was south?
### Context:
CREATE TABLE table_name_28 (west VARCHAR, south VARCHAR) [/INST]
### Response:
SELECT west FROM table_name_28 WHERE south = "ev fürstenfeldbruck" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When revenue is smaller than 4,177 million in year 2008, what is the sum of earnings per share?
### Context:
CREATE TABLE table_name_89 (earnings_per_share__p_ INTEGER, year_ended VARCHAR, revenue__£million_ VARCHAR) [/INST]
### Response:
SELECT SUM(earnings_per_share__p_) FROM table_name_89 WHERE year_ended = "2008" AND revenue__£million_ < 4 OFFSET 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 year 2007 earnings per share?
### Context:
CREATE TABLE table_name_47 (earnings_per_share__p_ VARCHAR, year_ended VARCHAR) [/INST]
### Response:
SELECT earnings_per_share__p_ FROM table_name_47 WHERE year_ended = "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 total net profit when earnings per share is 27.4, and profit/loss befor tax was smaller than 194.6 million?
### Context:
CREATE TABLE table_name_75 (net_profit__ INTEGER, earnings_per_share__p_ VARCHAR, profit__loss__before_tax__£m_ VARCHAR) [/INST]
### Response:
SELECT SUM(net_profit__) AS £m_ FROM table_name_75 WHERE earnings_per_share__p_ = 27.4 AND profit__loss__before_tax__£m_ < 194.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:
In year 2011 what is sum of profit/loss before tax and net profit larger than 123.8 million?
### Context:
CREATE TABLE table_name_47 (profit__loss__before_tax__ VARCHAR, year_ended VARCHAR, net_profit__£m_ VARCHAR) [/INST]
### Response:
SELECT COUNT(profit__loss__before_tax__) AS £m_ FROM table_name_47 WHERE year_ended = "2011" AND net_profit__£m_ > 123.8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest goals for less than 63 goals against, more than 65 points 1, and more than 10 losses?
### Context:
CREATE TABLE table_name_97 (goals_for INTEGER, lost VARCHAR, goals_against VARCHAR, points_1 VARCHAR) [/INST]
### Response:
SELECT MAX(goals_for) FROM table_name_97 WHERE goals_against < 63 AND points_1 > 65 AND lost > 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 the highest position for less than 42 played?
### Context:
CREATE TABLE table_name_48 (position INTEGER, played INTEGER) [/INST]
### Response:
SELECT MAX(position) FROM table_name_48 WHERE played < 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 average day in December with a Record of 16-3-4 and a Game smaller than 23?
### Context:
CREATE TABLE table_name_84 (december INTEGER, record VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT AVG(december) FROM table_name_84 WHERE record = "16-3-4" AND game < 23 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When the Runners-Up is larger than 0, what's the sum of winners?
### Context:
CREATE TABLE table_name_38 (winners INTEGER, runners_up INTEGER) [/INST]
### Response:
SELECT SUM(winners) FROM table_name_38 WHERE runners_up > 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:
When there are more than 1 winners and the team playing is pachuca, what's the lowest runners-up found?
### Context:
CREATE TABLE table_name_44 (runners_up INTEGER, team VARCHAR, winners VARCHAR) [/INST]
### Response:
SELECT MIN(runners_up) FROM table_name_44 WHERE team = "pachuca" AND winners > 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:
Can you tell me the Name that has the Assists of lake (154) lake (5.1 apg)?
### Context:
CREATE TABLE table_name_45 (name VARCHAR, assists VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_45 WHERE assists = "lake (154) lake (5.1 apg)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you tell me the Name that has the Place of 1?
### Context:
CREATE TABLE table_name_86 (name VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_86 WHERE place = 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:
Can you tell me the Rebounds that has the Name of pom baskets jena?
### Context:
CREATE TABLE table_name_27 (rebounds VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT rebounds FROM table_name_27 WHERE name = "pom baskets jena" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you tell me the Steals that has the Place of 6?
### Context:
CREATE TABLE table_name_13 (steals VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT steals FROM table_name_13 WHERE place = 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Callsign in Brisbane with a Freq currently of 4rph?
### Context:
CREATE TABLE table_name_52 (callsign VARCHAR, area_served VARCHAR, freq_currently VARCHAR) [/INST]
### Response:
SELECT callsign FROM table_name_52 WHERE area_served = "brisbane" AND freq_currently = "4rph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Freq currently of the 4GG Callsign?
### Context:
CREATE TABLE table_name_7 (freq_currently VARCHAR, callsign VARCHAR) [/INST]
### Response:
SELECT freq_currently FROM table_name_7 WHERE callsign = "4gg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Community Band with a 4BCB Callsign?
### Context:
CREATE TABLE table_name_95 (band VARCHAR, purpose VARCHAR, callsign VARCHAR) [/INST]
### Response:
SELECT band FROM table_name_95 WHERE purpose = "community" AND callsign = "4bcb" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Purpose of the Callsign with a Freq currently of 4gld?
### Context:
CREATE TABLE table_name_59 (purpose VARCHAR, freq_currently VARCHAR) [/INST]
### Response:
SELECT purpose FROM table_name_59 WHERE freq_currently = "4gld" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Purpose of the Callsign with a Freq currently of 4rph?
### Context:
CREATE TABLE table_name_43 (purpose VARCHAR, freq_currently VARCHAR) [/INST]
### Response:
SELECT purpose FROM table_name_43 WHERE freq_currently = "4rph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 press like for the world olympic record holder Roger Francois and Jaan Kikkas?
### Context:
CREATE TABLE table_name_95 (press VARCHAR, world_record VARCHAR, roger_françois VARCHAR) [/INST]
### Response:
SELECT press FROM table_name_95 WHERE world_record = "olympic record" AND roger_françois = "jaan kikkas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 press like in Paris for Roger Francois, and Carlo Galimberti?
### Context:
CREATE TABLE table_name_67 (paris___fra__ VARCHAR, roger_françois VARCHAR) [/INST]
### Response:
SELECT paris___fra__ FROM table_name_67 WHERE "press" = "press" AND roger_françois = "carlo galimberti" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of world records for Roger Francois?
### Context:
CREATE TABLE table_name_54 (roger_françois VARCHAR, world_record VARCHAR) [/INST]
### Response:
SELECT roger_françois FROM table_name_54 WHERE world_record = "total" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What place had a score of 71-70-73-71=285?
### Context:
CREATE TABLE table_name_50 (place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_50 WHERE score = 71 - 70 - 73 - 71 = 285 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 much money for 1st place with a to par less than 1?
### Context:
CREATE TABLE table_name_51 (money___ VARCHAR, place VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT COUNT(money___) AS $__ FROM table_name_51 WHERE place = "1" AND to_par < 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 Player had a To par of +1?
### Context:
CREATE TABLE table_name_39 (player VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_39 WHERE to_par = "+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 Country of the Player with a To par of +4 and Score of 73-71-73=217?
### Context:
CREATE TABLE table_name_94 (country VARCHAR, to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_94 WHERE to_par = "+4" AND score = 73 - 71 - 73 = 217 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Place of the Player with a To par of +3 and Score of 73-70-73=216?
### Context:
CREATE TABLE table_name_45 (place VARCHAR, to_par VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_45 WHERE to_par = "+3" AND score = 73 - 70 - 73 = 216 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Place of the Player with a Score of 72-70-72=214?
### Context:
CREATE TABLE table_name_86 (place VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT place FROM table_name_86 WHERE score = 72 - 70 - 72 = 214 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 uses the kitmaker Saller and has Krombacher as their shirt sponsor?
### Context:
CREATE TABLE table_name_73 (team VARCHAR, kitmaker VARCHAR, shirt_sponsor VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_73 WHERE kitmaker = "saller" AND shirt_sponsor = "krombacher" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For the team led by head coach Felix Magath, who is the team captain?
### Context:
CREATE TABLE table_name_91 (team VARCHAR, head_coach VARCHAR) [/INST]
### Response:
SELECT team AS Captain FROM table_name_91 WHERE head_coach = "felix magath" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For the team whose shirt sponsor is Krombacher, who is the team captain?
### Context:
CREATE TABLE table_name_12 (team VARCHAR, shirt_sponsor VARCHAR) [/INST]
### Response:
SELECT team AS Captain FROM table_name_12 WHERE shirt_sponsor = "krombacher" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For the team whose shirt sponsor is Evonik, who is the kitmaker?
### Context:
CREATE TABLE table_name_54 (kitmaker VARCHAR, shirt_sponsor VARCHAR) [/INST]
### Response:
SELECT kitmaker FROM table_name_54 WHERE shirt_sponsor = "evonik" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Shirt Back Sponsor if the Shorts Sponsor is Telestet?
### Context:
CREATE TABLE table_name_69 (shirt_back_sponsor VARCHAR, shorts_sponsor VARCHAR) [/INST]
### Response:
SELECT shirt_back_sponsor FROM table_name_69 WHERE shorts_sponsor = "telestet" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Res., has Ryan Scheepe as an opponent?
### Context:
CREATE TABLE table_name_34 (res VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT res FROM table_name_34 WHERE opponent = "ryan scheepe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position is Jeff Brown?
### Context:
CREATE TABLE table_name_74 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_74 WHERE player = "jeff brown" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played on Team Hamilton?
### Context:
CREATE TABLE table_name_33 (player VARCHAR, cfl_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_33 WHERE cfl_team = "hamilton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What CFL team does Jeff brown play for?
### Context:
CREATE TABLE table_name_16 (cfl_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT cfl_team FROM table_name_16 WHERE player = "jeff brown" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 picks for Calgary College?
### Context:
CREATE TABLE table_name_30 (pick__number VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT COUNT(pick__number) FROM table_name_30 WHERE college = "calgary" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the home team when the record was 2-3?
### Context:
CREATE TABLE table_name_38 (home VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_38 WHERE record = "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 record on April 10?
### Context:
CREATE TABLE table_name_75 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_75 WHERE date = "april 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 spacecraft had an EVA that ended at 17:28?
### Context:
CREATE TABLE table_name_66 (spacecraft VARCHAR, end_time VARCHAR) [/INST]
### Response:
SELECT spacecraft FROM table_name_66 WHERE end_time = "17:28" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What crew's EVA started on 20 February 20:09?
### Context:
CREATE TABLE table_name_33 (crew VARCHAR, start_date_time VARCHAR) [/INST]
### Response:
SELECT crew FROM table_name_33 WHERE start_date_time = "20 february 20:09" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.