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 away team at glenferrie oval?
### Context:
CREATE TABLE table_name_33 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_33 WHERE venue = "glenferrie 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 crowd total for glenferrie oval?
### Context:
CREATE TABLE table_name_77 (crowd VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_77 WHERE venue = "glenferrie 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:
Tell me the total number of Grid for Rubens Barrichello
### Context:
CREATE TABLE table_name_4 (grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_4 WHERE driver = "rubens barrichello" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lowest Grid for David Coulthard
### Context:
CREATE TABLE table_name_85 (grid INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_85 WHERE driver = "david coulthard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 carlton was the home team what was the lowest crowd turnout?
### Context:
CREATE TABLE table_name_72 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_72 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:
When the venue was punt road oval, what was the Home teams score?
### Context:
CREATE TABLE table_name_74 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_74 WHERE venue = "punt road 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 away team was geelong, what was the away team score?
### Context:
CREATE TABLE table_name_7 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_7 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:
When the away team was north melbourne, what was the away team score?
### Context:
CREATE TABLE table_name_63 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_63 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 is the result of the hypo-meeting before 2010?
### Context:
CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_49 WHERE year < 2010 AND tournament = "hypo-meeting" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 used before 2012 with a result of 12th?
### Context:
CREATE TABLE table_name_18 (venue VARCHAR, result VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_18 WHERE result = "12th" AND year < 2012 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the notes for the hypo-meeting tournament in 2012?
### Context:
CREATE TABLE table_name_95 (notes VARCHAR, tournament VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_95 WHERE tournament = "hypo-meeting" AND year = 2012 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the earliest year a game was played in Athens?
### Context:
CREATE TABLE table_name_95 (year INTEGER, location VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_95 WHERE location = "athens" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which date was there a win?
### Context:
CREATE TABLE table_name_56 (date VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_56 WHERE result = "win" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What film won best actress at the 2007 Inside Soap Awards?
### Context:
CREATE TABLE table_name_39 (film_or_series VARCHAR, year VARCHAR, award VARCHAR, category VARCHAR) [/INST]
### Response:
SELECT film_or_series FROM table_name_39 WHERE award = "inside soap awards" AND category = "best actress" AND year = 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 character won the best dramatic performance award?
### Context:
CREATE TABLE table_name_26 (character VARCHAR, category VARCHAR) [/INST]
### Response:
SELECT character FROM table_name_26 WHERE category = "best dramatic performance" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 category was character Jacqui Mcqueen nominated before 2011?
### Context:
CREATE TABLE table_name_67 (category VARCHAR, character VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_67 WHERE character = "jacqui mcqueen" AND year < 2011 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the away team score for away team of fitzroy
### Context:
CREATE TABLE table_name_41 (away_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_41 WHERE away_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:
Name the height for the center position from kansas
### Context:
CREATE TABLE table_name_93 (height_in_ft VARCHAR, position VARCHAR, school_club_team_country VARCHAR) [/INST]
### Response:
SELECT height_in_ft FROM table_name_93 WHERE position = "center" AND school_club_team_country = "kansas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position for number 11 and years on the rockets for 1989-95
### Context:
CREATE TABLE table_name_89 (position VARCHAR, no_s_ VARCHAR, years_for_rockets VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_89 WHERE no_s_ = "11" AND years_for_rockets = "1989-95" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position for numbers of 41
### Context:
CREATE TABLE table_name_37 (position VARCHAR, no_s_ VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_37 WHERE no_s_ = "41" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 calls VFL Park their home?
### Context:
CREATE TABLE table_name_96 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_96 WHERE venue = "vfl 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:
Tell me the pole position for graham hill the fastest lap and winning driver of him on 30 may
### Context:
CREATE TABLE table_name_43 (pole_position VARCHAR, date VARCHAR, fastest_lap VARCHAR, winning_driver VARCHAR) [/INST]
### Response:
SELECT pole_position FROM table_name_43 WHERE fastest_lap = "graham hill" AND winning_driver = "graham hill" AND date = "30 may" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fastest lapf or jim clark being the winning driver for prince george
### Context:
CREATE TABLE table_name_35 (fastest_lap VARCHAR, winning_driver VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT fastest_lap FROM table_name_35 WHERE winning_driver = "jim clark" AND circuit = "prince george" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 circuit for jim clark
### Context:
CREATE TABLE table_name_25 (circuit VARCHAR, fastest_lap VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_25 WHERE fastest_lap = "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:
I want the constructor for winning driver of jim clark, pole position of graham hill and dutch grand prix
### Context:
CREATE TABLE table_name_34 (constructor VARCHAR, race VARCHAR, winning_driver VARCHAR, pole_position VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_34 WHERE winning_driver = "jim clark" AND pole_position = "graham hill" AND race = "dutch 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:
Tell me the winning driver for jim clark as pole position and fastest lap
### Context:
CREATE TABLE table_name_1 (winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_1 WHERE pole_position = "jim clark" AND fastest_lap = "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:
At the match in windy hill, how much did the home team score?
### Context:
CREATE TABLE table_name_33 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_33 WHERE venue = "windy hill" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
During footscray's home game, how much did the away team score?
### Context:
CREATE TABLE table_name_74 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_74 WHERE home_team = "footscray" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date was the match at mcg played?
### Context:
CREATE TABLE table_name_98 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_98 WHERE venue = "mcg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
At the match which took place in arden street oval, how much did the away team score?
### Context:
CREATE TABLE table_name_79 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_79 WHERE venue = "arden street 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:
How many floors does detroit marriott at the renaissance center have?
### Context:
CREATE TABLE table_name_70 (floors INTEGER, name VARCHAR) [/INST]
### Response:
SELECT MAX(floors) FROM table_name_70 WHERE name = "detroit marriott at the renaissance center" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which place has 23 floors and a street address in Detroit of 144 west congress street?
### Context:
CREATE TABLE table_name_17 (name VARCHAR, floors VARCHAR, street_address_in_detroit VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_17 WHERE floors = 23 AND street_address_in_detroit = "144 west congress street" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 floors does the address 1828 jay street have?
### Context:
CREATE TABLE table_name_44 (floors VARCHAR, street_address_in_detroit VARCHAR) [/INST]
### Response:
SELECT floors FROM table_name_44 WHERE street_address_in_detroit = "1828 jay street" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of Floors at st. joseph church?
### Context:
CREATE TABLE table_name_52 (floors INTEGER, name VARCHAR) [/INST]
### Response:
SELECT SUM(floors) FROM table_name_52 WHERE name = "st. joseph church" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a crowd that is bigger than 22,449?
### Context:
CREATE TABLE table_name_38 (home_team VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT home_team FROM table_name_38 WHERE crowd > 22 OFFSET 449 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for max biaggi
### Context:
CREATE TABLE table_name_80 (laps INTEGER, rider VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_80 WHERE rider = "max biaggi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What bike does dean ellison ride?
### Context:
CREATE TABLE table_name_48 (bike VARCHAR, rider VARCHAR) [/INST]
### Response:
SELECT bike FROM table_name_48 WHERE rider = "dean ellison" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Brazilian Grand Prix?
### Context:
CREATE TABLE table_name_48 (constructor VARCHAR, grand_prix VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_48 WHERE grand_prix = "brazilian 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 fastest lap for Belgian Grand Prix?
### Context:
CREATE TABLE table_name_16 (fastest_lap VARCHAR, grand_prix VARCHAR) [/INST]
### Response:
SELECT fastest_lap FROM table_name_16 WHERE grand_prix = "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:
What is the lowest utility PV with hydro great than 289.25 and renweable total larger than 520.07?
### Context:
CREATE TABLE table_name_87 (utility_pv INTEGER, hydro VARCHAR, renewable_total VARCHAR) [/INST]
### Response:
SELECT MIN(utility_pv) FROM table_name_87 WHERE hydro > 289.25 AND renewable_total > 520.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 dates of captaincy for a win % of 35.71?
### Context:
CREATE TABLE table_name_14 (dates_of_captaincy VARCHAR, _percentage_win_ VARCHAR, a_ VARCHAR) [/INST]
### Response:
SELECT dates_of_captaincy FROM table_name_14 WHERE _percentage_win_[a_] = 35.71 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Locomotive superintendent has a NER class of d45?
### Context:
CREATE TABLE table_name_45 (locomotive_superintendent VARCHAR, lner_class VARCHAR) [/INST]
### Response:
SELECT locomotive_superintendent FROM table_name_45 WHERE lner_class = "d45" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 LNER class has been Passed to LNER larger than 3 and a introduced in 1895–98?
### Context:
CREATE TABLE table_name_37 (lner_class VARCHAR, passed_to_lner VARCHAR, date_introduced VARCHAR) [/INST]
### Response:
SELECT lner_class FROM table_name_37 WHERE passed_to_lner > 3 AND date_introduced = "1895–98" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winner for 29 march
### Context:
CREATE TABLE table_name_98 (winning_driver VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_98 WHERE date = "29 march" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 report for circuit of kyalami for south african republic trophy
### Context:
CREATE TABLE table_name_8 (report VARCHAR, circuit VARCHAR, race_name VARCHAR) [/INST]
### Response:
SELECT report FROM table_name_8 WHERE circuit = "kyalami" AND race_name = "south african republic trophy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the year of expected completion when the capacity is 22,500?
### Context:
CREATE TABLE table_name_15 (expected_completion VARCHAR, capacity VARCHAR) [/INST]
### Response:
SELECT expected_completion FROM table_name_15 WHERE capacity = "22,500" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What city is in Saskatchewan?
### Context:
CREATE TABLE table_name_70 (city VARCHAR, province VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_70 WHERE province = "saskatchewan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What province is Hamilton part of?
### Context:
CREATE TABLE table_name_66 (province VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT province FROM table_name_66 WHERE city = "hamilton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which city expects their project completion in 2017?
### Context:
CREATE TABLE table_name_93 (city VARCHAR, expected_completion VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_93 WHERE expected_completion = "2017" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fumbles for the avg larger than 5.4, with yards smaller than 164?
### Context:
CREATE TABLE table_name_27 (fumbles INTEGER, avg VARCHAR, yards VARCHAR) [/INST]
### Response:
SELECT AVG(fumbles) FROM table_name_27 WHERE avg > 5.4 AND yards < 164 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fumbles for more than 44 yards and att of 32?
### Context:
CREATE TABLE table_name_56 (fumbles INTEGER, yards VARCHAR, att VARCHAR) [/INST]
### Response:
SELECT MAX(fumbles) FROM table_name_56 WHERE yards > 44 AND att = 32 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What entrant has osella fa1c chassis after 1981?
### Context:
CREATE TABLE table_name_60 (entrant VARCHAR, year VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_60 WHERE year > 1981 AND chassis = "osella fa1c" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 appearances with fc igea virtus and 1 goal?
### Context:
CREATE TABLE table_name_50 (appearances INTEGER, club VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT AVG(appearances) FROM table_name_50 WHERE club = "fc igea virtus" AND goals = 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 title of the program that was originally aired on June 13, 1999?
### Context:
CREATE TABLE table_name_8 (title VARCHAR, original_airdate VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_8 WHERE original_airdate = "june 13, 1999" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wrote the program that originally aired on June 6, 1999?
### Context:
CREATE TABLE table_name_90 (written_by VARCHAR, original_airdate VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_name_90 WHERE original_airdate = "june 6, 1999" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 written by David J. Burke?
### Context:
CREATE TABLE table_name_6 (title VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_6 WHERE written_by = "david j. burke" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What driver shows grid as 18?
### Context:
CREATE TABLE table_name_95 (driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_95 WHERE grid = 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Time/Retired for less than 52 laps in grid 19?
### Context:
CREATE TABLE table_name_52 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_52 WHERE laps < 52 AND grid = 19 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What driver has more than 39 laps on gird 15?
### Context:
CREATE TABLE table_name_67 (driver VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_67 WHERE laps > 39 AND grid = 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 number of the grid for Johnny Herbert with more than 52 laps?
### Context:
CREATE TABLE table_name_28 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT SUM(grid) FROM table_name_28 WHERE driver = "johnny herbert" AND laps > 52 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 least amount of laps for Luca Badoer?
### Context:
CREATE TABLE table_name_54 (laps INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_54 WHERE driver = "luca badoer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 category does drama league award belong to?
### Context:
CREATE TABLE table_name_91 (category VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT category FROM table_name_91 WHERE award = "drama league award" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the latest year for the distinguished performance?
### Context:
CREATE TABLE table_name_70 (year INTEGER, category VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_70 WHERE category = "distinguished performance" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of award is the theatre world award?
### Context:
CREATE TABLE table_name_34 (award VARCHAR, category VARCHAR) [/INST]
### Response:
SELECT award FROM table_name_34 WHERE category = "theatre world award" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which country is the Nova TV network from?
### Context:
CREATE TABLE table_name_53 (country VARCHAR, tv_network_s_ VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_53 WHERE tv_network_s_ = "nova tv" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 series premiered on Acasa TV?
### Context:
CREATE TABLE table_name_25 (series_premiere VARCHAR, tv_network_s_ VARCHAR) [/INST]
### Response:
SELECT series_premiere FROM table_name_25 WHERE tv_network_s_ = "acasa tv" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 alternate title/translation of the series that premiered on December 12, 2006?
### Context:
CREATE TABLE table_name_40 (alternate_title_translation VARCHAR, series_premiere VARCHAR) [/INST]
### Response:
SELECT alternate_title_translation FROM table_name_40 WHERE series_premiere = "december 12, 2006" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Bulgaria's TV network?
### Context:
CREATE TABLE table_name_92 (tv_network_s_ VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT tv_network_s_ FROM table_name_92 WHERE country = "bulgaria" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which country had a series that premiered on September 4, 2006?
### Context:
CREATE TABLE table_name_77 (country VARCHAR, series_premiere VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_77 WHERE series_premiere = "september 4, 2006" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What TV network is the series aistrų žemė aired on?
### Context:
CREATE TABLE table_name_21 (tv_network_s_ VARCHAR, alternate_title_translation VARCHAR) [/INST]
### Response:
SELECT tv_network_s_ FROM table_name_21 WHERE alternate_title_translation = "aistrų žemė" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 will hold the 2013 Concacaf Gold Cup competition?
### Context:
CREATE TABLE table_name_59 (venue VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_59 WHERE competition = "2013 concacaf gold cup" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result of the 2011 Concacaf Gold Cup competition?
### Context:
CREATE TABLE table_name_49 (result VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_49 WHERE competition = "2011 concacaf gold cup" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the event held on July 23, 2009?
### Context:
CREATE TABLE table_name_78 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_78 WHERE date = "july 23, 2009" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest Class Position that has drivers Les Palmer, Terry Morris, and a Position larger than 23?
### Context:
CREATE TABLE table_name_59 (class INTEGER, drivers VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT MIN(class) AS position FROM table_name_59 WHERE drivers = "les palmer, terry morris" AND position > 23 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which drivers have the position of 27?
### Context:
CREATE TABLE table_name_33 (drivers VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT drivers FROM table_name_33 WHERE position = 27 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In the game against home team Fitzroy, what did the away team score?
### Context:
CREATE TABLE table_name_57 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_57 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:
At Junction Oval, what is the sum of the crowd?
### Context:
CREATE TABLE table_name_65 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT SUM(crowd) FROM table_name_65 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:
Which region in Saint-Simon-Les-Mines has a population smaller than 458?
### Context:
CREATE TABLE table_name_9 (region INTEGER, name VARCHAR, population VARCHAR) [/INST]
### Response:
SELECT MAX(region) FROM table_name_9 WHERE name = "saint-simon-les-mines" AND population < 458 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total population of Saint-Agapit (code 33045)?
### Context:
CREATE TABLE table_name_99 (region INTEGER, name VARCHAR, code VARCHAR) [/INST]
### Response:
SELECT SUM(region) FROM table_name_99 WHERE name = "saint-agapit" AND code < 33045 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 area larger than Code 19025 but a smaller region than 12?
### Context:
CREATE TABLE table_name_91 (area__km_2__ INTEGER, code VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT AVG(area__km_2__) FROM table_name_91 WHERE code > 19025 AND region < 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 highest region of Saint-Flavien with an area larger than 67.56?
### Context:
CREATE TABLE table_name_43 (region INTEGER, name VARCHAR, area__km_2__ VARCHAR) [/INST]
### Response:
SELECT MAX(region) FROM table_name_43 WHERE name = "saint-flavien" AND area__km_2__ > 67.56 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Drobo (2nd) has a Drobo FS of up to 32?
### Context:
CREATE TABLE table_name_40 (drobo__2nd_ VARCHAR, drobo_fs VARCHAR) [/INST]
### Response:
SELECT drobo__2nd_ FROM table_name_40 WHERE drobo_fs = "up to 32" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Drobo (2nd) has a Drobo S (2nd) of 5?
### Context:
CREATE TABLE table_name_1 (drobo__2nd_ VARCHAR) [/INST]
### Response:
SELECT drobo__2nd_ FROM table_name_1 WHERE DROBO_S(2 AS nd) = 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Drobo (2nd) has a Drobo 5d of 2012-11-02?
### Context:
CREATE TABLE table_name_17 (drobo__2nd_ VARCHAR, drobo_5d VARCHAR) [/INST]
### Response:
SELECT drobo__2nd_ FROM table_name_17 WHERE drobo_5d = "2012-11-02" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Marty Riessen played as a partner during a match with what kind of surface?
### Context:
CREATE TABLE table_name_84 (surface VARCHAR, partner VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_84 WHERE partner = "marty riessen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did Marty Riessen team up with a partner during a match on a carpet surface?
### Context:
CREATE TABLE table_name_69 (date VARCHAR, surface VARCHAR, partner VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_69 WHERE surface = "carpet" AND partner = "marty riessen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 population when the regional county municipality is le domaine-du-roy, the type is m and the region is less than 2?
### Context:
CREATE TABLE table_name_19 (population INTEGER, region VARCHAR, regional_county_municipality VARCHAR, type VARCHAR) [/INST]
### Response:
SELECT AVG(population) FROM table_name_19 WHERE regional_county_municipality = "le domaine-du-roy" AND type = "m" AND region < 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 regional county municipality when the type is m and the code is less than 91015?
### Context:
CREATE TABLE table_name_90 (regional_county_municipality VARCHAR, type VARCHAR, code VARCHAR) [/INST]
### Response:
SELECT regional_county_municipality FROM table_name_90 WHERE type = "m" AND code < 91015 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fastest lap was carlos pace and jackie stewart was the pole position, who was the winning driver?
### Context:
CREATE TABLE table_name_12 (winning_driver VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_12 WHERE pole_position = "jackie stewart" AND fastest_lap = "carlos pace" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 north melbourne's home team score?
### Context:
CREATE TABLE table_name_64 (home_team VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_64 WHERE home_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:
Which venue has an Away team of south melbourne?
### Context:
CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_14 WHERE away_team = "south 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:
How many people in the crowd with Away team of geelong?
### Context:
CREATE TABLE table_name_67 (crowd VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_67 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:
Which venue has a Away team of hawthorn?
### Context:
CREATE TABLE table_name_76 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_76 WHERE away_team = "hawthorn" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the runner-up in the Michelob Light Open at Kingsmill?
### Context:
CREATE TABLE table_name_93 (runner_s__up VARCHAR, tournament VARCHAR) [/INST]
### Response:
SELECT runner_s__up FROM table_name_93 WHERE tournament = "michelob light open at kingsmill" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won with a score of 66-68-70-70=274?
### Context:
CREATE TABLE table_name_85 (tournament VARCHAR, winning_score VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_85 WHERE winning_score = 66 - 68 - 70 - 70 = 274 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a crowd larger than 25,000?
### Context:
CREATE TABLE table_name_83 (away_team VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT away_team FROM table_name_83 WHERE crowd > 25 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 competition has a Year of 2008, a Surface of carpet, and a Date of 31 jan?
### Context:
CREATE TABLE table_name_65 (competition VARCHAR, date VARCHAR, year VARCHAR, surface VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_65 WHERE year = 2008 AND surface = "carpet" AND date = "31 jan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 surface has a Date of 24–25 apr?
### Context:
CREATE TABLE table_name_58 (surface VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_58 WHERE date = "24–25 apr" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many years have a Surface of clay, and a Score of 4 : 0?
### Context:
CREATE TABLE table_name_45 (year VARCHAR, surface VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_45 WHERE surface = "clay" AND score = "4 : 0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the largest year located in zagreb, croatia?
### Context:
CREATE TABLE table_name_6 (year INTEGER, location VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_6 WHERE location = "zagreb, croatia" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.