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:
Who built the car that retired due to suspension before 65 laps?
### Context:
CREATE TABLE table_name_7 (constructor VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_7 WHERE laps < 65 AND time_retired = "suspension" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Valley Vista has a Dysart of 1668?
### Context:
CREATE TABLE table_name_39 (valley_vista VARCHAR, dysart VARCHAR) [/INST]
### Response:
SELECT valley_vista FROM table_name_39 WHERE dysart = "1668" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Valley Vista has a Willow Canyon of 2169?
### Context:
CREATE TABLE table_name_47 (valley_vista VARCHAR, willow_canyon VARCHAR) [/INST]
### Response:
SELECT valley_vista FROM table_name_47 WHERE willow_canyon = "2169" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were in the crowd at Lake Oval?
### Context:
CREATE TABLE table_name_2 (crowd VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_2 WHERE venue = "lake 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 team was the home team on 27 june 1981, at vfl park?
### Context:
CREATE TABLE table_name_88 (home_team VARCHAR, date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_88 WHERE date = "27 june 1981" AND 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:
What is the tyre with a 56 chassis?
### Context:
CREATE TABLE table_name_99 (tyre VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT tyre FROM table_name_99 WHERE chassis = "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 country has a GDP (nominal) of $29.9 billion?
### Context:
CREATE TABLE table_name_20 (country VARCHAR, gdp__nominal_ VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_20 WHERE gdp__nominal_ = "$29.9 billion" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which country has a GDP (nominal) of $29.9 billion?
### Context:
CREATE TABLE table_name_46 (country VARCHAR, gdp__nominal_ VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_46 WHERE gdp__nominal_ = "$29.9 billion" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 GDP (nominal) has a Population of 5,550,239?
### Context:
CREATE TABLE table_name_98 (gdp__nominal_ VARCHAR, population VARCHAR) [/INST]
### Response:
SELECT gdp__nominal_ FROM table_name_98 WHERE population = "5,550,239" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 population has a GDP (nominal) of $6.4 billion?
### Context:
CREATE TABLE table_name_63 (population VARCHAR, gdp__nominal_ VARCHAR) [/INST]
### Response:
SELECT population FROM table_name_63 WHERE gdp__nominal_ = "$6.4 billion" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which country has a GDP (nominal) of $29.9 billion?
### Context:
CREATE TABLE table_name_30 (country VARCHAR, gdp__nominal_ VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_30 WHERE gdp__nominal_ = "$29.9 billion" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 GDP (nominal) with Population of 5,125,693?
### Context:
CREATE TABLE table_name_16 (gdp_per_capita__nominal_ VARCHAR, population VARCHAR) [/INST]
### Response:
SELECT gdp_per_capita__nominal_ FROM table_name_16 WHERE population = "5,125,693" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year for 9 points?
### Context:
CREATE TABLE table_name_79 (year INTEGER, points VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_79 WHERE points = 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 low score for the jaguar r3 chasis?
### Context:
CREATE TABLE table_name_90 (points INTEGER, chassis VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_90 WHERE chassis = "jaguar r3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the displacement is 220cid (3,604cc)?
### Context:
CREATE TABLE table_name_78 (notes VARCHAR, displacement VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_78 WHERE displacement = "220cid (3,604cc)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 then engine when the notes state srt8?
### Context:
CREATE TABLE table_name_91 (engine VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_91 WHERE notes = "srt8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 power when the displacement is 182cid (2,988cc) and the notes are eu spec?
### Context:
CREATE TABLE table_name_43 (power VARCHAR, displacement VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT power FROM table_name_43 WHERE displacement = "182cid (2,988cc)" AND notes = "eu spec" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 engine for year 2012-?
### Context:
CREATE TABLE table_name_52 (engine VARCHAR, years VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_52 WHERE years = "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 record of the match with Columbus as the home team on March 7?
### Context:
CREATE TABLE table_name_96 (record VARCHAR, home VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_96 WHERE home = "columbus" AND date = "march 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 record of the game on March 18?
### Context:
CREATE TABLE table_name_20 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_20 WHERE date = "march 18" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which height has a College of wyoming, and a Name of guy frazier?
### Context:
CREATE TABLE table_name_72 (height VARCHAR, college VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT height FROM table_name_72 WHERE college = "wyoming" AND name = "guy frazier" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which season's winner is Panathinaikos and is located in Athens?
### Context:
CREATE TABLE table_name_33 (season VARCHAR, location VARCHAR, winners VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_33 WHERE location = "athens" AND winners = "panathinaikos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date recorded of Hate?
### Context:
CREATE TABLE table_name_34 (recorded VARCHAR, translation VARCHAR) [/INST]
### Response:
SELECT recorded FROM table_name_34 WHERE translation = "hate" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 composer on the tracks less than 4?
### Context:
CREATE TABLE table_name_36 (composer VARCHAR, track INTEGER) [/INST]
### Response:
SELECT composer FROM table_name_36 WHERE track < 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the title of track 7?
### Context:
CREATE TABLE table_name_83 (title VARCHAR, track VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_83 WHERE track = 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 recorded date of track 8?
### Context:
CREATE TABLE table_name_73 (recorded VARCHAR, track VARCHAR) [/INST]
### Response:
SELECT recorded FROM table_name_73 WHERE track = 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:
How many number Builts had unit numbers of 375301-310?
### Context:
CREATE TABLE table_name_19 (no_built INTEGER, unit_nos VARCHAR) [/INST]
### Response:
SELECT SUM(no_built) FROM table_name_19 WHERE unit_nos = "375301-310" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the game where Montreal was the home team and the Devils had a record of 40–24–6?
### Context:
CREATE TABLE table_name_91 (score VARCHAR, home VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_91 WHERE home = "montreal" AND record = "40–24–6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which location has 140 stores?
### Context:
CREATE TABLE table_name_29 (location VARCHAR, stores VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_29 WHERE stores = "140" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which year did the Short Pump Town Center Mall open?
### Context:
CREATE TABLE table_name_4 (year_opened VARCHAR, mall_name VARCHAR) [/INST]
### Response:
SELECT year_opened FROM table_name_4 WHERE mall_name = "short pump town center" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the retail space of the Stony Point Fashion Park Mall?
### Context:
CREATE TABLE table_name_70 (retail_space_sq_feet__m²_ VARCHAR, mall_name VARCHAR) [/INST]
### Response:
SELECT retail_space_sq_feet__m²_ FROM table_name_70 WHERE mall_name = "stony point fashion park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Mall has 140 stores?
### Context:
CREATE TABLE table_name_3 (mall_name VARCHAR, stores VARCHAR) [/INST]
### Response:
SELECT mall_name FROM table_name_3 WHERE stores = "140" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What match was on 30 january 1938?
### Context:
CREATE TABLE table_name_33 (match VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT match FROM table_name_33 WHERE date = "30 january 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 was the result of the napoli-roma match?
### Context:
CREATE TABLE table_name_75 (result VARCHAR, match VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_75 WHERE match = "napoli-roma" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player that is from seattle prep?
### Context:
CREATE TABLE table_name_15 (player VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_15 WHERE school = "seattle prep" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 hometown of the player which has a height of 6-0?
### Context:
CREATE TABLE table_name_31 (hometown VARCHAR, height VARCHAR) [/INST]
### Response:
SELECT hometown FROM table_name_31 WHERE height = "6-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 hometown for the player that went to the college of washington
### Context:
CREATE TABLE table_name_54 (hometown VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT hometown FROM table_name_54 WHERE college = "washington" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team's score at Princes Park?
### Context:
CREATE TABLE table_name_3 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_3 WHERE venue = "princes park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When did Richmond play an away game against Collingwood?
### Context:
CREATE TABLE table_name_36 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_36 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:
How many league cup goals on average for players with over 0 FA cup and 5 league goals?
### Context:
CREATE TABLE table_name_64 (league INTEGER, fa_cup VARCHAR) [/INST]
### Response:
SELECT AVG(league) AS Cup FROM table_name_64 WHERE fa_cup > 0 AND league = 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the low FA cup goals for viduka with under 2 europe goals?
### Context:
CREATE TABLE table_name_58 (fa_cup INTEGER, name VARCHAR, europe VARCHAR) [/INST]
### Response:
SELECT MIN(fa_cup) FROM table_name_58 WHERE name = "viduka" AND europe < 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:
Who won the most recent favorite rap/hip-hop new artist at the American music awards?
### Context:
CREATE TABLE table_name_55 (year INTEGER, association VARCHAR, category VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_55 WHERE association = "american music awards" AND category = "favorite rap/hip-hop new artist" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Date with a Leading scorer with maurice williams (25), and a Score with 102–105?
### Context:
CREATE TABLE table_name_24 (date VARCHAR, leading_scorer VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_24 WHERE leading_scorer = "maurice williams (25)" AND score = "102–105" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a Home with hornets?
### Context:
CREATE TABLE table_name_54 (score VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_54 WHERE home = "hornets" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a Visitor of bucks, and a Leading scorer with maurice williams (25)?
### Context:
CREATE TABLE table_name_81 (score VARCHAR, visitor VARCHAR, leading_scorer VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_81 WHERE visitor = "bucks" AND leading_scorer = "maurice williams (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:
What is the Record with a Leading scorer with andrew bogut (29)?
### Context:
CREATE TABLE table_name_49 (record VARCHAR, leading_scorer VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_49 WHERE leading_scorer = "andrew bogut (29)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Record with a Leading scorer with maurice williams (25), and a Date with 27 january 2008?
### Context:
CREATE TABLE table_name_38 (record VARCHAR, leading_scorer VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_38 WHERE leading_scorer = "maurice williams (25)" AND date = "27 january 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Record with a Score with 80–87, and a Visitor with bucks?
### Context:
CREATE TABLE table_name_12 (record VARCHAR, score VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_12 WHERE score = "80–87" AND visitor = "bucks" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationality of the player Tom Boswell?
### Context:
CREATE TABLE table_name_74 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_74 WHERE player = "tom boswell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationality of the player from Duke?
### Context:
CREATE TABLE table_name_18 (nationality VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_18 WHERE school_club_team = "duke" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position did the player from Florida International play?
### Context:
CREATE TABLE table_name_31 (position VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_31 WHERE school_club_team = "florida international" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationality of the player from UCLA?
### Context:
CREATE TABLE table_name_4 (nationality VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_4 WHERE school_club_team = "ucla" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Attendance/G with Tms more than 18?
### Context:
CREATE TABLE table_name_48 (attendance_g INTEGER, tms INTEGER) [/INST]
### Response:
SELECT AVG(attendance_g) FROM table_name_48 WHERE tms > 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which chassis had an entrant of John Mecom?
### Context:
CREATE TABLE table_name_37 (chassis VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT chassis FROM table_name_37 WHERE entrant = "john mecom" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What tyre was used for an entrant of Ecurie Nationale Suisse?
### Context:
CREATE TABLE table_name_27 (tyre VARCHAR, entrant VARCHAR) [/INST]
### Response:
SELECT tyre FROM table_name_27 WHERE entrant = "ecurie nationale suisse" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rounds was Hap Sharp a driver in?
### Context:
CREATE TABLE table_name_40 (rounds VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT rounds FROM table_name_40 WHERE driver = "hap sharp" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the title is jotei?
### Context:
CREATE TABLE table_name_38 (year INTEGER, title VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_38 WHERE title = "jotei" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the original channel when the year is before 2006 and the note is supporting?
### Context:
CREATE TABLE table_name_67 (original_channel VARCHAR, year VARCHAR, note VARCHAR) [/INST]
### Response:
SELECT original_channel FROM table_name_67 WHERE year < 2006 AND note = "supporting" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the original channel when the note is co-star in year 2012?
### Context:
CREATE TABLE table_name_61 (original_channel VARCHAR, note VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT original_channel FROM table_name_61 WHERE note = "co-star" 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 original channel when the year is after 2012?
### Context:
CREATE TABLE table_name_7 (original_channel VARCHAR, year INTEGER) [/INST]
### Response:
SELECT original_channel FROM table_name_7 WHERE 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 year when the note is supporting and the title is rokumeikan?
### Context:
CREATE TABLE table_name_5 (year VARCHAR, note VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_5 WHERE note = "supporting" AND title = "rokumeikan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the year is after 2011 and the original channel is nhk?
### Context:
CREATE TABLE table_name_71 (title VARCHAR, year VARCHAR, original_channel VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_71 WHERE year > 2011 AND original_channel = "nhk" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 circuit does lorenzo bandini have the fastest lap as well as the pole position?
### Context:
CREATE TABLE table_name_91 (circuit VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_91 WHERE fastest_lap = "lorenzo bandini" AND pole_position = "lorenzo bandini" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 what race does jim clark has a Pole position on the Circuit of monaco?
### Context:
CREATE TABLE table_name_72 (race VARCHAR, pole_position VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT race FROM table_name_72 WHERE pole_position = "jim clark" AND circuit = "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:
Which Report is on the Circuit of reims?
### Context:
CREATE TABLE table_name_32 (report VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT report FROM table_name_32 WHERE circuit = "reims" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is there a race on the Circuit of brands hatch?
### Context:
CREATE TABLE table_name_77 (date VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_77 WHERE circuit = "brands hatch" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winnning driver in which lorenzo bandini has the fastest lap as well as the Pole position?
### Context:
CREATE TABLE table_name_21 (winning_driver VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_21 WHERE fastest_lap = "lorenzo bandini" AND pole_position = "lorenzo bandini" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is there a Tryre of d at the Circuit of monaco?
### Context:
CREATE TABLE table_name_91 (date VARCHAR, tyre VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_91 WHERE tyre = "d" AND circuit = "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:
What's the date that Morocco has an Against along with a surface of hard?
### Context:
CREATE TABLE table_name_46 (date VARCHAR, against VARCHAR, surface VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_46 WHERE against = "morocco" AND surface = "hard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Round has a Surface of hard and Opponent of Jelena Simic?
### Context:
CREATE TABLE table_name_51 (round VARCHAR, surface VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_51 WHERE surface = "hard" AND opponent = "jelena simic" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 won in the xv grand prix de l'albigeois in a vehicle by ferrari?
### Context:
CREATE TABLE table_name_95 (winning_driver VARCHAR, constructor VARCHAR, race_name VARCHAR) [/INST]
### Response:
SELECT winning_driver FROM table_name_95 WHERE constructor = "ferrari" AND race_name = "xv grand prix de l'albigeois" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 death with a description of BR-Built inspection saloon?
### Context:
CREATE TABLE table_name_4 (date INTEGER, description VARCHAR) [/INST]
### Response:
SELECT MAX(date) FROM table_name_4 WHERE description = "br-built inspection saloon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 identifying number for a description of Stanier (Period III) full brake?
### Context:
CREATE TABLE table_name_57 (number_ VARCHAR, _name VARCHAR, description VARCHAR) [/INST]
### Response:
SELECT number_ & _name FROM table_name_57 WHERE description = "stanier (period iii) full brake" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date with identifying number of No. 37817?
### Context:
CREATE TABLE table_name_86 (date VARCHAR, number_ VARCHAR, _name VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_86 WHERE number_ & _name = "no. 37817" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 release date for the standard cd release format in north america?
### Context:
CREATE TABLE table_name_18 (release_date VARCHAR, release_format VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT release_date FROM table_name_18 WHERE release_format = "standard cd" AND country = "north america" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cat no for the label mute and the standard cd format?
### Context:
CREATE TABLE table_name_23 (cat_no VARCHAR, label_s_ VARCHAR, release_format VARCHAR) [/INST]
### Response:
SELECT cat_no FROM table_name_23 WHERE label_s_ = "mute" AND release_format = "standard cd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rating for the episode with the night rank of 11 and timeslot rank is larger than 4?
### Context:
CREATE TABLE table_name_51 (rating INTEGER, night_rank VARCHAR, timeslot_rank VARCHAR) [/INST]
### Response:
SELECT AVG(rating) FROM table_name_51 WHERE night_rank = "11" AND timeslot_rank > 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest share for a timeslot ranking less than 4 and fewer viewers than 8.78 million?
### Context:
CREATE TABLE table_name_67 (share INTEGER, viewers__m_ VARCHAR, timeslot_rank VARCHAR) [/INST]
### Response:
SELECT MIN(share) FROM table_name_67 WHERE viewers__m_ < 8.78 AND timeslot_rank < 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the rating of the episode with 13.47 million viewers and overall rank larger than 6?
### Context:
CREATE TABLE table_name_69 (rating INTEGER, viewers__m_ VARCHAR, overall_rank VARCHAR) [/INST]
### Response:
SELECT SUM(rating) FROM table_name_69 WHERE viewers__m_ = 13.47 AND overall_rank > 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the rank of the episode with a share of 6 and timeslot rank smaller than 4?
### Context:
CREATE TABLE table_name_39 (overall_rank INTEGER, share VARCHAR, timeslot_rank VARCHAR) [/INST]
### Response:
SELECT AVG(overall_rank) FROM table_name_39 WHERE share = 6 AND timeslot_rank < 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many premierships for the queensland raceway?
### Context:
CREATE TABLE table_name_40 (premierships VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT premierships FROM table_name_40 WHERE venue = "queensland raceway" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 premierships for the commonwealth bank trophy league?
### Context:
CREATE TABLE table_name_25 (premierships VARCHAR, league VARCHAR) [/INST]
### Response:
SELECT premierships FROM table_name_25 WHERE league = "commonwealth bank 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:
In which round was there a pick of 4?
### Context:
CREATE TABLE table_name_66 (round INTEGER, pick VARCHAR) [/INST]
### Response:
SELECT MAX(round) FROM table_name_66 WHERE pick = 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many rounds were there an offensive tackle position?
### Context:
CREATE TABLE table_name_66 (round VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_66 WHERE position = "offensive tackle" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick number in round 228 for Mike Ford?
### Context:
CREATE TABLE table_name_44 (pick INTEGER, player VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT MAX(pick) FROM table_name_44 WHERE player = "mike ford" AND round > 228 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year was E. Meyer the driver?
### Context:
CREATE TABLE table_name_9 (year VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_9 WHERE driver = "e. meyer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver of the vehicle constructed by Bugatti in Anfa?
### Context:
CREATE TABLE table_name_2 (driver VARCHAR, constructor VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_2 WHERE constructor = "bugatti" AND location = "anfa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What company constructed the vehicle in the location not held in 1933?
### Context:
CREATE TABLE table_name_99 (constructor VARCHAR, location VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_99 WHERE location = "not held" AND year = "1933" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What company constructed the vehicle when the driver shows as not held?
### Context:
CREATE TABLE table_name_61 (constructor VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_61 WHERE driver = "not held" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 driver in 1955?
### Context:
CREATE TABLE table_name_18 (driver VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_18 WHERE year = "1955" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when report shows report in 1955?
### Context:
CREATE TABLE table_name_48 (constructor VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_48 WHERE "report" = "report" AND year = "1955" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 inductioin for 1975–1976?
### Context:
CREATE TABLE table_name_93 (induction VARCHAR, years VARCHAR) [/INST]
### Response:
SELECT induction FROM table_name_93 WHERE years = "1975–1976" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 power of an engine of 1972?
### Context:
CREATE TABLE table_name_73 (power VARCHAR, years VARCHAR) [/INST]
### Response:
SELECT power FROM table_name_73 WHERE years = "1972" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 where richmond was the away team, what venue was it played at?
### Context:
CREATE TABLE table_name_99 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_99 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:
On what date did the match where fitzroy was the home team occur?
### Context:
CREATE TABLE table_name_90 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_90 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:
What is the smallest apps in Honduras with less than 2 goals for Club Deportivo Victoria in a division over 1?
### Context:
CREATE TABLE table_name_79 (apps INTEGER, division VARCHAR, team VARCHAR, country VARCHAR, goals VARCHAR) [/INST]
### Response:
SELECT MIN(apps) FROM table_name_79 WHERE country = "honduras" AND goals < 2 AND team = "club deportivo victoria" AND division > 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 grid for jacques villeneuve with over 36 laps?
### Context:
CREATE TABLE table_name_8 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MAX(grid) FROM table_name_8 WHERE driver = "jacques villeneuve" AND laps > 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:
What were the lowest laps of Tarso Marques?
### Context:
CREATE TABLE table_name_69 (laps INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_69 WHERE driver = "tarso marques" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the average Grid for those who spun off after Lap 64?
### Context:
CREATE TABLE table_name_68 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_68 WHERE time_retired = "spun off" AND laps > 64 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total that has a Time/Retired of + 1:33.141, and under 70 laps?
### Context:
CREATE TABLE table_name_27 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT SUM(grid) FROM table_name_27 WHERE time_retired = "+ 1:33.141" AND laps < 70 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.