instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_29906 (
"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 "Team" FROM table_29906 WHERE "Date" = 'April 9' |
### Instruction:
CREATE TABLE table_6973 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Tournament has a Score of 1 6, 0 6?
#... | SELECT "Tournament" FROM table_6973 WHERE "Score" = '1–6, 0–6' |
### Instruction:
CREATE TABLE table_name_31 (
evening_gown INTEGER,
average VARCHAR,
interview VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest evening gown score of the contestant from Tennessee with an interview s... | SELECT MAX(evening_gown) FROM table_name_31 WHERE interview > 9.36 AND country = "tennessee" AND average > 9.75 |
### Instruction:
CREATE TABLE table_8419 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE SCORE WITH VISITORS CHICAGO BLACK HAWKS ON MARCH 24?
### Response:
| SELECT "Score" FROM table_8419 WHERE "Visitor" = 'chicago black hawks' AND "Date" = 'march 24' |
### Instruction:
CREATE TABLE table_15063 (
"Tournament" text,
"2007" text,
"2008" text,
"2009" text,
"Career Win-Loss" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the value in 2009 when 1R is in 2007?
### Response:
| SELECT "2009" FROM table_15063 WHERE "2007" = '1r' |
### Instruction:
CREATE TABLE table_61001 (
"Date" text,
"Opponent" text,
"Home/Away" text,
"Field" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What field is an opponent of cannons and resulted with w 16-11?
### Response:
| SELECT "Field" FROM table_61001 WHERE "Opponent" = 'cannons' AND "Result" = 'w 16-11' |
### Instruction:
CREATE TABLE table_204_108 (
id number,
"typ" text,
"construction time" text,
"cylinders" text,
"capacity" text,
"power" text,
"top speed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of cylinders that a... | SELECT "cylinders" FROM table_204_108 WHERE "typ" = '5/9 ps' |
### Instruction:
CREATE TABLE table_14387 (
"Year" text,
"Division" text,
"League" text,
"Reg. Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year had a 1st round playoff in the NASL indoor league?
... | SELECT "Year" FROM table_14387 WHERE "Playoffs" = '1st round' AND "League" = 'nasl indoor' |
### Instruction:
CREATE TABLE table_63705 (
"Year" real,
"Baden" text,
"W\u00fcrttemberg" text,
"Nordbayern" text,
"S\u00fcdbayern" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the W rttemberg in the year before 1929?
### Response:
| SELECT "W\u00fcrttemberg" FROM table_63705 WHERE "Year" < '1929' |
### Instruction:
CREATE TABLE table_69630 (
"Competition" text,
"Started Round" text,
"Final Position" text,
"Final Round" text,
"First Match" text,
"Last Match" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What competition had a final round i... | SELECT "Competition" FROM table_69630 WHERE "Final Position" = 'winners' AND "Final Round" = 'finals' |
### Instruction:
CREATE TABLE table_74332 (
"Team" text,
"Stadium" text,
"Home Games" real,
"Average Attendance" real,
"Total Attendance" real,
"Capacity Percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many average attendance has ... | SELECT COUNT("Average Attendance") FROM table_74332 WHERE "Capacity Percentage" = '96.5%' |
### Instruction:
CREATE TABLE table_19445 (
"School Year" text,
"Class A" text,
"Class AA" text,
"Class AAA" text,
"Class AAAA" text,
"Class AAAAA" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all the school years where class AAAA is ... | SELECT "School Year" FROM table_19445 WHERE "Class AAAA" = 'Gregory-Portland' |
### Instruction:
CREATE TABLE table_36443 (
"Game" real,
"November" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Vancouver canucks game was on a date closest to November 4?
##... | SELECT MAX("Game") FROM table_36443 WHERE "Opponent" = 'vancouver canucks' AND "November" < '4' |
### Instruction:
CREATE TABLE table_10175 (
"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 is the score of the home t... | SELECT "Home team score" FROM table_10175 WHERE "Away team" = 'essendon' |
### Instruction:
CREATE TABLE table_68962 (
"Episode" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which episode had Hoagy carmichael safe with an order of 5?
### Respons... | SELECT "Episode" FROM table_68962 WHERE "Result" = 'safe' AND "Order #" = '5' AND "Original artist" = 'hoagy carmichael' |
### Instruction:
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Birth_Date text,
Birth_Place text
)
CREATE TABLE body_builder (
Body_Builder_ID int,
People_ID int,
Snatch real,
Clean_Jerk real,
Total real
)
-- Using valid SQLite, answer the follo... | SELECT Clean_Jerk, Total FROM body_builder |
### Instruction:
CREATE TABLE table_77519 (
"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 highest goals against when th... | SELECT MAX("Goals Against") FROM table_77519 WHERE "Wins" < '1' |
### Instruction:
CREATE TABLE table_32387 (
"Player" text,
"Home Town" text,
"College/Prior" text,
"Drafting Team" text,
"Graduated" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who drafted the player from Michigan after 2010?
### Response:
| SELECT "Drafting Team" FROM table_32387 WHERE "Graduated" > '2010' AND "College/Prior" = 'michigan' |
### Instruction:
CREATE TABLE table_name_82 (
pick__number INTEGER,
pl_gp VARCHAR,
rd__number VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What numbered pick was mattias ohlund, with over 52 PL GP, and also a round under 11?
### R... | SELECT SUM(pick__number) FROM table_name_82 WHERE rd__number < 11 AND player = "mattias ohlund" AND pl_gp > 52 |
### Instruction:
CREATE TABLE table_43031 (
"Maximum Ceiling Temperature" text,
"Temperature Rating" text,
"Temperature Classification" text,
"Color Code (with Fusible Link)" text,
"Glass Bulb Color" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... | SELECT "Color Code (with Fusible Link)" FROM table_43031 WHERE "Temperature Classification" = 'ordinary' |
### Instruction:
CREATE TABLE table_54336 (
"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.
-- I want to know the average crow... | SELECT AVG("Crowd") FROM table_54336 WHERE "Away team" = 'melbourne' |
### Instruction:
CREATE TABLE table_name_70 (
birthplace VARCHAR,
birthdate VARCHAR,
height__in_ VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which birthplace's height in inches was more than 192 when the position was d and the bi... | SELECT birthplace FROM table_name_70 WHERE height__in_ > 192 AND position = "d" AND birthdate = "april 5, 1983" |
### Instruction:
CREATE TABLE table_name_58 (
race VARCHAR,
date VARCHAR,
pole_position VARCHAR,
fastest_lap VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the race winner with a pole position james hunt, and a Fastest Lap of james hunt, and ... | SELECT race AS Winner FROM table_name_58 WHERE pole_position = "james hunt" AND fastest_lap = "james hunt" AND date = "15 august" |
### Instruction:
CREATE TABLE table_47903 (
"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 college when the overall is more than 76 for brian mitchell... | SELECT "College" FROM table_47903 WHERE "Overall" > '76' AND "Name" = 'brian mitchell' |
### Instruction:
CREATE TABLE table_39186 (
"Rank" real,
"First quarter" text,
"Second quarter" text,
"Third quarter" text,
"Fourth quarter" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Rank of industrial and commercial bank of china 2... | SELECT "Rank" FROM table_39186 WHERE "First quarter" = 'industrial and commercial bank of china 277,236' |
### Instruction:
CREATE TABLE table_28302 (
"Branding" text,
"Callsign" text,
"Ch. #" text,
"Station Type" text,
"Power kW (ERP)" text,
"Location (Transmitter Site)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the branding of the call... | SELECT "Branding" FROM table_28302 WHERE "Callsign" = 'DWBA-TV' |
### Instruction:
CREATE TABLE table_40084 (
"Sport" text,
"Record" text,
"Athlete(s)" text,
"Nation" text,
"Date" text,
"Time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the time of 12 December 2009 with record start?
### Response:... | SELECT "Time" FROM table_40084 WHERE "Record" = 'start' AND "Date" = '12 december 2009' |
### Instruction:
CREATE TABLE table_name_3 (
year VARCHAR,
nominee VARCHAR,
award_ceremony VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times is the award ceremony laurence olivier award, result is won and the nominee is im... | SELECT COUNT(year) FROM table_name_3 WHERE award_ceremony = "laurence olivier award" AND result = "won" AND nominee = "imelda staunton" |
### Instruction:
CREATE TABLE table_9967 (
"Type" text,
"Year" real,
"Block" text,
"Displacement" text,
"Mainly For" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Mainly For with a displacement of 997 cc in a year before 1962?
### Res... | SELECT "Mainly For" FROM table_9967 WHERE "Year" < '1962' AND "Displacement" = '997 cc' |
### Instruction:
CREATE TABLE table_57264 (
"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 is the home team score tha... | SELECT "Home team score" FROM table_57264 WHERE "Away team" = 'carlton' |
### Instruction:
CREATE TABLE table_17495 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the womens singles event the ... | SELECT "Womens singles" FROM table_17495 WHERE "Mens singles" = 'Jonas Lyduch' |
### Instruction:
CREATE TABLE table_13370 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of totals for nations with 1 silver and more than ... | SELECT COUNT("Total") FROM table_13370 WHERE "Bronze" > '1' AND "Silver" = '1' |
### Instruction:
CREATE TABLE table_39852 (
"Matches" real,
"Wins" real,
"Losses" real,
"No Result" real,
"Success Rate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total No Results occured when the team had less than 46 wins and more th... | SELECT SUM("No Result") FROM table_39852 WHERE "Matches" > '16' AND "Wins" < '46' |
### Instruction:
CREATE TABLE table_59738 (
"Year" text,
"Winner" text,
"Runner-up" text,
"Venue" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location where ed c. kingsley was the runner-up in 1939?
### Response:
| SELECT "Location" FROM table_59738 WHERE "Runner-up" = 'ed c. kingsley' AND "Year" = '1939' |
### Instruction:
CREATE TABLE table_63626 (
"Rank" real,
"Canton" text,
"Highest point" text,
"Highest elevation" text,
"Lowest point" text,
"Lowest elevation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest elevation value who... | SELECT "Lowest elevation" FROM table_63626 WHERE "Highest point" = 'mont raimeux' |
### Instruction:
CREATE TABLE table_20720 (
"English Name" text,
"Simplified" text,
"Traditional" text,
"Pinyin" text,
"Area" text,
"Population" real,
"Density" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the pinyin for where populat... | SELECT "Pinyin" FROM table_20720 WHERE "Population" = '44617' |
### Instruction:
CREATE TABLE table_37445 (
"School Year" text,
"Class A" text,
"Class AA" text,
"Class AAA" text,
"Class AAAA" text,
"Class AAAAA" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the clas AAAA of school year 2000-01
### Re... | SELECT "Class AAAA" FROM table_37445 WHERE "School Year" = '2000-01' |
### Instruction:
CREATE TABLE table_74324 (
"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 "Record" FROM table_74324 WHERE "Team" = 'Washington' |
### Instruction:
CREATE TABLE table_204_550 (
id number,
"event" text,
"record" text,
"athlete" text,
"date" text,
"meet" text,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the first athlete in teh 100m event ?
### Respon... | SELECT "athlete" FROM table_204_550 WHERE "event" = '100 m' ORDER BY "date" LIMIT 1 |
### Instruction:
CREATE TABLE table_42047 (
"Actual Title" text,
"Writer" text,
"Artist" text,
"Issue" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What issue has mort drucker as the artist and february 2001 as the date?
### Respons... | SELECT "Issue" FROM table_42047 WHERE "Artist" = 'mort drucker' AND "Date" = 'february 2001' |
### Instruction:
CREATE TABLE table_37277 (
"Date" text,
"Episode" real,
"Performer 1" text,
"Performer 2" text,
"Performer 3" text,
"Performer 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest episode number where john bird w... | SELECT MIN("Episode") FROM table_37277 WHERE "Performer 4" = 'john bird' |
### Instruction:
CREATE TABLE table_67439 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the latest year for the Tyrrell 018 Chassis that has less than 3 points?
### Re... | SELECT MAX("Year") FROM table_67439 WHERE "Chassis" = 'tyrrell 018' AND "Points" < '3' |
### Instruction:
CREATE TABLE table_41135 (
"S No" real,
"Team (A)" text,
"Team (B)" text,
"Winner" text,
"Margin" text,
"Match Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Margin, when Match Date is Oct 17, 2007?
### Response:... | SELECT "Margin" FROM table_41135 WHERE "Match Date" = 'oct 17, 2007' |
### Instruction:
CREATE TABLE table_203_756 (
id number,
"year" number,
"title" text,
"role" text,
"network" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long until there was an appearance on the cts network ?
### Response:... | SELECT (SELECT MIN("year") FROM table_203_756 WHERE "network" = 'cts') - (SELECT MIN("year") FROM table_203_756) |
### Instruction:
CREATE TABLE table_5145 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest grid with rider casey stoner and laps that are smaller than 27?
... | SELECT MIN("Grid") FROM table_5145 WHERE "Rider" = 'casey stoner' AND "Laps" < '27' |
### Instruction:
CREATE TABLE table_11945 (
"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 is the crowd size of the A... | SELECT "Crowd" FROM table_11945 WHERE "Away team" = 'fitzroy' |
### Instruction:
CREATE TABLE table_44340 (
"Team" text,
"Tries for" text,
"Tries against" text,
"Try diff" text,
"Points for" text,
"Points against" text,
"Points diff" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Points for n... | SELECT "Points for" FROM table_44340 WHERE "Tries against" = '10' |
### Instruction:
CREATE TABLE table_58762 (
"Team Name" text,
"Schools" text,
"Sports" text,
"Host" text,
"Nickname(s)" text,
"Colors" text,
"Enrollment (2013/14)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the colors of the tea... | SELECT "Colors" FROM table_58762 WHERE "Host" = 'christopher' |
### Instruction:
CREATE TABLE table_73214 (
"Shareholder" text,
"s A share" real,
"s B share" real,
"Percent of capital" text,
"Percent of votes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the percent of capital for the shareholder that ... | SELECT "Percent of capital" FROM table_73214 WHERE "s B share" = '8256534' |
### Instruction:
CREATE TABLE table_202_127 (
id number,
"#" number,
"title" text,
"directed by" text,
"written by" text,
"original air date" text,
"production\ncode" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which director has the most... | SELECT "directed by" FROM table_202_127 GROUP BY "directed by" ORDER BY COUNT("title") DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_25435 (
"Edition" text,
"Round" text,
"Date" text,
"Against" text,
"Surface" text,
"Opponent" text,
"W\u2013L" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the surface against mon... | SELECT "Surface" FROM table_25435 WHERE "Against" = 'Monaco' |
### Instruction:
CREATE TABLE table_36031 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of pick with round less than 6 and overall of 1... | SELECT COUNT("Pick #") FROM table_36031 WHERE "Round" < '6' AND "Overall" = '102' |
### Instruction:
CREATE TABLE table_16543 (
"Year" real,
"Title" text,
"Format" text,
"Studio" text,
"Release Date" text,
"Copyright Information" text,
"Catalog Number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where title is am/pm call... | SELECT "Copyright Information" FROM table_16543 WHERE "Title" = 'AM/PM Callanetics' |
### Instruction:
CREATE TABLE table_4192 (
"No. in series" real,
"No. in season" 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.
-- How many d... | SELECT COUNT("Original air date") FROM table_4192 WHERE "Title" = 'Dick Jokes' |
### Instruction:
CREATE TABLE table_21414 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "High points" FROM table_21414 WHERE "Game" = '4' |
### Instruction:
CREATE TABLE table_name_31 (
winning_team VARCHAR,
venue VARCHAR,
year VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the winning team when the year is more than 2003, the score is 19 14 and the venue is harding... | SELECT winning_team FROM table_name_31 WHERE year > 2003 AND score = "19½–14½" AND venue = "harding park golf club" |
### Instruction:
CREATE TABLE table_7214 (
"Position" real,
"Team" text,
"Points" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Against" real,
"Difference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total amount of poi... | SELECT SUM("Points") FROM table_7214 WHERE "Played" < '12' |
### Instruction:
CREATE TABLE table_30177 (
"Proceed to Quarter-final" text,
"Match points" text,
"Aggregate score" text,
"Points margin" real,
"Eliminated from competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When brive is the proceed to... | SELECT COUNT("Eliminated from competition") FROM table_30177 WHERE "Proceed to Quarter-final" = 'Brive' |
### Instruction:
CREATE TABLE table_69441 (
"Engine" text,
"Displacement" text,
"Power" text,
"Torque" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is the earliest year with a Power of 90kw (121hp) @ 4000?
### Response:
| SELECT MIN("Year") FROM table_69441 WHERE "Power" = '90kw (121hp) @ 4000' |
### Instruction:
CREATE TABLE table_15795 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Pts." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the entrant with a cooper t43 chassis before 1958?
### Response:
| SELECT "Entrant" FROM table_15795 WHERE "Year" < '1958' AND "Chassis" = 'cooper t43' |
### Instruction:
CREATE TABLE table_78323 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many bronzes for nations with over 22 golds and ranked under 2?
### R... | SELECT MAX("Bronze") FROM table_78323 WHERE "Gold" > '22' AND "Rank" < '2' |
### Instruction:
CREATE TABLE table_26939 (
"Name" text,
"Position" text,
"Period" text,
"Appearances\u00b9" real,
"Goals\u00b9" real,
"Nationality\u00b2" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of period for yvon le... | SELECT COUNT("Period") FROM table_26939 WHERE "Name" = 'Yvon Le Roux' |
### Instruction:
CREATE TABLE table_72543 (
"Series #" real,
"Season #" real,
"Title" text,
"Story by" text,
"Teleplay by" text,
"Directed by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the teleplay by wh... | SELECT "Teleplay by" FROM table_72543 WHERE "Directed by" = 'Rob Bailey' |
### Instruction:
CREATE TABLE body_builder (
Body_Builder_ID int,
People_ID int,
Snatch real,
Clean_Jerk real,
Total real
)
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Birth_Date text,
Birth_Place text
)
-- Using valid SQLite, answer the follo... | SELECT People_ID, Total FROM body_builder |
### Instruction:
CREATE TABLE table_62117 (
"Outcome" text,
"Date" text,
"Championship" text,
"Surface" text,
"Opponent in the final" text,
"Score in the final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the score of the Championshi... | SELECT "Score in the final" FROM table_62117 WHERE "Championship" = 'estoril, portugal' |
### Instruction:
CREATE TABLE team (
team_id_br VARCHAR,
name VARCHAR
)
CREATE TABLE salary (
salary INTEGER,
team_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is average salary of the players in the team named 'Boston Red Stockings' ?
#... | SELECT AVG(T1.salary) FROM salary AS T1 JOIN team AS T2 ON T1.team_id = T2.team_id_br WHERE T2.name = 'Boston Red Stockings' |
### Instruction:
CREATE TABLE table_204_612 (
id number,
"draft order\nround" number,
"draft order\nchoice" number,
"player" text,
"position" text,
"height" text,
"weight" text,
"college" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- wh... | SELECT COUNT("player") FROM table_204_612 WHERE "height" < 6 |
### Instruction:
CREATE TABLE table_25962 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the results for all game... | SELECT "Score" FROM table_25962 WHERE "Opponent" = 'Detroit Red Wings' |
### Instruction:
CREATE TABLE table_16452 (
"1932 (before recount)" text,
"party" text,
"Manhattan" text,
"The Bronx" text,
"Brooklyn" text,
"Queens" text,
"Richmond [Staten Is.]" text,
"Total" real,
"%" text
)
-- Using valid SQLite, answer the following questions for the tables pr... | SELECT MIN("Total") FROM table_16452 |
### Instruction:
CREATE TABLE table_42899 (
"Result" text,
"Opponent" text,
"Type" text,
"Rd., Time" text,
"Date" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the Rd., Time 12 (12), 1:24?
### Response:
| SELECT "Date" FROM table_42899 WHERE "Rd., Time" = '12 (12), 1:24' |
### Instruction:
CREATE TABLE table_8481 (
"School" text,
"Locality" text,
"Ages" text,
"Capacity" real,
"Ofsted" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Ages have a Capacity larger than 21, and an Ofsted of 106168?
### Response:
| SELECT "Ages" FROM table_8481 WHERE "Capacity" > '21' AND "Ofsted" = '106168' |
### Instruction:
CREATE TABLE table_6512 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average points with a year higher than 1989, and a rank of 7th?
##... | SELECT AVG("Points") FROM table_6512 WHERE "Year" > '1989' AND "Rank" = '7th' |
### Instruction:
CREATE TABLE table_name_75 (
total INTEGER,
nation VARCHAR,
gold VARCHAR,
bronze VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Total, when Bronze is greater than 0, when Silver is greater than... | SELECT AVG(total) FROM table_name_75 WHERE bronze > 0 AND silver > 0 AND gold > 2 AND nation = "soviet union" |
### Instruction:
CREATE TABLE table_71219 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With Round 3 and Pick # over 10, what is the higher Overall number?
... | SELECT MAX("Overall") FROM table_71219 WHERE "Round" = '3' AND "Pick #" > '10' |
### Instruction:
CREATE TABLE table_75728 (
"Name" text,
"Position" text,
"Number" real,
"School/Club Team" text,
"Season" text,
"Acquisition via" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season had an acquisition of free agency, and ... | SELECT "Season" FROM table_75728 WHERE "Acquisition via" = 'free agency' AND "Number" > '9' |
### Instruction:
CREATE TABLE table_73810 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the ... | SELECT "Production code" FROM table_73810 WHERE "Written by" = 'Theresa Rebeck' |
### Instruction:
CREATE TABLE table_16175217_1 (
donor_payment VARCHAR,
children_per_donor VARCHAR,
allowed_recipients VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the status of donor payment in the country where there are 6 children per donor ... | SELECT donor_payment FROM table_16175217_1 WHERE children_per_donor = "6 children" AND allowed_recipients = "no data" |
### Instruction:
CREATE TABLE table_39224 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the Ohio 4 district, that is the first elected date that has a result of re... | SELECT SUM("First elected") FROM table_39224 WHERE "Result" = 're-elected' AND "District" = 'ohio 4' |
### Instruction:
CREATE TABLE track (
track_id number,
name text,
location text,
seating number,
year_opened number
)
CREATE TABLE race (
race_id number,
name text,
class text,
date text,
track_id text
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT name, location, seating FROM track ORDER BY year_opened DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_11607 (
"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.
-- How many were in the crowd when... | SELECT "Crowd" FROM table_11607 WHERE "Home team" = 'north melbourne' |
### Instruction:
CREATE TABLE table_11616 (
"Rank" real,
"Movie" text,
"Year" real,
"Studio(s)" text,
"Opening Weekend Net Gross" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Studio has the Year of 2012 listed and the Movie, Dabangg?
### R... | SELECT "Studio(s)" FROM table_11616 WHERE "Year" = '2012' AND "Movie" = 'dabangg' |
### Instruction:
CREATE TABLE table_52268 (
"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.
-- What driver has a 166 c 500 chassis?
### Res... | SELECT "Driver" FROM table_52268 WHERE "Chassis" = '166 c 500' |
### Instruction:
CREATE TABLE table_19155 (
"High School" text,
"Type" text,
"Established" real,
"Enrollment" real,
"Mascot" text,
"WIAA Classification" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the WIAA classifica... | SELECT "WIAA Classification" FROM table_19155 WHERE "High School" = 'Oakland Alternative' |
### Instruction:
CREATE TABLE table_34966 (
"Year" real,
"Class" text,
"Team" text,
"Machine" text,
"Points" real,
"Rank" text,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Team of Honda and a point total of 238 is what highest year... | SELECT MAX("Year") FROM table_34966 WHERE "Team" = 'honda' AND "Points" = '238' |
### Instruction:
CREATE TABLE table_7045 (
"Week" text,
"Date" text,
"Time ( ET )" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game site" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What time was the game played that had a recor... | SELECT "Time ( ET )" FROM table_7045 WHERE "Record" = '0–2–0' |
### Instruction:
CREATE TABLE table_21754 (
"Gatchaman" text,
"Battle of the Planets" text,
"G-Force" text,
"Eagle Riders" text,
"OVA (Harmony Gold Dub)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which eagle riders have battle of the planets as... | SELECT "Eagle Riders" FROM table_21754 WHERE "Battle of the Planets" = 'Zoltar' |
### Instruction:
CREATE TABLE table_2299 (
"#" text,
"Date" text,
"at/vs." text,
"Opponent" text,
"Score" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was attendance on March 11, 1995?
### Response:... | SELECT MIN("Attendance") FROM table_2299 WHERE "Date" = 'March 11, 1995' |
### Instruction:
CREATE TABLE table_80146 (
"Riding" text,
"Candidate's Name" text,
"Gender" text,
"Residence" text,
"Occupation" text,
"Votes" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What gender is Luc Desnoyers?
### R... | SELECT "Gender" FROM table_80146 WHERE "Candidate's Name" = 'luc desnoyers' |
### Instruction:
CREATE TABLE table_7504 (
"Date" text,
"Tournament" text,
"Venue" text,
"Opponent" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the game played in Russia on May 9, 2012?
### Response:
| SELECT "Result" FROM table_7504 WHERE "Venue" = 'russia' AND "Date" = 'may 9, 2012' |
### Instruction:
CREATE TABLE table_48596 (
"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 was the resolution of the fig... | SELECT "Res." FROM table_48596 WHERE "Opponent" = 'steve schneider' |
### Instruction:
CREATE TABLE table_27505 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Kim Weiskopf and Jeff Franklin wrote ... | SELECT "No. in series" FROM table_27505 WHERE "Written by" = 'Kim Weiskopf and Jeff Franklin' |
### Instruction:
CREATE TABLE table_26424 (
"Stage (Winner)" text,
"General classification" text,
"Sprint Classification" text,
"Mountains Classification" text,
"Youth Classification" text,
"Aggressive Rider" text,
"Team Classification" text
)
-- Using valid SQLite, answer the following qu... | SELECT "Sprint Classification" FROM table_26424 WHERE "Aggressive Rider" = 'Michael Barry' |
### Instruction:
CREATE TABLE table_32295 (
"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 was the smallest crowd for... | SELECT MIN("Crowd") FROM table_32295 WHERE "Away team" = 'carlton' |
### Instruction:
CREATE TABLE table_name_12 (
region__year_ VARCHAR,
no_5 VARCHAR,
no_7 VARCHAR,
no_1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which region (year) has Abigail at number 7, Sophia at number 1 and Aaliyah at number 5?
### Respon... | SELECT region__year_ FROM table_name_12 WHERE no_7 = "abigail" AND no_1 = "sophia" AND no_5 = "aaliyah" |
### Instruction:
CREATE TABLE table_78753 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many silver medals for the nation with fewer than 1 golds and total les... | SELECT COUNT("Silver") FROM table_78753 WHERE "Gold" < '1' AND "Total" < '1' |
### Instruction:
CREATE TABLE table_name_55 (
byes INTEGER,
hampden_fl VARCHAR,
wins VARCHAR,
against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the most byes of Terang-Mortlake when they had more than 11 wins and more than 1118 against... | SELECT MAX(byes) FROM table_name_55 WHERE wins > 11 AND against > 1118 AND hampden_fl = "terang-mortlake" |
### Instruction:
CREATE TABLE table_11116 (
"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 was the away team whe... | SELECT "Away team" FROM table_11116 WHERE "Home team" = 'footscray' |
### Instruction:
CREATE TABLE table_72252 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Series" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Series" FROM table_72252 WHERE "Date" = 'June 5' |
### Instruction:
CREATE TABLE table_70446 (
"Team" text,
"Manager 1" text,
"Captain" text,
"Kit manufacturer" text,
"Shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team has Pony as the kit manufacturer and Gary Mabbutt as the cap... | SELECT "Team" FROM table_70446 WHERE "Kit manufacturer" = 'pony' AND "Captain" = 'gary mabbutt' |
### Instruction:
CREATE TABLE table_21504 (
"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 MAX("Game") FROM table_21504 WHERE "Team" = 'Charlotte' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.