inputs stringlengths 400 1.34k |
|---|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Score has a Game larger than 40, and a Record of 25-10-8?
### Context:
CREATE TABLE table_name_81 (score VARCHAR, game VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_81 WHERE game > 40 AND record = "25-10-8"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Enrollment has a Primary Conference of mid-hoosier, and a County of 16 decatur, and an IHSAA Class of aa?
### Context:
CREATE TABLE table_name_4 (enrollment VARCHAR, ihsaa_class VARCHAR, primary_conference VARCHAR, county VARCHAR)
### Response:
### Response:
SELECT enrollment FROM table_name_4 WHERE primary_conference = "mid-hoosier" AND county = "16 decatur" AND ihsaa_class = "aa"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What candidate has a result of being re-elected in the Texas 7 District?
### Context:
CREATE TABLE table_1342218_43 (candidates VARCHAR, result VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT candidates FROM table_1342218_43 WHERE result = "Re-elected" AND district = "Texas 7"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who did the high assists in the game where Charles Barkley (21) did the high points?
### Context:
CREATE TABLE table_30087032_5 (high_assists VARCHAR, high_points VARCHAR)
### Response:
### Response:
SELECT high_assists FROM table_30087032_5 WHERE high_points = "Charles Barkley (21)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the name of the Player that shows the NHL team of new york rangers, and a Pick # of 31?
### Context:
CREATE TABLE table_name_22 (player VARCHAR, nhl_team VARCHAR, pick__number VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_22 WHERE nhl_team = "new york rangers" AND pick__number = "31"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the upper index kcal/nm3 for 62.47
### Context:
CREATE TABLE table_1868929_1 (upper_index_kcal__nm_3 VARCHAR, lower_index_mj__nm_3 VARCHAR)
### Response:
### Response:
SELECT upper_index_kcal__nm_3 FROM table_1868929_1 WHERE lower_index_mj__nm_3 = "62.47"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which driver was in 8 rounds with a chassis of dallara f306?
### Context:
CREATE TABLE table_name_57 (driver VARCHAR, chassis VARCHAR, rounds VARCHAR)
### Response:
### Response:
SELECT driver FROM table_name_57 WHERE chassis = "dallara f306" AND rounds = "8"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What venue is in Long Beach?
### Context:
CREATE TABLE table_name_73 (venue VARCHAR, city VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_73 WHERE city = "long beach"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the maximum OTL if L is 28?
### Context:
CREATE TABLE table_2233872_1 (Otl INTEGER, l VARCHAR)
### Response:
### Response:
SELECT MAX(Otl) FROM table_2233872_1 WHERE l = 28</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was time/retired with less than 67 laps and 6 points?
### Context:
CREATE TABLE table_name_28 (time_retired VARCHAR, laps VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT time_retired FROM table_name_28 WHERE laps < 67 AND points = 6</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many times did kevin love (22) have the high points?
### Context:
CREATE TABLE table_27756314_8 (date VARCHAR, high_points VARCHAR)
### Response:
### Response:
SELECT COUNT(date) FROM table_27756314_8 WHERE high_points = "Kevin Love (22)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What artist has a mintage of greater than 34,135?
### Context:
CREATE TABLE table_name_29 (artist VARCHAR, mintage INTEGER)
### Response:
### Response:
SELECT artist FROM table_name_29 WHERE mintage > 34 OFFSET 135</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the union moving name and is from cmr?
### Context:
CREATE TABLE table_name_92 (name VARCHAR, moving_to VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_92 WHERE moving_to = "union" AND country = "cmr"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Return the name and gender of the staff who was assigned in 2016.
### Context:
CREATE TABLE staff (staff_name VARCHAR, staff_gender VARCHAR, staff_id VARCHAR); CREATE TABLE staff_department_assignments (staff_id VARCHAR, date_assigned_from VARCHAR)
### Response:
### Response:
SELECT T1.staff_name, T1.staff_gender FROM staff AS T1 JOIN staff_department_assignments AS T2 ON T1.staff_id = T2.staff_id WHERE T2.date_assigned_from LIKE "2016%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
List the most common result of the musicals.
### Context:
CREATE TABLE musical (RESULT VARCHAR)
### Response:
### Response:
SELECT RESULT FROM musical GROUP BY RESULT ORDER BY COUNT(*) DESC LIMIT 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What did the Tournament of SR get in 1951?
### Context:
CREATE TABLE table_name_25 (tournament VARCHAR)
### Response:
### Response:
SELECT 1951 FROM table_name_25 WHERE tournament = "sr"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
I want to know the peak which is prom less than 147 and height less than 619
### Context:
CREATE TABLE table_name_10 (peak VARCHAR, prom__m_ VARCHAR, height__m_ VARCHAR)
### Response:
### Response:
SELECT peak FROM table_name_10 WHERE prom__m_ < 147 AND height__m_ < 619</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many golds have a bronze less than 1, and a silver less than 1?
### Context:
CREATE TABLE table_name_82 (gold VARCHAR, bronze VARCHAR, silver VARCHAR)
### Response:
### Response:
SELECT COUNT(gold) FROM table_name_82 WHERE bronze < 1 AND silver < 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many 2008s have 6.9 as a 2006, with a 2007 less than 7.1?
### Context:
CREATE TABLE table_name_82 (Id VARCHAR)
### Response:
### Response:
SELECT COUNT(2008) FROM table_name_82 WHERE 2006 = 6.9 AND 2007 < 7.1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which competition was held at Addis Ababa?
### Context:
CREATE TABLE table_name_26 (competition VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT competition FROM table_name_26 WHERE location = "addis ababa"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Score has a Opponent of Boston red sox and a Save of sager?
### Context:
CREATE TABLE table_name_8 (score VARCHAR, opponent VARCHAR, save VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_8 WHERE opponent = "boston red sox" AND save = "sager"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the winner when the finalist was fsv frankfurt?
### Context:
CREATE TABLE table_name_31 (winner VARCHAR, finalist VARCHAR)
### Response:
### Response:
SELECT winner FROM table_name_31 WHERE finalist = "fsv frankfurt"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the rank for the rating 4.4?
### Context:
CREATE TABLE table_15681686_4 (rank__night_ VARCHAR, rating VARCHAR)
### Response:
### Response:
SELECT rank__night_ FROM table_15681686_4 WHERE rating = "4.4"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the notes for andre vonarburg?
### Context:
CREATE TABLE table_name_24 (notes VARCHAR, athlete VARCHAR)
### Response:
### Response:
SELECT notes FROM table_name_24 WHERE athlete = "andre vonarburg"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the opponent of the game before week 11 on October 31, 1976?
### Context:
CREATE TABLE table_name_97 (opponent VARCHAR, week VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_97 WHERE week < 11 AND date = "october 31, 1976"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When did the episode with series number 29a originally air?
### Context:
CREATE TABLE table_14035132_3 (original_air_date VARCHAR, no_in_series VARCHAR)
### Response:
### Response:
SELECT original_air_date FROM table_14035132_3 WHERE no_in_series = "29a"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what's the character with fate being deceased: knife wound
### Context:
CREATE TABLE table_11210576_4 (character VARCHAR, fate VARCHAR)
### Response:
### Response:
SELECT character FROM table_11210576_4 WHERE fate = "Deceased: Knife Wound"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Tracks of the release in Catalog BA 222304 with a Length of 2:57?
### Context:
CREATE TABLE table_name_20 (tracks VARCHAR, catalog VARCHAR, length VARCHAR)
### Response:
### Response:
SELECT tracks FROM table_name_20 WHERE catalog = "ba 222304" AND length = "2:57"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many dates of polls occur in the Madhya Pradesh state?
### Context:
CREATE TABLE table_15329030_1 (date_of_polls VARCHAR, state VARCHAR)
### Response:
### Response:
SELECT COUNT(date_of_polls) FROM table_15329030_1 WHERE state = "Madhya Pradesh"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the highest Goals Against, when Club is "Pontevedra CF", and when Played is less than 38?
### Context:
CREATE TABLE table_name_74 (goals_against INTEGER, club VARCHAR, played VARCHAR)
### Response:
### Response:
SELECT MAX(goals_against) FROM table_name_74 WHERE club = "pontevedra cf" AND played < 38</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the team when the high points were by wesley johnson (20)?
### Context:
CREATE TABLE table_27756314_10 (team VARCHAR, high_points VARCHAR)
### Response:
### Response:
SELECT team FROM table_27756314_10 WHERE high_points = "Wesley Johnson (20)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which player has a height of 6-7?
### Context:
CREATE TABLE table_name_5 (player VARCHAR, height VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_5 WHERE height = "6-7"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average number of goals for games played that total more than 8?
### Context:
CREATE TABLE table_name_75 (goals_for INTEGER, games_played INTEGER)
### Response:
### Response:
SELECT AVG(goals_for) FROM table_name_75 WHERE games_played > 8</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the lyricist for composer Haewon Park?
### Context:
CREATE TABLE table_name_36 (lyricist_s_ VARCHAR, composer_s_ VARCHAR)
### Response:
### Response:
SELECT lyricist_s_ FROM table_name_36 WHERE composer_s_ = "haewon park"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the pick number when mark hayes was drafted?
### Context:
CREATE TABLE table_name_42 (pick VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT pick FROM table_name_42 WHERE player = "mark hayes"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What record has a november greater than 11, and st. louis blues as the opponent?
### Context:
CREATE TABLE table_name_62 (record VARCHAR, november VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_62 WHERE november > 11 AND opponent = "st. louis blues"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the highest prev that has 9 as the rank, with a rating less than 2746?
### Context:
CREATE TABLE table_name_4 (prev INTEGER, rank VARCHAR, rating VARCHAR)
### Response:
### Response:
SELECT MAX(prev) FROM table_name_4 WHERE rank = 9 AND rating < 2746</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the height for the Oakville Gymnastics Club?
### Context:
CREATE TABLE table_name_96 (height VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT height FROM table_name_96 WHERE club = "oakville gymnastics club"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the record after the game at the Astrodome?
### Context:
CREATE TABLE table_name_37 (record VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_37 WHERE location = "astrodome"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How much was the score of the home team at windy hill?
### Context:
CREATE TABLE table_name_34 (home_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_34 WHERE venue = "windy hill"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the FA Cup Apps when total goals is smaller than 4, League Cup Goals is 0, and League Apps is 8 (10)?
### Context:
CREATE TABLE table_name_73 (fa_cup_apps VARCHAR, league_apps VARCHAR, total_goals VARCHAR, league_cup_goals VARCHAR)
### Response:
### Response:
SELECT fa_cup_apps FROM table_name_73 WHERE total_goals < 4 AND league_cup_goals = 0 AND league_apps = "8 (10)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What are the category of music festivals with result "Awarded"?
### Context:
CREATE TABLE music_festival (Category VARCHAR, RESULT VARCHAR)
### Response:
### Response:
SELECT Category FROM music_festival WHERE RESULT = "Awarded"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the lowest round for the KOTC 25: Flaming Fury event?
### Context:
CREATE TABLE table_name_82 (round INTEGER, event VARCHAR)
### Response:
### Response:
SELECT MIN(round) FROM table_name_82 WHERE event = "kotc 25: flaming fury"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the Cover model on 11-03?
### Context:
CREATE TABLE table_name_96 (cover_model VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT cover_model FROM table_name_96 WHERE date = "11-03"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which team does Robert Brooks play with?
### Context:
CREATE TABLE table_14649522_1 (nfl_team VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT nfl_team FROM table_14649522_1 WHERE player = "Robert Brooks"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score for the away team when they played at lake oval?
### Context:
CREATE TABLE table_name_70 (away_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT away_team AS score FROM table_name_70 WHERE venue = "lake oval"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many accounts does the customer with first name Art and last name Turcotte have?
### Context:
CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM Accounts AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Art" AND T2.customer_last_name = "Turcotte"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which clubs have players with height 2.14m?
### Context:
CREATE TABLE table_23670057_5 (current_club VARCHAR, height__m_ VARCHAR)
### Response:
### Response:
SELECT current_club FROM table_23670057_5 WHERE height__m_ = "2.14"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the least game for arco arena 13,330
### Context:
CREATE TABLE table_17102076_10 (game INTEGER, location_attendance VARCHAR)
### Response:
### Response:
SELECT MIN(game) FROM table_17102076_10 WHERE location_attendance = "ARCO Arena 13,330"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When the strike rate is 70.10, what is the balls?
### Context:
CREATE TABLE table_name_36 (balls VARCHAR, strike_rate VARCHAR)
### Response:
### Response:
SELECT balls FROM table_name_36 WHERE strike_rate = "70.10"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Where was the disaster located that took place on 1916?
### Context:
CREATE TABLE table_name_49 (location VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_49 WHERE date = "1916"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the original name of the song performed in Swedish?
### Context:
CREATE TABLE table_name_70 (original_name VARCHAR, language VARCHAR)
### Response:
### Response:
SELECT original_name FROM table_name_70 WHERE language = "swedish"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Format has a Label of toy's factory records?
### Context:
CREATE TABLE table_name_93 (format VARCHAR, label VARCHAR)
### Response:
### Response:
SELECT format FROM table_name_93 WHERE label = "toy's factory records"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the competition that occured on 27 July 2004?
### Context:
CREATE TABLE table_name_98 (competition VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT competition FROM table_name_98 WHERE date = "27 july 2004"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many points has more than 15 wins and less than 10 losses?
### Context:
CREATE TABLE table_name_54 (points VARCHAR, wins VARCHAR, losses VARCHAR)
### Response:
### Response:
SELECT points FROM table_name_54 WHERE wins > 15 AND losses < 10</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Poll Source has a Date administered of october 30 – november 2, 2008?
### Context:
CREATE TABLE table_name_18 (poll_source VARCHAR, date_administered VARCHAR)
### Response:
### Response:
SELECT poll_source FROM table_name_18 WHERE date_administered = "october 30 – november 2, 2008"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the number of clubs when Dalian Shide won and Sichuan Quanxing won 4th?
### Context:
CREATE TABLE table_name_35 (number_of_clubs INTEGER, winners VARCHAR, fourth_placed VARCHAR)
### Response:
### Response:
SELECT AVG(number_of_clubs) FROM table_name_35 WHERE winners = "dalian shide" AND fourth_placed = "sichuan quanxing"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the smallest total produced with a model of M-420?
### Context:
CREATE TABLE table_name_47 (total_produced INTEGER, model VARCHAR)
### Response:
### Response:
SELECT MIN(total_produced) FROM table_name_47 WHERE model = "m-420"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Tie has a Score of 5–1?
### Context:
CREATE TABLE table_name_98 (tie_no VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT tie_no FROM table_name_98 WHERE score = "5–1"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What livery was worn on the date before 1936, with the description of Gresley RF?
### Context:
CREATE TABLE table_name_82 (livery VARCHAR, date VARCHAR, description VARCHAR)
### Response:
### Response:
SELECT livery FROM table_name_82 WHERE date < 1936 AND description = "gresley rf"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What percentage of users were using other browsers according to the source that reported 21.22% were using Firefox?
### Context:
CREATE TABLE table_name_95 (other VARCHAR, firefox VARCHAR)
### Response:
### Response:
SELECT other FROM table_name_95 WHERE firefox = "21.22%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the prize pool for 706 (481 r, 346 a)
### Context:
CREATE TABLE table_2534387_10 (prize VARCHAR, entries VARCHAR)
### Response:
### Response:
SELECT prize AS Pool FROM table_2534387_10 WHERE entries = "706 (481 R, 346 A)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
WHAT HOMETOWN DOES HE PLAY AS THE CATCHER FOR?
### Context:
CREATE TABLE table_11677100_11 (hometown VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT hometown FROM table_11677100_11 WHERE position = "Catcher"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the rank of the new zealand team that had fb listed under notes?
### Context:
CREATE TABLE table_name_31 (rank VARCHAR, notes VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT rank FROM table_name_31 WHERE notes = "fb" AND country = "new zealand"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When 7 april 2001 to 29 september 2001 was aired in japan 2 how many titles were there?
### Context:
CREATE TABLE table_1714685_1 (title VARCHAR, aired_in_japan_3 VARCHAR)
### Response:
### Response:
SELECT COUNT(title) FROM table_1714685_1 WHERE aired_in_japan_3 = "7 April 2001 to 29 September 2001"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What country did Bart Bryant with a score of 69-70=139 belong to?
### Context:
CREATE TABLE table_name_37 (country VARCHAR, player VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_37 WHERE score = 69 - 70 = 139 AND player = "bart bryant"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many professors who are from either Accounting or Biology department?
### Context:
CREATE TABLE department (dept_code VARCHAR, dept_name VARCHAR); CREATE TABLE professor (dept_code VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code = T2.dept_code WHERE T2.dept_name = 'Accounting' OR T2.dept_name = 'Biology'</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the duration of the Archers with Pauline Seville acting?
### Context:
CREATE TABLE table_name_45 (duration VARCHAR, soap_opera VARCHAR, actor VARCHAR)
### Response:
### Response:
SELECT duration FROM table_name_45 WHERE soap_opera = "the archers" AND actor = "pauline seville"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average day in December with a Record of 16-3-4 and a Game smaller than 23?
### Context:
CREATE TABLE table_name_84 (december INTEGER, record VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT AVG(december) FROM table_name_84 WHERE record = "16-3-4" AND game < 23</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the win % for the QB with 3 starts?
### Context:
CREATE TABLE table_name_7 (win__percentage VARCHAR, starts VARCHAR)
### Response:
### Response:
SELECT win__percentage FROM table_name_7 WHERE starts = 3</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Date of the RCA release with Catalog number SF-7635?
### Context:
CREATE TABLE table_name_57 (date VARCHAR, label VARCHAR, catalog VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_57 WHERE label = "rca" AND catalog = "sf-7635"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Where were the Womens Doubles in the 1951/1952 season and who won?
### Context:
CREATE TABLE table_12266757_1 (womens_doubles VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT womens_doubles FROM table_12266757_1 WHERE season = "1951/1952"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many marriages between women have % same-sex marriages of 1.06?
### Context:
CREATE TABLE table_19614212_1 (marriages_between_women VARCHAR, _percentage_same_sex_marriages VARCHAR)
### Response:
### Response:
SELECT marriages_between_women FROM table_19614212_1 WHERE _percentage_same_sex_marriages = "1.06"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who wrote episode number 28?
### Context:
CREATE TABLE table_26561506_1 (written_by VARCHAR, no VARCHAR)
### Response:
### Response:
SELECT written_by FROM table_26561506_1 WHERE no = 28</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Constructor has a Grid smaller than 24, more than 77 laps, and a Driver of jean-pierre beltoise?
### Context:
CREATE TABLE table_name_53 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR)
### Response:
### Response:
SELECT constructor FROM table_name_53 WHERE grid < 24 AND laps > 77 AND driver = "jean-pierre beltoise"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Competition, when Date is "January 11, 1996", when Venue is "San Diego , United States"?
### Context:
CREATE TABLE table_name_72 (competition VARCHAR, date VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT competition FROM table_name_72 WHERE date = "january 11, 1996" AND venue = "san diego , united states"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
The earliest year is 1996.
### Context:
CREATE TABLE table_12077540_1 (year INTEGER)
### Response:
### Response:
SELECT MIN(year) FROM table_12077540_1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the maximum number of tropical storms in the year that had exactly 34 deaths?
### Context:
CREATE TABLE table_2930244_4 (number_of_tropical_storms INTEGER, deaths VARCHAR)
### Response:
### Response:
SELECT MAX(number_of_tropical_storms) FROM table_2930244_4 WHERE deaths = "34"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which school is in Raleigh, NC?
### Context:
CREATE TABLE table_name_23 (school VARCHAR, hometown VARCHAR)
### Response:
### Response:
SELECT school FROM table_name_23 WHERE hometown = "raleigh, nc"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Outcome has a Championship of us championships, and a Score in the final of 5–7, 6–1, 6–3, 6–3?
### Context:
CREATE TABLE table_name_61 (outcome VARCHAR, championship VARCHAR, score_in_the_final VARCHAR)
### Response:
### Response:
SELECT outcome FROM table_name_61 WHERE championship = "us championships" AND score_in_the_final = "5–7, 6–1, 6–3, 6–3"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Find the name of the user who tweeted more than once, and number of tweets tweeted by them.
### Context:
CREATE TABLE tweets (uid VARCHAR); CREATE TABLE user_profiles (name VARCHAR, uid VARCHAR)
### Response:
### Response:
SELECT T1.name, COUNT(*) FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) > 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What kind of Live births has a Migration of -14 873?
### Context:
CREATE TABLE table_name_85 (live_births VARCHAR, migration VARCHAR)
### Response:
### Response:
SELECT live_births FROM table_name_85 WHERE migration = "-14 873"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Date has a Tournament of national jewish hospital open, and a Runner(s)-up of pat bradley?
### Context:
CREATE TABLE table_name_95 (date VARCHAR, tournament VARCHAR, runner_s__up VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_95 WHERE tournament = "national jewish hospital open" AND runner_s__up = "pat bradley"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the total number of places for vicky gordon and points more than 23
### Context:
CREATE TABLE table_name_72 (place VARCHAR, artist VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT COUNT(place) FROM table_name_72 WHERE artist = "vicky gordon" AND points > 23</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Total for 1994, 1997 years won?
### Context:
CREATE TABLE table_name_33 (total INTEGER, year_s__won VARCHAR)
### Response:
### Response:
SELECT SUM(total) FROM table_name_33 WHERE year_s__won = "1994, 1997"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the winning driver in the grand prix at Pacific Grand Prix?
### Context:
CREATE TABLE table_1137702_3 (winning_driver VARCHAR, grand_prix VARCHAR)
### Response:
### Response:
SELECT winning_driver FROM table_1137702_3 WHERE grand_prix = "Pacific grand_prix"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Where is the frequency 92.3mhz?
### Context:
CREATE TABLE table_19215259_1 (location VARCHAR, frequency VARCHAR)
### Response:
### Response:
SELECT location FROM table_19215259_1 WHERE frequency = "92.3MHz"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who wrote the episode with production code 2?
### Context:
CREATE TABLE table_25679312_2 (written_by VARCHAR, prod_code VARCHAR)
### Response:
### Response:
SELECT written_by FROM table_25679312_2 WHERE prod_code = 2</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average value of Overall, when Round is greater than 11, and when Pick is greater than 10?
### Context:
CREATE TABLE table_name_8 (overall INTEGER, round VARCHAR, pick VARCHAR)
### Response:
### Response:
SELECT AVG(overall) FROM table_name_8 WHERE round > 11 AND pick > 10</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Records Time is 3:38?
### Context:
CREATE TABLE table_name_19 (record VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_19 WHERE time = "3:38"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What player has a score less than 66, and a Place of t2, in the United States?
### Context:
CREATE TABLE table_name_72 (player VARCHAR, country VARCHAR, score VARCHAR, place VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_72 WHERE score < 66 AND place = "t2" AND country = "united states"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the gs for points being 12.1
### Context:
CREATE TABLE table_17309500_1 (gs VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT gs FROM table_17309500_1 WHERE points = "12.1"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the opponent when the attendance was exactly 16642?
### Context:
CREATE TABLE table_20745685_1 (opponent VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_20745685_1 WHERE attendance = 16642</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What golfer has 281 as their total?
### Context:
CREATE TABLE table_name_52 (player VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_52 WHERE total = 281</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
List the most common type of artworks.
### Context:
CREATE TABLE artwork (TYPE VARCHAR)
### Response:
### Response:
SELECT TYPE FROM artwork GROUP BY TYPE ORDER BY COUNT(*) DESC LIMIT 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the title of the song that has a translation of Without Me?
### Context:
CREATE TABLE table_name_38 (title VARCHAR, english_translation VARCHAR)
### Response:
### Response:
SELECT title FROM table_name_38 WHERE english_translation = "without me"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the number of relapsing fever when malaria is 3000
### Context:
CREATE TABLE table_1007688_1 (relapsing_fever INTEGER, malaria VARCHAR)
### Response:
### Response:
SELECT MIN(relapsing_fever) FROM table_1007688_1 WHERE malaria = "3000"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which week is the theme n/a
### Context:
CREATE TABLE table_21501518_1 (week__number VARCHAR, theme VARCHAR)
### Response:
### Response:
SELECT week__number FROM table_21501518_1 WHERE theme = "N/A"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the most laps with the time/retired is differential and the grid is more than 2?
### Context:
CREATE TABLE table_name_35 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
### Response:
### Response:
SELECT MAX(laps) FROM table_name_35 WHERE time_retired = "differential" AND grid > 2</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Winning Score, when Tournament is Joburg Open 1, and when Date is 17 Jan 2010?
### Context:
CREATE TABLE table_name_22 (winning_score VARCHAR, tournament VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT winning_score FROM table_name_22 WHERE tournament = "joburg open 1" AND date = "17 jan 2010"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.