instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_202_160 (
id number,
"season" number,
"level" text,
"division" text,
"section" text,
"position" text,
"movements" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what division was the team most commonly fou... | SELECT "division" FROM table_202_160 GROUP BY "division" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_1341586_26 (
result VARCHAR,
candidates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many results have the two candidates Gene Taylor (r) 67.0% Ken Young (d) 33.0%?
### Response:
| SELECT COUNT(result) FROM table_1341586_26 WHERE candidates = "Gene Taylor (R) 67.0% Ken Young (D) 33.0%" |
### Instruction:
CREATE TABLE table_name_98 (
to_par VARCHAR,
margin_of_victory VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is To par, when Margin of Victory is '2 Strokes', and when Tournament is 'Women's British Open'?
###... | SELECT to_par FROM table_name_98 WHERE margin_of_victory = "2 strokes" AND tournament = "women's british open" |
### Instruction:
CREATE TABLE table_35863 (
"Gauge" text,
"Railway" text,
"Works no." text,
"Year" text,
"Builder" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Year is the Works No. 2040-2049?
### Response:
| SELECT "Year" FROM table_35863 WHERE "Works no." = '2040-2049' |
### Instruction:
CREATE TABLE table_18419 (
"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.
-- Name the candidates where incumbent Carl Vinson is?
#... | SELECT "Candidates" FROM table_18419 WHERE "Incumbent" = 'Carl Vinson' |
### Instruction:
CREATE TABLE table_2378 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Original title" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the originl title for no stars in the jungl... | SELECT "Original title" FROM table_2378 WHERE "Film title used in nomination" = 'No Stars in the Jungle' |
### Instruction:
CREATE TABLE table_9567 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the fight when record is 12-2?... | SELECT "Res." FROM table_9567 WHERE "Record" = '12-2' |
### Instruction:
CREATE TABLE table_name_14 (
the_tradition VARCHAR,
year VARCHAR,
senior_players_championship VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Mark O'meara was the senior player champion in a year greater than 1998, who was the tradit... | SELECT the_tradition FROM table_name_14 WHERE year > 1998 AND senior_players_championship = "mark o'meara" |
### Instruction:
CREATE TABLE table_18118 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the party for the district south carolina 4?
... | SELECT "Party" FROM table_18118 WHERE "District" = 'South Carolina 4' |
### Instruction:
CREATE TABLE table_43800 (
"Event" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest gold when silver is 1 and bronze is less than 0?
### Response:
| SELECT MAX("Gold") FROM table_43800 WHERE "Silver" = '1' AND "Bronze" < '0' |
### Instruction:
CREATE TABLE table_67882 (
"City" text,
"Province/Region" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What province/region is RJTQ located?
### Response:
| SELECT "Province/Region" FROM table_67882 WHERE "ICAO" = 'rjtq' |
### Instruction:
CREATE TABLE table_name_77 (
rank_points VARCHAR,
event VARCHAR,
shooter VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Rank Points, when Event is 'WC Milan', and when Shooter is 'Lalita Yauhleuskaya ( AUS )'?
### Response:
| SELECT rank_points FROM table_name_77 WHERE event = "wc milan" AND shooter = "lalita yauhleuskaya ( aus )" |
### Instruction:
CREATE TABLE table_name_66 (
points INTEGER,
games VARCHAR,
losses VARCHAR,
team_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the lowest number of points with fewer than 8 losses and fewer than 24 games for the vancouve... | SELECT MIN(points) FROM table_name_66 WHERE losses < 8 AND team_name = "vancouver burrards" AND games < 24 |
### Instruction:
CREATE TABLE table_68621 (
"Date" text,
"Location" text,
"Nature of incident" text,
"Circumstances" text,
"Casualties" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the incident of 2009-09-05?
### Response:
| SELECT "Location" FROM table_68621 WHERE "Date" = '2009-09-05' |
### Instruction:
CREATE TABLE table_4001 (
"District" text,
"Incumbent" text,
"Cook" text,
"Rothenberg" text,
"CQ Politics" text,
"Crystal Ball" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the incumbent of district pa-8?
### Response... | SELECT "Incumbent" FROM table_4001 WHERE "District" = 'PA-8' |
### Instruction:
CREATE TABLE table_55331 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's Matts Nilsson's team that's ranked better than 7?
### Response:
| SELECT "Team" FROM table_55331 WHERE "Rank" < '7' AND "Rider" = 'matts nilsson' |
### Instruction:
CREATE TABLE table_38758 (
"Couple" text,
"Score" text,
"Style" text,
"Music" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Result of third place, and a Style of cha-cha-cha?
### Response:
| SELECT "Score" FROM table_38758 WHERE "Result" = 'third place' AND "Style" = 'cha-cha-cha' |
### Instruction:
CREATE TABLE table_40749 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Home team when Farnborough Town was the Away team?... | SELECT "Home team" FROM table_40749 WHERE "Away team" = 'farnborough town' |
### Instruction:
CREATE TABLE table_name_99 (
mountains_classification VARCHAR,
asian_team_classification VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHich Mountains classification has an Asian team classification of seoul cycling team... | SELECT mountains_classification FROM table_name_99 WHERE asian_team_classification = "seoul cycling team" AND winner = "alexandre usov" |
### Instruction:
CREATE TABLE table_name_81 (
took_office VARCHAR,
district VARCHAR,
party VARCHAR,
home_town VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Took Office has a Party of democratic, a Home Town of victoria, and a District smaller ... | SELECT COUNT(took_office) FROM table_name_81 WHERE party = "democratic" AND home_town = "victoria" AND district < 18 |
### Instruction:
CREATE TABLE table_47616 (
"Tournament" text,
"Surface" text,
"Week" text,
"Winner" text,
"Runner-up" text,
"Semifinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Runner-up on April 11?
### Response:
| SELECT "Runner-up" FROM table_47616 WHERE "Week" = 'april 11' |
### Instruction:
CREATE TABLE table_11854 (
"Client" text,
"Windows" text,
"GNU/Linux" text,
"Mac OS X" text,
"Haiku" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Mac OSX's GNU/Linux was yes when Windows was no?
### Response:
| SELECT "Mac OS X" FROM table_11854 WHERE "GNU/Linux" = 'yes' AND "Windows" = 'no' |
### Instruction:
CREATE TABLE table_40079 (
"Date" text,
"Cover model" text,
"Centerfold model" text,
"Interview subject" text,
"Pictorials" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Centerfold model in the issue in which the Interv... | SELECT "Centerfold model" FROM table_40079 WHERE "Interview subject" = 'paul simon' |
### Instruction:
CREATE TABLE table_14236 (
"School" text,
"Mascot" text,
"Location" text,
"Size" real,
"IHSAA Class" text,
"County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest size of the school with titans as the mascot?
... | SELECT MIN("Size") FROM table_14236 WHERE "Mascot" = 'titans' |
### Instruction:
CREATE TABLE table_64368 (
"Rank" real,
"Athletes" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the notes entry for the row with a Time of 1:42.309?
### Response:
| SELECT "Notes" FROM table_64368 WHERE "Time" = '1:42.309' |
### Instruction:
CREATE TABLE table_name_63 (
pass_def INTEGER,
sacks VARCHAR,
team VARCHAR,
solo VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average pass def that has green bay packers as the team, 62 as the solo and sacks less than 2... | SELECT AVG(pass_def) FROM table_name_63 WHERE team = "green bay packers" AND solo = 62 AND sacks < 2 |
### Instruction:
CREATE TABLE table_43743 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Time, when Laps is 22, and when Grid is 15?
### Response:
| SELECT "Time" FROM table_43743 WHERE "Laps" = '22' AND "Grid" = '15' |
### Instruction:
CREATE TABLE table_53859 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score during the competition of 1998 fifa world cup qualification?
### Re... | SELECT "Score" FROM table_53859 WHERE "Competition" = '1998 fifa world cup qualification' |
### Instruction:
CREATE TABLE table_71410 (
"Week" real,
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record of the opponent that has a bye?... | SELECT "Record" FROM table_71410 WHERE "Opponent" = 'bye' |
### Instruction:
CREATE TABLE table_204_787 (
id number,
"year" number,
"category" text,
"nominee(s)" text,
"episode" text,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many wins were after 1987 ?
### Response:
| SELECT COUNT(*) FROM table_204_787 WHERE "result" = 'won' AND "year" > 1987 |
### Instruction:
CREATE TABLE table_737 (
"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.
-- what's the incumbent with district being north carolina 6... | SELECT "Incumbent" FROM table_737 WHERE "District" = 'North Carolina 6' |
### Instruction:
CREATE TABLE table_72409 (
"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 were first elected in the Arkansas 4 district?... | SELECT COUNT("First elected") FROM table_72409 WHERE "District" = 'Arkansas 4' |
### Instruction:
CREATE TABLE table_8477 (
"Election" real,
"Candidate" text,
"Number of votes" text,
"Share of votes" text,
"Outcome of election" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earlest election with a 0.9% share of votes... | SELECT MIN("Election") FROM table_8477 WHERE "Share of votes" = '0.9%' |
### Instruction:
CREATE TABLE table_49926 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE ROUND FOR ZACH BOYCHUK?
### Response:
| SELECT COUNT("Round") FROM table_49926 WHERE "Player" = 'zach boychuk' |
### Instruction:
CREATE TABLE table_36311 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the visitor in the game that had Ottawa a... | SELECT "Visitor" FROM table_36311 WHERE "Home" = 'ottawa' |
### Instruction:
CREATE TABLE table_204_700 (
id number,
"name" text,
"developer" text,
"release" text,
"type" text,
"game flow" text,
"setting" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of multiplayer browser games r... | SELECT COUNT(*) FROM table_204_700 WHERE "release" = 2003 |
### Instruction:
CREATE TABLE table_46508 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the 05/09/1973 venue?
### Response:
| SELECT "Venue" FROM table_46508 WHERE "Date" = '05/09/1973' |
### Instruction:
CREATE TABLE table_name_21 (
consider VARCHAR,
candidate VARCHAR,
poll_source VARCHAR,
oppose VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What percentage of people said they would consider Rudy Giuliani as a candidate according to... | SELECT consider FROM table_name_21 WHERE poll_source = "newsweek poll" AND oppose = "32%" AND candidate = "rudy giuliani" |
### Instruction:
CREATE TABLE table_32709 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent had the result of W 24-14?
### Response:
| SELECT "Opponent" FROM table_32709 WHERE "Result" = 'w 24-14' |
### Instruction:
CREATE TABLE table_26807 (
"Episode no." real,
"Airdate" text,
"Viewers" text,
"BBC Three weekly ranking" text,
"Cable rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the number of bbc rankings with cable rankings of 6.
... | SELECT "BBC Three weekly ranking" FROM table_26807 WHERE "Cable rank" = '6' |
### Instruction:
CREATE TABLE table_8699 (
"Team 1" text,
"Score" text,
"Team 2" text,
"1st round" text,
"2nd round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for Team 1 of Stade Lavallois (d1)?
### Response:
| SELECT "Score" FROM table_8699 WHERE "Team 1" = 'stade lavallois (d1)' |
### Instruction:
CREATE TABLE table_56076 (
"Round" real,
"Overall" text,
"Player" text,
"Position" text,
"Nationality" text,
"Club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average round of a player with an overall of 138... | SELECT AVG("Round") FROM table_56076 WHERE "Overall" = '138' |
### Instruction:
CREATE TABLE table_18003 (
"Year" real,
"Dates" text,
"Champion" text,
"Score" real,
"To par" text,
"Margin of victory" text,
"Purse ( $ )" real,
"Winners share ($)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is... | SELECT MAX("Year") FROM table_18003 |
### Instruction:
CREATE TABLE table_46725 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total attendance on April 25?
### R... | SELECT COUNT("Attendance") FROM table_46725 WHERE "Date" = 'april 25' |
### Instruction:
CREATE TABLE table_52566 (
"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 John Watson's total laps with a grid of less than 7?
### Response:
| SELECT COUNT("Laps") FROM table_52566 WHERE "Driver" = 'john watson' AND "Grid" < '7' |
### Instruction:
CREATE TABLE table_25975 (
"Rank" real,
"Dismissals" real,
"Player" text,
"Caught" real,
"Stumped" real,
"Matches" real,
"Innings" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least dismissals for 4 rank
### Res... | SELECT MAX("Dismissals") FROM table_25975 WHERE "Rank" = '4' |
### Instruction:
CREATE TABLE table_20079931_4 (
round VARCHAR,
circuit_location VARCHAR,
pole_position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rounds were there in Karlskoga Motorstadion with Roger Eriksson at the pole position?
### Re... | SELECT COUNT(round) FROM table_20079931_4 WHERE circuit_location = "Karlskoga Motorstadion" AND pole_position = "Roger Eriksson" |
### Instruction:
CREATE TABLE table_525 (
"Branding" text,
"Callsign" text,
"Ch. #" text,
"Power (kW)" text,
"Station Type" text,
"Location (Transmitter site)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the station type of calbayog
... | SELECT "Station Type" FROM table_525 WHERE "Location (Transmitter site)" = 'Calbayog' |
### Instruction:
CREATE TABLE table_56416 (
"Season" text,
"Cup FinalDate" text,
"WinningTeam" text,
"Score" text,
"LosingTeam" text,
"Cup Final Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team beat the Newcastle Breakers?
... | SELECT "WinningTeam" FROM table_56416 WHERE "LosingTeam" = 'newcastle breakers' |
### Instruction:
CREATE TABLE table_5565 (
"Series Ep." text,
"Episode" real,
"Netflix" text,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the series ep for darts
###... | SELECT "Series Ep." FROM table_5565 WHERE "Segment D" = 'darts' |
### Instruction:
CREATE TABLE table_43765 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the home court on April 14?
###... | SELECT "Home" FROM table_43765 WHERE "Date" = 'april 14' |
### Instruction:
CREATE TABLE table_891 (
"District" real,
"Incumbent" text,
"Party" text,
"Elected" real,
"Status" text,
"Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the minimum district with incumbent being tom reynolds
... | SELECT MIN("District") FROM table_891 WHERE "Incumbent" = 'Tom Reynolds' |
### Instruction:
CREATE TABLE table_13805 (
"Year" text,
"Game" text,
"Genre" text,
"Platform(s)" text,
"Developer(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the platform(s) for the year 2006 (10th)?
### Response:
| SELECT "Platform(s)" FROM table_13805 WHERE "Year" = '2006 (10th)' |
### Instruction:
CREATE TABLE table_name_30 (
gp_winner VARCHAR,
place VARCHAR,
race_winners VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the GP winner with a place of genk, with race winners ben adriaenssen / ben van den bogaart?
### Respons... | SELECT gp_winner FROM table_name_30 WHERE place = "genk" AND race_winners = "ben adriaenssen / ben van den bogaart" |
### Instruction:
CREATE TABLE table_13061 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of player brian watts, who has a to par of 5?
### Response:
| SELECT "Score" FROM table_13061 WHERE "To par" = '5' AND "Player" = 'brian watts' |
### Instruction:
CREATE TABLE table_name_43 (
worldwide_gross VARCHAR,
director_s_ VARCHAR,
rank VARCHAR,
studio VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the movie directed by Martin Campbell at Columbia pictures with a ranking larger than ... | SELECT worldwide_gross FROM table_name_43 WHERE rank > 8 AND studio = "columbia pictures" AND director_s_ = "martin campbell" |
### Instruction:
CREATE TABLE table_31846 (
"Date" text,
"Result" text,
"Score" text,
"Type" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the score for international friendly 17 august 2013
### Response:
| SELECT "Score" FROM table_31846 WHERE "Type" = 'international friendly' AND "Date" = '17 august 2013' |
### Instruction:
CREATE TABLE table_69171 (
"Film" text,
"Director(s)" text,
"Producer(s)" text,
"Writer(s)" text,
"Date" text,
"Award" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What director worked with Al Mackay as writer?
### Response:... | SELECT "Director(s)" FROM table_69171 WHERE "Writer(s)" = 'al mackay' |
### Instruction:
CREATE TABLE table_54466 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record loss of R. Springer?
### Resp... | SELECT "Record" FROM table_54466 WHERE "Loss" = 'r. springer' |
### Instruction:
CREATE TABLE table_59137 (
"Statistic" text,
"Name" text,
"Total" text,
"School" text,
"Opponent" text,
"Stage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the opposing team was SSC-R what was the statistic?
### Respon... | SELECT "Statistic" FROM table_59137 WHERE "Opponent" = 'ssc-r' |
### Instruction:
CREATE TABLE table_29152820_1 (
directed_by VARCHAR,
written_by VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the episode that is written by Eli Attie and production code is 2t5018?
### Response:
| SELECT directed_by FROM table_29152820_1 WHERE written_by = "Eli Attie" AND production_code = "2T5018" |
### Instruction:
CREATE TABLE table_40097 (
"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 is the average year for Team Oreca?
### Respo... | SELECT AVG("Year") FROM table_40097 WHERE "Team" = 'team oreca' |
### Instruction:
CREATE TABLE table_18524_6 (
tourism_receipts__2003___as__percentage_of_gdp_ VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the tourism receipts 2003 for colombia
### Response:
| SELECT tourism_receipts__2003___as__percentage_of_gdp_ FROM table_18524_6 WHERE country = "Colombia" |
### Instruction:
CREATE TABLE table_name_74 (
fastest_laps INTEGER,
race_entries__starts_ VARCHAR,
podiums VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many fastest laps for the nation with 32 (30) entries and starts and fewer than 2 podiums?
###... | SELECT MIN(fastest_laps) FROM table_name_74 WHERE race_entries__starts_ = "32 (30)" AND podiums < 2 |
### Instruction:
CREATE TABLE table_5127 (
"Race" text,
"Length" text,
"Class" text,
"Circuit" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the length of the Laguna Seca Raceway circuit with a class of gtu?
### Response:
| SELECT "Length" FROM table_5127 WHERE "Circuit" = 'laguna seca raceway' AND "Class" = 'gtu' |
### Instruction:
CREATE TABLE table_204_261 (
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.
-- how many nations ranked in last with 0 total med... | SELECT COUNT("nation") FROM table_204_261 WHERE "total" = 0 |
### Instruction:
CREATE TABLE table_15171 (
"Stage" text,
"Date" text,
"Course" text,
"Distance" text,
"Winner" text,
"Race Leader" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's the race leader of Cuneo to Turin?
### Response:
| SELECT "Race Leader" FROM table_15171 WHERE "Course" = 'cuneo to turin' |
### Instruction:
CREATE TABLE table_35940 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Opponent of @ phoenix suns had what sum of game?
### Response:
| SELECT SUM("Game") FROM table_35940 WHERE "Opponent" = '@ phoenix suns' |
### Instruction:
CREATE TABLE table_3599 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many first elected years are provided for Thomas P. ... | SELECT COUNT("First elected") FROM table_3599 WHERE "Incumbent" = 'Thomas P. Moore' |
### Instruction:
CREATE TABLE table_28927 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party did the incumbent Joseph Pearson belong to?
... | SELECT "Party" FROM table_28927 WHERE "Incumbent" = 'Joseph Pearson' |
### Instruction:
CREATE TABLE table_73602 (
"Code name" text,
"Brand name" text,
"Model (list)" text,
"Frequency" text,
"Cores/Threads" text,
"Max Memory Speed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What frequency does model L34xx use?
... | SELECT "Frequency" FROM table_73602 WHERE "Model (list)" = 'L34xx' |
### Instruction:
CREATE TABLE table_38721 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average attendance on October 30, 1938?
### Response:
| SELECT AVG("Attendance") FROM table_38721 WHERE "Date" = 'october 30, 1938' |
### Instruction:
CREATE TABLE table_18558 (
"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.
-- What year was first-elected for the row of Texas 2?
#... | SELECT "First elected" FROM table_18558 WHERE "District" = 'Texas 2' |
### Instruction:
CREATE TABLE table_45374 (
"Channel" text,
"Play-by-play" text,
"Color commentator(s)" text,
"Studio host" text,
"Studio analysts" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which channel has Joel Meyers as the Play by play comm... | SELECT "Channel" FROM table_45374 WHERE "Play-by-play" = 'joel meyers' |
### Instruction:
CREATE TABLE table_59706 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What status has gauteng falcons as the opposing team?
### Respo... | SELECT "Status" FROM table_59706 WHERE "Opposing Team" = 'gauteng falcons' |
### Instruction:
CREATE TABLE table_23878 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Thundering Herd points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day did the play game number ... | SELECT "Date" FROM table_23878 WHERE "Game" = '9' |
### Instruction:
CREATE TABLE table_name_86 (
author___editor___source VARCHAR,
world_ranking__1_ VARCHAR,
countries_sampled VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Author/Editor/Source for more than 100 countries sampled and has a 35 w... | SELECT author___editor___source FROM table_name_86 WHERE world_ranking__1_ = "35" AND countries_sampled > 100 |
### Instruction:
CREATE TABLE table_name_92 (
pr_top_up VARCHAR,
percentage VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS TOTAL NUMBER OF PR TOP-UPS THAT HAVE A PERCENTAGE OF 0.8%, TOTAL LARGER THAN 1?
### Response:
| SELECT COUNT(pr_top_up) FROM table_name_92 WHERE percentage = "0.8%" AND total > 1 |
### Instruction:
CREATE TABLE table_50744 (
"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 Date of the RCA release with Catalog number SF-7635?
### Response:
| SELECT "Date" FROM table_50744 WHERE "Label" = 'rca' AND "Catalog" = 'sf-7635' |
### Instruction:
CREATE TABLE table_name_29 (
total_points INTEGER,
bonus_pts VARCHAR,
matches VARCHAR,
rides VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total for 34 matches with 111 rides, but no more than 15 bonus points?
### Resp... | SELECT AVG(total_points) FROM table_name_29 WHERE matches = 34 AND rides = 111 AND bonus_pts > 15 |
### Instruction:
CREATE TABLE table_16574 (
"Character" text,
"Portrayed by" text,
"First appearance" text,
"Last appearance" text,
"Duration" text,
"Episodes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which episode did actor A. J. Buckley ... | SELECT "Last appearance" FROM table_16574 WHERE "Portrayed by" = 'A. J. Buckley' |
### Instruction:
CREATE TABLE table_33639 (
"Player" text,
"Nationality" text,
"Position" text,
"From" text,
"School/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school did the guard who began playing in 1991 come from?
### Respons... | SELECT "School/Country" FROM table_33639 WHERE "Position" = 'guard' AND "From" = '1991' |
### Instruction:
CREATE TABLE table_25287007_2 (
june_10_11 VARCHAR,
march_27_29 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many solar eclipse during June 10-11 and march 27-29 is 149?
### Response:
| SELECT june_10_11 FROM table_25287007_2 WHERE march_27_29 = "149" |
### Instruction:
CREATE TABLE table_48049 (
"Month" text,
"Births" text,
"Deaths" text,
"Rate (%)" text,
"Sort restore" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which month had a sort value under 39 and 2 deaths?
### Response:
| SELECT "Month" FROM table_48049 WHERE "Sort restore" < '39' AND "Deaths" = '2' |
### Instruction:
CREATE TABLE table_11647327_2 (
head_of_household VARCHAR,
single VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the range of the head of household whereas single is $171,551 $372,950?
### Response:
| SELECT head_of_household FROM table_11647327_2 WHERE single = "$171,551–$372,950" |
### Instruction:
CREATE TABLE table_name_61 (
year_s__withdrawn VARCHAR,
wheel_arrangement VARCHAR,
year_made VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the 4-6-0 Wheel model train from 1908 withdrawn?
### Response:
| SELECT year_s__withdrawn FROM table_name_61 WHERE wheel_arrangement = "4-6-0" AND year_made = "1908" |
### Instruction:
CREATE TABLE table_201_19 (
id number,
"rank" number,
"title" text,
"studio" text,
"director" text,
"actors" text,
"gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the most high grossing director of 1965 ?
###... | SELECT "director" FROM table_201_19 ORDER BY "gross" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_69789 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the roll number for East Gore School?
### Res... | SELECT COUNT("Roll") FROM table_69789 WHERE "Name" = 'east gore school' |
### Instruction:
CREATE TABLE table_5431 (
"Series Ep." text,
"Episode" real,
"Segment A" text,
"Segment B" text,
"Segment C" text,
"Segment D" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Segment A has a Segment B of s awning?
### Res... | SELECT "Segment A" FROM table_5431 WHERE "Segment B" = 's awning' |
### Instruction:
CREATE TABLE table_23957 (
"Game" real,
"Date" text,
"Opponent" text,
"Result" text,
"Orangemen points" real,
"Opponents" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did they play against West Virginia... | SELECT "Date" FROM table_23957 WHERE "Opponent" = 'West Virginia' |
### Instruction:
CREATE TABLE table_65051 (
"Driver" text,
"Navigator" text,
"Vehicle" text,
"Class" text,
"Capacity" real,
"Total Time" text,
"Margin" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which vehicle had a class of CM14?
### R... | SELECT "Vehicle" FROM table_65051 WHERE "Class" = 'cm14' |
### Instruction:
CREATE TABLE table_name_24 (
latitude INTEGER,
pop__2010_ VARCHAR,
water__sqmi_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is latitude when 2010 population is 24 and water is more than 0.319?
### Response:
| SELECT MAX(latitude) FROM table_name_24 WHERE pop__2010_ = 24 AND water__sqmi_ > 0.319 |
### Instruction:
CREATE TABLE table_25042332_31 (
incarceration_rate_total VARCHAR,
incarceration_rate_female VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many regions had an incarceration rate for females of 63?
### Response:
| SELECT COUNT(incarceration_rate_total) FROM table_25042332_31 WHERE incarceration_rate_female = 63 |
### Instruction:
CREATE TABLE table_204_449 (
id number,
"no" number,
"episode" text,
"title" text,
"original airdate" text,
"viewers" number,
"nightly\nrank" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what episode had the most viewers... | SELECT "title" FROM table_204_449 ORDER BY "viewers" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_204_712 (
id number,
"rank" number,
"athlete" text,
"nationality" text,
"time" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of japanese in the top 10 ?
### Response:
| SELECT COUNT(*) FROM table_204_712 WHERE "nationality" = 'japan' AND id <= 10 |
### Instruction:
CREATE TABLE table_204_771 (
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.
-- name the nations that won at least 2 gold medals... | SELECT "nation" FROM table_204_771 WHERE "gold" >= 2 |
### Instruction:
CREATE TABLE table_201_9 (
id number,
"year" number,
"film title" text,
"duration" text,
"film type" text,
"shoot location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- list the films that had a collaboration with b. dziworski... | SELECT "film title" FROM table_201_9 WHERE "shoot location" = 'in collaboration with b. dziworski' |
### Instruction:
CREATE TABLE table_14119 (
"Title" text,
"Series" text,
"Director" text,
"Production Number" text,
"Release date" text,
"reissue?" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the title of the film with a production nu... | SELECT "Title" FROM table_14119 WHERE "Production Number" = '1023' |
### Instruction:
CREATE TABLE table_26168 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What week did September 29 fall in?
### ... | SELECT COUNT("Week") FROM table_26168 WHERE "Date" = 'September 29' |
### Instruction:
CREATE TABLE table_name_61 (
candidate_name VARCHAR,
list VARCHAR,
gender VARCHAR,
votes VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which candidate has more than 279 votes, rank less than 50, is and al-ahd?
##... | SELECT candidate_name FROM table_name_61 WHERE votes > 279 AND rank < 50 AND gender = "♀" AND list = "al-ahd" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.