instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_40265 (
"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.
-- Which Position has an Against ... | SELECT MAX("Position") FROM table_40265 WHERE "Against" < '49' AND "Drawn" = '4' |
### Instruction:
CREATE TABLE table_50275 (
"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 rebounds" FROM table_50275 WHERE "High points" = 'chris bosh (18)' |
### Instruction:
CREATE TABLE table_22302 (
"Player" text,
"FCSL Team" text,
"Years Played" text,
"Year Drafted" real,
"Round" text,
"MLB Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 2006 is the year played and winter park is the fc... | SELECT "Player" FROM table_22302 WHERE "FCSL Team" = 'Winter Park' AND "Years Played" = '2006' |
### Instruction:
CREATE TABLE table_52837 (
"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 did the home team score in... | SELECT "Home team score" FROM table_52837 WHERE "Away team score" = '9.13 (67)' |
### Instruction:
CREATE TABLE table_203_465 (
id number,
"name" text,
"population (2002 census)" number,
"population (2007 estimation)" number,
"population (2011 census)" number,
"area (km2)" number,
"density (pop/km2)" number
)
-- Using valid SQLite, answer the following questions for the... | SELECT "name" FROM table_203_465 ORDER BY "density (pop/km2)" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_22681 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT "Date" FROM table_22681 WHERE "High rebounds" = 'Dydek (11)' |
### Instruction:
CREATE TABLE reservations (
code number,
room text,
checkin text,
checkout text,
rate number,
lastname text,
firstname text,
adults number,
kids number
)
CREATE TABLE rooms (
roomid text,
roomname text,
beds number,
bedtype text,
maxoccupancy num... | SELECT roomname FROM rooms ORDER BY baseprice |
### Instruction:
CREATE TABLE table_15219 (
"Field" text,
"Geological Trend" text,
"Reserves" text,
"Discovery" text,
"Operator(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Field has a Discovery of na, and an Operator(s) of woc, and a Ge... | SELECT "Field" FROM table_15219 WHERE "Discovery" = 'na' AND "Operator(s)" = 'woc' AND "Geological Trend" = 'western' |
### Instruction:
CREATE TABLE table_2425 (
"Name" text,
"Nationality" text,
"Position" text,
"Matches for NQF" text,
"Appearances" real,
"Goals" real,
"Yellow Cards" real,
"Red Cards" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the... | SELECT "Position" FROM table_2425 WHERE "Matches for NQF" = '2009' |
### Instruction:
CREATE TABLE table_name_62 (
seats INTEGER,
general_election VARCHAR,
share_of_votes VARCHAR,
share_of_seats VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Seats have a Share of votes of 18%, and a Share of seats of 3%, and a G... | SELECT MAX(seats) FROM table_name_62 WHERE share_of_votes = "18%" AND share_of_seats = "3%" AND general_election > 1992 |
### Instruction:
CREATE TABLE election (
Election_ID int,
Representative_ID int,
Date text,
Votes real,
Vote_Percent real,
Seats real,
Place real
)
CREATE TABLE representative (
Representative_ID int,
Name text,
State text,
Party text,
Lifespan text
)
-- Using valid SQ... | SELECT Party, COUNT(*) FROM representative GROUP BY Party ORDER BY COUNT(*) DESC |
### Instruction:
CREATE TABLE table_204_144 (
id number,
"represent" number,
"contestant" text,
"age" number,
"height" text,
"hometown" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which contestant is older , karol guevara or patricia de leon ... | SELECT "contestant" FROM table_204_144 WHERE "contestant" IN ('karol guevara', 'patricia de leon') ORDER BY "age" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_57250 (
"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 spectators were presen... | SELECT COUNT("Crowd") FROM table_57250 WHERE "Away team score" = '10.12 (72)' |
### Instruction:
CREATE TABLE table_15588 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Tries for" text,
"Tries against" text,
"Try bonus" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT "Drawn" FROM table_15588 WHERE "Tries for" = '51' |
### Instruction:
CREATE TABLE table_70574 (
"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 is the lowest number of Votes, w... | SELECT MIN("Votes") FROM table_70574 WHERE "Candidate's Name" = 'trevor ennis' |
### Instruction:
CREATE TABLE table_71026 (
"Nationality" text,
"Position" text,
"Real Betis career" text,
"Appearances" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which of Real Betis career had appearances smaller than 98, nationa... | SELECT "Real Betis career" FROM table_71026 WHERE "Appearances" < '98' AND "Nationality" = 'spain' AND "Goals" > '15' |
### Instruction:
CREATE TABLE table_12588 (
"Outcome" text,
"Date" text,
"Category" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Score of the tournament played o... | SELECT "Score" FROM table_12588 WHERE "Surface" = 'clay' AND "Opponent" = 'pablo martin-adalia' |
### Instruction:
CREATE TABLE table_78240 (
"Institution" text,
"City" text,
"State" text,
"Nickname" text,
"Joined" real,
"Conference championships" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the latest year joined with a Conference... | SELECT MAX("Joined") FROM table_78240 WHERE "Conference championships" = '5' AND "Institution" = 'university of north carolina' |
### Instruction:
CREATE TABLE products (
code number,
name text,
price number,
manufacturer number
)
CREATE TABLE manufacturers (
code number,
name text,
headquarter text,
founder text,
revenue number
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT COUNT(DISTINCT name) FROM products WHERE NOT name IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.manufacturer = T2.code WHERE T2.name = 'Sony') |
### Instruction:
CREATE TABLE table_36725 (
"Game" real,
"January" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which January is the lowest one that has an Opponent of florida panthe... | SELECT MIN("January") FROM table_36725 WHERE "Opponent" = 'florida panthers' AND "Points" < '59' |
### Instruction:
CREATE TABLE table_14288 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the week when attendance is more than 53,854 and the date is november 12, 1961?... | SELECT "Week" FROM table_14288 WHERE "Attendance" > '53,854' AND "Date" = 'november 12, 1961' |
### Instruction:
CREATE TABLE table_28750 (
"Episode number (Production number)" text,
"Title" text,
"Original air date" text,
"Total viewers on FX" text,
"Total viewers on FX+" text,
"Total viewers" text,
"Rank on channel" text
)
-- Using valid SQLite, answer the following questions for t... | SELECT "Total viewers on FX+" FROM table_28750 WHERE "Title" = 'Night on the Sun' |
### Instruction:
CREATE TABLE table_78542 (
"Tujunga" text,
"La Crescenta- Montrose" text,
"Glendale" text,
"La Ca\u00f1ada Flintridge" text,
"Pasadena" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Tujunga is moderate, what is La Crescenta-Mo... | SELECT "La Crescenta- Montrose" FROM table_78542 WHERE "Tujunga" = 'moderate' |
### Instruction:
CREATE TABLE table_19054 (
"Call sign" text,
"Frequency MHz" text,
"City of license" text,
"ERP W" real,
"Height m ( ft )" text,
"FCC info" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many height m ( ft ... | SELECT COUNT("Height m ( ft )") FROM table_19054 WHERE "Frequency MHz" = '100.1' |
### Instruction:
CREATE TABLE table_204_226 (
id number,
"municipality/communes" text,
"coalition for the citizen" text,
"coalition for the future" text,
"other/independent" text,
"winning party/coalition" text,
"voter turnout" text
)
-- Using valid SQLite, answer the following questions f... | SELECT COUNT(*) FROM table_204_226 WHERE "voter turnout" > 50 |
### Instruction:
CREATE TABLE table_72340 (
"Phase" text,
"Round" text,
"Clubs remaining" real,
"Clubs involved" real,
"Winners from previous round" text,
"New entries this round" text,
"Leagues entering at this round" text
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT COUNT("Clubs remaining") FROM table_72340 WHERE "New entries this round" = '8' |
### Instruction:
CREATE TABLE table_6298 (
"Player" text,
"Sacks" real,
"INT'S" real,
"Yards" real,
"Average" real,
"Long" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many INTs were there with an average less than 8, 0 long, and the playe... | SELECT COUNT("INT'S") FROM table_6298 WHERE "Average" < '8' AND "Long" = '0' AND "Player" = 'mike douglass' |
### Instruction:
CREATE TABLE table_name_41 (
loss VARCHAR,
long VARCHAR,
name VARCHAR,
gain VARCHAR,
avg_g VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of losses Jackson, T., who had more than 27 gain, an avg/g smaller... | SELECT COUNT(loss) FROM table_name_41 WHERE gain > 27 AND avg_g < 55.9 AND name = "jackson, t." AND long < 34 |
### Instruction:
CREATE TABLE table_202_28 (
id number,
"year" number,
"output growth rate %" number,
"unemployment rate %" number,
"inflation rate %" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what year saw the highest output growth rate in j... | SELECT "year" FROM table_202_28 WHERE "year" >= 1990 AND "year" <= 2004 ORDER BY "output growth rate %" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_17289604_38 (
quarterfinals VARCHAR,
round_of_32 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the quarterfinals in the round of 32 was S williams / V williams ( usa ) l 6 4, 5 7, 1 6?
### Response:
| SELECT quarterfinals FROM table_17289604_38 WHERE round_of_32 = "S Williams / V Williams ( USA ) L 6–4, 5–7, 1–6" |
### Instruction:
CREATE TABLE table_23032 (
"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.
-- N... | SELECT "Title" FROM table_23032 WHERE "U.S. viewers (millions)" = '18.29' |
### Instruction:
CREATE TABLE table_27791 (
"Stage" real,
"Winner" text,
"General Classification" text,
"Mountains Classification" text,
"Sprint Classification" text,
"Young Rider Classification" text,
"Team Classification" text,
"Aggressive Rider" text
)
-- Using valid SQLite, answer ... | SELECT "Young Rider Classification" FROM table_27791 WHERE "Winner" = 'Manuel Cardoso' |
### Instruction:
CREATE TABLE table_7063 (
"Institution" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Team Nickname" text,
"Primary conference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Enro... | SELECT COUNT("Enrollment") FROM table_7063 WHERE "Founded" = '1891' AND "Team Nickname" = 'coyotes' |
### Instruction:
CREATE TABLE table_72245 (
"#" real,
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Attendance" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the... | SELECT "Attendance" FROM table_72245 WHERE "Score" = 'L 92–101' |
### Instruction:
CREATE TABLE table_72039 (
"Code Name" text,
"Function (figure)" text,
"Real Name" text,
"Birthplace" text,
"Serial number" text,
"Primary military speciality" text,
"Secondary military speciality" text
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT "Real Name" FROM table_72039 WHERE "Function (figure)" = 'pilot of the silent attack kayak' |
### Instruction:
CREATE TABLE table_14286 (
"Wimmera FL" text,
"Wins" real,
"Byes" real,
"Losses" real,
"Draws" real,
"Against" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of byes for teams with against of 2139 and mo... | SELECT COUNT("Byes") FROM table_14286 WHERE "Against" = '2139' AND "Draws" > '0' |
### Instruction:
CREATE TABLE table_28304 (
"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 location that has a ... | SELECT "Location (Transmitter Site)" FROM table_28304 WHERE "Power kW (ERP)" = '5kW (10kW ERP)' |
### Instruction:
CREATE TABLE table_17575 (
"County" text,
"Live births 2006" real,
"GFR 2006" text,
"TFR 2006" text,
"Whites as % of Pop." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many live births were there in 2006 in South Yorkshire (me... | SELECT "Live births 2006" FROM table_17575 WHERE "County" = 'South Yorkshire (Met County)' |
### Instruction:
CREATE TABLE table_15294 (
"First game" real,
"Played" real,
"Drawn" real,
"Lost" real,
"Percentage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest number of games played when there was 2 losses, percentage was 0... | SELECT MAX("Played") FROM table_15294 WHERE "Lost" = '2' AND "Percentage" = '0.00%' AND "Drawn" > '0' |
### 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 "latin name" FROM table_204_10 WHERE "established" < 1900 |
### Instruction:
CREATE TABLE table_36497 (
"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 year was she on a 350cc class bike, ranked 16th, with over 0 wins?
### R... | SELECT SUM("Year") FROM table_36497 WHERE "Class" = '350cc' AND "Rank" = '16th' AND "Wins" > '0' |
### Instruction:
CREATE TABLE table_47928 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day was the score for tournament of alcoba a 6 3, 2 6, 7 5?
### R... | SELECT "Date" FROM table_47928 WHERE "Tournament" = 'alcobaça' AND "Score" = '6–3, 2–6, 7–5' |
### Instruction:
CREATE TABLE table_48888 (
"Team" text,
"Head coach" text,
"Team captain" text,
"Venue" text,
"Capacity" real,
"Kitmaker" text,
"Shirt sponsor" text,
"Club Chairman" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is... | SELECT "Team" FROM table_48888 WHERE "Venue" = 'şükrü saracoğlu stadium' |
### Instruction:
CREATE TABLE table_name_45 (
top_5 INTEGER,
starts VARCHAR,
year VARCHAR,
team_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the lowest top 5 when the year is after 1995, team(s) is #15 billy ballew motorsports, and start... | SELECT MIN(top_5) FROM table_name_45 WHERE year > 1995 AND team_s_ = "#15 billy ballew motorsports" AND starts > 4 |
### Instruction:
CREATE TABLE table_50759 (
"Class" text,
"Wheel arrangement" text,
"Fleet number(s)" text,
"Manufacturer" text,
"Year made" text,
"Quantity made" text,
"Quantity preserved" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What... | SELECT "Class" FROM table_50759 WHERE "Quantity made" = '1' AND "Fleet number(s)" = '406' |
### Instruction:
CREATE TABLE table_22055 (
"# s Dam and GNIS query Link" real,
"# s Lake and GNIS query Link" real,
"# s Reservoir and GNIS query Link" real,
"Borough or Census area" text,
"Comment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Ho... | SELECT MIN("# s Dam and GNIS query Link") FROM table_22055 WHERE "Borough or Census area" = 'Nome (CA)' |
### Instruction:
CREATE TABLE table_36752 (
"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.
-- How many Drawn have a Differen... | SELECT COUNT("Drawn") FROM table_36752 WHERE "Difference" = '3' AND "Points" < '52' |
### Instruction:
CREATE TABLE table_43875 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( \u00a3 )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Place of the Player with a Score of 68-73-66-74=2... | SELECT "Place" FROM table_43875 WHERE "Score" = '68-73-66-74=281' |
### Instruction:
CREATE TABLE table_204_983 (
id number,
"year" number,
"1st venue" text,
"2nd venue" text,
"3rd venue" text,
"4th venue" text,
"5th venue" text,
"6th venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which is the onl... | SELECT "year" FROM table_204_983 WHERE "2nd venue" = 'mexico city' |
### Instruction:
CREATE TABLE table_61013 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Tournament has an Outcome of runner-up, and a Score of 4 6, ... | SELECT "Tournament" FROM table_61013 WHERE "Outcome" = 'runner-up' AND "Score" = '4–6, 3–6' |
### Instruction:
CREATE TABLE table_204_130 (
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.
-- who is the opponent listed after j... | SELECT "opponent" FROM table_204_130 WHERE id = (SELECT id FROM table_204_130 WHERE "opponent" = 'japan') + 1 |
### Instruction:
CREATE TABLE table_203_570 (
id number,
"#" number,
"title" text,
"tpb isbn" text,
"tpb release date" text,
"tpb page number" number,
"collected material" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what title appears bef... | SELECT "title" FROM table_203_570 WHERE id = (SELECT id FROM table_203_570 WHERE "title" = 'the self-preservation society') - 1 |
### Instruction:
CREATE TABLE table_204_442 (
id number,
"institution" text,
"location" text,
"enrollment" number,
"nickname" text,
"varsity\nsports" number,
"rugby\nsince" text,
"head coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "enrollment" FROM table_204_442 WHERE "rugby\nsince" = 1967 |
### Instruction:
CREATE TABLE table_204_879 (
id number,
"year" number,
"host / location" text,
"division i overall" text,
"division i undergraduate" text,
"division ii overall" text,
"division ii community college" text
)
-- Using valid SQLite, answer the following questions for the table... | SELECT "year" FROM table_204_879 WHERE "host / location" = 'minnesota' ORDER BY "year" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_44802 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Outcome is Winner, and when Opponent is An-Sop... | SELECT "Date" FROM table_44802 WHERE "Outcome" = 'winner' AND "Opponent" = 'an-sophie mestach' |
### Instruction:
CREATE TABLE table_4305 (
"Sport" text,
"Years" text,
"Games" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the games for total less than 4 for swimming 1968
... | SELECT "Games" FROM table_4305 WHERE "Total" < '4' AND "Sport" = 'swimming' AND "Years" = '1968' |
### Instruction:
CREATE TABLE table_16668 (
"Round" real,
"Grand Prix" text,
"Date" text,
"Location" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning Driver" text,
"Winning Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tabl... | SELECT "Location" FROM table_16668 WHERE "Fastest Lap" = 'Thierry Boutsen' |
### Instruction:
CREATE TABLE table_204_525 (
id number,
"rank" number,
"player" text,
"county" text,
"tally" text,
"total" number,
"opposition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in the 197172 national hurling league , who is th... | SELECT "player" FROM table_204_525 WHERE "rank" <= 10 AND "county" = 'laois' |
### Instruction:
CREATE TABLE table_name_32 (
city_area_km_2__ INTEGER,
district VARCHAR,
city_population__2009_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the area for the bahawalnagar district with a population more than 134,936?... | SELECT SUM(city_area_km_2__) FROM table_name_32 WHERE district = "bahawalnagar district" AND city_population__2009_ > 134 OFFSET 936 |
### Instruction:
CREATE TABLE table_66390 (
"Year" real,
"Title" text,
"Type" text,
"Label" text,
"Label-Nr" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the song title from 1963 on the Pacific Jazz label, and a Label-Nr of st-81?
### Re... | SELECT "Title" FROM table_66390 WHERE "Label" = 'pacific jazz' AND "Year" = '1963' AND "Label-Nr" = 'st-81' |
### Instruction:
CREATE TABLE table_23130 (
"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's the nationality of the player coming... | SELECT "Nationality" FROM table_23130 WHERE "College/junior/club team" = 'Edmonton Oil Kings (WCHL)' |
### Instruction:
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT title, SUM(stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY title |
### Instruction:
CREATE TABLE table_46859 (
"Province" text,
"Total" real,
"Hindu" real,
"% Hindu 2010" text,
"% Hindu 2000" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total when the Hindu is greater than 1,076, in the Jawa Barat pro... | SELECT COUNT("Total") FROM table_46859 WHERE "Hindu" > '1,076' AND "Province" = 'jawa barat' |
### Instruction:
CREATE TABLE table_59746 (
"A. Dyck" text,
"H. Rempel" text,
"R. Epp" text,
"J. Thiessen" text,
"J. J. Neufeld" text,
"Ed Zacharias" text,
"word meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which of the A. Dyck ha... | SELECT "A. Dyck" FROM table_59746 WHERE "J. Thiessen" = 'du' |
### Instruction:
CREATE TABLE table_24959 (
"Institution" text,
"Date of report" text,
"s Risk-weighted asset , \u20ac million" real,
"Tier 1 Capital, \u20ac million" real,
"Tier 1 ratio" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most ... | SELECT MAX("Tier 1 Capital, \u20ac million") FROM table_24959 WHERE "Institution" = 'Irish Nationwide' |
### Instruction:
CREATE TABLE table_1535 (
"Urban area (locality)" text,
"Municipality" text,
"Population" real,
"Land area (hectares)" text,
"Density (inh./km\u00b2)" text,
"Code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people l... | SELECT COUNT("Population") FROM table_1535 WHERE "Land area (hectares)" = '30.94' |
### Instruction:
CREATE TABLE table_63210 (
"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 "Game" FROM table_63210 WHERE "High rebounds" = 'jones (10)' |
### Instruction:
CREATE TABLE table_3579 (
"Title and source" text,
"Developer" text,
"Publisher" text,
"First released" text,
"Japan" text,
"Europe" text,
"North America" text,
"Exclusive" text,
"Move-only" text
)
-- Using valid SQLite, answer the following questions for the table... | SELECT COUNT("Title and source") FROM table_3579 WHERE "Developer" = 'Clover Studio' |
### Instruction:
CREATE TABLE table_37866 (
"orbit" text,
"center-to-center distance" text,
"altitude above the Earth's surface" text,
"Orbital period" text,
"specific orbital energy" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- specific orbital e... | SELECT "altitude above the Earth's surface" FROM table_37866 WHERE "specific orbital energy" = '−0.5 mj/kg' |
### Instruction:
CREATE TABLE table_17758 (
"No." real,
"#" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Bens location" text,
"Original air date" text,
"U.S. viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-... | SELECT "Directed by" FROM table_17758 WHERE "Title" = 'Cheyenne, WY' |
### Instruction:
CREATE TABLE table_80224 (
"Name" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the roll of Bishop Viard College (An Integrated College), which h... | SELECT COUNT("Roll") FROM table_80224 WHERE "Decile" > '1' AND "Authority" = 'integrated' AND "Name" = 'bishop viard college' |
### Instruction:
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
-- Using valid SQLite, answer the following question... | SELECT SUM(enr) FROM college WHERE NOT cname IN (SELECT cname FROM tryout WHERE ppos = "goalie") |
### Instruction:
CREATE TABLE table_71412 (
"Ensemble" text,
"Gold Medals" real,
"Silver Medals" real,
"Bronze Medals" real,
"Total Medals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total number of medals received by James Logan Hi... | SELECT COUNT("Total Medals") FROM table_71412 WHERE "Ensemble" = 'james logan high school' AND "Silver Medals" < '1' |
### Instruction:
CREATE TABLE table_71712 (
"Model/Engine" text,
"Capacity" text,
"Cylinders/Valves" text,
"Power/rpm" text,
"Torque (Nm)/rpm" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the capacity for the torque of n m (lb ft) @4150
###... | SELECT "Capacity" FROM table_71712 WHERE "Torque (Nm)/rpm" = 'n·m (lb·ft) @4150' |
### Instruction:
CREATE TABLE table_15002265_1 (
womens_singles VARCHAR,
mixed_doubles VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the the womens singles with mixed doubles being bernd frohnwieser hilde themel and year being small... | SELECT womens_singles FROM table_15002265_1 WHERE mixed_doubles = "Bernd Frohnwieser Hilde Themel" AND year < 1959.0 |
### Instruction:
CREATE TABLE table_76887 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date did Fleetcenter have a game lower than 9 with a score of 1... | SELECT "Date" FROM table_76887 WHERE "Location" = 'fleetcenter' AND "Game" < '9' AND "Score" = '104-94' |
### Instruction:
CREATE TABLE performance (
Performance_ID real,
Date text,
Host text,
Location text,
Attendance int
)
CREATE TABLE member (
Member_ID text,
Name text,
Nationality text,
Role text
)
CREATE TABLE member_attendance (
Member_ID int,
Performance_ID int,
Num_... | SELECT Location, COUNT(Location) FROM performance GROUP BY Location |
### Instruction:
CREATE TABLE table_203_150 (
id number,
"season" number,
"series" text,
"team" text,
"races" number,
"wins" number,
"poles" number,
"f/laps" number,
"podiums" number,
"points" number,
"position" text
)
-- Using valid SQLite, answer the following questions f... | SELECT SUM("wins") FROM table_203_150 |
### Instruction:
CREATE TABLE table_58854 (
"Drug" text,
"Mean" real,
"Pleasure" real,
"Psychological dependence" real,
"Physical dependence" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Pleasure, when Drug is 'LSD', and when Ps... | SELECT SUM("Pleasure") FROM table_58854 WHERE "Drug" = 'lsd' AND "Psychological dependence" > '1.1' |
### Instruction:
CREATE TABLE table_1379 (
"No. in series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Original air date" text,
"Production code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- H... | SELECT COUNT("Original air date") FROM table_1379 WHERE "U.S. viewers (million)" = '5.1' |
### Instruction:
CREATE TABLE table_26986076_6 (
wed_25_aug VARCHAR,
fri_27_aug VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Weds 25 Aug time for the driver whose Aug 27 time was 22' 23.97 101.065mph?
### Response:
| SELECT wed_25_aug FROM table_26986076_6 WHERE fri_27_aug = "22' 23.97 101.065mph" |
### Instruction:
CREATE TABLE table_60160 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Record has a Location Attendance of delta center, and a... | SELECT "Record" FROM table_60160 WHERE "Location Attendance" = 'delta center' AND "Opponent" = 'vs vancouver grizzlies' |
### Instruction:
CREATE TABLE table_name_6 (
seats INTEGER,
general_election VARCHAR,
share_of_votes VARCHAR,
share_of_seats VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Seatshave a Share of votes of 18%, and a Share of seats of 3%, and a Gen... | SELECT MIN(seats) FROM table_name_6 WHERE share_of_votes = "18%" AND share_of_seats = "3%" AND general_election < 1992 |
### Instruction:
CREATE TABLE table_64701 (
"Player" text,
"Matches" text,
"Runs" text,
"Balls" text,
"Strike Rate" text,
"Average" text,
"100s" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With 10 as matches, and 469 runs, what is the str... | SELECT "Strike Rate" FROM table_64701 WHERE "Matches" = '10' AND "Runs" = '469' |
### Instruction:
CREATE TABLE table_77221 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Crowd" real,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the number of the c... | SELECT SUM("Crowd") FROM table_77221 WHERE "Home team" = 'wollongong hawks' |
### Instruction:
CREATE TABLE table_50551 (
"Team" text,
"Chassis" text,
"Engine" text,
"Tire" text,
"Sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team has Firestone Tires a Reynard 95i Chassis and is sponsored by Motorola?
### Re... | SELECT "Team" FROM table_50551 WHERE "Tire" = 'firestone' AND "Chassis" = 'reynard 95i' AND "Sponsor" = 'motorola' |
### Instruction:
CREATE TABLE table_44579 (
"Season" text,
"Zone" real,
"Champion" text,
"Second" text,
"Third" text,
"Top scorer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Champion has a Third of blaho blahoyeve, and a Season of 1995... | SELECT "Champion" FROM table_44579 WHERE "Third" = 'blaho blahoyeve' AND "Season" = '1995-96' |
### Instruction:
CREATE TABLE table_204_459 (
id number,
"date" text,
"time" text,
"opponent" text,
"site" text,
"tv" text,
"result" text,
"attendance" number,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the tota... | SELECT SUM("attendance") FROM table_204_459 WHERE "opponent" IN ('wright state', 'loyola') |
### Instruction:
CREATE TABLE table_204_846 (
id number,
"tie no" number,
"home team" text,
"score" text,
"away team" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which tie number has the same score as tie number 5 ?
###... | SELECT "tie no" FROM table_204_846 WHERE "tie no" <> 5 AND "score" = (SELECT "score" FROM table_204_846 WHERE "tie no" = 5) |
### Instruction:
CREATE TABLE table_56551 (
"Year" text,
"Type" text,
"Nos." text,
"GSWR Class" real,
"GSWR Nos." text,
"GSR Class" text,
"Inchicore Class" text,
"Withdrawn" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Inchicore C... | SELECT "Inchicore Class" FROM table_56551 WHERE "GSR Class" = '235' |
### Instruction:
CREATE TABLE table_63970 (
"Class" text,
"Class Pos." real,
"Driver" text,
"Team/Car" text,
"Laps" real,
"Best Lap" text,
"On Lap" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest laps that has an on lap les... | SELECT MIN("Laps") FROM table_63970 WHERE "On Lap" < '4' AND "Class Pos." = '35' |
### Instruction:
CREATE TABLE table_name_20 (
release_price___usd__ VARCHAR,
gpu_frequency VARCHAR,
sspec_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Release price (USD ) has a GPU frequency of 650 1150 mhz and a sSpec number of sr0pq(e1)... | SELECT release_price___usd__ FROM table_name_20 WHERE gpu_frequency = "650–1150 mhz" AND sspec_number = "sr0pq(e1)" |
### Instruction:
CREATE TABLE table_204_89 (
id number,
"team" text,
"truck(s)" text,
"#" number,
"driver(s)" text,
"primary sponsor(s)" text,
"listed owner(s)" text,
"crew chief" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many t... | SELECT COUNT("team") FROM table_204_89 WHERE "truck(s)" = 'ford f-150' |
### Instruction:
CREATE TABLE table_name_19 (
south_asians_2011 VARCHAR,
province VARCHAR,
south_asians_2001 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many South Asians were there in 2011 in Quebec when there were fewer than 59,510 in 2001?
##... | SELECT COUNT(south_asians_2011) FROM table_name_19 WHERE province = "quebec" AND south_asians_2001 < 59 OFFSET 510 |
### Instruction:
CREATE TABLE table_5083 (
"7:00" text,
"7:30" text,
"8:00" text,
"8:30" text,
"9:00" text,
"10:00" text,
"10:30" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the 8:00 for 10:00 of the practice
### Response:
| SELECT "8:00" FROM table_5083 WHERE "10:00" = 'the practice' |
### 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 country FROM nuclear_power_plants GROUP BY country HAVING COUNT(name) > 3 |
### Instruction:
CREATE TABLE table_21297 (
"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 "Location/Attendance" FROM table_21297 WHERE "Score" = '65-72' |
### Instruction:
CREATE TABLE table_27781 (
"Position" real,
"Sail number" text,
"Yacht" text,
"State/country" text,
"Yacht type" text,
"LOA (Metres)" text,
"Skipper" text,
"Corrected time d:hh:mm:ss" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Yacht" FROM table_27781 WHERE "Skipper" = 'Andrew Saies' |
### Instruction:
CREATE TABLE table_34593 (
"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 largest played num... | SELECT MAX("Played") FROM table_34593 WHERE "Difference" = '- 8' AND "Position" > '8' |
### Instruction:
CREATE TABLE Products (
Code INTEGER,
Name VARCHAR(255),
Price DECIMAL,
Manufacturer INTEGER
)
CREATE TABLE Manufacturers (
Code INTEGER,
Name VARCHAR(255),
Headquarter VARCHAR(255),
Founder VARCHAR(255),
Revenue REAL
)
-- Using valid SQLite, answer the following ... | SELECT Name, AVG(Price) FROM Products GROUP BY Name |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.