instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_60681 (
"HD designation" text,
"Constellation" text,
"Distance ( ly )" real,
"Spectral type" text,
"Signal power ( kW )" real,
"Date sent" text,
"Arrival date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "Date sent" FROM table_60681 WHERE "Constellation" = 'delphinus' |
### Instruction:
CREATE TABLE table_30571 (
"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 parts does detroit red wings perso... | SELECT COUNT("Position") FROM table_30571 WHERE "NHL team" = 'Detroit Red Wings' AND "Player" = 'Urban Nordin' |
### Instruction:
CREATE TABLE table_3370 (
"Date (YYYY-MM-DD)" text,
"Time (UTC)" text,
"Latitude" text,
"Longitude" text,
"Depth" text,
"Magnitude" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On which date did the shock at latitude 08.909 s ... | SELECT "Date (YYYY-MM-DD)" FROM table_3370 WHERE "Latitude" = '08.909° S' |
### Instruction:
CREATE TABLE table_47669 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What record has loss as the res., 1 for the round, and akira maeda as the opponent?
### ... | SELECT "Record" FROM table_47669 WHERE "Res." = 'loss' AND "Round" = '1' AND "Opponent" = 'akira maeda' |
### Instruction:
CREATE TABLE table_60480 (
"Edition" text,
"Round" text,
"Date" text,
"Surface" text,
"Opponent" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent when the result was 7 6 (7 5) , 6 3?
### Respo... | SELECT "Opponent" FROM table_60480 WHERE "Result" = '7–6 (7–5) , 6–3' |
### Instruction:
CREATE TABLE table_47806 (
"Round" real,
"Pick" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE HIGHEST PICK WITH A TE POSITION, AND ROUND SMALLER THAN 2?
... | SELECT MAX("Pick") FROM table_47806 WHERE "Position" = 'te' AND "Round" < '2' |
### Instruction:
CREATE TABLE table_48516 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average round of the m... | SELECT AVG("Round") FROM table_48516 WHERE "Opponent" = 'kevin manderson' |
### Instruction:
CREATE TABLE table_45004 (
"Year" real,
"Award" text,
"Name" text,
"Institution" text,
"Chief Judge" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What institution won 2nd more recently than 2007 with Peter Agre as Chief Judge?
#... | SELECT "Institution" FROM table_45004 WHERE "Year" > '2007' AND "Award" = '2nd' AND "Chief Judge" = 'peter agre' |
### Instruction:
CREATE TABLE table_74655 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Total" real,
"Number of dances" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest average that has 6 dances and a ... | SELECT MAX("Average") FROM table_74655 WHERE "Number of dances" = '6' AND "Total" > '128' |
### Instruction:
CREATE TABLE table_203_283 (
id number,
"#" number,
"name" text,
"strike tone\n(st-1/16)" text,
"weight\n(kg)" number,
"diameter\n(mm)" number,
"inscription" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of... | SELECT "name" FROM table_203_283 ORDER BY "weight\n(kg)" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_4451 (
"Runs (Balls)" text,
"Wicket" text,
"Partnerships" text,
"Opponent" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the runs balls for wicket of 3rd for australia opponent... | SELECT "Runs (Balls)" FROM table_4451 WHERE "Wicket" = '3rd' AND "Opponent" = 'australia' |
### Instruction:
CREATE TABLE table_50845 (
"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.
-- Who is the home team on 31 January 1951 when away team was Sheffield United?
### Res... | SELECT "Home team" FROM table_50845 WHERE "Date" = '31 january 1951' AND "Away team" = 'sheffield united' |
### Instruction:
CREATE TABLE table_204_54 (
id number,
"pondicherry assembly" text,
"duration" text,
"name of m.l.a." text,
"party affiliation" text,
"election year" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who won the election after s.... | SELECT "name of m.l.a." FROM table_204_54 WHERE "pondicherry assembly" = 'fifth' |
### Instruction:
CREATE TABLE table_48312 (
"Wicket" text,
"Runs" text,
"Batsmen" text,
"Opponent" text,
"Venue" text,
"Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where were jamie cox & scott kremerskothen paired?
### Response:
| SELECT "Venue" FROM table_48312 WHERE "Batsmen" = 'jamie cox & scott kremerskothen' |
### Instruction:
CREATE TABLE table_10604 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver was in all rounds as an entrant o... | SELECT "Driver" FROM table_10604 WHERE "Rounds" = 'all' AND "Entrant" = 'motor racing developments' |
### Instruction:
CREATE TABLE table_11290 (
"Team" text,
"Games Played" real,
"Wins" real,
"Losses" real,
"Ties" real,
"Goals For" real,
"Goals Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the mean number of goals against ... | SELECT AVG("Goals Against") FROM table_11290 WHERE "Games Played" < '8' |
### Instruction:
CREATE TABLE table_21144 (
"Country" text,
"Name" text,
"Network" text,
"Premiere" text,
"Host(s)" text,
"Judges" text,
"Seasons and Winners" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of judges for dr st... | SELECT COUNT("Judges") FROM table_21144 WHERE "Host(s)" = 'Dré Steemans Ann Van Elsen' |
### Instruction:
CREATE TABLE table_21867 (
"Fin. Pos" real,
"Car No." real,
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Laps Led" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the p... | SELECT "Team" FROM table_21867 WHERE "Points" = '20' |
### Instruction:
CREATE TABLE table_204_975 (
id number,
"year" number,
"competition" text,
"location" text,
"event" text,
"final-rank" text,
"final-score" number,
"qualifying rank" number,
"qualifying score" number
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT MAX("qualifying score") FROM table_204_975 WHERE "event" = 'all around' |
### Instruction:
CREATE TABLE table_63402 (
"Position" real,
"Gymnast" text,
"A Score" real,
"B Score" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Position of the person with a total less than 16.65 and an A score of 7.4... | SELECT MIN("Position") FROM table_63402 WHERE "Total" < '16.65' AND "A Score" = '7.4' |
### Instruction:
CREATE TABLE actor (
actor_id number,
name text,
musical_id number,
character text,
duration text,
age number
)
CREATE TABLE musical (
musical_id number,
name text,
year number,
award text,
category text,
nominee text,
result text
)
-- Using valid ... | SELECT name FROM musical WHERE nominee = "Bob Fosse" |
### Instruction:
CREATE TABLE table_69363 (
"Outcome" text,
"Year" real,
"Tournament" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the runner-up for the Bulgaria Open, before 2007?
### Response:
| SELECT "Score" FROM table_69363 WHERE "Year" < '2007' AND "Outcome" = 'runner-up' AND "Tournament" = 'bulgaria open' |
### Instruction:
CREATE TABLE table_76897 (
"Rank" real,
"Name" text,
"Nation" text,
"Points" real,
"Placings" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Placings have Points smaller than 330.84, and a Name of silvo svajger?
### Respo... | SELECT COUNT("Placings") FROM table_76897 WHERE "Points" < '330.84' AND "Name" = 'silvo svajger' |
### Instruction:
CREATE TABLE table_204_613 (
id number,
"title" text,
"year" number,
"peak chart positions\nus" number,
"peak chart positions\nus\nr&b" number,
"peak chart positions\nus\nrap" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT COUNT(*) FROM table_204_613 WHERE "album" = 'non-album singles' |
### Instruction:
CREATE TABLE table_203_815 (
id number,
"pick #" number,
"nfl team" text,
"player" text,
"position" text,
"college" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the pick chosen after paul fanning ?
### Response:
| SELECT "player" FROM table_203_815 WHERE "pick #" = (SELECT "pick #" FROM table_203_815 WHERE "player" = 'paul fanning') + 1 |
### Instruction:
CREATE TABLE table_name_38 (
player VARCHAR,
nationality VARCHAR,
college_junior_club_team__league_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player is from the United States, and played for the Bowling Green Falcons (CCHA) as... | SELECT player FROM table_name_38 WHERE nationality = "united states" AND college_junior_club_team__league_ = "bowling green falcons (ccha)" |
### Instruction:
CREATE TABLE table_60761 (
"Official Name" text,
"Status" text,
"Area km 2" real,
"Population" real,
"Census Ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the place that has a census ranking of 1,229 of... | SELECT "Official Name" FROM table_60761 WHERE "Census Ranking" = '1,229 of 5,008' |
### Instruction:
CREATE TABLE table_77652 (
"Date" text,
"Round" text,
"Opponents" text,
"H / A" text,
"Result F\u2013A" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date has roma as opponent and a H/A of A?
### Resp... | SELECT "Date" FROM table_77652 WHERE "Opponents" = 'roma' AND "H / A" = 'a' |
### Instruction:
CREATE TABLE table_15126 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most points for years before 1979 and chassis of alfa romeo 177
### Response:
| SELECT MAX("Points") FROM table_15126 WHERE "Chassis" = 'alfa romeo 177' AND "Year" < '1979' |
### Instruction:
CREATE TABLE table_55708 (
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date... | SELECT "Date" FROM table_55708 WHERE "Fastest Lap" = 'gunnar nilsson' |
### Instruction:
CREATE TABLE table_22140 (
"Year [e ] (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Main Language(s)" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which year wa... | SELECT "Year [e ] (Ceremony)" FROM table_22140 WHERE "Original title" = 'გაღმა ნაპირი' |
### Instruction:
CREATE TABLE table_39778 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of round ... | SELECT COUNT("Round") FROM table_39778 WHERE "Opponent" = 'paul sutherland' |
### Instruction:
CREATE TABLE table_3681 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Whe... | SELECT "Original air date" FROM table_3681 WHERE "Written by" = 'Abe Sylvia' |
### Instruction:
CREATE TABLE table_53583 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position has less than 343 laps in 2010?
### ... | SELECT "Pos." FROM table_53583 WHERE "Laps" < '343' AND "Year" = '2010' |
### Instruction:
CREATE TABLE table_28810 (
"Name" text,
"Sweet" text,
"Species" text,
"Gender" text,
"Attribute" text,
"Birthday" text,
"Media Debut" text,
"Voice Actor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- whatis the gender w... | SELECT "Gender" FROM table_28810 WHERE "Species" = 'Holland Lop' |
### Instruction:
CREATE TABLE table_23987362_2 (
hicham_el_guerrouj___mar__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many of 3:26.00 when hicham el guerrouj ( mar ) is hudson de souza ( bra )?
### Response:
| SELECT COUNT(3) AS :2600 FROM table_23987362_2 WHERE hicham_el_guerrouj___mar__ = "Hudson de Souza ( BRA )" |
### Instruction:
CREATE TABLE table_78460 (
"Name" text,
"Nation" text,
"Points" real,
"Games" real,
"Pts/game" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the lowest Pts/game that has the Name of philippa tuttiett, and the Points... | SELECT MIN("Pts/game") FROM table_78460 WHERE "Name" = 'philippa tuttiett' AND "Points" > '6' |
### Instruction:
CREATE TABLE table_48734 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Date" FROM table_48734 WHERE "Record" = '29–47' |
### Instruction:
CREATE TABLE table_10858 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the lowest attendance for October 13, 1968, and is larger than week 5?
### Res... | SELECT MIN("Attendance") FROM table_10858 WHERE "Date" = 'october 13, 1968' AND "Week" > '5' |
### Instruction:
CREATE TABLE table_59390 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player placed t6 for the United States with a score of 67-69=136?
### Response:
| SELECT "Player" FROM table_59390 WHERE "Country" = 'united states' AND "Place" = 't6' AND "Score" = '67-69=136' |
### Instruction:
CREATE TABLE driver (
driver_id number,
name text,
party text,
home_city text,
age number
)
CREATE TABLE school (
school_id number,
grade text,
school text,
location text,
type text
)
CREATE TABLE school_bus (
school_id number,
driver_id number,
yea... | SELECT COUNT(*) FROM driver |
### Instruction:
CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
-- U... | SELECT allergy, allergytype FROM allergy_type |
### Instruction:
CREATE TABLE table_5666 (
"Draw" real,
"Artist" text,
"Song" text,
"Jury" real,
"Televoting" real,
"Points" real,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Televoting of 9, and a Jury smaller than 10 had what su... | SELECT SUM("Draw") FROM table_5666 WHERE "Televoting" = '9' AND "Jury" < '10' |
### Instruction:
CREATE TABLE table_49680 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were S bastien Bourdais' lowest points when there were less than ... | SELECT MIN("Points") FROM table_49680 WHERE "Driver" = 'sébastien bourdais' AND "Laps" < '63' |
### Instruction:
CREATE TABLE table_46607 (
"Heat" real,
"Lane" real,
"Name" text,
"Country" text,
"Mark" text,
"React" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the heat number at 7.63, and a reaction less than 0.229?
### Respons... | SELECT COUNT("Heat") FROM table_46607 WHERE "Mark" = '7.63' AND "React" < '0.229' |
### Instruction:
CREATE TABLE table_8050 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Crowd" real,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many were in the crowd wh... | SELECT COUNT("Crowd") FROM table_8050 WHERE "Score" = '97-80' |
### Instruction:
CREATE TABLE table_204_855 (
id number,
"year" number,
"date" text,
"winner" text,
"result" text,
"loser" text,
"attendance" number,
"location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of games t... | SELECT COUNT(*) FROM table_204_855 WHERE "loser" = 'detroit lions' |
### Instruction:
CREATE TABLE race (
Race_ID int,
Name text,
Class text,
Date text,
Track_ID text
)
CREATE TABLE track (
Track_ID int,
Name text,
Location text,
Seating real,
Year_Opened real
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT Class, COUNT(*) FROM race GROUP BY Class ORDER BY COUNT(*) DESC |
### Instruction:
CREATE TABLE table_203_713 (
id number,
"s.no." number,
"name of kingdom" text,
"name of king" text,
"no. of villages" number,
"capital" text,
"names of districts" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the n... | SELECT COUNT("name of kingdom") FROM table_203_713 WHERE "no. of villages" > 300 |
### Instruction:
CREATE TABLE table_51328 (
"CERCLIS ID" text,
"Name" text,
"Municipality" text,
"Proposed" text,
"Listed" text,
"Construction completed" text,
"Partially deleted" text,
"Deleted" text
)
-- Using valid SQLite, answer the following questions for the tables provided above... | SELECT "Deleted" FROM table_51328 WHERE "Name" = 'rca del caribe' |
### Instruction:
CREATE TABLE table_25783 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT COUNT("Score") FROM table_25783 WHERE "Record" = '19–34' |
### Instruction:
CREATE TABLE table_8039 (
"Year started" real,
"Number of cars" real,
"Current car" text,
"Car #" real,
"Website" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- HOW MANY CARS HAD A CAR # SMALLER THAN 7 AND STARTED ON 2010?
### Res... | SELECT "Number of cars" FROM table_8039 WHERE "Car #" < '7' AND "Year started" = '2010' |
### Instruction:
CREATE TABLE table_46395 (
"Rank" real,
"Player" text,
"Club(s)" text,
"Year(s)" text,
"U-17 Caps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the rank of Club Valencia with a U-17 Caps of 20?
### Response:
| SELECT COUNT("Rank") FROM table_46395 WHERE "Club(s)" = 'valencia' AND "U-17 Caps" = '20' |
### Instruction:
CREATE TABLE table_22893 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Original air date" FROM table_22893 WHERE "Title" = 'Secret Weapons' |
### Instruction:
CREATE TABLE table_30800 (
"Player" text,
"Matches" real,
"Overs" text,
"Wickets" real,
"Average" text,
"Economy" text,
"BBI" text,
"4wi" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the BBI whent the economy i... | SELECT "BBI" FROM table_30800 WHERE "Economy" = '5.68' |
### Instruction:
CREATE TABLE table_204_140 (
id number,
"round" number,
"#" number,
"player" text,
"position" text,
"nationality" text,
"college/junior/club team (league)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many centers were... | SELECT COUNT(*) FROM table_204_140 WHERE "position" = 'center' |
### Instruction:
CREATE TABLE table_29877 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Location Attendance" FROM table_29877 WHERE "Team" = '@ Portland' |
### Instruction:
CREATE TABLE table_203_341 (
id number,
"season" text,
"champion" text,
"runner-up" text,
"score" text,
"third place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many different champions were there in the 2000 - 2005 seas... | SELECT COUNT(DISTINCT "champion") FROM table_203_341 WHERE "season" >= 2000 AND "season" <= 2005 |
### Instruction:
CREATE TABLE table_44380 (
"Number" text,
"Builder" text,
"Type" text,
"Date" text,
"Works number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Type is DS4-4-750, and when Works Number is 74409?
### Response:
| SELECT "Date" FROM table_44380 WHERE "Type" = 'ds4-4-750' AND "Works number" = '74409' |
### Instruction:
CREATE TABLE table_54033 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Opposition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total for David O'Callaghan, and a Tally of 1-9?
### Re... | SELECT SUM("Total") FROM table_54033 WHERE "Player" = 'david o''callaghan' AND "Tally" = '1-9' |
### Instruction:
CREATE TABLE table_43162 (
"Year" text,
"Champion" text,
"Country" text,
"To par" text,
"Margin of victory" text,
"Winner's share ( $ )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is to par for the Winner's share 450,00... | SELECT "To par" FROM table_43162 WHERE "Winner's share ( $ )" = '450,000' |
### Instruction:
CREATE TABLE table_203_648 (
id number,
"date" text,
"opposition" text,
"result" text,
"score" text,
"brazil scorers" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times did brazil play against ... | SELECT COUNT(*) FROM table_203_648 WHERE "opposition" = 'argentina' AND "competition" = 'international friendly' |
### Instruction:
CREATE TABLE table_204_725 (
id number,
"rank" number,
"nation" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who earned more medals - vietnam or indonesia ?
... | SELECT "nation" FROM table_204_725 WHERE "nation" IN ('vietnam', 'indonesia') ORDER BY "total" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_57034 (
"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.
-- For sep 18 what is the total number ... | SELECT COUNT("1st Prize( $ )") FROM table_57034 WHERE "Date" = 'sep 18' |
### Instruction:
CREATE TABLE table_69715 (
"Player" text,
"Games" text,
"Tries" text,
"Goals" text,
"F. Goals" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the F. Goals with tries of 0 0 and games of 05 5
### Response:
| SELECT "F. Goals" FROM table_69715 WHERE "Tries" = '0 0' AND "Games" = '05 5' |
### Instruction:
CREATE TABLE table_77684 (
"Race" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Race Winner" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where did th... | SELECT "Location" FROM table_77684 WHERE "Pole Position" = 'tom pryce' |
### Instruction:
CREATE TABLE table_203_679 (
id number,
"part" text,
"number" text,
"first public release date (first edition)" number,
"latest public release date (edition)" number,
"latest amendment" text,
"title" text,
"description" text
)
-- Using valid SQLite, answer the followin... | SELECT "part" FROM table_203_679 WHERE "latest amendment" IS NULL |
### Instruction:
CREATE TABLE table_63690 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"React" real,
"Time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total react number with a time less than 20.05 and a lane less... | SELECT COUNT("React") FROM table_63690 WHERE "Time" < '20.05' AND "Lane" < '6' |
### Instruction:
CREATE TABLE table_204_125 (
id number,
"state" text,
"type" text,
"name" text,
"title" text,
"royal house" text,
"from" text,
"to" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of known vassal ... | SELECT COUNT("state") FROM table_204_125 WHERE NOT "from" IS NULL AND NOT "to" IS NULL |
### Instruction:
CREATE TABLE table_75033 (
"Games" real,
"First" real,
"Last" real,
"Gold" real,
"Bronze" real,
"Total" real,
"Best finish (first/last)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the latest first year with 0 tot... | SELECT MAX("First") FROM table_75033 WHERE "Total" > '0' AND "Gold" > '0' |
### Instruction:
CREATE TABLE table_24566 (
"Country" text,
"% of imports from Russia" text,
"% cut" text,
"Diversification" text,
"Gas storage" text,
"Alternative fuel" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the percent cunt fo... | SELECT "% cut" FROM table_24566 WHERE "Alternative fuel" = 'Fuel oil stocks need only for industry' |
### Instruction:
CREATE TABLE table_name_38 (
population___2011_census__ INTEGER,
land_area__km²_ INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest 2011 Census population of an area with a land area larger than 908,607.67 km ?
### Response... | SELECT MIN(population___2011_census__) FROM table_name_38 WHERE land_area__km²_ > 908 OFFSET 607.67 |
### Instruction:
CREATE TABLE table_11138 (
"model" text,
"max. motive power" text,
"max. torque at rpm" text,
"engine displacement" text,
"engine type" text,
"engine configuration & notes 0-100km/h" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "engine type" FROM table_11138 WHERE "model" = 'base 2.4' |
### Instruction:
CREATE TABLE table_9803 (
"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 when the margin of victory was a play... | SELECT "Winning score" FROM table_9803 WHERE "Margin of victory" = 'playoff' AND "Tournament" = 'safeco classic' |
### Instruction:
CREATE TABLE table_34043 (
"Date" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date was Gainsborough Trinity the Opponents with H/A of H?
### R... | SELECT "Date" FROM table_34043 WHERE "Opponents" = 'gainsborough trinity' AND "H / A" = 'h' |
### Instruction:
CREATE TABLE table_59249 (
"County" text,
"Precincts" text,
"E. Greenberg" text,
"G. Hager" text,
"T. Wyka" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which E. Greenberg has a T. Wyka of 10,793 (70%)?
### Response:
| SELECT "E. Greenberg" FROM table_59249 WHERE "T. Wyka" = '10,793 (70%)' |
### Instruction:
CREATE TABLE table_203_71 (
id number,
"name" text,
"service" text,
"rank" text,
"role and unit" text,
"date of award" text,
"notes" text,
"image" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many individuals wer... | SELECT COUNT("name") FROM table_203_71 WHERE "date of award" < 1940 |
### Instruction:
CREATE TABLE table_32224 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the match with a method ... | SELECT "Location" FROM table_32224 WHERE "Method" = 'submission (standing guillotine choke)' |
### Instruction:
CREATE TABLE table_30204 (
"No." real,
"Title" text,
"Lyricist" text,
"Composer" text,
"Arrangement" text,
"Sound Engineer" text,
"Length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many sound engineers were there fo... | SELECT COUNT("Sound Engineer") FROM table_30204 WHERE "Title" = 'Law Hakon ''3er Leek' |
### Instruction:
CREATE TABLE table_60331 (
"Name" text,
"No. Specimens" real,
"Abbr." text,
"Country" text,
"City" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country has the city of London, England with more than 150,000 specimens?
### ... | SELECT "Country" FROM table_60331 WHERE "No. Specimens" > '150,000' AND "City" = 'london, england' |
### Instruction:
CREATE TABLE table_63740 (
"Rank" real,
"Name" text,
"Altitude (meters)" real,
"Range" text,
"Parent Range" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the altitude (meters) is associated with the Name Mount Launoit, with... | SELECT SUM("Altitude (meters)") FROM table_63740 WHERE "Range" = 'belgica mountains' AND "Name" = 'mount launoit' |
### Instruction:
CREATE TABLE table_1326 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "Location Attendance" FROM table_1326 WHERE "Game" = '38' |
### Instruction:
CREATE TABLE table_203_661 (
id number,
"year" number,
"single" text,
"peak chart positions\nus mod" number,
"peak chart positions\nuk" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name one other single that wa... | SELECT "single" FROM table_203_661 WHERE "album" = 'losing streak' AND "single" <> '"dopeman"' |
### Instruction:
CREATE TABLE table_2106 (
"Institution" text,
"Location" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Nickname" text,
"Joined" real,
"Division" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total e... | SELECT "Enrollment" FROM table_2106 WHERE "Location" = 'Garden City, New York' |
### Instruction:
CREATE TABLE table_27134 (
"Round" text,
"Circuit" text,
"Date" text,
"Class A Winner" text,
"Class B Winner" text,
"Class C Winner" text,
"Class D Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Class A w... | SELECT "Class A Winner" FROM table_27134 WHERE "Class C Winner" = 'David Haynes' |
### Instruction:
CREATE TABLE table_25211 (
"District name" text,
"Dist. ID" real,
"ISD" text,
"County" text,
"Authorizing agency" text,
"Date opened" text,
"Services" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the district ID is 7490... | SELECT "District name" FROM table_25211 WHERE "Dist. ID" = '74907' |
### Instruction:
CREATE TABLE table_57164 (
"Entrant" text,
"Constructor" text,
"Chassis" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the driver whose Constructor was Era, and whose entrant was T.A.S.O. Mathie... | SELECT "Driver" FROM table_57164 WHERE "Constructor" = 'era' AND "Entrant" = 't.a.s.o. mathieson' |
### Instruction:
CREATE TABLE table_36603 (
"Date" text,
"Home Team" text,
"Score" text,
"Visiting Team" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for Edmonton Drillers on January 6, 2008?
### Response:
| SELECT "Score" FROM table_36603 WHERE "Visiting Team" = 'edmonton drillers' AND "Date" = 'january 6, 2008' |
### Instruction:
CREATE TABLE table_75407 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Game is the lowest one that has a Score of 2 3 ot, and Points larg... | SELECT MIN("Game") FROM table_75407 WHERE "Score" = '2–3 ot' AND "Points" > '76' |
### Instruction:
CREATE TABLE table_51495 (
"Rank" real,
"Engine" text,
"Wins" real,
"First win" text,
"Latest win" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total wins with the latest win at the 1999 Italian Grand Prix at a rank of 15... | SELECT SUM("Wins") FROM table_51495 WHERE "Latest win" = '1999 italian grand prix' AND "Rank" > '15' |
### Instruction:
CREATE TABLE table_38010 (
"Surname" text,
"First" text,
"D.O.B." text,
"Uni#" real,
"Bats" text,
"Throws" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Uni# of Timms, who has bats of R?
### Re... | SELECT "Uni#" FROM table_38010 WHERE "Bats" = 'r' AND "Surname" = 'timms' |
### Instruction:
CREATE TABLE table_54388 (
"Week" text,
"Date" text,
"Opponent" text,
"Result" text,
"Kickoff [a ]" text,
"Game site" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which game had an att... | SELECT "Date" FROM table_54388 WHERE "Attendance" = '56,271' |
### Instruction:
CREATE TABLE table_33662 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text,
"Position in table" text
)
-- Using valid SQLite, answer the following questions for the tables provided abo... | SELECT "Position in table" FROM table_33662 WHERE "Outgoing manager" = 'sammy lee' |
### Instruction:
CREATE TABLE table_73223 (
"County" text,
"Obama%" text,
"Obama#" real,
"McCain%" text,
"McCain#" real,
"Others%" text,
"Others#" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the number of voters McCain had when ... | SELECT "McCain#" FROM table_73223 WHERE "Obama#" = '895' |
### Instruction:
CREATE TABLE table_204_477 (
id number,
"pos" number,
"no" number,
"driver" text,
"team" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- tell me the ... | SELECT "laps" FROM table_204_477 WHERE "driver" = 'jj lehto' |
### Instruction:
CREATE TABLE table_203_303 (
id number,
"tribunal" text,
"number of autos da fe" number,
"executions in persona" number,
"executions in effigie" number,
"penanced" number,
"total" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT COUNT("tribunal") FROM table_203_303 WHERE "penanced" >= 100 |
### Instruction:
CREATE TABLE ref_product_categories (
product_category_description VARCHAR,
product_category_code VARCHAR
)
CREATE TABLE products (
product_category_code VARCHAR,
product_description VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Fi... | SELECT T1.product_category_description FROM ref_product_categories AS T1 JOIN products AS T2 ON T1.product_category_code = T2.product_category_code WHERE T2.product_description LIKE '%t%' |
### Instruction:
CREATE TABLE table_55008 (
"Date" text,
"Ship" text,
"Type" text,
"Nationality" text,
"Tonnage GRT" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Nationality has a Tonnage GRT larger than 2,890, and a Ship of mount temple?
... | SELECT "Nationality" FROM table_55008 WHERE "Tonnage GRT" > '2,890' AND "Ship" = 'mount temple' |
### Instruction:
CREATE TABLE table_57039 (
"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 an away team score 17.... | SELECT "Date" FROM table_57039 WHERE "Away team score" = '17.8 (110)' |
### Instruction:
CREATE TABLE table_203_839 (
id number,
"station" text,
"type" text,
"latitude" text,
"longitude" text,
"el. (m)" number,
"opened" number,
"closed" number,
"coordinates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT COUNT("station") FROM table_203_839 WHERE "opened" < 1926 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.