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:
When Richmond was the Home team, who was the away team?
### Context:
CREATE TABLE table_name_97 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_97 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:
Which home team plays in the Corio Oval venue?
### Context:
CREATE TABLE table_name_29 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_29 WHERE venue = "corio 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:
When the game was played at the EMCG venue, who was the away team?
### Context:
CREATE TABLE table_name_60 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_60 WHERE venue = "emcg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constructor when the driver is jenson button?
### Context:
CREATE TABLE table_name_55 (constructor VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_55 WHERE driver = "jenson button" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time/retired is +27.112?
### Context:
CREATE TABLE table_name_79 (grid VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT grid FROM table_name_79 WHERE time_retired = "+27.112" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the fewest Laps for Huub Rothengatter and grid less than 24
### Context:
CREATE TABLE table_name_88 (laps INTEGER, driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_88 WHERE driver = "huub rothengatter" AND 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:
Tell me the time/retired with Laps of 47 and driver of rené arnoux
### Context:
CREATE TABLE table_name_47 (time_retired VARCHAR, laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_47 WHERE laps = 47 AND driver = "rené arnoux" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Oricon has a Romaji title of nakitakunalu?
### Context:
CREATE TABLE table_name_17 (oricon INTEGER, romaji_title VARCHAR) [/INST]
### Response:
SELECT MAX(oricon) FROM table_name_17 WHERE romaji_title = "nakitakunalu" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Reference has a Release date of 1996/10/10?
### Context:
CREATE TABLE table_name_92 (reference VARCHAR, release_date VARCHAR) [/INST]
### Response:
SELECT reference FROM table_name_92 WHERE release_date = "1996/10/10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the occupation of the candidate that resides in Windsor Junction?
### Context:
CREATE TABLE table_name_38 (occupation VARCHAR, residence VARCHAR) [/INST]
### Response:
SELECT occupation FROM table_name_38 WHERE residence = "windsor junction" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 votes did 3rd ranking candidate Mary Louise Lorefice receive?
### Context:
CREATE TABLE table_name_48 (votes VARCHAR, rank VARCHAR, candidate VARCHAR) [/INST]
### Response:
SELECT COUNT(votes) FROM table_name_48 WHERE rank = "3rd" AND candidate = "mary louise lorefice" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What occupation does Mary Louise Lorefice have?
### Context:
CREATE TABLE table_name_35 (occupation VARCHAR, candidate VARCHAR) [/INST]
### Response:
SELECT occupation FROM table_name_35 WHERE candidate = "mary louise lorefice" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game at Essendon?
### Context:
CREATE TABLE table_name_83 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_83 WHERE away_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constructor with the grid of 8?
### Context:
CREATE TABLE table_name_25 (constructor VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_25 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:
what is the time/retired when the grid is less than 3 and 45 laps?
### Context:
CREATE TABLE table_name_95 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_95 WHERE grid < 3 AND laps = 45 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the most laps for driver jackie stewart?
### Context:
CREATE TABLE table_name_43 (laps INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_43 WHERE driver = "jackie stewart" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for driver richard attwood?
### Context:
CREATE TABLE table_name_56 (time_retired VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_56 WHERE driver = "richard attwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 D 41 and R 51 of r 11
### Context:
CREATE TABLE table_name_33 (d_41 VARCHAR, r_51 VARCHAR) [/INST]
### Response:
SELECT d_41 FROM table_name_33 WHERE r_51 = "r 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:
I want the D 46 which has a D 44 of r 17
### Context:
CREATE TABLE table_name_35 (d_46 VARCHAR, d_44 VARCHAR) [/INST]
### Response:
SELECT d_46 FROM table_name_35 WHERE d_44 = "r 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:
Tell me the D 41 for D 43 of d 18
### Context:
CREATE TABLE table_name_63 (d_41 VARCHAR, d_43 VARCHAR) [/INST]
### Response:
SELECT d_41 FROM table_name_63 WHERE d_43 = "d 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:
Tell me the D 47 for D 46 of r 35
### Context:
CREATE TABLE table_name_44 (d_47 VARCHAR, d_46 VARCHAR) [/INST]
### Response:
SELECT d_47 FROM table_name_44 WHERE d_46 = "r 35" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the D 42 with R 51 of r 11
### Context:
CREATE TABLE table_name_41 (d_42 VARCHAR, r_51 VARCHAR) [/INST]
### Response:
SELECT d_42 FROM table_name_41 WHERE r_51 = "r 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:
I want the R 53 of D 41 of r 21
### Context:
CREATE TABLE table_name_95 (r_53 VARCHAR, d_41 VARCHAR) [/INST]
### Response:
SELECT r_53 FROM table_name_95 WHERE d_41 = "r 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 is the low silver total for switzerland with over 0 golds?
### Context:
CREATE TABLE table_name_30 (silver INTEGER, gold VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT MIN(silver) FROM table_name_30 WHERE gold > 0 AND nation = "switzerland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 silver total for nations with 10 bronze medals?
### Context:
CREATE TABLE table_name_93 (silver INTEGER, bronze VARCHAR) [/INST]
### Response:
SELECT SUM(silver) FROM table_name_93 WHERE bronze = 10 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the gold total for lithuania with under 2 silvers?
### Context:
CREATE TABLE table_name_5 (gold INTEGER, nation VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT SUM(gold) FROM table_name_5 WHERE nation = "lithuania" AND silver < 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 for the home team that played at Moorabbin Oval?
### Context:
CREATE TABLE table_name_68 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_68 WHERE venue = "moorabbin 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:
Name the size of the screen that came out in 2006 and is iliad
### Context:
CREATE TABLE table_name_73 (screen_size__inch_ VARCHAR, intro_year VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT screen_size__inch_ FROM table_name_73 WHERE intro_year = "2006" AND model = "iliad" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Report includes the Belgian Grand Prix Race?
### Context:
CREATE TABLE table_name_25 (report VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT report FROM table_name_25 WHERE race = "belgian grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Report includes Monaco?
### Context:
CREATE TABLE table_name_95 (report VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT report FROM table_name_95 WHERE location = "monaco" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On what date did Gunnar Nilsson make the fastest lap?
### Context:
CREATE TABLE table_name_38 (date VARCHAR, fastest_lap VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_38 WHERE fastest_lap = "gunnar nilsson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fastest lap for the German Grand Prix?
### Context:
CREATE TABLE table_name_71 (fastest_lap VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT fastest_lap FROM table_name_71 WHERE race = "german grand prix" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 format for the album under the label, luaka bop, that had a catalog number of 3645 and dated after 1981?
### Context:
CREATE TABLE table_name_15 (format VARCHAR, label VARCHAR, catalog VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_15 WHERE catalog = "3645" AND date > 1981 AND label = "luaka bop" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earliest date for the album that had a catalog number of 3645, was formatted as a cd and was under the luaka bop label?
### Context:
CREATE TABLE table_name_2 (date INTEGER, label VARCHAR, catalog VARCHAR, format VARCHAR) [/INST]
### Response:
SELECT MIN(date) FROM table_name_2 WHERE catalog = "3645" AND format = "cd" AND label = "luaka bop" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Under what label was the album with the catalog of 3645 and came out later than 1987?
### Context:
CREATE TABLE table_name_42 (label VARCHAR, catalog VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_42 WHERE catalog = "3645" AND date > 1987 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the points where Toronto was the home team and the game number was larger than 63?
### Context:
CREATE TABLE table_name_59 (points INTEGER, home VARCHAR, game__number VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_59 WHERE home = "toronto" AND game__number > 63 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did mike spence complete grids above 12?
### Context:
CREATE TABLE table_name_85 (laps VARCHAR, driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_85 WHERE driver = "mike spence" AND grid > 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:
How many average laps did brm complete in grids larger than 12?
### Context:
CREATE TABLE table_name_70 (laps INTEGER, constructor VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_70 WHERE constructor = "brm" AND grid = 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:
Who drove in grids more than 3 and exited in an accident?
### Context:
CREATE TABLE table_name_17 (driver VARCHAR, grid VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_17 WHERE grid > 3 AND time_retired = "accident" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what grid did jim clark drive in?
### Context:
CREATE TABLE table_name_21 (grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT grid FROM table_name_21 WHERE driver = "jim clark" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date 21 jul 2007?
### Context:
CREATE TABLE table_name_3 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_3 WHERE date = "21 jul 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the venue of the Melbourne team?
### Context:
CREATE TABLE table_name_91 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_91 WHERE home_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 race that featured stirling moss winning with a maserati at aintree?
### Context:
CREATE TABLE table_name_45 (race_name VARCHAR, winning_driver VARCHAR, constructor VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT race_name FROM table_name_45 WHERE constructor = "maserati" AND circuit = "aintree" AND winning_driver = "stirling moss" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What does the Circuit of caen report?
### Context:
CREATE TABLE table_name_98 (report VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT report FROM table_name_98 WHERE circuit = "caen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning drive of iv grand prix de caen?
### Context:
CREATE TABLE table_name_51 (winning_driver VARCHAR, race_name VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_51 WHERE race_name = "iv grand prix de caen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What types of ships were made at the Froemming Brothers ship yard?
### Context:
CREATE TABLE table_name_32 (ship_types_delivered VARCHAR, yard_name VARCHAR) [/INST]
### Response:
SELECT ship_types_delivered FROM table_name_32 WHERE yard_name = "froemming brothers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of apperances of the person who had 36 goals?
### Context:
CREATE TABLE table_name_5 (appearances VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT appearances FROM table_name_5 WHERE goals = 36 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 name with points of 151.66
### Context:
CREATE TABLE table_name_7 (name VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_7 WHERE points = 151.66 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total number of rank for places less than 94 and points less than 169.8 for japan
### Context:
CREATE TABLE table_name_98 (rank VARCHAR, nation VARCHAR, places VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(rank) FROM table_name_98 WHERE places < 94 AND points < 169.8 AND nation = "japan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the total number of SP+FS with rank more than 8 for the netherlands and points more than 127.26
### Context:
CREATE TABLE table_name_75 (fs VARCHAR, sp VARCHAR, points VARCHAR, rank VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT COUNT(sp) + fs FROM table_name_75 WHERE rank > 8 AND nation = "netherlands" AND points > 127.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:
Name the total number of SP+FS for places of 60 and points more than 151.66
### Context:
CREATE TABLE table_name_28 (fs VARCHAR, sp VARCHAR, places VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(sp) + fs FROM table_name_28 WHERE places = 60 AND points > 151.66 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 average SP+FS with places less tha 94 for renata baierova
### Context:
CREATE TABLE table_name_2 (fs VARCHAR, sp INTEGER, places VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT AVG(sp) + fs FROM table_name_2 WHERE places < 94 AND name = "renata baierova" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What color is model # pd-kb400w?
### Context:
CREATE TABLE table_name_14 (color VARCHAR, model__number VARCHAR) [/INST]
### Response:
SELECT color FROM table_name_14 WHERE model__number = "pd-kb400w" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest average for a swimsuit over 6.89, evening gown over 7.76, and an interview over 8.57 in illinois?
### Context:
CREATE TABLE table_name_29 (average INTEGER, interview VARCHAR, state VARCHAR, swimsuit VARCHAR, evening_gown VARCHAR) [/INST]
### Response:
SELECT MIN(average) FROM table_name_29 WHERE swimsuit > 6.89 AND evening_gown > 7.76 AND state = "illinois" AND interview > 8.57 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 highest swimsuit for an average less than 8.073, evening gown less than 8.31, and an interview over 8.23 in georgia?
### Context:
CREATE TABLE table_name_13 (swimsuit INTEGER, state VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR) [/INST]
### Response:
SELECT MAX(swimsuit) FROM table_name_13 WHERE average < 8.073 AND evening_gown < 8.31 AND interview > 8.23 AND state = "georgia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 utah's lowest swimsuit with an interview over 8.53?
### Context:
CREATE TABLE table_name_43 (swimsuit INTEGER, state VARCHAR, interview VARCHAR) [/INST]
### Response:
SELECT MIN(swimsuit) FROM table_name_43 WHERE state = "utah" AND interview > 8.53 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What week was October 9, 1938?
### Context:
CREATE TABLE table_name_66 (week VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(week) FROM table_name_66 WHERE date = "october 9, 1938" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What home team played Collingwood as the away team?
### Context:
CREATE TABLE table_name_42 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_42 WHERE away_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team at Junction Oval?
### Context:
CREATE TABLE table_name_77 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_77 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:
Who built giancarlo fisichella's car?
### Context:
CREATE TABLE table_name_96 (constructor VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_96 WHERE driver = "giancarlo fisichella" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 mika salo with a grid greater than 17?
### Context:
CREATE TABLE table_name_66 (laps INTEGER, driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MAX(laps) FROM table_name_66 WHERE driver = "mika salo" AND grid > 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:
Where was the location with Muirfield in Scotland?
### Context:
CREATE TABLE table_name_4 (location VARCHAR, country VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_4 WHERE country = "scotland" AND name = "muirfield" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country for pieroni
### Context:
CREATE TABLE table_name_46 (country VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_46 WHERE name = "pieroni" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country for 6-month loan and moving from of lens
### Context:
CREATE TABLE table_name_90 (country VARCHAR, type VARCHAR, moving_from VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_90 WHERE type = "6-month loan" AND moving_from = "lens" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 transfer fee with a transfer window of summer for schollen
### Context:
CREATE TABLE table_name_88 (transfer_fee VARCHAR, transfer_window VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT transfer_fee FROM table_name_88 WHERE transfer_window = "summer" AND name = "schollen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 name that has moving of 1. fc nürnberg.
### Context:
CREATE TABLE table_name_9 (name VARCHAR, moving_from VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_9 WHERE moving_from = "1. fc nürnberg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country with polák
### Context:
CREATE TABLE table_name_4 (country VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_4 WHERE name = "polák" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score at North Melbourne's away game?
### Context:
CREATE TABLE table_name_11 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_11 WHERE away_team = "north 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 Collingwood's score at the home match against Richmond?
### Context:
CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_47 WHERE away_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 lowest number of laps with a grid larger than 24?
### Context:
CREATE TABLE table_name_14 (laps INTEGER, grid INTEGER) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_14 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:
For Jo Siffert, what was the highest grid with the number of laps above 12?
### Context:
CREATE TABLE table_name_5 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_5 WHERE driver = "jo siffert" AND laps > 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 is the average number of laps when Gerhard Berger is the driver?
### Context:
CREATE TABLE table_name_23 (laps INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_23 WHERE driver = "gerhard berger" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructor who has more than 50 laps and a grid of 7?
### Context:
CREATE TABLE table_name_9 (constructor VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_9 WHERE laps > 50 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:
What is the title of the episode with a production code of ad1b04?
### Context:
CREATE TABLE table_name_50 (title VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_50 WHERE production_code = "ad1b04" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time for event of tfc 21
### Context:
CREATE TABLE table_name_22 (time VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_22 WHERE event = "tfc 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 sport has a Gold larger than 0, and a Silver of 2?
### Context:
CREATE TABLE table_name_7 (sport VARCHAR, gold VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT sport FROM table_name_7 WHERE gold > 0 AND silver = 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 lowest Bronze that has a Total larger than 18 and a Silver smaller than 143?
### Context:
CREATE TABLE table_name_29 (bronze INTEGER, silver VARCHAR, sport VARCHAR) [/INST]
### Response:
SELECT MIN(bronze) FROM table_name_29 WHERE "total" > 18 AND sport = "total" AND silver < 143 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many total Silver has a Bronze larger than 19 and a Total smaller than 125?
### Context:
CREATE TABLE table_name_13 (silver INTEGER, bronze VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT SUM(silver) FROM table_name_13 WHERE bronze > 19 AND total < 125 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total Bronze larger than 10, Silver larger than 28, and a Gold of 58?
### Context:
CREATE TABLE table_name_7 (total INTEGER, gold VARCHAR, bronze VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT MAX(total) FROM table_name_7 WHERE bronze > 10 AND silver > 28 AND gold = 58 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest Total that has a Gold larger than 0, Silver smaller than 4, Sport of football, and a Bronze larger than 1?
### Context:
CREATE TABLE table_name_97 (total INTEGER, bronze VARCHAR, sport VARCHAR, gold VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_97 WHERE gold > 0 AND silver < 4 AND sport = "football" AND bronze > 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 time/retired when the grid is 9?
### Context:
CREATE TABLE table_name_77 (time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_77 WHERE 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:
what is the number of laps when the driver is ron flockhart?
### Context:
CREATE TABLE table_name_5 (laps VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_5 WHERE driver = "ron flockhart" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Engine has a Power of 114hp (85kw)?
### Context:
CREATE TABLE table_name_72 (engine VARCHAR, power VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_72 WHERE power = "114hp (85kw)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Torque has an AMC Power Tech I6 Engine?
### Context:
CREATE TABLE table_name_68 (torque VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT torque FROM table_name_68 WHERE engine = "amc power tech i6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Displacement has 185hp (138kw) Power o
### Context:
CREATE TABLE table_name_57 (displacement VARCHAR, power VARCHAR) [/INST]
### Response:
SELECT displacement FROM table_name_57 WHERE power = "185hp (138kw)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 features collingwood as the home side?
### Context:
CREATE TABLE table_name_47 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_47 WHERE home_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance numbers for veterans stadium?
### Context:
CREATE TABLE table_name_17 (attendance VARCHAR, game_site VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_17 WHERE game_site = "veterans stadium" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 school that has a player named Michael Dunigan?
### Context:
CREATE TABLE table_name_79 (school VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_79 WHERE player = "michael dunigan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 religion for Former Experience of commissioner of health and assumed office before 2005
### Context:
CREATE TABLE table_name_73 (religion VARCHAR, assumed_office VARCHAR, former_experience VARCHAR) [/INST]
### Response:
SELECT religion FROM table_name_73 WHERE assumed_office < 2005 AND 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:
Tell me the loewst assume office for madeleine bordallo
### Context:
CREATE TABLE table_name_60 (assumed_office INTEGER, name VARCHAR) [/INST]
### Response:
SELECT MIN(assumed_office) FROM table_name_60 WHERE name = "madeleine bordallo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which team had a game of 82?
### Context:
CREATE TABLE table_name_60 (team VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_60 WHERE game = 82 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 people attended the game at Junction Oval?
### Context:
CREATE TABLE table_name_77 (crowd VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_77 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 was the score for Boston's Home game that had Gerber as the decision?
### Context:
CREATE TABLE table_name_34 (score VARCHAR, decision VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_34 WHERE decision = "gerber" AND home = "boston" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the game on March 25?
### Context:
CREATE TABLE table_name_27 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_27 WHERE date = "march 25" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Decision at Anaheim's home game?
### Context:
CREATE TABLE table_name_51 (decision VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT decision FROM table_name_51 WHERE home = "anaheim" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver of the chassis that is tg183b tg184?
### Context:
CREATE TABLE table_name_79 (driver VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_79 WHERE chassis = "tg183b tg184" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 engine belonging to Pierluigi Martini with a Tyre of P?
### Context:
CREATE TABLE table_name_20 (engine VARCHAR, tyres VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_20 WHERE tyres = "p" AND driver = "pierluigi martini" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 featured in Engine through rounds 10-13?
### Context:
CREATE TABLE table_name_85 (engine VARCHAR, rounds VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_85 WHERE rounds = "10-13" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Nigel Mansell was the driver in what Entrant?
### Context:
CREATE TABLE table_name_22 (entrant VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_22 WHERE driver = "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 Date does the Name (location) Belyanitsky, Ivanovo, and Balino have?
### Context:
CREATE TABLE table_name_28 (date VARCHAR, name__location_ VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_28 WHERE name__location_ = "belyanitsky, ivanovo, and balino" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.