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:
Name the result for linn nygård
### Context:
CREATE TABLE table_name_63 (result VARCHAR, artist VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_63 WHERE artist = "linn nygård"</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 opponent was on July 21, 2008?
### Context:
CREATE TABLE table_name_57 (opponent VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_57 WHERE date = "july 21, 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:
Who directed the film originally named Bye Bye Brazil in Portuguese?
### Context:
CREATE TABLE table_name_4 (director VARCHAR, language VARCHAR, original_name VARCHAR)
### Response:
### Response:
SELECT director FROM table_name_4 WHERE language = "portuguese" AND original_name = "bye bye brazil"</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 finale 37?
### Context:
CREATE TABLE table_11926114_1 (rank VARCHAR, finale VARCHAR)
### Response:
### Response:
SELECT rank FROM table_11926114_1 WHERE finale = 37</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 week of the season was November 24, 1957?
### Context:
CREATE TABLE table_name_74 (week VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT week FROM table_name_74 WHERE date = "november 24, 1957"</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 Decile with a State Authority and a roll of 120?
### Context:
CREATE TABLE table_name_99 (decile INTEGER, authority VARCHAR, roll VARCHAR)
### Response:
### Response:
SELECT SUM(decile) FROM table_name_99 WHERE authority = "state" AND roll = 120</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 Record, when Location Attendance is "TD Banknorth Garden 18,624"?
### Context:
CREATE TABLE table_name_17 (record VARCHAR, location_attendance VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_17 WHERE location_attendance = "td banknorth garden 18,624"</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 scores 119 in round 4?
### Context:
CREATE TABLE table_name_1 (club_team VARCHAR, round VARCHAR, overall VARCHAR)
### Response:
### Response:
SELECT club_team FROM table_name_1 WHERE round = 4 AND overall = 119</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 upstream with the price 65 chf?
### Context:
CREATE TABLE table_name_1 (upstream VARCHAR, price VARCHAR)
### Response:
### Response:
SELECT upstream FROM table_name_1 WHERE price = "65 chf"</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:
Tell me the number of weeks for bye
### Context:
CREATE TABLE table_name_5 (week VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT COUNT(week) FROM table_name_5 WHERE date = "bye"</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 highest year that Europe/Africa Zone Group I Group B lost?
### Context:
CREATE TABLE table_name_79 (year INTEGER, competition VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT MAX(year) FROM table_name_79 WHERE competition = "europe/africa zone group i group b" AND result = "lost"</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 total number of weeks with a game at the Milwaukee County Stadium attended by 47,897?
### Context:
CREATE TABLE table_name_79 (week VARCHAR, venue VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT COUNT(week) FROM table_name_79 WHERE venue = "milwaukee county stadium" AND attendance = 47 OFFSET 897</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 2013 has a 2007 of A, and a Tournament of french open?
### Context:
CREATE TABLE table_name_49 (tournament VARCHAR)
### Response:
### Response:
SELECT 2013 FROM table_name_49 WHERE 2007 = "a" AND tournament = "french open"</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 Date, when City is "Punta Del Este"?
### Context:
CREATE TABLE table_name_87 (date VARCHAR, city VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_87 WHERE city = "punta del este"</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 State, when the year First elected is 1966, and when the Member is Alan Jarman?
### Context:
CREATE TABLE table_name_13 (state VARCHAR, first_elected VARCHAR, member VARCHAR)
### Response:
### Response:
SELECT state FROM table_name_13 WHERE first_elected = "1966" AND member = "alan jarman"</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 literature for pradit prasarttong
### Context:
CREATE TABLE table_name_72 (literature VARCHAR, performing_arts VARCHAR)
### Response:
### Response:
SELECT literature FROM table_name_72 WHERE performing_arts = "pradit prasarttong"</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 title placed in rank 7?
### Context:
CREATE TABLE table_name_7 (title VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT title FROM table_name_7 WHERE rank = 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:
Which outgoing manager has tabled 16th position?
### Context:
CREATE TABLE table_name_83 (outgoing_manager VARCHAR, position_in_table VARCHAR)
### Response:
### Response:
SELECT outgoing_manager FROM table_name_83 WHERE position_in_table = "16th"</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 rebounds does Fedor likholitov have with a rank greater than 8?
### Context:
CREATE TABLE table_name_21 (rebounds INTEGER, name VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT SUM(rebounds) FROM table_name_21 WHERE name = "fedor likholitov" AND rank > 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 had the fastest lap in the Belgian Grand Prix?
### Context:
CREATE TABLE table_1132600_3 (fastest_lap VARCHAR, grand_prix VARCHAR)
### Response:
### Response:
SELECT fastest_lap FROM table_1132600_3 WHERE grand_prix = "Belgian 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:
What is the original air date for the writer tanaka shinichi?
### Context:
CREATE TABLE table_26591434_1 (original_airdate VARCHAR, writer VARCHAR)
### Response:
### Response:
SELECT original_airdate FROM table_26591434_1 WHERE writer = "Tanaka Shinichi"</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 people wrote the episode directed by rob schrab?
### Context:
CREATE TABLE table_28081876_4 (written_by VARCHAR, directed_by VARCHAR)
### Response:
### Response:
SELECT COUNT(written_by) FROM table_28081876_4 WHERE directed_by = "Rob Schrab"</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 reading score in the year the science score was 96.13?
### Context:
CREATE TABLE table_2534578_1 (reading VARCHAR, science VARCHAR)
### Response:
### Response:
SELECT reading FROM table_2534578_1 WHERE science = "96.13"</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 is the musical director of the film Vettaiyaadu vilaiyaadu?
### Context:
CREATE TABLE table_name_35 (music_director VARCHAR, film VARCHAR)
### Response:
### Response:
SELECT music_director FROM table_name_35 WHERE film = "vettaiyaadu vilaiyaadu"</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 air date for the seasons before 14 and series less than 183 with production code more than 709
### Context:
CREATE TABLE table_name_88 (original_air_date VARCHAR, series__number VARCHAR, season__number VARCHAR, production_code VARCHAR)
### Response:
### Response:
SELECT original_air_date FROM table_name_88 WHERE season__number < 14 AND production_code > 709 AND series__number < 183</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 NGC number for sagittarius and diffuse nebula with declination of °02′
### Context:
CREATE TABLE table_name_86 (ngc_number VARCHAR, declination___j2000__ VARCHAR, constellation VARCHAR, object_type VARCHAR)
### Response:
### Response:
SELECT COUNT(ngc_number) FROM table_name_86 WHERE constellation = "sagittarius" AND object_type = "diffuse nebula" AND declination___j2000__ = "°02′"</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 day were the results 3:2?
### Context:
CREATE TABLE table_name_54 (date VARCHAR, results¹ VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_54 WHERE results¹ = "3: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 2006 has a 2007 of 3r?
### Context:
CREATE TABLE table_name_48 (Id VARCHAR)
### Response:
### Response:
SELECT 2006 FROM table_name_48 WHERE 2007 = "3r"</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:
In what Distance has a Venue of sale?
### Context:
CREATE TABLE table_name_36 (distance VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT distance FROM table_name_36 WHERE venue = "sale"</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 has a Date of 16th september 1951, and a Race of dns?
### Context:
CREATE TABLE table_name_8 (driver VARCHAR, date VARCHAR, race VARCHAR)
### Response:
### Response:
SELECT driver FROM table_name_8 WHERE date = "16th september 1951" AND race = "dns"</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 score when the swimsuit score is 8.503?
### Context:
CREATE TABLE table_12094300_1 (average VARCHAR, swimsuit VARCHAR)
### Response:
### Response:
SELECT average FROM table_12094300_1 WHERE swimsuit = "8.503"</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 had a finish of t15?
### Context:
CREATE TABLE table_name_67 (player VARCHAR, finish VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_67 WHERE finish = "t15"</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 had the most laps led in monterey, california when scott rarick won the race?
### Context:
CREATE TABLE table_25668203_2 (most_laps_led VARCHAR, location VARCHAR, winning_driver VARCHAR)
### Response:
### Response:
SELECT most_laps_led FROM table_25668203_2 WHERE location = "Monterey, California" AND winning_driver = "Scott Rarick"</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 theme for the original artist Alicia Keys?
### Context:
CREATE TABLE table_26250145_1 (theme VARCHAR, original_artist VARCHAR)
### Response:
### Response:
SELECT theme FROM table_26250145_1 WHERE original_artist = "Alicia Keys"</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 2012 with a mini in 2009?
### Context:
CREATE TABLE table_name_3 (Id VARCHAR)
### Response:
### Response:
SELECT 2012 FROM table_name_3 WHERE 2009 = "mini"</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 money rank of the tallest poker player?
### Context:
CREATE TABLE people (People_ID VARCHAR, Height VARCHAR); CREATE TABLE poker_player (Money_Rank VARCHAR, People_ID VARCHAR)
### Response:
### Response:
SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height 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 sum of Game with a Score that is w 104–90 (ot)?
### Context:
CREATE TABLE table_name_44 (game INTEGER, score VARCHAR)
### Response:
### Response:
SELECT SUM(game) FROM table_name_44 WHERE score = "w 104–90 (ot)"</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 did the Cosworth v8 engine get in 1972?
### Context:
CREATE TABLE table_name_42 (points VARCHAR, year VARCHAR, engine VARCHAR)
### Response:
### Response:
SELECT points FROM table_name_42 WHERE year = 1972 AND engine = "cosworth v8"</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 2007 when the 2010 is 3r?
### Context:
CREATE TABLE table_name_70 (Id VARCHAR)
### Response:
### Response:
SELECT 2007 FROM table_name_70 WHERE 2010 = "3r"</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 Time with a Score that is 65-19?
### Context:
CREATE TABLE table_name_81 (time VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT time FROM table_name_81 WHERE score = "65-19"</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 day is their record 13-15?
### Context:
CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_14 WHERE record = "13-15"</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 producer that produced a film with a production cost of $1,000,000?
### Context:
CREATE TABLE table_name_71 (producer VARCHAR, production_cost VARCHAR)
### Response:
### Response:
SELECT producer FROM table_name_71 WHERE production_cost = "$1,000,000"</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:
On what date was the result w 26–20?
### Context:
CREATE TABLE table_name_54 (date VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_54 WHERE result = "w 26–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:
What is the occupation of the candidate that resides in Windsor Junction?
### Context:
CREATE TABLE table_name_38 (occupation VARCHAR, residence VARCHAR)
### Response:
### Response:
SELECT occupation FROM table_name_38 WHERE residence = "windsor junction"</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 laps did Nick Heidfeld drive on grids larger than 4?
### Context:
CREATE TABLE table_name_77 (laps INTEGER, grid VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT SUM(laps) FROM table_name_77 WHERE grid > 4 AND driver = "nick heidfeld"</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 Location for the woodburn dragstrip?
### Context:
CREATE TABLE table_name_12 (location VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_12 WHERE name = "woodburn dragstrip"</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 episodes have Valerie?
### Context:
CREATE TABLE table_2140071_7 (episode VARCHAR, coach VARCHAR)
### Response:
### Response:
SELECT COUNT(episode) AS Summary FROM table_2140071_7 WHERE coach = "Valerie"</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 drivers used lola t92/00/ buick for their chassis/engine?
### Context:
CREATE TABLE table_23391714_1 (no VARCHAR, chassis_engine VARCHAR)
### Response:
### Response:
SELECT COUNT(no) FROM table_23391714_1 WHERE chassis_engine = "Lola T92/00/ Buick"</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 sum of the all around with a 37.75 total?
### Context:
CREATE TABLE table_name_68 (all_around INTEGER, total VARCHAR)
### Response:
### Response:
SELECT SUM(all_around) FROM table_name_68 WHERE total = 37.75</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 Unit has a Ratio of 1/32?
### Context:
CREATE TABLE table_name_55 (unit VARCHAR, ratio VARCHAR)
### Response:
### Response:
SELECT unit FROM table_name_55 WHERE ratio = "1/32"</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 lowest number of losses for Nottingham City with fewer than 0 wins?
### Context:
CREATE TABLE table_name_28 (losses INTEGER, team VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT MIN(losses) FROM table_name_28 WHERE team = "nottingham city" AND wins < 0</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 fastest lap when pole position was damon hill and the location was magny-cours?
### Context:
CREATE TABLE table_name_33 (fastest_lap VARCHAR, pole_position VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT fastest_lap FROM table_name_33 WHERE pole_position = "damon hill" AND location = "magny-cours"</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 distinct names of wines produced before the year of 2000 or after the year of 2010.
### Context:
CREATE TABLE WINE (Name VARCHAR, YEAR VARCHAR)
### Response:
### Response:
SELECT DISTINCT Name FROM WINE WHERE YEAR < 2000 OR YEAR > 2010</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 license for 2009-05-25 v 7.61
### Context:
CREATE TABLE table_19495707_1 (license VARCHAR, latest_release_date_and_version VARCHAR)
### Response:
### Response:
SELECT license FROM table_19495707_1 WHERE latest_release_date_and_version = "2009-05-25 v 7.61"</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 nationality is Erin Donohue?
### Context:
CREATE TABLE table_name_12 (nationality VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_12 WHERE name = "erin donohue"</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 TIE NUMBER WITH AN AWAY TEAM OF WREXHAM?
### Context:
CREATE TABLE table_name_52 (tie_no VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT tie_no FROM table_name_52 WHERE away_team = "wrexham"</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 bills where originally cosponsored in those years where the total of all amendments cosponsored was 0?
### Context:
CREATE TABLE table_18852984_2 (bills_originally_cosponsored VARCHAR, all_amendments_cosponsored VARCHAR)
### Response:
### Response:
SELECT bills_originally_cosponsored FROM table_18852984_2 WHERE all_amendments_cosponsored = 0</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 Char cells, Pixels and Hardware colours for the screen of the phone whose hardware model name is "LG-P760".
### Context:
CREATE TABLE phone (screen_mode VARCHAR, Hardware_Model_name VARCHAR); CREATE TABLE screen_mode (Char_cells VARCHAR, Pixels VARCHAR, Hardware_colours VARCHAR, Graphics_mode VARCHAR)
### Response:
### Response:
SELECT T1.Char_cells, T1.Pixels, T1.Hardware_colours FROM screen_mode AS T1 JOIN phone AS T2 ON T1.Graphics_mode = T2.screen_mode WHERE T2.Hardware_Model_name = "LG-P760"</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 status of the election featuring incumbent margaret kaiser?
### Context:
CREATE TABLE table_26416704_2 (status VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT status FROM table_26416704_2 WHERE incumbent = "Margaret Kaiser"</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 Bronze medal count when the Gold medals are larger than 1 and the silver are smaller than 0?
### Context:
CREATE TABLE table_name_71 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
### Response:
### Response:
SELECT MAX(bronze) FROM table_name_71 WHERE gold > 1 AND silver < 0</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 when the match Resulted in a draw?
### Context:
CREATE TABLE table_name_95 (date VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_95 WHERE result = "draw"</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 were the rowers who had a time of 7:39.70?
### Context:
CREATE TABLE table_name_18 (rowers VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT rowers FROM table_name_18 WHERE time = "7:39.70"</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 Investing Dragon has requested £100,000 and is supported by Entrepreneur Kay Russell?
### Context:
CREATE TABLE table_name_43 (investing_dragon_s_ VARCHAR, money_requested__£_ VARCHAR, entrepreneur_s_ VARCHAR)
### Response:
### Response:
SELECT investing_dragon_s_ FROM table_name_43 WHERE money_requested__£_ = "100,000" AND entrepreneur_s_ = "kay russell"</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 total associated with a Clean & jerk of 135, and a Snatch of 115?
### Context:
CREATE TABLE table_name_49 (total__kg_ VARCHAR, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
### Response:
### Response:
SELECT total__kg_ FROM table_name_49 WHERE clean_ & _jerk = 135 AND snatch = 115</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 club has less than 61 goals for and 55 goals against?
### Context:
CREATE TABLE table_name_33 (club VARCHAR, goals_for VARCHAR, goals_against VARCHAR)
### Response:
### Response:
SELECT club FROM table_name_33 WHERE goals_for < 61 AND goals_against = 55</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 greatest number of Losses for the team that had 1427 Against and more than 5 Wins?
### Context:
CREATE TABLE table_name_52 (losses INTEGER, against VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT MAX(losses) FROM table_name_52 WHERE against > 1427 AND wins > 5</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 Loser of the Game with a Result of 35-27?
### Context:
CREATE TABLE table_name_32 (loser VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT loser FROM table_name_32 WHERE result = "35-27"</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 reference when the strain is msb8?
### Context:
CREATE TABLE table_name_38 (reference VARCHAR, strain VARCHAR)
### Response:
### Response:
SELECT reference FROM table_name_38 WHERE strain = "msb8"</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 year made has a Quantity made of 4?
### Context:
CREATE TABLE table_name_63 (year_made VARCHAR, quantity_made VARCHAR)
### Response:
### Response:
SELECT year_made FROM table_name_63 WHERE quantity_made = "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 did the loss come from a Club of mumbles rfc?
### Context:
CREATE TABLE table_name_92 (lost VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT lost FROM table_name_92 WHERE club = "mumbles rfc"</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:
On what date did the United Kingdom have a catalog of FT 507?
### Context:
CREATE TABLE table_name_86 (date VARCHAR, region VARCHAR, catalog VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_86 WHERE region = "united kingdom" AND catalog = "ft 507"</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 SCORE WITH A TIE NUMBER OF 13?
### Context:
CREATE TABLE table_name_86 (score VARCHAR, tie_no VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_86 WHERE tie_no = "13"</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 was 10 (10) bought?
### Context:
CREATE TABLE table_1353096_1 (owned_since VARCHAR, channel_tv___dt__ VARCHAR)
### Response:
### Response:
SELECT owned_since FROM table_1353096_1 WHERE channel_tv___dt__ = "10 (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 was the record lowest temperature with a precipitation of 1.71 in.?
### Context:
CREATE TABLE table_26558_1 (record_low VARCHAR, precip VARCHAR)
### Response:
### Response:
SELECT record_low FROM table_26558_1 WHERE precip = "1.71 in."</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 GPU Frequency, when Frequency is 1.67 GHz, and when sSpec Number is SLBX9(A0)?
### Context:
CREATE TABLE table_name_71 (gpu_frequency VARCHAR, frequency VARCHAR, sspec_number VARCHAR)
### Response:
### Response:
SELECT gpu_frequency FROM table_name_71 WHERE frequency = "1.67 ghz" AND sspec_number = "slbx9(a0)"</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 Place of birth listed that has an Elevator of ALexander III, and an Elector of Ruggiero Di San Severino?
### Context:
CREATE TABLE table_name_51 (place_of_birth VARCHAR, elevator VARCHAR, elector VARCHAR)
### Response:
### Response:
SELECT place_of_birth FROM table_name_51 WHERE elevator = "alexander iii" AND elector = "ruggiero di san severino"</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 type of chipset is in the Precision t3400 model with the PCI Express graphics?
### Context:
CREATE TABLE table_name_97 (chipset VARCHAR, graphics VARCHAR, model VARCHAR)
### Response:
### Response:
SELECT chipset FROM table_name_97 WHERE graphics = "pci express" AND model = "precision t3400"</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 Country is listed for the Director Thomas Vinterberg?
### Context:
CREATE TABLE table_name_74 (country VARCHAR, director VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_74 WHERE director = "thomas vinterberg"</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 has less than 73 laps and a gearbox time?
### Context:
CREATE TABLE table_name_56 (team VARCHAR, laps VARCHAR, time_retired VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_56 WHERE laps < 73 AND time_retired = "gearbox"</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 lowest round number in which Will Wilcox was selected?
### Context:
CREATE TABLE table_name_55 (round INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MIN(round) FROM table_name_55 WHERE player = "will wilcox"</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 score for the game larger than 4 in series 3-2?
### Context:
CREATE TABLE table_name_77 (score VARCHAR, game VARCHAR, series VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_77 WHERE game > 4 AND series = "3-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 2FM for SW Ireland?
### Context:
CREATE TABLE table_name_91 (service_area VARCHAR)
### Response:
### Response:
SELECT 2 AS fm__mhz_ FROM table_name_91 WHERE service_area = "sw ireland"</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 director of the episode with a production code of 2393059?
### Context:
CREATE TABLE table_10953197_2 (director VARCHAR, production_code VARCHAR)
### Response:
### Response:
SELECT director FROM table_10953197_2 WHERE production_code = "2393059"</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 region is the city of Philadelphia located in?
### Context:
CREATE TABLE table_name_16 (region VARCHAR, city VARCHAR)
### Response:
### Response:
SELECT region FROM table_name_16 WHERE city = "philadelphia"</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 bodybuilder when Coventry was operating?
### Context:
CREATE TABLE table_28035004_1 (bodybuilder VARCHAR, operator VARCHAR)
### Response:
### Response:
SELECT bodybuilder FROM table_28035004_1 WHERE operator = "Coventry"</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:
In total, how much did the United States player George Archer earn with Wins lower than 24 and a rank that was higher than 5?
### Context:
CREATE TABLE table_name_28 (earnings__ VARCHAR, rank VARCHAR, player VARCHAR, country VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT COUNT(earnings__) AS $__ FROM table_name_28 WHERE country = "united states" AND wins < 24 AND player = "george archer" AND rank > 5</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 got second place when the winners were rafał mroczek & aneta piotrowska?
### Context:
CREATE TABLE table_15988037_4 (second_place VARCHAR, winner VARCHAR)
### Response:
### Response:
SELECT second_place FROM table_15988037_4 WHERE winner = "Rafał Mroczek & Aneta Piotrowska"</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 grid did the driver who earned 19 points start at?
### Context:
CREATE TABLE table_17244483_1 (grid VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT grid FROM table_17244483_1 WHERE points = "19"</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 Adminstration has a Season of 2000?
### Context:
CREATE TABLE table_name_56 (administration VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT administration FROM table_name_56 WHERE season = 2000</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 names and descriptions of the photos taken at the tourist attraction "film festival"?
### Context:
CREATE TABLE TOURIST_ATTRACTIONS (Tourist_Attraction_ID VARCHAR, Name VARCHAR); CREATE TABLE PHOTOS (Name VARCHAR, Description VARCHAR, Tourist_Attraction_ID VARCHAR)
### Response:
### Response:
SELECT T1.Name, T1.Description FROM PHOTOS AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID WHERE T2.Name = "film festival"</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 examples for the Australian æ?
### Context:
CREATE TABLE table_name_51 (examples VARCHAR, australian VARCHAR)
### Response:
### Response:
SELECT examples FROM table_name_51 WHERE australian = "æ"</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:
At which location did Rick Mears drive?
### Context:
CREATE TABLE table_15736385_1 (location VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT location FROM table_15736385_1 WHERE driver = "Rick Mears"</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 outcome of the Tournament in Buenos Aires?
### Context:
CREATE TABLE table_name_30 (outcome VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT outcome FROM table_name_30 WHERE tournament = "buenos aires"</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 mister international
### Context:
CREATE TABLE table_30007505_1 (mister_international INTEGER)
### Response:
### Response:
SELECT MIN(mister_international) FROM table_30007505_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 were the wins with more than 145 points, less than 17 races, and Sven Verbrugge as a passenger?
### Context:
CREATE TABLE table_name_12 (wins VARCHAR, races VARCHAR, points VARCHAR, passenger VARCHAR)
### Response:
### Response:
SELECT wins FROM table_name_12 WHERE points > 145 AND passenger = "sven verbrugge" AND races < 17</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 is the club founded that founed prsl in 2008 and the home city is carolina 1?
### Context:
CREATE TABLE table_name_95 (founded INTEGER, joined_prsl VARCHAR, home_city VARCHAR)
### Response:
### Response:
SELECT MAX(founded) FROM table_name_95 WHERE joined_prsl = 2008 AND home_city = "carolina 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:
For which country does Keith Fergus play?
### Context:
CREATE TABLE table_1515346_2 (country VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT country FROM table_1515346_2 WHERE player = "Keith Fergus"</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 of the replay game when watford was the away team?
### Context:
CREATE TABLE table_name_84 (score VARCHAR, tie_no VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_84 WHERE tie_no = "replay" AND away_team = "watford"</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 lowest market value (billion $) with a headquarter of usa , and the rank larger than 3, assets (billion$) larger than 208.34, and the company jpmorgan chase?
### Context:
CREATE TABLE table_name_2 (market_value__billion_ INTEGER, company VARCHAR, assets__billion_$_ VARCHAR, headquarters VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT MIN(market_value__billion_) AS $_ FROM table_name_2 WHERE headquarters = "usa" AND rank > 3 AND assets__billion_$_ > 208.34 AND company = "jpmorgan chase"</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 gold number when the total is 8 and bronze is more than 4?
### Context:
CREATE TABLE table_name_19 (gold INTEGER, total VARCHAR, bronze VARCHAR)
### Response:
### Response:
SELECT AVG(gold) FROM table_name_19 WHERE total = 8 AND bronze > 4</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.