instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_18710 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times was incumbent cordell hull first elected?
### Response:
|
SELECT COUNT("First elected") FROM table_18710 WHERE "Incumbent" = 'Cordell Hull'
|
### Instruction:
CREATE TABLE table_11848 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average grid at the time Vanwall was constructor and there were 17 laps?
### Response:
|
SELECT AVG("Grid") FROM table_11848 WHERE "Constructor" = 'vanwall' AND "Laps" = '17'
|
### Instruction:
CREATE TABLE table_204_273 (
id number,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"scorers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which player was the top scorer for the 1979 season ?
### Response:
|
SELECT "scorers" FROM table_204_273 GROUP BY "scorers" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_10666 (
"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 lowest Laps for mike spence, with a Grid smaller than 8?
### Response:
|
SELECT MIN("Laps") FROM table_10666 WHERE "Driver" = 'mike spence' AND "Grid" < '8'
|
### Instruction:
CREATE TABLE table_1715 (
"COMPANY NAME" text,
"Holding Companies" real,
"Subsidiaries" real,
"Description of activities" text,
"Parent (holding) company" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many subsidiaries of Postermobile Limited?
### Response:
|
SELECT "Subsidiaries" FROM table_1715 WHERE "COMPANY NAME" = 'POSTERMOBILE LIMITED'
|
### Instruction:
CREATE TABLE table_15552 (
"Ensemble" text,
"Gold Medals" real,
"Silver Medals" real,
"Bronze Medals" real,
"Total Medals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average total medals with ensemble of goshen hs
### Response:
|
SELECT AVG("Total Medals") FROM table_15552 WHERE "Ensemble" = 'goshen hs'
|
### Instruction:
CREATE TABLE table_10758 (
"Year" real,
"Location" text,
"Champion" text,
"Second" text,
"Third" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In years after 1999, what was the location where Anja Huber finished 2nd?
### Response:
|
SELECT "Location" FROM table_10758 WHERE "Year" > '1999' AND "Second" = 'anja huber'
|
### Instruction:
CREATE TABLE table_7227 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals were there for Johan Cruyff when the rank's less than 3?
### Response:
|
SELECT SUM("Goals") FROM table_7227 WHERE "Name" = 'johan cruyff' AND "Rank" < '3'
|
### Instruction:
CREATE TABLE table_27225944_3 (
outgoing_manager VARCHAR,
manner_of_departure VARCHAR,
position_in_table VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the outgoing manager for mutual consent and position 16th
### Response:
|
SELECT outgoing_manager FROM table_27225944_3 WHERE manner_of_departure = "Mutual consent" AND position_in_table = "16th"
|
### Instruction:
CREATE TABLE table_78807 (
"Geelong DFL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average of wins when the byes are less than 0?
### Response:
|
SELECT AVG("Wins") FROM table_78807 WHERE "Byes" < '0'
|
### Instruction:
CREATE TABLE table_78719 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Venue, when Date is 'January 6, 1995'?
### Response:
|
SELECT "Venue" FROM table_78719 WHERE "Date" = 'january 6, 1995'
|
### Instruction:
CREATE TABLE table_24999 (
"Province, Community" text,
"Contestant" text,
"Age" real,
"Height" text,
"Hometown" text,
"Geographical Regions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which contestant hails from Dajab n?
### Response:
|
SELECT "Contestant" FROM table_24999 WHERE "Province, Community" = 'Dajabón'
|
### Instruction:
CREATE TABLE table_64417 (
"Match" real,
"Date" text,
"Competition or tour" text,
"Ground" text,
"Opponent" text,
"Score1" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the match that happened in Bishop's Stortford?
### Response:
|
SELECT "Match" FROM table_64417 WHERE "Opponent" = 'bishop''s stortford'
|
### Instruction:
CREATE TABLE table_68500 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What game that had a record of 39-44 had the lowest attendance?
### Response:
|
SELECT MIN("Attendance") FROM table_68500 WHERE "Record" = '39-44'
|
### Instruction:
CREATE TABLE table_name_12 (
loss INTEGER,
gain VARCHAR,
avg_g VARCHAR,
long VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the loss when the average/gain is less than 16.7, gain is 104 and long is larger than 4?
### Response:
|
SELECT AVG(loss) FROM table_name_12 WHERE avg_g < 16.7 AND long > 4 AND gain = 104
|
### Instruction:
CREATE TABLE table_28597 (
"Location" text,
"Date" real,
"Denomination" text,
"Coinage metal" text,
"Mintage" real,
"KM number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the coinage metal for KM numbers of S45?
### Response:
|
SELECT "Coinage metal" FROM table_28597 WHERE "KM number" = 'S45'
|
### Instruction:
CREATE TABLE table_name_16 (
years VARCHAR,
free_or_pay VARCHAR,
transmission VARCHAR,
on_demand VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Years which have Transmission of digital satellite, an On demand of no, and a Free or pay of free + ppv?
### Response:
|
SELECT years FROM table_name_16 WHERE transmission = "digital satellite" AND on_demand = "no" AND free_or_pay = "free + ppv"
|
### Instruction:
CREATE TABLE table_54344 (
"Dismissals" text,
"Player" text,
"Versus" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Venue with a Date with 27-02-2003?
### Response:
|
SELECT "Venue" FROM table_54344 WHERE "Date" = '27-02-2003'
|
### Instruction:
CREATE TABLE table_41838 (
"Rank" real,
"Name" text,
"Years" text,
"Matches" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many ranks had 367 matches and more than 216 goals?
### Response:
|
SELECT SUM("Rank") FROM table_41838 WHERE "Matches" = '367' AND "Goals" > '216'
|
### Instruction:
CREATE TABLE table_25591 (
"Stage" real,
"Winner" text,
"General classification" text,
"Mountains classification" text,
"Points classification" text,
"Sprints classification" text,
"Team classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the stage is 3, what is the points classification name?
### Response:
|
SELECT "Points classification" FROM table_25591 WHERE "Stage" = '3'
|
### Instruction:
CREATE TABLE table_204_913 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which venue has the largest result
### Response:
|
SELECT "venue" FROM table_204_913 ORDER BY "result" + "result" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_52 (
frequency_mhz INTEGER,
erp_w VARCHAR,
call_sign VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Frequency MHz that has a ERP W larger than 205, and a Call sign of k230ap?
### Response:
|
SELECT MAX(frequency_mhz) FROM table_name_52 WHERE erp_w > 205 AND call_sign = "k230ap"
|
### Instruction:
CREATE TABLE table_46475 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player from Australia with a to par of +5?
### Response:
|
SELECT "Player" FROM table_46475 WHERE "To par" = '+5' AND "Country" = 'australia'
|
### Instruction:
CREATE TABLE table_30446 (
"Episode" text,
"Date Aired" text,
"Timeslot" text,
"Rating" text,
"Nightly Rank" real,
"Weekly Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the weekly rank of episode 1.03?
### Response:
|
SELECT "Weekly Rank" FROM table_30446 WHERE "Episode" = '1.03'
|
### Instruction:
CREATE TABLE table_56656 (
"Order" real,
"Name" text,
"Seasons" text,
"Games" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name for seasons 1981 and an order more than 807?
### Response:
|
SELECT "Name" FROM table_56656 WHERE "Seasons" = '1981' AND "Order" > '807'
|
### Instruction:
CREATE TABLE table_58187 (
"Name" text,
"Years" text,
"Area" text,
"Authority" text,
"Decile" text,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which school has a state authority and a roll of 318?
### Response:
|
SELECT "Name" FROM table_58187 WHERE "Authority" = 'state' AND "Roll" = '318'
|
### Instruction:
CREATE TABLE table_204_540 (
id number,
"name" text,
"town" text,
"deanery" text,
"vicariate" text,
"founded" number,
"original ethnic community" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name the only multi ethnic parish .
### Response:
|
SELECT "name" FROM table_204_540 WHERE "original ethnic community" = 'multi-ethnic'
|
### Instruction:
CREATE TABLE table_70469 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the winning score of the event where Brian Kamm was the runner-up?
### Response:
|
SELECT "Winning score" FROM table_70469 WHERE "Runner(s)-up" = 'brian kamm'
|
### Instruction:
CREATE TABLE table_name_46 (
wins INTEGER,
goals_for VARCHAR,
goal_difference VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest wins entry that has a goal difference less than 33, position higher than 13, and 42 goals?
### Response:
|
SELECT MIN(wins) FROM table_name_46 WHERE goal_difference < 33 AND position < 13 AND goals_for = 42
|
### Instruction:
CREATE TABLE table_46350 (
"Year" real,
"Round" text,
"Opponent" text,
"Result" text,
"BSU Head Coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result after 1993 of the first four rounds?
### Response:
|
SELECT "Result" FROM table_46350 WHERE "Year" > '1993' AND "Round" = 'first four'
|
### Instruction:
CREATE TABLE table_51174 (
"Name of ground" text,
"Location" text,
"Year" text,
"FC matches" text,
"LA matches" text,
"T20 matches" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What T20 Match has a total of 23?
### Response:
|
SELECT "T20 matches" FROM table_51174 WHERE "Total" = '23'
|
### Instruction:
CREATE TABLE table_name_85 (
rank INTEGER,
name VARCHAR,
market_value___usd_million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest rank of Deutsche Telekom with a market value over 209,628?
### Response:
|
SELECT MIN(rank) FROM table_name_85 WHERE name = "deutsche telekom" AND market_value___usd_million_ > 209 OFFSET 628
|
### Instruction:
CREATE TABLE table_203_455 (
id number,
"round" number,
"#" number,
"player" text,
"nationality" text,
"college/junior/club team (league)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- was jerret stoll picked in the first or second round ?
### Response:
|
SELECT "round" FROM table_203_455 WHERE "player" = 'jarret stoll'
|
### Instruction:
CREATE TABLE table_64993 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Matches" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Matches have a Tally of 1-38?
### Response:
|
SELECT "Matches" FROM table_64993 WHERE "Tally" = '1-38'
|
### Instruction:
CREATE TABLE table_8471 (
"South or west terminus" text,
"North or east terminus" text,
"First year" real,
"Final year" real,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most minimal Final year that has a North or east end of covington?
### Response:
|
SELECT MIN("Final year") FROM table_8471 WHERE "North or east terminus" = 'covington'
|
### Instruction:
CREATE TABLE table_39468 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year featured lola motorsport as an entrant with over 0 points?
### Response:
|
SELECT AVG("Year") FROM table_39468 WHERE "Entrant" = 'lola motorsport' AND "Points" > '0'
|
### Instruction:
CREATE TABLE table_52502 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the show with the production code k2708?
### Response:
|
SELECT "Directed by" FROM table_52502 WHERE "Production code" = 'k2708'
|
### Instruction:
CREATE TABLE table_203_587 (
id number,
"country" text,
"weapon designation" text,
"weapon description" text,
"year(s) delivered" text,
"quantity delivered" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which was the first country to sell weapons to iraq ?
### Response:
|
SELECT "country" FROM table_203_587 ORDER BY "year(s) delivered" LIMIT 1
|
### Instruction:
CREATE TABLE table_35097 (
"Date" text,
"Result" text,
"Score" text,
"Venue" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Result of l, and a Date of 15-oct-64 had what score?
### Response:
|
SELECT "Score" FROM table_35097 WHERE "Result" = 'l' AND "Date" = '15-oct-64'
|
### Instruction:
CREATE TABLE table_76147 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player has a Pick # lower than 223 and a Defensive End Position?
### Response:
|
SELECT "Player" FROM table_76147 WHERE "Pick #" < '223' AND "Position" = 'defensive end'
|
### Instruction:
CREATE TABLE table_32326 (
"Year" text,
"Name" text,
"Date" text,
"Stages" text,
"Distance" text,
"Winner" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many stages are in a distance of 2,192 km?
### Response:
|
SELECT "Stages" FROM table_32326 WHERE "Distance" = '2,192 km'
|
### Instruction:
CREATE TABLE table_67783 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the game site with result of l 7-38
### Response:
|
SELECT "Game site" FROM table_67783 WHERE "Result" = 'l 7-38'
|
### Instruction:
CREATE TABLE table_55990 (
"School's name" text,
"School's namesake" text,
"Year opened" text,
"Principal" text,
"Mascot" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the namesake of the school whose mascot is the patriots?
### Response:
|
SELECT "School's namesake" FROM table_55990 WHERE "Mascot" = 'patriots'
|
### Instruction:
CREATE TABLE table_33640 (
"Player" text,
"Nationality" text,
"Position" text,
"From" text,
"School/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of the guard/forward who began playing in 1977?
### Response:
|
SELECT "Nationality" FROM table_33640 WHERE "Position" = 'guard/forward' AND "From" = '1977'
|
### Instruction:
CREATE TABLE table_33264 (
"Game Name" text,
"Price" text,
"Top Prize" text,
"Launch Date" text,
"Odds of Winning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the launch date odds of winning 1 in 4.44?
### Response:
|
SELECT "Launch Date" FROM table_33264 WHERE "Odds of Winning" = '1 in 4.44'
|
### Instruction:
CREATE TABLE table_204_688 (
id number,
"name" text,
"red vs. blue" text,
"couples team" text,
"status" text,
"weight" text,
"total votes" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- give the number of people eliminated in week 1 ?
### Response:
|
SELECT COUNT(*) FROM table_204_688 WHERE "status" = 'eliminated week 1'
|
### Instruction:
CREATE TABLE table_65061 (
"Year" real,
"Artist" text,
"Song" text,
"Album" text,
"Remix" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the album with the song 'party like ur 18' feat. sway?
### Response:
|
SELECT "Album" FROM table_65061 WHERE "Song" = 'party like ur 18" feat. sway'
|
### Instruction:
CREATE TABLE table_39192 (
"Round" text,
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Attendance has an Opponent of oxford united?
### Response:
|
SELECT SUM("Attendance") FROM table_39192 WHERE "Opponent" = 'oxford united'
|
### Instruction:
CREATE TABLE table_4897 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team is from Lake Oval?
### Response:
|
SELECT "Home team" FROM table_4897 WHERE "Venue" = 'lake oval'
|
### Instruction:
CREATE TABLE table_name_18 (
round__number INTEGER,
pick__number VARCHAR,
position VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average round number with wide receiver as position and Clark University as the college and the pick number is bigger than 166?
### Response:
|
SELECT AVG(round__number) FROM table_name_18 WHERE position = "wide receiver" AND college = "clark university" AND pick__number > 166
|
### Instruction:
CREATE TABLE table_203_778 (
id number,
"representative" text,
"title" text,
"presentation\nof credentials" text,
"termination\nof mission" text,
"appointed by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- is solon borland a representative ?
### Response:
|
SELECT (SELECT COUNT(*) FROM table_203_778 WHERE "representative" = 'solon borland') > 0
|
### Instruction:
CREATE TABLE table_42911 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent for the game played on September 19, 1994?
### Response:
|
SELECT "Opponent" FROM table_42911 WHERE "Date" = 'september 19, 1994'
|
### Instruction:
CREATE TABLE table_name_22 (
place INTEGER,
points VARCHAR,
draw VARCHAR,
english_translation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total ranking when there are less than 16 draws, less than 1 point, and the English translation is in love with you?
### Response:
|
SELECT SUM(place) FROM table_name_22 WHERE draw < 16 AND english_translation = "in love with you" AND points < 1
|
### Instruction:
CREATE TABLE table_16677738_1 (
inns_of_court_and_chancery VARCHAR,
without_the_walls VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 70489 is without walls what is the inns of court and chancery?
### Response:
|
SELECT inns_of_court_and_chancery FROM table_16677738_1 WHERE without_the_walls = 70489
|
### Instruction:
CREATE TABLE table_55991 (
"School's name" text,
"School's namesake" text,
"Year opened" text,
"Principal" text,
"Mascot" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the school namesake for Lincoln Junior High School?
### Response:
|
SELECT "School's namesake" FROM table_55991 WHERE "School's name" = 'lincoln junior high school'
|
### Instruction:
CREATE TABLE table_22337 (
"City of license /Market" text,
"Station" text,
"Channel ( TV / RF )" text,
"Owned Since" real,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all the stations with a license in Cincinnati?
### Response:
|
SELECT "Station" FROM table_22337 WHERE "City of license /Market" = 'Cincinnati'
|
### Instruction:
CREATE TABLE table_name_31 (
gold INTEGER,
total VARCHAR,
nation VARCHAR,
rank VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least number of Gold for a Rank smaller than 5, and 1 silver medal for Poland with more than 1 medal in total?
### Response:
|
SELECT MIN(gold) FROM table_name_31 WHERE rank < 5 AND silver = 1 AND nation = "poland" AND total > 1
|
### Instruction:
CREATE TABLE table_27536 (
"Round" text,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the fastest lap for round 3
### Response:
|
SELECT "Fastest Lap" FROM table_27536 WHERE "Round" = '3'
|
### Instruction:
CREATE TABLE table_46248 (
"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 Record of the game on January 31 with Visitors Detroit Red Wings?
### Response:
|
SELECT "Record" FROM table_46248 WHERE "Visitor" = 'detroit red wings' AND "Date" = 'january 31'
|
### Instruction:
CREATE TABLE table_263 (
"Date" text,
"Tournament" text,
"Location" text,
"Purse( $ )" real,
"Winner" text,
"Score" text,
"1st Prize( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the tournament on Jul 11?
### Response:
|
SELECT "Tournament" FROM table_263 WHERE "Date" = 'Jul 11'
|
### Instruction:
CREATE TABLE table_80264 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent at the game when the record was 28 45?
### Response:
|
SELECT "Opponent" FROM table_80264 WHERE "Record" = '28–45'
|
### Instruction:
CREATE TABLE table_2840500_3 (
player VARCHAR,
nhl_team VARCHAR,
position VARCHAR,
nationality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the person that plays left wing and is from canada that plays on the st. louis blues
### Response:
|
SELECT player FROM table_2840500_3 WHERE position = "Left Wing" AND nationality = "Canada" AND nhl_team = "St. Louis Blues"
|
### Instruction:
CREATE TABLE table_name_61 (
tv_season VARCHAR,
season VARCHAR,
households__in_millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which TV season has a Season smaller than 8, and a Household (in millions) of 15.92 (17.1 rating)?
### Response:
|
SELECT tv_season FROM table_name_61 WHERE season < 8 AND households__in_millions_ = "15.92 (17.1 rating)"
|
### Instruction:
CREATE TABLE table_name_89 (
wickets INTEGER,
average VARCHAR,
matches VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest wickets when the matches is less than 5, player is jim laker and average is more than 52.44?
### Response:
|
SELECT MAX(wickets) FROM table_name_89 WHERE matches < 5 AND player = "jim laker" AND average > 52.44
|
### Instruction:
CREATE TABLE table_39877 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Records from Kontor Records from the catalog of Kontor446 was released in what format?
### Response:
|
SELECT "Format" FROM table_39877 WHERE "Label" = 'kontor records' AND "Catalog" = 'kontor446'
|
### Instruction:
CREATE TABLE table_name_94 (
party VARCHAR,
votes_cast VARCHAR,
seats_won VARCHAR,
percent_of_seats VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which party won less than 21 seats, has 0 percent of seats, and 69757 votes cast?
### Response:
|
SELECT party FROM table_name_94 WHERE seats_won < 21 AND percent_of_seats = 0 AND votes_cast = 69757
|
### Instruction:
CREATE TABLE table_204_68 (
id number,
"name" text,
"profession" text,
"hometown" text,
"term expires" number,
"office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many of the current state regents will be in office until at least 2016 ?
### Response:
|
SELECT COUNT("name") FROM table_204_68 WHERE "term expires" >= 2016
|
### Instruction:
CREATE TABLE table_65658 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the location and attendance when the record was 19-17?
### Response:
|
SELECT "Location/Attendance" FROM table_65658 WHERE "Record" = '19-17'
|
### Instruction:
CREATE TABLE table_2326823_2 (
model VARCHAR,
max_power_output VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many models have maximum power output is 162kw (220 ps) at 6,300 rpm?
### Response:
|
SELECT COUNT(model) FROM table_2326823_2 WHERE max_power_output = "162kW (220 PS) at 6,300 rpm"
|
### Instruction:
CREATE TABLE table_979 (
"Year" real,
"Team Name" text,
"Division" text,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the playoff result for the team name of bay area seals
### Response:
|
SELECT "Playoffs" FROM table_979 WHERE "Team Name" = 'Bay Area Seals'
|
### Instruction:
CREATE TABLE table_name_21 (
losses INTEGER,
points VARCHAR,
goals_against VARCHAR,
goal_difference VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many losses when goals against are more than 17, goal difference is more than 2 and points are more than 5?
### Response:
|
SELECT AVG(losses) FROM table_name_21 WHERE goals_against > 17 AND goal_difference < 2 AND points > 5
|
### Instruction:
CREATE TABLE table_60983 (
"Date" text,
"Opponent#" text,
"Rank #" text,
"Site" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT RANK HAD A RESULT OF W13-3?
### Response:
|
SELECT "Rank #" FROM table_60983 WHERE "Result" = 'w13-3'
|
### Instruction:
CREATE TABLE table_name_23 (
song VARCHAR,
film VARCHAR,
year VARCHAR,
music_director VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the song with year before 2013 and music director of yuvan shankar raja and film of billa ii
### Response:
|
SELECT song FROM table_name_23 WHERE year < 2013 AND music_director = "yuvan shankar raja" AND film = "billa ii"
|
### Instruction:
CREATE TABLE table_10085 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Richard Crump picked after the 114 pick was drafted in what round?
### Response:
|
SELECT "Round" FROM table_10085 WHERE "Pick #" > '114' AND "Player" = 'richard crump'
|
### Instruction:
CREATE TABLE table_74265 (
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many positions does the draft pick whose nationality is Czech Republic play?
### Response:
|
SELECT COUNT("Position") FROM table_74265 WHERE "Nationality" = 'Czech Republic'
|
### Instruction:
CREATE TABLE table_67052 (
"Quarter" text,
"Score" text,
"Club" text,
"Opponent" text,
"Year" text,
"Round" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent has a Round of 12?
### Response:
|
SELECT "Opponent" FROM table_67052 WHERE "Round" = '12'
|
### Instruction:
CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Visualize a bar chart for what are the different classes of races, and how many races correspond to each?
### Response:
|
SELECT Class, COUNT(*) FROM race GROUP BY Class
|
### Instruction:
CREATE TABLE table_48126 (
"Year" real,
"A-Side" text,
"B-Side" text,
"Label" text,
"US Pop" text,
"Album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Album has a Label of tumbleweed 1014?
### Response:
|
SELECT "Album" FROM table_48126 WHERE "Label" = 'tumbleweed 1014'
|
### Instruction:
CREATE TABLE table_30367 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the title of the episode with production code 104?
### Response:
|
SELECT "Title" FROM table_30367 WHERE "Production code" = '104'
|
### Instruction:
CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Visualize a pie chart with what are the different classes of races, and how many races correspond to each?
### Response:
|
SELECT Class, COUNT(*) FROM race GROUP BY Class
|
### Instruction:
CREATE TABLE table_203_686 (
id number,
"release date" text,
"album" text,
"record label" text,
"uk albums chart" number,
"u.s. billboard 200 chart" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of the album that was first to be released ?
### Response:
|
SELECT "album" FROM table_203_686 ORDER BY "release date" LIMIT 1
|
### Instruction:
CREATE TABLE table_48390 (
"Player" text,
"Attempts" real,
"Yards" real,
"Avg Yards" real,
"Long" real,
"Touchdowns" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Attempts, when Touchdowns is 6?
### Response:
|
SELECT COUNT("Attempts") FROM table_48390 WHERE "Touchdowns" = '6'
|
### Instruction:
CREATE TABLE table_203_636 (
id number,
"#" number,
"date" text,
"winner" text,
"score" text,
"location" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the difference in the score in the 1976 game ?
### Response:
|
SELECT "score" - "score" FROM table_203_636 WHERE "date" = 1976
|
### Instruction:
CREATE TABLE table_67261 (
"Name" text,
"City/State" text,
"Country" text,
"Status" text,
"Status Date" text,
"Episode Number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which city/state was associated with a contestant whose status was 2nd runner-up?
### Response:
|
SELECT "City/State" FROM table_67261 WHERE "Status" = '2nd runner-up'
|
### Instruction:
CREATE TABLE table_32531 (
"Week" text,
"Kickoff" text,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the week 2's record?
### Response:
|
SELECT "Record" FROM table_32531 WHERE "Week" = '2'
|
### Instruction:
CREATE TABLE table_45384 (
"Stop no." text,
"Platform" text,
"Line" text,
"Stopping pattern" text,
"Destination" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Destination has a Stopping pattern of [2777] mciver station platforms?
### Response:
|
SELECT "Destination" FROM table_45384 WHERE "Stopping pattern" = '[2777] mciver station platforms'
|
### Instruction:
CREATE TABLE table_12817 (
"Date" text,
"Team" text,
"Competition" text,
"Round" text,
"Opponent" text,
"Location" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Score of the competition on October 25?
### Response:
|
SELECT "Score" FROM table_12817 WHERE "Date" = 'october 25'
|
### Instruction:
CREATE TABLE table_149426_4 (
available_subnets INTEGER,
network_mask VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the network mask is 255.255.255.128 what is the lowest available subnet?
### Response:
|
SELECT MIN(available_subnets) FROM table_149426_4 WHERE network_mask = "255.255.255.128"
|
### Instruction:
CREATE TABLE table_name_60 (
margin_of_victory VARCHAR,
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the margin of victory in the tournament with a winning score of 3 (74-68-72-71=285)?
### Response:
|
SELECT margin_of_victory FROM table_name_60 WHERE winning_score = −3(74 - 68 - 72 - 71 = 285)
|
### Instruction:
CREATE TABLE table_name_43 (
lineup VARCHAR,
assist_pass VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Lineup that has an Assist/pass of carli lloyd,a Competition of 2010 concacaf world cup qualifying group stage?
### Response:
|
SELECT lineup FROM table_name_43 WHERE assist_pass = "carli lloyd" AND competition = "2010 concacaf world cup qualifying – group stage"
|
### Instruction:
CREATE TABLE table_54233 (
"Draw" real,
"Artist" text,
"Song" text,
"Points" real,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place for 'jednom u ivotu' with a draw larger than 18?
### Response:
|
SELECT COUNT("Place") FROM table_54233 WHERE "Song" = 'jednom u životu' AND "Draw" > '18'
|
### Instruction:
CREATE TABLE table_49462 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How long did it take to ride when the laps were 23 and the grid of 13?
### Response:
|
SELECT "Time" FROM table_49462 WHERE "Laps" = '23' AND "Grid" = '13'
|
### Instruction:
CREATE TABLE table_75357 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the ERP W for frequency of 92.7
### Response:
|
SELECT "ERP W" FROM table_75357 WHERE "Frequency MHz" = '92.7'
|
### Instruction:
CREATE TABLE table_57089 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did Essendon play at home?
### Response:
|
SELECT "Date" FROM table_57089 WHERE "Home team" = 'essendon'
|
### Instruction:
CREATE TABLE table_25246990_5 (
original_us_air_date VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different original U.S. air dates appear where the U.S. viewers were 2.5 million?
### Response:
|
SELECT COUNT(original_us_air_date) FROM table_25246990_5 WHERE us_viewers__millions_ = "2.5"
|
### Instruction:
CREATE TABLE table_203_252 (
id number,
"draw" number,
"country" text,
"language" text,
"artist" text,
"song" text,
"english translation" text,
"place" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country took first place ?
### Response:
|
SELECT "country" FROM table_203_252 WHERE "place" = 1
|
### Instruction:
CREATE TABLE table_14002 (
"City" text,
"System" text,
"Category" text,
"Daily ridership" real,
"As of" text,
"Opened" real,
"Stations" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opened has a Category of diesel light rail?
### Response:
|
SELECT MAX("Opened") FROM table_14002 WHERE "Category" = 'diesel light rail'
|
### Instruction:
CREATE TABLE table_45491 (
"Company name" text,
"Network brand name" text,
"Country" text,
"Accreditation type" text,
"Accreditation level" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the accreditation level of the network brand Movistar?
### Response:
|
SELECT "Accreditation level" FROM table_45491 WHERE "Network brand name" = 'movistar'
|
### Instruction:
CREATE TABLE people (
name VARCHAR,
sex VARCHAR,
people_id VARCHAR
)
CREATE TABLE candidate (
people_id VARCHAR,
support_rate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name and gender of the candidate who got the highest support rate.
### Response:
|
SELECT t1.name, t1.sex FROM people AS t1 JOIN candidate AS t2 ON t1.people_id = t2.people_id ORDER BY t2.support_rate DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_22962 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 4th, great lakes is the regular season what is the league?
### Response:
|
SELECT "League" FROM table_22962 WHERE "Regular Season" = '4th, Great Lakes'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.