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 outcome of the match against Sylvia Hanika on a hard (i) surface?
### Context:
CREATE TABLE table_name_75 (outcome VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_75 WHERE opponent_in_the_final = "sylvia hanika" AND surface = "hard (i)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 numbers of 20
### Context:
CREATE TABLE table_name_67 (player VARCHAR, no_s_ VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_67 WHERE no_s_ = "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:
Tell me the height in ft for 1999-2004
### Context:
CREATE TABLE table_name_47 (height_in_ft VARCHAR, years_for_rockets VARCHAR) [/INST]
### Response:
SELECT height_in_ft FROM table_name_47 WHERE years_for_rockets = "1999-2004" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the number for height in ft of 6-7
### Context:
CREATE TABLE table_name_18 (no_s_ VARCHAR, height_in_ft VARCHAR) [/INST]
### Response:
SELECT no_s_ FROM table_name_18 WHERE height_in_ft = "6-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 player had a school of missouri
### Context:
CREATE TABLE table_name_13 (player VARCHAR, school_club_team_country VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_13 WHERE school_club_team_country = "missouri" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What pick # has a team from Rimouski Océanic?
### Context:
CREATE TABLE table_name_26 (pick__number INTEGER, team_from VARCHAR) [/INST]
### Response:
SELECT AVG(pick__number) FROM table_name_26 WHERE team_from = "rimouski océanic" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player from Hotchkiss School with a position of d?
### Context:
CREATE TABLE table_name_45 (player VARCHAR, position VARCHAR, team_from VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_45 WHERE position = "d" AND team_from = "hotchkiss 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 type is the sorrento to sapri course with a distance of km (mi)?
### Context:
CREATE TABLE table_name_23 (type VARCHAR, distance VARCHAR, course VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_23 WHERE distance = "km (mi)" AND course = "sorrento to sapri" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What type is the misurina to bassano del grappa course?
### Context:
CREATE TABLE table_name_24 (type VARCHAR, course VARCHAR) [/INST]
### Response:
SELECT type FROM table_name_24 WHERE course = "misurina to bassano del grappa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 distance for the chieti to macerata course?
### Context:
CREATE TABLE table_name_66 (distance VARCHAR, course VARCHAR) [/INST]
### Response:
SELECT distance FROM table_name_66 WHERE course = "chieti to macerata" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the lowest points value that had a Chevrolet car, whose driver was Sterling Marlin, and whose car number was less than 14?
### Context:
CREATE TABLE table_name_51 (points INTEGER, car__number VARCHAR, make VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_51 WHERE make = "chevrolet" AND driver = "sterling marlin" AND car__number < 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 is the lowest point value that had not only a Chevrolet car, but also a car number smaller than 24, total laps of 312, and a winning purse of $122,325?
### Context:
CREATE TABLE table_name_17 (points INTEGER, winnings VARCHAR, laps VARCHAR, make VARCHAR, car__number VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_17 WHERE make = "chevrolet" AND car__number < 24 AND laps = 312 AND winnings = "$122,325" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location for the win against Johan Mparmpagiannis?
### Context:
CREATE TABLE table_name_78 (location VARCHAR, result VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_78 WHERE result = "win" AND opponent = "johan mparmpagiannis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 method against Björn Bregy?
### Context:
CREATE TABLE table_name_29 (method VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_29 WHERE opponent = "björn bregy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 method against Paula Mataele?
### Context:
CREATE TABLE table_name_26 (method VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_26 WHERE opponent = "paula mataele" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in Vilnius, Lithuania?
### Context:
CREATE TABLE table_name_60 (date VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_60 WHERE location = "vilnius, lithuania" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result against Errol Zimmerman on 2007-04-07?
### Context:
CREATE TABLE table_name_81 (result VARCHAR, opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_81 WHERE opponent = "errol zimmerman" AND date = "2007-04-07" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of the match against Martinis Knyzelis?
### Context:
CREATE TABLE table_name_75 (location VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_75 WHERE opponent = "martinis knyzelis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What day is st kilda the home side?
### Context:
CREATE TABLE table_name_87 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_87 WHERE home_team = "st kilda" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 melbourne's away score?
### Context:
CREATE TABLE table_name_29 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_29 WHERE away_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team's score when Geelong was the away team?
### Context:
CREATE TABLE table_name_1 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_1 WHERE away_team = "geelong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 1978 Veteran membership with a late 1941 macedonia and a late 1943 less than 10,000?
### Context:
CREATE TABLE table_name_66 (late_1943 VARCHAR, _late_1941 VARCHAR) [/INST]
### Response:
SELECT SUM(1978 AS _veteran_membership) FROM table_name_66 WHERE NOT _late_1941 = "macedonia" AND late_1943 < 10 OFFSET 000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which opponent has a Season of 2011/12?
### Context:
CREATE TABLE table_name_3 (opponent VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_3 WHERE season = "2011/12" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which opponent has a Season of 2010/11?
### Context:
CREATE TABLE table_name_7 (opponent VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_7 WHERE season = "2010/11" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 competition has a Season of 2010/11?
### Context:
CREATE TABLE table_name_56 (competition VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_56 WHERE season = "2010/11" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Opponent has a Result of –?
### Context:
CREATE TABLE table_name_20 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_20 WHERE result = "–" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which season has a Result of 6–9?
### Context:
CREATE TABLE table_name_71 (season VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_71 WHERE result = "6–9" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which round has a Venue of nicosia, and a Opponent of levski sofia zapad?
### Context:
CREATE TABLE table_name_53 (round VARCHAR, venue VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_53 WHERE venue = "nicosia" AND opponent = "levski sofia zapad" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What resulted in a score of 22-21?
### Context:
CREATE TABLE table_name_27 (result VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_27 WHERE score = "22-21" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What competition was held on the date 6/7/03
### Context:
CREATE TABLE table_name_97 (competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_97 WHERE date = "6/7/03" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score for the date of 15/6/03
### Context:
CREATE TABLE table_name_84 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_84 WHERE date = "15/6/03" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What venue is on the date of 8/6/03
### Context:
CREATE TABLE table_name_5 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_5 WHERE date = "8/6/03" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What outcome has a score of 12-22?
### Context:
CREATE TABLE table_name_69 (result VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_69 WHERE score = "12-22" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date is for Venue of jjb stadium, and a Result of w?
### Context:
CREATE TABLE table_name_14 (date VARCHAR, venue VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_14 WHERE venue = "jjb stadium" AND result = "w" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 high lap total for françois cevert?
### Context:
CREATE TABLE table_name_71 (laps INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_71 WHERE driver = "françois cevert" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constructed rolf stommelen's car?
### Context:
CREATE TABLE table_name_83 (constructor VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_83 WHERE driver = "rolf stommelen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 drive the car that retired due to engine failure and a grid of less than 9?
### Context:
CREATE TABLE table_name_91 (driver VARCHAR, time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_91 WHERE time_retired = "engine" AND grid < 9 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was the race that set the record for the Izod Indycar Series?
### Context:
CREATE TABLE table_name_47 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_47 WHERE record = "izod indycar series" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver set the Qualifying record with a time of 24.761 seconds?
### Context:
CREATE TABLE table_name_61 (driver VARCHAR, record VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_61 WHERE record = "qualifying" AND time = "24.761" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Utah Jazz guard, played at BYU?
### Context:
CREATE TABLE table_name_52 (player VARCHAR, position VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_52 WHERE position = "guard" AND school_club_team = "byu" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What college team did Derek Fisher play for?
### Context:
CREATE TABLE table_name_19 (school_club_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT school_club_team FROM table_name_19 WHERE player = "derek fisher" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Utah Jazz Player from UTEP was what nationality?
### Context:
CREATE TABLE table_name_51 (nationality VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_51 WHERE school_club_team = "utep" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue when the home team is Richmond?
### Context:
CREATE TABLE table_name_26 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_26 WHERE home_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the home team score when the venue is Princes Park?
### Context:
CREATE TABLE table_name_40 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_40 WHERE venue = "princes park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What actor plays glen cole?
### Context:
CREATE TABLE table_name_66 (actor VARCHAR, character VARCHAR) [/INST]
### Response:
SELECT actor FROM table_name_66 WHERE character = "glen cole" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for a final episode featuring maxine valera?
### Context:
CREATE TABLE table_name_99 (final_episode INTEGER, character VARCHAR) [/INST]
### Response:
SELECT AVG(final_episode) AS Count FROM table_name_99 WHERE character = "maxine valera" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps were driven in 2:54:23.8?
### Context:
CREATE TABLE table_name_45 (laps INTEGER, time_retired VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_45 WHERE time_retired = "2:54:23.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:
Which constructor has laps less than 100 and a time/retired +10 laps?
### Context:
CREATE TABLE table_name_43 (constructor VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_43 WHERE laps < 100 AND time_retired = "+10 laps" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest number of laps for grid 8?
### Context:
CREATE TABLE table_name_95 (laps INTEGER, grid VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_95 WHERE grid = 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:
Which grid is the highest and has a time/retired of +0.3?
### Context:
CREATE TABLE table_name_11 (grid INTEGER, time_retired VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_11 WHERE time_retired = "+0.3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which driver for Maserati has more laps than 23 and a grid greater than 7?
### Context:
CREATE TABLE table_name_61 (driver VARCHAR, grid VARCHAR, constructor VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_61 WHERE constructor = "maserati" AND laps > 23 AND grid > 7 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4?
### Context:
CREATE TABLE table_name_7 (points_classification VARCHAR, stage VARCHAR, winner VARCHAR, general_classification VARCHAR, trofeo_fast_team VARCHAR) [/INST]
### Response:
SELECT points_classification FROM table_name_7 WHERE general_classification = "bernard hinault" AND trofeo_fast_team = "bianchi" AND winner = "urs freuler" AND stage = "4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the winner that had a Points Classification of Giuseppe Saronni, a Trofeo Fast Team of Bianchi, and was Stage 3?
### Context:
CREATE TABLE table_name_71 (winner VARCHAR, stage VARCHAR, points_classification VARCHAR, trofeo_fast_team VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_71 WHERE points_classification = "giuseppe saronni" AND trofeo_fast_team = "bianchi" AND stage = "3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which stage had a Points Classification of Francesco Moser and a general classification of Bernard Hinault?
### Context:
CREATE TABLE table_name_57 (stage VARCHAR, points_classification VARCHAR, general_classification VARCHAR) [/INST]
### Response:
SELECT stage FROM table_name_57 WHERE points_classification = "francesco moser" AND general_classification = "bernard hinault" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the winner of Stage 12 with a Points Classification of Francesco Moser?
### Context:
CREATE TABLE table_name_85 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_85 WHERE points_classification = "francesco moser" AND stage = "12" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which stage was won by Bernard Hinault and had a Points classification of Francesco Moser?
### Context:
CREATE TABLE table_name_51 (stage VARCHAR, winner VARCHAR, points_classification VARCHAR) [/INST]
### Response:
SELECT stage FROM table_name_51 WHERE winner = "bernard hinault" AND points_classification = "francesco moser" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 loser on December 12, 1971?
### Context:
CREATE TABLE table_name_5 (loser VARCHAR, date VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT loser FROM table_name_5 WHERE date = "december 12" AND year = 1971 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 loser at Municipal Stadium after 1970?
### Context:
CREATE TABLE table_name_96 (loser VARCHAR, location VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT loser FROM table_name_96 WHERE location = "municipal stadium" AND year > 1970 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 where the winner was the Oakland Raiders in 1975?
### Context:
CREATE TABLE table_name_95 (date VARCHAR, year VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_95 WHERE year = 1975 AND winner = "oakland raiders" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 result of the game at Arrowhead Stadium where the loser was the Kansas City Chiefs?
### Context:
CREATE TABLE table_name_23 (result VARCHAR, location VARCHAR, loser VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_23 WHERE location = "arrowhead stadium" AND loser = "kansas city chiefs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nominated for the Best Movie category?
### Context:
CREATE TABLE table_name_54 (work VARCHAR, category VARCHAR) [/INST]
### Response:
SELECT work FROM table_name_54 WHERE category = "best movie" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 award did Scream receive a nomination and/or win for in 1997?
### Context:
CREATE TABLE table_name_27 (award VARCHAR, work VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT award FROM table_name_27 WHERE work = "scream" AND year = 1997 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What category was Scream nominated for at the International Horror Guild?
### Context:
CREATE TABLE table_name_52 (category VARCHAR, work VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_52 WHERE work = "scream" AND award = "international horror guild" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time/retired when the laps is less than 54 and the driver is mark donohue?
### Context:
CREATE TABLE table_name_35 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_35 WHERE laps < 54 AND driver = "mark donohue" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid when the driver is mario andretti and the laps is less than 54?
### Context:
CREATE TABLE table_name_39 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_39 WHERE driver = "mario andretti" AND laps < 54 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps were there when the grid was 24?
### Context:
CREATE TABLE table_name_25 (laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_25 WHERE grid = 24 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the time/retired when the laps is 6, the grid is less than 18 and the driver is clay regazzoni?
### Context:
CREATE TABLE table_name_79 (time_retired VARCHAR, driver VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_79 WHERE laps = 6 AND grid < 18 AND driver = "clay regazzoni" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which class is smaller than 5 and the GWR is 1322–1323?
### Context:
CREATE TABLE table_name_33 (class VARCHAR, quantity VARCHAR, gwr_nos VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_33 WHERE quantity < 5 AND gwr_nos = "1322–1323" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Whose term expired in 1996 and was from the province of Central Highlands?
### Context:
CREATE TABLE table_name_74 (name VARCHAR, province VARCHAR, term_expires VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_74 WHERE province = "central highlands" AND term_expires = 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:
Ken Wright of the National Party was from which province?
### Context:
CREATE TABLE table_name_79 (province VARCHAR, party VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT province FROM table_name_79 WHERE party = "national" AND name = "ken wright" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which venue hosted a race in 1967?
### Context:
CREATE TABLE table_name_20 (venue VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_20 WHERE year = 1967 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which tournament was held after 1966?
### Context:
CREATE TABLE table_name_73 (tournament VARCHAR, year INTEGER) [/INST]
### Response:
SELECT tournament FROM table_name_73 WHERE year > 1966 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which venue hosted a tournament in 1965?
### Context:
CREATE TABLE table_name_78 (venue VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_78 WHERE year = 1965 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result for the best new musical nominee?
### Context:
CREATE TABLE table_name_17 (result VARCHAR, nominee VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_17 WHERE nominee = "best new musical" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does simon baker appear as a nominee?
### Context:
CREATE TABLE table_name_84 (year VARCHAR, nominee VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_84 WHERE nominee = "simon baker" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Height for Years of Rockets of 2005-06?
### Context:
CREATE TABLE table_name_44 (height_in_ft VARCHAR, years_for_rockets VARCHAR) [/INST]
### Response:
SELECT height_in_ft FROM table_name_44 WHERE years_for_rockets = "2005-06" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Height for Years for Rockets of 2005-06?
### Context:
CREATE TABLE table_name_78 (height_in_ft VARCHAR, years_for_rockets VARCHAR) [/INST]
### Response:
SELECT height_in_ft FROM table_name_78 WHERE years_for_rockets = "2005-06" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Attendance on august 15?
### Context:
CREATE TABLE table_name_99 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_99 WHERE date = "august 15" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the constructor for the race with Nigel Mansell as the fastest lap?
### Context:
CREATE TABLE table_name_1 (constructor VARCHAR, fastest_lap VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_1 WHERE fastest_lap = "nigel mansell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fastest lap at estoril?
### Context:
CREATE TABLE table_name_82 (fastest_lap VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT fastest_lap FROM table_name_82 WHERE location = "estoril" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 race in Paul Ricard with Keke Rosberg as the fastest lap?
### Context:
CREATE TABLE table_name_9 (race VARCHAR, fastest_lap VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_9 WHERE fastest_lap = "keke rosberg" AND location = "paul ricard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the winner at spa-francorchamps?
### Context:
CREATE TABLE table_name_99 (race VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT race AS Winner FROM table_name_99 WHERE location = "spa-francorchamps" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the game with result 7-2 played?
### Context:
CREATE TABLE table_name_11 (venue VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_11 WHERE result = "7-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 score of the Friendly competition where the result was 7-2?
### Context:
CREATE TABLE table_name_54 (score VARCHAR, competition VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_54 WHERE competition = "friendly" AND result = "7-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 score of the game on 27 January 1996?
### Context:
CREATE TABLE table_name_15 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_15 WHERE date = "27 january 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 is the event with a result of 3-2?
### Context:
CREATE TABLE table_name_40 (competition VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_40 WHERE result = "3-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:
How big was the crowd size, at the Junction Oval venue?
### Context:
CREATE TABLE table_name_30 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_30 WHERE venue = "junction oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 visiting team of Melbourne's score?
### Context:
CREATE TABLE table_name_39 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_39 WHERE away_team = "melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 crowd size of Fitzroy's home team?
### Context:
CREATE TABLE table_name_78 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_78 WHERE home_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 railway had the earliest build date and a disposal of "Scrapped 1941?"
### Context:
CREATE TABLE table_name_48 (build_date INTEGER, disposal VARCHAR) [/INST]
### Response:
SELECT MIN(build_date) FROM table_name_48 WHERE disposal = "scrapped 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:
Which railway had a loco name of Pyramus and a build date of 1911?
### Context:
CREATE TABLE table_name_68 (railway VARCHAR, build_date VARCHAR, loco_name VARCHAR) [/INST]
### Response:
SELECT railway FROM table_name_68 WHERE build_date = 1911 AND loco_name = "pyramus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 build date of the railway(s) with 0-6-2 t wheels?
### Context:
CREATE TABLE table_name_13 (build_date VARCHAR, wheels VARCHAR) [/INST]
### Response:
SELECT build_date FROM table_name_13 WHERE wheels = "0-6-2 t" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 disbanded is in the ahl league?
### Context:
CREATE TABLE table_name_73 (disbanded VARCHAR, league VARCHAR) [/INST]
### Response:
SELECT disbanded FROM table_name_73 WHERE league = "ahl" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 championship was established after 2005?
### Context:
CREATE TABLE table_name_1 (championships VARCHAR, established INTEGER) [/INST]
### Response:
SELECT championships FROM table_name_1 WHERE established > 2005 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year had J.R. Reid as a player?
### Context:
CREATE TABLE table_name_62 (year VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_62 WHERE player = "j.r. reid" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 hometown is the played Dajuan Wagner from?
### Context:
CREATE TABLE table_name_11 (hometown VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT hometown FROM table_name_11 WHERE player = "dajuan wagner" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team was carlton how many people were in the crowd?
### Context:
CREATE TABLE table_name_29 (crowd VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_29 WHERE home_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team had a crowd of over 23,000 people?
### Context:
CREATE TABLE table_name_95 (away_team VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT away_team FROM table_name_95 WHERE crowd > 23 OFFSET 000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the home team for the western oval venue?
### Context:
CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_39 WHERE venue = "western oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team for the junction oval venue?
### Context:
CREATE TABLE table_name_28 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_28 WHERE venue = "junction oval" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.