instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_90 (
total INTEGER,
gold VARCHAR,
bronze VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total when the bronze was more than 1, silver was 3, and gold was less than 5?
### Response:
|
SELECT SUM(total) FROM table_name_90 WHERE bronze > 1 AND silver = 3 AND gold < 5
|
### Instruction:
CREATE TABLE table_11254821_2 (
finishing_position VARCHAR,
points_awarded__platinum_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the range of finishing position for 15 awarded platinum points?
### Response:
|
SELECT finishing_position FROM table_11254821_2 WHERE points_awarded__platinum_ = 15
|
### Instruction:
CREATE TABLE table_10400 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the Constructor with a 19 Grid?
### Response:
|
SELECT "Constructor" FROM table_10400 WHERE "Grid" = '19'
|
### Instruction:
CREATE TABLE table_name_53 (
pick__number VARCHAR,
round VARCHAR,
overall VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In Round 13, what was the Pick # of the Guard Position with an Overall greater than 23?
### Response:
|
SELECT pick__number FROM table_name_53 WHERE overall > 23 AND position = "guard" AND round = 13
|
### Instruction:
CREATE TABLE table_53179 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was Kuwait City a venue?
### Response:
|
SELECT "Date" FROM table_53179 WHERE "Venue" = 'kuwait city'
|
### Instruction:
CREATE TABLE table_75739 (
"Season" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What lead has the third David Nedohin?
### Response:
|
SELECT "Lead" FROM table_75739 WHERE "Third" = 'david nedohin'
|
### Instruction:
CREATE TABLE table_71366 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the result for venue of lord's
### Response:
|
SELECT "Result" FROM table_71366 WHERE "Venue" = 'lord''s'
|
### Instruction:
CREATE TABLE table_28286776_50 (
international_debut VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When rory fallon category:articles with hcards is the player when is the international debut?
### Response:
|
SELECT international_debut FROM table_28286776_50 WHERE player = "Rory Fallon Category:Articles with hCards"
|
### Instruction:
CREATE TABLE table_48342 (
"Year" real,
"MLB Club" text,
"Record" text,
"Finish" text,
"Manager" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the record when the year is 2011?
### Response:
|
SELECT "Record" FROM table_48342 WHERE "Year" = '2011'
|
### Instruction:
CREATE TABLE table_100518_1 (
direction VARCHAR,
graha__planet_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the directions for the guardian whose graha (planet) is b haspati (Jupiter)?
### Response:
|
SELECT direction FROM table_100518_1 WHERE graha__planet_ = "Bṛhaspati (Jupiter)"
|
### Instruction:
CREATE TABLE table_80089 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the date for record of 74-84
### Response:
|
SELECT "Date" FROM table_80089 WHERE "Record" = '74-84'
|
### Instruction:
CREATE TABLE table_25926120_7 (
name_of_award VARCHAR,
name_of_film VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of award when the name of film is sana keithel?
### Response:
|
SELECT name_of_award FROM table_25926120_7 WHERE name_of_film = "Sana Keithel"
|
### Instruction:
CREATE TABLE table_name_42 (
boat_builder VARCHAR,
year_built VARCHAR,
number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the boat builder for a boat built in 1910/11 and a number of 39?
### Response:
|
SELECT boat_builder FROM table_name_42 WHERE year_built = "1910/11" AND number = 39
|
### Instruction:
CREATE TABLE table_name_13 (
gold INTEGER,
bronze VARCHAR,
nation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the gold medal count for Total Nation with a bronze count more than 0 and a total less than 54?
### Response:
|
SELECT MAX(gold) FROM table_name_13 WHERE bronze > 0 AND nation = "total" AND "total" < 54
|
### Instruction:
CREATE TABLE table_19930660_3 (
first_broadcast VARCHAR,
rufus_guest VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is the first broadcast for episodes where Rufus's guest is Jack Whitehall?
### Response:
|
SELECT first_broadcast FROM table_19930660_3 WHERE rufus_guest = "Jack Whitehall"
|
### Instruction:
CREATE TABLE table_203_25 (
id number,
"stage" number,
"date" text,
"route" text,
"terrain" text,
"length" text,
"winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the total number of days for the tour ?
### Response:
|
SELECT COUNT("date") FROM table_203_25
|
### Instruction:
CREATE TABLE table_77373 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the opponent on november 24?
### Response:
|
SELECT "Opponent" FROM table_77373 WHERE "November" = '24'
|
### Instruction:
CREATE TABLE table_name_70 (
country VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the country with a t7 place and a 69-68-72=209 score?
### Response:
|
SELECT country FROM table_name_70 WHERE place = "t7" AND score = 69 - 68 - 72 = 209
|
### Instruction:
CREATE TABLE table_name_41 (
series__number INTEGER,
production_code VARCHAR,
season__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least series number with production code of 717 and season number less than 17
### Response:
|
SELECT MIN(series__number) FROM table_name_41 WHERE production_code = 717 AND season__number < 17
|
### Instruction:
CREATE TABLE table_name_31 (
placings INTEGER,
nation VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Placings have a Nation of west germany, and Points larger than 303.72?
### Response:
|
SELECT SUM(placings) FROM table_name_31 WHERE nation = "west germany" AND points > 303.72
|
### Instruction:
CREATE TABLE table_8100 (
"Name" text,
"Built" text,
"Listed" text,
"Location" text,
"County" text,
"Type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was Blackburn Point Bridge built?
### Response:
|
SELECT "Built" FROM table_8100 WHERE "Name" = 'blackburn point bridge'
|
### Instruction:
CREATE TABLE table_name_34 (
away_team VARCHAR,
date VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which away team played on June 9, 2015 with a home team of f1?
### Response:
|
SELECT away_team FROM table_name_34 WHERE date = "june 9, 2015" AND home_team = "f1"
|
### Instruction:
CREATE TABLE table_12146637_1 (
episode_title VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes had 9.90 million viewers?
### Response:
|
SELECT COUNT(episode_title) FROM table_12146637_1 WHERE us_viewers__millions_ = "9.90"
|
### Instruction:
CREATE TABLE table_68855 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the ICAO for IATA of rgn
### Response:
|
SELECT "ICAO" FROM table_68855 WHERE "IATA" = 'rgn'
|
### Instruction:
CREATE TABLE table_name_29 (
location VARCHAR,
disposition_of_ship VARCHAR,
tonnage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the ship when the ship had captured as the disposition of ship and was carrying 225 tonnage?
### Response:
|
SELECT location FROM table_name_29 WHERE disposition_of_ship = "captured" AND tonnage = "225"
|
### Instruction:
CREATE TABLE table_name_85 (
attendance INTEGER,
record VARCHAR,
opponents VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the highest attendance for the game where the record was 0-5 and the opponents scored more than 20 points?
### Response:
|
SELECT MAX(attendance) FROM table_name_85 WHERE record = "0-5" AND opponents > 20
|
### Instruction:
CREATE TABLE table_65726 (
"Title" text,
"Series" text,
"Director" text,
"Characters" text,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the director of Chaser on the Rocks?
### Response:
|
SELECT "Director" FROM table_65726 WHERE "Title" = 'chaser on the rocks'
|
### Instruction:
CREATE TABLE table_204_96 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the date of the last game ?
### Response:
|
SELECT "date" FROM table_204_96 ORDER BY "date" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_43427 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In Week 13, who was the opponent?
### Response:
|
SELECT "Opponent" FROM table_43427 WHERE "Week" = '13'
|
### Instruction:
CREATE TABLE table_203_267 (
id number,
"no." number,
"song" text,
"singers" text,
"length (m:ss)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many songs end before 2 minutes ?
### Response:
|
SELECT COUNT("song") FROM table_203_267 WHERE "length (m:ss)" < 2
|
### Instruction:
CREATE TABLE table_13869651_3 (
frequency VARCHAR,
part_number_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the frequency of the model whose part number is ado520biaa5do?
### Response:
|
SELECT frequency FROM table_13869651_3 WHERE part_number_s_ = "ADO520BIAA5DO"
|
### Instruction:
CREATE TABLE table_25421463_1 (
season VARCHAR,
final_placing VARCHAR,
team_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what season was the final placing NC and the team SL Formula Racing?
### Response:
|
SELECT season FROM table_25421463_1 WHERE final_placing = "NC†" AND team_name = "SL Formula Racing"
|
### Instruction:
CREATE TABLE table_78588 (
"Year" text,
"Award" text,
"Category" text,
"Nominated" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was Teen Angels 2 nominated?
### Response:
|
SELECT "Year" FROM table_78588 WHERE "Nominated" = 'teen angels 2'
|
### Instruction:
CREATE TABLE table_20967430_2 (
ep INTEGER,
original_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least episode for november 29, 1985
### Response:
|
SELECT MIN(ep) FROM table_20967430_2 WHERE original_air_date = "November 29, 1985"
|
### Instruction:
CREATE TABLE table_78634 (
"Name" text,
"Wins" real,
"Start" text,
"Duration" text,
"Defeated by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Duration for less than 53 consecutive wins?
### Response:
|
SELECT "Duration" FROM table_78634 WHERE "Wins" < '53'
|
### Instruction:
CREATE TABLE table_74915 (
"Pick #" real,
"Round" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Round was a player from College of Connecticut drafted?
### Response:
|
SELECT "Round" FROM table_74915 WHERE "College" = 'connecticut'
|
### Instruction:
CREATE TABLE table_24113 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Black Knights points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most game
### Response:
|
SELECT MAX("Game") FROM table_24113
|
### Instruction:
CREATE TABLE table_name_32 (
goals_for INTEGER,
draws VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Goals For, when Draws is less than 4, and when Points is less than 27?
### Response:
|
SELECT MIN(goals_for) FROM table_name_32 WHERE draws < 4 AND points < 27
|
### Instruction:
CREATE TABLE table_8261 (
"Name" text,
"Company" text,
"Tracking Method" text,
"Latest stable release" text,
"Price in USD" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Name has a Company of quantcast corporation?
### Response:
|
SELECT "Name" FROM table_8261 WHERE "Company" = 'quantcast corporation'
|
### Instruction:
CREATE TABLE table_79500 (
"Title" text,
"Series" text,
"Director" text,
"Release date" text,
"reissue?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the release date of Forward March Hare?
### Response:
|
SELECT "Release date" FROM table_79500 WHERE "Title" = 'forward march hare'
|
### Instruction:
CREATE TABLE table_8553 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date that the away team is aldershot?
### Response:
|
SELECT "Date" FROM table_8553 WHERE "Away team" = 'aldershot'
|
### Instruction:
CREATE TABLE table_204_915 (
id number,
"draw" number,
"artist" text,
"song" text,
"points" number,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which artist earned the least number of points ?
### Response:
|
SELECT "artist" FROM table_204_915 ORDER BY "points" LIMIT 1
|
### Instruction:
CREATE TABLE table_203_783 (
id number,
"season" text,
"tier" number,
"division" text,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which division has the largest number of ranks ?
### Response:
|
SELECT "division" FROM table_203_783 GROUP BY "division" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_96 (
wins VARCHAR,
ballarat_fl VARCHAR,
against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of wins for Darley of Ballarat FL against larger than 1055?
### Response:
|
SELECT COUNT(wins) FROM table_name_96 WHERE ballarat_fl = "darley" AND against > 1055
|
### Instruction:
CREATE TABLE table_name_83 (
year VARCHAR,
team VARCHAR,
tournament VARCHAR,
finish VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Year was 1st Division El Salvador with a Finish of Champion and a Team of Fas?
### Response:
|
SELECT year FROM table_name_83 WHERE tournament = "1st division el salvador" AND finish = "champion" AND team = "fas"
|
### Instruction:
CREATE TABLE table_41607 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What time or retired does Scott Dixon have?
### Response:
|
SELECT "Time/Retired" FROM table_41607 WHERE "Driver" = 'scott dixon'
|
### Instruction:
CREATE TABLE table_47877 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver had a grid of 2?
### Response:
|
SELECT "Driver" FROM table_47877 WHERE "Grid" = '2'
|
### Instruction:
CREATE TABLE table_name_41 (
senior_pga_championship VARCHAR,
senior_british_open VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Tom Watson (5/6) won the Senior British Open who won the Senior PGA Championship?
### Response:
|
SELECT senior_pga_championship FROM table_name_41 WHERE senior_british_open = "tom watson (5/6)"
|
### Instruction:
CREATE TABLE table_name_16 (
date VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day was the winning score 16 (67-70-69-66=272)?
### Response:
|
SELECT date FROM table_name_16 WHERE winning_score = –16(67 - 70 - 69 - 66 = 272)
|
### Instruction:
CREATE TABLE table_name_68 (
attendance_average VARCHAR,
reg_season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average attendance of the team that had a regular season result of 2nd aisa, 24-16?
### Response:
|
SELECT attendance_average FROM table_name_68 WHERE reg_season = "2nd aisa, 24-16"
|
### Instruction:
CREATE TABLE table_name_10 (
rank INTEGER,
athlete VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of rank for the athlete kerron stewart, and a time smaller than 11.05?
### Response:
|
SELECT SUM(rank) FROM table_name_10 WHERE athlete = "kerron stewart" AND time < 11.05
|
### Instruction:
CREATE TABLE table_name_34 (
us__2013_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the U.S birthstone in the 15th-20th century when in 2013 it was amethyst?
### Response:
|
SELECT 15 AS th__20th_century FROM table_name_34 WHERE us__2013_ = "amethyst"
|
### Instruction:
CREATE TABLE table_14718 (
"Rank" text,
"Address" text,
"Height feet / m" text,
"Floors" real,
"Year" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the address in 1974?
### Response:
|
SELECT "Address" FROM table_14718 WHERE "Year" = '1974'
|
### Instruction:
CREATE TABLE table_6683 (
"Station Code" text,
"Station Name" text,
"Arrival" text,
"Departure" text,
"Platform" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Departure time at Kanpur Central Station?
### Response:
|
SELECT "Departure" FROM table_6683 WHERE "Station Name" = 'kanpur central'
|
### Instruction:
CREATE TABLE products (
Manufacturer VARCHAR
)
CREATE TABLE manufacturers (
name VARCHAR,
code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the number of products for each manufacturer, showing the name of each company.
### Response:
|
SELECT COUNT(*), T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name
|
### Instruction:
CREATE TABLE table_23793770_2 (
title VARCHAR,
total_viewers__in_millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many shows had 12.46 total viewers?
### Response:
|
SELECT COUNT(title) FROM table_23793770_2 WHERE total_viewers__in_millions_ = "12.46"
|
### Instruction:
CREATE TABLE table_53894 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for the World Cup Qualifier?
### Response:
|
SELECT "Score" FROM table_53894 WHERE "Competition" = 'world cup qualifier'
|
### Instruction:
CREATE TABLE table_80045 (
"Units" text,
"Type" text,
"Period used" text,
"Formed from" text,
"Trailers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the formed that has type of 4-cor
### Response:
|
SELECT "Formed from" FROM table_80045 WHERE "Type" = '4-cor'
|
### Instruction:
CREATE TABLE table_28611413_2 (
no_in_series VARCHAR,
viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many seasons had 16.15 million viewers?
### Response:
|
SELECT COUNT(no_in_series) FROM table_28611413_2 WHERE viewers__millions_ = "16.15"
|
### Instruction:
CREATE TABLE table_15306124_1 (
league_of_communists INTEGER,
municipality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least amount of league of communists where municipality is mojkovac
### Response:
|
SELECT MIN(league_of_communists) FROM table_15306124_1 WHERE municipality = "Mojkovac"
|
### Instruction:
CREATE TABLE table_name_81 (
radical__variants_ VARCHAR,
pīnyīn VARCHAR,
stroke_count VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE RADICAL WITH g , AND STROKE COUNT OF 7?
### Response:
|
SELECT radical__variants_ FROM table_name_81 WHERE pīnyīn = "gǔ" AND stroke_count = 7
|
### Instruction:
CREATE TABLE table_25055040_22 (
mountains_classification VARCHAR,
most_courageous VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the mountains classification when Maarten Tjallingii won most corageous?
### Response:
|
SELECT mountains_classification FROM table_25055040_22 WHERE most_courageous = "Maarten Tjallingii"
|
### Instruction:
CREATE TABLE table_63756 (
"Title" text,
"Series" text,
"Director" text,
"Production Num." text,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the release date of Milk and Money?
### Response:
|
SELECT "Release date" FROM table_63756 WHERE "Title" = 'milk and money'
|
### Instruction:
CREATE TABLE table_6792 (
"Event" text,
"Record" text,
"Nation" text,
"Date" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Nation with a Record that is 7.39?
### Response:
|
SELECT "Nation" FROM table_6792 WHERE "Record" = '7.39'
|
### Instruction:
CREATE TABLE table_name_80 (
judge_e VARCHAR,
judge_c VARCHAR,
rider VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the judge e when judge c is 56.67 and the rider is dag albert?
### Response:
|
SELECT judge_e FROM table_name_80 WHERE judge_c = "56.67" AND rider = "dag albert"
|
### Instruction:
CREATE TABLE table_5938 (
"Medium" text,
"Title" text,
"Date" text,
"Theatre, Studio, or Network" text,
"Role" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What production was created by Monogram?
### Response:
|
SELECT "Title" FROM table_5938 WHERE "Theatre, Studio, or Network" = 'monogram'
|
### Instruction:
CREATE TABLE table_name_44 (
home_team VARCHAR,
tie_no VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Home Team, when Tie No is Replay, and when Attendance is 2,048?
### Response:
|
SELECT home_team FROM table_name_44 WHERE tie_no = "replay" AND attendance = "2,048"
|
### Instruction:
CREATE TABLE table_8268 (
"Name" text,
"Date" text,
"Defending forces" text,
"Brigade" text,
"Population" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which brigade has a population of 190?
### Response:
|
SELECT "Brigade" FROM table_8268 WHERE "Population" = '190'
|
### Instruction:
CREATE TABLE table_204_986 (
id number,
"#" number,
"event year" number,
"season" text,
"flag bearer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total different people have born the glad for samoa at the olympics ?
### Response:
|
SELECT COUNT(DISTINCT "flag bearer") FROM table_204_986
|
### Instruction:
CREATE TABLE table_882 (
"Position" real,
"Artist" text,
"Song title" text,
"Highest position" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the song title with artbeingt being pat boone
### Response:
|
SELECT "Song title" FROM table_882 WHERE "Artist" = 'Pat Boone'
|
### Instruction:
CREATE TABLE table_13626 (
"Year" real,
"Recipient" text,
"Award" text,
"Category" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year had the category of best international newcomer?
### Response:
|
SELECT COUNT("Year") FROM table_13626 WHERE "Category" = 'best international newcomer'
|
### Instruction:
CREATE TABLE table_49332 (
"Name" text,
"Built" text,
"Listed" text,
"Location" text,
"County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the listing date for nuckolls county?
### Response:
|
SELECT "Listed" FROM table_49332 WHERE "County" = 'nuckolls'
|
### Instruction:
CREATE TABLE table_41837 (
"Rank" real,
"Player" text,
"Country" text,
"Goals" real,
"Years" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest rank of a player from Ethiopia?
### Response:
|
SELECT MAX("Rank") FROM table_41837 WHERE "Country" = 'ethiopia'
|
### Instruction:
CREATE TABLE table_name_59 (
class INTEGER,
drivers VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest Class Position that has drivers Les Palmer, Terry Morris, and a Position larger than 23?
### Response:
|
SELECT MIN(class) AS position FROM table_name_59 WHERE drivers = "les palmer, terry morris" AND position > 23
|
### Instruction:
CREATE TABLE table_name_93 (
laps INTEGER,
constructor VARCHAR,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mean number of laps for the constructor Ferrari when the time/retired was fuel pressure?
### Response:
|
SELECT AVG(laps) FROM table_name_93 WHERE constructor = "ferrari" AND time_retired = "fuel pressure"
|
### Instruction:
CREATE TABLE table_name_45 (
area VARCHAR,
name VARCHAR,
gender VARCHAR,
decile VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which area served coed genders at Kaharoa school and had a Decile of 9?
### Response:
|
SELECT area FROM table_name_45 WHERE gender = "coed" AND decile = "9" AND name = "kaharoa school"
|
### Instruction:
CREATE TABLE table_1205598_1 (
media_market_ranking VARCHAR,
nhl_team_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the media market ranking for the Blackhawks?
### Response:
|
SELECT COUNT(media_market_ranking) FROM table_1205598_1 WHERE nhl_team_s_ = "Blackhawks"
|
### Instruction:
CREATE TABLE table_2162 (
"#" real,
"Player" text,
"Age" text,
"Australian Open" real,
"French Open" real,
"Wimbledon" real,
"US Open" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the Australian open?
### Response:
|
SELECT MAX("Australian Open") FROM table_2162
|
### Instruction:
CREATE TABLE table_name_37 (
prize VARCHAR,
runner_up VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Prize, when Runner-Up is 'Simon Ehne', and when Winner is 'David Tighe'?
### Response:
|
SELECT prize FROM table_name_37 WHERE runner_up = "simon ehne" AND winner = "david tighe"
|
### Instruction:
CREATE TABLE table_80117 (
"Team" text,
"Manager" text,
"Captain" text,
"Kit manufacturer" text,
"Shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Kit manufacturer sponsers Arsenal?
### Response:
|
SELECT "Kit manufacturer" FROM table_80117 WHERE "Team" = 'arsenal'
|
### Instruction:
CREATE TABLE table_4598 (
"Round" real,
"Overall" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest overall number for a player from Kentucky State?
### Response:
|
SELECT MAX("Overall") FROM table_4598 WHERE "College" = 'kentucky state'
|
### Instruction:
CREATE TABLE table_32424 (
"Team" text,
"Chassis" text,
"Engine" text,
"Tires" text,
"Drivers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the engine for the Arciero Racing team?
### Response:
|
SELECT "Engine" FROM table_32424 WHERE "Team" = 'arciero racing'
|
### Instruction:
CREATE TABLE table_274117_5 (
seasons_by_team VARCHAR,
position VARCHAR,
number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are seasons by team for Pro Bowl appearances of the player who was an OL and had 11 appearances?
### Response:
|
SELECT seasons_by_team FROM table_274117_5 WHERE position = "OL" AND number = 11
|
### Instruction:
CREATE TABLE table_name_20 (
tracks VARCHAR,
catalog VARCHAR,
length VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Tracks of the release in Catalog BA 222304 with a Length of 2:57?
### Response:
|
SELECT tracks FROM table_name_20 WHERE catalog = "ba 222304" AND length = "2:57"
|
### Instruction:
CREATE TABLE Student (
StuID VARCHAR,
age INTEGER
)
CREATE TABLE Participates_in (
StuID VARCHAR,
age INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the ids for all the students who participate in an activity and are under 20.
### Response:
|
SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age < 20
|
### Instruction:
CREATE TABLE table_name_20 (
engine VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 0-100km/h (62mph) of the supercharged 5.4l v8 engine?
### Response:
|
SELECT 0 AS _100km_h__62mph_ FROM table_name_20 WHERE engine = "supercharged 5.4l v8"
|
### Instruction:
CREATE TABLE table_69673 (
"Season" text,
"Competition" text,
"Round" text,
"Club" text,
"1st leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which season has the Celtic club?
### Response:
|
SELECT "Season" FROM table_69673 WHERE "Club" = 'celtic'
|
### Instruction:
CREATE TABLE table_33860 (
"Name" text,
"Caps" real,
"Goals" real,
"First cap" text,
"Latest cap" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name of rivelino had how many highest caps?
### Response:
|
SELECT MAX("Caps") FROM table_33860 WHERE "Name" = 'rivelino'
|
### Instruction:
CREATE TABLE table_name_7 (
college VARCHAR,
name VARCHAR,
overall VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which College has an Overall larger than 211, a Position of db, and a Name of carl charon?
### Response:
|
SELECT college FROM table_name_7 WHERE overall > 211 AND position = "db" AND name = "carl charon"
|
### Instruction:
CREATE TABLE table_name_54 (
wins VARCHAR,
total_final_appearances VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How manywins for dunfermline athletic that has a total final appearances less than 2?
### Response:
|
SELECT wins FROM table_name_54 WHERE total_final_appearances < 2 AND club = "dunfermline athletic"
|
### Instruction:
CREATE TABLE table_name_59 (
played INTEGER,
wins VARCHAR,
goals_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number played of the club with more than 15 wins and less than 42 goals against?
### Response:
|
SELECT MIN(played) FROM table_name_59 WHERE wins > 15 AND goals_against < 42
|
### Instruction:
CREATE TABLE table_34091 (
"Version" text,
"Length" text,
"Album" text,
"Remixed by" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who remixed the version after 1999?
### Response:
|
SELECT "Remixed by" FROM table_34091 WHERE "Year" > '1999'
|
### Instruction:
CREATE TABLE table_name_27 (
grid INTEGER,
rider VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Grid, when Rider is Shinya Nakano, and when Laps is less than 21?
### Response:
|
SELECT AVG(grid) FROM table_name_27 WHERE rider = "shinya nakano" AND laps < 21
|
### Instruction:
CREATE TABLE table_70019 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalogue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which catalogue has a date of 1987?
### Response:
|
SELECT "Catalogue" FROM table_70019 WHERE "Date" = '1987'
|
### Instruction:
CREATE TABLE table_name_13 (
operator VARCHAR,
width VARCHAR,
type_designation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Operator has a Width of 2.65 m, and a Type designation of m5000?
### Response:
|
SELECT operator FROM table_name_13 WHERE width = "2.65 m" AND type_designation = "m5000"
|
### Instruction:
CREATE TABLE table_4997 (
"Date" text,
"City" text,
"Opponent" text,
"Results\u00b9" text,
"Type of game" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the game played in Zagreb?
### Response:
|
SELECT "Date" FROM table_4997 WHERE "City" = 'zagreb'
|
### Instruction:
CREATE TABLE table_name_52 (
games INTEGER,
years VARCHAR,
ranking VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Games for 1965 1981, and a Ranking larger than 4?
### Response:
|
SELECT AVG(games) FROM table_name_52 WHERE years = "1965–1981" AND ranking > 4
|
### Instruction:
CREATE TABLE table_36358 (
"Virtue" text,
"Latin" text,
"Gloss" text,
"(Vice)" text,
"(Latin)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which virtue is acedia(Latin)?
### Response:
|
SELECT "Virtue" FROM table_36358 WHERE "(Latin)" = 'acedia'
|
### Instruction:
CREATE TABLE table_name_87 (
year INTEGER,
issue_price VARCHAR,
theme VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year had an issue price of $94.95 and theme of Amethyst crystal?
### Response:
|
SELECT AVG(year) FROM table_name_87 WHERE issue_price = "$94.95" AND theme = "amethyst crystal"
|
### Instruction:
CREATE TABLE table_27711947_1 (
artist VARCHAR,
choreographer VARCHAR,
rating VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all artists with choreographer Marcos Aguirre and a simple rating.
### Response:
|
SELECT artist FROM table_27711947_1 WHERE choreographer = "Marcos Aguirre" AND rating = "Simple"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.