instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_14 (
date VARCHAR,
displacement VARCHAR,
nationality VARCHAR,
type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the date when the nationality is united kingdom, the type is freighter and the displacement is 5,145 t?
### Response:
|
SELECT date FROM table_name_14 WHERE nationality = "united kingdom" AND type = "freighter" AND displacement = "5,145 t"
|
### Instruction:
CREATE TABLE table_name_85 (
character VARCHAR,
chinese_title VARCHAR,
year VARCHAR,
role VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What character has a Year larger than 2010 with a lead role, and Chinese Title of 38 ?
### Response:
|
SELECT character FROM table_name_85 WHERE year > 2010 AND role = "lead role" AND chinese_title = "戀夏38℃"
|
### Instruction:
CREATE TABLE table_13560 (
"Year" text,
"1851" text,
"1861" text,
"1871" text,
"1881" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the year when 1851 had 634?
### Response:
|
SELECT "Year" FROM table_13560 WHERE "1851" = '634'
|
### Instruction:
CREATE TABLE table_name_1 (
sack INTEGER,
yards VARCHAR,
solo VARCHAR,
tackles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Sack with a Solo of 24, with Tackles larger than 25.5, with Yards larger than 0?
### Response:
|
SELECT MIN(sack) FROM table_name_1 WHERE solo = 24 AND tackles > 25.5 AND yards > 0
|
### Instruction:
CREATE TABLE table_60711 (
"Week 1" text,
"Week 2" text,
"Week 3" text,
"Week 4" text,
"Week 5" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the week 2 before Lara Leverence was week 3?
### Response:
|
SELECT "Week 2" FROM table_60711 WHERE "Week 3" = 'lara leverence'
|
### Instruction:
CREATE TABLE table_23993 (
"Round" real,
"Pick #" real,
"Player" text,
"Position" text,
"Height" text,
"Weight" text,
"College" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which college had a running back player
### Response:
|
SELECT "College" FROM table_23993 WHERE "Position" = 'Running back'
|
### Instruction:
CREATE TABLE table_name_48 (
points INTEGER,
engine VARCHAR,
chassis VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the lowest points for the engines of the Lamborghini v12 and the Chassis on Minardi m191b?
### Response:
|
SELECT MIN(points) FROM table_name_48 WHERE engine = "lamborghini v12" AND chassis = "minardi m191b"
|
### Instruction:
CREATE TABLE table_61494 (
"Rank" real,
"Airport" text,
"Passengers" real,
"Aircraft Movements" real,
"Carriers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the smallest rank for passengers more than 73,754?
### Response:
|
SELECT MIN("Rank") FROM table_61494 WHERE "Passengers" > '73,754'
|
### Instruction:
CREATE TABLE table_25646 (
"ACC Team" text,
"Big Ten Team" text,
"Location" text,
"Attendance" real,
"Winner" text,
"Challenge Leader" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record for Big Ten Team #4 Purdue?
### Response:
|
SELECT "Winner" FROM table_25646 WHERE "Big Ten Team" = '#4 Purdue'
|
### Instruction:
CREATE TABLE table_20032301_3 (
tom_emmer__r_ VARCHAR,
matt_entenza__dfl_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many polls show different percentages for Tom Emmer and 38% for Matt Entenza?
### Response:
|
SELECT COUNT(tom_emmer__r_) FROM table_20032301_3 WHERE matt_entenza__dfl_ = "38%"
|
### Instruction:
CREATE TABLE table_46920 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What did United States score in the place t6?
### Response:
|
SELECT "Score" FROM table_46920 WHERE "Country" = 'united states' AND "Place" = 't6'
|
### Instruction:
CREATE TABLE table_71282 (
"Year" real,
"Ceremony" text,
"Result" text,
"Award" text,
"Work" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What award was Trent Tesoro nominated for in 2007?
### Response:
|
SELECT "Award" FROM table_71282 WHERE "Result" = 'nominated' AND "Year" = '2007'
|
### Instruction:
CREATE TABLE table_49950 (
"Driver" text,
"Race 1" text,
"Race 2" text,
"Race 3" text,
"Race 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Race 2, when Race 1 is 30?
### Response:
|
SELECT "Race 2" FROM table_49950 WHERE "Race 1" = '30'
|
### Instruction:
CREATE TABLE table_204_494 (
id number,
"episode #" text,
"original air date (uk)" text,
"episode title" text,
"guest cast" text,
"dvd # 1" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the least number of guest casts on an episode ?
### Response:
|
SELECT MIN("guest cast") FROM table_204_494
|
### Instruction:
CREATE TABLE table_44458 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the game against the San Francisco 49ers what was the total attendance?
### Response:
|
SELECT SUM("Attendance") FROM table_44458 WHERE "Opponent" = 'san francisco 49ers'
|
### Instruction:
CREATE TABLE table_41761 (
"Lane" real,
"Name" text,
"Country" text,
"Mark" text,
"React" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country has a lane greater than 6 and a mark of 6.63?
### Response:
|
SELECT "Country" FROM table_41761 WHERE "Lane" > '6' AND "Mark" = '6.63'
|
### Instruction:
CREATE TABLE table_15757 (
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue has a Date of 28 july 2007?
### Response:
|
SELECT "Venue" FROM table_15757 WHERE "Date" = '28 july 2007'
|
### Instruction:
CREATE TABLE table_name_11 (
wins INTEGER,
points VARCHAR,
year VARCHAR,
draws VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest wins that has a year prior to 1999, with draws greater than 1, and points greater than 17?
### Response:
|
SELECT MIN(wins) FROM table_name_11 WHERE year < 1999 AND draws > 1 AND points > 17
|
### Instruction:
CREATE TABLE table_20128 (
"City of License /Market" text,
"Station" text,
"Channel TV ( DT )" text,
"Years owned" text,
"Current affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What channel tv (dt) plays the KPIX station?
### Response:
|
SELECT "Channel TV ( DT )" FROM table_20128 WHERE "Station" = 'KPIX'
|
### Instruction:
CREATE TABLE table_61813 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Status has a Date of 18/03/1989?
### Response:
|
SELECT "Status" FROM table_61813 WHERE "Date" = '18/03/1989'
|
### Instruction:
CREATE TABLE table_name_29 (
against INTEGER,
draws VARCHAR,
wins VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of against when the wins were 8, and a Club of South Warrnambool, with less than 0 draws?
### Response:
|
SELECT SUM(against) FROM table_name_29 WHERE wins = 8 AND club = "south warrnambool" AND draws < 0
|
### Instruction:
CREATE TABLE table_77266 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"Nationality" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE TOTAL PICK FOR BOSTON COLLEGE?
### Response:
|
SELECT COUNT("Pick") FROM table_77266 WHERE "College" = 'boston college'
|
### Instruction:
CREATE TABLE table_14646 (
"Year" text,
"Title" text,
"Role" text,
"Episodes" text,
"Broadcaster" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the title for Sky One in 2005?
### Response:
|
SELECT "Title" FROM table_14646 WHERE "Broadcaster" = 'sky one' AND "Year" = '2005'
|
### Instruction:
CREATE TABLE table_3649 (
"Pick #" real,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the position for pick # 103?
### Response:
|
SELECT "Position" FROM table_3649 WHERE "Pick #" = '103'
|
### Instruction:
CREATE TABLE table_46190 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the money ($) for player justin leonard?
### Response:
|
SELECT "Money ( $ )" FROM table_46190 WHERE "Player" = 'justin leonard'
|
### Instruction:
CREATE TABLE table_57347 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Rockies record at their game that had a loss of Hernandez (3 5)?
### Response:
|
SELECT "Record" FROM table_57347 WHERE "Loss" = 'hernandez (3–5)'
|
### Instruction:
CREATE TABLE table_4758 (
"Couple" text,
"Score" text,
"Dance" text,
"Music" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the music for the team who earned a score of 13 (5, 4, 4)?
### Response:
|
SELECT "Music" FROM table_4758 WHERE "Score" = '13 (5, 4, 4)'
|
### Instruction:
CREATE TABLE table_18263 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party was Tony P. Hall affiliated with?
### Response:
|
SELECT "Party" FROM table_18263 WHERE "Incumbent" = 'Tony P. Hall'
|
### Instruction:
CREATE TABLE table_6307 (
"Res." text,
"Record" text,
"Opponent" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the round number of the match with Michael Buell as the opponent?
### Response:
|
SELECT "Round" FROM table_6307 WHERE "Opponent" = 'michael buell'
|
### Instruction:
CREATE TABLE table_25827 (
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Viewers (in millions)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the original air date of 'Hothead'?
### Response:
|
SELECT "Original air date" FROM table_25827 WHERE "Title" = 'Hothead'
|
### Instruction:
CREATE TABLE table_24722 (
"Year (Ceremony)" text,
"Film title used in nomination" text,
"Title in the original language" text,
"Director" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the results for the film titled 'Joki'?
### Response:
|
SELECT COUNT("Result") FROM table_24722 WHERE "Title in the original language" = 'Joki'
|
### Instruction:
CREATE TABLE table_78950 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who scored 69-74=143 for Colombia?
### Response:
|
SELECT "Player" FROM table_78950 WHERE "Score" = '69-74=143' AND "Country" = 'colombia'
|
### Instruction:
CREATE TABLE table_204_204 (
id number,
"rank" number,
"heat" number,
"country" text,
"cyclists" text,
"result" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many cyclists finished in under 44 seconds ?
### Response:
|
SELECT COUNT("cyclists") FROM table_204_204 WHERE "result" < 44
|
### Instruction:
CREATE TABLE table_12675 (
"Tries" real,
"Player" text,
"Opponent" text,
"Score" text,
"Venue" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player of the match at canberra stadium?
### Response:
|
SELECT "Player" FROM table_12675 WHERE "Venue" = 'canberra stadium'
|
### Instruction:
CREATE TABLE table_15739 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who built james hunt's car that went 79 laps?
### Response:
|
SELECT "Constructor" FROM table_15739 WHERE "Laps" = '79' AND "Driver" = 'james hunt'
|
### Instruction:
CREATE TABLE table_21631 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which episodes did Nelson McCormick direct?
### Response:
|
SELECT "Written by" FROM table_21631 WHERE "Directed by" = 'Nelson McCormick'
|
### Instruction:
CREATE TABLE table_52649 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was CHris Amon's highest lap when his grid was 4?
### Response:
|
SELECT MAX("Laps") FROM table_52649 WHERE "Driver" = 'chris amon' AND "Grid" < '4'
|
### Instruction:
CREATE TABLE table_name_8 (
share INTEGER,
air_date VARCHAR,
viewers VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest share with an air date of March 21, 2008 and had viewers larger than 5.15?
### Response:
|
SELECT MIN(share) FROM table_name_8 WHERE air_date = "march 21, 2008" AND viewers > 5.15
|
### Instruction:
CREATE TABLE table_204_291 (
id number,
"rank" number,
"name" text,
"nation" text,
"cp" number,
"fp" number,
"points" number,
"placings" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who received the lowest number of points ?
### Response:
|
SELECT "name" FROM table_204_291 ORDER BY "points" LIMIT 1
|
### Instruction:
CREATE TABLE table_48408 (
"Date" text,
"Home team" text,
"Score" text,
"Away team" text,
"Venue" text,
"Box Score" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which report corresponds to the State Sports Centre?
### Response:
|
SELECT "Report" FROM table_48408 WHERE "Venue" = 'state sports centre'
|
### Instruction:
CREATE TABLE table_name_32 (
run_4 INTEGER,
run_1 VARCHAR,
run_3 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Run 4 has a Run 1 of 57.37, and a Run 3 smaller than 57.45?
### Response:
|
SELECT SUM(run_4) FROM table_name_32 WHERE run_1 = 57.37 AND run_3 < 57.45
|
### Instruction:
CREATE TABLE table_15868 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During what period did Dell Curry play for Toronto?
### Response:
|
SELECT "Years in Toronto" FROM table_15868 WHERE "Player" = 'Dell Curry'
|
### Instruction:
CREATE TABLE table_31736 (
"Date" text,
"Track" text,
"Event Name" text,
"Pole Winner" text,
"Race Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At which track did the event Daytona Arca 200 take place?
### Response:
|
SELECT "Track" FROM table_31736 WHERE "Event Name" = 'daytona arca 200'
|
### Instruction:
CREATE TABLE table_72224 (
"Member" text,
"Week Arrived On Main Island" text,
"Week Sent To Third Island" text,
"Original Tribe" text,
"Tribe They Chose To Win" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was sent to the third island in week 1?
### Response:
|
SELECT "Member" FROM table_72224 WHERE "Week Sent To Third Island" = '1'
|
### Instruction:
CREATE TABLE table_48086 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round has an Event of nle - capital city carnage?
### Response:
|
SELECT "Round" FROM table_48086 WHERE "Event" = 'nle - capital city carnage'
|
### Instruction:
CREATE TABLE table_name_39 (
position INTEGER,
goal_difference VARCHAR,
losses VARCHAR,
goals_for VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest position with less than 17 losses, more than 57 goals, and a goal difference less than 4?
### Response:
|
SELECT MAX(position) FROM table_name_39 WHERE losses < 17 AND goals_for > 57 AND goal_difference < 4
|
### Instruction:
CREATE TABLE table_42375 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team 1 has vfl gummersbach as team 2?
### Response:
|
SELECT "Team 1" FROM table_42375 WHERE "Team 2" = 'vfl gummersbach'
|
### Instruction:
CREATE TABLE table_204_562 (
id number,
"no." number,
"date" text,
"location" text,
"surface" text,
"opponent in final" text,
"score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the only day grass was the surface used ?
### Response:
|
SELECT "date" FROM table_204_562 WHERE "surface" = 'grass'
|
### Instruction:
CREATE TABLE table_62383 (
"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 attendance on September 11, 1988?
### Response:
|
SELECT AVG("Attendance") FROM table_62383 WHERE "Date" = 'september 11, 1988'
|
### Instruction:
CREATE TABLE table_5655 (
"Pick #" real,
"MLS Team" text,
"Player" text,
"Position" text,
"Affiliation" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which MLS tea, drafted a player affilaited with the university of california?
### Response:
|
SELECT "MLS Team" FROM table_5655 WHERE "Affiliation" = 'university of california'
|
### Instruction:
CREATE TABLE table_679 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidatess" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was incumbent jim ramstad first elected?
### Response:
|
SELECT MIN("First elected") FROM table_679 WHERE "Incumbent" = 'Jim Ramstad'
|
### Instruction:
CREATE TABLE table_name_39 (
conceded INTEGER,
losses VARCHAR,
points VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Conceded is the highest one that has Points larger than 17, and a Team of guaran , and Losses smaller than 6?
### Response:
|
SELECT MAX(conceded) FROM table_name_39 WHERE points > 17 AND team = "guaraní" AND losses < 6
|
### Instruction:
CREATE TABLE table_204_872 (
id number,
"name" text,
"completed" text,
"architect" text,
"location" text,
"year of listing & ref(s)" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many buildings had alfred waterhouse as their architect ?
### Response:
|
SELECT COUNT("name") FROM table_204_872 WHERE "architect" = 'alfred waterhouse'
|
### Instruction:
CREATE TABLE table_28678 (
"Alumni" text,
"Original season" text,
"Fresh Meat Partner" text,
"Age" real,
"Hometown" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people were from portland, or?
### Response:
|
SELECT COUNT("Age") FROM table_28678 WHERE "Hometown" = 'Portland, OR'
|
### Instruction:
CREATE TABLE table_31364 (
"Position" text,
"Singer" text,
"2nd Evening" text,
"3rd Evening" text,
"4th Evening" text,
"5th Evening" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position was serena abrami in?
### Response:
|
SELECT "Position" FROM table_31364 WHERE "Singer" = 'Serena Abrami'
|
### Instruction:
CREATE TABLE table_203_126 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the opponent on the first game of the season ?
### Response:
|
SELECT "opponent#" FROM table_203_126 WHERE id = 1
|
### Instruction:
CREATE TABLE table_name_50 (
frequency_mhz VARCHAR,
erp_w VARCHAR,
city_of_license VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the frequency MHz in tremonton, utah with a ERP W larger than 30?
### Response:
|
SELECT frequency_mhz FROM table_name_50 WHERE erp_w > 30 AND city_of_license = "tremonton, utah"
|
### Instruction:
CREATE TABLE table_63825 (
"Rank" real,
"Lane" real,
"Athlete" text,
"Nationality" text,
"Time" real,
"React" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Lane has a Time larger than 47.83?
### Response:
|
SELECT AVG("Lane") FROM table_63825 WHERE "Time" > '47.83'
|
### Instruction:
CREATE TABLE table_26240481_1 (
charleston_southerns_head_coach VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is Charleston Southerns head coach where the result is L, 56-6?-
### Response:
|
SELECT charleston_southerns_head_coach FROM table_26240481_1 WHERE result = "L, 56-6"
|
### Instruction:
CREATE TABLE table_11029 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the event held on July 23, 2009?
### Response:
|
SELECT "Score" FROM table_11029 WHERE "Date" = 'july 23, 2009'
|
### Instruction:
CREATE TABLE table_18697 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many areas were in the election in 1912
### Response:
|
SELECT COUNT("District") FROM table_18697 WHERE "First elected" = '1912'
|
### Instruction:
CREATE TABLE table_56869 (
"Player" text,
"Height" text,
"School" text,
"Hometown" text,
"College" text,
"NBA Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What College did Player Dorian Finney-Smith play for?
### Response:
|
SELECT "College" FROM table_56869 WHERE "Player" = 'dorian finney-smith'
|
### Instruction:
CREATE TABLE table_62688 (
"Seat" real,
"Series 1" text,
"Series 2" text,
"Series 3" text,
"Series 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the seat number when Series 3 shows Dana B rov ?
### Response:
|
SELECT AVG("Seat") FROM table_62688 WHERE "Series 3" = 'dana bérová'
|
### Instruction:
CREATE TABLE table_18714 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of result for mississippi 4?
### Response:
|
SELECT COUNT("Result") FROM table_18714 WHERE "District" = 'Mississippi 4'
|
### Instruction:
CREATE TABLE table_53958 (
"Rank" real,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the high total for nations with 1 gold and over 1 bronze?
### Response:
|
SELECT MAX("Total") FROM table_53958 WHERE "Gold" = '1' AND "Bronze" > '1'
|
### Instruction:
CREATE TABLE table_37835 (
"Year" real,
"Class" text,
"Team" text,
"Points" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is listed for the Class that's got a Team of Cagiva and Points of 4?
### Response:
|
SELECT "Class" FROM table_37835 WHERE "Team" = 'cagiva' AND "Points" = '4'
|
### Instruction:
CREATE TABLE table_21033 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Enrollment" real,
"Joined" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most enrollment when nickname is hawks
### Response:
|
SELECT MAX("Enrollment") FROM table_21033 WHERE "Nickname" = 'Hawks'
|
### Instruction:
CREATE TABLE table_8890 (
"Name" text,
"Country" text,
"Date of birth" text,
"Debut" text,
"Last match" text,
"Date of death" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did Sydney Barnes debut in England?
### Response:
|
SELECT "Debut" FROM table_8890 WHERE "Country" = 'england' AND "Name" = 'sydney barnes'
|
### Instruction:
CREATE TABLE table_65206 (
"Period" text,
"Team" text,
"Player" text,
"Penalty" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the period for the DET Team with a time of 11:27?
### Response:
|
SELECT "Period" FROM table_65206 WHERE "Team" = 'det' AND "Time" = '11:27'
|
### Instruction:
CREATE TABLE teachers (
classroom VARCHAR,
firstname VARCHAR,
lastname VARCHAR
)
CREATE TABLE list (
classroom VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many students does LORIA ONDERSMA teaches?
### Response:
|
SELECT COUNT(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom = T2.classroom WHERE T2.firstname = "LORIA" AND T2.lastname = "ONDERSMA"
|
### Instruction:
CREATE TABLE table_73238 (
"Type of aphasia" text,
"Repetition" text,
"Naming" text,
"Auditory comprehension" text,
"Fluency" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of naming for anomic aphasia
### Response:
|
SELECT COUNT("Naming") FROM table_73238 WHERE "Type of aphasia" = 'Anomic aphasia'
|
### Instruction:
CREATE TABLE table_55775 (
"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 was the record for the game on March 25?
### Response:
|
SELECT "Record" FROM table_55775 WHERE "Date" = 'march 25'
|
### Instruction:
CREATE TABLE table_28842 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which party does the incumbent Mathias Morris belong to?
### Response:
|
SELECT "Party" FROM table_28842 WHERE "Incumbent" = 'Mathias Morris'
|
### Instruction:
CREATE TABLE table_42272 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Catalog with a Date that is february 20, 2002?
### Response:
|
SELECT "Catalog" FROM table_42272 WHERE "Date" = 'february 20, 2002'
|
### Instruction:
CREATE TABLE table_203_269 (
id number,
"season" text,
"competition" text,
"round" text,
"club" text,
"home" text,
"away" text,
"aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of away wins ?
### Response:
|
SELECT COUNT(*) FROM table_203_269 WHERE "away" > "away"
|
### Instruction:
CREATE TABLE table_13518 (
"Name" text,
"Height" text,
"Weight" text,
"Spike" text,
"2008 club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Weight of the Player with a 2008 Club of Tokai University?
### Response:
|
SELECT "Weight" FROM table_13518 WHERE "2008 club" = 'tokai university'
|
### Instruction:
CREATE TABLE table_39920 (
"School" text,
"Nickname" text,
"Colors" text,
"League" text,
"Class" text,
"Division" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nickname of the team that has the colors blue and gold?
### Response:
|
SELECT "Nickname" FROM table_39920 WHERE "Colors" = 'blue and gold'
|
### Instruction:
CREATE TABLE table_16761 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of the constructor that has the circuit zeltweg airfield?
### Response:
|
SELECT "Constructor" FROM table_16761 WHERE "Circuit" = 'Zeltweg Airfield'
|
### Instruction:
CREATE TABLE table_203_490 (
id number,
"date" text,
"opponent#" text,
"rank#" text,
"site" text,
"result" text,
"attendance" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- on what date did the eagles score the least points ?
### Response:
|
SELECT "date" FROM table_203_490 ORDER BY "result" LIMIT 1
|
### Instruction:
CREATE TABLE table_204_13 (
id number,
"finished" text,
"post" number,
"horse" text,
"jockey" text,
"trainer" text,
"owner" text,
"time / behind" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of jockeys listed here ?
### Response:
|
SELECT COUNT("jockey") FROM table_204_13
|
### Instruction:
CREATE TABLE table_17196 (
"Unit" text,
"Commander" text,
"Complement" text,
"Killed" text,
"Wounded" text,
"Missing" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the missing for lieutenant general sir thomas picton?
### Response:
|
SELECT "Missing" FROM table_17196 WHERE "Commander" = 'Lieutenant General Sir Thomas Picton'
|
### Instruction:
CREATE TABLE table_name_80 (
mountains_classification VARCHAR,
general_classification VARCHAR,
team_classification VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What mountains classification corresponds to Mark Cavendish and the Garmin-Chipotle-H30?
### Response:
|
SELECT mountains_classification FROM table_name_80 WHERE general_classification = "mark cavendish" AND team_classification = "garmin-chipotle-h30"
|
### Instruction:
CREATE TABLE table_204_903 (
id number,
"title" text,
"character" text,
"broadcaster" text,
"episodes" number,
"date" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the only role she played with broadcaster itv2 ?
### Response:
|
SELECT "character" FROM table_204_903 WHERE "broadcaster" = 'itv2'
|
### Instruction:
CREATE TABLE table_72202 (
"Acquisition" text,
"knowledge" text,
"penance" text,
"permanence of the body" text,
"constancy" text,
"purity" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of constancy where purity is falling
### Response:
|
SELECT COUNT("constancy") FROM table_72202 WHERE "purity" = 'falling'
|
### Instruction:
CREATE TABLE table_27804 (
"Circuit" text,
"Location" text,
"Date" text,
"Series" text,
"Winning driver" text,
"Winning team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When fairuz fauzy is the winning driver what is the date?
### Response:
|
SELECT "Date" FROM table_27804 WHERE "Winning driver" = 'Fairuz Fauzy'
|
### Instruction:
CREATE TABLE table_24638867_4 (
championship VARCHAR,
surface VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What championships were played on clay and the opponent was virginia ruano pascual paola su rez?
### Response:
|
SELECT championship FROM table_24638867_4 WHERE surface = "Clay" AND opponent = "Virginia Ruano Pascual Paola Suárez"
|
### Instruction:
CREATE TABLE table_4066 (
"Category" text,
"Player" text,
"Team" text,
"Games played" real,
"Totals" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the listed in games played when the player is jimmy alapag?
### Response:
|
SELECT "Games played" FROM table_4066 WHERE "Player" = 'Jimmy Alapag'
|
### Instruction:
CREATE TABLE table_41001 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when Attendance is 2,444?
### Response:
|
SELECT "Score" FROM table_41001 WHERE "Attendance" = '2,444'
|
### Instruction:
CREATE TABLE table_80183 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps was qualifier of 138.212?
### Response:
|
SELECT "Laps" FROM table_80183 WHERE "Qual" = '138.212'
|
### Instruction:
CREATE TABLE table_47209 (
"Player" text,
"Nationality" text,
"Position" text,
"Years for Grizzlies" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which school did Dahntay Jones graduate from?
### Response:
|
SELECT "School/Club Team" FROM table_47209 WHERE "Player" = 'dahntay jones'
|
### Instruction:
CREATE TABLE table_77558 (
"Draw" real,
"Artist" text,
"Song" text,
"Place" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Draw that has Points larger than 44 and a Place larger than 1?
### Response:
|
SELECT AVG("Draw") FROM table_77558 WHERE "Points" > '44' AND "Place" > '1'
|
### Instruction:
CREATE TABLE table_1901751_1 (
original_australian_performer VARCHAR,
original_west_end_performer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many original Australian performers are there when the Original West End Performer is Jordan Dunne?
### Response:
|
SELECT COUNT(original_australian_performer) FROM table_1901751_1 WHERE original_west_end_performer = "Jordan Dunne"
|
### Instruction:
CREATE TABLE table_67798 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was there a draw at Sydney Cricket Ground?
### Response:
|
SELECT "Date" FROM table_67798 WHERE "Result" = 'draw' AND "Venue" = 'sydney cricket ground'
|
### Instruction:
CREATE TABLE table_31782 (
"Nomination" text,
"Actor's Name" text,
"Film Name" text,
"Director" text,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the actors name for goran paskaljevic
### Response:
|
SELECT "Actor's Name" FROM table_31782 WHERE "Director" = 'goran paskaljevic'
|
### Instruction:
CREATE TABLE Employees (
Id VARCHAR
)
CREATE TABLE Circulation_History (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List all employees in the circulation history of the document with id 1. List the employee's name.
### Response:
|
SELECT Employees.employee_name FROM Employees JOIN Circulation_History ON Circulation_History.employee_id = Employees.employee_id WHERE Circulation_History.document_id = 1
|
### Instruction:
CREATE TABLE torrents (
groupname text,
totalsnatched number,
artist text,
groupyear number,
releasetype text,
groupid number,
id number
)
CREATE TABLE tags (
index number,
id number,
tag text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which entry have been downloaded the most?
### Response:
|
SELECT groupname FROM torrents ORDER BY totalsnatched DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_24919137_2 (
date VARCHAR,
ladder_position VARCHAR,
opposition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date was the game played when the Western Bulldogs were in 8th ladder position and hawthorn was the opposing team?
### Response:
|
SELECT date FROM table_24919137_2 WHERE ladder_position = "8th" AND opposition = "Hawthorn"
|
### Instruction:
CREATE TABLE table_63281 (
"Lane" real,
"Athlete" text,
"Nationality" text,
"Time" real,
"Reaction time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Time of the Athlete with a Reaction time of 0.164?
### Response:
|
SELECT SUM("Time") FROM table_63281 WHERE "Reaction time" = '0.164'
|
### Instruction:
CREATE TABLE table_14194 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the venue on october 28, 2008?
### Response:
|
SELECT "Venue" FROM table_14194 WHERE "Date" = 'october 28, 2008'
|
### Instruction:
CREATE TABLE table_20120 (
"Rd" real,
"Race" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Did the round 8 race get reported
### Response:
|
SELECT "Report" FROM table_20120 WHERE "Rd" = '8'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.