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 shows for 1988 when 1994 shows 10–6?
### Context:
CREATE TABLE table_name_32 (Id VARCHAR)
### Response:
### Response:
SELECT 1988 FROM table_name_32 WHERE 1994 = "10–6"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which Position has an Against of 32, and a Difference of 18, and a Drawn larger than 4?
### Context:
CREATE TABLE table_name_97 (position INTEGER, drawn VARCHAR, against VARCHAR, difference VARCHAR)
### Response:
### Response:
SELECT SUM(position) FROM table_name_97 WHERE against = 32 AND difference = "18" AND drawn > 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 country was the game played in when the location was trestles?
### Context:
CREATE TABLE table_name_18 (country VARCHAR, location VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_18 WHERE location = "trestles"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 team of the player who went to lawrence tech?
### Context:
CREATE TABLE table_name_56 (team VARCHAR, college VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_56 WHERE college = "lawrence tech"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What 2003 rank does the airport IATA code SIN have?
### Context:
CREATE TABLE table_name_60 (code__iata_ VARCHAR)
### Response:
### Response:
SELECT 2003 AS rank FROM table_name_60 WHERE code__iata_ = "sin"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 gpa of the students enrolled in the course with code ACCT-211?
### Context:
CREATE TABLE enroll (stu_num VARCHAR, class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE student (stu_gpa INTEGER, stu_num VARCHAR)
### Response:
### Response:
SELECT AVG(T2.stu_gpa) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num = T2.stu_num JOIN CLASS AS T3 ON T1.class_code = T3.class_code WHERE T3.crs_code = 'ACCT-211'</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the record in the game where the opponent was the cincinnati royals?
### Context:
CREATE TABLE table_name_60 (record VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_60 WHERE opponent = "cincinnati royals"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What round was the debut of Scott Tunbridge?
### Context:
CREATE TABLE table_name_58 (debut VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT debut FROM table_name_58 WHERE name = "scott tunbridge"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is from scotland?
### Context:
CREATE TABLE table_name_24 (player VARCHAR, country VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_24 WHERE country = "scotland"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 final result for the 63.5 kg?
### Context:
CREATE TABLE table_name_73 (final VARCHAR, event VARCHAR)
### Response:
### Response:
SELECT final FROM table_name_73 WHERE event = "63.5 kg"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Can you tell me the Gold that has the Total larger than 2, and the Bronze smaller than 1?
### Context:
CREATE TABLE table_name_50 (gold VARCHAR, total VARCHAR, bronze VARCHAR)
### Response:
### Response:
SELECT gold FROM table_name_50 WHERE total > 2 AND bronze < 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 lowest score.
### Context:
CREATE TABLE table_24565004_21 (goals¹ INTEGER)
### Response:
### Response:
SELECT MIN(goals¹) FROM table_24565004_21</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What score has nashville predators as the opponent?
### Context:
CREATE TABLE table_name_91 (score VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_91 WHERE opponent = "nashville predators"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What pressure is Ken?
### Context:
CREATE TABLE table_name_80 (pressure VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT pressure FROM table_name_80 WHERE name = "ken"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the customers who have at most two orders.
### Context:
CREATE TABLE orders (customer_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR)
### Response:
### Response:
SELECT T2.customer_name FROM orders AS T1 JOIN customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T2.customer_id 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 Surface of the match with a Score in the final of 5–7, 6–7 (2–7)?
### Context:
CREATE TABLE table_name_86 (surface VARCHAR, score_in_the_final VARCHAR)
### Response:
### Response:
SELECT surface FROM table_name_86 WHERE score_in_the_final = "5–7, 6–7 (2–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:
If Internet Explorer is 47.22%, what is the Safari total?
### Context:
CREATE TABLE table_1876262_10 (safari VARCHAR, internet_explorer VARCHAR)
### Response:
### Response:
SELECT safari FROM table_1876262_10 WHERE internet_explorer = "47.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 record on december 8 when the boston bruins visited?
### Context:
CREATE TABLE table_name_49 (record VARCHAR, visitor VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_49 WHERE visitor = "boston bruins" AND date = "december 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:
On CBC, who was the colour commentator in 1987?
### Context:
CREATE TABLE table_name_24 (colour_commentator_s_ VARCHAR, network VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT colour_commentator_s_ FROM table_name_24 WHERE network = "cbc" AND year = 1987</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Railway has a Location of shildon, and an ObjectNumber of 1978-7006?
### Context:
CREATE TABLE table_name_52 (railway VARCHAR, location VARCHAR, objectnumber VARCHAR)
### Response:
### Response:
SELECT railway FROM table_name_52 WHERE location = "shildon" AND objectnumber = "1978-7006"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 area (km²) (per sqmi) of the country Colombia?
### Context:
CREATE TABLE table_26769_1 (area__km²___per_sqmi_ VARCHAR, country_or_territory_with_flag VARCHAR)
### Response:
### Response:
SELECT area__km²___per_sqmi_ FROM table_26769_1 WHERE country_or_territory_with_flag = "Colombia"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Average round for 22 pick that is overall smaller than 229?
### Context:
CREATE TABLE table_name_94 (round INTEGER, pick VARCHAR, overall VARCHAR)
### Response:
### Response:
SELECT AVG(round) FROM table_name_94 WHERE pick = 22 AND overall < 229</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 listed Tonnage for the Date of 1914?
### Context:
CREATE TABLE table_name_69 (tonnage VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT tonnage FROM table_name_69 WHERE date = 1914</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Runner-up has a Last win smaller than 1998, and Wins of 1, and a Rank larger than 13?
### Context:
CREATE TABLE table_name_71 (runner_up VARCHAR, rank VARCHAR, last_win VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT COUNT(runner_up) FROM table_name_71 WHERE last_win < 1998 AND wins = 1 AND rank > 13</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many different partners played in the finale in 1973?
### Context:
CREATE TABLE table_2820584_3 (partner VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT COUNT(partner) FROM table_2820584_3 WHERE year = 1973</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 recorded flaps of HBR Motorsport team?
### Context:
CREATE TABLE table_25369796_1 (f_laps VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT f_laps FROM table_25369796_1 WHERE team = "HBR Motorsport"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Week larger than 5, and an opponent of at new york giants had what record?
### Context:
CREATE TABLE table_name_69 (record VARCHAR, week VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_69 WHERE week > 5 AND opponent = "at new york giants"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the result of the game with 57,234 people in attendance?
### Context:
CREATE TABLE table_name_17 (result VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_17 WHERE attendance = "57,234"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Score of 1-0,a Competition of 2010 concacaf world cup qualifying – group stage?
### Context:
CREATE TABLE table_name_14 (assist_pass VARCHAR, score VARCHAR, competition VARCHAR)
### Response:
### Response:
SELECT assist_pass FROM table_name_14 WHERE score = "1-0" AND competition = "2010 concacaf world cup qualifying – group stage"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Field goals have Touchdowns smaller than 3, and a Player of willis ward, and an Extra points smaller than 0?
### Context:
CREATE TABLE table_name_45 (field_goals INTEGER, extra_points VARCHAR, touchdowns VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT SUM(field_goals) FROM table_name_45 WHERE touchdowns < 3 AND player = "willis ward" AND extra_points < 0</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What date was game 57 held on?
### Context:
CREATE TABLE table_11960944_6 (date VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT date FROM table_11960944_6 WHERE game = 57</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 with the opponent being New Zealand Warriors?
### Context:
CREATE TABLE table_name_67 (score VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_67 WHERE opponent = "new zealand warriors"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 year when the reporters were Lesley Visser and Robin Roberts?
### Context:
CREATE TABLE table_22654139_3 (year VARCHAR, reporters VARCHAR)
### Response:
### Response:
SELECT year FROM table_22654139_3 WHERE reporters = "Lesley Visser and Robin Roberts"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player is adam wiesel mention all the college/junior/club team
### Context:
CREATE TABLE table_2781227_4 (college_junior_club_team VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT college_junior_club_team FROM table_2781227_4 WHERE player = "Adam Wiesel"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Gold has a Silver greater than 30 and a Total less than 107?
### Context:
CREATE TABLE table_name_40 (gold VARCHAR, silver VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT gold FROM table_name_40 WHERE silver > 30 AND total < 107</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which year has a Gen.-Secretary of silvana jansen?
### Context:
CREATE TABLE table_name_7 (year VARCHAR, gen_secretary VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_7 WHERE gen_secretary = "silvana jansen"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the winning driver with pole position being paul tracy and race name being miller genuine draft 200
### Context:
CREATE TABLE table_14638077_2 (winning_driver VARCHAR, pole_position VARCHAR, race_name VARCHAR)
### Response:
### Response:
SELECT winning_driver FROM table_14638077_2 WHERE pole_position = "Paul Tracy" AND race_name = "Miller Genuine Draft 200"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 id, genre and artist name of English songs ordered by rating.
### Context:
CREATE TABLE song (f_id VARCHAR, genre_is VARCHAR, artist_name VARCHAR, languages VARCHAR, rating VARCHAR)
### Response:
### Response:
SELECT f_id, genre_is, artist_name FROM song WHERE languages = "english" ORDER BY rating</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the venue that Saint Joseph's University hosted at?
### Context:
CREATE TABLE table_name_38 (venue VARCHAR, host VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_38 WHERE host = "saint joseph's university"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 p is bigger than 4.0 what is total number
### Context:
CREATE TABLE table_17505751_5 (total VARCHAR, p INTEGER)
### Response:
### Response:
SELECT COUNT(total) FROM table_17505751_5 WHERE p > 4.0</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which title had an audience of 4.629.000?
### Context:
CREATE TABLE table_name_68 (title VARCHAR, audience VARCHAR)
### Response:
### Response:
SELECT title FROM table_name_68 WHERE audience = "4.629.000"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who directed the episode with production code ca303?
### Context:
CREATE TABLE table_25740548_4 (directed_by VARCHAR, production_code VARCHAR)
### Response:
### Response:
SELECT directed_by FROM table_25740548_4 WHERE production_code = "CA303"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 silver medals were won with a total medal of 3 and a rank above 9?
### Context:
CREATE TABLE table_name_49 (silver INTEGER, total VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT AVG(silver) FROM table_name_49 WHERE total < 3 AND rank > 9</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
In cook county Kerry# is?
### Context:
CREATE TABLE table_1302886_1 (kerry_number VARCHAR, county VARCHAR)
### Response:
### Response:
SELECT kerry_number FROM table_1302886_1 WHERE county = "Cook"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 highest swimsuit for an average less than 8.073, evening gown less than 8.31, and an interview over 8.23 in georgia?
### Context:
CREATE TABLE table_name_13 (swimsuit INTEGER, state VARCHAR, interview VARCHAR, average VARCHAR, evening_gown VARCHAR)
### Response:
### Response:
SELECT MAX(swimsuit) FROM table_name_13 WHERE average < 8.073 AND evening_gown < 8.31 AND interview > 8.23 AND state = "georgia"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Quarterfinal has a Rank larger than 9?
### Context:
CREATE TABLE table_name_28 (quarterfinal VARCHAR, rank INTEGER)
### Response:
### Response:
SELECT quarterfinal FROM table_name_28 WHERE rank > 9</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total number of Silver with a Total that is smaller than 1?
### Context:
CREATE TABLE table_name_19 (silver VARCHAR, total INTEGER)
### Response:
### Response:
SELECT COUNT(silver) FROM table_name_19 WHERE total < 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's the player's name whose nationality and team are Netherlands?
### Context:
CREATE TABLE table_24765815_2 (player VARCHAR, nationality VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT player FROM table_24765815_2 WHERE nationality = "Netherlands" AND team = "Netherlands"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 party with result being retired to run for u. s. senate republican hold
### Context:
CREATE TABLE table_1341577_10 (party VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT party FROM table_1341577_10 WHERE result = "Retired to run for U. S. Senate Republican hold"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 U.S. viewers (million) watched the episode directed by Allison Liddi-Brown?
### Context:
CREATE TABLE table_27116696_1 (us_viewers__million_ VARCHAR, directed_by VARCHAR)
### Response:
### Response:
SELECT us_viewers__million_ FROM table_27116696_1 WHERE directed_by = "Allison Liddi-Brown"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many people attended the September 21, 1980 game?
### Context:
CREATE TABLE table_name_22 (attendance INTEGER, date VARCHAR)
### Response:
### Response:
SELECT AVG(attendance) FROM table_name_22 WHERE date = "september 21, 1980"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Seasons has a Name of joe grugin, and a Lost larger than 8?
### Context:
CREATE TABLE table_name_98 (seasons VARCHAR, name VARCHAR, lost VARCHAR)
### Response:
### Response:
SELECT COUNT(seasons) FROM table_name_98 WHERE name = "joe grugin" 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 date of week 8?
### Context:
CREATE TABLE table_name_23 (date VARCHAR, week VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_23 WHERE week = 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 smallest game had a location of Madison Square Garden with a score of 109-99?
### Context:
CREATE TABLE table_name_3 (game INTEGER, location_attendance VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT MIN(game) FROM table_name_3 WHERE location_attendance = "madison square garden" AND score = "109-99"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What number does the player from Ohio play with?
### Context:
CREATE TABLE table_11545282_10 (no VARCHAR, school_club_team VARCHAR)
### Response:
### Response:
SELECT no FROM table_11545282_10 WHERE school_club_team = "Ohio"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is Lenth Feet, when Mi From Kingston is greater than 84.5, when Length Meters is greater than 55.5, and when Name is Unnamed?
### Context:
CREATE TABLE table_name_28 (length_feet VARCHAR, name VARCHAR, mi_from_kingston VARCHAR, length_meters VARCHAR)
### Response:
### Response:
SELECT length_feet FROM table_name_28 WHERE mi_from_kingston > 84.5 AND length_meters > 55.5 AND name = "unnamed"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 region 1's did back to earth have?
### Context:
CREATE TABLE table_25721_4 (region_1 VARCHAR, release VARCHAR)
### Response:
### Response:
SELECT COUNT(region_1) FROM table_25721_4 WHERE release = "Back to Earth"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 minimum Top-10 when the Open Championship was the tournament and the wins greater than 0?
### Context:
CREATE TABLE table_name_32 (top_10 INTEGER, tournament VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT MIN(top_10) FROM table_name_32 WHERE tournament = "the open championship" AND wins > 0</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the opponent for week of 2
### Context:
CREATE TABLE table_name_6 (opponent VARCHAR, week VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_6 WHERE week = 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 language for translators ritah meltser and amatsyah porat?
### Context:
CREATE TABLE table_name_87 (language VARCHAR, translator VARCHAR)
### Response:
### Response:
SELECT language FROM table_name_87 WHERE translator = "ritah meltser and amatsyah porat"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mountains classification has an Asian team classification of seoul cycling team, and a Winner of alexandre usov?
### Context:
CREATE TABLE table_name_99 (mountains_classification VARCHAR, asian_team_classification VARCHAR, winner VARCHAR)
### Response:
### Response:
SELECT mountains_classification FROM table_name_99 WHERE asian_team_classification = "seoul cycling team" AND winner = "alexandre usov"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the number of party for kentucky 1
### Context:
CREATE TABLE table_2668378_5 (party VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT COUNT(party) FROM table_2668378_5 WHERE district = "Kentucky 1"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the average for rank of 3
### Context:
CREATE TABLE table_27496841_3 (average VARCHAR, rank_by_average VARCHAR)
### Response:
### Response:
SELECT average FROM table_27496841_3 WHERE rank_by_average = 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:
In 2012 what was the average finish?
### Context:
CREATE TABLE table_1012730_1 (avg_finish VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT avg_finish FROM table_1012730_1 WHERE year = 2012</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many Total medals did the country with 16 Silver and less than 32 Bronze receive?
### Context:
CREATE TABLE table_name_65 (total INTEGER, silver VARCHAR, bronze VARCHAR)
### Response:
### Response:
SELECT MIN(total) FROM table_name_65 WHERE silver = 16 AND bronze < 32</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many season 3 appearances by the character played by Stefan Van Ray?
### Context:
CREATE TABLE table_26240046_1 (season_3 INTEGER, played_by VARCHAR)
### Response:
### Response:
SELECT MIN(season_3) FROM table_26240046_1 WHERE played_by = "Stefan van Ray"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 start address when the network number bit field is 16?
### Context:
CREATE TABLE table_name_88 (start_address VARCHAR, size_of_network_number_bit_field VARCHAR)
### Response:
### Response:
SELECT start_address FROM table_name_88 WHERE size_of_network_number_bit_field = "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:
Who were the co drivers past 1994 in the WSC class?
### Context:
CREATE TABLE table_name_43 (co_drivers VARCHAR, year VARCHAR, class VARCHAR)
### Response:
### Response:
SELECT co_drivers FROM table_name_43 WHERE year > 1994 AND class = "wsc"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 recorded date of track 8?
### Context:
CREATE TABLE table_name_73 (recorded VARCHAR, track VARCHAR)
### Response:
### Response:
SELECT recorded FROM table_name_73 WHERE track = 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:
I want the model for digital of dvb-t (cx22702) and tuner of thomson dtt75105
### Context:
CREATE TABLE table_name_7 (model VARCHAR, digital VARCHAR, tuner VARCHAR)
### Response:
### Response:
SELECT model FROM table_name_7 WHERE digital = "dvb-t (cx22702)" AND tuner = "thomson dtt75105"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 attendance for week 11?
### Context:
CREATE TABLE table_name_46 (attendance INTEGER, week VARCHAR)
### Response:
### Response:
SELECT MIN(attendance) FROM table_name_46 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 is the surface of the tournament with a runner-up outcome and dudi sela as the opponent?
### Context:
CREATE TABLE table_name_59 (surface VARCHAR, outcome VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT surface FROM table_name_59 WHERE outcome = "runner-up" AND opponent = "dudi sela"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Version, when Release Date is "2011-04-01"?
### Context:
CREATE TABLE table_name_38 (version INTEGER, release_date VARCHAR)
### Response:
### Response:
SELECT MAX(version) FROM table_name_38 WHERE release_date = "2011-04-01"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the player born who is 2.02m tall?
### Context:
CREATE TABLE table_12962773_14 (year_born INTEGER, height VARCHAR)
### Response:
### Response:
SELECT MAX(year_born) FROM table_12962773_14 WHERE height = "2.02"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the time for the match with away team Convoy Sun Hei Team A?
### Context:
CREATE TABLE table_name_47 (time VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT time FROM table_name_47 WHERE away_team = "convoy sun hei team a"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the john b. anderson for ronald reagan of 43% and phil crane of 0%
### Context:
CREATE TABLE table_name_21 (john_b_anderson VARCHAR, phil_crane VARCHAR, ronald_reagan VARCHAR)
### Response:
### Response:
SELECT john_b_anderson FROM table_name_21 WHERE phil_crane = "0%" AND ronald_reagan = "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 is the name of the home team when the away team was Melbourne?
### Context:
CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT home_team FROM table_name_70 WHERE away_team = "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 was Carlton's score as the home team?
### Context:
CREATE TABLE table_name_65 (home_team VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_65 WHERE home_team = "carlton"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
GT Force of no, and a Driving Force Pro of no, and a G27 Racing Wheel of no has what driving force gt?
### Context:
CREATE TABLE table_name_2 (driving_force_gt VARCHAR, g27_racing_wheel VARCHAR, gt_force VARCHAR, driving_force_pro VARCHAR)
### Response:
### Response:
SELECT driving_force_gt FROM table_name_2 WHERE gt_force = "no" AND driving_force_pro = "no" AND g27_racing_wheel = "no"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 first elected for district missouri 7?
### Context:
CREATE TABLE table_1341663_26 (first_elected INTEGER, district VARCHAR)
### Response:
### Response:
SELECT MIN(first_elected) FROM table_1341663_26 WHERE district = "Missouri 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 2009 value with A in 2012 and q2 in 2011?
### Context:
CREATE TABLE table_name_32 (Id VARCHAR)
### Response:
### Response:
SELECT 2009 FROM table_name_32 WHERE 2012 = "a" AND 2011 = "q2"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Ties have Years of 1919–1925, and a Pct larger than 0.734?
### Context:
CREATE TABLE table_name_75 (ties INTEGER, years VARCHAR, pct VARCHAR)
### Response:
### Response:
SELECT SUM(ties) FROM table_name_75 WHERE years = "1919–1925" AND pct > 0.734</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Retitled as/Same has a Last Aired larger than 1982, and a Show of we got it made?
### Context:
CREATE TABLE table_name_99 (retitled_as_same VARCHAR, last_aired VARCHAR, show VARCHAR)
### Response:
### Response:
SELECT retitled_as_same FROM table_name_99 WHERE last_aired > 1982 AND show = "we got it made"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Jump 2 of 7.06, and what is this person's Jump 3?
### Context:
CREATE TABLE table_name_80 (jump_3 VARCHAR, jump_2 VARCHAR)
### Response:
### Response:
SELECT jump_3 FROM table_name_80 WHERE jump_2 = "7.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:
What Winning team has 22 July as a Date?
### Context:
CREATE TABLE table_name_79 (winning_team VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT winning_team FROM table_name_79 WHERE date = "22 july"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the time from the song called Treat Me Nice?
### Context:
CREATE TABLE table_name_29 (time VARCHAR, song_title VARCHAR)
### Response:
### Response:
SELECT time FROM table_name_29 WHERE song_title = "treat me nice"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 paper type of the University of Saskatchewan themed stamp?
### Context:
CREATE TABLE table_11900773_5 (paper_type VARCHAR, theme VARCHAR)
### Response:
### Response:
SELECT paper_type FROM table_11900773_5 WHERE theme = "University of Saskatchewan"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the number of former wnba team for 2
### Context:
CREATE TABLE table_17308269_2 (former_wnba_team VARCHAR, pick VARCHAR)
### Response:
### Response:
SELECT COUNT(former_wnba_team) FROM table_17308269_2 WHERE pick = 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 Score that has a Result of 2–2 on 04 Dec 2005?
### Context:
CREATE TABLE table_name_47 (score VARCHAR, result VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_47 WHERE result = "2–2" AND date = "04 dec 2005"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
On Sept. 17, how many first downs did the oilers have?
### Context:
CREATE TABLE table_15984957_2 (oilers_first_downs VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT COUNT(oilers_first_downs) FROM table_15984957_2 WHERE date = "Sept. 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 is the Outcome with a Date that is may 5, 2012?
### Context:
CREATE TABLE table_name_49 (outcome VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT outcome FROM table_name_49 WHERE date = "may 5, 2012"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What language is the Tematico content with a sky tv package, and Fox Crime television service?
### Context:
CREATE TABLE table_name_55 (language VARCHAR, television_service VARCHAR, content VARCHAR, package_option VARCHAR)
### Response:
### Response:
SELECT language FROM table_name_55 WHERE content = "tematico" AND package_option = "sky tv" AND television_service = "fox crime"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 award has the category of the best direction of a musical?
### Context:
CREATE TABLE table_name_69 (award VARCHAR, category VARCHAR)
### Response:
### Response:
SELECT award FROM table_name_69 WHERE category = "best direction of a musical"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Score has a Tie no of 1?
### Context:
CREATE TABLE table_name_22 (score VARCHAR, tie_no VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_22 WHERE tie_no = "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 Year is the highest one that has a Venue of blackwolf run, composite course, and a Score of 281?
### Context:
CREATE TABLE table_name_48 (year INTEGER, venue VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT MAX(year) FROM table_name_48 WHERE venue = "blackwolf run, composite course" AND score = "281"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in 1931 for lubelskie
### Context:
CREATE TABLE table_14245_3 (population__1931__in_1 VARCHAR, voivodeship_or_city VARCHAR)
### Response:
### Response:
SELECT population__1931__in_1, 000 AS s FROM table_14245_3 WHERE voivodeship_or_city = "lubelskie"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which team won on the day when attendance was 42,308?
### Context:
CREATE TABLE table_name_27 (result VARCHAR, attendance VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_27 WHERE attendance = "42,308"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 villains were in episode 3 (13)?
### Context:
CREATE TABLE table_23170118_2 (villains VARCHAR, episode_number VARCHAR)
### Response:
### Response:
SELECT COUNT(villains) FROM table_23170118_2 WHERE episode_number = "3 (13)"</s>
|
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Show the id and builder of the railway that are associated with the most trains.
### Context:
CREATE TABLE train (Railway_ID VARCHAR); CREATE TABLE railway (Builder VARCHAR, Railway_ID VARCHAR)
### Response:
### Response:
SELECT T2.Railway_ID, T1.Builder FROM railway AS T1 JOIN train AS T2 ON T1.Railway_ID = T2.Railway_ID GROUP BY T2.Railway_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:
Which event has Philadelphia, PA as the location and 41 days held?
### Context:
CREATE TABLE table_name_39 (event VARCHAR, location VARCHAR, days_held VARCHAR)
### Response:
### Response:
SELECT event FROM table_name_39 WHERE location = "philadelphia, pa" AND days_held = 41</s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.