instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_9447 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- /What is Tie No, when Date is 18 February 1956, and when Away Team is Tottenham Hotspur... | SELECT "Tie no" FROM table_9447 WHERE "Date" = '18 february 1956' AND "Away team" = 'tottenham hotspur' |
### Instruction:
CREATE TABLE table_62619 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Against, when Status is 'Five Nations', and when Date is '16/03... | SELECT AVG("Against") FROM table_62619 WHERE "Status" = 'five nations' AND "Date" = '16/03/1996' |
### Instruction:
CREATE TABLE staff (
staff_id VARCHAR,
staff_name VARCHAR
)
CREATE TABLE Staff_Department_Assignments (
staff_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the id and name of the staff who has been assigned for the shortest per... | SELECT T1.staff_id, T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1 |
### Instruction:
CREATE TABLE table_6527 (
"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 total number of weeks where games were on November 5, 1973 and the attendanc... | SELECT COUNT("Week") FROM table_6527 WHERE "Date" = 'november 5, 1973' AND "Attendance" > '49,220' |
### Instruction:
CREATE TABLE table_204_840 (
id number,
"no. in\nseries" number,
"no. in\nseason" number,
"title" text,
"directed by" text,
"written by" text,
"original air date" text,
"prod. code" text
)
-- Using valid SQLite, answer the following questions for the tables provided ab... | SELECT COUNT(*) FROM table_204_840 WHERE "directed by" = 'jeff mccracken' |
### Instruction:
CREATE TABLE table_26202847_6 (
opponent_in_the_final VARCHAR,
score_in_the_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the score in the final is 3 6, 6 4, 3 6, 4 6, who are all the opponents in the final?
### Response:
| SELECT opponent_in_the_final FROM table_26202847_6 WHERE score_in_the_final = "3–6, 6–4, 3–6, 4–6" |
### Instruction:
CREATE TABLE table_56411 (
"Judge" text,
"State" text,
"Born/Died" text,
"Active service" text,
"Chief Judge" text,
"Senior status" text,
"Appointed by" text,
"Reason for termination" text
)
-- Using valid SQLite, answer the following questions for the tables provided ... | SELECT "Appointed by" FROM table_56411 WHERE "Judge" = 'edward e. cushman' |
### Instruction:
CREATE TABLE table_67512 (
"Tournament" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows for 2009 when the 2012 is 1R?
### Response:
| SELECT "2009" FROM table_67512 WHERE "2012" = '1r' |
### Instruction:
CREATE TABLE table_20448 (
"Information" text,
"Akimel A-al The name is Tohono Oodham for children of the river" text,
"Altade\u00f1a" text,
"Aprende" text,
"Centennial" text,
"Kyrene MS" text,
"del Pueblo" text
)
-- Using valid SQLite, answer the following questions for t... | SELECT "Centennial" FROM table_20448 WHERE "Information" = 'Location' |
### Instruction:
CREATE TABLE table_131 (
"2013 Republican primary" text,
"Manhattan" text,
"The Bronx" text,
"Brooklyn" text,
"Queens" text,
"Staten Island" text,
"Total" real,
"%" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was... | SELECT COUNT("Manhattan") FROM table_131 WHERE "Staten Island" = '12,658' |
### Instruction:
CREATE TABLE table_11277 (
"Year of award" real,
"Date(s)" text,
"Sport" text,
"Winner" text,
"Loser" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year were the awards given june 6, 2004 june 15, 2004?
### Response:
| SELECT SUM("Year of award") FROM table_11277 WHERE "Date(s)" = 'june 6, 2004–june 15, 2004' |
### Instruction:
CREATE TABLE table_76674 (
"Number" text,
"D\u00e9partment (or collectivity)" text,
"Pr\u00e9sident" text,
"Party" text,
"Since" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What number corresponds to Presidet Yves Krattinger of t... | SELECT "Number" FROM table_76674 WHERE "Party" = 'socialist party' AND "Pr\u00e9sident" = 'yves krattinger' |
### Instruction:
CREATE TABLE table_200_31 (
id number,
"result" text,
"record" text,
"opponent" text,
"method" text,
"date" text,
"round" number,
"time" text,
"event" text,
"location" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables... | SELECT COUNT(*) FROM table_200_31 WHERE "event" = 'golden gloves' |
### Instruction:
CREATE TABLE table_7731 (
"Date" text,
"Tournament" text,
"Winning score" text,
"To par" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the to par when the winning score was... | SELECT "To par" FROM table_7731 WHERE "Winning score" = '67-68-70-66=271' |
### Instruction:
CREATE TABLE table_72654 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" real,
"Viewers (millions)" text
)
-- Using valid SQLite, answer the following questions for the table... | SELECT "No. in series" FROM table_72654 WHERE "Title" = 'The Beach' |
### Instruction:
CREATE TABLE table_13970 (
"Season" real,
"Series" text,
"Team" text,
"Races" real,
"Wins" real,
"Poles" real,
"F/Laps" real,
"Podiums" real,
"Points" real,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT COUNT("Poles") FROM table_13970 WHERE "Wins" < '0' |
### Instruction:
CREATE TABLE table_204_621 (
id number,
"no." number,
"date" text,
"tournament" text,
"winning score" text,
"margin\nof victory" text,
"runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many runners up were th... | SELECT "runner(s)-up" FROM table_204_621 WHERE "date" = 'jul 24, 1967' |
### Instruction:
CREATE TABLE table_name_63 (
ties INTEGER,
team VARCHAR,
win_pct VARCHAR,
losses VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of ties for the Detroit Lions team when they have fewer than... | SELECT AVG(ties) FROM table_name_63 WHERE losses < 3 AND wins < 5 AND win_pct = "0.800" AND team = "detroit lions" |
### Instruction:
CREATE TABLE table_29716 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Table" text,
"Incoming manager" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
--... | SELECT "Date of appointment" FROM table_29716 WHERE "Date of vacancy" = '24 November 2010' |
### Instruction:
CREATE TABLE table_29607 (
"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_29607 WHERE "First Star" = 'M. Grabovski' |
### Instruction:
CREATE TABLE table_70452 (
"Year" real,
"Chassis" text,
"Engine" text,
"Tyres" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average points for dallara 3087 lola t88/50 and year before 1988
### Response:
| SELECT AVG("Points") FROM table_70452 WHERE "Chassis" = 'dallara 3087 lola t88/50' AND "Year" < '1988' |
### Instruction:
CREATE TABLE table_60672 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue has an against over 14, an opposing team of scotland, and a status of fi... | SELECT "Venue" FROM table_60672 WHERE "Against" > '14' AND "Opposing Teams" = 'scotland' AND "Status" = 'five nations' |
### Instruction:
CREATE TABLE table_41754 (
"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.
-- What years did the player in Orlando play that is from the Uni... | SELECT "Years in Orlando" FROM table_41754 WHERE "Nationality" = 'united states' AND "School/Club Team" = 'clemson' |
### Instruction:
CREATE TABLE Elimination (
Elimination_ID text,
Wrestler_ID text,
Team text,
Eliminated_By text,
Elimination_Move text,
Time text
)
CREATE TABLE wrestler (
Wrestler_ID int,
Name text,
Reign text,
Days_held text,
Location text,
Event text
)
-- Using val... | SELECT Team, COUNT(Team) FROM Elimination GROUP BY Team |
### Instruction:
CREATE TABLE exhibition (
exhibition_id number,
year number,
theme text,
artist_id number,
ticket_price number
)
CREATE TABLE exhibition_record (
exhibition_id number,
date text,
attendance number
)
CREATE TABLE artist (
artist_id number,
name text,
country... | SELECT COUNT(*) FROM exhibition WHERE year >= 2005 |
### Instruction:
CREATE TABLE table_73531 (
"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 COUNT("High points") FROM table_73531 WHERE "Record" = '39-22' |
### Instruction:
CREATE TABLE table_20730 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many days... | SELECT COUNT("Date") FROM table_20730 WHERE "Away team score" = '11.8 (74)' |
### Instruction:
CREATE TABLE table_name_17 (
number_of_seasons_in_meistriliiga VARCHAR,
club VARCHAR,
first_season_in_top_division VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many seasons in Meistriliiga when the club was kuressaare also had a fi... | SELECT COUNT(number_of_seasons_in_meistriliiga) FROM table_name_17 WHERE club = "kuressaare" AND first_season_in_top_division > 2000 |
### Instruction:
CREATE TABLE table_51743 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the away t... | SELECT "Away team score" FROM table_51743 WHERE "Home team score" = '13.20 (98)' |
### Instruction:
CREATE TABLE table_30662 (
"Stage" text,
"Unit Number" real,
"Installed Capacity ( MW )" text,
"Date of Commissioning" text,
"Status" text,
"TG set Provider" text,
"Boiler Provider" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT "Boiler Provider" FROM table_30662 WHERE "TG set Provider" = 'BHEL, India' |
### Instruction:
CREATE TABLE table_23143 (
"County" text,
"Starky #" real,
"Starky %" text,
"Hancock #" real,
"Hancock %" text,
"McCain #" real,
"McCain %" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which country did s... | SELECT "County" FROM table_23143 WHERE "Starky %" = '17.41%' |
### Instruction:
CREATE TABLE table_15636 (
"Rank" real,
"Team" text,
"Country" text,
"Value ($M)" real,
"% change on year" real,
"Revenue ($M)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team has a value less than 377 million in Germa... | SELECT "Team" FROM table_15636 WHERE "Value ($M)" < '377' AND "Country" = 'germany' AND "Rank" = '17' |
### Instruction:
CREATE TABLE table_30232 (
"Week #" real,
"Dance/song" text,
"Horwood" text,
"Goodman" text,
"Dixon" text,
"Tonioli" text,
"Total" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times did tonioli ... | SELECT COUNT("Total") FROM table_30232 WHERE "Tonioli" = '9' AND "Horwood" = '6' |
### Instruction:
CREATE TABLE table_78429 (
"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.
-- What is the catalogue number for the song that is 3:17 and... | SELECT "Catalogue" FROM table_78429 WHERE "Release Date" = '9/21/71' AND "Time" = '3:17' |
### Instruction:
CREATE TABLE table_3726 (
"#" real,
"Matches As Captain" text,
"Player" text,
"Asian Cup Played As A Captain" text,
"Years Active" text,
"Caps(Goals)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of ye... | SELECT COUNT("Years Active") FROM table_3726 WHERE "Asian Cup Played As A Captain" = 'Japan 1992' |
### Instruction:
CREATE TABLE table_203_168 (
id number,
"team name" text,
"leagues" text,
"base" text,
"year started" text,
"year ended" text,
"notable riders" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- did the canterbury crusaders begi... | SELECT "year started" FROM table_203_168 WHERE "team name" = 'canterbury crusaders' |
### Instruction:
CREATE TABLE table_42073 (
"Category" text,
"Frequency" text,
"White" text,
"Brown" text,
"Black" text,
"Amerindian" text,
"Yellow" text,
"Total" text,
"difference between White and Black" real
)
-- Using valid SQLite, answer the following questions for the tables ... | SELECT "White" FROM table_42073 WHERE "Amerindian" = '4,87%' |
### Instruction:
CREATE TABLE table_22535 (
"Ethnic Group" text,
"2001 (%)" text,
"2001 (people)" text,
"2006 (%)" text,
"2006 (people)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the percentage in 2006 when in 2001 was 66.9 %?
### Re... | SELECT "2006 (%)" FROM table_22535 WHERE "2001 (%)" = '66.9' |
### Instruction:
CREATE TABLE table_7533 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest total that has a bronze greater than 1, a gold greater t... | SELECT MAX("Total") FROM table_7533 WHERE "Bronze" > '1' AND "Gold" > '1' AND "Silver" < '4' |
### Instruction:
CREATE TABLE table_203_793 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what opponent is listed below vene... | SELECT "opponent" FROM table_203_793 WHERE id = (SELECT id FROM table_203_793 WHERE "opponent" = 'venezuela') + 1 |
### Instruction:
CREATE TABLE table_23821 (
"Barangay" text,
"District" text,
"Population (May 1, 2000)" real,
"Population (August 1, 2007)" real,
"Population (May 1, 2010)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name th epopulation may for ... | SELECT "Population (May 1, 2000)" FROM table_23821 WHERE "Barangay" = 'General Terrero' |
### Instruction:
CREATE TABLE table_10942 (
"Date" text,
"Track" text,
"Race" text,
"Distance" text,
"Purse ( US$ )" text,
"Surface track" text,
"Winning horse" text,
"Winning jockey" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What D... | SELECT "Date" FROM table_10942 WHERE "Race" = 'northern spur breeders'' cup stakes' |
### Instruction:
CREATE TABLE table_48811 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player from the United States in T4 place with a score of 68-73-68=209?
### R... | SELECT "Player" FROM table_48811 WHERE "Country" = 'united states' AND "Place" = 't4' AND "Score" = '68-73-68=209' |
### Instruction:
CREATE TABLE table_43325 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins were in the PGA Championship when... | SELECT COUNT("Wins") FROM table_43325 WHERE "Tournament" = 'pga championship' AND "Events" > '10' |
### Instruction:
CREATE TABLE table_2396 (
"District" text,
"Capital City" text,
"Area (km\u00b2)" real,
"Area (sq.mi)" real,
"Population (2005 est)" real,
"2-letter abbreviation" text,
"3-letter abbreviation" text
)
-- Using valid SQLite, answer the following questions for the tables prov... | SELECT "Capital City" FROM table_2396 WHERE "2-letter abbreviation" = 'CY' |
### Instruction:
CREATE TABLE table_55977 (
"School" text,
"Location" text,
"Enrolment" real,
"Founded" real,
"Denomination" text,
"Boys/Girls" text,
"Day/Boarding" text,
"School Colors" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wha... | SELECT MIN("Enrolment") FROM table_55977 WHERE "Founded" > '1995' |
### Instruction:
CREATE TABLE table_78599 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text,
"Time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Event has a Position of 1st, a Year of 1983, and a Venue of buda... | SELECT "Event" FROM table_78599 WHERE "Position" = '1st' AND "Year" = '1983' AND "Venue" = 'budapest' |
### Instruction:
CREATE TABLE Organizations (
organization_details VARCHAR,
organization_id VARCHAR
)
CREATE TABLE Things (
thing_id VARCHAR,
type_of_Thing_Code VARCHAR,
organization_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the id ... | SELECT T1.thing_id, T1.type_of_Thing_Code, T2.organization_details FROM Things AS T1 JOIN Organizations AS T2 ON T1.organization_id = T2.organization_id |
### Instruction:
CREATE TABLE table_40281 (
"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 average Week when there were more than 63,866 people in attendance on Septe... | SELECT AVG("Week") FROM table_40281 WHERE "Attendance" > '63,866' AND "Date" = 'september 7, 1981' |
### 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 Vote_Percent |
### Instruction:
CREATE TABLE table_37929 (
"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 gold number when the total is less than 8, silver less than 1 a... | SELECT COUNT("Gold") FROM table_37929 WHERE "Total" < '8' AND "Silver" < '1' AND "Rank" > '7' |
### Instruction:
CREATE TABLE table_62015 (
"Outcome" text,
"Edition" real,
"Round" text,
"Opponent Team" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when Outcome is Loser, and... | SELECT "Score" FROM table_62015 WHERE "Outcome" = 'loser' AND "Edition" = '2011' |
### Instruction:
CREATE TABLE table_35437 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Last match" text,
"Replaced by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the last match with a v... | SELECT "Last match" FROM table_35437 WHERE "Date of vacancy" = 'round 2' AND "Outgoing manager" = 'ney franco' |
### Instruction:
CREATE TABLE table_38053 (
"Week" text,
"Date" text,
"Kickoff" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"NFL Recap" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which NFL Recap had a Kicko... | SELECT "NFL Recap" FROM table_38053 WHERE "Kickoff" = '7:00pm edt' |
### Instruction:
CREATE TABLE table_8378 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Record of Visitor of toronto st. pats with a Score of 5 4 and a Home of ottawa senato... | SELECT "Record" FROM table_8378 WHERE "Visitor" = 'toronto st. pats' AND "Score" = '5–4' AND "Home" = 'ottawa senators' |
### Instruction:
CREATE TABLE table_17723 (
"Year" real,
"Population (Region total)" real,
"Population (Stanthorpe)" real,
"Population (Warwick)" real,
"Population (Allora)" real,
"Population (Glengallan)" real,
"Population (Rosenthal)" real
)
-- Using valid SQLite, answer the following qu... | SELECT MAX("Population (Glengallan)") FROM table_17723 |
### Instruction:
CREATE TABLE table_50922 (
"Episode" text,
"Air Date" text,
"Timeslot" text,
"18-49" text,
"Viewers" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the timeslot for 'gary has to choose' with an 18-49 of 1.8/5?
### Response... | SELECT "Timeslot" FROM table_50922 WHERE "18-49" = '1.8/5' AND "Episode" = 'gary has to choose' |
### Instruction:
CREATE TABLE table_40464 (
"Rank by average" text,
"Place" text,
"Perfect 40s" text,
"Total" text,
"Number of dances" text,
"Season" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the place in season... | SELECT "Place" FROM table_40464 WHERE "Season" = '8' AND "Rank by average" = '139' |
### Instruction:
CREATE TABLE table_35313 (
"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 SUM("Game") FROM table_35313 WHERE "Record" = '17-29' |
### Instruction:
CREATE TABLE table_17233 (
"Disc" real,
"Track" real,
"English title" text,
"Japanese title" text,
"R\u014dmaji title" text,
"Artist" text,
"Track time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many tracks are titl... | SELECT COUNT("Track") FROM table_17233 WHERE "R\u014dmaji title" = 'Mō Sukoshi Tōku' |
### Instruction:
CREATE TABLE table_203_3 (
id number,
"province" text,
"capital" text,
"population" number,
"density" text,
"municipalities" text,
"legal districts" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- is almer a or c rdoba 's d... | SELECT "province" FROM table_203_3 WHERE "density" = 72.4 AND "province" IN ('almeria', 'cordoba') |
### Instruction:
CREATE TABLE allergy_type (
allergy text,
allergytype text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE has_allergy (
stuid number,
allergy text
)
-- U... | SELECT city_code FROM student WHERE lname = "Kim" |
### Instruction:
CREATE TABLE table_34129 (
"Year" real,
"Division" real,
"League" text,
"Regular Season" text,
"Playoffs" text,
"Open Cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year is the lowest one that has a Regular Season of ... | SELECT MIN("Year") FROM table_34129 WHERE "Regular Season" = '5th, atlantic' AND "Division" > '4' |
### Instruction:
CREATE TABLE table_203_462 (
id number,
"year" number,
"division" number,
"league" text,
"regular season" text,
"playoffs" text,
"open cup" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which year had a better regular seaso... | SELECT "year" FROM table_203_462 WHERE "year" IN (2006, 2012) ORDER BY "regular season" LIMIT 1 |
### Instruction:
CREATE TABLE table_8499 (
"Club" text,
"Played" text,
"Drawn" text,
"Lost" text,
"Points for" text,
"Points against" text,
"Points difference" text,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the num... | SELECT "Points" FROM table_8499 WHERE "Drawn" = '2' AND "Points for" = '577' |
### Instruction:
CREATE TABLE table_30931 (
"No. overall" real,
"No. for series" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"UK viewers (million)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What ... | SELECT "No. for series" FROM table_30931 WHERE "Title" = 'The Coming of Arthur (Part 1)' |
### Instruction:
CREATE TABLE table_2615 (
"Stage" real,
"Stage winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Malaysian rider classification" text,
"Team classification" text,
"Malaysian team classification" text
)
-- Using... | SELECT "Team classification" FROM table_2615 WHERE "Malaysian team classification" = 'MNCF Continental Team' |
### Instruction:
CREATE TABLE table_59648 (
"Golden Rivers" 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 greatest number of losses when there are more than 0 dr... | SELECT MAX("Losses") FROM table_59648 WHERE "Draws" > '0' AND "Against" = '1390' |
### Instruction:
CREATE TABLE mountain (
Mountain_ID int,
Name text,
Height real,
Prominence real,
Range text,
Country text
)
CREATE TABLE climber (
Climber_ID int,
Name text,
Country text,
Time text,
Points real,
Mountain_ID int
)
-- Using valid SQLite, answer the fol... | SELECT Country, COUNT(*) FROM climber GROUP BY Country ORDER BY Country DESC |
### Instruction:
CREATE TABLE table_70389 (
"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 points have a Combined elapsed time of 175d 20h 46m 04s?... | SELECT "Points" FROM table_70389 WHERE "Combined elapsed time" = '175d 20h 46m 04s' |
### Instruction:
CREATE TABLE table_15919 (
"Country ( exonym )" text,
"Capital ( exonym )" text,
"Country ( endonym )" text,
"Capital ( endonym )" text,
"Official or native language(s) (alphabet/script)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT COUNT("Country ( endonym )") FROM table_15919 WHERE "Capital ( endonym )" = 'Jakarta' |
### Instruction:
CREATE TABLE table_204_690 (
id number,
"election" number,
"party name" text,
"total votes" number,
"share of votes" text,
"seats" number,
"share of seats" text,
"party leader(s)" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the ta... | SELECT COUNT("election") FROM table_204_690 WHERE "share of votes" > 15 |
### Instruction:
CREATE TABLE table_29601 (
"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 "Decision" FROM table_29601 WHERE "Date" = 'December 26' |
### Instruction:
CREATE TABLE table_7224 (
"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 Drawn has an Agains... | SELECT "Drawn" FROM table_7224 WHERE "Against" < '20' AND "Points" = '15' |
### Instruction:
CREATE TABLE table_29357 (
"Episode No. Episode No. refers to the episodes number in the overall series, whereas Series No. refers to the episodes number in this particular series." real,
"Series No." real,
"Episode" text,
"Director" text,
"Writer" text,
"Original airdate" text
... | SELECT "Episode" FROM table_29357 WHERE "Writer" = 'Barry Purchese' |
### Instruction:
CREATE TABLE captain (
Captain_ID int,
Name text,
Ship_ID int,
age text,
Class text,
Rank text
)
CREATE TABLE Ship (
Ship_ID int,
Name text,
Type text,
Built_Year real,
Class text,
Flag text
)
-- Using valid SQLite, answer the following questions for t... | SELECT Rank, COUNT(*) FROM captain GROUP BY Rank ORDER BY COUNT(*) |
### Instruction:
CREATE TABLE table_40609 (
"Name" text,
"Novelty" text,
"Status" text,
"Authors" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Authors, when Novelty is Gen Nov, when Location is South Africa, and when Name ... | SELECT "Authors" FROM table_40609 WHERE "Novelty" = 'gen nov' AND "Location" = 'south africa' AND "Name" = 'criocephalosaurus' |
### Instruction:
CREATE TABLE table_77927 (
"Round" real,
"Pick" real,
"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 sum total of picks for drake players... | SELECT SUM("Pick") FROM table_77927 WHERE "Team" = 'tri-cities blackhawks' AND "College" = 'drake' |
### Instruction:
CREATE TABLE table_203_529 (
id number,
"fin" number,
"st" number,
"driver" text,
"car #" number,
"make" text,
"points" number,
"bonus" number,
"laps" number,
"winnings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT COUNT(*) FROM table_203_529 WHERE "make" = 'toyota' |
### Instruction:
CREATE TABLE table_79234 (
"School" text,
"Mascot" text,
"Location" text,
"Enrollment" real,
"IHSAA Class" text,
"IHSAA Football Class" text,
"County" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What school has south bend... | SELECT "School" FROM table_79234 WHERE "Location" = 'south bend' AND "Mascot" = 'indians' |
### Instruction:
CREATE TABLE table_name_81 (
crew_chief VARCHAR,
primary_sponsor_s_ VARCHAR,
car_s_ VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the crew chief of team Joe Gibbs Racing, which has a Chevrolet Monte Carlo and Fe... | SELECT crew_chief FROM table_name_81 WHERE car_s_ = "chevrolet monte carlo" AND team = "joe gibbs racing" AND primary_sponsor_s_ = "fedex" |
### Instruction:
CREATE TABLE table_36559 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average week for the gaime against the philadelphia eagles with less than ... | SELECT AVG("Week") FROM table_36559 WHERE "Opponent" = 'philadelphia eagles' AND "Attendance" < '31,066' |
### Instruction:
CREATE TABLE table_43607 (
"Rank" real,
"Title" text,
"Studio" text,
"Director" text,
"Worldwide Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the title when the rank is less than 17 and the worldwide gross is $299,2... | SELECT "Title" FROM table_43607 WHERE "Rank" < '17' AND "Worldwide Gross" = '$299,288,605' |
### Instruction:
CREATE TABLE table_46357 (
"Date" text,
"Venue" text,
"Opponents" text,
"Score" text,
"Competition" text,
"Match Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Competition is 'F', and when Opponents is... | SELECT "Date" FROM table_46357 WHERE "Competition" = 'f' AND "Opponents" = 'fc astoria walldorf' |
### Instruction:
CREATE TABLE table_1681 (
"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 COUNT("Date") FROM table_1681 WHERE "Score" = 'W 118-112' |
### Instruction:
CREATE TABLE table_15977768_1 (
centennial VARCHAR,
akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the centennial for 1992 akimel
### Response:
| SELECT centennial FROM table_15977768_1 WHERE akimel_a_al_the_name_is_tohono_oodham_for_children_of_the_river = "1992" |
### Instruction:
CREATE TABLE table_30761 (
"Player" text,
"County" text,
"Balls" real,
"Wickets" real,
"Average" text,
"Economy" text,
"BBI" text,
"4wi" real,
"5wi" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the number of w... | SELECT "Economy" FROM table_30761 WHERE "Wickets" = '29' |
### Instruction:
CREATE TABLE table_27800 (
"Case" text,
"1st pers. sing." text,
"2nd pers. sing." text,
"3rd pers. sing." text,
"1st pers. pl" text,
"2nd pers. pl." text,
"3rd pers pl." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name th... | SELECT "3rd pers pl." FROM table_27800 WHERE "2nd pers. sing." = 'тонэн ~ тонэныд' |
### Instruction:
CREATE TABLE table_24724 (
"Year" real,
"Film" text,
"Budget" text,
"Domestic Box Office" text,
"Foreign Box Office" text,
"Total" text,
"US DVD sales" text,
"Total (with DVD sales)" text
)
-- Using valid SQLite, answer the following questions for the tables provided a... | SELECT "Domestic Box Office" FROM table_24724 WHERE "Film" = 'House on Haunted Hill' |
### Instruction:
CREATE TABLE table_204_14 (
id number,
"rank" number,
"bib" number,
"athlete" text,
"country" text,
"time" text,
"deficit" text,
"note" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is right below hanna falk ?
###... | SELECT "athlete" FROM table_204_14 WHERE "rank" = (SELECT "rank" FROM table_204_14 WHERE "athlete" = 'hanna falk') + 1 |
### Instruction:
CREATE TABLE table_53517 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total crowd at the... | SELECT COUNT("Crowd") FROM table_53517 WHERE "Home team score" = '8.21 (69)' |
### Instruction:
CREATE TABLE table_21570 (
"Fin. Pos" real,
"Car No." real,
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Laps Led" real,
"Points" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is ... | SELECT MIN("Car No.") FROM table_21570 WHERE "Driver" = 'Hélio Castroneves' |
### Instruction:
CREATE TABLE table_36587 (
"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.
-- How many people attended the game with parent rec... | SELECT SUM("Attendance") FROM table_36587 WHERE "Decision" = 'parent' AND "Record" = '42–18–10' |
### Instruction:
CREATE TABLE table_28861 (
"Year" real,
"Competition" text,
"Location" text,
"Apparatus" text,
"Rank-Final" real,
"Score-Final" text,
"Rank-Qualifying" real,
"Score-Qualifying" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
... | SELECT MAX("Rank-Final") FROM table_28861 WHERE "Apparatus" = 'Floor Exercise' |
### Instruction:
CREATE TABLE table_46498 (
"Railway" text,
"Builder" text,
"Built" real,
"Wheels" text,
"Location" text,
"ObjectNumber" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Railway has a Location of shildon, and an ObjectNumber ... | SELECT "Railway" FROM table_46498 WHERE "Location" = 'shildon' AND "ObjectNumber" = '1978-7006' |
### Instruction:
CREATE TABLE table_58694 (
"Position" real,
"Team" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Goals For" real,
"Goals Against" real,
"Goal Difference" text,
"Points 1" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.... | SELECT MAX("Goals Against") FROM table_58694 WHERE "Position" = '15' |
### Instruction:
CREATE TABLE table_70535 (
"Round" text,
"Kick Off" text,
"Opponents" text,
"H / A" text,
"Result" text,
"Referee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which round has a Kick Off of 1992-10-01 21:15?
### Response:
| SELECT "Round" FROM table_70535 WHERE "Kick Off" = '1992-10-01 21:15' |
### Instruction:
CREATE TABLE table_204_703 (
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 country only received gold medals in the 19... | SELECT "nation" FROM table_204_703 WHERE "gold" > 0 AND "silver" = 0 AND "bronze" = 0 |
### Instruction:
CREATE TABLE table_35337 (
"Race Title" text,
"Circuit" text,
"Location / State" text,
"Date" text,
"Winner" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Location /State has a Winner of craig lowndes, and a ... | SELECT "Location / State" FROM table_35337 WHERE "Winner" = 'craig lowndes' AND "Date" = '29–31 may' |
### Instruction:
CREATE TABLE table_33175 (
"Player" text,
"Span" text,
"Start" real,
"Tries" real,
"Conv" real,
"Pens" real,
"Drop" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 1990-2005 what is the lowest Start with Convs smaller than... | SELECT MIN("Start") FROM table_33175 WHERE "Span" = '1990-2005' AND "Conv" < '2' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.