instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_21928 (
"Episode #" text,
"Season #" real,
"Title" text,
"Writer(s)" text,
"Director" text,
"Originalairdate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the title of the episode 21a?
### Response:
|
SELECT "Title" FROM table_21928 WHERE "Episode #" = '21a'
|
### Instruction:
CREATE TABLE table_203_387 (
id number,
"parish est" number,
"church" text,
"city" text,
"current bldg begun" number,
"weekly collections" text,
"notes" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many different cities are the listed churches in ?
### Response:
|
SELECT COUNT(DISTINCT "city") FROM table_203_387
|
### Instruction:
CREATE TABLE table_38574 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Surface has a Tournament of st. petersburg , russia?
### Response:
|
SELECT "Surface" FROM table_38574 WHERE "Tournament" = 'st. petersburg , russia'
|
### Instruction:
CREATE TABLE table_65408 (
"Date" text,
"Internet Explorer" text,
"Chrome" text,
"Firefox" text,
"Safari" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the percentage of safari when internet explorer was 20.27%?
### Response:
|
SELECT "Safari" FROM table_65408 WHERE "Internet Explorer" = '20.27%'
|
### Instruction:
CREATE TABLE table_11265 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- with a record of 66-78 what was the loss?
### Response:
|
SELECT "Loss" FROM table_11265 WHERE "Record" = '66-78'
|
### Instruction:
CREATE TABLE table_26132 (
"Election Year" real,
"Assembly" text,
"Winning Party/Coalition" text,
"Chief Minister" text,
"Speaker" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the assembly is the sixth assembly, what is the maximum election year?
### Response:
|
SELECT MAX("Election Year") FROM table_26132 WHERE "Assembly" = 'Sixth Assembly'
|
### Instruction:
CREATE TABLE table_58358 (
"Position" text,
"Game 1" text,
"Game 2" text,
"Game 3" text,
"Game 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During which Game 4, did Brett Kenny play Game 2?
### Response:
|
SELECT "Game 4" FROM table_58358 WHERE "Game 2" = 'brett kenny'
|
### Instruction:
CREATE TABLE table_204_414 (
id number,
"name" text,
"armenian" text,
"location" text,
"# of prisoners designed for" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- name the location used the most number of times in the table .
### Response:
|
SELECT "location" FROM table_204_414 GROUP BY "location" ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_8 (
year INTEGER,
venue VARCHAR,
event VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is earliest year that had a 50km event with a 2nd place result played in London, United Kingdom?
### Response:
|
SELECT MIN(year) FROM table_name_8 WHERE event = "50km" AND result = "2nd" AND venue = "london, united kingdom"
|
### Instruction:
CREATE TABLE table_49394 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was part 4 when part 3 was *hleupun?
### Response:
|
SELECT "Part 4" FROM table_49394 WHERE "Part 3" = '*hleupun'
|
### Instruction:
CREATE TABLE table_17069 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT SCHOOL DID THE PLAYER FROM SOUTH CAROLINA ATTEND?
### Response:
|
SELECT "School" FROM table_17069 WHERE "College" = 'South Carolina'
|
### Instruction:
CREATE TABLE table_26418 (
"Outcome" text,
"Year" real,
"Championship" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the score for san diego
### Response:
|
SELECT "Score" FROM table_26418 WHERE "Championship" = 'San Diego'
|
### Instruction:
CREATE TABLE table_48522 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score when Team is @ Kansas City-Omaha Kings?
### Response:
|
SELECT "Score" FROM table_48522 WHERE "Team" = '@ kansas city-omaha kings'
|
### Instruction:
CREATE TABLE table_76531 (
"Date" text,
"Opponent" text,
"Score" text,
"Result" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Opponent of the game with a Score of 74-66?
### Response:
|
SELECT "Opponent" FROM table_76531 WHERE "Score" = '74-66'
|
### Instruction:
CREATE TABLE table_68541 (
"2001" text,
"2004" text,
"2009" text,
"2013" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of 2013 with 6th?
### Response:
|
SELECT MAX("Total") FROM table_68541 WHERE "2013" = '6th'
|
### Instruction:
CREATE TABLE table_33171 (
"Date" text,
"Tournament" text,
"Surface" text,
"Partner" text,
"Opponents in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the Jeff Tarango game?
### Response:
|
SELECT "Score" FROM table_33171 WHERE "Partner" = 'jeff tarango'
|
### Instruction:
CREATE TABLE table_24423 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What week #(s featured sara bareilles as the original artist?
### Response:
|
SELECT "Week #" FROM table_24423 WHERE "Original artist" = 'Sara Bareilles'
|
### Instruction:
CREATE TABLE table_54727 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What company constructed the car with more than 0 laps and shows 5 for grid?
### Response:
|
SELECT "Constructor" FROM table_54727 WHERE "Laps" > '0' AND "Grid" = '5'
|
### Instruction:
CREATE TABLE table_204_599 (
id number,
"party" text,
"first duma" text,
"second duma" text,
"third duma" text,
"fourth duma" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long was the first duma on rigtists
### Response:
|
SELECT "first duma" FROM table_204_599 WHERE "party" = 'rightists'
|
### Instruction:
CREATE TABLE table_57832 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the sum roll of Karaka area?
### Response:
|
SELECT SUM("Roll") FROM table_57832 WHERE "Area" = 'karaka'
|
### Instruction:
CREATE TABLE table_204_918 (
id number,
"week" number,
"date" text,
"opponent" text,
"result" text,
"record" text,
"attendance" number,
"bye" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of points scored ?
### Response:
|
SELECT SUM("result" + "result") FROM table_204_918
|
### Instruction:
CREATE TABLE table_51352 (
"Draw" real,
"Artist" text,
"Song" text,
"Points" real,
"Place" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the high point toal for martine foubert placing below 2?
### Response:
|
SELECT MAX("Points") FROM table_51352 WHERE "Artist" = 'martine foubert' AND "Place" > '2'
|
### Instruction:
CREATE TABLE table_45625 (
"Date" text,
"H/A/N" text,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Score of the game against Philadelphia 76ers?
### Response:
|
SELECT "Score" FROM table_45625 WHERE "Opponent" = 'philadelphia 76ers'
|
### Instruction:
CREATE TABLE table_name_63 (
nationality___opponent VARCHAR,
competition VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the Nationality / Opponent of the Competition of welsh rugby union challenge trophy and a Result of 38-29?
### Response:
|
SELECT nationality___opponent FROM table_name_63 WHERE competition = "welsh rugby union challenge trophy" AND result = "38-29"
|
### Instruction:
CREATE TABLE table_name_16 (
rides VARCHAR,
bonus_pts VARCHAR,
total_points VARCHAR,
rider VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rides did it take Ray Day to get 274 points in total with less than 3 bonus points?
### Response:
|
SELECT COUNT(rides) FROM table_name_16 WHERE total_points < 274 AND rider = "ray day" AND bonus_pts > 3
|
### Instruction:
CREATE TABLE table_name_5 (
no_in_series INTEGER,
written_by VARCHAR,
no_in_season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the numbers in series written by sam meikle, which have 21 numbers in the season?
### Response:
|
SELECT SUM(no_in_series) FROM table_name_5 WHERE written_by = "sam meikle" AND no_in_season = 21
|
### Instruction:
CREATE TABLE table_64522 (
"Position" real,
"Name" text,
"Played" real,
"Drawn" real,
"Lost" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of points combined from the teams that played over 14 games?
### Response:
|
SELECT COUNT("Points") FROM table_64522 WHERE "Played" > '14'
|
### Instruction:
CREATE TABLE table_78975 (
"Lexton Plains" 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 most wins with 0 byes?
### Response:
|
SELECT MAX("Wins") FROM table_78975 WHERE "Byes" > '0'
|
### Instruction:
CREATE TABLE table_8375 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which Record has a Home of ottawa senators on Date of december 21?
### Response:
|
SELECT "Record" FROM table_8375 WHERE "Home" = 'ottawa senators' AND "Date" = 'december 21'
|
### Instruction:
CREATE TABLE table_42270 (
"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 march 13, 2002?
### Response:
|
SELECT "Catalog" FROM table_42270 WHERE "Date" = 'march 13, 2002'
|
### Instruction:
CREATE TABLE table_54538 (
"Date" text,
"Venue" text,
"Score" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the UEFA Euro 2008 Qualifying competition?
### Response:
|
SELECT "Result" FROM table_54538 WHERE "Competition" = 'uefa euro 2008 qualifying'
|
### Instruction:
CREATE TABLE table_70522 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the finish which has qual of 144.817
### Response:
|
SELECT "Finish" FROM table_70522 WHERE "Qual" = '144.817'
|
### Instruction:
CREATE TABLE table_20803241_1 (
cash_fare VARCHAR,
type_of_fare VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When fort irwin-barstow/victorville is the type of fare what is the cash fare?
### Response:
|
SELECT cash_fare FROM table_20803241_1 WHERE type_of_fare = "Fort Irwin-Barstow/Victorville"
|
### Instruction:
CREATE TABLE table_79418 (
"Time" text,
"Wind" text,
"Athlete" text,
"Nationality" text,
"Location of race" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the athlete with a wind of 1.8?
### Response:
|
SELECT "Athlete" FROM table_79418 WHERE "Wind" = '1.8'
|
### Instruction:
CREATE TABLE table_47674 (
"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.
-- What is Team 2, when 2nd Leg is 1-0?
### Response:
|
SELECT "Team 2" FROM table_47674 WHERE "2nd leg" = '1-0'
|
### Instruction:
CREATE TABLE table_3608 (
"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.
-- The district North Carolina 10 have what candidates?
### Response:
|
SELECT "Candidates" FROM table_3608 WHERE "District" = 'North Carolina 10'
|
### Instruction:
CREATE TABLE table_73942 (
"School" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Nickname" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nickname of the University of Alabama?
### Response:
|
SELECT "Nickname" FROM table_73942 WHERE "School" = 'University of Alabama'
|
### Instruction:
CREATE TABLE table_203_771 (
id number,
"#" number,
"artist" text,
"featuring" text,
"title" text,
"version" text,
"length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many tracks are there on the 2005 best of benassi bros. album ?
### Response:
|
SELECT COUNT("title") FROM table_203_771
|
### Instruction:
CREATE TABLE table_51118 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country has a score of 70-71-72=213?
### Response:
|
SELECT "Country" FROM table_51118 WHERE "Score" = '70-71-72=213'
|
### Instruction:
CREATE TABLE table_204_652 (
id number,
"title" text,
"year" number,
"director" text,
"country" text,
"genre" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many directors are in the england films ?
### Response:
|
SELECT COUNT("director") FROM table_204_652 WHERE "country" = 'england'
|
### Instruction:
CREATE TABLE table_2954 (
"Competition" text,
"Final position" text,
"First match" text,
"Last match" text,
"Final Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the final place for july 25, 2009
### Response:
|
SELECT "Final Place" FROM table_2954 WHERE "Last match" = 'July 25, 2009'
|
### Instruction:
CREATE TABLE table_3284 (
"Player" text,
"Position" text,
"Starter" text,
"Touchdowns" real,
"Extra points" real,
"Field goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many starters are there at right tackle?
### Response:
|
SELECT COUNT("Starter") FROM table_3284 WHERE "Position" = 'Right tackle'
|
### Instruction:
CREATE TABLE table_36262 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Venue" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Opponent of chicago bears involved what date?
### Response:
|
SELECT "Date" FROM table_36262 WHERE "Opponent" = 'chicago bears'
|
### Instruction:
CREATE TABLE table_name_44 (
pick__number INTEGER,
round VARCHAR,
position VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- A Round larger than 1, a College of Oklahoma state, and a average Pick # that has a Position of tight end is what?
### Response:
|
SELECT AVG(pick__number) FROM table_name_44 WHERE position = "tight end" AND college = "oklahoma state" AND round > 1
|
### Instruction:
CREATE TABLE table_30113 (
"Player" text,
"Matches" real,
"Innings" real,
"Wickets" real,
"Average" text,
"BBI" text,
"BBM" text,
"5wi" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least amount of matches?
### Response:
|
SELECT MIN("Matches") FROM table_30113
|
### Instruction:
CREATE TABLE table_48328 (
"Team #1" text,
"Points" text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 2nd Leg, when Team #2 is 'San Lorenzo'?
### Response:
|
SELECT "2nd leg" FROM table_48328 WHERE "Team #2" = 'san lorenzo'
|
### Instruction:
CREATE TABLE table_26603 (
"Week" real,
"Date" text,
"Opponent" text,
"Location" text,
"Final Score" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of record for week 11
### Response:
|
SELECT COUNT("Record") FROM table_26603 WHERE "Week" = '11'
|
### Instruction:
CREATE TABLE table_60754 (
"Date" text,
"Time" text,
"Competition" text,
"Opponent" text,
"Ground" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What competition is at 23:00 cet?
### Response:
|
SELECT "Competition" FROM table_60754 WHERE "Time" = '23:00 cet'
|
### Instruction:
CREATE TABLE table_79335 (
"Draw" real,
"Singer" text,
"Song" text,
"Televoting (votes)" text,
"Jury" text,
"Place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The song '2 Be Together' had what jury?
### Response:
|
SELECT "Jury" FROM table_79335 WHERE "Song" = '2 be together'
|
### Instruction:
CREATE TABLE table_28626 (
"Rank" real,
"Couple" text,
"Judges" real,
"Public" real,
"Total" real,
"Vote percentage" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What couple had a total of 8?
### Response:
|
SELECT "Couple" FROM table_28626 WHERE "Total" = '8'
|
### Instruction:
CREATE TABLE table_78312 (
"Team" text,
"Outgoing manager" text,
"Date of departure" text,
"Replaced by" text,
"Date of Appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the appointment date for VFL Wolfsburg?
### Response:
|
SELECT "Date of Appointment" FROM table_78312 WHERE "Team" = 'vfl wolfsburg'
|
### Instruction:
CREATE TABLE table_49626 (
"Year" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Host city / cities" text,
"Host country / countries" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who won the gold in 1958?
### Response:
|
SELECT "Gold" FROM table_49626 WHERE "Year" = '1958'
|
### Instruction:
CREATE TABLE table_name_21 (
level VARCHAR,
position VARCHAR,
season VARCHAR,
division VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What level for seasons after 2003, a Division of kakkonen (second division), and a Position of 12th?
### Response:
|
SELECT level FROM table_name_21 WHERE season > 2003 AND division = "kakkonen (second division)" AND position = "12th"
|
### Instruction:
CREATE TABLE table_5753 (
"Season" real,
"Level" text,
"Division" text,
"Administration" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Season has a Level of tier 2 and a Position of 1st?
### Response:
|
SELECT COUNT("Season") FROM table_5753 WHERE "Level" = 'tier 2' AND "Position" = '1st'
|
### Instruction:
CREATE TABLE table_21445 (
"Team #1" text,
"Points" text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When they played Universidad de Chile, what was the score of the first leg?
### Response:
|
SELECT COUNT("1st leg") FROM table_21445 WHERE "Team #2" = 'Universidad de Chile'
|
### Instruction:
CREATE TABLE table_name_81 (
week VARCHAR,
opponent VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Week, when Opponent is At Chicago Bears, and when Attendance is greater than 49,070?
### Response:
|
SELECT COUNT(week) FROM table_name_81 WHERE opponent = "at chicago bears" AND attendance > 49 OFFSET 070
|
### Instruction:
CREATE TABLE table_58035 (
"Round" real,
"Player" text,
"Nationality" text,
"NHL Team" text,
"College/Junior/Club Team (League)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the nhl team for round 10?
### Response:
|
SELECT "NHL Team" FROM table_58035 WHERE "Round" = '10'
|
### Instruction:
CREATE TABLE table_32395 (
"Player" text,
"Team" text,
"Date" text,
"Opposition" text,
"Game" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On which date did Ger Loughnane from Team Clare have a match?
### Response:
|
SELECT "Date" FROM table_32395 WHERE "Team" = 'clare' AND "Player" = 'ger loughnane'
|
### Instruction:
CREATE TABLE table_name_70 (
rating VARCHAR,
share VARCHAR,
viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE RATING THAT HAD A SHARE SMALLER THAN 4, AND 2.47 MILLION VIEWERS?
### Response:
|
SELECT COUNT(rating) FROM table_name_70 WHERE share < 4 AND viewers__millions_ > 2.47
|
### Instruction:
CREATE TABLE table_name_6 (
rank INTEGER,
gold VARCHAR,
nation VARCHAR,
bronze VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average rank Finland, which has 1 bronze, more than 1 silver, and less than 0 gold, has?
### Response:
|
SELECT AVG(rank) FROM table_name_6 WHERE bronze = 1 AND silver > 1 AND nation = "finland" AND gold < 0
|
### Instruction:
CREATE TABLE table_61708 (
"Pos." text,
"Class" text,
"Entrant" text,
"Drivers" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the highest laps for glenn seton gregg hansford?
### Response:
|
SELECT MAX("Laps") FROM table_61708 WHERE "Drivers" = 'glenn seton gregg hansford'
|
### Instruction:
CREATE TABLE Person (
name varchar(20),
age INTEGER,
city TEXT,
gender TEXT,
job TEXT
)
CREATE TABLE PersonFriend (
name varchar(20),
friend varchar(20),
year INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average age for each gender. Visualize by bar chart.
### Response:
|
SELECT gender, AVG(age) FROM Person GROUP BY gender
|
### Instruction:
CREATE TABLE table_11359 (
"Year" real,
"Organization" text,
"Award" text,
"Work" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where Award is best actress and Work is first kiss, what is the average Year?
### Response:
|
SELECT AVG("Year") FROM table_11359 WHERE "Award" = 'best actress' AND "Work" = 'first kiss'
|
### Instruction:
CREATE TABLE table_203_305 (
id number,
"round" number,
"#" number,
"player" text,
"nationality" text,
"college/junior/club team (league)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of the last player on this chart ?
### Response:
|
SELECT "player" FROM table_203_305 ORDER BY id DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_48690 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the country that the player with a score of 70-69=139 from?
### Response:
|
SELECT "Country" FROM table_48690 WHERE "Score" = '70-69=139'
|
### Instruction:
CREATE TABLE table_11608735_3 (
state_ VARCHAR,
_federal VARCHAR,
property_taxes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the state and federal when property taxes is 17,199,210
### Response:
|
SELECT state_ & _federal FROM table_11608735_3 WHERE property_taxes = "17,199,210"
|
### Instruction:
CREATE TABLE table_16327 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which college is aligned to the Saskatchewan Roughriders?
### Response:
|
SELECT "College" FROM table_16327 WHERE "CFL Team" = 'Saskatchewan Roughriders'
|
### Instruction:
CREATE TABLE table_62981 (
"Year" real,
"Category" text,
"Nominee(s)" text,
"Episode" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result when the nominee(s) of janine sherman?
### Response:
|
SELECT "Result" FROM table_62981 WHERE "Nominee(s)" = 'janine sherman'
|
### Instruction:
CREATE TABLE table_45822 (
"Name" text,
"Height" text,
"Weight" text,
"Spike" text,
"2008 club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the name of the player from Olympiacos in 2008?
### Response:
|
SELECT "Name" FROM table_45822 WHERE "2008 club" = 'olympiacos'
|
### Instruction:
CREATE TABLE table_27403436_1 (
us_viewers__million_ VARCHAR,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many viewers watched the episode written by shana goldberg-meehan & greg malins?
### Response:
|
SELECT us_viewers__million_ FROM table_27403436_1 WHERE written_by = "Shana Goldberg-Meehan & Greg Malins"
|
### Instruction:
CREATE TABLE table_52911 (
"Name" text,
"Height" text,
"Weight" text,
"Spike" text,
"2008 club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was in the 2008 club of gabeca montichiari?
### Response:
|
SELECT "Name" FROM table_52911 WHERE "2008 club" = 'gabeca montichiari'
|
### Instruction:
CREATE TABLE table_27310 (
"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 number of district for bill shuster
### Response:
|
SELECT COUNT("District") FROM table_27310 WHERE "Incumbent" = 'Bill Shuster'
|
### Instruction:
CREATE TABLE table_64371 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Week number on October 10, 1976?
### Response:
|
SELECT COUNT("Week") FROM table_64371 WHERE "Date" = 'october 10, 1976'
|
### Instruction:
CREATE TABLE table_413 (
"Jurisdiction" text,
"Voted Yes" real,
"Percent Yes" text,
"Voted No" real,
"Percent No" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the percent yes where voted yes is 2410119
### Response:
|
SELECT "Percent Yes" FROM table_413 WHERE "Voted Yes" = '2410119'
|
### Instruction:
CREATE TABLE table_204_489 (
id number,
"rank" number,
"name" text,
"height" text,
"floors" number,
"year" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of floors of the oldest building ?
### Response:
|
SELECT "floors" FROM table_204_489 ORDER BY "year" LIMIT 1
|
### Instruction:
CREATE TABLE table_204_108 (
id number,
"typ" text,
"construction time" text,
"cylinders" text,
"capacity" text,
"power" text,
"top speed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which typ has the most capacity ?
### Response:
|
SELECT "typ" FROM table_204_108 ORDER BY "capacity" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_627 (
id number,
"date" text,
"opponent" text,
"score" text,
"top scorer (total points)" text,
"venue (location)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in how many games did this team have more than 80 points ?
### Response:
|
SELECT COUNT(*) FROM table_204_627 WHERE "score" > 80
|
### Instruction:
CREATE TABLE table_1590 (
"Character" text,
"Indianapolis Concerts" text,
"Sarasota" text,
"Broadway" text,
"Brighton Cast" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the indianapolis concerts for les minski
### Response:
|
SELECT "Indianapolis Concerts" FROM table_1590 WHERE "Sarasota" = 'Les Minski'
|
### Instruction:
CREATE TABLE table_37391 (
"Surname" text,
"First" text,
"D.O.B." text,
"Bats" text,
"Throws" text,
"Position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is mr. ryan's DOB?
### Response:
|
SELECT "D.O.B." FROM table_37391 WHERE "Surname" = 'ryan'
|
### Instruction:
CREATE TABLE table_57326 (
"Week" real,
"Date" text,
"Opponent" text,
"Home/Away Game" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the away game in week 8?
### Response:
|
SELECT "Date" FROM table_57326 WHERE "Home/Away Game" = 'away' AND "Week" = '8'
|
### Instruction:
CREATE TABLE table_name_9 (
county VARCHAR,
area__sq_mi_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which is the total number in the 2010 Census in Oconee County where the area in square miles was less than 674?
### Response:
|
SELECT SUM(2010 AS _census_population) FROM table_name_9 WHERE county = "oconee county" AND area__sq_mi_ < 674
|
### Instruction:
CREATE TABLE table_16061 (
"Round" real,
"Choice" real,
"Overall" real,
"Player name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which overall pick number went to college at Youngstown State?
### Response:
|
SELECT MIN("Overall") FROM table_16061 WHERE "College" = 'Youngstown State'
|
### Instruction:
CREATE TABLE table_10274 (
"Tie no" text,
"Home team" text,
"Score 1" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the match in which Portsmouth was the Away team?
### Response:
|
SELECT "Score 1" FROM table_10274 WHERE "Away team" = 'portsmouth'
|
### Instruction:
CREATE TABLE table_13952 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the score for the tournament cagnes-sur-mer?
### Response:
|
SELECT "Score" FROM table_13952 WHERE "Tournament" = 'cagnes-sur-mer'
|
### Instruction:
CREATE TABLE table_36744 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the incumbent from the south carolina 1 district first elected?
### Response:
|
SELECT "First elected" FROM table_36744 WHERE "District" = 'south carolina 1'
|
### Instruction:
CREATE TABLE table_76884 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest game with a score of 99-89?
### Response:
|
SELECT MIN("Game") FROM table_76884 WHERE "Score" = '99-89'
|
### Instruction:
CREATE TABLE table_50567 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place had a score of 73-69-68=210?
### Response:
|
SELECT "Place" FROM table_50567 WHERE "Score" = '73-69-68=210'
|
### Instruction:
CREATE TABLE table_26916 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What numbered pick attended western ontario and is an OL?
### Response:
|
SELECT "Pick #" FROM table_26916 WHERE "School" = 'Western Ontario' AND "Position" = 'OL'
|
### Instruction:
CREATE TABLE table_150 (
"Team" text,
"Stadium" text,
"Capacity" real,
"Highest" real,
"Lowest" real,
"Average" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The stenhousemuir team had how many highest attendances?
### Response:
|
SELECT COUNT("Highest") FROM table_150 WHERE "Team" = 'Stenhousemuir'
|
### Instruction:
CREATE TABLE table_75901 (
"Date" text,
"Time" text,
"Home" text,
"Away" text,
"Score" text,
"Ground" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the home team of the game at the time of 15:00?
### Response:
|
SELECT "Home" FROM table_75901 WHERE "Time" = '15:00'
|
### Instruction:
CREATE TABLE table_3069 (
"Round" real,
"Date" text,
"Country" text,
"Circuit" text,
"Sprint Winner" text,
"Main Winner" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of date for 10
### Response:
|
SELECT COUNT("Date") FROM table_3069 WHERE "Round" = '10'
|
### Instruction:
CREATE TABLE table_2194 (
"Episode" text,
"First broadcast" text,
"Rufus guest" text,
"Marcus guest" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When is the first broadcast for episodes where Rufus's guest is Jack Whitehall?
### Response:
|
SELECT "First broadcast" FROM table_2194 WHERE "Rufus guest" = 'Jack Whitehall'
|
### Instruction:
CREATE TABLE table_54650 (
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the director of the episode with production code ad1a26?
### Response:
|
SELECT "Directed by" FROM table_54650 WHERE "Production code" = 'ad1a26'
|
### Instruction:
CREATE TABLE table_64760 (
"Game" text,
"Date" text,
"Opponent" text,
"Score" text,
"Location Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent has a 26-12 record?
### Response:
|
SELECT "Opponent" FROM table_64760 WHERE "Record" = '26-12'
|
### Instruction:
CREATE TABLE table_16510 (
"Hand" text,
"1 credit" real,
"2 credits" real,
"3 credits" real,
"4 credits" real,
"5 credits" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many 4 credits is the hand two pair?
### Response:
|
SELECT COUNT("4 credits") FROM table_16510 WHERE "Hand" = 'Two pair'
|
### Instruction:
CREATE TABLE table_35778 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the Boston Bruins game from April 11?
### Response:
|
SELECT "Score" FROM table_35778 WHERE "Home" = 'boston bruins' AND "Date" = 'april 11'
|
### Instruction:
CREATE TABLE table_name_31 (
qual_2 VARCHAR,
team VARCHAR,
qual_1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the second qualifying time for the dale coyne racing team with a first qualifying time of 1:00.081?
### Response:
|
SELECT qual_2 FROM table_name_31 WHERE team = "dale coyne racing" AND qual_1 = "1:00.081"
|
### Instruction:
CREATE TABLE table_20799587_1 (
obama_number INTEGER,
mccain_percentage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people voted for Obama in the county where McCain got 72.75% of the votes?
### Response:
|
SELECT MIN(obama_number) FROM table_20799587_1 WHERE mccain_percentage = "72.75%"
|
### Instruction:
CREATE TABLE race (
track_id VARCHAR
)
CREATE TABLE track (
name VARCHAR,
location VARCHAR,
track_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the name and location of track with 1 race.
### Response:
|
SELECT T2.name, T2.location FROM race AS T1 JOIN track AS T2 ON T1.track_id = T2.track_id GROUP BY T1.track_id HAVING COUNT(*) = 1
|
### Instruction:
CREATE TABLE table_12983929_1 (
construction_start VARCHAR,
net_power VARCHAR,
unit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the construction of the unit Chinon B1 with net power of 905 MW start?
### Response:
|
SELECT construction_start FROM table_12983929_1 WHERE net_power = "905 MW" AND unit = "Chinon B1"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.