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:
What is the highest diameter when the latitude is 43.5s?
### Context:
CREATE TABLE table_name_3 (diameter__km_ INTEGER, latitude VARCHAR)
### Response:
### Response:
SELECT MAX(diameter__km_) FROM table_name_3 WHERE latitude = "43.5s"</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 Game did Rams Points equal 0?
### Context:
CREATE TABLE table_name_82 (game VARCHAR, rams_points VARCHAR)
### Response:
### Response:
SELECT game FROM table_name_82 WHERE rams_points = 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 won at stage 22?
### Context:
CREATE TABLE table_name_85 (winner VARCHAR, stage VARCHAR)
### Response:
### Response:
SELECT winner FROM table_name_85 WHERE stage = "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:
How many won when points against is 410?
### Context:
CREATE TABLE table_17510803_2 (won VARCHAR, points_against VARCHAR)
### Response:
### Response:
SELECT COUNT(won) FROM table_17510803_2 WHERE points_against = "410"</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 record when the year is after 1992, manager is tom kotchman and finish is 2nd?
### Context:
CREATE TABLE table_name_51 (record VARCHAR, finish VARCHAR, year VARCHAR, manager VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_51 WHERE year > 1992 AND manager = "tom kotchman" AND finish = "2nd"</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 years was there a To par of +1?
### Context:
CREATE TABLE table_name_45 (year_s__won VARCHAR, to_par VARCHAR)
### Response:
### Response:
SELECT year_s__won FROM table_name_45 WHERE to_par = "+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 side does Ryan Overland Bat/Throws from?
### Context:
CREATE TABLE table_name_9 (bats_throws VARCHAR, players VARCHAR)
### Response:
### Response:
SELECT bats_throws FROM table_name_9 WHERE players = "ryan overland"</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 attended the Scottish Cup on 29.02.2000?
### Context:
CREATE TABLE table_name_60 (attendance VARCHAR, competition VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT attendance FROM table_name_60 WHERE competition = "scottish cup" AND date = "29.02.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 is the 2012 population of Indonesia?
### Context:
CREATE TABLE table_28741_1 (population_2012_ VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT population_2012_ FROM table_28741_1 WHERE country = "Indonesia"</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 Venue with a Result of 10–0, and a Score with 3–0?
### Context:
CREATE TABLE table_name_64 (venue VARCHAR, result VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_64 WHERE result = "10–0" AND score = "3–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 distance for the team time trial?
### Context:
CREATE TABLE table_name_26 (distance VARCHAR, type VARCHAR)
### Response:
### Response:
SELECT distance FROM table_name_26 WHERE type = "team time trial"</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 debuts in Europe have less than 76 goals, more than 151 games, and a rank greater than 5?
### Context:
CREATE TABLE table_name_77 (debut_in_europe VARCHAR, rank VARCHAR, goals VARCHAR, games VARCHAR)
### Response:
### Response:
SELECT COUNT(debut_in_europe) FROM table_name_77 WHERE goals < 76 AND games > 151 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:
Show the stadium name and capacity with most number of concerts in year 2014 or after.
### Context:
CREATE TABLE stadium (name VARCHAR, capacity VARCHAR, stadium_id VARCHAR); CREATE TABLE concert (stadium_id VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT T2.name, T2.capacity FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.year >= 2014 GROUP BY T2.stadium_id 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 was the attendance at war memorial stadium?
### Context:
CREATE TABLE table_name_8 (attenmdance VARCHAR, stadium VARCHAR)
### Response:
### Response:
SELECT attenmdance FROM table_name_8 WHERE stadium = "war memorial stadium"</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 has tries less than 24 and 0 points?
### Context:
CREATE TABLE table_name_38 (year VARCHAR, tries VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_38 WHERE tries < 24 AND points = 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's the clock speed of the model that costs $910?
### Context:
CREATE TABLE table_12740151_8 (clock_speed VARCHAR, price___usd__ VARCHAR)
### Response:
### Response:
SELECT clock_speed FROM table_12740151_8 WHERE price___usd__ = "$910"</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 Place has a To par of –4?
### Context:
CREATE TABLE table_name_92 (place VARCHAR, to_par VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_92 WHERE to_par = "–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 Block A when Prince Devitt is Devitt (9:53)?
### Context:
CREATE TABLE table_name_49 (block_a VARCHAR, prince_devitt VARCHAR)
### Response:
### Response:
SELECT block_a FROM table_name_49 WHERE prince_devitt = "devitt (9:53)"</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 number 3 that had a number 2 of Delfina and a Final of Pedro?
### Context:
CREATE TABLE table_name_98 (no3 VARCHAR, no2 VARCHAR, final VARCHAR)
### Response:
### Response:
SELECT no3 FROM table_name_98 WHERE no2 = "delfina" AND final = "pedro"</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 total goals were made at the game on 15 November 1989?
### Context:
CREATE TABLE table_name_81 (goal VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT COUNT(goal) FROM table_name_81 WHERE date = "15 november 1989"</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 number of wins for 30 starts
### Context:
CREATE TABLE table_2181798_1 (wins VARCHAR, starts VARCHAR)
### Response:
### Response:
SELECT COUNT(wins) FROM table_2181798_1 WHERE starts = 30</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 opponents are on the date July 22?
### Context:
CREATE TABLE table_23612439_2 (opponent VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_23612439_2 WHERE date = "July 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:
Overall of 62 is what average round?
### Context:
CREATE TABLE table_name_42 (round INTEGER, overall VARCHAR)
### Response:
### Response:
SELECT AVG(round) FROM table_name_42 WHERE overall = 62</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 notes regarding the scout x-4 vehicle which ceased operation in June 1971?
### Context:
CREATE TABLE table_name_82 (notes VARCHAR, vehicle VARCHAR, ceased_operation VARCHAR)
### Response:
### Response:
SELECT notes FROM table_name_82 WHERE vehicle = "scout x-4" AND ceased_operation = "june 1971"</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 long figure when gain is less than 0?
### Context:
CREATE TABLE table_name_28 (long INTEGER, gain INTEGER)
### Response:
### Response:
SELECT AVG(long) FROM table_name_28 WHERE gain < 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:
Which artist has a serial number of BOONCD1?
### Context:
CREATE TABLE table_name_68 (artist VARCHAR, number VARCHAR)
### Response:
### Response:
SELECT artist FROM table_name_68 WHERE number = "booncd1"</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 title that aired on 5 august 1967
### Context:
CREATE TABLE table_20345624_2 (title VARCHAR, original_airdate VARCHAR)
### Response:
### Response:
SELECT COUNT(title) FROM table_20345624_2 WHERE original_airdate = "5 August 1967"</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 attendance on week 13?
### Context:
CREATE TABLE table_name_37 (attendance INTEGER, week VARCHAR)
### Response:
### Response:
SELECT MAX(attendance) FROM table_name_37 WHERE week = 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:
What episode number in the series originally aired on February 28, 1992?
### Context:
CREATE TABLE table_2468961_2 (no_in_series INTEGER, original_air_date VARCHAR)
### Response:
### Response:
SELECT MIN(no_in_series) FROM table_2468961_2 WHERE original_air_date = "February 28, 1992"</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 league had a playoffs result of a lost semifinal?
### Context:
CREATE TABLE table_name_31 (league VARCHAR, playoffs VARCHAR)
### Response:
### Response:
SELECT league FROM table_name_31 WHERE playoffs = "lost semifinal"</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 attendance for the game after week 1 against the New York Jets?
### Context:
CREATE TABLE table_name_87 (attendance INTEGER, week VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT MAX(attendance) FROM table_name_87 WHERE week > 1 AND opponent = "new york jets"</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 June 22?
### Context:
CREATE TABLE table_name_82 (loss VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT loss FROM table_name_82 WHERE date = "june 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:
In what year is the status of won?
### Context:
CREATE TABLE table_name_72 (year VARCHAR, status VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_72 WHERE status = "won"</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 air-dates of the episodes before episode 4 that had a BBC One weekly ranking of 6?
### Context:
CREATE TABLE table_name_34 (airdate VARCHAR, episode_no VARCHAR, bbc_one_weekly_ranking VARCHAR)
### Response:
### Response:
SELECT airdate FROM table_name_34 WHERE episode_no < 4 AND bbc_one_weekly_ranking = 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:
What number is the Monaco Grand Prix?
### Context:
CREATE TABLE table_1132568_3 (rd VARCHAR, grand_prix VARCHAR)
### Response:
### Response:
SELECT rd FROM table_1132568_3 WHERE grand_prix = "Monaco 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:
Which match had the largest crowd size where the away team was North Melbourne?
### Context:
CREATE TABLE table_name_43 (crowd INTEGER, away_team VARCHAR)
### Response:
### Response:
SELECT MAX(crowd) FROM table_name_43 WHERE away_team = "north melbourne"</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 silver owned by a nation that is not ranked number 1?
### Context:
CREATE TABLE table_name_41 (silver INTEGER, rank INTEGER)
### Response:
### Response:
SELECT MIN(silver) FROM table_name_41 WHERE rank < 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 lowest amount of money that Craig Stadler won?
### Context:
CREATE TABLE table_name_64 (money___ INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MIN(money___) AS $__ FROM table_name_64 WHERE player = "craig stadler"</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 ships are named Monge?
### Context:
CREATE TABLE table_name_10 (ordered VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT COUNT(ordered) FROM table_name_10 WHERE name = "monge"</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 City of license has a Call sign of w220ba?
### Context:
CREATE TABLE table_name_64 (city_of_license VARCHAR, call_sign VARCHAR)
### Response:
### Response:
SELECT city_of_license FROM table_name_64 WHERE call_sign = "w220ba"</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 has the Artist of Hiroyuki Takami?
### Context:
CREATE TABLE table_name_42 (type VARCHAR, artist VARCHAR)
### Response:
### Response:
SELECT type FROM table_name_42 WHERE artist = "hiroyuki takami"</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 is the smallest evening gown score when the interview score was more than 9.164, the swimsuit stat was less than 9.35, and the average is less than 9.233?
### Context:
CREATE TABLE table_name_63 (evening_gown INTEGER, average VARCHAR, interview VARCHAR, swimsuit VARCHAR)
### Response:
### Response:
SELECT MIN(evening_gown) FROM table_name_63 WHERE interview > 9.164 AND swimsuit < 9.35 AND average < 9.233</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 artist who worked on the stories published in 1966?
### Context:
CREATE TABLE table_23963073_1 (artist VARCHAR, date_of_publication VARCHAR)
### Response:
### Response:
SELECT artist FROM table_23963073_1 WHERE date_of_publication = 1966</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 date of the Mariners game that had a loss of Segui (0-5)?
### Context:
CREATE TABLE table_name_77 (date VARCHAR, loss VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_77 WHERE loss = "segui (0-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:
How many times was the high points david lee (30)
### Context:
CREATE TABLE table_23248869_8 (date VARCHAR, high_points VARCHAR)
### Response:
### Response:
SELECT COUNT(date) FROM table_23248869_8 WHERE high_points = "David Lee (30)"</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 day of January was the record 10-29-2?
### Context:
CREATE TABLE table_27539272_7 (january INTEGER, record VARCHAR)
### Response:
### Response:
SELECT MAX(january) FROM table_27539272_7 WHERE record = "10-29-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:
Where was the game site for the game that had a packers record of 2-2?
### Context:
CREATE TABLE table_name_37 (game_site VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT game_site FROM table_name_37 WHERE record = "2-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 name of the player acquired via import and larger than 22?
### Context:
CREATE TABLE table_name_55 (name VARCHAR, acquisition_via VARCHAR, number VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_55 WHERE acquisition_via = "import" AND number > 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 is the lowest Muslim (% of Total population) of a year after 2011?
### Context:
CREATE TABLE table_name_37 (muslim___percentage_of_total_population_ INTEGER, census_year INTEGER)
### Response:
### Response:
SELECT MIN(muslim___percentage_of_total_population_) FROM table_name_37 WHERE census_year > 2011</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 type for the brand herceptin with an approval date of before 2006?
### Context:
CREATE TABLE table_name_5 (type VARCHAR, approval_date VARCHAR, brand_name VARCHAR)
### Response:
### Response:
SELECT type FROM table_name_5 WHERE approval_date < 2006 AND brand_name = "herceptin"</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 Semi finalists had a Week of may 15?
### Context:
CREATE TABLE table_name_30 (semi_finalists VARCHAR, week VARCHAR)
### Response:
### Response:
SELECT semi_finalists FROM table_name_30 WHERE week = "may 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 class before 1990 has points of 33?
### Context:
CREATE TABLE table_name_66 (class VARCHAR, year VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT class FROM table_name_66 WHERE year < 1990 AND points = 33</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 overall record in the game won by D. Klein (2-0)?
### Context:
CREATE TABLE table_27862483_3 (overall_record VARCHAR, win VARCHAR)
### Response:
### Response:
SELECT overall_record FROM table_27862483_3 WHERE win = "D. Klein (2-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 greatest interview that has a swimsuit less than 8.838?
### Context:
CREATE TABLE table_name_98 (interview INTEGER, swimsuit INTEGER)
### Response:
### Response:
SELECT MAX(interview) FROM table_name_98 WHERE swimsuit < 8.838</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:
Swimmer Audrey Lacroix finished in what time?
### Context:
CREATE TABLE table_name_20 (time VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT time FROM table_name_20 WHERE name = "audrey lacroix"</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 Drawn number with a Points against of correct as of 08:50 10 may 2009?
### Context:
CREATE TABLE table_name_11 (drawn VARCHAR, points_against VARCHAR)
### Response:
### Response:
SELECT drawn FROM table_name_11 WHERE points_against = "correct as of 08:50 10 may 2009"</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 administrative panel value with an agricultural panel less than 1 and a labour panel value less than 5?
### Context:
CREATE TABLE table_name_56 (administrative_panel INTEGER, agricultural_panel VARCHAR, labour_panel VARCHAR)
### Response:
### Response:
SELECT MAX(administrative_panel) FROM table_name_56 WHERE agricultural_panel < 1 AND labour_panel < 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 record on October 8, 1989?
### Context:
CREATE TABLE table_16028499_2 (record VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT record FROM table_16028499_2 WHERE date = "October 8, 1989"</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 entered service in 2000?
### Context:
CREATE TABLE table_name_70 (type VARCHAR, entered_service VARCHAR)
### Response:
### Response:
SELECT type FROM table_name_70 WHERE entered_service = "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 was the total games played at the Staples Center?
### Context:
CREATE TABLE table_name_56 (game INTEGER, location VARCHAR)
### Response:
### Response:
SELECT SUM(game) FROM table_name_56 WHERE location = "staples center"</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 every value for TDP if model is x53xx?
### Context:
CREATE TABLE table_2467150_2 (tdp VARCHAR, model__list_ VARCHAR)
### Response:
### Response:
SELECT tdp FROM table_2467150_2 WHERE model__list_ = "X53xx"</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 qual for rank of 9
### Context:
CREATE TABLE table_name_78 (qual VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT qual FROM table_name_78 WHERE rank = "9"</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 loss/gain when the affiliation was solidarity?
### Context:
CREATE TABLE table_25818630_2 (loss_gain VARCHAR, affiliation VARCHAR)
### Response:
### Response:
SELECT loss_gain FROM table_25818630_2 WHERE affiliation = "Solidarity"</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 that made the record 47-49?
### Context:
CREATE TABLE table_name_22 (score VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_22 WHERE record = "47-49"</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 id and local authority of the station whose maximum precipitation is higher than 50.
### Context:
CREATE TABLE weekly_weather (station_id VARCHAR, precipitation INTEGER); CREATE TABLE station (id VARCHAR, local_authority VARCHAR)
### Response:
### Response:
SELECT t2.id, t2.local_authority FROM weekly_weather AS t1 JOIN station AS t2 ON t1.station_id = t2.id GROUP BY t1.station_id HAVING MAX(t1.precipitation) > 50</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 genre of the Chinese title 摸摸瓦力欧制造, which has a single-player game mode?
### Context:
CREATE TABLE table_name_17 (genre VARCHAR, game_modes VARCHAR, chinese_title VARCHAR)
### Response:
### Response:
SELECT genre FROM table_name_17 WHERE game_modes = "single-player" AND chinese_title = "摸摸瓦力欧制造"</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 1 with nîmes olympique (d2) as team 2?
### Context:
CREATE TABLE table_name_66 (team_1 VARCHAR, team_2 VARCHAR)
### Response:
### Response:
SELECT team_1 FROM table_name_66 WHERE team_2 = "nîmes olympique (d2)"</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 English name for the Chinese name of 蘇永康 later than 1974?
### Context:
CREATE TABLE table_name_30 (english_name VARCHAR, year_signed VARCHAR, chinese_name VARCHAR)
### Response:
### Response:
SELECT english_name FROM table_name_30 WHERE year_signed > 1974 AND chinese_name = "蘇永康"</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 final score of the game against opponent Ana Ivanovic?
### Context:
CREATE TABLE table_name_75 (score VARCHAR, opponent_in_the_final VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_75 WHERE opponent_in_the_final = "ana ivanovic"</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 constructor when the chassis is talbot-lago t26c and the driver is charles pozzi?
### Context:
CREATE TABLE table_name_78 (constructor VARCHAR, chassis VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT constructor FROM table_name_78 WHERE chassis = "talbot-lago t26c" AND driver = "charles pozzi"</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 districts have Bart Stupak as the incumbent?
### Context:
CREATE TABLE table_1341423_22 (district VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT COUNT(district) FROM table_1341423_22 WHERE incumbent = "Bart Stupak"</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 imperfect stem for the word that has a future stem of ikusiko?
### Context:
CREATE TABLE table_name_93 (imperfect_stem VARCHAR, future_stem VARCHAR)
### Response:
### Response:
SELECT imperfect_stem FROM table_name_93 WHERE future_stem = "ikusiko"</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:
Score of 0–0, and a Date of 02-jan-64 had what result?
### Context:
CREATE TABLE table_name_11 (result VARCHAR, score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_11 WHERE score = "0–0" AND date = "02-jan-64"</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 season is Tim Mikkelson player of the year?
### Context:
CREATE TABLE table_name_87 (season VARCHAR, player_of_the_year VARCHAR)
### Response:
### Response:
SELECT season FROM table_name_87 WHERE player_of_the_year = "tim mikkelson"</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 connection speed when launched on 07.06.2005?
### Context:
CREATE TABLE table_19246_1 (connection_speed VARCHAR, launch_date__ddmmyyyy_ VARCHAR)
### Response:
### Response:
SELECT connection_speed FROM table_19246_1 WHERE launch_date__ddmmyyyy_ = "07.06.2005"</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 year was the ctc-3 model built?
### Context:
CREATE TABLE table_name_41 (year_built VARCHAR, model VARCHAR)
### Response:
### Response:
SELECT year_built FROM table_name_41 WHERE model = "ctc-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 date did mehmet okur (24) have the most points?
### Context:
CREATE TABLE table_name_14 (date VARCHAR, high_points VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_14 WHERE high_points = "mehmet okur (24)"</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:
Show the location name and code with the least documents.
### Context:
CREATE TABLE Document_locations (location_code VARCHAR); CREATE TABLE Ref_locations (location_name VARCHAR, location_code VARCHAR)
### Response:
### Response:
SELECT T2.location_name, T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code = T2.location_code GROUP BY T1.location_code ORDER BY COUNT(*) 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 was the average crowd size for the game when the Gold Coast Blaze was the home team?
### Context:
CREATE TABLE table_name_77 (crowd INTEGER, home_team VARCHAR)
### Response:
### Response:
SELECT AVG(crowd) FROM table_name_77 WHERE home_team = "gold coast blaze"</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 Entered service date of the H1 Locomotive?
### Context:
CREATE TABLE table_name_54 (entered_service VARCHAR, locomotive VARCHAR)
### Response:
### Response:
SELECT entered_service FROM table_name_54 WHERE locomotive = "h1"</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 visitor in the game that led to a 39-20-6 record?
### Context:
CREATE TABLE table_name_96 (visitor VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT visitor FROM table_name_96 WHERE record = "39-20-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:
What is the total area of drakenstein and a population less than 251,262?
### Context:
CREATE TABLE table_name_32 (area__km_2__ VARCHAR, name VARCHAR, population__2011_ VARCHAR)
### Response:
### Response:
SELECT COUNT(area__km_2__) FROM table_name_32 WHERE name = "drakenstein" AND population__2011_ < 251 OFFSET 262</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 the game played against the L.A. Lakers, where was the match played and what was the attendance level?
### Context:
CREATE TABLE table_name_80 (location_attendance VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT location_attendance FROM table_name_80 WHERE team = "l.a. lakers"</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 points for the Seven Sisters RFC club?
### Context:
CREATE TABLE table_name_71 (points VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT points FROM table_name_71 WHERE club = "seven sisters 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:
What is Time, when Location is "Savannah, Georgia , United States"?
### Context:
CREATE TABLE table_name_63 (time VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT time FROM table_name_63 WHERE location = "savannah, georgia , 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:
How many civilians died in the conflict that had a total of 1,130 casualties?
### Context:
CREATE TABLE table_name_95 (civilian_deaths VARCHAR, total_casualties VARCHAR)
### Response:
### Response:
SELECT civilian_deaths FROM table_name_95 WHERE total_casualties = "1,130"</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 listed for the Week 3 Sept 8 that has a Week 2 Sept 2 of Florida State (2-0) (4)?
### Context:
CREATE TABLE table_name_51 (week_3_sept_8 VARCHAR, week_2_sept_2 VARCHAR)
### Response:
### Response:
SELECT week_3_sept_8 FROM table_name_51 WHERE week_2_sept_2 = "florida state (2-0) (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:
How low is the Attendance that has an Opponent of devil rays and a Date of may 13?
### Context:
CREATE TABLE table_name_15 (attendance INTEGER, opponent VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT MIN(attendance) FROM table_name_15 WHERE opponent = "devil rays" AND date = "may 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:
What is the total when the score points show Olympic bronze medalist?
### Context:
CREATE TABLE table_name_50 (total VARCHAR, score_points VARCHAR)
### Response:
### Response:
SELECT total FROM table_name_50 WHERE score_points = "olympic bronze medalist"</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 losing team plays hockey?
### Context:
CREATE TABLE table_name_72 (loser VARCHAR, sport VARCHAR)
### Response:
### Response:
SELECT loser FROM table_name_72 WHERE sport = "hockey"</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 coaster is located in sandusky, Ohio?
### Context:
CREATE TABLE table_name_87 (coaster_name VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT coaster_name FROM table_name_87 WHERE location = "sandusky, ohio"</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 nationality of the Jazz player 1977-79?
### Context:
CREATE TABLE table_name_30 (nationality VARCHAR, years_for_jazz VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_30 WHERE years_for_jazz = "1977-79"</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:
Can you tell me the Steals that has the Place of 6?
### Context:
CREATE TABLE table_name_13 (steals VARCHAR, place VARCHAR)
### Response:
### Response:
SELECT steals FROM table_name_13 WHERE place = 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:
What is the lowest reg gp of the player with a round # more than 2, a pick # of 80, and a PI GP larger than 0?
### Context:
CREATE TABLE table_name_69 (reg_gp INTEGER, pl_gp VARCHAR, rd__number VARCHAR, pick__number VARCHAR)
### Response:
### Response:
SELECT MIN(reg_gp) FROM table_name_69 WHERE rd__number > 2 AND pick__number = 80 AND pl_gp > 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:
When Efrain Valdez was pitching, what was the highest home run?
### Context:
CREATE TABLE table_name_82 (home_run INTEGER, opposing_pitcher VARCHAR)
### Response:
### Response:
SELECT MAX(home_run) FROM table_name_82 WHERE opposing_pitcher = "efrain valdez"</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 Year has a cause of firedamp and a Death toll larger than 11?
### Context:
CREATE TABLE table_name_87 (year INTEGER, cause VARCHAR, death_toll VARCHAR)
### Response:
### Response:
SELECT SUM(year) FROM table_name_87 WHERE cause = "firedamp" AND death_toll > 11</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 combination classifications have the winner as Erik Zabel and a points classification as Alessandro Petacchi
### Context:
CREATE TABLE table_15059783_1 (combination_classification VARCHAR, points_classification VARCHAR, winner VARCHAR)
### Response:
### Response:
SELECT COUNT(combination_classification) FROM table_15059783_1 WHERE points_classification = "Alessandro Petacchi" AND winner = "Erik Zabel"</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 location is farmer city speedway?
### Context:
CREATE TABLE table_16275828_4 (location VARCHAR, track_name VARCHAR)
### Response:
### Response:
SELECT location FROM table_16275828_4 WHERE track_name = "Farmer City Speedway"</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 attendance has astros as the opponent, and april 29 as the date?
### Context:
CREATE TABLE table_name_69 (attendance INTEGER, opponent VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT SUM(attendance) FROM table_name_69 WHERE opponent = "astros" AND date = "april 29"</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 lost with tie of 0 and drawn of 47
### Context:
CREATE TABLE table_name_20 (lost VARCHAR, tied VARCHAR, drawn VARCHAR)
### Response:
### Response:
SELECT lost FROM table_name_20 WHERE tied = "0" AND drawn = "47"</s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.