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:
Who played in group 8 when Persinab Nabire played in Group 12?
### Context:
CREATE TABLE table_19523142_5 (group_8 VARCHAR, group_12 VARCHAR)
### Response:
### Response:
SELECT group_8 FROM table_19523142_5 WHERE group_12 = "Persinab Nabire"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 product type and name for the products with price higher than 1000 or lower than 500.
### Context:
CREATE TABLE products (product_type_code VARCHAR, product_name VARCHAR, product_price VARCHAR)
### Response:
### Response:
SELECT product_type_code, product_name FROM products WHERE product_price > 1000 OR product_price < 500</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the county with the biggest population.
### Context:
CREATE TABLE county (County_name VARCHAR, Population VARCHAR)
### Response:
### Response:
SELECT County_name FROM county ORDER BY Population DESC LIMIT 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the country when the city is gafsa?
### Context:
CREATE TABLE table_name_1 (country VARCHAR, city VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_1 WHERE city = "gafsa"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lines have fewer than 44 stations and fewer than 881 riders per mile?
### Context:
CREATE TABLE table_name_44 (lines VARCHAR, stations VARCHAR, rider_per_mile VARCHAR)
### Response:
### Response:
SELECT COUNT(lines) FROM table_name_44 WHERE stations < 44 AND rider_per_mile < 881</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tournament venue has a Tournament Champion of duke and a Record of 15–1?
### Context:
CREATE TABLE table_name_33 (tournament_venue VARCHAR, tournament_champion VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT tournament_venue FROM table_name_33 WHERE tournament_champion = "duke" AND record = "15–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 number conceded for hte team that had less than 19 points, played more than 18 games and had a position less than 10?
### Context:
CREATE TABLE table_name_65 (conceded INTEGER, played VARCHAR, points VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT AVG(conceded) FROM table_name_65 WHERE points < 19 AND position < 10 AND played > 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:
What was Dave Hill's score?
### Context:
CREATE TABLE table_name_85 (score VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_85 WHERE player = "dave hill"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average decile of Westport South School?
### Context:
CREATE TABLE table_name_5 (decile INTEGER, name VARCHAR)
### Response:
### Response:
SELECT AVG(decile) FROM table_name_5 WHERE name = "westport south school"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 model of the car whose weight is below the average weight.
### Context:
CREATE TABLE CARS_DATA (Id VARCHAR, Weight INTEGER); CREATE TABLE CARS_DATA (Weight INTEGER); CREATE TABLE CAR_NAMES (model VARCHAR, MakeId VARCHAR)
### Response:
### Response:
SELECT T1.model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id WHERE T2.Weight < (SELECT AVG(Weight) FROM CARS_DATA)</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Wins with Losses larger than 1?
### Context:
CREATE TABLE table_name_48 (wins INTEGER, losses INTEGER)
### Response:
### Response:
SELECT MAX(wins) FROM table_name_48 WHERE 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:
How much did the home team st kilda score?
### Context:
CREATE TABLE table_name_76 (home_team VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_76 WHERE home_team = "st kilda"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 downhill has 7 overalls?
### Context:
CREATE TABLE table_name_90 (downhill VARCHAR, overall VARCHAR)
### Response:
### Response:
SELECT downhill FROM table_name_90 WHERE overall = "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:
how many runners-up with nation being india
### Context:
CREATE TABLE table_12303563_2 (runners_up VARCHAR, nation VARCHAR)
### Response:
### Response:
SELECT COUNT(runners_up) FROM table_12303563_2 WHERE nation = "India"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 minimum number of episodes in any of the series?
### Context:
CREATE TABLE table_1949994_8 (episodes INTEGER)
### Response:
### Response:
SELECT MIN(episodes) FROM table_1949994_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 is the wins average when 17 games were lost?
### Context:
CREATE TABLE table_name_83 (wins INTEGER, losses VARCHAR)
### Response:
### Response:
SELECT AVG(wins) FROM table_name_83 WHERE losses = 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:
How many years have a Pick of 12, and a Position of dt, and a College of penn state?
### Context:
CREATE TABLE table_name_20 (year VARCHAR, college VARCHAR, pick VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT COUNT(year) FROM table_name_20 WHERE pick = "12" AND position = "dt" AND college = "penn state"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game with the score l 96–103 (ot)?
### Context:
CREATE TABLE table_27756314_10 (game INTEGER, score VARCHAR)
### Response:
### Response:
SELECT MAX(game) FROM table_27756314_10 WHERE score = "L 96–103 (OT)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many teams finished in 8th in 2008?
### Context:
CREATE TABLE table_20140132_1 (team VARCHAR, position_in_2008 VARCHAR)
### Response:
### Response:
SELECT COUNT(team) FROM table_20140132_1 WHERE position_in_2008 = "8th"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 headquarters shared by more than two companies.
### Context:
CREATE TABLE Companies (Headquarters VARCHAR)
### Response:
### Response:
SELECT Headquarters FROM Companies GROUP BY Headquarters HAVING COUNT(*) > 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 eccentricity when the semimajor axis is 20 au?
### Context:
CREATE TABLE table_name_75 (eccentricity VARCHAR, semimajor_axis___au__ VARCHAR)
### Response:
### Response:
SELECT eccentricity FROM table_name_75 WHERE semimajor_axis___au__ = "20 au"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stadium and number of people in attendance when the team record was 45-22.
### Context:
CREATE TABLE table_23284271_9 (location_attendance VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT COUNT(location_attendance) FROM table_23284271_9 WHERE record = "45-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 was the margin of victory on Apr 23, 1967?
### Context:
CREATE TABLE table_name_56 (margin_of_victory VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT margin_of_victory FROM table_name_56 WHERE date = "apr 23, 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:
Which type has a quantity of 11?
### Context:
CREATE TABLE table_name_29 (type VARCHAR, quantity VARCHAR)
### Response:
### Response:
SELECT type FROM table_name_29 WHERE quantity = 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:
Which Party has a Office of majority floor leader
### Context:
CREATE TABLE table_name_46 (party VARCHAR, office VARCHAR)
### Response:
### Response:
SELECT party FROM table_name_46 WHERE office = "majority floor leader"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What venue had collingwood as the away team?
### Context:
CREATE TABLE table_name_14 (venue VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_14 WHERE away_team = "collingwood"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Nationality, and when College is Illinois State?
### Context:
CREATE TABLE table_name_2 (nationality VARCHAR, college VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_2 WHERE college = "illinois state"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall where the position was linebacker and the pick number was more than 9?
### Context:
CREATE TABLE table_name_32 (overall INTEGER, position VARCHAR, pick__number VARCHAR)
### Response:
### Response:
SELECT MAX(overall) FROM table_name_32 WHERE position = "linebacker" AND pick__number > 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's the minimum total with crop (kilotonnes) being s lupin
### Context:
CREATE TABLE table_1057262_2 (total INTEGER, crop__kilotonnes_ VARCHAR)
### Response:
### Response:
SELECT MIN(total) FROM table_1057262_2 WHERE crop__kilotonnes_ = "s Lupin"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 million u.s. Viewers watched season 1?
### Context:
CREATE TABLE table_19188562_2 (us_viewers__in_millions_ VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT us_viewers__in_millions_ FROM table_19188562_2 WHERE season = 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 Year of the Player with a Weight of 230 or less from San Antonio, Texas?
### Context:
CREATE TABLE table_name_20 (year VARCHAR, weight VARCHAR, home_town VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_20 WHERE weight < 230 AND home_town = "san antonio, texas"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What day was the score for tournament of alcobaça 6–3, 2–6, 7–5?
### Context:
CREATE TABLE table_name_21 (date VARCHAR, tournament VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_21 WHERE tournament = "alcobaça" AND score = "6–3, 2–6, 7–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 horses are mentioned competing in 1985?
### Context:
CREATE TABLE table_21676617_1 (horse VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT COUNT(horse) FROM table_21676617_1 WHERE year = 1985</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rich Voltzke's highest pick number?
### Context:
CREATE TABLE table_name_79 (pick__number INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MAX(pick__number) FROM table_name_79 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:
Please show the categories of the music festivals with count more than 1.
### Context:
CREATE TABLE music_festival (Category VARCHAR)
### Response:
### Response:
SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*) > 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What place was the horse with a barrier of 20 and weighing less than 54 kg
### Context:
CREATE TABLE table_name_35 (placing VARCHAR, weight__kg_ VARCHAR, barrier_ VARCHAR, b_ VARCHAR)
### Response:
### Response:
SELECT placing FROM table_name_35 WHERE weight__kg_ < 54 AND barrier_[b_] = "20"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What week's game had a result of l 35–37?
### Context:
CREATE TABLE table_name_88 (week VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT week FROM table_name_88 WHERE result = "l 35–37"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who wrote the episode with the production code of BN103?
### Context:
CREATE TABLE table_21304155_1 (written_by VARCHAR, production_code VARCHAR)
### Response:
### Response:
SELECT written_by FROM table_21304155_1 WHERE production_code = "BN103"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the highest one that has a Record of 37-38?
### Context:
CREATE TABLE table_name_45 (attendance INTEGER, record VARCHAR)
### Response:
### Response:
SELECT MAX(attendance) FROM table_name_45 WHERE record = "37-38"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which school has a hometown of winter park, FL?
### Context:
CREATE TABLE table_name_68 (school VARCHAR, hometown VARCHAR)
### Response:
### Response:
SELECT school FROM table_name_68 WHERE hometown = "winter park, fl"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity when the name is 1.2 16v?
### Context:
CREATE TABLE table_name_68 (capacity VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT capacity FROM table_name_68 WHERE name = "1.2 16v"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percentage for Brown when the lead margin is 26?
### Context:
CREATE TABLE table_name_35 (republican VARCHAR, lead_margin VARCHAR)
### Response:
### Response:
SELECT republican AS :_roy_brown FROM table_name_35 WHERE lead_margin = 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 was the result of week 11?
### Context:
CREATE TABLE table_name_1 (result VARCHAR, week VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_1 WHERE week = 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 was the word for the episode that aired February 11?
### Context:
CREATE TABLE table_25691838_2 (the_wørd VARCHAR, original_airdate VARCHAR)
### Response:
### Response:
SELECT the_wørd FROM table_25691838_2 WHERE original_airdate = "February 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:
Who had 1990 of 2–2 in 1993?
### Context:
CREATE TABLE table_name_67 (Id VARCHAR)
### Response:
### Response:
SELECT 1993 FROM table_name_67 WHERE 1990 = "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 are the names and types of the companies that have ever operated a flight?
### Context:
CREATE TABLE operate_company (name VARCHAR, type VARCHAR, id VARCHAR); CREATE TABLE flight (Id VARCHAR)
### Response:
### Response:
SELECT T1.name, T1.type FROM operate_company AS T1 JOIN flight AS t2 ON T1.id = T2.company_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:
tell me the name of the capital with an area of 20,4.
### Context:
CREATE TABLE table_name_7 (capital VARCHAR, area_in_1000km²__1930_ VARCHAR)
### Response:
### Response:
SELECT capital FROM table_name_7 WHERE area_in_1000km²__1930_ = "20,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:
Who is the rider with 22 laps and a +19.435 time/retired?
### Context:
CREATE TABLE table_name_86 (rider VARCHAR, laps VARCHAR, time_retired VARCHAR)
### Response:
### Response:
SELECT rider FROM table_name_86 WHERE laps = "22" AND time_retired = "+19.435"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 me all grades that have at least 4 students.
### Context:
CREATE TABLE Highschooler (grade VARCHAR)
### Response:
### Response:
SELECT grade FROM Highschooler GROUP BY grade HAVING COUNT(*) >= 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:
Tell me the time for 6/6/77 release date and song title of way down
### Context:
CREATE TABLE table_name_95 (time VARCHAR, release_date VARCHAR, song_title VARCHAR)
### Response:
### Response:
SELECT time FROM table_name_95 WHERE release_date = "6/6/77" AND song_title = "way down"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player with 41 legs lost?
### Context:
CREATE TABLE table_18621456_22 (player VARCHAR, legs_lost VARCHAR)
### Response:
### Response:
SELECT player FROM table_18621456_22 WHERE legs_lost = 41</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Assembled has Elected of 1562/63?
### Context:
CREATE TABLE table_name_30 (assembled VARCHAR, elected VARCHAR)
### Response:
### Response:
SELECT assembled FROM table_name_30 WHERE elected = "1562/63"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 control for albany
### Context:
CREATE TABLE table_2076533_1 (control VARCHAR, main_location VARCHAR)
### Response:
### Response:
SELECT control FROM table_2076533_1 WHERE main_location = "Albany"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 street address of the van antwerp building?
### Context:
CREATE TABLE table_name_9 (street_address VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT street_address FROM table_name_9 WHERE name = "van antwerp building"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location for 1998
### Context:
CREATE TABLE table_name_26 (location VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_26 WHERE year = "1998"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue for the matches played on the dates 3,4,5,6,7 June 1993?
### Context:
CREATE TABLE table_name_32 (venue VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_32 WHERE date = "3,4,5,6,7 june 1993"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 20 questions for 8-04
### Context:
CREATE TABLE table_1566852_5 (date VARCHAR)
### Response:
### Response:
SELECT 20 AS _questions FROM table_1566852_5 WHERE date = "8-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 is the number of position where the pick number is 43?
### Context:
CREATE TABLE table_10975034_5 (position VARCHAR, pick__number VARCHAR)
### Response:
### Response:
SELECT COUNT(position) FROM table_10975034_5 WHERE pick__number = 43</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 song as the name?
### Context:
CREATE TABLE table_name_7 (type VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT type FROM table_name_7 WHERE name = "song"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Player, when Opponent is source: . last updated: 28 june 2007.?
### Context:
CREATE TABLE table_name_17 (player VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_17 WHERE opponent = "source: . last updated: 28 june 2007."</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 vote for gigit
### Context:
CREATE TABLE table_16976547_2 (vote VARCHAR, eliminated VARCHAR)
### Response:
### Response:
SELECT vote FROM table_16976547_2 WHERE eliminated = "Gigit"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country of Palmers Shipbuilding and Iron Company?
### Context:
CREATE TABLE table_name_96 (country VARCHAR, builder VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_96 WHERE builder = "palmers shipbuilding and iron company"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 are the Rowers with a Time of 6:39.49?
### Context:
CREATE TABLE table_name_31 (rowers VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT rowers FROM table_name_31 WHERE time = "6:39.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:
What was the fineness prior to 2007?
### Context:
CREATE TABLE table_name_28 (fineness VARCHAR, year INTEGER)
### Response:
### Response:
SELECT fineness FROM table_name_28 WHERE year < 2007</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 outcome on a hard surface, when the score in the final was 4–6, 3–6?
### Context:
CREATE TABLE table_name_1 (outcome VARCHAR, surface VARCHAR, score_in_the_final VARCHAR)
### Response:
### Response:
SELECT outcome FROM table_name_1 WHERE surface = "hard" AND score_in_the_final = "4–6, 3–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 smallest rank with a Lane of 1?
### Context:
CREATE TABLE table_name_65 (rank INTEGER, lane VARCHAR)
### Response:
### Response:
SELECT MIN(rank) FROM table_name_65 WHERE lane = 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 name of episode 43 in the series?
### Context:
CREATE TABLE table_28768925_1 (title VARCHAR, no_in_series VARCHAR)
### Response:
### Response:
SELECT title FROM table_28768925_1 WHERE no_in_series = 43</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 event with a top prize of $2,434,061?
### Context:
CREATE TABLE table_name_28 (name VARCHAR, prize VARCHAR)
### Response:
### Response:
SELECT name FROM table_name_28 WHERE prize = "$2,434,061"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What are the names of all the players with an average of 15.89?
### Context:
CREATE TABLE table_2482547_5 (name VARCHAR, average VARCHAR)
### Response:
### Response:
SELECT name FROM table_2482547_5 WHERE average = "15.89"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What nationality is the guard from ucla?
### Context:
CREATE TABLE table_name_85 (nationality VARCHAR, position VARCHAR, school_country VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_85 WHERE position = "guard" AND school_country = "ucla"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played games of the team with less than 12 drawns, 41 against, and less than 69 points?
### Context:
CREATE TABLE table_name_58 (played INTEGER, points VARCHAR, drawn VARCHAR, against VARCHAR)
### Response:
### Response:
SELECT MIN(played) FROM table_name_58 WHERE drawn < 12 AND against = 41 AND points < 69</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 batting 1st in game 8?
### Context:
CREATE TABLE table_name_20 (batting_1st VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT batting_1st FROM table_name_20 WHERE game = 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 is the party for district ohio 11?
### Context:
CREATE TABLE table_1341598_36 (party VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT party FROM table_1341598_36 WHERE district = "Ohio 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:
If the Cuatro Cañadas municipality percentage is 252, what are all the San Antonio de Lomerío municipality percentage?
### Context:
CREATE TABLE table_19998428_3 (san_antonio_de_lomerío_municipality___percentage_ VARCHAR, cuatro_cañadas_municipality___percentage_ VARCHAR)
### Response:
### Response:
SELECT san_antonio_de_lomerío_municipality___percentage_ FROM table_19998428_3 WHERE cuatro_cañadas_municipality___percentage_ = "252"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 earliest year won Paul Azinger had with a to par higher than 5?
### Context:
CREATE TABLE table_name_12 (year_won INTEGER, player VARCHAR, to_par VARCHAR)
### Response:
### Response:
SELECT MIN(year_won) FROM table_name_12 WHERE player = "paul azinger" AND to_par > 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 year was player number 10?
### Context:
CREATE TABLE table_29970488_2 (year VARCHAR, _number VARCHAR)
### Response:
### Response:
SELECT year FROM table_29970488_2 WHERE _number = 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 amount of assists for richmond kickers and points larger than 24
### Context:
CREATE TABLE table_name_32 (assists INTEGER, club VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT SUM(assists) FROM table_name_32 WHERE club = "richmond kickers" AND points > 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:
How many teams eliminated béziers from competition?
### Context:
CREATE TABLE table_28068063_3 (match_points VARCHAR, eliminated_from_competition VARCHAR)
### Response:
### Response:
SELECT COUNT(match_points) FROM table_28068063_3 WHERE eliminated_from_competition = "Béziers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Arena when there were 65 points?
### Context:
CREATE TABLE table_name_84 (arena VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT arena FROM table_name_84 WHERE points = "65"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rose in the 1975 Broadway Revival?
### Context:
CREATE TABLE table_name_60 (rose VARCHAR, productions VARCHAR)
### Response:
### Response:
SELECT rose FROM table_name_60 WHERE productions = "1975 broadway revival"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Quantity has a Designation of type 4?
### Context:
CREATE TABLE table_name_82 (quantity INTEGER, designation VARCHAR)
### Response:
### Response:
SELECT AVG(quantity) FROM table_name_82 WHERE designation = "type 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 rank did actor Aaron Pedersen's character have?
### Context:
CREATE TABLE table_name_44 (rank VARCHAR, actor_actress VARCHAR)
### Response:
### Response:
SELECT rank FROM table_name_44 WHERE actor_actress = "aaron pedersen"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 TV order is written by gail simone?
### Context:
CREATE TABLE table_20360535_3 (television_order VARCHAR, written_by VARCHAR)
### Response:
### Response:
SELECT television_order FROM table_20360535_3 WHERE written_by = "Gail Simone"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the sum of Weight for the person born in virginia, minnesota?
### Context:
CREATE TABLE table_name_39 (weight__kg_ INTEGER, birthplace VARCHAR)
### Response:
### Response:
SELECT SUM(weight__kg_) FROM table_name_39 WHERE birthplace = "virginia, minnesota"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constructor when there were 95 laps and a grid less than 15?
### Context:
CREATE TABLE table_name_85 (constructor VARCHAR, grid VARCHAR, laps VARCHAR)
### Response:
### Response:
SELECT constructor FROM table_name_85 WHERE grid < 15 AND laps = 95</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Anuya Bhagvath was nominated for what award?
### Context:
CREATE TABLE table_name_60 (award VARCHAR, outcome VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT award FROM table_name_60 WHERE outcome = "nominated" AND name = "anuya bhagvath"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
WHAT IS THE SUM OF PICK FOR DAVID TERRELL, WITH A ROUND SMALLER THAN 7?
### Context:
CREATE TABLE table_name_82 (pick INTEGER, name VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT SUM(pick) FROM table_name_82 WHERE name = "david terrell" AND round < 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 total number of Date, when Partner is "Carl-Uwe Steeb"?
### Context:
CREATE TABLE table_name_67 (date VARCHAR, partner VARCHAR)
### Response:
### Response:
SELECT COUNT(date) FROM table_name_67 WHERE partner = "carl-uwe steeb"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 match against at the PRIDE 31 event?
### Context:
CREATE TABLE table_name_70 (opponent VARCHAR, event VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_70 WHERE event = "pride 31"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
who had high points on march 27?
### Context:
CREATE TABLE table_27722734_10 (high_points VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT high_points FROM table_27722734_10 WHERE date = "March 27"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the least amount of season epidsodes?
### Context:
CREATE TABLE table_1067134_1 (_number_of_ep INTEGER)
### Response:
### Response:
SELECT MIN(_number_of_ep) FROM table_1067134_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 Player has a Score of 6–4, 7–6 (7–5)?
### Context:
CREATE TABLE table_name_97 (player VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_97 WHERE score = "6–4, 7–6 (7–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 team had a high points of west (20)?
### Context:
CREATE TABLE table_name_65 (team VARCHAR, high_points VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_65 WHERE high_points = "west (20)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the name of the circuit when Jack Brabham is in the pole position and Graham Hill has the fastest lap?
### Context:
CREATE TABLE table_name_84 (circuit VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
### Response:
### Response:
SELECT circuit FROM table_name_84 WHERE pole_position = "jack brabham" AND fastest_lap = "graham hill"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Position, when Nationality is "Canada", and when Round is greater than 3?
### Context:
CREATE TABLE table_name_31 (position VARCHAR, nationality VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_31 WHERE nationality = "canada" AND 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 was the total number of Laps for the rider whose time was +7.951?
### Context:
CREATE TABLE table_name_2 (laps VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT COUNT(laps) FROM table_name_2 WHERE time = "+7.951"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ship id and name that caused most total injuries?
### Context:
CREATE TABLE death (caused_by_ship_id VARCHAR); CREATE TABLE ship (Id VARCHAR)
### Response:
### Response:
SELECT T2.id, T2.name FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id GROUP BY T2.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 score of the game when the attendance was 1,644?
### Context:
CREATE TABLE table_name_38 (score VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_38 WHERE attendance = "1,644"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tournament did Bill Rogers play in when he had less than 7 Cuts, 0 Wins, and less than 1 Top-25?
### Context:
CREATE TABLE table_name_35 (tournament VARCHAR, top_25 VARCHAR, cuts_made VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT tournament FROM table_name_35 WHERE cuts_made < 7 AND wins = 0 AND top_25 < 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 location when the method is tko (punches) and the time is 2:48?
### Context:
CREATE TABLE table_name_65 (location VARCHAR, method VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_65 WHERE method = "tko (punches)" AND time = "2:48"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.