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 total of the first season in Segunda División that has a City of cañete?
### Context:
CREATE TABLE table_name_44 (first_season_of_current_spell_in_segunda_división INTEGER, city VARCHAR) [/INST]
### Response:
SELECT SUM(first_season_of_current_spell_in_segunda_división) FROM table_name_44 WHERE city = "cañete" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Top division titles larger than 0, a Founded larger than 1927, and a Stadium of miguel grau?
### Context:
CREATE TABLE table_name_69 (team VARCHAR, stadium VARCHAR, top_division_titles VARCHAR, founded VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_69 WHERE top_division_titles > 0 AND founded > 1927 AND stadium = "miguel grau" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a First season of current spell in Segunda División smaller than 2013?
### Context:
CREATE TABLE table_name_69 (city VARCHAR, first_season_of_current_spell_in_segunda_división INTEGER) [/INST]
### Response:
SELECT city FROM table_name_69 WHERE first_season_of_current_spell_in_segunda_división < 2013 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 smallest capacity for a First season in Segunda División of 2013, and Top division titles larger than 0?
### Context:
CREATE TABLE table_name_11 (capacity INTEGER, first_season_in_segunda_división VARCHAR, top_division_titles VARCHAR) [/INST]
### Response:
SELECT MIN(capacity) FROM table_name_11 WHERE first_season_in_segunda_división = 2013 AND top_division_titles > 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's the total enrollment ofr Mcgill University that has a capacity less than 25,012?
### Context:
CREATE TABLE table_name_99 (enrollment VARCHAR, institution VARCHAR, capacity VARCHAR) [/INST]
### Response:
SELECT COUNT(enrollment) FROM table_name_99 WHERE institution = "mcgill university" AND capacity < 25 OFFSET 012 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the smallest season for Montreal that's greater than 5,100 for capacity?
### Context:
CREATE TABLE table_name_8 (first_season INTEGER, city VARCHAR, capacity VARCHAR) [/INST]
### Response:
SELECT MIN(first_season) FROM table_name_8 WHERE city = "montreal" AND capacity > 5 OFFSET 100 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the name of the city whose first season was in 1996?
### Context:
CREATE TABLE table_name_32 (city VARCHAR, first_season VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_32 WHERE first_season = 1996 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the name of the carabins stadium?
### Context:
CREATE TABLE table_name_55 (football_stadium VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT football_stadium FROM table_name_55 WHERE team = "carabins" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has the qual 2 of 1:44.050?
### Context:
CREATE TABLE table_name_9 (best VARCHAR, qual_2 VARCHAR) [/INST]
### Response:
SELECT best FROM table_name_9 WHERE qual_2 = "1:44.050" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what name goes along with the team of forsythe racing, and a Qual 2 of 1:47.132?
### Context:
CREATE TABLE table_name_87 (name VARCHAR, team VARCHAR, qual_2 VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_87 WHERE team = "forsythe racing" AND qual_2 = "1:47.132" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had the 1:44.027 qual 2?
### Context:
CREATE TABLE table_name_82 (team VARCHAR, qual_2 VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_82 WHERE qual_2 = "1:44.027" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 qual 1 for alex tagliani?
### Context:
CREATE TABLE table_name_25 (qual_1 VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT qual_1 FROM table_name_25 WHERE name = "alex tagliani" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the team with the best of 1:43.134?
### Context:
CREATE TABLE table_name_75 (team VARCHAR, best VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_75 WHERE best = "1:43.134" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 visiting team at the matchup at the RCA Dome?
### Context:
CREATE TABLE table_name_99 (visiting_team VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT visiting_team FROM table_name_99 WHERE stadium = "rca dome" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 final score in the game in which the Detroit Lions were the home team?
### Context:
CREATE TABLE table_name_11 (final_score VARCHAR, host_team VARCHAR) [/INST]
### Response:
SELECT final_score FROM table_name_11 WHERE host_team = "detroit lions" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 stadium hosted the November 20 game?
### Context:
CREATE TABLE table_name_11 (stadium VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT stadium FROM table_name_11 WHERE date = "november 20" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the visiting team against the Minnesota Vikings?
### Context:
CREATE TABLE table_name_13 (visiting_team VARCHAR, host_team VARCHAR) [/INST]
### Response:
SELECT visiting_team FROM table_name_13 WHERE host_team = "minnesota vikings" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 host team at Candlestick Park?
### Context:
CREATE TABLE table_name_22 (host_team VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT host_team FROM table_name_22 WHERE stadium = "candlestick park" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which date had a final score of 20-27?
### Context:
CREATE TABLE table_name_58 (date VARCHAR, final_score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_58 WHERE final_score = "20-27" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many years have had the position of 2nd?
### Context:
CREATE TABLE table_name_66 (year VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_66 WHERE position = "2nd" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had notes of 20km and a year earlier than 2002?
### Context:
CREATE TABLE table_name_29 (position VARCHAR, notes VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_29 WHERE notes = "20km" AND year < 2002 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue before 2006, with the position of 10th?
### Context:
CREATE TABLE table_name_26 (venue VARCHAR, year VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_26 WHERE year < 2006 AND position = "10th" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What were the notes when the Venue was Turin, Italy?
### Context:
CREATE TABLE table_name_62 (notes VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_62 WHERE venue = "turin, italy" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is Gareth Morgan's Secondary Military Specialty?
### Context:
CREATE TABLE table_name_21 (secondary_military_speciality VARCHAR, real_name VARCHAR) [/INST]
### Response:
SELECT secondary_military_speciality FROM table_name_21 WHERE real_name = "gareth morgan" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Code Name of the figure born in Hawaii?
### Context:
CREATE TABLE table_name_81 (code_name VARCHAR, birthplace VARCHAR) [/INST]
### Response:
SELECT code_name FROM table_name_81 WHERE birthplace = "hawaii" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the last title for greater buenos aires and first season of 1920
### Context:
CREATE TABLE table_name_9 (last_title VARCHAR, area_province VARCHAR, first_season VARCHAR) [/INST]
### Response:
SELECT last_title FROM table_name_9 WHERE area_province = "greater buenos aires" AND first_season = "1920" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the area for District of córdoba
### Context:
CREATE TABLE table_name_64 (area_province VARCHAR, district VARCHAR) [/INST]
### Response:
SELECT area_province FROM table_name_64 WHERE district = "córdoba" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the last title for club of quilmes
### Context:
CREATE TABLE table_name_36 (last_title VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT last_title FROM table_name_36 WHERE club = "quilmes" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the last time for club of newell's old boys
### Context:
CREATE TABLE table_name_11 (last_title VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT last_title FROM table_name_11 WHERE club = "newell's old boys" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the averag scored for 2011 long teng cup and 2 october 2011
### Context:
CREATE TABLE table_name_64 (scored INTEGER, competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT AVG(scored) FROM table_name_64 WHERE competition = "2011 long teng cup" AND date = "2 october 2011" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Can you tell me the Barrel twist that has the Barrel lenght of 11.5 in.?
### Context:
CREATE TABLE table_name_63 (barrel_twist VARCHAR, barrel_length VARCHAR) [/INST]
### Response:
SELECT barrel_twist FROM table_name_63 WHERE barrel_length = "11.5 in." </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average year that had a value less than 2,575 in Inglewood?
### Context:
CREATE TABLE table_name_27 (year INTEGER, inglewood INTEGER) [/INST]
### Response:
SELECT AVG(year) FROM table_name_27 WHERE inglewood < 2 OFFSET 575 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nature of the incident in Kabul on 2004-01-28?
### Context:
CREATE TABLE table_name_62 (nature_of_incident VARCHAR, location VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT nature_of_incident FROM table_name_62 WHERE location = "kabul" AND date = "2004-01-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 nature of the incident that's a bomb attack?
### Context:
CREATE TABLE table_name_69 (nature_of_incident VARCHAR, circumstances VARCHAR) [/INST]
### Response:
SELECT nature_of_incident FROM table_name_69 WHERE circumstances = "bomb attack" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nature of the incident with Casualties of 3 wia, and Circumstances of ied?
### Context:
CREATE TABLE table_name_93 (nature_of_incident VARCHAR, casualties VARCHAR, circumstances VARCHAR) [/INST]
### Response:
SELECT nature_of_incident FROM table_name_93 WHERE casualties = "3 wia" AND circumstances = "ied" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Casualties have a Location of kunduz, and Circumstances of suicide?
### Context:
CREATE TABLE table_name_24 (casualties VARCHAR, location VARCHAR, circumstances VARCHAR) [/INST]
### Response:
SELECT casualties FROM table_name_24 WHERE location = "kunduz" AND circumstances = "suicide" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Casualties have a hostile Nature of incident and Circumstances of mortar attack?
### Context:
CREATE TABLE table_name_67 (casualties VARCHAR, nature_of_incident VARCHAR, circumstances VARCHAR) [/INST]
### Response:
SELECT casualties FROM table_name_67 WHERE nature_of_incident = "hostile" AND circumstances = "mortar attack" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was the delegate who has previous experience as a commissioner of health born?
### Context:
CREATE TABLE table_name_36 (born_in VARCHAR, former_experience VARCHAR) [/INST]
### Response:
SELECT born_in FROM table_name_36 WHERE former_experience = "commissioner of health" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the airport in the city of Kota Kinabalu?
### Context:
CREATE TABLE table_name_85 (airport VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT airport FROM table_name_85 WHERE city = "kota kinabalu" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the city of Amsterdam?
### Context:
CREATE TABLE table_name_23 (iata VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT iata FROM table_name_23 WHERE city = "amsterdam" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country has an IATA of JFK?
### Context:
CREATE TABLE table_name_3 (country VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_3 WHERE iata = "jfk" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 IATA of AUH?
### Context:
CREATE TABLE table_name_42 (city VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_42 WHERE iata = "auh" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 airport has an IATA of AMS?
### Context:
CREATE TABLE table_name_39 (airport VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT airport FROM table_name_39 WHERE iata = "ams" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Kiah?
### Context:
CREATE TABLE table_name_59 (city VARCHAR, icao VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_59 WHERE icao = "kiah" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Genre did Sándor Simó direct?
### Context:
CREATE TABLE table_name_88 (genre VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT genre FROM table_name_88 WHERE directed_by = "sándor simó" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Genre for Malina (ger.-aus.-fr.), an Original Title?
### Context:
CREATE TABLE table_name_12 (genre VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT genre FROM table_name_12 WHERE original_title = "malina (ger.-aus.-fr.)" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The Last Metro refers to which Original Title?
### Context:
CREATE TABLE table_name_91 (original_title VARCHAR, title_in_english VARCHAR) [/INST]
### Response:
SELECT original_title FROM table_name_91 WHERE title_in_english = "the last metro" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What original title, Franciska Vasárnapjai (hungarian), had an Episode Actor role which was Directed by Géza Bereményi?
### Context:
CREATE TABLE table_name_48 (genre VARCHAR, role VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT genre FROM table_name_48 WHERE role = "episode actor" AND original_title = "franciska vasárnapjai (hungarian)" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Original title for an Episode Actor role which was Directed by Géza Bereményi?
### Context:
CREATE TABLE table_name_59 (original_title VARCHAR, role VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT original_title FROM table_name_59 WHERE role = "episode actor" AND directed_by = "géza bereményi" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 round for bob randall?
### Context:
CREATE TABLE table_name_13 (round INTEGER, name VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_13 WHERE name = "bob randall" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when signed is yes, round is less than 24 and name is charlie hough?
### Context:
CREATE TABLE table_name_96 (position VARCHAR, name VARCHAR, signed VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_96 WHERE signed = "yes" AND round < 24 AND name = "charlie hough" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 school when signed is no and round is 50?
### Context:
CREATE TABLE table_name_26 (school VARCHAR, signed VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_26 WHERE signed = "no" AND round = 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:
what is the school for round 8?
### Context:
CREATE TABLE table_name_68 (school VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_68 WHERE round = 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 position for robert johnson?
### Context:
CREATE TABLE table_name_25 (position VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_25 WHERE name = "robert johnson" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Was position ss from carson city high school signed?
### Context:
CREATE TABLE table_name_48 (signed VARCHAR, position VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT signed FROM table_name_48 WHERE position = "ss" AND school = "carson city high school" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the average number of yards Michael Henig had in a year when he had more than 12 starts/
### Context:
CREATE TABLE table_name_46 (yards INTEGER, starts INTEGER) [/INST]
### Response:
SELECT AVG(yards) FROM table_name_46 WHERE starts > 12 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the average number of starts Michael Henig had in a year when he had more than 1201 yards?
### Context:
CREATE TABLE table_name_54 (starts INTEGER, yards INTEGER) [/INST]
### Response:
SELECT AVG(starts) FROM table_name_54 WHERE yards > 1201 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the airport with IATA of cxb
### Context:
CREATE TABLE table_name_64 (airport VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT airport FROM table_name_64 WHERE iata = "cxb" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the airport with IATA of dmk
### Context:
CREATE TABLE table_name_74 (airport VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT airport FROM table_name_74 WHERE iata = "dmk" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the city that has singapore changi airport
### Context:
CREATE TABLE table_name_15 (city VARCHAR, airport VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_15 WHERE airport = "singapore changi 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:
Name the ICAO for when IATA is zyl
### Context:
CREATE TABLE table_name_22 (icao VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT icao FROM table_name_22 WHERE iata = "zyl" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the ICAO for IATA of rgn
### Context:
CREATE TABLE table_name_69 (icao VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT icao FROM table_name_69 WHERE iata = "rgn" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the ICAO for IATA of ccu
### Context:
CREATE TABLE table_name_62 (icao VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT icao FROM table_name_62 WHERE iata = "ccu" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest gold with a Total larger than 16?
### Context:
CREATE TABLE table_name_90 (gold INTEGER, total INTEGER) [/INST]
### Response:
SELECT MAX(gold) FROM table_name_90 WHERE total > 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:
What is the largest silver with a Total smaller than 2, a Bronze smaller than 1, and a Nation of yugoslavia?
### Context:
CREATE TABLE table_name_79 (silver INTEGER, nation VARCHAR, total VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT MAX(silver) FROM table_name_79 WHERE total < 2 AND bronze < 1 AND nation = "yugoslavia" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 smallest bronze with a Nation of west germany, and a Gold larger than 0?
### Context:
CREATE TABLE table_name_58 (bronze INTEGER, nation VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT MIN(bronze) FROM table_name_58 WHERE nation = "west germany" AND gold > 0 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the record on July 2?
### Context:
CREATE TABLE table_name_34 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_34 WHERE date = "july 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 largest silver with less than 0 gold?
### Context:
CREATE TABLE table_name_63 (silver INTEGER, gold INTEGER) [/INST]
### Response:
SELECT MAX(silver) FROM table_name_63 WHERE gold < 0 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the average total viewers that has 17.6% Share?
### Context:
CREATE TABLE table_name_96 (total_viewers INTEGER, share VARCHAR) [/INST]
### Response:
SELECT AVG(total_viewers) FROM table_name_96 WHERE share = "17.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's the share of Episode 1?
### Context:
CREATE TABLE table_name_84 (share VARCHAR, episode_no VARCHAR) [/INST]
### Response:
SELECT share FROM table_name_84 WHERE episode_no = 1 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many locomotives were made that were withdrawn in 1913?
### Context:
CREATE TABLE table_name_97 (quantity_made VARCHAR, withdrawn VARCHAR) [/INST]
### Response:
SELECT quantity_made FROM table_name_97 WHERE withdrawn = "1913" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 creation for the locomotive having a type of 0-4-2
### Context:
CREATE TABLE table_name_9 (date_made VARCHAR, type VARCHAR) [/INST]
### Response:
SELECT date_made FROM table_name_9 WHERE type = "0-4-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 date of creation of the locomotive of type 0-6-0 and GSR class of 441?
### Context:
CREATE TABLE table_name_31 (date_made VARCHAR, type VARCHAR, gsr_class VARCHAR) [/INST]
### Response:
SELECT date_made FROM table_name_31 WHERE type = "0-6-0" AND gsr_class = "441" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Round 19, where did Tony Lockett play?
### Context:
CREATE TABLE table_name_20 (venue VARCHAR, round VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_20 WHERE round = "19" AND player = "tony lockett" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent in 1992?
### Context:
CREATE TABLE table_name_17 (opponent VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_17 WHERE year = "1992" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What club had a score of 18.1?
### Context:
CREATE TABLE table_name_87 (club VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT club FROM table_name_87 WHERE score = "18.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 number for year built of W27 that was withdrawn in 1967 with a To LoW year earlier than 1926?
### Context:
CREATE TABLE table_name_51 (built VARCHAR, to_iow VARCHAR, withdrawn VARCHAR, br_sr_no VARCHAR) [/INST]
### Response:
SELECT COUNT(built) FROM table_name_51 WHERE withdrawn = 1967 AND br_sr_no = "w27" AND to_iow < 1926 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the number of the year withdrawn for a LSWR number greater than 210 and a To LoW year of 1923?
### Context:
CREATE TABLE table_name_19 (withdrawn VARCHAR, lswr_no VARCHAR, to_iow VARCHAR) [/INST]
### Response:
SELECT COUNT(withdrawn) FROM table_name_19 WHERE lswr_no > 210 AND to_iow = 1923 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 BR/SR number of Freshwater which was withdrawn in 1967 and built before 1892 with a To LoW year after 1927?
### Context:
CREATE TABLE table_name_25 (br_sr_no VARCHAR, sr_name VARCHAR, to_iow VARCHAR, withdrawn VARCHAR, built VARCHAR) [/INST]
### Response:
SELECT br_sr_no FROM table_name_25 WHERE withdrawn = 1967 AND built < 1892 AND to_iow > 1927 AND sr_name = "freshwater" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the engine for year less than 1977
### Context:
CREATE TABLE table_name_76 (engine VARCHAR, year INTEGER) [/INST]
### Response:
SELECT engine FROM table_name_76 WHERE year < 1977 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the start for year less than 1977
### Context:
CREATE TABLE table_name_70 (start VARCHAR, year INTEGER) [/INST]
### Response:
SELECT start FROM table_name_70 WHERE year < 1977 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the least year for start of 17th
### Context:
CREATE TABLE table_name_13 (year INTEGER, start VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_13 WHERE start = "17th" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the start for finish being 21st
### Context:
CREATE TABLE table_name_39 (start VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT start FROM table_name_39 WHERE finish = "21st" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Call sign of the Omni television network with a Digitial PSIP of 14.1?
### Context:
CREATE TABLE table_name_52 (call_sign VARCHAR, network VARCHAR, digital_psip VARCHAR) [/INST]
### Response:
SELECT call_sign FROM table_name_52 WHERE network = "omni television" AND digital_psip = 14.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's the total number of Rogers Cable (Ottawa) channels that have a Digital PSIP greater than 9.1, and a Vidéotron (Gatineau) of channel 14?
### Context:
CREATE TABLE table_name_58 (rogers_cable__ottawa_ VARCHAR, digital_psip VARCHAR, vidéotron__gatineau_ VARCHAR) [/INST]
### Response:
SELECT COUNT(rogers_cable__ottawa_) FROM table_name_58 WHERE digital_psip > 9.1 AND vidéotron__gatineau_ = 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:
Which Network is on a Vidéotron (Gatineau) channel lower than 8 and a Rogers Cable (Ottawa) channel lower than 8 and has a Call Sign of cjoh-dt?
### Context:
CREATE TABLE table_name_26 (network VARCHAR, call_sign VARCHAR, vidéotron__gatineau_ VARCHAR, rogers_cable__ottawa_ VARCHAR) [/INST]
### Response:
SELECT network FROM table_name_26 WHERE vidéotron__gatineau_ < 8 AND rogers_cable__ottawa_ < 8 AND call_sign = "cjoh-dt" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 after the fight that lasted 8:17?
### Context:
CREATE TABLE table_name_35 (record VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_35 WHERE time = "8:17" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result of the fight with Tony Halme?
### Context:
CREATE TABLE table_name_27 (res VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT res FROM table_name_27 WHERE opponent = "tony halme" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did they play on August 26?
### Context:
CREATE TABLE table_name_44 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_44 WHERE date = "august 26" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the attendance for the game on August 16?
### Context:
CREATE TABLE table_name_74 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_74 WHERE date = "august 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:
What team did Johnson (11-7) play for?
### Context:
CREATE TABLE table_name_60 (opponent VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_60 WHERE loss = "johnson (11-7)" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of points the cosworth straight-4 engine scored?
### Context:
CREATE TABLE table_name_51 (pts INTEGER, engine VARCHAR) [/INST]
### Response:
SELECT MAX(pts) FROM table_name_51 WHERE engine = "cosworth straight-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 latest year that shadow racing team scored more than 0 points?
### Context:
CREATE TABLE table_name_13 (year INTEGER, entrant VARCHAR, pts VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_13 WHERE entrant = "shadow racing team" AND pts > 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 round was held in palavas-les-flots , herault , france?
### Context:
CREATE TABLE table_name_43 (round VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_43 WHERE location = "palavas-les-flots , herault , france" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 second leg that Valencia was on?
### Context:
CREATE TABLE table_name_33 (team_2 VARCHAR) [/INST]
### Response:
SELECT 2 AS nd_leg FROM table_name_33 WHERE team_2 = "valencia" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the loss with record of 14-19
### Context:
CREATE TABLE table_name_68 (loss VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_68 WHERE record = "14-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:
Name the score with record of 17-27
### Context:
CREATE TABLE table_name_6 (score VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_6 WHERE record = "17-27" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the opponent with record of 12-18
### Context:
CREATE TABLE table_name_20 (opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_20 WHERE record = "12-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:
Who was the General classification when Pascal Richard was the winner?
### Context:
CREATE TABLE table_name_90 (general_classification VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT general_classification FROM table_name_90 WHERE winner = "pascal richard" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had the Points classification for Stage 13?
### Context:
CREATE TABLE table_name_20 (points_classification VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT points_classification FROM table_name_20 WHERE stage = "13" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.