instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_52977 (
"Season" text,
"UEFA Season" text,
"Coeff" text,
"Ranking" real,
"Champions" text,
"Runner-up" text,
"3rd place" text,
"Cup winner" text,
"Cup runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT "Champions" FROM table_52977 WHERE "Coeff" = '1.000' |
### Instruction:
CREATE TABLE table_20047 (
"2000 :" text,
"January" text,
"February" text,
"March" text,
"April" text,
"May" text,
"June" text,
"July" text,
"August" text,
"September" text,
"October" text,
"November" text,
"December" text
)
-- Using valid SQLite, a... | SELECT "June" FROM table_20047 |
### Instruction:
CREATE TABLE table_77143 (
"Rank" real,
"Mountain Peak" text,
"Region" text,
"Mountain Range" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Mountain Range has a Region of haiti, and a Location of 18.3601 n 71... | SELECT "Mountain Range" FROM table_77143 WHERE "Region" = 'haiti' AND "Location" = '18.3601°n 71.9764°w' |
### Instruction:
CREATE TABLE table_68822 (
"Year" real,
"Region total" real,
"Goondiwindi" real,
"Waggamba" real,
"Inglewood" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest value in Waggamba were Inglewwod had 2,771, but Goondiw... | SELECT MAX("Waggamba") FROM table_68822 WHERE "Inglewood" = '2,771' AND "Goondiwindi" < '4,374' |
### Instruction:
CREATE TABLE table_69495 (
"Nationality" text,
"Position [A ]" text,
"Milan career" text,
"Captaincy" text,
"Appearances" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the captaincy for Defender that has l... | SELECT "Captaincy" FROM table_69495 WHERE "Appearances" < '212' AND "Goals" = '12' AND "Position [A ]" = 'defender' |
### Instruction:
CREATE TABLE table_22978 (
"Rank 2011" real,
"Change since 2006" text,
"Urban Area" text,
"County" text,
"Population 2011" real,
"Increase since 2006" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many places did the rank c... | SELECT COUNT("Change since 2006") FROM table_22978 WHERE "County" = 'County Leitrim' |
### Instruction:
CREATE TABLE table_38397 (
"Name" text,
"Years of Operation" text,
"Location" text,
"Historical Photos" text,
"Year Clubhouse Constructed" text,
"Sign-in/Bicker" text,
"Year co-ed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Sign-in/Bicker" FROM table_38397 WHERE "Location" = 'wash50 on washington rd' |
### Instruction:
CREATE TABLE table_72750 (
"Rank" real,
"City 1" text,
"City 2" text,
"2012 Passengers (in millions)" text,
"2011 Passengers (in millions)" text,
"Distance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many passengers (in ... | SELECT "2012 Passengers (in millions)" FROM table_72750 WHERE "Distance" = '1075km' |
### Instruction:
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
-- Using valid SQLite, answer the follo... | SELECT Nationality, COUNT(Nationality) FROM ship GROUP BY Nationality ORDER BY Nationality DESC |
### Instruction:
CREATE TABLE table_204_651 (
id number,
"date" text,
"championship" text,
"location" text,
"category" text,
"surface" text,
"prev. result" text,
"prev. points" number,
"new points" number,
"outcome" text
)
-- Using valid SQLite, answer the following questions f... | SELECT "championship" FROM table_204_651 WHERE "surface" = 'grass' ORDER BY "date" LIMIT 1 |
### Instruction:
CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
)
-- Using valid SQLite, answer ... | SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee ORDER BY Nominee |
### Instruction:
CREATE TABLE table_47731 (
"Game" real,
"Date" text,
"Opponent" 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 provi... | SELECT "Date" FROM table_47731 WHERE "Location/Attendance" = 'verizon center 7,448' |
### Instruction:
CREATE TABLE table_203_537 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what venue is listed above wembley... | SELECT "venue" FROM table_203_537 WHERE id = (SELECT id FROM table_203_537 WHERE "venue" = 'wembley stadium, london') - 1 |
### Instruction:
CREATE TABLE table_46737 (
"Letter" text,
"IPv6 address" text,
"AS-number" text,
"Operator" text,
"Location #sites (global/local)" text,
"Software" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which IPv6 address had a location... | SELECT "IPv6 address" FROM table_46737 WHERE "Location #sites (global/local)" = 'distributed using anycast 8/0' AND "Letter" = 'a' |
### Instruction:
CREATE TABLE table_45132 (
"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 average laps when the manufacturer is yamaha, and the rider is garry m... | SELECT AVG("Laps") FROM table_45132 WHERE "Manufacturer" = 'yamaha' AND "Rider" = 'garry mccoy' AND "Grid" < '4' |
### Instruction:
CREATE TABLE table_13815 (
"School" text,
"Mascot" text,
"School Corp." text,
"Size" real,
"IHSAA Class (Football)" text,
"Year Joined" text,
"Other Conferences" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school cor... | SELECT "School Corp." FROM table_13815 WHERE "Year Joined" = '1971' AND "Mascot" = 'bruins' |
### Instruction:
CREATE TABLE table_name_70 (
state VARCHAR,
interview VARCHAR,
evening_gown VARCHAR,
average VARCHAR,
swimsuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which state had an average of less than 8.67, a swimsuit score of 8.27,... | SELECT state FROM table_name_70 WHERE average < 8.67 AND swimsuit = 8.27 AND evening_gown = 8.78 AND interview = 8.52 |
### Instruction:
CREATE TABLE table_204_135 (
id number,
"position" number,
"club" text,
"played" number,
"points" number,
"wins" number,
"draws" number,
"losses" number,
"goals for" number,
"goals against" number,
"goal difference" number
)
-- Using valid SQLite, answer th... | SELECT (SELECT COUNT("club") FROM table_204_135 WHERE "losses" = 0) > 0 |
### Instruction:
CREATE TABLE table_66560 (
"Season" text,
"Games" text,
"Lost" text,
"Tied" text,
"Points" text,
"Goals for" text,
"Goals against" text,
"Standing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the goals for a ... | SELECT "Goals for" FROM table_66560 WHERE "Lost" = 'involuntary suspension of season (hurricane rita)' |
### Instruction:
CREATE TABLE table_16450 (
"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 "party" FROM table_16450 WHERE "Brooklyn" = '51.0%' |
### Instruction:
CREATE TABLE table_203_799 (
id number,
"year" number,
"date" text,
"title" text,
"format(s)" text,
"award description(s)" text,
"result(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was whitney 's best year for he... | SELECT "year" FROM table_203_799 WHERE "title" = 'whitney' GROUP BY "year" ORDER BY COUNT("award description(s)") DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_2393 (
"District" text,
"Capital City" text,
"Area (km\u00b2)" real,
"Area (sq.mi)" real,
"Population (2005 est)" real,
"2-letter abbreviation" text,
"3-letter abbreviation" text
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT "Population (2005 est)" FROM table_2393 WHERE "3-letter abbreviation" = 'CYO' |
### Instruction:
CREATE TABLE table_65771 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the venue when the competition is asian games, the event is 4x400 m relay and ... | SELECT "Venue" FROM table_65771 WHERE "Competition" = 'asian games' AND "Event" = '4x400 m relay' AND "Year" = '2002' |
### Instruction:
CREATE TABLE table_203_218 (
id number,
"pos" number,
"class" text,
"no" number,
"team" text,
"drivers" text,
"chassis" text,
"engine" text,
"laps" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many laps did s... | SELECT "laps" FROM table_203_218 WHERE "team" = 'scuderia ferrari' AND "drivers" = 'robert manzon' |
### Instruction:
CREATE TABLE table_203_859 (
id number,
"game" number,
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" number,
"record" text,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "attendance" FROM table_203_859 WHERE "home" = 'philadelphia' |
### Instruction:
CREATE TABLE table_204_161 (
id number,
"name" text,
"1968 cf\ndesignator" text,
"place of\nmanufacture" text,
"primary\nrole(s)" text,
"service\nperiod" text,
"#\nused" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how m... | SELECT "#\nused" FROM table_204_161 WHERE "name" = 'airco dh.4' |
### Instruction:
CREATE TABLE table_13794 (
"Name" text,
"Position" text,
"League Apps" text,
"League Goals" real,
"FA Cup Apps" text,
"FA Cup Goals" real,
"League Cup Apps" text,
"League Cup Goals" real,
"Total Apps" text,
"Total Goals" real
)
-- Using valid SQLite, answer the... | SELECT "Position" FROM table_13794 WHERE "Total Apps" = '5' |
### Instruction:
CREATE TABLE table_51788 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most number of cuts made that had m... | SELECT MAX("Cuts made") FROM table_51788 WHERE "Events" = '7' AND "Top-25" > '2' |
### Instruction:
CREATE TABLE table_79053 (
"Name" text,
"Pos." text,
"Height" text,
"Weight" text,
"Date of Birth" text,
"Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the weight of the player from club panionios g.c. and was bor... | SELECT "Weight" FROM table_79053 WHERE "Club" = 'panionios g.c.' AND "Date of Birth" = '1975-05-21' |
### Instruction:
CREATE TABLE table_name_38 (
earnings_per_share__ VARCHAR,
net_profit__us_$m_ VARCHAR,
year_to_april VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of Earnings per share ( ) which has a Net profit (US $m) larger than 66, ... | SELECT COUNT(earnings_per_share__) AS ¢_ FROM table_name_38 WHERE net_profit__us_$m_ > 66 AND year_to_april < 2010 |
### Instruction:
CREATE TABLE table_56441 (
"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 12.... | SELECT "Date" FROM table_56441 WHERE "Away team score" = '12.14 (86)' AND "Venue" = 'windy hill' |
### Instruction:
CREATE TABLE table_13048 (
"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.
-- Which Player has a Round smaller than 4, and a College/j... | SELECT "Player" FROM table_13048 WHERE "Round" < '4' AND "College/junior/club team (league)" = 'usa u-18' |
### Instruction:
CREATE TABLE table_28055 (
"Episode no." real,
"Airdate" text,
"Dave Viewers" real,
"Dave Rank" real,
"Rank (cable)" real,
"Dave ja vu Viewers" real,
"Total viewers" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was th... | SELECT "Airdate" FROM table_28055 WHERE "Dave ja vu Viewers" = '106000' |
### Instruction:
CREATE TABLE table_66054 (
"School" text,
"Location" text,
"Mascot" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which IHSAA Football Class... | SELECT "IHSAA Football Class" FROM table_66054 WHERE "IHSAA Class" = 'aaa' AND "Location" = 'nashville' |
### Instruction:
CREATE TABLE table_12748 (
"Nat." text,
"Name" text,
"Moving from" text,
"Type" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the person with a t... | SELECT "Name" FROM table_12748 WHERE "Type" = 'transfer' AND "Transfer fee" = '€8m + €2m in variables' |
### Instruction:
CREATE TABLE table_61834 (
"Seat" real,
"Season 1" text,
"Season 2" text,
"Season 3" text,
"Season 6" text,
"Season 7" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Season 7 has a Seat larger than 1, and a Season 3 of w. ... | SELECT "Season 7" FROM table_61834 WHERE "Seat" > '1' AND "Season 3" = 'w. brett wilson' |
### Instruction:
CREATE TABLE table_76090 (
"Name" text,
"Date of Birth" text,
"Height" real,
"Weight" real,
"Spike" real,
"Block" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many spikes have 28.09.1981 as the date of birth, with a block ... | SELECT SUM("Spike") FROM table_76090 WHERE "Date of Birth" = '28.09.1981' AND "Block" > '318' |
### Instruction:
CREATE TABLE table_42769 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Home Captain, when Date is 23,24,26,27,28,29 Feb, 1 Mar 1912?
### Resp... | SELECT "Home captain" FROM table_42769 WHERE "Date" = '23,24,26,27,28,29 feb, 1 mar 1912' |
### Instruction:
CREATE TABLE table_9197 (
"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.
-- What is the total number of pe... | SELECT COUNT("Attendance") FROM table_9197 WHERE "Location" = 'td banknorth garden' AND "Game" > '31' |
### Instruction:
CREATE TABLE table_65894 (
"Tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the 2009 of the Australian Open having a 1R in 2011?
### Response:
| SELECT "2009" FROM table_65894 WHERE "2011" = '1r' AND "Tournament" = 'australian open' |
### Instruction:
CREATE TABLE APPELLATIONS (
Appelation VARCHAR,
County VARCHAR
)
CREATE TABLE WINE (
Appelation VARCHAR
)
CREATE TABLE wine (
price INTEGER,
Appelation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the average price of wi... | SELECT AVG(price) FROM wine WHERE NOT Appelation IN (SELECT T1.Appelation FROM APPELLATIONS AS T1 JOIN wine AS T2 ON T1.Appelation = T2.Appelation WHERE T1.County = 'Sonoma') |
### Instruction:
CREATE TABLE table_60283 (
"Year" real,
"Date (Opening)" text,
"Date (Closing)" text,
"Opening Film" text,
"Number of Screening" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date (Opening), when Year is less than 2010, and... | SELECT "Date (Opening)" FROM table_60283 WHERE "Year" < '2010' AND "Date (Closing)" = 'september 28' |
### Instruction:
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
-- Using valid SQLite, answer the following questions for t... | SELECT Rank, COUNT(*) FROM captain WHERE age < 50 GROUP BY Rank ORDER BY Rank DESC |
### Instruction:
CREATE TABLE table_13282 (
"Year" real,
"Finish position" text,
"1st day" text,
"2nd day" text,
"3rd day" text,
"4th Day" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year that the 3rd say is Rowed-Over and the 4th... | SELECT AVG("Year") FROM table_13282 WHERE "3rd day" = 'rowed-over' AND "4th Day" = 'bumped corpus christi' |
### Instruction:
CREATE TABLE table_16111 (
"Season" text,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" real,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Team" FROM table_16111 WHERE "Series" = 'Formula Renault 2.0 NEC' |
### Instruction:
CREATE TABLE table_37562 (
"Date" text,
"Race Name" text,
"Location" text,
"UCI Rating" text,
"Winner" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the omloop van de vlaamse scheldeboorden race... | SELECT "Date" FROM table_37562 WHERE "UCI Rating" = '1.1' AND "Race Name" = 'omloop van de vlaamse scheldeboorden' |
### Instruction:
CREATE TABLE table_74702 (
"Name" text,
"Case type" text,
"Bullet diameter" text,
"Neck diameter" text,
"Base diameter" text,
"Rim diameter" text,
"Case length" text,
"Cartridge length" text
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT "Bullet diameter" FROM table_74702 WHERE "Name" = '11.4mm werndl m/73' |
### Instruction:
CREATE TABLE table_204_858 (
id number,
"date" text,
"time" text,
"opponent#" text,
"rank#" text,
"site" text,
"tv" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the tota... | SELECT "attendance" FROM table_204_858 WHERE "date" = 'august 30' AND "opponent#" = 'alabama' |
### Instruction:
CREATE TABLE table_name_46 (
date__from_ VARCHAR,
name_of_system VARCHAR,
traction_type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date did the event begin that had a steam traction type and used the system named HSM (1883 19... | SELECT date__from_ FROM table_name_46 WHERE name_of_system = "hsm (1883–1910) gt (1915–1922)" AND traction_type = "steam" |
### Instruction:
CREATE TABLE table_61194 (
"Name" text,
"Bodyweight" real,
"Snatch" real,
"Clean & Jerk" real,
"Total (kg)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHTA IS THE SNATCH WITH A TOTAL OF LARGER THAN 318 KG AND BODY WEIGHT OF 84.1... | SELECT AVG("Snatch") FROM table_61194 WHERE "Total (kg)" > '318' AND "Bodyweight" = '84.15' |
### Instruction:
CREATE TABLE table_203_695 (
id number,
"draw" number,
"artist" text,
"song" text,
"points" number,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in the irish national final for the eurovision song contest in 1990 , whi... | SELECT "artist" FROM table_203_695 WHERE "points" > (SELECT "points" FROM table_203_695 WHERE "artist" = 'linda martin and friends') |
### Instruction:
CREATE TABLE table_45300 (
"Type" text,
"Construction period" text,
"Cylinder" text,
"Capacity" text,
"Power" text,
"Vmax" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the maximum speed for straight-4, 1.466 cc Type r... | SELECT "Vmax" FROM table_45300 WHERE "Cylinder" = 'straight-4' AND "Capacity" = '1.466 cc' AND "Type" = 'r 150' |
### Instruction:
CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
)
-- Using valid SQLite, answer ... | SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee ORDER BY Nominee DESC |
### Instruction:
CREATE TABLE table_78721 (
"Team" text,
"2004\u201305 Pts" text,
"2005\u201306 Pts" text,
"2006\u201307 Pts" real,
"Total Pts" real,
"Total Pld" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of PLD for ... | SELECT COUNT("Total Pld") FROM table_78721 WHERE "Team" = 'arsenal' |
### Instruction:
CREATE TABLE table_52434 (
"Rank" real,
"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 lowest bronze a team with 9 silvers, a total larger than 13, an... | SELECT MIN("Bronze") FROM table_52434 WHERE "Silver" = '9' AND "Total" > '13' AND "Gold" > '13' |
### Instruction:
CREATE TABLE table_66345 (
"Model" text,
"Year Introduced" real,
"Number of CPUs" text,
"Performance (MIPS)" text,
"Memory (GB)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Model has a Number of CPUs of 1 10, and a Performa... | SELECT "Model" FROM table_66345 WHERE "Number of CPUs" = '1–10' AND "Performance (MIPS)" = '49–447' |
### Instruction:
CREATE TABLE table_46565 (
"Year" real,
"Championship" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During the championship where the winning score was 9 (66-69-... | SELECT "Runner(s)-up" FROM table_46565 WHERE "Winning score" = '−9 (66-69-73-71=279)' |
### Instruction:
CREATE TABLE table_54050 (
"Year" text,
"Winner" text,
"Jockey" text,
"Trainer" text,
"Owner" text,
"Time" text,
"Purse" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the WInner with a TIme of 1:10.60, and Owner of L... | SELECT "Winner" FROM table_54050 WHERE "Time" = '1:10.60' AND "Owner" = 'leslie combs ii' |
### Instruction:
CREATE TABLE table_78695 (
"Seat Order (Right to Left)" real,
"Series 1" text,
"Series 2" text,
"Series 3" text,
"Series 5" text,
"Series 9" text,
"Series 11" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Seat Orde... | SELECT COUNT("Seat Order (Right to Left)") FROM table_78695 WHERE "Series 3" = 'deborah meaden' |
### Instruction:
CREATE TABLE table_name_15 (
totals_06_10 INTEGER,
pubs_2010 VARCHAR,
totals_07_11 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest 06-10 totals with a pubs 2010 of 68 and a 07-11 totals larger than 305?
### Response:
| SELECT MIN(totals_06_10) FROM table_name_15 WHERE pubs_2010 = 68 AND totals_07_11 > 305 |
### Instruction:
CREATE TABLE table_19478 (
"Date Released" text,
"Polling institute" text,
"Socialist" text,
"Social Democratic" text,
"Peoples Party" text,
"Green-Communist" text,
"Left Bloc" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables pro... | SELECT "Social Democratic" FROM table_19478 WHERE "Socialist" = '46.1%' |
### Instruction:
CREATE TABLE member_of_club (
clubid VARCHAR,
stuid VARCHAR
)
CREATE TABLE club (
clubid VARCHAR,
clubname VARCHAR
)
CREATE TABLE student (
lname VARCHAR,
stuid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the last n... | SELECT t3.lname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Bootup Baltimore" |
### Instruction:
CREATE TABLE table_237 (
"Power Source" text,
"Number of Generators" real,
"Power Capacity (GW)" text,
"% of total Capacity" text,
"Capacity factor" text,
"Annual Energy (billion kWh)" text,
"% of annual production" text
)
-- Using valid SQLite, answer the following questi... | SELECT "% of total Capacity" FROM table_237 WHERE "Annual Energy (billion kWh)" = '120.2' |
### Instruction:
CREATE TABLE table_22905 (
"Carrier" text,
"Standard" text,
"Frequency" text,
"(down)" text,
"(up)" text,
"Launch date (dd.mm.yyyy)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- whare are al of the launche dates where th carri... | SELECT "Launch date (dd.mm.yyyy)" FROM table_22905 WHERE "(up)" = '5.76 Mbit/s' AND "Carrier" = 'Orange' |
### Instruction:
CREATE TABLE table_name_7 (
multi_1 VARCHAR,
model_number VARCHAR,
frequency VARCHAR,
release_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Multi 1 has a Frequency of 2300mhz, and a Release date of q3 2008 and a Model num... | SELECT multi_1 FROM table_name_7 WHERE frequency = "2300mhz" AND release_date = "q3 2008" AND model_number = "turion x2 ultra zm-84" |
### Instruction:
CREATE TABLE table_15922 (
"Country ( exonym )" text,
"Capital ( exonym )" text,
"Country ( endonym )" text,
"Capital ( endonym )" text,
"Official or native language(s) (alphabet/script)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Country ( exonym )" FROM table_15922 WHERE "Country ( endonym )" = 'Isle of Man Ellan Vannin' |
### Instruction:
CREATE TABLE table_29459 (
"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 "Outgoing manager" FROM table_29459 WHERE "Manner of departure" = 'Sacked' AND "Position in table" = '15th' |
### Instruction:
CREATE TABLE table_5272 (
"Order Year" text,
"Manufacturer" text,
"Model" text,
"Fleet (Qty.)" text,
"Propulsion" text,
"Length (ft.)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Propulsion for the model offered i... | SELECT "Propulsion" FROM table_5272 WHERE "Order Year" = '2003-2004' AND "Manufacturer" = 'neoplan usa' |
### Instruction:
CREATE TABLE table_29218221_3 (
wed_1_june VARCHAR,
thurs_2_june VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Wednesday, June 1 practice time for the rider that did 21' 05.87 107.300mph on Thursday, June 2?
### Response:
| SELECT wed_1_june FROM table_29218221_3 WHERE thurs_2_june = "21' 05.87 107.300mph" |
### Instruction:
CREATE TABLE table_21457 (
"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_21457 WHERE "High assists" = 'Rafer Alston (10)' |
### Instruction:
CREATE TABLE table_15040 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the latest year that a Bardahl entrant had a Kurtis Kraft 500c chassis with no m... | SELECT MAX("Year") FROM table_15040 WHERE "Chassis" = 'kurtis kraft 500c' AND "Entrant" = 'bardahl' AND "Points" < '0' |
### Instruction:
CREATE TABLE table_9622 (
"School Name" text,
"Start" text,
"School District" text,
"Year Open" real,
"2012 Enrolment" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE HIGHEST 2012 ENROLLMENT FOR cole mathieu-martin, AFTER... | SELECT MAX("2012 Enrolment") FROM table_9622 WHERE "School Name" = 'école mathieu-martin' AND "Year Open" > '1972' |
### Instruction:
CREATE TABLE table_47847 (
"Name" text,
"Chinese" text,
"Hanyu Pinyin" text,
"Wade\u2013Giles" text,
"Hokkien Pe\u030dh-\u014de-j\u012b" text,
"English meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Hanyu Pinyin is... | SELECT "Hanyu Pinyin" FROM table_47847 WHERE "Name" = 'jinning township' |
### Instruction:
CREATE TABLE table_48574 (
"Position" real,
"Driver / Passenger" text,
"Equipment" text,
"Bike No" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Points, when Position is less than 4, when Equipmen... | SELECT MAX("Points") FROM table_48574 WHERE "Position" < '4' AND "Equipment" = 'zabel - vmc' AND "Bike No" < '1' |
### Instruction:
CREATE TABLE table_57595 (
"Name" text,
"Country" text,
"Type" text,
"Moving from" text,
"Transfer window" text,
"Ends" real,
"Transfer fee" text,
"Source" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is henry tra... | SELECT "Transfer fee" FROM table_57595 WHERE "Source" = 'fcbarcelona.cat' AND "Country" = 'fra' AND "Name" = 'henry' |
### Instruction:
CREATE TABLE table_71736 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"9:30" text,
"10:00" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is on at 7:30 when k-ville is on at 9:00 on that channel?
... | SELECT "7:30" FROM table_71736 WHERE "9:00" = 'k-ville' |
### Instruction:
CREATE TABLE table_56252 (
"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.
-- Which date has a Crowd greater ... | SELECT "Date" FROM table_56252 WHERE "Crowd" > '28,000' AND "Home team" = 'geelong' |
### Instruction:
CREATE TABLE table_77623 (
"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.
-- Name the home team score for la... | SELECT "Home team score" FROM table_77623 WHERE "Crowd" > '11,918' AND "Venue" = 'windy hill' |
### Instruction:
CREATE TABLE table_name_16 (
probate_activities VARCHAR,
regulator VARCHAR,
notarial_activities VARCHAR,
conduct_of_litigation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Probate Activities, when Notarial Activities is No,... | SELECT probate_activities FROM table_name_16 WHERE notarial_activities = "no" AND conduct_of_litigation = "yes" AND regulator = "association of law costs draftsmen" |
### Instruction:
CREATE TABLE table_name_91 (
most_spoken_language VARCHAR,
population VARCHAR,
code VARCHAR,
area__km_2__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Most Spoken language in the Place with Code 70403 with an Area (km 2... | SELECT most_spoken_language FROM table_name_91 WHERE code > 70403 AND area__km_2__ > 3.79 AND population > 73 OFFSET 283 |
### Instruction:
CREATE TABLE table_73950 (
"Name" text,
"Turbines" text,
"Capacity (MW)" text,
"Power (MW\u00b7hr/yr)" text,
"Location (county)" text,
"Year Operational" real,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What yea... | SELECT MIN("Year Operational") FROM table_73950 WHERE "Location (county)" = 'Fayette' AND "Capacity (MW)" = '46' |
### Instruction:
CREATE TABLE table_16153 (
"Country" text,
"Membership (from 2010)" real,
"Name of member organization" text,
"Year current Scouting organization joined WOSM" text,
"Year member organization was founded" text,
"Admits boys/girls" text
)
-- Using valid SQLite, answer the follow... | SELECT "Admits boys/girls" FROM table_16153 WHERE "Name of member organization" = 'The Scout Association of Hong Kong' |
### Instruction:
CREATE TABLE table_72561 (
"Rank" text,
"Common of" text,
"Population" real,
"Area (km 2 )" text,
"Density (inhabitants/km 2 )" text,
"Altitude (mslm)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the density of the co... | SELECT "Density (inhabitants/km 2 )" FROM table_72561 WHERE "Area (km 2 )" = '20.4' |
### Instruction:
CREATE TABLE table_204_175 (
id number,
"pos" text,
"no." number,
"driver" text,
"team" text,
"laps" number,
"time/retired" text,
"grid" number,
"laps led" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT 159 > (SELECT "laps" FROM table_204_175 WHERE "driver" = 'townsend bell') |
### Instruction:
CREATE TABLE table_16447 (
"1973 Democratic initial primary" 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 provided a... | SELECT "1973 Democratic initial primary" FROM table_16447 WHERE "Queens" = '19%' |
### Instruction:
CREATE TABLE table_name_10 (
recopa_sudamericana_1996 VARCHAR,
copa_conmebol_1996 VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the recoupa sudaamericana 1996 result of team flamengo, which did not qualify for the ... | SELECT recopa_sudamericana_1996 FROM table_name_10 WHERE copa_conmebol_1996 = "did not qualify" AND team = "flamengo" |
### Instruction:
CREATE TABLE table_204_633 (
id number,
"launch date" text,
"operator" text,
"name" text,
"sample origin" text,
"samples returned" text,
"recovery date" text,
"mission result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "name" FROM table_204_633 WHERE id = (SELECT id FROM table_204_633 WHERE "name" = 'cosmos 300') - 1 |
### Instruction:
CREATE TABLE table_name_87 (
round INTEGER,
event VARCHAR,
location VARCHAR,
method VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Round with the Location, Las Vegas, Nevada, the Method, Decision (unanimous), and t... | SELECT MIN(round) FROM table_name_87 WHERE location = "las vegas, nevada" AND method = "decision (unanimous)" AND event = "k-1 world grand prix 2003 in las vegas ii" |
### Instruction:
CREATE TABLE table_37063 (
"Driver" text,
"Entries" real,
"Points" real,
"Average points per race entered" real,
"Average pre-2010" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest average points per race of the dr... | SELECT MAX("Average points per race entered") FROM table_37063 WHERE "Points" < '969' AND "Average pre-2010" < '0' |
### Instruction:
CREATE TABLE table_204_568 (
id number,
"pennant" text,
"name" text,
"hull builder" text,
"ordered" text,
"laid down" text,
"launched" text,
"accepted into service" text,
"commissioned" text,
"est. building cost" text,
"fate" text
)
-- Using valid SQLite, a... | SELECT COUNT(*) FROM table_204_568 WHERE "laid down" = 9 |
### Instruction:
CREATE TABLE table_50872 (
"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 "High points" FROM table_50872 WHERE "Location Attendance" = 'philips arena 14,413' |
### Instruction:
CREATE TABLE table_71504 (
"Member countries" text,
"Population" text,
"Area (km\u00b2)" text,
"GDP (billion US$)" text,
"GDP per capita (US$)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the area of the nation with GDP p... | SELECT "Area (km\u00b2)" FROM table_71504 WHERE "GDP per capita (US$)" = '11,929' |
### Instruction:
CREATE TABLE table_28701 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT COUNT("Original air date") FROM table_28701 WHERE "U.S. viewers (millions)" = '3.2' |
### Instruction:
CREATE TABLE table_60891 (
"Team" text,
"Club home city" text,
"2006\u201307 Season" text,
"Stadium" text,
"Stadium capacity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Stadium, when Stadium Capacity is '10,000', and whe... | SELECT "Stadium" FROM table_60891 WHERE "Stadium capacity" = '10,000' AND "Team" = 'kf drita' |
### Instruction:
CREATE TABLE table_36940 (
"Province" text,
"Prefecture" text,
"County" text,
"Tujia Population" real,
"% of China's Tujia Population" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which province has a prefecture of Xiangxi with 0.... | SELECT "Province" FROM table_36940 WHERE "Prefecture" = 'xiangxi' AND "% of China's Tujia Population" = '0.81%' |
### Instruction:
CREATE TABLE table_name_40 (
cardinalatial_title VARCHAR,
elector VARCHAR,
elevated VARCHAR,
place_of_birth VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Cardinalatial Title has the Elevated of December 18, 1182, the Plac... | SELECT cardinalatial_title FROM table_name_40 WHERE elevated = "december 18, 1182" AND place_of_birth = "lucca" AND elector = "pandolfo" |
### Instruction:
CREATE TABLE table_57717 (
"Rd #" real,
"Pick #" real,
"Player" text,
"Reg GP" real,
"Pl GP" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum number of Pl GP when the Reg GP was 0, the Rd number was bigger than 8, and ... | SELECT COUNT("Pl GP") FROM table_57717 WHERE "Reg GP" = '0' AND "Rd #" > '8' AND "Pick #" > '146' |
### Instruction:
CREATE TABLE table_15091 (
"Tournament" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2012 value with A in 2010 at the Tournament of Wimbledon?
### ... | SELECT "2012" FROM table_15091 WHERE "2010" = 'a' AND "Tournament" = 'wimbledon' |
### Instruction:
CREATE TABLE table_28694 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "U.S. viewers (millions)" FROM table_28694 WHERE "Title" = 'Helen Back Again' |
### Instruction:
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
-- Using valid SQLite, answer the follo... | SELECT Type, COUNT(Type) FROM ship GROUP BY Type ORDER BY COUNT(Type) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.