instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_204_446 (
id number,
"country" text,
"alternante title" text,
"tv network(s)" text,
"series premiere" text,
"series finale" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in france the premeire was on septembe... | SELECT "country" FROM table_204_446 WHERE "series premiere" = 'september 23, 2013' AND "country" <> 'france' |
### Instruction:
CREATE TABLE table_204_400 (
id number,
"district" number,
"senator" text,
"party" text,
"caucus" text,
"first elected" number,
"counties represented" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- do the republicans have th... | SELECT (SELECT COUNT(*) FROM table_204_400 WHERE "party" = 'republican') = (SELECT COUNT(*) FROM table_204_400 WHERE "party" = 'democratic') |
### Instruction:
CREATE TABLE table_65738 (
"Place" text,
"Code" real,
"Area (km 2 )" real,
"Population" real,
"Most spoken language" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the population with a code more than 90902 and an area less t... | SELECT MIN("Population") FROM table_65738 WHERE "Code" > '90902' AND "Area (km 2 )" < '1,335.47' |
### Instruction:
CREATE TABLE table_name_68 (
type VARCHAR,
etymology VARCHAR,
number_of_bearers_2008 VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Type, when Number of Bearers 2008 is greater than 12.376, when Rank is greater ... | SELECT type FROM table_name_68 WHERE number_of_bearers_2008 > 12.376 AND rank > 3 AND etymology = "son of jens" |
### Instruction:
CREATE TABLE table_77281 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text,
"Local Time" text,
"AEDT Time" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "AEDT Time" FROM table_77281 WHERE "Away team" = 'collingwood' |
### Instruction:
CREATE TABLE table_16544 (
"Season" real,
"Grand FinalDate" text,
"WinningTeam" text,
"Score" text,
"LosingTeam" text,
"Location" text,
"GF Attendance" real,
"Clive Churchill Medal" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT COUNT("GF Attendance") FROM table_16544 WHERE "Location" = 'Sydney Football Stadium, Sydney (6)' |
### Instruction:
CREATE TABLE table_203_237 (
id number,
"n" number,
"p" text,
"nat." text,
"name" text,
"age" number,
"moving from" text,
"type" text,
"transfer\nwindow" text,
"ends" number,
"transfer\nfee" text
)
-- Using valid SQLite, answer the following questions for t... | SELECT "moving from" FROM table_203_237 WHERE "name" = 'henning berg' |
### Instruction:
CREATE TABLE table_64198 (
"Province" text,
"Inhabitants" real,
"established" real,
"President" text,
"Party" text,
"Election" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest election result for President Leon... | SELECT MIN("Election") FROM table_64198 WHERE "President" = 'leonardo marras' AND "Inhabitants" < '227,063' |
### Instruction:
CREATE TABLE table_58946 (
"Binary" real,
"Octal" real,
"Decimal" real,
"Hexadecimal" real,
"Glyph" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average hexadecimal with a decimal less than 53, an octal less than 61, a... | SELECT AVG("Hexadecimal") FROM table_58946 WHERE "Decimal" < '53' AND "Octal" < '61' AND "Glyph" > '0' |
### Instruction:
CREATE TABLE table_42529 (
"Season" real,
"Division" text,
"Wins" real,
"Losses" real,
"Ties" real,
"Final Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the average amount of ties had when a t... | SELECT AVG("Ties") FROM table_42529 WHERE "Wins" = '6' AND "Season" > '2004' |
### Instruction:
CREATE TABLE table_22733 (
"State and District of Columbia" text,
"Obese adults" text,
"Overweight (incl. obese) adults" text,
"Obese children and adolescents" text,
"Obesity rank" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How ... | SELECT COUNT("State and District of Columbia") FROM table_22733 WHERE "Overweight (incl. obese) adults" = '65.4%' |
### Instruction:
CREATE TABLE table_45488 (
"Name" text,
"Gain" real,
"Loss" real,
"Long" real,
"Avg/G" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest long with an avg/G more than -2.2 and a total name and a gain of more than 2,48... | SELECT MIN("Long") FROM table_45488 WHERE "Avg/G" > '-2.2' AND "Name" = 'total' AND "Gain" > '2,488' |
### Instruction:
CREATE TABLE table_78990 (
"Model" text,
"Chassis" real,
"Engine" real,
"Year From" real,
"Year To" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many engines have a Model of sl600, and a Year From of 1994, and a Year To smalle... | SELECT COUNT("Engine") FROM table_78990 WHERE "Model" = 'sl600' AND "Year From" = '1994' AND "Year To" < '1995' |
### Instruction:
CREATE TABLE payment (
customer_id VARCHAR
)
CREATE TABLE customer (
first_name VARCHAR,
last_name VARCHAR,
customer_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which customer, who has made at least one payment, has spent the ... | SELECT T1.first_name, T1.last_name, T1.customer_id FROM customer AS T1 JOIN payment AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id ORDER BY SUM(amount) LIMIT 1 |
### Instruction:
CREATE TABLE table_67346 (
"Poll source" text,
"Date(s) administered" text,
"Sample size" text,
"Margin of error" text,
"Jerry Brown (D)" text,
"Meg Whitman (R)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people wer... | SELECT "Sample size" FROM table_67346 WHERE "Date(s) administered" = 'june 30, 2010' |
### Instruction:
CREATE TABLE table_22566 (
"Position" real,
"Team" text,
"Played" real,
"Wins" real,
"Draws P.K. Wins / P.K. Losses" text,
"Losses" real,
"Scored" real,
"Conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "Losses" FROM table_22566 WHERE "Team" = 'Tembetary' |
### Instruction:
CREATE TABLE table_49365 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Rider, when Grid is less than 16, when Manufacturer is Aprilia, and when Time ... | SELECT "Rider" FROM table_49365 WHERE "Grid" < '16' AND "Manufacturer" = 'aprilia' AND "Time" = '+28.288' |
### Instruction:
CREATE TABLE nuclear_power_plants (
id text,
name text,
latitude text,
longitude text,
country text,
status text,
reactortype text,
reactormodel text,
constructionstartat text,
operationalfrom text,
operationalto text,
capacity text,
lastupdatedat tex... | SELECT longitude, latitude FROM nuclear_power_plants WHERE reactortype = "BWR" ORDER BY constructionstartat LIMIT 1 |
### Instruction:
CREATE TABLE table_204_10 (
id number,
"ecclesiastical jurisdictions" text,
"latin name" text,
"type" text,
"rite" text,
"ecclesiastical province" text,
"established" text,
"area (km2)" number
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT present_ref - "established" FROM table_204_10 WHERE "ecclesiastical jurisdictions" = 'barahona' |
### Instruction:
CREATE TABLE list (
lastname text,
firstname text,
grade number,
classroom number
)
CREATE TABLE teachers (
lastname text,
firstname text,
classroom number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which are the first and l... | SELECT T1.firstname, T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "MARROTTE" AND T2.lastname = "KIRK" |
### Instruction:
CREATE TABLE department (
department_id number,
name text,
creation text,
ranking number,
budget_in_billions number,
num_employees number
)
CREATE TABLE management (
department_id number,
head_id number,
temporary_acting text
)
CREATE TABLE head (
head_id numbe... | SELECT creation, name, budget_in_billions FROM department |
### Instruction:
CREATE TABLE table_36656 (
"Pick #" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the Player that shows t... | SELECT "Player" FROM table_36656 WHERE "NHL team" = 'new york rangers' AND "Pick #" = '31' |
### Instruction:
CREATE TABLE table_74810 (
"Rank" real,
"Mountain Pass" text,
"Elevation" text,
"Surface" text,
"Route" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Route is the mountain with a Rank less than 33 and an Elevation of 11,312... | SELECT MAX("Route") FROM table_74810 WHERE "Rank" < '33' AND "Elevation" = '11,312 feet 3448 m' |
### Instruction:
CREATE TABLE table_2596 (
"Year" text,
"Day" text,
"Date" text,
"Driver" text,
"Team" text,
"Manufacturer" text,
"Laps" text,
"Miles (km)" text,
"Race Time" text,
"Average Speed (mph)" text,
"Report" text
)
-- Using valid SQLite, answer the following questi... | SELECT "Year" FROM table_2596 WHERE "Team" = 'Leo Jackson Racing' |
### Instruction:
CREATE TABLE table_72440 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- W... | SELECT "Written by" FROM table_72440 WHERE "U.S. viewers (millions)" = '1.83' |
### Instruction:
CREATE TABLE table_46098 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text,
"Losing bonus" text,
"Points" text
)
-- Using valid SQLite, answer the foll... | SELECT "Points" FROM table_46098 WHERE "Points for" = 'points for' |
### Instruction:
CREATE TABLE table_39279 (
"Dance" text,
"Best dancer(s)" text,
"Best score" text,
"Worst dancer(s)" text,
"Worst score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the dance that has priscilla presley is the worst dancer... | SELECT "Dance" FROM table_39279 WHERE "Worst dancer(s)" = 'priscilla presley' AND "Worst score" = '21' |
### Instruction:
CREATE TABLE table_22388 (
"Episode" text,
"Garfield Episode 1" text,
"U.S. Acres Episode" text,
"Garfield Episode 2" text,
"Original Airdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the first episode of Garfield titled Ro... | SELECT "U.S. Acres Episode" FROM table_22388 WHERE "Garfield Episode 1" = 'Robodie II' |
### Instruction:
CREATE TABLE table_10739 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Leading scorer with a Visitor of grizzlies, and with a... | SELECT "Leading scorer" FROM table_10739 WHERE "Visitor" = 'grizzlies' AND "Score" = '114–111' |
### Instruction:
CREATE TABLE table_23497 (
"Ostrich" text,
"Hamerkop" text,
"Hadeda Ibis" text,
"African Spoonbill" text,
"Whitefaced Duck" text,
"Knobbilled Duck" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Hadeda Ibis when the ... | SELECT "Hadeda Ibis" FROM table_23497 WHERE "Whitefaced Duck" = 'Blacksmith Plover' |
### Instruction:
CREATE TABLE accounts (
custid number,
name text
)
CREATE TABLE savings (
custid number,
balance number
)
CREATE TABLE checking (
custid number,
balance number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names, chec... | SELECT T2.balance, T3.balance, T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid |
### Instruction:
CREATE TABLE table_30511 (
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of the chosen club where t... | SELECT COUNT("Pick") FROM table_30511 WHERE "College/junior/club team" = 'HC Dukla Trenčín (Slovakia)' |
### Instruction:
CREATE TABLE table_20966 (
"Wicket" text,
"Runs" real,
"Batting partners" text,
"Batting team" text,
"Fielding team" text,
"Venue" text,
"Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the venue for batting p... | SELECT "Venue" FROM table_20966 WHERE "Batting partners" = 'Mahela Jayawardene and Prasanna Jayawardene' |
### Instruction:
CREATE TABLE table_64963 (
"Rank" real,
"Name" text,
"1st run" text,
"2nd run" text,
"3rd run" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a 1st run of 53.300 (7), and greater than 21 total, what is the ave... | SELECT AVG("Rank") FROM table_64963 WHERE "1st run" = '53.300 (7)' AND "Total" > '21' |
### Instruction:
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following ... | SELECT Name, Revenue FROM Manufacturers ORDER BY Revenue DESC |
### Instruction:
CREATE TABLE table_73702 (
"Name" text,
"Nation" text,
"Seasons" text,
"Championship titles" text,
"Races (Starts)" text,
"Poles" real,
"Wins" real,
"Podiums" real,
"Fastest Laps" real,
"Points (Dropped points)" text
)
-- Using valid SQLite, answer the followin... | SELECT "Seasons" FROM table_73702 WHERE "Wins" = '7' |
### Instruction:
CREATE TABLE table_28719 (
"Monarch" text,
"Heir" text,
"Status" text,
"Relationship to Monarch" text,
"Became heir; reason" text,
"Ceased to be heir; reason" text,
"Next in succession" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT "Became heir; reason" FROM table_28719 WHERE "Heir" = 'Hsinbyushin' |
### Instruction:
CREATE TABLE rating (
rid number,
mid number,
stars number,
ratingdate time
)
CREATE TABLE reviewer (
rid number,
name text
)
CREATE TABLE movie (
mid number,
title text,
year number,
director text
)
-- Using valid SQLite, answer the following questions for t... | SELECT T2.title, T2.year FROM rating AS T1 JOIN movie AS T2 ON T1.mid = T2.mid ORDER BY T1.stars DESC LIMIT 3 |
### Instruction:
CREATE TABLE table_204_177 (
id number,
"player" text,
"years played" text,
"total w-l" text,
"singles w-l" text,
"doubles w-l" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who had a better singles record , boo kil or seung bo... | SELECT "player" FROM table_204_177 WHERE "player" IN ('choi boo-kil', 'baek seung-bok') ORDER BY "singles w-l" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_61372 (
"Name" text,
"Street address" text,
"Years as tallest" text,
"Height ft (m)" text,
"Floors" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Name of the Building with 36 or more Floors with Years... | SELECT "Name" FROM table_61372 WHERE "Floors" > '36' AND "Years as tallest" = '1986–1992' |
### Instruction:
CREATE TABLE table_73772 (
"June 10-11" text,
"March 27-29" text,
"January 15-16" text,
"November 3" text,
"August 21-22" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number for march 27-29 whern november 3 is 153?
#... | SELECT "March 27-29" FROM table_73772 WHERE "November 3" = '153' |
### 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.
-- who did the tiger... | SELECT "opponent#" FROM table_204_858 WHERE "result" = 'w' ORDER BY "date" LIMIT 1 |
### Instruction:
CREATE TABLE table_48973 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" text,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If 1967 is the winning year and a player has a total recorded as wd with a To par un... | SELECT "Player" FROM table_48973 WHERE "Total" = 'wd' AND "To par" < '16' AND "Year(s) won" = '1967' |
### Instruction:
CREATE TABLE table_204_474 (
id number,
"year" number,
"host" text,
"champion" text,
"second place" text,
"third place" text,
"fourth place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- previous third place finisher before... | SELECT "third place" FROM table_204_474 WHERE "year" < (SELECT "year" FROM table_204_474 WHERE "third place" = 'jt marvelous') ORDER BY "year" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_5678 (
"County" text,
"Per capita income" text,
"Median household income" text,
"Median family income" text,
"Population" real,
"Number of households" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the po... | SELECT SUM("Number of households") FROM table_5678 WHERE "Population" > '146,445' AND "County" = 'carroll' |
### Instruction:
CREATE TABLE table_23690 (
"Club" text,
"Played" text,
"Won" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Bonus Points" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the ... | SELECT "Club" FROM table_23690 WHERE "Bonus Points" = 'Bonus Points' |
### Instruction:
CREATE TABLE people (
People_ID int,
Sex text,
Name text,
Date_of_Birth text,
Height real,
Weight real
)
CREATE TABLE candidate (
Candidate_ID int,
People_ID int,
Poll_Source text,
Date text,
Support_rate real,
Consider_rate real,
Oppose_rate real,
... | SELECT People_ID, Weight FROM people |
### Instruction:
CREATE TABLE table_name_60 (
wins INTEGER,
goals_conceded VARCHAR,
club VARCHAR,
points VARCHAR,
goals_scored VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the club Minija Kretinga, what's the lowest number of wins with poin... | SELECT MIN(wins) FROM table_name_60 WHERE points < 25 AND goals_scored = 22 AND club = "minija kretinga" AND goals_conceded < 39 |
### Instruction:
CREATE TABLE table_74705 (
"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 "Rim diameter" FROM table_74705 WHERE "Neck diameter" = '11.84 (.466)' |
### Instruction:
CREATE TABLE table_26500 (
"Municipality" text,
"No. of Barangays" real,
"Area Coordinator" text,
"Population (2010)" real,
"Pop. density (per km\u00b2)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the area coordinator for... | SELECT "Area Coordinator" FROM table_26500 WHERE "Population (2010)" = '1715' |
### Instruction:
CREATE TABLE table_28673 (
"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 "Title" FROM table_28673 WHERE "Production code" = '6AJN08' |
### Instruction:
CREATE TABLE table_79496 (
"Athlete" text,
"Nationality" text,
"2.15" text,
"2.20" text,
"2.25" text,
"Result" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which athlete from Brazil has 2.20 O and 2.25 of XXX?
### Response:
| SELECT "Athlete" FROM table_79496 WHERE "2.20" = 'o' AND "2.25" = 'xxx' AND "Nationality" = 'brazil' |
### Instruction:
CREATE TABLE table_203_466 (
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.
-- what is the difference in medals between cuba an... | SELECT (SELECT "total" FROM table_203_466 WHERE "nation" = 'cuba') - (SELECT "total" FROM table_203_466 WHERE "nation" = 'mexico') |
### Instruction:
CREATE TABLE table_23120 (
"Fleet #" text,
"Year" real,
"Manufacture" text,
"Model" text,
"Length (ft)" real,
"Engine" text,
"Transmission" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year had a transmission of Voit... | SELECT "Year" FROM table_23120 WHERE "Transmission" = 'Voith D863.4' AND "Engine" = 'Cummins ISM' |
### Instruction:
CREATE TABLE table_57071 (
"Grand Prix" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wha... | SELECT "Report" FROM table_57071 WHERE "Winning Driver" = 'ayrton senna' AND "Date" = '27 august' |
### Instruction:
CREATE TABLE table_74631 (
"Club" text,
"Total points" text,
"Bonus points" text,
"Match points" text,
"Games" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Diff" text
)
-- Using valid SQLite, answer the following questions for the... | SELECT "Games" FROM table_74631 WHERE "Match points" = '34' |
### Instruction:
CREATE TABLE table_21405 (
"Province" text,
"South Asians 2001" real,
"% 2001" text,
"South Asians 2011" real,
"% 2011" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the percentage in 2011 of the province that had 2.4% pop... | SELECT "% 2011" FROM table_21405 WHERE "% 2001" = '2.4%' |
### Instruction:
CREATE TABLE table_75988 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What tournament had a victory of a 1 stroke margin and the fina... | SELECT "Tournament" FROM table_75988 WHERE "Margin of victory" = '1 stroke' AND "Winning score" = '69-75-71-70' |
### Instruction:
CREATE TABLE table_name_23 (
name VARCHAR,
casualties VARCHAR,
sunk_by… VARCHAR,
date VARCHAR,
nationality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the ship sunk on 5 May 1943 from the United Kingdom sun... | SELECT name FROM table_name_23 WHERE date = "5 may 1943" AND nationality = "united kingdom" AND sunk_by… = "u-266" AND casualties = "0" |
### Instruction:
CREATE TABLE table_3672 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Story by" text,
"Teleplay by" text,
"Original air date" text,
"U.S. viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... | SELECT "Directed by" FROM table_3672 WHERE "U.S. viewers (millions)" = '0.54' |
### Instruction:
CREATE TABLE table_30983 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times has the score been 6 4, 3 6,... | SELECT COUNT("Opponent") FROM table_30983 WHERE "Score" = '6–4, 3–6, [11–13]' |
### Instruction:
CREATE TABLE table_204_811 (
id number,
"year" number,
"ring name\n(birth name)" text,
"inducted by" text,
"inducted for" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- bob caudle was an announcer , who was the oth... | SELECT "ring name\n(birth name)" FROM table_204_811 WHERE "ring name\n(birth name)" <> 'bob caudle' AND "inducted for" = 'announcing' |
### Instruction:
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following ... | SELECT Name, COUNT(Name) FROM Products GROUP BY Name ORDER BY Name DESC |
### Instruction:
CREATE TABLE table_16485 (
"Trim" text,
"Engine" text,
"Turbo" text,
"Fuel Delivery" text,
"Power" text,
"Torque" text,
"Transmission" text,
"Performance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the fuel de... | SELECT "Fuel Delivery" FROM table_16485 WHERE "Power" = 'hp (kW) @6500 rpm' |
### Instruction:
CREATE TABLE table_33536 (
"Network" text,
"Origin of Programming" text,
"Language" text,
"Genre" text,
"Service" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which language has Programming from India, general genre, a network of ... | SELECT "Language" FROM table_33536 WHERE "Origin of Programming" = 'india' AND "Genre" = 'general' AND "Network" = 'ptc punjabi' AND "Service" = 'bell fibe tv' |
### Instruction:
CREATE TABLE college (
college_id number,
name text,
leader_name text,
college_location text
)
CREATE TABLE member (
member_id number,
name text,
country text,
college_id number
)
CREATE TABLE round (
round_id number,
member_id number,
decoration_theme text... | SELECT name FROM member WHERE NOT member_id IN (SELECT member_id FROM round) |
### Instruction:
CREATE TABLE table_2109 (
"Rnd." real,
"Circuit" text,
"LMP1 Winning Team" text,
"LMP2 Winning Team" text,
"GT1 Winning Team" text,
"GT2 Winning Team" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When no.55... | SELECT "Results" FROM table_2109 WHERE "GT1 Winning Team" = 'No.55 IPB Spartak Racing' |
### Instruction:
CREATE TABLE table_203_865 (
id number,
"place" number,
"athlete" text,
"nation" text,
"best mark" text,
"throw 1" number,
"throw 2" number,
"throw 3" number,
"throw 4" number,
"throw 5" number,
"throw 6" number
)
-- Using valid SQLite, answer the following... | SELECT "athlete" FROM table_203_865 ORDER BY "place" LIMIT 1 |
### 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 COUNT("date") FROM table_204_651 WHERE "prev. points" >= 100 |
### Instruction:
CREATE TABLE festival_detail (
Festival_ID int,
Festival_Name text,
Chair_Name text,
Location text,
Year int,
Num_of_Audience int
)
CREATE TABLE nomination (
Artwork_ID int,
Festival_ID int,
Result text
)
CREATE TABLE artwork (
Artwork_ID int,
Type text,
... | SELECT Type, COUNT(*) FROM artwork GROUP BY Type ORDER BY Type |
### Instruction:
CREATE TABLE table_9496 (
"Year" real,
"Gross Domestic Product" real,
"US Dollar Exchange" text,
"Inflation Index (2000=100)" real,
"Per Capita Income (as % of USA)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year before 19... | SELECT MAX("Inflation Index (2000=100)") FROM table_9496 WHERE "Year" < '1980' |
### Instruction:
CREATE TABLE table_73783 (
"Song" text,
"Singer" text,
"Co-Singers" text,
"Music Director" text,
"Lyricist" text,
"Co-Stars" text,
"Movie/Album" text,
"Year" real,
"Additional Info" text
)
-- Using valid SQLite, answer the following questions for the tables provide... | SELECT "Movie/Album" FROM table_73783 WHERE "Co-Stars" = 'Bela Bose' |
### Instruction:
CREATE TABLE table_59372 (
"Station" text,
"Distance from Wellington" text,
"Height above sea level (m)" text,
"Opened" real,
"Closed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the height above sea level for the station... | SELECT "Height above sea level (m)" FROM table_59372 WHERE "Opened" < '1887' AND "Distance from Wellington" = '175.67km' |
### Instruction:
CREATE TABLE table_29609 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"First Star" text,
"Decision" text,
"Location" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "Date" FROM table_29609 WHERE "Record" = '27-28-11' |
### Instruction:
CREATE TABLE table_13321 (
"Debut year" real,
"Player" text,
"Games" real,
"Goals" real,
"Years at club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the debut year for the player with fewer than 54 games, fewer than 8 goa... | SELECT AVG("Debut year") FROM table_13321 WHERE "Games" < '54' AND "Years at club" = '1989' AND "Goals" < '8' |
### Instruction:
CREATE TABLE payment (
payment_date VARCHAR,
staff_id VARCHAR
)
CREATE TABLE staff (
staff_id VARCHAR,
first_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find all the payment dates for the payments with an amount larger than ... | SELECT payment_date FROM payment WHERE amount > 10 UNION SELECT T1.payment_date FROM payment AS T1 JOIN staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = 'Elsa' |
### Instruction:
CREATE TABLE table_25231 (
"Rnd" real,
"Date" text,
"Race Name" text,
"Length" text,
"Track" text,
"Location" text,
"Pole Position" text,
"Winning Driver" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what round did ... | SELECT MIN("Rnd") FROM table_25231 WHERE "Winning Driver" = 'Al Unser' AND "Track" = 'Wisconsin State Fair Park Speedway' |
### Instruction:
CREATE TABLE table_7888 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the sum of the points wh... | SELECT SUM("Points") FROM table_7888 WHERE "Attendance" = '8,000' AND "Date" = 'february 22' |
### Instruction:
CREATE TABLE table_12300 (
"Rank" real,
"Athlete" text,
"Taijiquan" real,
"Taijijian" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest rank of the athlete with a Taijiquan higher than 9.64 and a total... | SELECT MAX("Rank") FROM table_12300 WHERE "Taijiquan" > '9.64' AND "Total" > '19.69' |
### Instruction:
CREATE TABLE table_2640 (
"Party Name" text,
"States contested" real,
"Seats contested" real,
"Seats won" real,
"No. of Votes" real,
"% of Votes" text,
"% in Seats contested" text,
"Forfeited in seats" real
)
-- Using valid SQLite, answer the following questions for th... | SELECT MIN("States contested") FROM table_2640 WHERE "Party Name" = 'Apna Dal' |
### Instruction:
CREATE TABLE table_59323 (
"Constituency number" text,
"Name" text,
"Reserved for ( SC / ST /None)" text,
"District" text,
"Number of electorates (2009)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Number of electorates (20... | SELECT "Number of electorates (2009)" FROM table_59323 WHERE "Reserved for ( SC / ST /None)" = 'total:' |
### Instruction:
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
-- Using valid SQLite, answer the following ... | SELECT Name, SUM(Revenue) FROM Manufacturers GROUP BY Name ORDER BY Name DESC |
### Instruction:
CREATE TABLE table_27081 (
"Year" real,
"Engine" text,
"Power" text,
"Torque" text,
"Transmission" text,
"0\u2013100km/h (60mph)" text,
"Top speed" text,
"CO2" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- when co2 is 1... | SELECT "Power" FROM table_27081 WHERE "CO2" = '192g/km' |
### Instruction:
CREATE TABLE table_40055 (
"Club" text,
"Wins" real,
"Loses" real,
"Points For" real,
"Points Against" real,
"Percentage" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the least amount of points that... | SELECT MIN("Points") FROM table_40055 WHERE "Points For" > '438' AND "Points Against" > '943' |
### Instruction:
CREATE TABLE table_204_63 (
id number,
"round" number,
"circuit" text,
"date" text,
"pole position" text,
"winning driver" text,
"winning team" text,
"trophy winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who had... | SELECT "winning team" FROM table_204_63 WHERE "winning team" IN ('target racing', 'azeta racing') GROUP BY "winning team" ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_68154 (
"Place" text,
"Name" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place has a To par of +4 and a score of 74-70-74-74=292?
### ... | SELECT "Place" FROM table_68154 WHERE "To par" = '+4' AND "Score" = '74-70-74-74=292' |
### Instruction:
CREATE TABLE table_29817 (
"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_29817 WHERE "High rebounds" = 'JaVale McGee (5)' |
### Instruction:
CREATE TABLE table_19332 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" text,
"2nd (m)" text,
"Points" text,
"Overall WC points (Rank)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is shown for 2nd (m) if t... | SELECT "2nd (m)" FROM table_19332 WHERE "1st (m)" = '203.5' |
### Instruction:
CREATE TABLE table_name_22 (
red_list VARCHAR,
species_authority VARCHAR,
order VARCHAR,
family VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What red list is in the artiodactyla order and the cervidae family with a Species Authorit... | SELECT red_list FROM table_name_22 WHERE order = "artiodactyla" AND family = "cervidae" AND species_authority = "odocoileus virginianus zimmermann, 1780" |
### Instruction:
CREATE TABLE table_name_72 (
length__m_ INTEGER,
country VARCHAR,
maximum_grade___percentage_ VARCHAR,
vertical_drop__m_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the shortest length of a track in Norway that has a maxim... | SELECT MIN(length__m_) FROM table_name_72 WHERE maximum_grade___percentage_ = "15" AND vertical_drop__m_ < 122.22 AND country = "norway" |
### Instruction:
CREATE TABLE table_204_461 (
id number,
"res." text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"date" text,
"round" number,
"time" text,
"location" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT "time" FROM table_204_461 WHERE "opponent" = 'william richey' |
### Instruction:
CREATE TABLE table_69382 (
"Name" text,
"League" real,
"FA Cup" real,
"League Cup" real,
"Other" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Other, when the Name is Simon Gillett Category:Arti... | SELECT SUM("Other") FROM table_69382 WHERE "Name" = 'simon gillett category:articles with hcards' AND "Total" < '34' |
### Instruction:
CREATE TABLE table_29977 (
"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 (million)" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "Production code" FROM table_29977 WHERE "No. in series" = '55' |
### Instruction:
CREATE TABLE table_33928 (
"Model Number" text,
"Stepping" text,
"Frequency" text,
"L2 Cache" text,
"Multi 1" text,
"V Core" text,
"Socket" text,
"Release Date" text,
"Part Number(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provi... | SELECT "Frequency" FROM table_33928 WHERE "Multi 1" = '7.5×' |
### Instruction:
CREATE TABLE table_203_391 (
id number,
"season" text,
"greek league" text,
"greek cup" text,
"europe" text,
"coach" text,
"roster" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was on the roster from 1969 - 1976 ? and ... | SELECT DISTINCT "roster" FROM table_203_391 WHERE "season" >= 1969 AND "season" <= 1976 |
### Instruction:
CREATE TABLE table_11663 (
"Order" real,
"Name" text,
"Seasons" text,
"Games" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which game has an order larger than 975, Seasons of 2005 2007, and 46 goals?
### Response:
| SELECT "Games" FROM table_11663 WHERE "Order" > '975' AND "Seasons" = '2005 – 2007' AND "Goals" = '46' |
### Instruction:
CREATE TABLE table_20001 (
"Year" text,
"Dates" text,
"Champion" text,
"Country" text,
"Score" text,
"Tournament location" text,
"Purse ($)" real,
"Winners share ($)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When a... | SELECT "Dates" FROM table_20001 WHERE "Score" = '205 (–8)' AND "Country" = 'Australia' |
### Instruction:
CREATE TABLE table_42002 (
"Office" text,
"Republican ticket" text,
"Democratic ticket" text,
"Liberal ticket" text,
"Conservative ticket" text,
"Socialist Workers ticket" text,
"Socialist Labor ticket" text
)
-- Using valid SQLite, answer the following questions for the t... | SELECT "Democratic ticket" FROM table_42002 WHERE "Socialist Labor ticket" = 'john emanuel' |
### Instruction:
CREATE TABLE table_204_828 (
id number,
"whitworth size (in)" number,
"core diameter (in)" number,
"threads per inch" number,
"pitch (in)" number,
"tapping drill size" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- does any whit... | SELECT "whitworth size (in)" FROM table_204_828 WHERE "tapping drill size" = 'number drill 26 (3.7 mm)' |
### Instruction:
CREATE TABLE table_65467 (
"Model" text,
"Years" text,
"Type/code" text,
"Power@rpm" text,
"Torque@rpm" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Torque@rpm has a Power@rpm of ps (kw; hp)@4800 5100?
### Response:
| SELECT "Torque@rpm" FROM table_65467 WHERE "Power@rpm" = 'ps (kw; hp)@4800–5100' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.