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:
Which captain has howard wilkinson as the manager?
### Context:
CREATE TABLE table_name_52 (captain VARCHAR, manager VARCHAR)
### Response:
### Response:
SELECT captain FROM table_name_52 WHERE manager = "howard wilkinson"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 direction for debrecen
### Context:
CREATE TABLE table_197286_4 (direction VARCHAR, further_cities VARCHAR)
### Response:
### Response:
SELECT COUNT(direction) FROM table_197286_4 WHERE further_cities = "Debrecen"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
If the Venue was kardinia park what was the highest Crowd attended?
### Context:
CREATE TABLE table_name_12 (crowd INTEGER, venue VARCHAR)
### Response:
### Response:
SELECT MAX(crowd) FROM table_name_12 WHERE venue = "kardinia park"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score when the team played at the bobcats?
### Context:
CREATE TABLE table_name_92 (score VARCHAR, home VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_92 WHERE home = "bobcats"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 catalogue number for release dates of exactly 2005 and released by The Clear Spots?
### Context:
CREATE TABLE table_27932399_1 (catalogue_number VARCHAR, release_date VARCHAR, artist VARCHAR)
### Response:
### Response:
SELECT catalogue_number FROM table_27932399_1 WHERE release_date = 2005 AND artist = "The Clear Spots"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what would be final four mvp maximum when first team is 1
### Context:
CREATE TABLE table_26130295_3 (final_four_mvp INTEGER, first_team VARCHAR)
### Response:
### Response:
SELECT MAX(final_four_mvp) FROM table_26130295_3 WHERE first_team = 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:
If there are 28 points, what is the time/retired?
### Context:
CREATE TABLE table_17330069_1 (time_retired VARCHAR, points VARCHAR)
### Response:
### Response:
SELECT time_retired FROM table_17330069_1 WHERE points = "28"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many viewers in millions watched the episode with the number 10.18?
### Context:
CREATE TABLE table_25391981_20 (viewers__millions_ VARCHAR, episode_number VARCHAR)
### Response:
### Response:
SELECT viewers__millions_ FROM table_25391981_20 WHERE episode_number = "10.18"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What country does Tiger Woods play for?
### Context:
CREATE TABLE table_name_17 (country VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_17 WHERE player = "tiger woods"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Game has a Record of 27-11-10?
### Context:
CREATE TABLE table_name_19 (game INTEGER, record VARCHAR)
### Response:
### Response:
SELECT AVG(game) FROM table_name_19 WHERE record = "27-11-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:
Which Director has a Rank of 12?
### Context:
CREATE TABLE table_name_22 (director VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT director FROM table_name_22 WHERE rank = 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 Original name of empire of passion?
### Context:
CREATE TABLE table_name_17 (original_name VARCHAR, film_title_used_in_nomination VARCHAR)
### Response:
### Response:
SELECT original_name FROM table_name_17 WHERE film_title_used_in_nomination = "empire of passion"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 launch date for the sattelite with ado that was 4 kg and 3 meters in diameter?
### Context:
CREATE TABLE table_2150068_1 (launch_date__utc_ VARCHAR, diameter_m_ VARCHAR, usage VARCHAR, mass_kg_ VARCHAR)
### Response:
### Response:
SELECT launch_date__utc_ FROM table_2150068_1 WHERE usage = "ado" AND mass_kg_ = "4" AND diameter_m_ = "3"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the lowest week number for the game that was at milwaukee county stadium?
### Context:
CREATE TABLE table_name_18 (week INTEGER, game_site VARCHAR)
### Response:
### Response:
SELECT MIN(week) FROM table_name_18 WHERE game_site = "milwaukee county stadium"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 incumbent of texas 3?
### Context:
CREATE TABLE table_1341663_44 (incumbent VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT incumbent FROM table_1341663_44 WHERE district = "Texas 3"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many sets lost have a sets won less than 0?
### Context:
CREATE TABLE table_name_15 (sets_lost VARCHAR, sets_won INTEGER)
### Response:
### Response:
SELECT COUNT(sets_lost) FROM table_name_15 WHERE sets_won < 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 MLS team had a pick number of 32?
### Context:
CREATE TABLE table_name_3 (mls_team VARCHAR, pick__number VARCHAR)
### Response:
### Response:
SELECT mls_team FROM table_name_3 WHERE pick__number = 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:
Which opponent had round 1?
### Context:
CREATE TABLE table_name_85 (opponent VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_85 WHERE round = "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 date for motogp winner of casey stoner and grand prix of valencian grand prix
### Context:
CREATE TABLE table_name_15 (date VARCHAR, motogp_winner VARCHAR, grand_prix VARCHAR)
### Response:
### Response:
SELECT date FROM table_name_15 WHERE motogp_winner = "casey stoner" AND grand_prix = "valencian grand prix"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
With a To par of –1, what is Player Henrik Stenson's Score?
### Context:
CREATE TABLE table_name_48 (score VARCHAR, to_par VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_48 WHERE to_par = "–1" AND player = "henrik stenson"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Pierre Daigneault?
### Context:
CREATE TABLE table_name_58 (position VARCHAR, player VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_58 WHERE player = "pierre daigneault"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the final score for @ Orlando?
### Context:
CREATE TABLE table_17355408_7 (score VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT score FROM table_17355408_7 WHERE team = "@ Orlando"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Great Britain's Round 1 score?
### Context:
CREATE TABLE table_16815824_1 (round1 VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT round1 FROM table_16815824_1 WHERE team = "Great Britain"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 manager of the St. Johnstone club?
### Context:
CREATE TABLE table_name_53 (manager VARCHAR, club VARCHAR)
### Response:
### Response:
SELECT manager FROM table_name_53 WHERE club = "st. johnstone"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did North Melbourne play as the away team?
### Context:
CREATE TABLE table_name_56 (venue VARCHAR, away_team VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_56 WHERE away_team = "north 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 is the prime mover for a build date in 1975?
### Context:
CREATE TABLE table_name_87 (prime_mover VARCHAR, build_date VARCHAR)
### Response:
### Response:
SELECT prime_mover FROM table_name_87 WHERE build_date = "1975"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Lost larger than 4 is what highest drawn?
### Context:
CREATE TABLE table_name_75 (drawn INTEGER, lost INTEGER)
### Response:
### Response:
SELECT MAX(drawn) FROM table_name_75 WHERE lost > 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 rank when the opponent was Wisconsin (played at Wisconsin)?
### Context:
CREATE TABLE table_name_23 (rank__number VARCHAR, opponent_number VARCHAR)
### Response:
### Response:
SELECT rank__number FROM table_name_23 WHERE opponent_number = "at wisconsin"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Casey Martin's minimum yearly earnings?
### Context:
CREATE TABLE table_1697190_2 (earnings___ INTEGER)
### Response:
### Response:
SELECT MIN(earnings___) AS $__ FROM table_1697190_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 highest total that has a bronze greater than 1, a gold greater than 1, with a silver less than 4?
### Context:
CREATE TABLE table_name_34 (total INTEGER, silver VARCHAR, bronze VARCHAR, gold VARCHAR)
### Response:
### Response:
SELECT MAX(total) FROM table_name_34 WHERE bronze > 1 AND gold > 1 AND silver < 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:
Name the current club for number 6
### Context:
CREATE TABLE table_12962773_13 (current_club VARCHAR, no VARCHAR)
### Response:
### Response:
SELECT current_club FROM table_12962773_13 WHERE no = 6</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What province has a v valparaíso region and an area of 927.2?
### Context:
CREATE TABLE table_name_31 (province VARCHAR, region VARCHAR, area VARCHAR)
### Response:
### Response:
SELECT province FROM table_name_31 WHERE region = "v valparaíso" AND area = 927.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 highest decile of Tarras school, which had a state authority?
### Context:
CREATE TABLE table_name_58 (decile INTEGER, authority VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT MAX(decile) FROM table_name_58 WHERE authority = "state" AND name = "tarras school"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
who is the the high rebounds with high assbeingts being scottie pippen (9)
### Context:
CREATE TABLE table_13480122_5 (high_rebounds VARCHAR, high_assists VARCHAR)
### Response:
### Response:
SELECT high_rebounds FROM table_13480122_5 WHERE high_assists = "Scottie Pippen (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 turnout with 15 candidates and more than 377,591 valid poll?
### Context:
CREATE TABLE table_name_81 (turnout VARCHAR, candidates VARCHAR, valid_poll VARCHAR)
### Response:
### Response:
SELECT turnout FROM table_name_81 WHERE candidates = 15 AND valid_poll > 377 OFFSET 591</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 date successor seated for the Virginia 11th District?
### Context:
CREATE TABLE table_225199_4 (date_successor_seated VARCHAR, district VARCHAR)
### Response:
### Response:
SELECT date_successor_seated FROM table_225199_4 WHERE district = "Virginia 11th"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 city has a conference of LCC2 and a year earlier than 2009?
### Context:
CREATE TABLE table_name_70 (city VARCHAR, year VARCHAR, conference VARCHAR)
### Response:
### Response:
SELECT city FROM table_name_70 WHERE year < 2009 AND conference = "lcc2"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Riccardo Patrese's time/retired?
### Context:
CREATE TABLE table_name_44 (time_retired VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT time_retired FROM table_name_44 WHERE driver = "riccardo patrese"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 had the high points when a. webb (7) had the high assists?
### Context:
CREATE TABLE table_27882867_9 (high_points VARCHAR, high_assists VARCHAR)
### Response:
### Response:
SELECT COUNT(high_points) FROM table_27882867_9 WHERE high_assists = "A. Webb (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 document types have more than 2 corresponding documents?
### Context:
CREATE TABLE documents (document_type_code VARCHAR)
### Response:
### Response:
SELECT document_type_code FROM documents GROUP BY document_type_code 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:
Which Bronze has a Year smaller than 1994, and a Silver of south korea?
### Context:
CREATE TABLE table_name_45 (bronze VARCHAR, year VARCHAR, silver VARCHAR)
### Response:
### Response:
SELECT bronze FROM table_name_45 WHERE year < 1994 AND silver = "south korea"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Production Number 9105 released?
### Context:
CREATE TABLE table_name_29 (release_date VARCHAR, production_num VARCHAR)
### Response:
### Response:
SELECT release_date FROM table_name_29 WHERE production_num = "9105"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sum of drawn with lost more than 1 and games less than 5
### Context:
CREATE TABLE table_name_13 (drawn INTEGER, lost VARCHAR, games VARCHAR)
### Response:
### Response:
SELECT SUM(drawn) FROM table_name_13 WHERE lost > 1 AND games < 5</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the score of the match on June 4, 2008?
### Context:
CREATE TABLE table_name_76 (score VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_76 WHERE date = "june 4, 2008"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How many clubs remained when there were 4 winners from the previous round?
### Context:
CREATE TABLE table_29566686_1 (clubs_remaining VARCHAR, winners_from_previous_round VARCHAR)
### Response:
### Response:
SELECT clubs_remaining FROM table_29566686_1 WHERE winners_from_previous_round = 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:
how many pick# does the chivas usa mls team have
### Context:
CREATE TABLE table_29626583_1 (pick__number INTEGER, mls_team VARCHAR)
### Response:
### Response:
SELECT MAX(pick__number) FROM table_29626583_1 WHERE mls_team = "Chivas USA"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 deaths were there when the total casualties were 6?
### Context:
CREATE TABLE table_name_33 (total_deaths VARCHAR, total_casualties VARCHAR)
### Response:
### Response:
SELECT total_deaths FROM table_name_33 WHERE total_casualties = "6"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the total number of matches for Nat Lofthouse, ranking higher than 7?
### Context:
CREATE TABLE table_name_55 (matches VARCHAR, name VARCHAR, rank VARCHAR)
### Response:
### Response:
SELECT COUNT(matches) FROM table_name_55 WHERE name = "nat lofthouse" AND rank > 7</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What brakes for the 4-speed automatic gearbox?
### Context:
CREATE TABLE table_250230_2 (brakes VARCHAR, gearbox VARCHAR)
### Response:
### Response:
SELECT brakes FROM table_250230_2 WHERE gearbox = "4-speed automatic"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Player of jaco coetzee, and a Tries larger than 6 had what total number of score?
### Context:
CREATE TABLE table_name_50 (score VARCHAR, player VARCHAR, tries VARCHAR)
### Response:
### Response:
SELECT COUNT(score) FROM table_name_50 WHERE player = "jaco coetzee" AND tries > 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 of the Rounds has an Entrant of automobiles Talbot-Darracq, and Pierre Levegh as the driver?
### Context:
CREATE TABLE table_name_72 (rounds VARCHAR, entrant VARCHAR, driver VARCHAR)
### Response:
### Response:
SELECT rounds FROM table_name_72 WHERE entrant = "automobiles talbot-darracq" AND driver = "pierre levegh"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 was the opponent when February shows more than 2, with a game number less than 55?
### Context:
CREATE TABLE table_name_92 (opponent VARCHAR, february VARCHAR, game VARCHAR)
### Response:
### Response:
SELECT opponent FROM table_name_92 WHERE february > 2 AND game < 55</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 report is where rd. is 9?
### Context:
CREATE TABLE table_19850806_3 (report VARCHAR, rd VARCHAR)
### Response:
### Response:
SELECT report FROM table_19850806_3 WHERE rd = "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 lowest earnings of Vijay Singh who had more than 24 wins?
### Context:
CREATE TABLE table_name_34 (earnings___ INTEGER, player VARCHAR, wins VARCHAR)
### Response:
### Response:
SELECT MIN(earnings___) AS $__ FROM table_name_34 WHERE player = "vijay singh" AND wins > 24</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the Nationality on the swimmer in Lane 4 with a Time of 1:11.58?
### Context:
CREATE TABLE table_name_54 (nationality VARCHAR, lane VARCHAR, time VARCHAR)
### Response:
### Response:
SELECT nationality FROM table_name_54 WHERE lane = 4 AND time = "1:11.58"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 opponent Sergiy Stakhovsky?
### Context:
CREATE TABLE table_name_28 (round VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT round FROM table_name_28 WHERE opponent = "sergiy stakhovsky"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
Tell me the season for quarter-final position of 4th
### Context:
CREATE TABLE table_name_97 (season VARCHAR, play_offs VARCHAR, pos VARCHAR)
### Response:
### Response:
SELECT season FROM table_name_97 WHERE play_offs = "quarter-final" AND pos = "4th"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 new manager of the team on 21st position appointed?
### Context:
CREATE TABLE table_19359427_6 (date_of_appointment VARCHAR, position_in_table VARCHAR)
### Response:
### Response:
SELECT date_of_appointment FROM table_19359427_6 WHERE position_in_table = "21st"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 status of the series that was run by tv channel Mediacorp tv12 Suria?
### Context:
CREATE TABLE table_27469019_2 (status VARCHAR, television_channel VARCHAR)
### Response:
### Response:
SELECT status FROM table_27469019_2 WHERE television_channel = "MediaCorp TV12 Suria"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goals Olimpia recorded for 32 matches?
### Context:
CREATE TABLE table_13688489_1 (goals_olimpia VARCHAR, matches VARCHAR)
### Response:
### Response:
SELECT COUNT(goals_olimpia) FROM table_13688489_1 WHERE matches = 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:
Which baseball team is class AAA?
### Context:
CREATE TABLE table_name_75 (team VARCHAR, sport VARCHAR, class VARCHAR)
### Response:
### Response:
SELECT team FROM table_name_75 WHERE sport = "baseball" AND class = "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:
Which female challengers featured in episode 28?
### Context:
CREATE TABLE table_24051050_1 (challengers__female_ VARCHAR, episode VARCHAR)
### Response:
### Response:
SELECT challengers__female_ FROM table_24051050_1 WHERE episode = 28</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
If the median income is $57,407, what is the per capita income?
### Context:
CREATE TABLE table_1840495_2 (per_capita_income VARCHAR, median_house__hold_income VARCHAR)
### Response:
### Response:
SELECT per_capita_income FROM table_1840495_2 WHERE median_house__hold_income = "$57,407"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
From what country did someone score 71?
### Context:
CREATE TABLE table_name_72 (country VARCHAR, score VARCHAR)
### Response:
### Response:
SELECT country FROM table_name_72 WHERE score = 71</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was the score of the game against montreal canadiens after game 26?
### Context:
CREATE TABLE table_name_59 (score VARCHAR, game VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT score FROM table_name_59 WHERE game > 26 AND opponent = "montreal canadiens"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 of the Athlete in Lane 4?
### Context:
CREATE TABLE table_name_34 (time VARCHAR, lane VARCHAR)
### Response:
### Response:
SELECT COUNT(time) FROM table_name_34 WHERE lane = 4</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the name of the suburb with a roll of 741?
### Context:
CREATE TABLE table_name_60 (suburb VARCHAR, roll VARCHAR)
### Response:
### Response:
SELECT suburb FROM table_name_60 WHERE roll = 741</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2005 has a 2006 of 126,511?
### Context:
CREATE TABLE table_name_39 (Id VARCHAR)
### Response:
### Response:
SELECT 2005 FROM table_name_39 WHERE 2006 = "126,511"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the record at Columbia for the team overall record of MU, 3-1?
### Context:
CREATE TABLE table_16201038_5 (at_columbia VARCHAR, overall_record VARCHAR)
### Response:
### Response:
SELECT at_columbia FROM table_16201038_5 WHERE overall_record = "MU, 3-1"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the largest value of population?
### Context:
CREATE TABLE table_2374338_2 (population INTEGER)
### Response:
### Response:
SELECT MAX(population) FROM table_2374338_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 overall pick number that Derrick Harvey was when he was picked in a round after round 1?
### Context:
CREATE TABLE table_name_26 (overall INTEGER, name VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT MIN(overall) FROM table_name_26 WHERE name = "derrick harvey" AND round > 1</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the total number with Nov 2012 with a Jun 2013 larger than 542, and a Aug 2011 more than 935?
### Context:
CREATE TABLE table_name_19 (nov_2012 VARCHAR, jun_2013 VARCHAR, aug_2011 VARCHAR)
### Response:
### Response:
SELECT COUNT(nov_2012) FROM table_name_19 WHERE jun_2013 > 542 AND aug_2011 > 935</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bronzes for nations ranked above 7, under 3 golds, and under 10 total medals?
### Context:
CREATE TABLE table_name_78 (bronze VARCHAR, total VARCHAR, rank VARCHAR, gold VARCHAR)
### Response:
### Response:
SELECT COUNT(bronze) FROM table_name_78 WHERE rank < 7 AND gold < 3 AND total < 10</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What locations are considered centre?
### Context:
CREATE TABLE table_26387382_1 (power__mw·hr_yr_ VARCHAR, location__county_ VARCHAR)
### Response:
### Response:
SELECT power__mw·hr_yr_ FROM table_26387382_1 WHERE location__county_ = "Centre"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
How much has dave stockton earned?
### Context:
CREATE TABLE table_name_41 (earnings__ INTEGER, player VARCHAR)
### Response:
### Response:
SELECT MAX(earnings__) AS $__ FROM table_name_41 WHERE player = "dave stockton"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 from 2013?
### Context:
CREATE TABLE table_name_49 (result VARCHAR, year VARCHAR)
### Response:
### Response:
SELECT result FROM table_name_49 WHERE year = 2013</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 when the team is milwaukee?
### Context:
CREATE TABLE table_27734769_8 (score VARCHAR, team VARCHAR)
### Response:
### Response:
SELECT score FROM table_27734769_8 WHERE team = "Milwaukee"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What Cornerback has the lowest Pick # and Round of less than 1?
### Context:
CREATE TABLE table_name_16 (pick__number INTEGER, position VARCHAR, round VARCHAR)
### Response:
### Response:
SELECT MIN(pick__number) FROM table_name_16 WHERE position = "cornerback" AND round < 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 first elected with incumbent being clair engle
### Context:
CREATE TABLE table_1342233_6 (first_elected VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT first_elected FROM table_1342233_6 WHERE incumbent = "Clair Engle"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 Venue, when Date is "2003-08-13"?
### Context:
CREATE TABLE table_name_72 (venue VARCHAR, date VARCHAR)
### Response:
### Response:
SELECT venue FROM table_name_72 WHERE date = "2003-08-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 total number of wins for events with under 2 top-5s, under 5 top-25s, and more than 4 events played?
### Context:
CREATE TABLE table_name_92 (wins VARCHAR, top_5 VARCHAR, top_25 VARCHAR, events VARCHAR)
### Response:
### Response:
SELECT COUNT(wins) FROM table_name_92 WHERE top_25 < 5 AND events > 4 AND top_5 < 2</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was Diego Saraiva's record when he fought for 3 rounds against danny suarez?
### Context:
CREATE TABLE table_name_75 (record VARCHAR, round VARCHAR, opponent VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_75 WHERE round = "3" AND opponent = "danny suarez"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 NFL team for the player who's college was Norfolk State?
### Context:
CREATE TABLE table_16376436_1 (nfl_team VARCHAR, college VARCHAR)
### Response:
### Response:
SELECT nfl_team FROM table_16376436_1 WHERE college = "Norfolk 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:
who guest starred on the episode with a 1.44m rating
### Context:
CREATE TABLE table_29135051_3 (guest_s_ VARCHAR, ratings VARCHAR)
### Response:
### Response:
SELECT guest_s_ FROM table_29135051_3 WHERE ratings = "1.44m"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 classes are taken in the third year when pag-unawa was taken in the first year?
### Context:
CREATE TABLE table_12148147_2 (third_year VARCHAR, first_year VARCHAR)
### Response:
### Response:
SELECT COUNT(third_year) FROM table_12148147_2 WHERE first_year = "Pag-unawa"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 entrant when the chassis is ferrari 125?
### Context:
CREATE TABLE table_name_88 (entrant VARCHAR, chassis VARCHAR)
### Response:
### Response:
SELECT entrant FROM table_name_88 WHERE chassis = "ferrari 125"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the rank for the year opened in 1959 in Pennsylvania?
### Context:
CREATE TABLE table_name_83 (rank VARCHAR, year_opened VARCHAR, state VARCHAR)
### Response:
### Response:
SELECT rank FROM table_name_83 WHERE year_opened = "1959" AND state = "pennsylvania"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 terms began when the term ended in January 3, 1989?
### Context:
CREATE TABLE table_197446_1 (term_began VARCHAR, term_ended VARCHAR)
### Response:
### Response:
SELECT COUNT(term_began) FROM table_197446_1 WHERE term_ended = "January 3, 1989"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 performance with a replacement cast?
### Context:
CREATE TABLE table_name_80 (first_performance VARCHAR, status VARCHAR)
### Response:
### Response:
SELECT first_performance FROM table_name_80 WHERE status = "replacement cast"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
what is the location for the date (to) 8 october 1922?
### Context:
CREATE TABLE table_12562214_1 (location VARCHAR, date__to_ VARCHAR)
### Response:
### Response:
SELECT location FROM table_12562214_1 WHERE date__to_ = "8 October 1922"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What location has a school with enrollment of 850?
### Context:
CREATE TABLE table_262560_2 (location VARCHAR, enrollment VARCHAR)
### Response:
### Response:
SELECT location FROM table_262560_2 WHERE enrollment = 850</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 description of the license for GNU GPL v2 or Ruby license?
### Context:
CREATE TABLE table_25474825_1 (description VARCHAR, license VARCHAR)
### Response:
### Response:
SELECT description FROM table_25474825_1 WHERE license = "GNU GPL v2 or Ruby license"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 report has a Winning driver of peter collins, and a Circuit of syracuse?
### Context:
CREATE TABLE table_name_33 (report VARCHAR, winning_driver VARCHAR, circuit VARCHAR)
### Response:
### Response:
SELECT report FROM table_name_33 WHERE winning_driver = "peter collins" AND circuit = "syracuse"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the record for the 20000 m walk?
### Context:
CREATE TABLE table_name_12 (record VARCHAR, event VARCHAR)
### Response:
### Response:
SELECT record FROM table_name_12 WHERE event = "20000 m walk"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are 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 before 1980 has is the highest Inflation Index (2000=100)?
### Context:
CREATE TABLE table_name_34 (year INTEGER, inflation_index__2000 INTEGER)
### Response:
### Response:
SELECT MAX(inflation_index__2000) = 100 AS _ FROM table_name_34 WHERE year < 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:
What position for the western michigan product picked ahead of 312?
### Context:
CREATE TABLE table_name_16 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR)
### Response:
### Response:
SELECT position FROM table_name_16 WHERE pick < 312 AND school_club_team = "western michigan"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What is the original air date of the episode that was watched by 0.88 million U.S. viewers?
### Context:
CREATE TABLE table_28680377_2 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
### Response:
### Response:
SELECT original_air_date FROM table_28680377_2 WHERE us_viewers__million_ = "0.88"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 games are on the date of April 30?
### Context:
CREATE TABLE table_22871316_11 (game INTEGER, date VARCHAR)
### Response:
### Response:
SELECT MIN(game) FROM table_22871316_11 WHERE date = "April 30"</s> |
<s>### Instruction:
You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables.
You must output the SQL query that answers the question.
### Dialect:
sqlite
### Input:
What was Datsun Twin 200's fastest lap?
### Context:
CREATE TABLE table_10527215_3 (fastest_lap VARCHAR, name VARCHAR)
### Response:
### Response:
SELECT fastest_lap FROM table_10527215_3 WHERE name = "Datsun Twin 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:
Name the first elected for abner j. mikva
### Context:
CREATE TABLE table_1341672_14 (first_elected VARCHAR, incumbent VARCHAR)
### Response:
### Response:
SELECT first_elected FROM table_1341672_14 WHERE incumbent = "Abner J. Mikva"</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.