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:
How many platinum points were awarded when 70 silver points were awarded?
### Context:
CREATE TABLE table_11254821_2 (points_awarded__platinum_ VARCHAR, points_awarded__silver_ VARCHAR)
### Response:
### Response:
SELECT points_awarded__platinum_ FROM table_11254821_2 WHERE points_awarded__silver_ = 70</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Lane of the swimmer with a Rank of 8?
### Context:
CREATE TABLE table_name_24 (lane INTEGER, rank VARCHAR)
### Response:
### Response:
SELECT MAX(lane) FROM table_name_24 WHERE rank = 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 school that hosts mikael renberg
### Context:
CREATE TABLE table_name_91 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT college_junior_club_team__league_ FROM table_name_91 WHERE player = "mikael renberg"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name and damage for all storms in a descending order of max speed.
### Context:
CREATE TABLE storm (name VARCHAR, damage_millions_USD VARCHAR, max_speed VARCHAR)
### Response:
### Response:
SELECT name, damage_millions_USD FROM storm ORDER BY max_speed DESC</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Name the Rider which has a Time of +59.304?
### Context:
CREATE TABLE table_name_33 (rider VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT rider FROM table_name_33 WHERE time = "+59.304"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 General classification for a points classification leader of Bradley Wiggins?
### Context:
CREATE TABLE table_name_47 (general_classification VARCHAR, points_classification VARCHAR)
### Response:
### Response:
SELECT general_classification FROM table_name_47 WHERE points_classification = "bradley wiggins"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the maximum accelerate for different number of cylinders?
### Context:
CREATE TABLE CARS_DATA (Cylinders VARCHAR, Accelerate INTEGER)
### Response:
### Response:
SELECT MAX(Accelerate), Cylinders FROM CARS_DATA GROUP BY Cylinders</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 money list rank for the players having a best finish of T9?
### Context:
CREATE TABLE table_24747844_2 (money_list_rank INTEGER, best_finish VARCHAR)
### Response:
### Response:
SELECT MIN(money_list_rank) FROM table_24747844_2 WHERE best_finish = "T9"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 name of the episode that was directed by Mary Harron?
### Context:
CREATE TABLE table_2182654_6 (title VARCHAR, directed_by VARCHAR)
### Response:
### Response:
SELECT title FROM table_2182654_6 WHERE directed_by = "Mary Harron"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What city is east region venue University Hall (University of Virginia) in?
### Context:
CREATE TABLE table_name_10 (city VARCHAR, region VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT city FROM table_name_10 WHERE region = "east" AND venue = "university hall (university of virginia)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Sanskrit has a Chinese of —, and an English of cultivation of settling?
### Context:
CREATE TABLE table_name_74 (sanskrit VARCHAR, chinese VARCHAR, english VARCHAR)
### Response:
### Response:
SELECT sanskrit FROM table_name_74 WHERE chinese = "—" AND english = "cultivation of settling"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country has a finish of t4?
### Context:
CREATE TABLE table_name_98 (country VARCHAR, finish VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_98 WHERE finish = "t4"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 1996 if 1986 has a 1R?
### Context:
CREATE TABLE table_name_53 (Id VARCHAR)
### Response:
### Response:
SELECT 1996 FROM table_name_53 WHERE 1986 = "1r"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 package/options when the TV service is rai 3?
### Context:
CREATE TABLE table_15887683_1 (package_option VARCHAR, television_service VARCHAR)
### Response:
### Response:
SELECT package_option FROM table_15887683_1 WHERE television_service = "Rai 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 division is Traktor Tashkent in 2005?
### Context:
CREATE TABLE table_name_83 (division VARCHAR, team VARCHAR, season VARCHAR)
### Response:
### Response:
SELECT division FROM table_name_83 WHERE team = "traktor tashkent" AND season = "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:
which NHL team has a College/Junior/Club Team (League) of shattuck-saint mary's school (midget major aaa)?
### Context:
CREATE TABLE table_name_63 (nhl_team VARCHAR, college_junior_club_team__league_ VARCHAR)
### Response:
### Response:
SELECT nhl_team FROM table_name_63 WHERE college_junior_club_team__league_ = "shattuck-saint mary's school (midget major aaa)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Where was the game with a 13-5 record played, and in front of how many people?
### Context:
CREATE TABLE table_18894744_6 (location_attendance VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT location_attendance FROM table_18894744_6 WHERE record = "13-5"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What WPct has wins of wins?
### Context:
CREATE TABLE table_name_7 (wpct VARCHAR)
### Response:
### Response:
SELECT wpct FROM table_name_7 WHERE "wins" = "wins"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 drawn for entries with a lost of 13?
### Context:
CREATE TABLE table_name_38 (drawn INTEGER, lost VARCHAR)
### Response:
### Response:
SELECT MIN(drawn) FROM table_name_38 WHERE lost = 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:
Who was the developer of Call of Duty: Black Ops?
### Context:
CREATE TABLE table_name_46 (developer_s_ VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT developer_s_ FROM table_name_46 WHERE game = "call of duty: black ops"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Clinton appoint as a Chief Judge?
### Context:
CREATE TABLE table_name_2 (chief_judge VARCHAR, appointed_by VARCHAR)
### Response:
### Response:
SELECT chief_judge FROM table_name_2 WHERE appointed_by = "clinton"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 did the 11th place play 26 games?
### Context:
CREATE TABLE table_name_96 (year VARCHAR, place VARCHAR, played VARCHAR)
### Response:
### Response:
SELECT year FROM table_name_96 WHERE place = "11th" AND played = 26</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the official rating 16-39 for the episode with a 16-39 share of 22,77%?
### Context:
CREATE TABLE table_29804176_23 (official_rating_16_39 VARCHAR, share_16_39 VARCHAR)
### Response:
### Response:
SELECT official_rating_16_39 FROM table_29804176_23 WHERE share_16_39 = "22,77%"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 last name of the author that has published the most papers?
### Context:
CREATE TABLE authorship (authid VARCHAR, paperid VARCHAR); CREATE TABLE authors (lname VARCHAR, fname VARCHAR, authid VARCHAR); CREATE TABLE papers (paperid VARCHAR)
### Response:
### Response:
SELECT t1.lname FROM authors AS t1 JOIN authorship AS t2 ON t1.authid = t2.authid JOIN papers AS t3 ON t2.paperid = t3.paperid GROUP BY t1.fname, t1.lname 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:
Opponent of new york giants, and a Yards smaller than 68 is what kicker?
### Context:
CREATE TABLE table_name_36 (kicker VARCHAR, opponent VARCHAR, yards VARCHAR)
### Response:
### Response:
SELECT kicker FROM table_name_36 WHERE opponent = "new york giants" AND yards < 68</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What were the total number of entries in 2001 that had a front row smaller than 13?
### Context:
CREATE TABLE table_name_55 (entries VARCHAR, season VARCHAR, front_row_starts VARCHAR)
### Response:
### Response:
SELECT COUNT(entries) FROM table_name_55 WHERE season = "2001" AND front_row_starts < 13</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the team of the player from ohio state?
### Context:
CREATE TABLE table_name_93 (team VARCHAR, college VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_93 WHERE college = "ohio state"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many locations did the team play at on week 7?
### Context:
CREATE TABLE table_24123547_2 (location VARCHAR, week VARCHAR)
### Response:
### Response:
SELECT COUNT(location) FROM table_24123547_2 WHERE week = 7</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the average rank for south africa when they had more than 8 silver medals?
### Context:
CREATE TABLE table_name_64 (rank INTEGER, nation VARCHAR, silver VARCHAR)
### Response:
### Response:
SELECT AVG(rank) FROM table_name_64 WHERE nation = "south africa" AND silver > 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 lowest silver that has 2 as the bronze, with a total greater than 4?
### Context:
CREATE TABLE table_name_33 (silver INTEGER, bronze VARCHAR, total VARCHAR)
### Response:
### Response:
SELECT MIN(silver) FROM table_name_33 WHERE bronze = 2 AND total > 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 was the score on October 16, 1983?
### Context:
CREATE TABLE table_name_37 (score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_37 WHERE date = "october 16, 1983"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 oklahoma has Bush from Nebraska in year 2004?
### Context:
CREATE TABLE table_name_41 (oklahoma VARCHAR, nebraska VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT oklahoma FROM table_name_41 WHERE nebraska = "bush" AND year = "2004"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What character is played by dani harmer for under 23 episodes?
### Context:
CREATE TABLE table_name_51 (character VARCHAR, episodes VARCHAR, actor VARCHAR)
### Response:
### Response:
SELECT character FROM table_name_51 WHERE episodes < 23 AND actor = "dani harmer"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 founder of Sony?
### Context:
CREATE TABLE manufacturers (founder VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT founder FROM manufacturers WHERE name = 'Sony'</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the Wolverhampton Wanderers play at home?
### Context:
CREATE TABLE table_name_52 (date VARCHAR, home_team VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_52 WHERE home_team = "wolverhampton wanderers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who is the player with a t8 place?
### Context:
CREATE TABLE table_name_67 (player VARCHAR, place VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_67 WHERE place = "t8"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 club with 22 points?
### Context:
CREATE TABLE table_name_2 (club VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT club FROM table_name_2 WHERE points = "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:
who were the director of the episode whose number in the season is 17?
### Context:
CREATE TABLE table_27622417_1 (directed_by VARCHAR, no_in_season VARCHAR)
### Response:
### Response:
SELECT directed_by FROM table_27622417_1 WHERE no_in_season = 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 indoor number for the NJ wing/
### Context:
CREATE TABLE table_19534874_2 (indoor VARCHAR, wing VARCHAR)
### Response:
### Response:
SELECT indoor FROM table_19534874_2 WHERE wing = "NJ"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 phone and email for customer with first name Aniyah and last name Feest?
### Context:
CREATE TABLE Customers (customer_phone VARCHAR, customer_email VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR)
### Response:
### Response:
SELECT customer_phone, customer_email FROM Customers WHERE customer_first_name = "Aniyah" AND customer_last_name = "Feest"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 district is associated with the incumbent Carl Vinson?
### Context:
CREATE TABLE table_1342233_11 (candidates VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT candidates FROM table_1342233_11 WHERE incumbent = "Carl Vinson"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the term end that began December 4, 1978?
### Context:
CREATE TABLE table_224672_2 (term_ended VARCHAR, term_began VARCHAR)
### Response:
### Response:
SELECT term_ended FROM table_224672_2 WHERE term_began = "December 4, 1978"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 First Publisher in 2007?
### Context:
CREATE TABLE table_name_8 (first_publisher VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT first_publisher FROM table_name_8 WHERE year = 2007</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What stadium hosted the game that had a final score of 9-14?
### Context:
CREATE TABLE table_name_75 (stadium VARCHAR, final_score VARCHAR)
### Response:
### Response:
SELECT stadium FROM table_name_75 WHERE final_score = "9-14"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Nation with a Record that is 7.39?
### Context:
CREATE TABLE table_name_37 (nation VARCHAR, record VARCHAR)
### Response:
### Response:
SELECT nation FROM table_name_37 WHERE record = "7.39"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What team had a qual 1 of 59.895?
### Context:
CREATE TABLE table_name_72 (team VARCHAR, qual_1 VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_72 WHERE qual_1 = "59.895"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Edmonton Oilers game?
### Context:
CREATE TABLE table_16864968_8 (attendance VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT attendance FROM table_16864968_8 WHERE opponent = "Edmonton Oilers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 platforms can you play Portal 2 on?
### Context:
CREATE TABLE table_name_88 (platform_s_ VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT platform_s_ FROM table_name_88 WHERE game = "portal 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:
When was the match with a result of sa by 10 wkts?
### Context:
CREATE TABLE table_name_23 (date VARCHAR, result VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_23 WHERE result = "sa by 10 wkts"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 took the winning slot at the Vojens venue?
### Context:
CREATE TABLE table_name_29 (winners VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT winners FROM table_name_29 WHERE venue = "vojens"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What draw has a Span of 1987-1999?
### Context:
CREATE TABLE table_name_85 (draw VARCHAR, span VARCHAR)
### Response:
### Response:
SELECT draw FROM table_name_85 WHERE span = "1987-1999"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 the tournament with Alena Tarasova as the opponent?
### Context:
CREATE TABLE table_name_56 (date VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_56 WHERE opponent = "alena tarasova"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fight against when loss was the result at the Gladiator Challenge 87: Collision Course event?
### Context:
CREATE TABLE table_name_54 (opponent VARCHAR, res VARCHAR, event VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_54 WHERE res = "loss" AND event = "gladiator challenge 87: collision course"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 owner of the c501
### Context:
CREATE TABLE table_name_2 (owner VARCHAR, locomotive VARCHAR)
### Response:
### Response:
SELECT owner FROM table_name_2 WHERE locomotive = "c501"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 an Opponent of @ buffalo sabres?
### Context:
CREATE TABLE table_name_13 (score VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_13 WHERE opponent = "@ buffalo sabres"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score when the game has a loss of Lary (10-12)?
### Context:
CREATE TABLE table_name_18 (score VARCHAR, loss VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_18 WHERE loss = "lary (10-12)"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the frequency for the city of Lamar, Colorado?
### Context:
CREATE TABLE table_name_37 (frequency_mhz INTEGER, city_of_license VARCHAR)
### Response:
### Response:
SELECT AVG(frequency_mhz) FROM table_name_37 WHERE city_of_license = "lamar, colorado"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for the New Zealand breakers?
### Context:
CREATE TABLE table_name_59 (report VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT report FROM table_name_59 WHERE away_team = "new zealand breakers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 all the production codes of episodes written by Michael G. Moye?
### Context:
CREATE TABLE table_2226817_8 (production_code VARCHAR, written_by VARCHAR)
### Response:
### Response:
SELECT production_code FROM table_2226817_8 WHERE written_by = "Michael G. Moye"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Position of the Pick 8 Player?
### Context:
CREATE TABLE table_name_99 (position VARCHAR, pick VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_99 WHERE pick = 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:
How many attended the game on 12/17 with stephen jackson as the leading scorer?
### Context:
CREATE TABLE table_name_45 (attendance INTEGER, leading_scorer VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT SUM(attendance) FROM table_name_45 WHERE leading_scorer = "stephen jackson" AND date = "12/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:
Which player has a total bigger than 285 and a to par of +14?
### Context:
CREATE TABLE table_name_10 (player VARCHAR, total VARCHAR, to_par VARCHAR)
### Response:
### Response:
SELECT player FROM table_name_10 WHERE total > 285 AND to_par = "+14"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who is the opponent on November 22, 2009, clay surface?
### Context:
CREATE TABLE table_name_46 (opponent VARCHAR, surface VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_46 WHERE surface = "clay" AND date = "november 22, 2009"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Which date's visitor was jazz, when the leading scorer was Mehmet Okur (22)?
### Context:
CREATE TABLE table_name_4 (date VARCHAR, visitor VARCHAR, leading_scorer VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_4 WHERE visitor = "jazz" AND leading_scorer = "mehmet okur (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:
Name the most rank for population more than 93,378
### Context:
CREATE TABLE table_name_5 (rank INTEGER, population INTEGER)
### Response:
### Response:
SELECT MAX(rank) FROM table_name_5 WHERE population > 93 OFFSET 378</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 technicians are there?
### Context:
CREATE TABLE technician (Id VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM technician</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
The episode with the no. 54, directed by Charles Haid, is written by who?
### Context:
CREATE TABLE table_26561509_1 (written_by VARCHAR, directed_by VARCHAR, no VARCHAR)
### Response:
### Response:
SELECT written_by FROM table_26561509_1 WHERE directed_by = "Charles Haid" AND no = 54</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 choreographer bjørn holthe?
### Context:
CREATE TABLE table_name_60 (result VARCHAR, choreographer_s_ VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_60 WHERE choreographer_s_ = "bjørn holthe"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points did shahar pe'er score?
### Context:
CREATE TABLE table_20855452_4 (points VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT points AS won FROM table_20855452_4 WHERE player = "Shahar Pe'er"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Adelaide has an Auckland of no and a Melbourne of no?
### Context:
CREATE TABLE table_name_76 (adelaide VARCHAR, auckland VARCHAR, melbourne VARCHAR)
### Response:
### Response:
SELECT adelaide FROM table_name_76 WHERE auckland = "no" AND melbourne = "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:
What is the date of the 21:12 Set 2?
### Context:
CREATE TABLE table_name_17 (date VARCHAR, set_2 VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_17 WHERE set_2 = "21:12"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total launch failures when there are 4 launches, and the not usable is greater than 0?
### Context:
CREATE TABLE table_name_73 (launch_failures INTEGER, launched VARCHAR, not_usable VARCHAR)
### Response:
### Response:
SELECT SUM(launch_failures) FROM table_name_73 WHERE launched = 4 AND not_usable > 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:
Show the names of high school students and their corresponding number of friends.
### Context:
CREATE TABLE Highschooler (name VARCHAR, id VARCHAR); CREATE TABLE Friend (student_id VARCHAR)
### Response:
### Response:
SELECT T2.name, COUNT(*) FROM Friend AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the opposing team for the game on August 29?
### Context:
CREATE TABLE table_name_28 (opponent VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_28 WHERE date = "august 29"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who had the lowest field goals but had 10 points and more than 2 touchdowns?
### Context:
CREATE TABLE table_name_68 (field_goals INTEGER, points VARCHAR, touchdowns VARCHAR)
### Response:
### Response:
SELECT MIN(field_goals) FROM table_name_68 WHERE points = 10 AND touchdowns > 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:
When lake oval is the venue, what's the score of the home team?
### Context:
CREATE TABLE table_name_4 (home_team VARCHAR, venue VARCHAR)
### Response:
### Response:
SELECT home_team AS score FROM table_name_4 WHERE venue = "lake 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:
How many times this institution was founded that was nicknamed Beavers?
### Context:
CREATE TABLE table_255205_1 (founded VARCHAR, nickname VARCHAR)
### Response:
### Response:
SELECT COUNT(founded) FROM table_255205_1 WHERE nickname = "Beavers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Rocco Mediate's par?
### Context:
CREATE TABLE table_name_17 (to_par VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT to_par FROM table_name_17 WHERE player = "rocco mediate"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the venue after 2012?
### Context:
CREATE TABLE table_name_4 (venue VARCHAR, year INTEGER)
### Response:
### Response:
SELECT venue FROM table_name_4 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:
What was the moving that has a free transfer fee, and the nationality of CYP, and winter as the transfer window?
### Context:
CREATE TABLE table_name_12 (moving_to VARCHAR, transfer_window VARCHAR, transfer_fee VARCHAR, nat VARCHAR)
### Response:
### Response:
SELECT moving_to FROM table_name_12 WHERE transfer_fee = "free" AND nat = "cyp" AND transfer_window = "winter"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 enrollment for the school with the mascot of the Fighting '59ers?
### Context:
CREATE TABLE table_name_9 (enrollment VARCHAR, mascot VARCHAR)
### Response:
### Response:
SELECT enrollment FROM table_name_9 WHERE mascot = "fighting '59ers"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Where was the September 22 game played?
### Context:
CREATE TABLE table_name_23 (location VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT location FROM table_name_23 WHERE date = "september 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 are the names of enzymes who does not produce 'Heme'?
### Context:
CREATE TABLE enzyme (name VARCHAR, product VARCHAR)
### Response:
### Response:
SELECT name FROM enzyme WHERE product <> 'Heme'</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the date of appointment for incoming manager Roy Hodgson and the team is Liverpool?
### Context:
CREATE TABLE table_24172157_3 (date_of_appointment VARCHAR, team VARCHAR, incoming_manager VARCHAR)
### Response:
### Response:
SELECT date_of_appointment FROM table_24172157_3 WHERE team = "Liverpool" AND incoming_manager = "Roy Hodgson"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
which is the minimun amount of silver medals?
### Context:
CREATE TABLE table_22355_35 (silver INTEGER)
### Response:
### Response:
SELECT MIN(silver) FROM table_22355_35</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 with Opponent Dallas Cowboys in a Week greater than 5?
### Context:
CREATE TABLE table_name_51 (attendance INTEGER, opponent VARCHAR, week VARCHAR)
### Response:
### Response:
SELECT SUM(attendance) FROM table_name_51 WHERE opponent = "dallas cowboys" AND week > 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 video games exist?
### Context:
CREATE TABLE Video_games (Id VARCHAR)
### Response:
### Response:
SELECT COUNT(*) FROM Video_games</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What championship was played in 1981?
### Context:
CREATE TABLE table_2201541_3 (championship__titles_finals_ VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT championship__titles_finals_ FROM table_2201541_3 WHERE year = 1981</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 for w. arthur winstead?
### Context:
CREATE TABLE table_1342233_24 (result VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT result FROM table_1342233_24 WHERE incumbent = "W. Arthur Winstead"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 best for Bruno junqueira
### Context:
CREATE TABLE table_name_32 (best INTEGER, name VARCHAR)
### Response:
### Response:
SELECT SUM(best) FROM table_name_32 WHERE name = "bruno junqueira"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Opposing Team has an Against smaller than 19, and a Date of 20/05/1979?
### Context:
CREATE TABLE table_name_34 (opposing_team VARCHAR, against VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT opposing_team FROM table_name_34 WHERE against < 19 AND date = "20/05/1979"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has a margin of 178?
### Context:
CREATE TABLE table_name_24 (round VARCHAR, margin VARCHAR)
### Response:
### Response:
SELECT round FROM table_name_24 WHERE margin = "178"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Pick number is Rich Burtness?
### Context:
CREATE TABLE table_name_26 (pick INTEGER, name VARCHAR)
### Response:
### Response:
SELECT AVG(pick) FROM table_name_26 WHERE name = "rich burtness"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is listed as the Highest Played and that has a Place that is larger than 10?
### Context:
CREATE TABLE table_name_9 (played INTEGER, place INTEGER)
### Response:
### Response:
SELECT MAX(played) FROM table_name_9 WHERE place > 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:
who directed the episode that have 0.25 million u.s viewers
### Context:
CREATE TABLE table_29803475_3 (directed_by VARCHAR, us_viewers__million_ VARCHAR)
### Response:
### Response:
SELECT directed_by FROM table_29803475_3 WHERE us_viewers__million_ = "0.25"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Who was the artist of the single that spent 9 ¶ weeks on top?
### Context:
CREATE TABLE table_name_28 (artist VARCHAR, weeks_on_top VARCHAR)
### Response:
### Response:
SELECT artist FROM table_name_28 WHERE weeks_on_top = "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:
How many premier episodes were there with the title survivor's law ii?
### Context:
CREATE TABLE table_11926114_1 (premiere VARCHAR, english_title VARCHAR)
### Response:
### Response:
SELECT COUNT(premiere) FROM table_11926114_1 WHERE english_title = "Survivor's Law II"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 district with incumbent being william j. driver
### Context:
CREATE TABLE table_1342331_5 (district VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT district FROM table_1342331_5 WHERE incumbent = "William J. Driver"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 election date where electorate is christchurch country
### Context:
CREATE TABLE table_1193568_1 (election_date VARCHAR, electorate VARCHAR)
### Response:
### Response:
SELECT election_date FROM table_1193568_1 WHERE electorate = "Christchurch Country"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the result of the game on November 7, 1999?
### Context:
CREATE TABLE table_name_9 (result VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_9 WHERE date = "november 7, 1999"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.