inputs
stringlengths 400
1.34k
|
|---|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the Winning Score when Betsy Rawls was the Runner(s)-up?
### Context:
CREATE TABLE table_name_96 (winning_score VARCHAR, runner_s__up VARCHAR)
### Response:
### Response:
SELECT winning_score FROM table_name_96 WHERE runner_s__up = "betsy rawls"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Date has a Region of france?
### Context:
CREATE TABLE table_name_90 (date VARCHAR, region VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_90 WHERE region = "france"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Format, when Label is Bronze, when Date is 1982, and when Catalogue is 204 636?
### Context:
CREATE TABLE table_name_12 (format VARCHAR, catalogue VARCHAR, label VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT format FROM table_name_12 WHERE label = "bronze" AND date = "1982" AND catalogue = "204 636"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is every director with production code of NABF13?
### Context:
CREATE TABLE table_20942925_1 (directed_by VARCHAR, production_code VARCHAR)
### Response:
### Response:
SELECT directed_by FROM table_20942925_1 WHERE production_code = "NABF13"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What are the notes for the shirt that said Pavv after 2007?
### Context:
CREATE TABLE table_name_31 (notes VARCHAR, shirt_printing VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT notes FROM table_name_31 WHERE shirt_printing = "pavv" AND 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:
Name the population 2010 census for population 2000 census of 920599
### Context:
CREATE TABLE table_14986292_1 (population__2010_census_ VARCHAR, population_2000_census VARCHAR)
### Response:
### Response:
SELECT population__2010_census_ FROM table_14986292_1 WHERE population_2000_census = 920599</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 venue hosted a race in 1967?
### Context:
CREATE TABLE table_name_20 (venue VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_20 WHERE year = 1967</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the name for Malay with a foundation in Iptura?
### Context:
CREATE TABLE table_name_55 (name_in_malay VARCHAR, foundation VARCHAR)
### Response:
### Response:
SELECT name_in_malay FROM table_name_55 WHERE foundation = "iptura"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What date did Footscray play and Away game?
### Context:
CREATE TABLE table_name_24 (date VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_24 WHERE away_team = "footscray"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 archive where run time 24:04
### Context:
CREATE TABLE table_1776943_1 (archive VARCHAR, run_time VARCHAR)
### Response:
### Response:
SELECT archive FROM table_1776943_1 WHERE run_time = "24: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:
Name the played with losing bonus of 3 and points against of 426
### Context:
CREATE TABLE table_name_37 (played VARCHAR, losing_bonus VARCHAR, points_against VARCHAR)
### Response:
### Response:
SELECT played FROM table_name_37 WHERE losing_bonus = "3" AND points_against = "426"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 upstream rate for Itu g.992.2 with a version of ADSL?
### Context:
CREATE TABLE table_name_60 (upstream_rate VARCHAR, version VARCHAR, standard_name VARCHAR)
### Response:
### Response:
SELECT upstream_rate FROM table_name_60 WHERE version = "adsl" AND standard_name = "itu g.992.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 total number of gold medals won among nations that won more than 27 bronze and less than 305 medals total?
### Context:
CREATE TABLE table_name_59 (gold VARCHAR, bronze VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT COUNT(gold) FROM table_name_59 WHERE bronze > 27 AND total < 305</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 game 30?
### Context:
CREATE TABLE table_name_52 (score VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_52 WHERE game = 30</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many clubs are involved when the clubs remaining are 2?
### Context:
CREATE TABLE table_name_88 (clubs_involved INTEGER, clubs_remaining VARCHAR)
### Response:
### Response:
SELECT SUM(clubs_involved) FROM table_name_88 WHERE clubs_remaining = 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 was South Melbourne's score as the home team?
### Context:
CREATE TABLE table_name_45 (home_team VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_45 WHERE home_team = "south melbourne"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What day was the visitor Chicago Black Hawks and the record 0-2?
### Context:
CREATE TABLE table_name_16 (date VARCHAR, visitor VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_16 WHERE visitor = "chicago black hawks" AND record = "0-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 transfer fee for Gravgaard?
### Context:
CREATE TABLE table_name_94 (transfer_fee VARCHAR, type VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT transfer_fee FROM table_name_94 WHERE type = "transfer" AND name = "gravgaard"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Race 3 is Round 5?
### Context:
CREATE TABLE table_name_4 (race_3 VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT race_3 FROM table_name_4 WHERE round = "round 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:
When was the game that ended with a score of 6-4?
### Context:
CREATE TABLE table_name_38 (date VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_38 WHERE score = "6-4"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average amount of appearances for the Bronze Meals less than 0?
### Context:
CREATE TABLE table_name_58 (appearances INTEGER, bronze_medals INTEGER)
### Response:
### Response:
SELECT AVG(appearances) FROM table_name_58 WHERE bronze_medals < 0</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what player scored 69-72-68=209?
### Context:
CREATE TABLE table_name_66 (player VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_66 WHERE score = 69 - 72 - 68 = 209</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .
### Context:
CREATE TABLE students (first_name VARCHAR, permanent_address_id VARCHAR, cell_mobile_number VARCHAR); CREATE TABLE addresses (address_id VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT t1.first_name FROM students AS t1 JOIN addresses AS t2 ON t1.permanent_address_id = t2.address_id WHERE t2.country = 'haiti' OR t1.cell_mobile_number = '09700166582'</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for 1986 with a to par higher than 6?
### Context:
CREATE TABLE table_name_87 (total VARCHAR, year_s__won VARCHAR, to_par VARCHAR)
### Response:
### Response:
SELECT COUNT(total) FROM table_name_87 WHERE year_s__won = "1986" AND to_par > 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:
On what date was the record 19-11?
### Context:
CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_58 WHERE record = "19-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 French word where the German word is filtern?
### Context:
CREATE TABLE table_15040_8 (french VARCHAR, german VARCHAR)
### Response:
### Response:
SELECT french FROM table_15040_8 WHERE german = "filtern"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of songs in all the studio albums.
### Context:
CREATE TABLE songs (title VARCHAR, songid VARCHAR); CREATE TABLE albums (aid VARCHAR); CREATE TABLE tracklists (albumid VARCHAR, songid VARCHAR)
### Response:
### Response:
SELECT COUNT(DISTINCT T3.title) FROM albums AS T1 JOIN tracklists AS T2 ON T1.aid = T2.albumid JOIN songs AS T3 ON T2.songid = T3.songid WHERE t1.type = "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 Date, when Opposing Teams is "Australia", and when Venue is "Twickenham , London"?
### Context:
CREATE TABLE table_name_79 (date VARCHAR, opposing_teams VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_79 WHERE opposing_teams = "australia" AND venue = "twickenham , london"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 other team on march 27?
### Context:
CREATE TABLE table_27712702_11 (team VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT team FROM table_27712702_11 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:
Which Economic Class has a Barangay of imelda bliss village?
### Context:
CREATE TABLE table_name_77 (economic_class VARCHAR, barangay VARCHAR)
### Response:
### Response:
SELECT economic_class FROM table_name_77 WHERE barangay = "imelda bliss village"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 newest Cap with a Goals stat larger than 17 and which was done by Brian Turner?
### Context:
CREATE TABLE table_name_64 (most_recent_cap VARCHAR, goals VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT most_recent_cap FROM table_name_64 WHERE goals > 17 AND name = "brian turner"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of Goals Conceded that has Points smaller than 21 and a Lost thats smaller than 8?
### Context:
CREATE TABLE table_name_10 (goals_conceded INTEGER, points VARCHAR, lost VARCHAR)
### Response:
### Response:
SELECT SUM(goals_conceded) FROM table_name_10 WHERE points < 21 AND lost < 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 number of sites when the number of screens is 687 and rank is more than 7?
### Context:
CREATE TABLE table_name_8 (sites INTEGER, screens VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT AVG(sites) FROM table_name_8 WHERE screens = 687 AND rank > 7</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What are the high rebounds in the jamal crawford (20) high points?
### Context:
CREATE TABLE table_27734577_8 (high_rebounds VARCHAR, high_points VARCHAR)
### Response:
### Response:
SELECT high_rebounds FROM table_27734577_8 WHERE high_points = "Jamal Crawford (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 Second Member, when Election is "1835"?
### Context:
CREATE TABLE table_name_99 (second_member VARCHAR, election VARCHAR)
### Response:
### Response:
SELECT second_member FROM table_name_99 WHERE election = "1835"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Assist/pass has a Result of 6-2?
### Context:
CREATE TABLE table_name_73 (assist_pass VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT assist_pass FROM table_name_73 WHERE result = "6-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 was the away team's score at Western Oval?
### Context:
CREATE TABLE table_name_75 (away_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT away_team AS score FROM table_name_75 WHERE venue = "western oval"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Attendance number for the title of 44th?
### Context:
CREATE TABLE table_name_67 (attendance VARCHAR, title VARCHAR)
### Response:
### Response:
SELECT attendance FROM table_name_67 WHERE title = "44th"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a height of 2.16?
### Context:
CREATE TABLE table_name_41 (player VARCHAR, height VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_41 WHERE height = 2.16</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Car # has a Driver of ryan newman, and a Position larger than 10?
### Context:
CREATE TABLE table_name_39 (car__number INTEGER, driver VARCHAR, pos VARCHAR)
### Response:
### Response:
SELECT MIN(car__number) FROM table_name_39 WHERE driver = "ryan newman" AND pos > 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's the average year with a rank less than 3?
### Context:
CREATE TABLE table_name_91 (year INTEGER, rank INTEGER)
### Response:
### Response:
SELECT AVG(year) FROM table_name_91 WHERE rank < 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 country had a winner in 1907?
### Context:
CREATE TABLE table_name_55 (country VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_55 WHERE year = 1907</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Points, when Home is "Boston"?
### Context:
CREATE TABLE table_name_81 (points INTEGER, home VARCHAR)
### Response:
### Response:
SELECT MIN(points) FROM table_name_81 WHERE home = "boston"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2011 for 2009 being 2r at wimbledon
### Context:
CREATE TABLE table_name_7 (tournament VARCHAR)
### Response:
### Response:
SELECT 2011 FROM table_name_7 WHERE 2009 = "2r" AND tournament = "wimbledon"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 general classification with roman kreuziger and points classification of fabian cancellara
### Context:
CREATE TABLE table_name_97 (general_classification VARCHAR, young_rider_classification VARCHAR, points_classification VARCHAR)
### Response:
### Response:
SELECT general_classification FROM table_name_97 WHERE young_rider_classification = "roman kreuziger" AND points_classification = "fabian cancellara"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 events that Al Geiberger played with wins smaller than 1?
### Context:
CREATE TABLE table_name_55 (events INTEGER, player VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT AVG(events) FROM table_name_55 WHERE player = "al geiberger" AND wins < 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 brigade Tall Al-Shawk shows for the name?
### Context:
CREATE TABLE table_name_68 (brigade VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT brigade FROM table_name_68 WHERE name = "tall al-shawk"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Marianne Jean-Baptiste as the Golden Globe Actor?
### Context:
CREATE TABLE table_name_50 (year INTEGER, actor VARCHAR)
### Response:
### Response:
SELECT MAX(year) FROM table_name_50 WHERE actor = "marianne jean-baptiste"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What position does a Keith Shologan, who was picked higher than 6, play?
### Context:
CREATE TABLE table_name_91 (position VARCHAR, pick__number VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_91 WHERE pick__number < 6 AND player = "keith shologan"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Road Team, when Date is "April 10"?
### Context:
CREATE TABLE table_name_29 (road_team VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT road_team FROM table_name_29 WHERE date = "april 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:
Show the names of products that are in at least two events in ascending alphabetical order of product name.
### Context:
CREATE TABLE Products (Product_Name VARCHAR, Product_ID VARCHAR); CREATE TABLE Products_in_Events (Product_ID VARCHAR)
### Response:
### Response:
SELECT T1.Product_Name FROM Products AS T1 JOIN Products_in_Events AS T2 ON T1.Product_ID = T2.Product_ID GROUP BY T1.Product_Name HAVING COUNT(*) >= 2 ORDER BY T1.Product_Name</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the first time in December they played the Colorado Avalanche?
### Context:
CREATE TABLE table_name_76 (december INTEGER, opponent VARCHAR)
### Response:
### Response:
SELECT MIN(december) FROM table_name_76 WHERE opponent = "colorado avalanche"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 footscray's away team score?
### Context:
CREATE TABLE table_name_66 (away_team VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT away_team AS score FROM table_name_66 WHERE home_team = "footscray"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What episode number of the season is episode number 11 in the series?
### Context:
CREATE TABLE table_25737761_4 (_number INTEGER, no VARCHAR)
### Response:
### Response:
SELECT MAX(_number) FROM table_25737761_4 WHERE no = 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:
Name the Voltage Range which has a FSB Speed of 400 mhz, and a Clock Speed of 1 ghz?
### Context:
CREATE TABLE table_name_30 (voltage_range VARCHAR, fsb_speed VARCHAR, clock_speed VARCHAR)
### Response:
### Response:
SELECT voltage_range FROM table_name_30 WHERE fsb_speed = "400 mhz" AND clock_speed = "1 ghz"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 average finish in 2008?
### Context:
CREATE TABLE table_1909647_2 (avg_finish VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT avg_finish FROM table_1909647_2 WHERE year = 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 is the incumbent for the Oregon 5 District that was elected in 1996?
### Context:
CREATE TABLE table_name_34 (incumbent VARCHAR, first_elected VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT incumbent FROM table_name_34 WHERE first_elected = 1996 AND district = "oregon 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 lessons were in cancelled state?
### Context:
CREATE TABLE Lessons (lesson_status_code VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM Lessons WHERE lesson_status_code = "Cancelled"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which is team 2 when team 1 is ECAC Chaumont (d2)?
### Context:
CREATE TABLE table_name_45 (team_2 VARCHAR, team_1 VARCHAR)
### Response:
### Response:
SELECT team_2 FROM table_name_45 WHERE team_1 = "ecac chaumont (d2)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the result on july 16, 1992?
### Context:
CREATE TABLE table_name_4 (result VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_4 WHERE date = "july 16, 1992"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the weight of the player from the Philadelphia 76ers?
### Context:
CREATE TABLE table_name_53 (weight VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT COUNT(weight) FROM table_name_53 WHERE team = "philadelphia 76ers"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 away team in the match at Princes Park?
### Context:
CREATE TABLE table_name_59 (away_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT away_team AS score FROM table_name_59 WHERE venue = "princes park"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who holds the time of 17:11.572?
### Context:
CREATE TABLE table_name_83 (race VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT race FROM table_name_83 WHERE time = "17:11.572"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score for record of 2-5
### Context:
CREATE TABLE table_17432028_1 (score VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT score FROM table_17432028_1 WHERE record = "2-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:
In what year did the teams leave the conference?
### Context:
CREATE TABLE table_2419754_1 (left INTEGER)
### Response:
### Response:
SELECT MAX(left) FROM table_2419754_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 in the game where the Blazers were the home team?
### Context:
CREATE TABLE table_name_95 (score VARCHAR, home VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_95 WHERE home = "blazers"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 A Score when the B Score was 9.05, and position was larger than 6?
### Context:
CREATE TABLE table_name_50 (a_score INTEGER, b_score VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT AVG(a_score) FROM table_name_50 WHERE b_score = 9.05 AND position > 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 was the title of the episode directed by David Mamet?
### Context:
CREATE TABLE table_26200084_1 (title VARCHAR, directed_by VARCHAR)
### Response:
### Response:
SELECT title FROM table_26200084_1 WHERE directed_by = "David Mamet"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which year al geiberger is in?
### Context:
CREATE TABLE table_name_50 (year_s__won VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT year_s__won FROM table_name_50 WHERE player = "al geiberger"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which opponent has w 17-0 as the result?
### Context:
CREATE TABLE table_name_70 (opponent VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_70 WHERE result = "w 17-0"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score for south melbourne at home?
### Context:
CREATE TABLE table_name_2 (home_team VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_2 WHERE home_team = "south melbourne"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What players play guard?
### Context:
CREATE TABLE table_16494599_4 (player VARCHAR, position VARCHAR)
### Response:
### Response:
SELECT player FROM table_16494599_4 WHERE position = "Guard"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points against for porthcawl rfc
### Context:
CREATE TABLE table_name_87 (points_against VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT points_against FROM table_name_87 WHERE club = "porthcawl rfc"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Date has Opponents in the final of valeria casillo lilly raffa?
### Context:
CREATE TABLE table_name_59 (date VARCHAR, opponents_in_the_final VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_59 WHERE opponents_in_the_final = "valeria casillo lilly raffa"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 with the f position in Dallas, Texas?
### Context:
CREATE TABLE table_name_57 (number VARCHAR, position VARCHAR, hometown VARCHAR)
### Response:
### Response:
SELECT COUNT(number) FROM table_name_57 WHERE position = "f" AND hometown = "dallas, 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:
Which Wins has an Against of 1940, and a Byes larger than 0?
### Context:
CREATE TABLE table_name_61 (wins INTEGER, against VARCHAR, byes VARCHAR)
### Response:
### Response:
SELECT MAX(wins) FROM table_name_61 WHERE against = 1940 AND byes > 0</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the result for Pennsylvania 8?
### Context:
CREATE TABLE table_2668401_12 (result VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT result FROM table_2668401_12 WHERE district = "Pennsylvania 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 lowest numbers for the winner gregory w. meeks
### Context:
CREATE TABLE table_13870048_3 (elected INTEGER, incumbent VARCHAR)
### Response:
### Response:
SELECT MIN(elected) FROM table_13870048_3 WHERE incumbent = "Gregory W. Meeks"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stage has 15:17 as time?
### Context:
CREATE TABLE table_21578303_2 (stage VARCHAR, time__eet_ VARCHAR)
### Response:
### Response:
SELECT stage FROM table_21578303_2 WHERE time__eet_ = "15: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:
What's the HC for the standard with NO x of 7.0 g/kWh?
### Context:
CREATE TABLE table_2780146_6 (hc__g_kwh_ VARCHAR, no_x__g_kwh_ VARCHAR)
### Response:
### Response:
SELECT hc__g_kwh_ FROM table_2780146_6 WHERE no_x__g_kwh_ = "7.0"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the rank of the team with a time of 1:00.61?
### Context:
CREATE TABLE table_name_1 (rank INTEGER, time VARCHAR)
### Response:
### Response:
SELECT AVG(rank) FROM table_name_1 WHERE time = "1:00.61"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the name of the leading scorer when the record was 9–6?
### Context:
CREATE TABLE table_name_18 (leading_scorer VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT leading_scorer FROM table_name_18 WHERE record = "9–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 was the final round result of Mohammad Reza Samadi?
### Context:
CREATE TABLE table_name_44 (final VARCHAR, athlete VARCHAR)
### Response:
### Response:
SELECT final FROM table_name_44 WHERE athlete = "mohammad reza samadi"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What positions does Hal Weeks play?
### Context:
CREATE TABLE table_14342592_3 (position VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT position FROM table_14342592_3 WHERE player = "Hal Weeks"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 distance of the race on saturday, august 23?
### Context:
CREATE TABLE table_name_59 (distance VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT distance FROM table_name_59 WHERE date = "saturday, august 23"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the average number of bronze medals of the Philippines, which has more than 0 gold?
### Context:
CREATE TABLE table_name_63 (bronze INTEGER, nation VARCHAR, gold VARCHAR)
### Response:
### Response:
SELECT AVG(bronze) FROM table_name_63 WHERE nation = "philippines" AND gold > 0</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What MLB draft has a School of green valley high school?
### Context:
CREATE TABLE table_name_7 (mlb_draft VARCHAR, school VARCHAR)
### Response:
### Response:
SELECT mlb_draft FROM table_name_7 WHERE school = "green valley high 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:
What position has a time over 38.61 at the gothenburg venue?
### Context:
CREATE TABLE table_name_96 (position VARCHAR, time VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_96 WHERE time > 38.61 AND venue = "gothenburg"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Opponent has a Attendance of 7,034?
### Context:
CREATE TABLE table_name_29 (opponent VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_29 WHERE attendance = "7,034"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Bike with a grid more than 4 and the rider is Michel Fabrizio?
### Context:
CREATE TABLE table_name_17 (bike VARCHAR, grid VARCHAR, rider VARCHAR)
### Response:
### Response:
SELECT bike FROM table_name_17 WHERE grid > 4 AND rider = "michel fabrizio"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What college was picked later than 122 by the Boston Patriots?
### Context:
CREATE TABLE table_name_88 (college VARCHAR, pick VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT college FROM table_name_88 WHERE pick > 122 AND team = "boston patriots"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 players with fewer than 41 goals for CA Osasuna and averages under 1.06, what is the average number of matches?
### Context:
CREATE TABLE table_name_5 (matches INTEGER, average VARCHAR, goals VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT AVG(matches) FROM table_name_5 WHERE goals < 41 AND team = "ca osasuna" AND average < 1.06</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Total is the lowest one that has a Country of united states, and a To par of +12?
### Context:
CREATE TABLE table_name_99 (total INTEGER, country VARCHAR, to_par VARCHAR)
### Response:
### Response:
SELECT MIN(total) FROM table_name_99 WHERE country = "united states" AND to_par = "+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:
List the range distroration for the ramsan-630
### Context:
CREATE TABLE table_27615520_1 (form_factor VARCHAR, product_name VARCHAR)
### Response:
### Response:
SELECT form_factor FROM table_27615520_1 WHERE product_name = "RamSan-630"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 game 2?
### Context:
CREATE TABLE table_name_5 (score VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_5 WHERE game = 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:
Which round did Dundee United end in?
### Context:
CREATE TABLE table_name_11 (round VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT round FROM table_name_11 WHERE club = "dundee united"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 TV Time for opponent jacksonville jaguars?
### Context:
CREATE TABLE table_name_51 (tv_time VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT tv_time FROM table_name_51 WHERE opponent = "jacksonville jaguars"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
When did joão souza play?
### Context:
CREATE TABLE table_name_11 (date VARCHAR, opponen VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_11 WHERE opponen = "joão souza"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 matches had 360 goals?
### Context:
CREATE TABLE table_name_31 (matches VARCHAR, goals VARCHAR)
### Response:
### Response:
SELECT matches FROM table_name_31 WHERE goals = 360</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many times was the site wallace wade stadium • durham, nc?
### Context:
CREATE TABLE table_26842217_8 (attendance VARCHAR, site VARCHAR)
### Response:
### Response:
SELECT COUNT(attendance) FROM table_26842217_8 WHERE site = "Wallace Wade Stadium • Durham, NC"</s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.