instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_50 (
career_sr VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 2001, when 1987 is N/A, and when Career SR is N/A?
### Response:
|
SELECT 2001 FROM table_name_50 WHERE 1987 = "n/a" AND career_sr = "n/a"
|
### Instruction:
CREATE TABLE table_name_95 (
entrant VARCHAR,
driver VARCHAR,
chassis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the entrant for Louis Chiron with a Chassis of T26C?
### Response:
|
SELECT entrant FROM table_name_95 WHERE driver = "louis chiron" AND chassis = "t26c"
|
### Instruction:
CREATE TABLE table_name_67 (
country VARCHAR,
stolen_ends VARCHAR,
skip VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Country which has Stolen Ends larger than 7, and a Skip of david murdoch?
### Response:
|
SELECT country FROM table_name_67 WHERE stolen_ends > 7 AND skip = "david murdoch"
|
### Instruction:
CREATE TABLE table_name_56 (
points INTEGER,
team VARCHAR,
losses VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the highest Points with the Team of Tacuary, and has Losses that's smaller than 4?
### Response:
|
SELECT MAX(points) FROM table_name_56 WHERE team = "tacuary" AND losses < 4
|
### Instruction:
CREATE TABLE table_2679061_7 (
college_junior_club_team VARCHAR,
nhl_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where are the Buffalo Sabres from?
### Response:
|
SELECT college_junior_club_team FROM table_2679061_7 WHERE nhl_team = "Buffalo Sabres"
|
### Instruction:
CREATE TABLE table_name_76 (
school VARCHAR,
ihsaa_class VARCHAR,
mascot VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which School has an IHSAA Class of aaa, and a Mascot of saints?
### Response:
|
SELECT school FROM table_name_76 WHERE ihsaa_class = "aaa" AND mascot = "saints"
|
### Instruction:
CREATE TABLE table_23177573_1 (
original_air_date VARCHAR,
rank__week_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original air date of the episode that had a week ranking of 21?
### Response:
|
SELECT original_air_date FROM table_23177573_1 WHERE rank__week_ = 21
|
### Instruction:
CREATE TABLE table_20613292_1 (
production_code VARCHAR,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different production codes does the episode directed by Dominic Polcino have?
### Response:
|
SELECT COUNT(production_code) FROM table_20613292_1 WHERE directed_by = "Dominic Polcino"
|
### Instruction:
CREATE TABLE table_29414946_3 (
outgoing_manager VARCHAR,
date_of_appointment VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was replaced as manager on June 20?
### Response:
|
SELECT outgoing_manager FROM table_29414946_3 WHERE date_of_appointment = "June 20"
|
### Instruction:
CREATE TABLE table_9689 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance like for week 8?
### Response:
|
SELECT "Attendance" FROM table_9689 WHERE "Week" = '8'
|
### Instruction:
CREATE TABLE table_25664518_3 (
first_couple VARCHAR,
fourth_couple VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the first couple in the episode having a fourth couple of Sammy and Nat?
### Response:
|
SELECT first_couple FROM table_25664518_3 WHERE fourth_couple = "Sammy and Nat"
|
### Instruction:
CREATE TABLE table_14777 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Catalog Number is for the Japan region?
### Response:
|
SELECT "Catalog" FROM table_14777 WHERE "Region" = 'japan'
|
### Instruction:
CREATE TABLE table_8982 (
"Rank" real,
"Title" text,
"Studio" text,
"Director" text,
"Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Director has a Rank of 12?
### Response:
|
SELECT "Director" FROM table_8982 WHERE "Rank" = '12'
|
### Instruction:
CREATE TABLE table_14477002_1 (
time___et__ VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show all the time(et) where the opponent is the Cincinnati Bengals.
### Response:
|
SELECT time___et__ FROM table_14477002_1 WHERE opponent = "Cincinnati Bengals"
|
### Instruction:
CREATE TABLE table_name_30 (
third_member VARCHAR,
third_party VARCHAR,
second_party VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the third member of the third conservative party, and the second liberal party?
### Response:
|
SELECT third_member FROM table_name_30 WHERE third_party = "conservative" AND second_party = "liberal"
|
### Instruction:
CREATE TABLE table_name_13 (
byes INTEGER,
losses VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of Byes for the team that had 15 Losses, and less than 1 Win?
### Response:
|
SELECT AVG(byes) FROM table_name_13 WHERE losses = 15 AND wins < 1
|
### Instruction:
CREATE TABLE table_25800134_2 (
title VARCHAR,
airdate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the episode that aired on May 10, 1958?
### Response:
|
SELECT title FROM table_25800134_2 WHERE airdate = "May 10, 1958"
|
### Instruction:
CREATE TABLE table_15187735_15 (
episode VARCHAR,
netflix VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many episodes have the Netflix episode number S08E04?
### Response:
|
SELECT COUNT(episode) FROM table_15187735_15 WHERE netflix = "S08E04"
|
### Instruction:
CREATE TABLE table_name_77 (
margin_of_error VARCHAR,
undecided VARCHAR,
other VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the margin of error when the undicided is 8% and other is 4%?
### Response:
|
SELECT margin_of_error FROM table_name_77 WHERE undecided = "8%" AND other = "4%"
|
### Instruction:
CREATE TABLE table_name_86 (
jury INTEGER,
place VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of the jury that is 2nd place and the total is larger than 190?
### Response:
|
SELECT SUM(jury) FROM table_name_86 WHERE place = "2nd" AND total > 190
|
### Instruction:
CREATE TABLE table_22410780_1 (
male_rep VARCHAR,
artistic_director VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the male rep. when Caroline Rhoads was the artistic director?
### Response:
|
SELECT male_rep FROM table_22410780_1 WHERE artistic_director = "Caroline Rhoads"
|
### Instruction:
CREATE TABLE table_39259 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the score on november 15
### Response:
|
SELECT "Score" FROM table_39259 WHERE "Date" = 'november 15'
|
### Instruction:
CREATE TABLE Flight (
aid VARCHAR
)
CREATE TABLE Aircraft (
name VARCHAR,
aid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show aircraft names and number of flights for each aircraft.
### Response:
|
SELECT T2.name, COUNT(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid
|
### Instruction:
CREATE TABLE table_name_3 (
pick INTEGER,
round VARCHAR,
school_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average pick of school/club team kutztown state with a round 4?
### Response:
|
SELECT AVG(pick) FROM table_name_3 WHERE round = 4 AND school_club_team = "kutztown state"
|
### Instruction:
CREATE TABLE table_name_91 (
date VARCHAR,
outcome VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Outcome is 'Runner Up', and when Opponent is 'Lu Jiaxiang'?
### Response:
|
SELECT date FROM table_name_91 WHERE outcome = "runner up" AND opponent = "lu jiaxiang"
|
### Instruction:
CREATE TABLE Claims (
Amount_Settled VARCHAR,
Amount_Claimed VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Among all the claims, what is the amount claimed in the claim with the least amount settled? List both the settlement amount and claim amount.
### Response:
|
SELECT Amount_Settled, Amount_Claimed FROM Claims ORDER BY Amount_Settled LIMIT 1
|
### Instruction:
CREATE TABLE table_262505_1 (
founded VARCHAR,
type VARCHAR,
enrollment VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of founded for public and 780 enrollment
### Response:
|
SELECT COUNT(founded) FROM table_262505_1 WHERE type = "Public" AND enrollment = "780"
|
### Instruction:
CREATE TABLE table_name_87 (
type VARCHAR,
location VARCHAR,
entered_service VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which type entered service in 1976/1997 and is located in Brazil?
### Response:
|
SELECT type FROM table_name_87 WHERE location = "brazil" AND entered_service = "1976/1997"
|
### Instruction:
CREATE TABLE table_name_29 (
gold VARCHAR,
nation VARCHAR,
total VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the gold when the total is less than 2, and rank is 3 and Canada is the nation?
### Response:
|
SELECT gold FROM table_name_29 WHERE total < 2 AND rank = 3 AND nation = "canada"
|
### Instruction:
CREATE TABLE table_224672_2 (
term_ended VARCHAR,
term_began VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the term end that began January 3, 2007?
### Response:
|
SELECT term_ended FROM table_224672_2 WHERE term_began = "January 3, 2007"
|
### Instruction:
CREATE TABLE table_name_96 (
capacity INTEGER,
city VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Capacity is the lowest one that has a City of brisbane, and a Rank smaller than 1?
### Response:
|
SELECT MIN(capacity) FROM table_name_96 WHERE city = "brisbane" AND rank < 1
|
### Instruction:
CREATE TABLE table_70439 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is Edmonton Oilers in?
### Response:
|
SELECT "Date" FROM table_70439 WHERE "Home" = 'edmonton oilers'
|
### Instruction:
CREATE TABLE table_name_87 (
cross_code_debut VARCHAR,
year VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the cross-code debut later than 1958 for Dick Thornett?
### Response:
|
SELECT cross_code_debut FROM table_name_87 WHERE year > 1958 AND player = "dick thornett"
|
### Instruction:
CREATE TABLE table_38887 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the home who had California visiting?
### Response:
|
SELECT "Home" FROM table_38887 WHERE "Visitor" = 'california'
|
### Instruction:
CREATE TABLE table_23186738_9 (
game INTEGER,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least game for score of l 93 109 (ot)
### Response:
|
SELECT MIN(game) FROM table_23186738_9 WHERE score = "L 93–109 (OT)"
|
### Instruction:
CREATE TABLE table_11948857_1 (
county_s__represented VARCHAR,
member_senator VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the county for senator C. Anthony Muse?
### Response:
|
SELECT county_s__represented FROM table_11948857_1 WHERE member_senator = "C. Anthony Muse"
|
### Instruction:
CREATE TABLE table_name_43 (
winner_and_score VARCHAR,
semifinalists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the winner and score of the tournament with semifinalists goran prpi sergi bruguera?
### Response:
|
SELECT winner_and_score FROM table_name_43 WHERE semifinalists = "goran prpić sergi bruguera"
|
### Instruction:
CREATE TABLE table_name_64 (
venue VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the venue when the Round shows after extra time, chelsea won on 4-1 on penalties?
### Response:
|
SELECT venue FROM table_name_64 WHERE round = "after extra time, chelsea won on 4-1 on penalties"
|
### Instruction:
CREATE TABLE table_25572068_1 (
series VARCHAR,
winning_team VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what series was TDS Racing the winning team on 9 October?
### Response:
|
SELECT series FROM table_25572068_1 WHERE winning_team = "TDS Racing" AND date = "9 October"
|
### Instruction:
CREATE TABLE table_name_16 (
no_7 VARCHAR,
no_5 VARCHAR,
no_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was number 7 when Olivia was number 5 and Emma was number 2?
### Response:
|
SELECT no_7 FROM table_name_16 WHERE no_5 = "olivia" AND no_2 = "emma"
|
### Instruction:
CREATE TABLE table_name_28 (
headphone_model VARCHAR,
construction VARCHAR,
headphone_class VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the headphone model with a plastic construction and a prestige headphone class?
### Response:
|
SELECT headphone_model FROM table_name_28 WHERE construction = "plastic" AND headphone_class = "prestige"
|
### Instruction:
CREATE TABLE table_name_7 (
construct__tion_no INTEGER,
wheel_arrange__ment VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many constructions has a Wheel arrange- ment of 4-4-0?
### Response:
|
SELECT SUM(construct__tion_no) FROM table_name_7 WHERE wheel_arrange__ment = "4-4-0"
|
### Instruction:
CREATE TABLE table_name_47 (
date__opening_ VARCHAR,
opening_film VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date (Opening), when Opening Film is 'Another Myanmar, Mae Sot'?
### Response:
|
SELECT date__opening_ FROM table_name_47 WHERE opening_film = "another myanmar, mae sot"
|
### Instruction:
CREATE TABLE table_name_86 (
sack INTEGER,
totaltk VARCHAR,
asst VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total sack when totaltk is 1 and asst. is more than 0?
### Response:
|
SELECT SUM(sack) FROM table_name_86 WHERE totaltk = 1 AND asst > 0
|
### Instruction:
CREATE TABLE table_22824324_2 (
three_pointers INTEGER,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of three pointers in games that kendall gill played?
### Response:
|
SELECT MIN(three_pointers) FROM table_22824324_2 WHERE player = "Kendall Gill"
|
### Instruction:
CREATE TABLE table_12547903_2 (
callsign VARCHAR,
location__transmitter_site_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the callsign of tuguegarao
### Response:
|
SELECT callsign FROM table_12547903_2 WHERE location__transmitter_site_ = "Tuguegarao"
|
### Instruction:
CREATE TABLE table_name_30 (
matches INTEGER,
goals VARCHAR,
average VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of Matches with Goals of 18, and an Average larger than 0.55?
### Response:
|
SELECT SUM(matches) FROM table_name_30 WHERE goals = 18 AND average > 0.55
|
### Instruction:
CREATE TABLE table_name_99 (
games VARCHAR,
rank VARCHAR,
rebounds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Games, when Rank is less than 4, and when Rebounds is less than 102?
### Response:
|
SELECT COUNT(games) FROM table_name_99 WHERE rank < 4 AND rebounds < 102
|
### Instruction:
CREATE TABLE table_name_60 (
grid VARCHAR,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of grids where there were races that had a time of 34:22.335?
### Response:
|
SELECT COUNT(grid) FROM table_name_60 WHERE time_retired = "34:22.335"
|
### Instruction:
CREATE TABLE table_name_39 (
car__number INTEGER,
driver VARCHAR,
pos VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Car # has a Driver of ryan newman, and a Position larger than 10?
### Response:
|
SELECT MIN(car__number) FROM table_name_39 WHERE driver = "ryan newman" AND pos > 10
|
### Instruction:
CREATE TABLE table_name_60 (
attendance VARCHAR,
result VARCHAR,
week VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name for me the total number in attendance for week before 2 and result of t 24-24
### Response:
|
SELECT COUNT(attendance) FROM table_name_60 WHERE result = "t 24-24" AND week < 2
|
### Instruction:
CREATE TABLE table_2196127_1 (
manufacturer VARCHAR,
driver VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the manufacturer for Matt Kenseth on March 7?
### Response:
|
SELECT manufacturer FROM table_2196127_1 WHERE driver = "Matt Kenseth" AND date = "March 7"
|
### Instruction:
CREATE TABLE table_name_4 (
wins INTEGER,
place VARCHAR,
losses VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most wins for losses more than 2 and points of two with place larger than 7
### Response:
|
SELECT MAX(wins) FROM table_name_4 WHERE losses > "2" AND points = "2" AND place > 7
|
### Instruction:
CREATE TABLE table_name_89 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 2005, when 1998 is 'F', and when 2002 is '2R'?
### Response:
|
SELECT 2005 FROM table_name_89 WHERE 1998 = "f" AND 2002 = "2r"
|
### Instruction:
CREATE TABLE table_name_12 (
silver VARCHAR,
republic VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me total number of Silver that has the Republic of latvian ssr, and the Total larger than 6?
### Response:
|
SELECT COUNT(silver) FROM table_name_12 WHERE republic = "latvian ssr" AND total > 6
|
### Instruction:
CREATE TABLE table_1350350_2 (
place VARCHAR,
per_capita_income VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the the place with per capita income being $14,793
### Response:
|
SELECT place FROM table_1350350_2 WHERE per_capita_income = "$14,793"
|
### Instruction:
CREATE TABLE table_name_91 (
name VARCHAR,
year_named VARCHAR,
longitude VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What name in a year after 1997 has a longitude of 213.0e?
### Response:
|
SELECT name FROM table_name_91 WHERE year_named > 1997 AND longitude = "213.0e"
|
### Instruction:
CREATE TABLE table_23274514_8 (
date VARCHAR,
location_attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the attendance at TD Garden 18,624?
### Response:
|
SELECT date FROM table_23274514_8 WHERE location_attendance = "TD Garden 18,624"
|
### Instruction:
CREATE TABLE table_19412902_1 (
clubs VARCHAR,
group_stage VARCHAR,
member_association VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which club in group stage 4 had member association iran
### Response:
|
SELECT clubs FROM table_19412902_1 WHERE group_stage = 4 AND member_association = "Iran"
|
### Instruction:
CREATE TABLE table_18662026_10 (
parallel_bars VARCHAR,
floor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the floor number is 14.200, what is the number for the parallel bars?
### Response:
|
SELECT parallel_bars FROM table_18662026_10 WHERE floor = "14.200"
|
### Instruction:
CREATE TABLE table_name_6 (
rank INTEGER,
gold VARCHAR,
participants VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is listed as the highest Rank that has a Gold that's larger than 0, and Participants that's smaller than 10?
### Response:
|
SELECT MAX(rank) FROM table_name_6 WHERE gold > 0 AND participants < 10
|
### Instruction:
CREATE TABLE table_name_82 (
rank INTEGER,
earnings__$__ INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which average rank has an Earning amount that is less than $224,589?
### Response:
|
SELECT AVG(rank) FROM table_name_82 WHERE earnings__$__ < 224 OFFSET 589
|
### Instruction:
CREATE TABLE table_48767 (
"Season" real,
"Date" text,
"Location" text,
"Race" text,
"Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 7th place, what is the date?
### Response:
|
SELECT "Date" FROM table_48767 WHERE "Place" = '7th'
|
### Instruction:
CREATE TABLE table_50242 (
"State" text,
"Type" text,
"Name" text,
"Title" text,
"Royal house" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the title for the state of qin?
### Response:
|
SELECT "Title" FROM table_50242 WHERE "State" = 'qin'
|
### Instruction:
CREATE TABLE table_name_60 (
winner VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which winner won by a score of 6 7(4), 7 6(3), [11 9]?
### Response:
|
SELECT winner FROM table_name_60 WHERE score = "6–7(4), 7–6(3), [11–9]"
|
### Instruction:
CREATE TABLE table_name_12 (
year INTEGER,
points VARCHAR,
chassis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years was ensign n180b a Chassis with 4 points?
### Response:
|
SELECT SUM(year) FROM table_name_12 WHERE points = 4 AND chassis = "ensign n180b"
|
### Instruction:
CREATE TABLE table_204_74 (
id number,
"#" number,
"title" text,
"producers" text,
"guest performers" text,
"length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of tracks on the album ?
### Response:
|
SELECT COUNT("title") FROM table_204_74
|
### Instruction:
CREATE TABLE table_13248 (
"National team" text,
"Club" text,
"Year" text,
"Apps" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which National team has a Year of total?
### Response:
|
SELECT "National team" FROM table_13248 WHERE "Year" = 'total'
|
### Instruction:
CREATE TABLE table_name_17 (
location VARCHAR,
time VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the location of the bout that lasted 5:00 and led to a 6-2-1 record?
### Response:
|
SELECT location FROM table_name_17 WHERE time = "5:00" AND record = "6-2-1"
|
### Instruction:
CREATE TABLE table_name_12 (
away_team VARCHAR,
home_team VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the away team for the tome team Leeds United, at the League Cup Competition?
### Response:
|
SELECT away_team FROM table_name_12 WHERE home_team = "leeds united" AND competition = "league cup"
|
### Instruction:
CREATE TABLE table_17482534_1 (
written_by VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many writers are listed for the episode with a production code of 5008?
### Response:
|
SELECT COUNT(written_by) FROM table_17482534_1 WHERE production_code = "5008"
|
### Instruction:
CREATE TABLE table_name_63 (
tournament VARCHAR,
outcome VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Tournament, when Outcome is Winner, and when Date is 13 July 2013?
### Response:
|
SELECT tournament FROM table_name_63 WHERE outcome = "winner" AND date = "13 july 2013"
|
### Instruction:
CREATE TABLE table_66488 (
"Pick" real,
"Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Team has a Position of linebacker?
### Response:
|
SELECT "Team" FROM table_66488 WHERE "Position" = 'linebacker'
|
### Instruction:
CREATE TABLE table_29773532_21 (
official_rating_16_39 VARCHAR,
episode VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the official rating 16-39 of episode 9?
### Response:
|
SELECT official_rating_16_39 FROM table_29773532_21 WHERE episode = 9
|
### Instruction:
CREATE TABLE table_59622 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Tiger Woods' to par?
### Response:
|
SELECT "To par" FROM table_59622 WHERE "Player" = 'tiger woods'
|
### Instruction:
CREATE TABLE table_name_63 (
position INTEGER,
club VARCHAR,
goal_difference VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position of club Melilla CF, with a goal difference smaller than -10?
### Response:
|
SELECT SUM(position) FROM table_name_63 WHERE club = "melilla cf" AND goal_difference < -10
|
### Instruction:
CREATE TABLE table_name_95 (
lost INTEGER,
percentage VARCHAR,
played VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the most lost games when the percentage is 50.00% and games played is less than 2?
### Response:
|
SELECT MAX(lost) FROM table_name_95 WHERE percentage = "50.00%" AND played < 2
|
### Instruction:
CREATE TABLE table_17632217_2 (
third_place VARCHAR,
runners_up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was placed third when the ruuner up was Guangzhou Apollo?
### Response:
|
SELECT third_place FROM table_17632217_2 WHERE runners_up = "Guangzhou Apollo"
|
### Instruction:
CREATE TABLE table_50389 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team was in 1951?
### Response:
|
SELECT "Team" FROM table_50389 WHERE "Year" = '1951'
|
### Instruction:
CREATE TABLE table_45064 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country is Paul Stankowski from?
### Response:
|
SELECT "Country" FROM table_45064 WHERE "Player" = 'paul stankowski'
|
### Instruction:
CREATE TABLE table_name_40 (
money___$__ VARCHAR,
place VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Money ($) when the Place is t6, and Player is chris dimarco?
### Response:
|
SELECT money___$__ FROM table_name_40 WHERE place = "t6" AND player = "chris dimarco"
|
### Instruction:
CREATE TABLE record (
name VARCHAR,
id VARCHAR,
swimmer_id VARCHAR
)
CREATE TABLE swimmer (
name VARCHAR,
id VARCHAR,
swimmer_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the names of the swimmers who have no record.
### Response:
|
SELECT name FROM swimmer WHERE NOT id IN (SELECT swimmer_id FROM record)
|
### Instruction:
CREATE TABLE greatermanchestercrime (
crimeid text,
crimets time,
location text,
lsoa text,
type text,
outcome text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which streets in Manchester have the highest rates of crime?
### Response:
|
SELECT location FROM greatermanchestercrime WHERE location LIKE "%Street%" GROUP BY location ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_503 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times did imma clopes compete ?
### Response:
|
SELECT COUNT(*) FROM table_204_503
|
### Instruction:
CREATE TABLE table_name_34 (
japanese_title VARCHAR,
romaji_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With the Romaji title of Hanayome Wa Yakudoshi!, what is the Japanese title?
### Response:
|
SELECT japanese_title FROM table_name_34 WHERE romaji_title = "hanayome wa yakudoshi!"
|
### Instruction:
CREATE TABLE table_53113 (
"Name" text,
"Actual version" text,
"System" text,
"Platform" text,
"License" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which System's Name is Gemulator?
### Response:
|
SELECT "System" FROM table_53113 WHERE "Name" = 'gemulator'
|
### Instruction:
CREATE TABLE table_2596811_12 (
wounded VARCHAR,
complement VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of wounded figures associated with a complement of 22 off 637 men?
### Response:
|
SELECT COUNT(wounded) FROM table_2596811_12 WHERE complement = "22 off 637 men"
|
### Instruction:
CREATE TABLE table_39636 (
"Score" text,
"Opposition" text,
"Venue" text,
"City" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years has 1 run?
### Response:
|
SELECT COUNT("Year") FROM table_39636 WHERE "Score" = '1 run'
|
### Instruction:
CREATE TABLE table_name_75 (
time_retired VARCHAR,
laps VARCHAR,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the time/retired for the driver with fewer than 23 laps and grid larger than 23?
### Response:
|
SELECT time_retired FROM table_name_75 WHERE laps < 23 AND grid > 23
|
### Instruction:
CREATE TABLE table_name_65 (
lost VARCHAR,
goal_difference VARCHAR,
drawn VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of games lost when goal difference is +13 and draws are more than 12?
### Response:
|
SELECT COUNT(lost) FROM table_name_65 WHERE goal_difference = "+13" AND drawn > 12
|
### Instruction:
CREATE TABLE table_name_84 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2007 value with 1r in 2011 and 1r in 2010?
### Response:
|
SELECT 2007 FROM table_name_84 WHERE 2011 = "1r" AND 2010 = "1r"
|
### Instruction:
CREATE TABLE table_name_20 (
year_won INTEGER,
player VARCHAR,
to_par VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average year Rich Beem had a to par less than 17?
### Response:
|
SELECT AVG(year_won) FROM table_name_20 WHERE player = "rich beem" AND to_par < 17
|
### Instruction:
CREATE TABLE table_204_717 (
id number,
"season" text,
"level" number,
"division" text,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of level 4 seasons ?
### Response:
|
SELECT COUNT("season") FROM table_204_717 WHERE "level" = 4
|
### Instruction:
CREATE TABLE table_27374004_2 (
club VARCHAR,
shirt_sponsor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the club when the shirt sponsor is e-lotto.be?
### Response:
|
SELECT club FROM table_27374004_2 WHERE shirt_sponsor = "e-lotto.be"
|
### Instruction:
CREATE TABLE table_name_61 (
venue VARCHAR,
player VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Venue has michael di venuto on Season of 2000/01?
### Response:
|
SELECT venue FROM table_name_61 WHERE player = "michael di venuto" AND season = "2000/01"
|
### Instruction:
CREATE TABLE table_19948664_2 (
index__year_ VARCHAR,
countries_sampled VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years were listed under index when there were 157 countries sampled?
### Response:
|
SELECT COUNT(index__year_) FROM table_19948664_2 WHERE countries_sampled = 157
|
### Instruction:
CREATE TABLE table_32545 (
"Region" text,
"Host" text,
"Venue" text,
"City" text,
"State" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which region does Old Dominion University represent?
### Response:
|
SELECT "Region" FROM table_32545 WHERE "Host" = 'old dominion university'
|
### Instruction:
CREATE TABLE table_27615520_1 (
form_factor VARCHAR,
bandwidth__gb_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the shape distortion for the range frequency of 10?
### Response:
|
SELECT form_factor FROM table_27615520_1 WHERE bandwidth__gb_s_ = "10"
|
### Instruction:
CREATE TABLE table_name_81 (
first_match VARCHAR,
last_match VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the first match for the competition that ended its last match on December 16, 2007?
### Response:
|
SELECT first_match FROM table_name_81 WHERE last_match = "december 16, 2007"
|
### Instruction:
CREATE TABLE Staff (
date_of_birth VARCHAR,
first_name VARCHAR,
last_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the birthday of the staff member with first name as Janessa and last name as Sawayn?
### Response:
|
SELECT date_of_birth FROM Staff WHERE first_name = "Janessa" AND last_name = "Sawayn"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.