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 mixed doubles for zhu lin
### Context:
CREATE TABLE table_14496232_2 (mixed_doubles VARCHAR, womens_singles VARCHAR)
### Response:
### Response:
SELECT mixed_doubles FROM table_14496232_2 WHERE womens_singles = "Zhu Lin"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 strokes off par was the player who scored 157?
### Context:
CREATE TABLE table_name_17 (to_par VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT COUNT(to_par) FROM table_name_17 WHERE total = 157</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When the Nokia corporation had an accreditation level of joyn, what was the accreditation type?
### Context:
CREATE TABLE table_name_5 (accreditation_type VARCHAR, accreditation_level VARCHAR, company_name VARCHAR)
### Response:
### Response:
SELECT accreditation_type FROM table_name_5 WHERE accreditation_level = "joyn" AND company_name = "nokia corporation"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season had less than 301 points and 17 races?
### Context:
CREATE TABLE table_name_28 (season VARCHAR, points VARCHAR, races VARCHAR)
### Response:
### Response:
SELECT season FROM table_name_28 WHERE points < 301 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:
Can you tell me the sum of the Pick # that has the CFL Team of edmonton?
### Context:
CREATE TABLE table_name_69 (pick__number INTEGER, cfl_team VARCHAR)
### Response:
### Response:
SELECT SUM(pick__number) FROM table_name_69 WHERE cfl_team = "edmonton"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Week 6 Oct 5 has a Week 14 Nov 30 of texas (11-1)?
### Context:
CREATE TABLE table_name_37 (week_6_oct_5 VARCHAR, week_14_nov_30 VARCHAR)
### Response:
### Response:
SELECT week_6_oct_5 FROM table_name_37 WHERE week_14_nov_30 = "texas (11-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:
Name the Event of sudesh peiris?
### Context:
CREATE TABLE table_name_93 (event VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT event FROM table_name_93 WHERE name = "sudesh peiris"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
If the Quillacollo Municipality is 93131, what is the Vinto Municipality minimum?
### Context:
CREATE TABLE table_2509113_2 (vinto_municipality INTEGER, quillacollo_municipality VARCHAR)
### Response:
### Response:
SELECT MIN(vinto_municipality) FROM table_2509113_2 WHERE quillacollo_municipality = 93131</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a linebacker at Tennessee?
### Context:
CREATE TABLE table_name_64 (player_name VARCHAR, position VARCHAR, college VARCHAR)
### Response:
### Response:
SELECT player_name FROM table_name_64 WHERE position = "linebacker" AND college = "tennessee"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Elevation of 11,158 feet 3401 m had what route?
### Context:
CREATE TABLE table_name_85 (route VARCHAR, elevation VARCHAR)
### Response:
### Response:
SELECT route FROM table_name_85 WHERE elevation = "11,158 feet 3401 m"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 vacator for georgia 2nd?
### Context:
CREATE TABLE table_2417340_4 (vacator VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT vacator FROM table_2417340_4 WHERE district = "Georgia 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:
Who won the round in Europe?
### Context:
CREATE TABLE table_name_1 (race_winner VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT race_winner FROM table_name_1 WHERE round = "europe"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 indoor number for the NER region?
### Context:
CREATE TABLE table_19534874_2 (indoor VARCHAR, region VARCHAR)
### Response:
### Response:
SELECT COUNT(indoor) FROM table_19534874_2 WHERE region = "NER"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game when the opponent was Magdaléna Rybáriková?
### Context:
CREATE TABLE table_18183850_12 (outcome VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT outcome FROM table_18183850_12 WHERE opponent = "Magdaléna Rybáriková"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a Date with 29 march 2008?
### Context:
CREATE TABLE table_name_27 (record VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_27 WHERE date = "29 march 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 was the interview subject in the 2-86 issue?
### Context:
CREATE TABLE table_1566848_7 (interview_subject VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT interview_subject FROM table_1566848_7 WHERE date = "2-86"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
The Home team of Sydney had which ground?
### Context:
CREATE TABLE table_name_1 (ground VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT ground FROM table_name_1 WHERE home_team = "sydney"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a Decision of osgood, and a Score of 6 – 7?
### Context:
CREATE TABLE table_name_76 (date VARCHAR, decision VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_76 WHERE decision = "osgood" AND score = "6 – 7"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the number of class aa for bridgeport and 1999-2000
### Context:
CREATE TABLE table_14601528_2 (class_aA VARCHAR, class_aAA VARCHAR, Bridgeport VARCHAR, school_year VARCHAR)
### Response:
### Response:
SELECT COUNT(class_aA) FROM table_14601528_2 WHERE class_aAA = Bridgeport AND school_year = "1999-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's the location attendance where high rebounds is nick collison (14)
### Context:
CREATE TABLE table_11964154_9 (location_attendance VARCHAR, high_rebounds VARCHAR)
### Response:
### Response:
SELECT location_attendance FROM table_11964154_9 WHERE high_rebounds = "Nick Collison (14)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What are the distinct names and nationalities of the architects who have ever built a mill?
### Context:
CREATE TABLE mill (Id VARCHAR); CREATE TABLE architect (name VARCHAR, nationality VARCHAR, id VARCHAR)
### Response:
### Response:
SELECT DISTINCT T1.name, T1.nationality FROM architect AS T1 JOIN mill AS t2 ON T1.id = T2.architect_id</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest against for when wins are greater than 14, draws is 0 and losses are 4
### Context:
CREATE TABLE table_name_3 (against INTEGER, wins VARCHAR, losses VARCHAR, draws VARCHAR)
### Response:
### Response:
SELECT MIN(against) FROM table_name_3 WHERE losses = 4 AND draws = 0 AND wins > 14</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What's the Date for the Label of Bertelsmann Music group and has a Region of Europe?
### Context:
CREATE TABLE table_name_36 (date VARCHAR, label VARCHAR, region VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_36 WHERE label = "bertelsmann music group" AND region = "europe"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 details for Marisa Ferretti Barth?
### Context:
CREATE TABLE table_name_55 (details VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT details FROM table_name_55 WHERE name = "marisa ferretti barth"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 congress was held in 2010?
### Context:
CREATE TABLE table_name_50 (con__gress VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT con__gress FROM table_name_50 WHERE date = "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:
What place did the golfer take whose country is South Africa?
### Context:
CREATE TABLE table_name_72 (place VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_72 WHERE country = "south africa"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 games of the team against the Los Angeles Kings after January 5?
### Context:
CREATE TABLE table_name_69 (game VARCHAR, opponent VARCHAR, january VARCHAR)
### Response:
### Response:
SELECT COUNT(game) FROM table_name_69 WHERE opponent = "los angeles kings" AND january > 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 is the constructor of the Swedish Grand Prix?
### Context:
CREATE TABLE table_1140082_2 (constructor VARCHAR, race VARCHAR)
### Response:
### Response:
SELECT constructor FROM table_1140082_2 WHERE race = "Swedish 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:
List the studios of each film and the number of films produced by that studio.
### Context:
CREATE TABLE film (Studio VARCHAR)
### Response:
### Response:
SELECT Studio, COUNT(*) FROM film GROUP BY Studio</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Position of the person with a First Election of 1988 as Vice Mayor 2009?
### Context:
CREATE TABLE table_name_64 (position VARCHAR, first_election VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_64 WHERE first_election = "1988 as vice mayor 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 gold total for lithuania with under 2 silvers?
### Context:
CREATE TABLE table_name_5 (gold INTEGER, nation VARCHAR, silver VARCHAR)
### Response:
### Response:
SELECT SUM(gold) FROM table_name_5 WHERE nation = "lithuania" AND silver < 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 quantity when the year of manufacture is 1900 and the class is mc?
### Context:
CREATE TABLE table_name_20 (quantity VARCHAR, year_s__of_manufacture VARCHAR, class VARCHAR)
### Response:
### Response:
SELECT quantity FROM table_name_20 WHERE year_s__of_manufacture = "1900" AND class = "mc"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 result on 1990-11-04?
### Context:
CREATE TABLE table_name_55 (result VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_55 WHERE date = "1990-11-04"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team has tony parker (10) as the high assists, kurt thomas (12) as the high rebounds?
### Context:
CREATE TABLE table_name_57 (team VARCHAR, high_assists VARCHAR, high_rebounds VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_57 WHERE high_assists = "tony parker (10)" AND high_rebounds = "kurt thomas (12)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game has jones (10) as the high rebounds?
### Context:
CREATE TABLE table_name_94 (game VARCHAR, high_rebounds VARCHAR)
### Response:
### Response:
SELECT game FROM table_name_94 WHERE high_rebounds = "jones (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 is the latest year with less than 0 points?
### Context:
CREATE TABLE table_name_54 (year INTEGER, points INTEGER)
### Response:
### Response:
SELECT MAX(year) FROM table_name_54 WHERE 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 was the home team when swansea city was the away team?
### Context:
CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_47 WHERE away_team = "swansea city"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was Date that where Triple was smaller than 26, and Game was 25?
### Context:
CREATE TABLE table_name_84 (date VARCHAR, triple VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_84 WHERE triple < 26 AND game = 25</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 theme is associated with a year before 2006 and Issue Price of $25.22?
### Context:
CREATE TABLE table_name_14 (theme VARCHAR, year VARCHAR, issue_price VARCHAR)
### Response:
### Response:
SELECT theme FROM table_name_14 WHERE year < 2006 AND issue_price = "$25.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:
When total goals is 11 what was the league apps (sub)?
### Context:
CREATE TABLE table_1112176_1 (league_apps__sub_ INTEGER, total_goals VARCHAR)
### Response:
### Response:
SELECT MAX(league_apps__sub_) FROM table_1112176_1 WHERE total_goals = 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:
What is the loss when the record is 38-33?
### Context:
CREATE TABLE table_name_67 (loss VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT loss FROM table_name_67 WHERE record = "38-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 is the maximum season with byu-uu score being 20–17 byu #19
### Context:
CREATE TABLE table_13665809_2 (season INTEGER, byu_uu_score VARCHAR)
### Response:
### Response:
SELECT MAX(season) FROM table_13665809_2 WHERE byu_uu_score = "20–17 BYU #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 is the position of the player born in 1984 with a height of 1.80m?
### Context:
CREATE TABLE table_name_20 (pos VARCHAR, born VARCHAR, height VARCHAR)
### Response:
### Response:
SELECT pos FROM table_name_20 WHERE born = "1984" AND height = "1.80"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 place when the score is 68-70-68=206?
### Context:
CREATE TABLE table_name_3 (place VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT place FROM table_name_3 WHERE score = 68 - 70 - 68 = 206</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 horse was induced in 2011 with a sire of cowboy p-12?
### Context:
CREATE TABLE table_name_77 (name_of_horse VARCHAR, year_inducted VARCHAR, broodmare_sire VARCHAR)
### Response:
### Response:
SELECT name_of_horse FROM table_name_77 WHERE year_inducted = 2011 AND broodmare_sire = "cowboy p-12"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Time has an Opponent of josh branham?
### Context:
CREATE TABLE table_name_3 (time VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT time FROM table_name_3 WHERE opponent = "josh branham"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Title of the movie directed by Aigars Grauba?
### Context:
CREATE TABLE table_name_36 (original_title VARCHAR, director VARCHAR)
### Response:
### Response:
SELECT original_title FROM table_name_36 WHERE director = "aigars grauba"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had the Chassis of march 762 and more than 0 points?
### Context:
CREATE TABLE table_name_64 (year VARCHAR, chassis VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT COUNT(year) FROM table_name_64 WHERE chassis = "march 762" 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:
Display the lowest score for candidate Mir-Hossein Mousavi when candidate Mohsen Rezaee scored 44809 votes
### Context:
CREATE TABLE table_23390604_1 (mir_hossein_mousavi INTEGER, mohsen_rezaee VARCHAR)
### Response:
### Response:
SELECT MIN(mir_hossein_mousavi) FROM table_23390604_1 WHERE mohsen_rezaee = 44809</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 years did Marienhof run, which featured Leonore Capell and lasted 10 years?
### Context:
CREATE TABLE table_name_88 (years VARCHAR, actor VARCHAR, soap_opera VARCHAR, duration VARCHAR)
### Response:
### Response:
SELECT years FROM table_name_88 WHERE soap_opera = "marienhof" AND duration = "10 years" AND actor = "leonore capell"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year when kurtis kraft 500f was the chassis?
### Context:
CREATE TABLE table_name_46 (year INTEGER, chassis VARCHAR)
### Response:
### Response:
SELECT SUM(year) FROM table_name_46 WHERE chassis = "kurtis kraft 500f"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 New Zealand, what's the value that has an unknown date and is an energy business?
### Context:
CREATE TABLE table_name_70 (value___usd__ VARCHAR, country VARCHAR, date VARCHAR, business VARCHAR)
### Response:
### Response:
SELECT value___usd__ FROM table_name_70 WHERE date = "unknown" AND business = "energy" AND country = "new zealand"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What game is the lowest with 1 draw and less than 7 points?
### Context:
CREATE TABLE table_name_43 (games INTEGER, drawn VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT MIN(games) FROM table_name_43 WHERE drawn = 1 AND points < 7</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the lowest round that Melvin Johnson played?
### Context:
CREATE TABLE table_name_99 (round INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MIN(round) FROM table_name_99 WHERE player = "melvin johnson"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Score, when Opponent is "Ivo Minář"?
### Context:
CREATE TABLE table_name_52 (score VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_52 WHERE opponent = "ivo minář"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 margin of victory for the waste management phoenix open tournament?
### Context:
CREATE TABLE table_name_69 (margin_of_victory VARCHAR, tournament VARCHAR)
### Response:
### Response:
SELECT margin_of_victory FROM table_name_69 WHERE tournament = "waste management phoenix 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 was the date if the driver was Robert Pressley?
### Context:
CREATE TABLE table_2260452_1 (date VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT date FROM table_2260452_1 WHERE driver = "Robert Pressley"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were written by Peter Winther?
### Context:
CREATE TABLE table_20704243_3 (written_by VARCHAR, directed_by VARCHAR)
### Response:
### Response:
SELECT COUNT(written_by) FROM table_20704243_3 WHERE directed_by = "Peter Winther"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 district of lawrence j. smith
### Context:
CREATE TABLE table_1341549_10 (district VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT district FROM table_1341549_10 WHERE incumbent = "Lawrence J. Smith"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the record after the January 6 game?
### Context:
CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_44 WHERE date = "january 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:
Which Record has a Method of submission (heel hook), a Round larger than 1, and a Time of 2:28?
### Context:
CREATE TABLE table_name_32 (record VARCHAR, time VARCHAR, method VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_32 WHERE method = "submission (heel hook)" AND round > 1 AND time = "2:28"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
In the game where they played the Pittsburgh Steelers, what was the attendance?
### Context:
CREATE TABLE table_name_66 (attendance VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT attendance FROM table_name_66 WHERE opponent = "pittsburgh steelers"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 middle school principal(s) in 2010-2011?
### Context:
CREATE TABLE table_25037577_1 (middle_school_principal VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT middle_school_principal FROM table_25037577_1 WHERE year = "2010-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 is the Rank (Pakistan) of the mountain that has a World Rank smaller than 11 and a Height smaller than 8126?
### Context:
CREATE TABLE table_name_72 (rank__pakistan_ VARCHAR, world_rank VARCHAR, height__m_ VARCHAR)
### Response:
### Response:
SELECT COUNT(rank__pakistan_) FROM table_name_72 WHERE world_rank < 11 AND height__m_ < 8126</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Attendance that has a Loss of paniagua (3–3)?
### Context:
CREATE TABLE table_name_99 (attendance INTEGER, loss VARCHAR)
### Response:
### Response:
SELECT MAX(attendance) FROM table_name_99 WHERE loss = "paniagua (3–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:
Which competition description's apparatus was ribbon?
### Context:
CREATE TABLE table_name_46 (competition_description VARCHAR, apparatus VARCHAR)
### Response:
### Response:
SELECT competition_description FROM table_name_46 WHERE apparatus = "ribbon"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 building's name that is 617 / 188 in height and ranked less than 6?
### Context:
CREATE TABLE table_name_47 (name VARCHAR, rank VARCHAR, height_feet___m VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_47 WHERE rank < 6 AND height_feet___m = "617 / 188"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Nation has a Bronze that is smaller than 10 with a Silver of 5?
### Context:
CREATE TABLE table_name_72 (nation VARCHAR, bronze VARCHAR, silver VARCHAR)
### Response:
### Response:
SELECT nation FROM table_name_72 WHERE bronze < 10 AND silver = 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 is listed as the Place of birth for the Elector of Soffredo?
### Context:
CREATE TABLE table_name_31 (place_of_birth VARCHAR, elector VARCHAR)
### Response:
### Response:
SELECT place_of_birth FROM table_name_31 WHERE elector = "soffredo"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What player is picked 302 in round 11?
### Context:
CREATE TABLE table_name_27 (player VARCHAR, round VARCHAR, pick VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_27 WHERE round = 11 AND pick = 302</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ANSI code has a GEO ID larger than 3809927140, and a Water (sqmi) smaller than 0.492, and a Pop (2010) of 37, and a Latitude larger than 48.245979?
### Context:
CREATE TABLE table_name_48 (ansi_code INTEGER, latitude VARCHAR, pop__2010_ VARCHAR, geo_id VARCHAR, water__sqmi_ VARCHAR)
### Response:
### Response:
SELECT MIN(ansi_code) FROM table_name_48 WHERE geo_id > 3809927140 AND water__sqmi_ < 0.492 AND pop__2010_ = 37 AND latitude > 48.245979</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 top 3 artists who have the largest number of songs works whose language is Bangla.
### Context:
CREATE TABLE song (artist_name VARCHAR, languages VARCHAR); CREATE TABLE artist (artist_name VARCHAR)
### Response:
### Response:
SELECT T1.artist_name FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name WHERE T2.languages = "bangla" GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 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:
how many college with player being rich voltzke
### Context:
CREATE TABLE table_14655985_1 (college VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT COUNT(college) FROM table_14655985_1 WHERE player = "Rich Voltzke"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time of sportfight 10?
### Context:
CREATE TABLE table_name_45 (time VARCHAR, event VARCHAR)
### Response:
### Response:
SELECT time FROM table_name_45 WHERE event = "sportfight 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 format for the 4 disc season that had less than 22 episodes and n/a for region 4?
### Context:
CREATE TABLE table_name_86 (format VARCHAR, region_4 VARCHAR, _number_episodes VARCHAR, _number_disc_s_ VARCHAR)
### Response:
### Response:
SELECT format FROM table_name_86 WHERE _number_episodes < 22 AND _number_disc_s_ = 4 AND region_4 = "n/a"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the lowest lost entry for a team with fewer than 21 goals for?
### Context:
CREATE TABLE table_name_39 (lost INTEGER, goals_for INTEGER)
### Response:
### Response:
SELECT MIN(lost) FROM table_name_39 WHERE goals_for < 21</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When the Score was 4-10, what was the Attendance?
### Context:
CREATE TABLE table_name_13 (attendance VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT attendance FROM table_name_13 WHERE score = "4-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 is the mean number of laps when the grid was 8?
### Context:
CREATE TABLE table_name_8 (laps INTEGER, grid VARCHAR)
### Response:
### Response:
SELECT AVG(laps) FROM table_name_8 WHERE grid = 8</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score for the loss of McDowell (12-7)?
### Context:
CREATE TABLE table_name_39 (score VARCHAR, loss VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_39 WHERE loss = "mcdowell (12-7)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the largest numbered?
### Context:
CREATE TABLE table_14723382_1 (division INTEGER)
### Response:
### Response:
SELECT MAX(division) FROM table_14723382_1</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which 2009–10 has a Rank 2013 of 18?
### Context:
CREATE TABLE table_name_87 (rank_2013 VARCHAR)
### Response:
### Response:
SELECT 2009 AS _10 FROM table_name_87 WHERE rank_2013 = "18"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Home Town has a Took Office of 1983, and a District larger than 15?
### Context:
CREATE TABLE table_name_60 (home_town VARCHAR, took_office VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT home_town FROM table_name_60 WHERE took_office = 1983 AND district > 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:
List names of all pilot aged 30 or younger in descending alphabetical order.
### Context:
CREATE TABLE pilot (Name VARCHAR, Age VARCHAR)
### Response:
### Response:
SELECT Name FROM pilot WHERE Age <= 30 ORDER BY Name DESC</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the extras were 6
### Context:
CREATE TABLE table_14070062_4 (points VARCHAR, try_bonus VARCHAR)
### Response:
### Response:
SELECT points FROM table_14070062_4 WHERE try_bonus = "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 maximum money list rank for Matt Hansen?
### Context:
CREATE TABLE table_24747844_2 (money_list_rank INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MAX(money_list_rank) FROM table_24747844_2 WHERE player = "Matt Hansen"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 long-term gain for collectibles coincides with ordinary income rate 15%?
### Context:
CREATE TABLE table_name_48 (long_term_gain_on_collectibles VARCHAR, ordinary_income_rate VARCHAR)
### Response:
### Response:
SELECT long_term_gain_on_collectibles FROM table_name_48 WHERE ordinary_income_rate = "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:
List the types of competition that have at most five competitions of that type.
### Context:
CREATE TABLE competition (Competition_type VARCHAR)
### Response:
### Response:
SELECT Competition_type FROM competition GROUP BY Competition_type HAVING COUNT(*) <= 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:
List all students' first names and last names who majored in 600.
### Context:
CREATE TABLE Student (Fname VARCHAR, Lname VARCHAR, Major VARCHAR)
### Response:
### Response:
SELECT Fname, Lname FROM Student WHERE Major = 600</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 what year is the type of record 'total attendance-regular season?
### Context:
CREATE TABLE table_21436373_5 (date_year VARCHAR, type_of_record VARCHAR)
### Response:
### Response:
SELECT date_year FROM table_21436373_5 WHERE type_of_record = "Total attendance-Regular season"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 grid number when Fonsi Nieto had more than 22 laps?
### Context:
CREATE TABLE table_name_59 (grid VARCHAR, rider VARCHAR, laps VARCHAR)
### Response:
### Response:
SELECT COUNT(grid) FROM table_name_59 WHERE rider = "fonsi nieto" AND laps > 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 attendance sum of the game on March 16, 1990 with a loss record?
### Context:
CREATE TABLE table_name_40 (attendance INTEGER, record VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT SUM(attendance) FROM table_name_40 WHERE record = "loss" AND date = "march 16, 1990"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 city has trojans as the team, and taylor as the school?
### Context:
CREATE TABLE table_name_43 (city VARCHAR, team VARCHAR, school VARCHAR)
### Response:
### Response:
SELECT city FROM table_name_43 WHERE team = "trojans" AND school = "taylor"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 gold medals were won in 1970?
### Context:
CREATE TABLE table_name_61 (gold VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT gold FROM table_name_61 WHERE year = "1970"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank has a s wicket at 40 and 28.42 is the average?
### Context:
CREATE TABLE table_name_66 (rank VARCHAR, s_wicket VARCHAR, average VARCHAR)
### Response:
### Response:
SELECT rank FROM table_name_66 WHERE s_wicket = "40" AND average = "28.42"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 line from Karratha to Port Hedland?
### Context:
CREATE TABLE table_name_74 (name__year_commissioned_ VARCHAR, from_to VARCHAR)
### Response:
### Response:
SELECT name__year_commissioned_ FROM table_name_74 WHERE from_to = "karratha to port hedland"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 athletes completed a trans 1 within 0:26?
### Context:
CREATE TABLE table_17085947_32 (athlete VARCHAR, trans_1 VARCHAR)
### Response:
### Response:
SELECT COUNT(athlete) FROM table_17085947_32 WHERE trans_1 = "0:26"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 party for the candidates edwin gray (dr)?
### Context:
CREATE TABLE table_2668393_18 (party VARCHAR, candidates VARCHAR)
### Response:
### Response:
SELECT party FROM table_2668393_18 WHERE candidates = "Edwin Gray (DR)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 result of a round greater than 3?
### Context:
CREATE TABLE table_name_55 (result VARCHAR, round INTEGER)
### Response:
### Response:
SELECT result FROM table_name_55 WHERE round > 3</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the smallest Draws with a Result of runner-up, and Losses larger than 1?
### Context:
CREATE TABLE table_name_60 (draws INTEGER, result VARCHAR, losses VARCHAR)
### Response:
### Response:
SELECT MIN(draws) FROM table_name_60 WHERE result = "runner-up" AND losses > 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 average AE 2011 ranking with a Forbes 2011 ranking of 24 and a FT 2011 ranking less than 44?
### Context:
CREATE TABLE table_name_21 (ae_2011 INTEGER, forbes_2011 VARCHAR, ft_2011 VARCHAR)
### Response:
### Response:
SELECT AVG(ae_2011) FROM table_name_21 WHERE forbes_2011 = 24 AND ft_2011 < 44</s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.