instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_42779 (
"Name" text,
"Appointed" real,
"Term expiration" real,
"Appointing Governor" text,
"Law School Attended" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which law school did judge sheila abdus-salaam attend... | SELECT "Law School Attended" FROM table_42779 WHERE "Appointed" > '2004' AND "Name" = 'judge sheila abdus-salaam' |
### Instruction:
CREATE TABLE table_10389 (
"Round" text,
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"Team" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of the player from Round... | SELECT "Nationality" FROM table_10389 WHERE "Round" = '2' AND "College" = 'kansas state' AND "Pick" = '19' |
### Instruction:
CREATE TABLE table_45496 (
"Companion (in order from star)" text,
"Mass" text,
"Semimajor axis ( AU )" text,
"Orbital period ( s day )" text,
"Eccentricity" text,
"Inclination" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What... | SELECT "Inclination" FROM table_45496 WHERE "Semimajor axis ( AU )" = '20 au' |
### 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 Date, Vote_Percent FROM election ORDER BY Date DESC |
### Instruction:
CREATE TABLE table_22661 (
"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 "High rebounds" FROM table_22661 WHERE "High points" = 'Sales (17)' |
### Instruction:
CREATE TABLE table_72507 (
"Position" real,
"Club (City/Town)" text,
"Games Played" real,
"W-L-D" text,
"Goals For/Against" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the the club (city/town) with goals... | SELECT "Club (City/Town)" FROM table_72507 WHERE "Goals For/Against" = '14-2' |
### Instruction:
CREATE TABLE table_29378 (
"Season" real,
"Series" text,
"Team" text,
"Starts" real,
"Wins" real,
"Podiums" real,
"Poles" real,
"Fastest Laps" real,
"Points" text,
"Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided abov... | SELECT COUNT("Poles") FROM table_29378 WHERE "Fastest Laps" = '6' |
### Instruction:
CREATE TABLE table_42539 (
"Result" text,
"Opponent" text,
"Type" text,
"Round" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has a Type of ud and a Round of 10 on 2008-06-11?
### Response:
| SELECT "Opponent" FROM table_42539 WHERE "Type" = 'ud' AND "Round" = '10' AND "Date" = '2008-06-11' |
### Instruction:
CREATE TABLE table_61900 (
"Year" real,
"Edition" text,
"Round" text,
"Date" text,
"Location" text,
"Surface" text,
"Against" text,
"Opponent(s)" text,
"Score" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT AVG("Year") FROM table_61900 WHERE "Date" = '5–6 february' |
### Instruction:
CREATE TABLE mission (
Mission_ID int,
Ship_ID int,
Code text,
Launched_Year int,
Location text,
Speed_knots int,
Fate text
)
CREATE TABLE ship (
Ship_ID int,
Name text,
Type text,
Nationality text,
Tonnage int
)
-- Using valid SQLite, answer the follo... | SELECT Type, COUNT(*) FROM ship GROUP BY Type ORDER BY Type |
### Instruction:
CREATE TABLE table_24698 (
"No." real,
"#" 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 tables provided above.
... | SELECT MIN("No.") FROM table_24698 WHERE "Production code" = '2T7211' |
### Instruction:
CREATE TABLE table_25703_1 (
death_2012 VARCHAR,
death_2013 VARCHAR,
january_september_2013 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the death/2012 number when death/2013 is 140 and January September 2013 is Moscow Oblast?... | SELECT death_2012 FROM table_25703_1 WHERE death_2013 = 140 AND january_september_2013 = "Moscow Oblast" |
### Instruction:
CREATE TABLE table_73126 (
"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 NHL team was the player from Calgary C... | SELECT "NHL team" FROM table_73126 WHERE "College/junior/club team" = 'Calgary Centennials (WCHL)' |
### Instruction:
CREATE TABLE table_14740 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date has won as the result and 2-1 as the score with a competition of 2004 tiger cu... | SELECT "Date" FROM table_14740 WHERE "Result" = 'won' AND "Score" = '2-1' AND "Competition" = '2004 tiger cup third place match' |
### Instruction:
CREATE TABLE table_9811 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the co-drivers with more than 310 laps and t... | SELECT "Co-Drivers" FROM table_9811 WHERE "Laps" > '310' AND "Team" = 'aston martin racing bms' |
### 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, MIN(Price) FROM Products GROUP BY Name |
### Instruction:
CREATE TABLE table_76111 (
"Model number" text,
"Frequency" text,
"L2 cache" text,
"FPU width" text,
"Multi 1" text,
"Socket" text,
"Release date" text,
"Order part number" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- ... | SELECT "Frequency" FROM table_76111 WHERE "Order part number" = 'tmm500dbo22gq' |
### Instruction:
CREATE TABLE table_79738 (
"Number" real,
"Builder" text,
"Built" text,
"Rebuilt" text,
"Name as rebuilt" text,
"Scrapped/Sold" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Scrapped/Sold has a Builder of derby, and a Nam... | SELECT "Scrapped/Sold" FROM table_79738 WHERE "Builder" = 'derby' AND "Name as rebuilt" = 'ben madigan' |
### Instruction:
CREATE TABLE table_69853 (
"Species" text,
"Order" text,
"Family" text,
"Species worldwide" real,
"Species on R\u00e9union" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many species on R union do the dromadidae family have wit... | SELECT SUM("Species on R\u00e9union") FROM table_69853 WHERE "Family" = 'dromadidae' AND "Species worldwide" > '1' |
### Instruction:
CREATE TABLE table_62391 (
"Position" real,
"Club" text,
"Games played" real,
"Wins" real,
"Draws" real,
"Loses" real,
"Goals scored" real,
"Goals conceded" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT SUM("Goals scored") FROM table_62391 WHERE "Games played" < '20' |
### Instruction:
CREATE TABLE table_65249 (
"Opposing Team" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average Against that has a Venue of twickenham , london on 25 november 1978... | SELECT AVG("Against") FROM table_65249 WHERE "Venue" = 'twickenham , london' AND "Date" = '25 november 1978' |
### Instruction:
CREATE TABLE table_7801 (
"Company Name" text,
"Product Name" text,
"Hardware Model" text,
"Accreditation type" text,
"Accreditation level" text,
"Accreditation status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ... | SELECT "Company Name" FROM table_7801 WHERE "Accreditation status" = 'approved (valid until 03.07.13)' |
### Instruction:
CREATE TABLE Skills_Required_To_Fix (
skill_id VARCHAR
)
CREATE TABLE Skills (
skill_id VARCHAR,
skill_description VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which skill is used in fixing the most number of faults? List the skill id... | SELECT T1.skill_id, T1.skill_description FROM Skills AS T1 JOIN Skills_Required_To_Fix AS T2 ON T1.skill_id = T2.skill_id GROUP BY T1.skill_id ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_49782 (
"Year" real,
"Series" text,
"Make" text,
"Driver" text,
"Team" text,
"Schedule" text,
"Role" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the team when the schedule is limited, year is ea... | SELECT "Team" FROM table_49782 WHERE "Schedule" = 'limited' AND "Year" < '2007' AND "Driver" = 'jason white' |
### Instruction:
CREATE TABLE table_200_4 (
id number,
"team" text,
"p" number,
"w" number,
"t" number,
"l" number,
"gf" number,
"ga" number,
"gd" number,
"pts." number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many points di... | SELECT "pts." FROM table_200_4 WHERE "team" = 'portugal' |
### Instruction:
CREATE TABLE table_10682 (
"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 much was crowd attendance w... | SELECT "Crowd" FROM table_10682 WHERE "Away team score" = '16.13 (109)' |
### Instruction:
CREATE TABLE table_50661 (
"Fin. Pos" text,
"Car No." text,
"Driver" text,
"Team" text,
"Laps" text,
"Time/Retired" text,
"Grid" text,
"Laps Led" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is ... | SELECT "Grid" FROM table_50661 WHERE "Time/Retired" = '+6.8359' |
### Instruction:
CREATE TABLE table_75725 (
"Pos." real,
"Team" text,
"Wins" real,
"Ties" real,
"Losses" real,
"Goals" text,
"Diff." text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the most wins when the number of l... | SELECT MAX("Wins") FROM table_75725 WHERE "Losses" < '4' AND "Ties" > '0' |
### Instruction:
CREATE TABLE table_4216 (
"Skip (Club)" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 52 is th... | SELECT "Skip (Club)" FROM table_4216 WHERE "Ends Won" = '52' |
### 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 AVG(Price), Manufacturer FROM Products GROUP BY Manufacturer |
### Instruction:
CREATE TABLE table_34692 (
"Date" real,
"Name" text,
"Developer" text,
"Clock" text,
"Process" text,
"Cores per die / Dies per module" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which process has a date later than 2000 and a... | SELECT "Process" FROM table_34692 WHERE "Date" > '2000' AND "Clock" = '1.4-1.6ghz' |
### Instruction:
CREATE TABLE table_200_26 (
id number,
"city served / location" text,
"province" text,
"icao" text,
"iata" text,
"airport name" text,
"usage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what cities are served by the n mes... | SELECT "city served / location" FROM table_200_26 WHERE "airport name" = 'nimes-ales-camargue-cevennes airport (garons airport)' |
### Instruction:
CREATE TABLE table_70390 (
"Overall place" text,
"Yacht name" text,
"Skipper" text,
"Points" text,
"Combined elapsed time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which yacht name has a Combined elapsed time of 179d 11h 58m 1... | SELECT "Yacht name" FROM table_70390 WHERE "Combined elapsed time" = '179d 11h 58m 14s' |
### Instruction:
CREATE TABLE table_25670 (
"Season" real,
"Series" text,
"Team Name" text,
"Races" real,
"Wins" real,
"Poles" real,
"FLaps" real,
"Podiums" real,
"Points" real,
"Final Placing" text
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT MAX("FLaps") FROM table_25670 WHERE "Points" = '109' |
### Instruction:
CREATE TABLE table_21340 (
"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 "High rebounds" FROM table_21340 WHERE "Record" = '5-11' |
### Instruction:
CREATE TABLE table_14091 (
"Japanese Title" text,
"Romaji Title" text,
"TV Station" text,
"Episodes" text,
"Average Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the ratings of TBS of Episode 10 and had a Japanese t... | SELECT "Average Ratings" FROM table_14091 WHERE "TV Station" = 'tbs' AND "Episodes" = '10' AND "Japanese Title" = 'scandal' |
### Instruction:
CREATE TABLE table_31204 (
"Skip (Club)" text,
"W" real,
"L" real,
"PF" real,
"PA" real,
"Ends Won" real,
"Ends Lost" real,
"Blank Ends" real,
"Stolen Ends" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ... | SELECT MAX("Stolen Ends") FROM table_31204 WHERE "W" = '1' |
### Instruction:
CREATE TABLE table_18899 (
"Rnd" real,
"Circuit" text,
"GTO Winning Team" text,
"GTU Winning Team" text,
"TO Winning Team" text,
"TU Winning Team" text,
"Results" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the g... | SELECT "GTU Winning Team" FROM table_18899 WHERE "GTO Winning Team" = '#48 Greenwood Racing' |
### Instruction:
CREATE TABLE table_204_778 (
id number,
"code" number,
"county" text,
"former province" text,
"area (km2)" number,
"population\ncensus 2009" number,
"capital" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many counties ... | SELECT COUNT("county") FROM table_204_778 WHERE "population\ncensus 2009" > 500000 |
### Instruction:
CREATE TABLE table_63042 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average lane of the athlete from japan with a time of 4:37.35 and a heat less th... | SELECT AVG("Lane") FROM table_63042 WHERE "Nationality" = 'japan' AND "Time" = '4:37.35' AND "Heat" < '3' |
### Instruction:
CREATE TABLE table_70346 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partner" text,
"Opponents in final" text,
"Score in final" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the outcome for the match that ended in ... | SELECT "Outcome" FROM table_70346 WHERE "Score in final" = '5–7, 6–4, [10–7]' |
### Instruction:
CREATE TABLE table_15314901_1 (
coordinate_velocity_v_dx_dt_in_units_of_c VARCHAR,
condition_parameter VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the the condition/parameter is rapidity of 2 hyperbolic radians, what is the coordinate ... | SELECT coordinate_velocity_v_dx_dt_in_units_of_c FROM table_15314901_1 WHERE condition_parameter = "Rapidity of 2 hyperbolic radians" |
### Instruction:
CREATE TABLE table_47348 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of To Par, when Country is 'United States', and w... | SELECT SUM("To par") FROM table_47348 WHERE "Country" = 'united states' AND "Year(s) won" = '1973' |
### Instruction:
CREATE TABLE table_30714 (
"First air date" text,
"Reward" text,
"Immunity" text,
"Eliminated" text,
"Vote" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is listed in eliminated when the finish is 15th voted... | SELECT "Eliminated" FROM table_30714 WHERE "Finish" = '15th Voted Out 9th Jury Member Day 46' |
### Instruction:
CREATE TABLE table_23012 (
"Name" text,
"Country" text,
"Seasons" text,
"Championship Titles" text,
"Race entries (Starts)" text,
"Poles" real,
"Wins" real,
"Podiums" real,
"Fastest Laps" real,
"Points" real
)
-- Using valid SQLite, answer the following questio... | SELECT MAX("Poles") FROM table_23012 WHERE "Country" = 'Netherlands' |
### Instruction:
CREATE TABLE table_6273 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the game that had a decision ... | SELECT "Score" FROM table_6273 WHERE "Decision" = 'parent' AND "Home" = 'philadelphia' AND "Visitor" = 'pittsburgh' |
### Instruction:
CREATE TABLE table_46281 (
"Club" text,
"Champions" real,
"Runners-up" real,
"3rd-Place" real,
"4th-Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest 3rd-Place, when Club is 'Home United FC', and when 4th-Pla... | SELECT MAX("3rd-Place") FROM table_46281 WHERE "Club" = 'home united fc' AND "4th-Place" < '1' |
### Instruction:
CREATE TABLE table_203_633 (
id number,
"title" text,
"year" number,
"platform" text,
"developer" text,
"publisher" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- swat 4 was released in 2005 ... which game in the series preceded... | SELECT "title" FROM table_203_633 WHERE "year" < (SELECT "year" FROM table_203_633 WHERE "title" = 'swat 4') ORDER BY "year" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_47113 (
"Game" real,
"3PM-A" text,
"Percent Made" real,
"Total Made" real,
"Total Attempted" real,
"Series Percent" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what total made has a percent made greater tha... | SELECT MAX("Total Made") FROM table_47113 WHERE "Percent Made" > '0.166' AND "3PM-A" = '3-5' |
### Instruction:
CREATE TABLE table_46176 (
"Rank" real,
"Team" text,
"Played" real,
"Loss" real,
"Last 5" text,
"Streak" text,
"PF per game" real,
"PA per game" real,
"PD per game" real,
"Winning %" text
)
-- Using valid SQLite, answer the following questions for the tables pr... | SELECT "Last 5" FROM table_46176 WHERE "Rank" = '7' |
### Instruction:
CREATE TABLE table_43757 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Lost has a Position larger than 2, a Name of sg m nchen (n), and a ... | SELECT COUNT("Lost") FROM table_43757 WHERE "Position" > '2' AND "Name" = 'sg münchen (n)' AND "Drawn" > '0' |
### Instruction:
CREATE TABLE table_11047 (
"Code" real,
"Type" text,
"Name" text,
"Area (km 2 )" real,
"Population" real,
"Regional County Municipality" text,
"Region" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the regional coun... | SELECT "Regional County Municipality" FROM table_11047 WHERE "Type" = 'm' AND "Code" < '91015' |
### Instruction:
CREATE TABLE table_73826 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type" text,
"Population (2011)" text,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT "Cyrillic Name Other Names" FROM table_73826 WHERE "Population (2011)" = '777' |
### Instruction:
CREATE TABLE table_36687 (
"Rank" real,
"Name" text,
"Nationality" text,
"1st (m)" real,
"2nd (m)" real,
"Points" real,
"Overall FHT points" text,
"Overall WC points (Rank)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT "Overall FHT points" FROM table_36687 WHERE "Name" = 'denis kornilov' |
### Instruction:
CREATE TABLE table_name_93 (
year INTEGER,
competition VARCHAR,
category VARCHAR,
beer_name VARCHAR,
prize VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did maggs magnificent mild win a gold medal in the mild and porte... | SELECT AVG(year) FROM table_name_93 WHERE beer_name = "maggs magnificent mild" AND prize = "gold medal" AND category = "mild and porter" AND competition = "siba south east region beer competition" |
### Instruction:
CREATE TABLE table_43298 (
"Name" text,
"Years" text,
"League a" text,
"FA Cup" text,
"League Cup" text,
"Other b" text,
"Total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Name when the League Cup shows 0 (0)... | SELECT "Name" FROM table_43298 WHERE "League Cup" = '0 (0)' AND "FA Cup" = '12 (14)' |
### Instruction:
CREATE TABLE table_58991 (
"Name" text,
"Years" text,
"MLS Cup" real,
"U.S. Open Cup" real,
"CONCACAF" real,
"Other" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total where there are 4 MLS Cups a... | SELECT COUNT("Total") FROM table_58991 WHERE "MLS Cup" = '4' AND "U.S. Open Cup" > '1' |
### Instruction:
CREATE TABLE table_name_46 (
university_of_dublin VARCHAR,
cultural_and_educational_panel VARCHAR,
industrial_and_commercial_panel VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number for the University of Dublin with their ... | SELECT COUNT(university_of_dublin) FROM table_name_46 WHERE cultural_and_educational_panel = 5 AND industrial_and_commercial_panel < 9 |
### Instruction:
CREATE TABLE table_1332 (
"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 a... | SELECT "High rebounds" FROM table_1332 WHERE "Score" = 'W 105–91 (OT)' |
### Instruction:
CREATE TABLE Reviewer (
rID int,
name text
)
CREATE TABLE Movie (
mID int,
title text,
year int,
director text
)
CREATE TABLE Rating (
rID int,
mID int,
stars int,
ratingDate date
)
-- Using valid SQLite, answer the following questions for the tables provided... | SELECT title, AVG(stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY title |
### Instruction:
CREATE TABLE table_42839 (
"Name" text,
"Seat" text,
"Population (2011)" real,
"Area (km 2 )" real,
"Density (inhabitants/km 2 )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest population for the area that has a d... | SELECT MIN("Population (2011)") FROM table_42839 WHERE "Density (inhabitants/km 2 )" = '36.7' |
### Instruction:
CREATE TABLE people (
People_ID int,
Name text,
Height real,
Weight real,
Date_of_Birth text
)
CREATE TABLE entrepreneur (
Entrepreneur_ID int,
People_ID int,
Company text,
Money_Requested real,
Investor text
)
-- Using valid SQLite, answer the following quest... | SELECT Investor, COUNT(*) FROM entrepreneur GROUP BY Investor ORDER BY COUNT(*) DESC |
### 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 reactortype FROM nuclear_power_plants GROUP BY reactortype ORDER BY AVG(capacity) DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_19188 (
"Cast" text,
"1951 ( BBC )" text,
"1957 (BBC)" text,
"1968 (BBC)" text,
"1970 (film)" text,
"2000 ( Carlton Television )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the cast for 1951 bbc being... | SELECT "Cast" FROM table_19188 WHERE "1951 ( BBC )" = 'Carole Lorimer' |
### Instruction:
CREATE TABLE table_58538 (
"Conference" text,
"# of Bids" real,
"Record" text,
"Win %" text,
"Round of 32" text,
"Sweet Sixteen" text,
"Elite Eight" text,
"Final Four" text,
"Championship Game" text
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT "Elite Eight" FROM table_58538 WHERE "Conference" = 'big west' |
### Instruction:
CREATE TABLE table_5998 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Combination classification" text,
"Team classification" text
)
-- Using valid SQLite, answer the following questions for th... | SELECT "Combination classification" FROM table_5998 WHERE "Points classification" = 'daniele bennati' AND "Team classification" = 'quick step' |
### Instruction:
CREATE TABLE table_78160 (
"Year" text,
"Competition" text,
"Date" text,
"Location" text,
"Score" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the score when the result is loss, the year is 1980 and the ... | SELECT "Score" FROM table_78160 WHERE "Result" = 'loss' AND "Year" = '1980' AND "Competition" = 'world group, consolation round' |
### Instruction:
CREATE TABLE table_203_783 (
id number,
"season" text,
"tier" number,
"division" text,
"place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in what year did the team achieve the same place as 2010/11 ?
### Response:
| SELECT "season" FROM table_203_783 WHERE "season" <> '2010/11' AND "place" = (SELECT "place" FROM table_203_783 WHERE "season" = '2010/11') |
### Instruction:
CREATE TABLE table_8583 (
"DVD title" text,
"Season" text,
"Aspect ratio" text,
"Episode count" real,
"Time length" text,
"Release date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What title was release November 17, 2009 in ... | SELECT "DVD title" FROM table_8583 WHERE "Aspect ratio" = '16:9' AND "Release date" = 'november 17, 2009' |
### Instruction:
CREATE TABLE table_31112 (
"Provider" text,
"Country" text,
"Subscribers (2005) (thousands)" real,
"Subscribers (2006) (thousands)" real,
"Growth %" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fewest number of 2005 su... | SELECT MIN("Subscribers (2005) (thousands)") FROM table_31112 WHERE "Provider" = 'Vodafone' |
### Instruction:
CREATE TABLE table_58500 (
"Lost" real,
"Tied" real,
"Pct." real,
"Years" real,
"Total Games" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total ties had less than 1183 total games, 121 years, and more than 541 losses?
... | SELECT COUNT("Tied") FROM table_58500 WHERE "Total Games" < '1183' AND "Years" = '121' AND "Lost" > '541' |
### Instruction:
CREATE TABLE table_49842 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent in the WMMA 1: McCorkle vs. Heden event that went m... | SELECT "Opponent" FROM table_49842 WHERE "Round" > '1' AND "Event" = 'wmma 1: mccorkle vs. heden' |
### Instruction:
CREATE TABLE table_13101 (
"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 total medal count when there are more than 1 gold and more than... | SELECT "Total" FROM table_13101 WHERE "Gold" > '1' AND "Silver" > '2' AND "Rank" < '2' |
### Instruction:
CREATE TABLE table_203_824 (
id number,
"pick #" number,
"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.
-- which player is listed p... | SELECT "player" FROM table_203_824 WHERE id = (SELECT id FROM table_203_824 WHERE "player" = 'joe reekie') - 1 |
### Instruction:
CREATE TABLE table_78547 (
"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.
-- What is the figure for La Canada Flintridge when ... | SELECT "La Ca\u00f1ada Flintridge" FROM table_78547 WHERE "Pasadena" = '34' |
### Instruction:
CREATE TABLE table_204_814 (
id number,
"date" text,
"opposition" text,
"result" text,
"score" text,
"brazil scorers" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- was the total goals scored on june 14 ,... | SELECT (SELECT "score" + "score" FROM table_204_814 WHERE "date" = 'june 14, 1982') > 6 |
### Instruction:
CREATE TABLE table_23995075_2 (
teams_that_can_still_qualify VARCHAR,
teams_that_have_secured_qualification VARCHAR,
teams_started VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many teams can still qualify when there are 0 teams tha... | SELECT teams_that_can_still_qualify FROM table_23995075_2 WHERE teams_that_have_secured_qualification = "0" AND teams_started = "52" |
### Instruction:
CREATE TABLE table_46222 (
"Model Name" text,
"Engine" text,
"Top Speed" text,
"No. of Gears" real,
"Electrics" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Electrics has an Engine of 175cc, bhp (kw), and a Model Name of d10... | SELECT "Electrics" FROM table_46222 WHERE "Engine" = '175cc, bhp (kw)' AND "Model Name" = 'd10 sports & bushman' |
### Instruction:
CREATE TABLE table_27902 (
"Urban settlement" text,
"Cyrillic Name" text,
"City / municipality" text,
"District" text,
"Population (1991)" real,
"Population (2002)" real,
"Population (2011)" real
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT "Urban settlement" FROM table_27902 WHERE "City / municipality" = 'Kovin' |
### Instruction:
CREATE TABLE table_44983 (
"Name" text,
"Latitude" text,
"Longitude" text,
"Diameter (km)" real,
"Year named" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Diameter (km) has a Name of alma-merghen planitia, and a Year named s... | SELECT MAX("Diameter (km)") FROM table_44983 WHERE "Name" = 'alma-merghen planitia' AND "Year named" < '1997' |
### Instruction:
CREATE TABLE table_204_469 (
id number,
"coach" text,
"years" text,
"seasons" number,
"wins" number,
"losses" number,
"ties" number,
"pct" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who coached more seasons : ed sa... | SELECT "coach" FROM table_204_469 WHERE "coach" IN ('ed sabre', 'mack erwin') ORDER BY "seasons" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_29407 (
"Pronoun" text,
"Present" text,
"1st" text,
"2nd" text,
"perfect" text,
"aorist" text,
"imperfect" text,
"pluperfect" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which aorist has imperfect f... | SELECT "aorist" FROM table_29407 WHERE "imperfect" = 'bijasmo / bejasmo / besmo' |
### Instruction:
CREATE TABLE exhibition_record (
Exhibition_ID int,
Date text,
Attendance int
)
CREATE TABLE exhibition (
Exhibition_ID int,
Year int,
Theme text,
Artist_ID int,
Ticket_Price real
)
CREATE TABLE artist (
Artist_ID int,
Name text,
Country text,
Year_Join... | SELECT Country, COUNT(Country) FROM artist GROUP BY Country |
### Instruction:
CREATE TABLE table_34517 (
"Year" real,
"Champion" text,
"Country" text,
"Venue" text,
"Location" text,
"Score" text,
"To par" text,
"Purse ( $ )" real,
"Winner's share ($)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Champion" FROM table_34517 WHERE "Venue" = 'old waverly golf club' |
### Instruction:
CREATE TABLE table_29385 (
"Player" text,
"Team" text,
"Matches" real,
"Overs" text,
"Wickets" real,
"Average" text,
"Economy" text,
"BBI" text,
"4wi" real,
"5wi" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wh... | SELECT "Player" FROM table_29385 WHERE "BBI" = '5/27' |
### Instruction:
CREATE TABLE table_71169 (
"Rider" text,
"Year" real,
"Final Position - Giro" real,
"Final Position - Tour" real,
"Final Position - Vuelta" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the final Vuelta position associated ... | SELECT "Final Position - Vuelta" FROM table_71169 WHERE "Final Position - Giro" > '39' AND "Final Position - Tour" = '90' |
### Instruction:
CREATE TABLE table_48061 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home team of the g... | SELECT "Home" FROM table_48061 WHERE "Decision" = 'price' AND "Visitor" = 'new jersey devils' |
### Instruction:
CREATE TABLE table_21230 (
"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_21230 WHERE "High points" = 'Charlie Villanueva (32)' |
### Instruction:
CREATE TABLE assignedto (
scientist number,
project text
)
CREATE TABLE projects (
code text,
name text,
hours number
)
CREATE TABLE scientists (
ssn number,
name text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the... | SELECT COUNT(*), T1.name FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project WHERE T1.hours > 300 GROUP BY T1.name |
### Instruction:
CREATE TABLE table_21739 (
"Series #" real,
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"U.S. viewers (million)" text,
"Original airdate" text,
"Production Code" text
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT "Written by" FROM table_21739 WHERE "Production Code" = '2T6268' |
### Instruction:
CREATE TABLE table_48540 (
"Gatchaman" text,
"Eagle Riders" text,
"Rank" text,
"Bird Uniform" text,
"Weapon" text,
"Mecha" text,
"Japanese voice actor" text,
"Voice actor (Eagle Riders)" text
)
-- Using valid SQLite, answer the following questions for the tables provid... | SELECT "Weapon" FROM table_48540 WHERE "Mecha" = 'motorcycle' |
### Instruction:
CREATE TABLE table_17354 (
"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_17354 WHERE "High rebounds" = 'Nick Collison (14)' |
### Instruction:
CREATE TABLE table_33186 (
"Positional or Automatic" text,
"Opponents" text,
"Suits" text,
"Material or Non-material" text,
"Count Rectified" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which suits have no material or non-materia... | SELECT "Suits" FROM table_33186 WHERE "Material or Non-material" = 'no' AND "Opponents" = 'either' AND "Positional or Automatic" = 'positional' |
### Instruction:
CREATE TABLE table_33128 (
"Conference" text,
"# of Bids" real,
"Record" text,
"Win %" real,
"Round of 32" real,
"Sweet Sixteen" text,
"Elite Eight" text,
"Final Four" text,
"Championship Game" text
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT "Championship Game" FROM table_33128 WHERE "Conference" = 'southwest' |
### Instruction:
CREATE TABLE table_54854 (
"Track" real,
"Recorded" text,
"Catalogue" text,
"Release Date" text,
"Song Title" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the cataglogue EPA 4054 released with a 1/12/57 r... | SELECT "Release Date" FROM table_54854 WHERE "Catalogue" = 'epa 4054' AND "Recorded" = '1/12/57' |
### Instruction:
CREATE TABLE table_42994 (
"Player" text,
"Nationality" text,
"Position" text,
"Years in Orlando" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Position has a Player of tyronn lue, and a Years in Orla... | SELECT "Position" FROM table_42994 WHERE "Player" = 'tyronn lue' AND "Years in Orlando" = '2003–2004' |
### Instruction:
CREATE TABLE table_35035 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Points have a Game smaller than 37, and a Score of 2 3, and ... | SELECT COUNT("Points") FROM table_35035 WHERE "Game" < '37' AND "Score" = '2–3' AND "December" = '13' |
### Instruction:
CREATE TABLE table_204_869 (
id number,
"species" text,
"country of origin" text,
"total released" number,
"first release" text,
"last release" text,
"areas of release" text,
"areas established" text,
"pasture type" text
)
-- Using valid SQLite, answer the followin... | SELECT COUNT(DISTINCT "species") FROM table_204_869 WHERE "first release" = 1971 |
### Instruction:
CREATE TABLE table_63029 (
"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 rank has a gold greater than 0, 0 as the bronze, with germany (ger) as... | SELECT "Rank" FROM table_63029 WHERE "Gold" > '0' AND "Bronze" = '0' AND "Nation" = 'germany (ger)' |
### Instruction:
CREATE TABLE table_70014 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Chassis has more than 0 points, an Entrant of Scuderia Ferrari, and was later than ... | SELECT "Chassis" FROM table_70014 WHERE "Points" > '0' AND "Entrant" = 'scuderia ferrari' AND "Year" > '1952' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.