instruction
stringlengths
231
6.3k
output
stringlengths
2
2.03k
### Instruction: CREATE TABLE table_69557 ( "Round" real, "Pick #" real, "Overall" real, "Name" text, "Position" text, "College" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the overall pick average with the pick # lower than 15? ### Response:
SELECT AVG("Overall") FROM table_69557 WHERE "Pick #" < '15'
### Instruction: CREATE TABLE table_50918 ( "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 was the air date of 'Gary tries to do it all'? ### Response:
SELECT "Air Date" FROM table_50918 WHERE "Episode" = 'gary tries to do it all'
### Instruction: CREATE TABLE table_name_1 ( date VARCHAR, attendance VARCHAR, week VARCHAR, venue VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which date's week was more than 4 with the venue being City Stadium and where the attendance was more than 14,297? ### Response:
SELECT date FROM table_name_1 WHERE week > 4 AND venue = "city stadium" AND attendance > 14 OFFSET 297
### Instruction: CREATE TABLE table_5069 ( "Ranking" real, "Nationality" text, "Name" text, "Years" text, "Goals" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What ranking has the nationality of spain and the goals of 26? ### Response:
SELECT "Ranking" FROM table_5069 WHERE "Nationality" = 'spain' AND "Goals" = '26'
### Instruction: CREATE TABLE table_28032 ( "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 touchdowns did the left guard took? ### Response:
SELECT MAX("Touchdowns") FROM table_28032 WHERE "Position" = 'Left guard'
### 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. -- Count job title of all people ordered by their names using a bar chart. ### Response:
SELECT job, COUNT(job) FROM Person GROUP BY job ORDER BY name
### Instruction: CREATE TABLE table_71359 ( "Year" text, "Division" text, "League" text, "Regular Season" text, "Playoffs" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What place did the Nashville Metros place in the 1994/95 Season? ### Response:
SELECT "Regular Season" FROM table_71359 WHERE "Year" = '1994/95'
### Instruction: CREATE TABLE table_36329 ( "Rank" text, "Runs" text, "Opponent" text, "Venue" text, "Season" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the rank of the team during season 2006/07? ### Response:
SELECT "Rank" FROM table_36329 WHERE "Season" = '2006/07'
### Instruction: CREATE TABLE table_name_98 ( goals_against INTEGER, position VARCHAR, wins VARCHAR, losses VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the average number of goals against with more than 12 wins, 12 losses, and a position greater than 3? ### Response:
SELECT AVG(goals_against) FROM table_name_98 WHERE wins > 12 AND losses = 12 AND position > 3
### Instruction: CREATE TABLE table_204_261 ( 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. -- which nation has the most bronze medals ? ### Response:
SELECT "nation" FROM table_204_261 ORDER BY "bronze" DESC LIMIT 1
### Instruction: CREATE TABLE table_14321 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the most attendance whent he record is 45-57 ### Response:
SELECT MAX("Attendance") FROM table_14321 WHERE "Record" = '45-57'
### Instruction: CREATE TABLE table_name_30 ( nationality VARCHAR, college_junior_club_team VARCHAR, player VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Nationality for the university of wisconsin (wcha), and a Player of bob lundeen? ### Response:
SELECT nationality FROM table_name_30 WHERE college_junior_club_team = "university of wisconsin (wcha)" AND player = "bob lundeen"
### Instruction: CREATE TABLE table_6359 ( "Games" real, "Drawn" real, "Lost" real, "Points difference" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many of lost have 11 as the points, and a drawn greater than 1? ### Response:
SELECT COUNT("Lost") FROM table_6359 WHERE "Points" = '11' AND "Drawn" > '1'
### Instruction: CREATE TABLE table_13822 ( "Rank" real, "Lane" real, "Name" text, "Nationality" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the highest lane for the poland swimmer who ranked under 6? ### Response:
SELECT MAX("Lane") FROM table_13822 WHERE "Rank" < '6' AND "Nationality" = 'poland'
### Instruction: CREATE TABLE table_80300 ( "Year" text, "Start" text, "Qual" text, "Rank" text, "Finish" text, "Laps" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the rank with the qual of 115.095? ### Response:
SELECT "Rank" FROM table_80300 WHERE "Qual" = '115.095'
### Instruction: CREATE TABLE table_41757 ( "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 is the nationality of the School/Club team of Louisville? ### Response:
SELECT "Nationality" FROM table_41757 WHERE "School/Club Team" = 'louisville'
### Instruction: CREATE TABLE table_63578 ( "Name" text, "Height" text, "Weight" text, "Spike" text, "2008 club" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Weight has a 2008 Club of Acqua Paradiso Gabeca? ### Response:
SELECT "Weight" FROM table_63578 WHERE "2008 club" = 'acqua paradiso gabeca'
### Instruction: CREATE TABLE table_14181 ( "School" text, "Location" text, "Mascot" text, "Enrollment" real, "IHSAA Class" text, "County" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the enrollment at Lanesville? ### Response:
SELECT AVG("Enrollment") FROM table_14181 WHERE "School" = 'lanesville'
### Instruction: CREATE TABLE table_42992 ( "Pos." text, "Player" text, "Team" text, "Height" text, "Weight" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player who weighs 210 plays for the Reno Bighorns? ### Response:
SELECT "Player" FROM table_42992 WHERE "Weight" = '210' AND "Team" = 'reno bighorns'
### Instruction: CREATE TABLE table_36423 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Save" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the record the day David Weathers (15) had a save? ### Response:
SELECT "Record" FROM table_36423 WHERE "Save" = 'david weathers (15)'
### Instruction: CREATE TABLE table_42313 ( "Country" text, "Automobile Name" text, "Manufacturer" text, "Engine Make/Capacity" text, "Year" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what country was the car with the z 171cc engine? ### Response:
SELECT "Country" FROM table_42313 WHERE "Engine Make/Capacity" = 'čz 171cc'
### Instruction: CREATE TABLE table_30327 ( "Year Location" text, "Mens Singles" text, "Womens Singles" text, "Mens Doubles" text, "Womens Doubles" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name the womens doubles for werner schlager ### Response:
SELECT "Womens Doubles" FROM table_30327 WHERE "Mens Singles" = 'Werner Schlager'
### Instruction: CREATE TABLE table_203_377 ( 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. -- how many medals did senegal win ? ### Response:
SELECT "total" FROM table_203_377 WHERE "nation" = 'senegal'
### Instruction: CREATE TABLE table_48159 ( "Year" real, "Winner" text, "Jockey" text, "Trainer" text, "Owner" text, "Time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Jockey, when Time is 1:15.89? ### Response:
SELECT "Jockey" FROM table_48159 WHERE "Time" = '1:15.89'
### Instruction: CREATE TABLE table_28498 ( "Institution" text, "Location" text, "Founded" real, "Type" text, "Enrollment" real, "Joined" real, "Nickname" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many joined the Warriors? ### Response:
SELECT COUNT("Joined") FROM table_28498 WHERE "Nickname" = 'Warriors'
### Instruction: CREATE TABLE table_28913 ( "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. -- What is every district for incumbent Joseph Desha? ### Response:
SELECT "District" FROM table_28913 WHERE "Incumbent" = 'Joseph Desha'
### Instruction: CREATE TABLE table_261642_3 ( c__nf_km_ VARCHAR, l__mh_km_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the c (nf/km) when the l (mh/km) is 0.6099? ### Response:
SELECT c__nf_km_ FROM table_261642_3 WHERE l__mh_km_ = "0.6099"
### Instruction: CREATE TABLE table_204_791 ( id number, "event" text, "winner" text, "second" text, "third" text, "fourth" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- in what two races did chelsea williams earn the same rank ? ### Response:
SELECT "event" FROM table_204_791 WHERE "winner" = 'chelsea wlliams'
### Instruction: CREATE TABLE table_18862490_2 ( year INTEGER, score VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the first yar that someone won with a score of 68-66-68-71=273? ### Response:
SELECT MIN(year) FROM table_18862490_2 WHERE score = 68 - 66 - 68 - 71 = 273
### Instruction: CREATE TABLE table_2647 ( "Outcome" text, "Year" real, "Championship" text, "Surface" text, "Opponent in the final" text, "Score in the final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What were the US Open's final scores? ### Response:
SELECT "Score in the final" FROM table_2647 WHERE "Championship" = 'US Open'
### Instruction: CREATE TABLE table_203_583 ( id number, "title" text, "release" number, "6th gen" text, "handheld" text, "note" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what is the number of titles released by psikyo in 2004 ? ### Response:
SELECT COUNT("title") FROM table_203_583 WHERE "release" = 2004
### Instruction: CREATE TABLE table_61981 ( "Draw" real, "Language" text, "Artist" text, "English translation" text, "Place" real, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Can you tell me the English translation that has the Artist of camillo felgen? ### Response:
SELECT "English translation" FROM table_61981 WHERE "Artist" = 'camillo felgen'
### Instruction: CREATE TABLE table_6030 ( "Year" real, "Group" text, "Award" text, "Film/Series" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- For which group was Kim nominated in 2010 for Best International Actress? ### Response:
SELECT "Group" FROM table_6030 WHERE "Year" = '2010' AND "Award" = 'best international actress'
### Instruction: CREATE TABLE race ( race_id number, name text, class text, date text, track_id text ) CREATE TABLE track ( track_id number, name text, location text, seating number, year_opened number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Show all track names that have had no races. ### Response:
SELECT name FROM track WHERE NOT track_id IN (SELECT track_id FROM race)
### Instruction: CREATE TABLE table_203_277 ( id number, "entered" number, "wrestler" text, "place" text, "eliminated by" text, "time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which wrestler lasted the least amount of time in part two of battle royal ? ### Response:
SELECT "wrestler" FROM table_203_277 ORDER BY "time" LIMIT 1
### Instruction: CREATE TABLE table_41864 ( "Peel" 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 largest Against with a Byes larger than 0? ### Response:
SELECT MAX("Against") FROM table_41864 WHERE "Byes" > '0'
### Instruction: CREATE TABLE table_42875 ( "Year" real, "Competition" text, "Venue" text, "Position" text, "Event" text, "Notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Notes has a Venue of barcelona, spain? ### Response:
SELECT "Notes" FROM table_42875 WHERE "Venue" = 'barcelona, spain'
### Instruction: CREATE TABLE table_203_707 ( id number, "rank" number, "npc" text, "gold" number, "silver" number, "bronze" number, "total" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many silver medals did poland win ? ### Response:
SELECT "silver" FROM table_203_707 WHERE "npc" = 'poland'
### Instruction: CREATE TABLE table_18535 ( "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. -- who athe party where district is louisiana 2? ### Response:
SELECT "Party" FROM table_18535 WHERE "District" = 'Louisiana 2'
### Instruction: CREATE TABLE table_204_297 ( 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. -- how many countries did not earn silver medals ? ### Response:
SELECT COUNT("nation") FROM table_204_297 WHERE "silver" = 0
### Instruction: CREATE TABLE table_75883 ( "Name" text, "GP-GS" text, "Year" text, "Att-Cmp-Int" text, "Avg/G" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which quarterback had an Avg/G of 195.8? ### Response:
SELECT "Name" FROM table_75883 WHERE "Avg/G" = '195.8'
### Instruction: CREATE TABLE table_203_835 ( id number, "season" text, "club" text, "country" text, "competition" text, "apps." number, "goals" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- which competition occurred the most ? ### Response:
SELECT "competition" FROM table_203_835 GROUP BY "competition" ORDER BY COUNT(*) DESC LIMIT 1
### Instruction: CREATE TABLE table_name_99 ( color_commentator_s_ VARCHAR, play_by_play VARCHAR, flagship_station VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Play-by-play of sean grande, and a Flagship Station of wrko involved what color commentator? ### Response:
SELECT color_commentator_s_ FROM table_name_99 WHERE play_by_play = "sean grande" AND flagship_station = "wrko"
### Instruction: CREATE TABLE table_24515 ( "Regional" text, "Champions" text, "Runners-up" text, "Third place" text, "Fourth place" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many persons got the fourth position when the regional was shikoku? ### Response:
SELECT COUNT("Fourth place") FROM table_24515 WHERE "Regional" = 'Shikoku'
### Instruction: CREATE TABLE table_47484 ( "Res." text, "Record" text, "Opponent" text, "Method" text, "Event" text, "Round" text, "Location" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is Round, when Record is '4-1'? ### Response:
SELECT "Round" FROM table_47484 WHERE "Record" = '4-1'
### Instruction: CREATE TABLE table_28448 ( "Episode #" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Prod. code" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many production codes does 'number one' have? ### Response:
SELECT MAX("Prod. code") FROM table_28448 WHERE "Title" = 'Number One'
### Instruction: CREATE TABLE table_15511178_3 ( report VARCHAR, pole_position VARCHAR, winning_team VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Did the race get reported where the winning team was Newman Wachs racing and the pole belonged to Carl Skerlong ### Response:
SELECT report FROM table_15511178_3 WHERE pole_position = "Carl Skerlong" AND winning_team = "Newman Wachs Racing"
### Instruction: CREATE TABLE table_5604 ( "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 surface was the November 5, 1995 match played on? ### Response:
SELECT "Surface" FROM table_5604 WHERE "Date" = 'november 5, 1995'
### Instruction: CREATE TABLE table_name_87 ( driving_force_ex VARCHAR, gt_force VARCHAR, g27_racing_wheel VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- GT Force of yes, and a G27 Racing Wheel of 16 involves which driving force ex? ### Response:
SELECT driving_force_ex FROM table_name_87 WHERE gt_force = "yes" AND g27_racing_wheel = "16"
### Instruction: CREATE TABLE table_name_94 ( introduced INTEGER, retired VARCHAR, manufacturer VARCHAR, quantity VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many in the introduced section had Fokker as a manufacturer, a quantity of 5, and retired later than 1999? ### Response:
SELECT SUM(introduced) FROM table_name_94 WHERE manufacturer = "fokker" AND quantity = 5 AND retired > 1999
### Instruction: CREATE TABLE table_74267 ( "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. -- How many draft pick positions did Matt Bradley have? ### Response:
SELECT COUNT("Position") FROM table_74267 WHERE "Player" = 'Matt Bradley'
### Instruction: CREATE TABLE table_43092 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent on December 18, 2005? ### Response:
SELECT "Opponent" FROM table_43092 WHERE "Date" = 'december 18, 2005'
### Instruction: CREATE TABLE table_64116 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Attendance" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who was the opponent on september 10, 1979? ### Response:
SELECT "Opponent" FROM table_64116 WHERE "Date" = 'september 10, 1979'
### Instruction: CREATE TABLE table_45276 ( "Senator" text, "Party" text, "District" real, "Home Town" text, "Took Office" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What district has a democratic leader from Roby? ### Response:
SELECT SUM("District") FROM table_45276 WHERE "Party" = 'democratic' AND "Home Town" = 'roby'
### Instruction: CREATE TABLE table_20860 ( "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. -- What season was the episode titled 'Harlequin' in? ### Response:
SELECT MAX("Season #") FROM table_20860 WHERE "Title" = 'Harlequin'
### Instruction: CREATE TABLE table_62938 ( "Opposing Team" text, "Against" real, "Date" text, "Venue" text, "Round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What round was on 11/11/1992? ### Response:
SELECT "Round" FROM table_62938 WHERE "Date" = '11/11/1992'
### Instruction: CREATE TABLE table_72815 ( "Name" text, "Latitude" text, "Longitude" text, "Diameter (km)" text, "Year named" real, "Name origin" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the origin of the name of Keller Patera? ### Response:
SELECT "Name origin" FROM table_72815 WHERE "Name" = 'Keller Patera'
### Instruction: CREATE TABLE table_60157 ( "Team" text, "Opponent" text, "Score" text, "Venue" text, "Round" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the venue of the match with the cronulla sharks as the opponent? ### Response:
SELECT "Venue" FROM table_60157 WHERE "Opponent" = 'cronulla sharks'
### Instruction: CREATE TABLE table_14333 ( "Nation" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which nation has a gold less than 2 and a bronze less than 5? ### Response:
SELECT "Nation" FROM table_14333 WHERE "Gold" < '2' AND "Bronze" < '5'
### Instruction: CREATE TABLE table_34537 ( "Name" text, "Town/City" text, "Borough" text, "Region" text, "Type" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what Borough is the History Type Fairbanks Community Museum? ### Response:
SELECT "Borough" FROM table_34537 WHERE "Type" = 'history' AND "Name" = 'fairbanks community museum'
### Instruction: CREATE TABLE table_69257 ( "Week" real, "Date" text, "Visiting Team" text, "Final Score" text, "Host Team" text, "Stadium" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- The final score was 24-34 on what date? ### Response:
SELECT "Date" FROM table_69257 WHERE "Final Score" = '24-34'
### Instruction: CREATE TABLE table_34840 ( "Date" text, "Opponent" text, "Score" text, "Loss" text, "Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the score of the game when the record was 50-85? ### Response:
SELECT "Score" FROM table_34840 WHERE "Record" = '50-85'
### Instruction: CREATE TABLE table_55988 ( "School's name" text, "School's namesake" text, "Year opened" text, "Principal" text, "Mascot" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the mascot whose school opened in 1970? ### Response:
SELECT "Mascot" FROM table_55988 WHERE "Year opened" = '1970'
### Instruction: CREATE TABLE table_name_95 ( league_goals INTEGER, league_apps VARCHAR, league_cup_goals VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the league goals when the league cup goals is less than 0 and 16 (1) league apps? ### Response:
SELECT AVG(league_goals) FROM table_name_95 WHERE league_apps = "16 (1)" AND league_cup_goals < 0
### Instruction: CREATE TABLE table_45626 ( "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 Date of the game where the Cavaliers have a Record of 15-27? ### Response:
SELECT "Date" FROM table_45626 WHERE "Record" = '15-27'
### Instruction: CREATE TABLE table_204_427 ( id number, "creature (other planes)" text, "page" text, "other appearances" text, "variants" text, "description" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many creatures are included before page 42 ? ### Response:
SELECT COUNT("creature (other planes)") FROM table_204_427 WHERE "page" < 42
### Instruction: CREATE TABLE table_51056 ( "Channel" real, "Video" text, "Aspect" text, "PSIP Short Name" text, "Programming" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the PSIP Short name for the Channel that is less than 51.6? ### Response:
SELECT "PSIP Short Name" FROM table_51056 WHERE "Channel" < '51.6'
### Instruction: CREATE TABLE captain ( captain_id number, name text, ship_id number, age text, class text, rank text ) CREATE TABLE ship ( ship_id number, name text, type text, built_year number, class text, flag text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Sort all captain names by their ages from old to young. ### Response:
SELECT name FROM captain ORDER BY age DESC
### Instruction: CREATE TABLE table_50114 ( "Game" real, "Date" real, "Opponent" text, "Score" text, "Decision" text, "Location/Attendance" text, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Who had the decision goal when the date was 1? ### Response:
SELECT "Decision" FROM table_50114 WHERE "Date" = '1'
### Instruction: CREATE TABLE table_11254821_2 ( points_awarded__platinum_ INTEGER, points_awarded__gold_ VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- How many platinum points were awarded when 6 gold points were awarded? ### Response:
SELECT MAX(points_awarded__platinum_) FROM table_11254821_2 WHERE points_awarded__gold_ = 6
### Instruction: CREATE TABLE table_8905 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Stadium" text, "Record" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the Attendance on November 26? ### Response:
SELECT "Attendance" FROM table_8905 WHERE "Date" = 'november 26'
### Instruction: CREATE TABLE table_38247 ( "Games" real, "Drawn" real, "Lost" real, "Points difference" text, "Points" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which Games have a Drawn smaller than 1, and a Lost smaller than 1? ### Response:
SELECT "Games" FROM table_38247 WHERE "Drawn" < '1' AND "Lost" < '1'
### Instruction: CREATE TABLE table_name_79 ( rbis INTEGER, team VARCHAR, date VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When the team is the Boston Red Sox and the is date July 27, 1946, what are the average RBIs? ### Response:
SELECT AVG(rbis) FROM table_name_79 WHERE team = "boston red sox" AND date = "july 27, 1946"
### Instruction: CREATE TABLE table_50400 ( "Pick" real, "Player" text, "Nationality" text, "New WNBA Team" text, "Former WNBA Team" text, "College/Country/Team" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which player was picked after 23? ### Response:
SELECT "Player" FROM table_50400 WHERE "Pick" > '23'
### Instruction: CREATE TABLE table_203_324 ( id number, "chord" text, "root" text, "major third" text, "perfect fifth" text, "minor seventh" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- name the note that appears last on the minor seventh column of the table . ### Response:
SELECT "minor seventh" FROM table_203_324 ORDER BY id DESC LIMIT 1
### Instruction: CREATE TABLE table_name_9 ( tonnage VARCHAR, ship VARCHAR, builder VARCHAR, original_operator VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the Tonnage that has builder AG Vulcan, and the original operator NDL, and the ship, Prinzess Irene? ### Response:
SELECT tonnage FROM table_name_9 WHERE builder = "ag vulcan" AND original_operator = "ndl" AND ship = "prinzess irene"
### Instruction: CREATE TABLE table_name_69 ( winning_score VARCHAR, margin_of_victory VARCHAR, runner_s__up VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the winning score when the margin of victory was 2 strokes and the runner-up was Pat Bradley? ### Response:
SELECT winning_score FROM table_name_69 WHERE margin_of_victory = "2 strokes" AND runner_s__up = "pat bradley"
### Instruction: CREATE TABLE table_204_54 ( id number, "pondicherry assembly" text, "duration" text, "name of m.l.a." text, "party affiliation" text, "election year" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many were affiliated with the janata party ? ### Response:
SELECT COUNT(*) FROM table_204_54 WHERE "party affiliation" = 'janata party'
### Instruction: CREATE TABLE table_79935 ( "Year" real, "Awards" text, "Categorie" text, "Movie" text, "Result" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- In what year was the movie 8 women up for a C sar Award? ### Response:
SELECT MIN("Year") FROM table_79935 WHERE "Movie" = '8 women' AND "Awards" = 'césar award'
### Instruction: CREATE TABLE table_10314 ( "Sport" text, "Gold" real, "Silver" real, "Bronze" real, "Total" real ) -- Using valid SQLite, answer the following questions for the tables provided above. -- I want the lowest Gold for silver being 2 and electronic sports ### Response:
SELECT MIN("Gold") FROM table_10314 WHERE "Silver" = '2' AND "Sport" = 'electronic sports'
### Instruction: CREATE TABLE table_43852 ( "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 opponent on December 16, 1989? ### Response:
SELECT "Opponent" FROM table_43852 WHERE "Date" = 'december 16, 1989'
### Instruction: CREATE TABLE table_name_70 ( took_office INTEGER, name VARCHAR, up_for_reelection VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the earliest year that Yvette Alexander took office and was up for reelection after 2016? ### Response:
SELECT MIN(took_office) FROM table_name_70 WHERE name = "yvette alexander" AND up_for_reelection > 2016
### Instruction: CREATE TABLE table_14117 ( "Title" text, "Series" text, "Director" text, "Production Number" text, "Release date" text, "reissue?" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the title of the production with a number of 1039? ### Response:
SELECT "Title" FROM table_14117 WHERE "Production Number" = '1039'
### Instruction: CREATE TABLE table_17636 ( "State" text, "Preliminaries" text, "Interview" text, "Swimsuit" text, "Evening Gown" text, "Average" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Which interview score belongs to the state of Nevada contestant? ### Response:
SELECT "Interview" FROM table_17636 WHERE "State" = 'Nevada'
### Instruction: CREATE TABLE table_204_673 ( id number, "name" text, "egot completed" text, "emmy" number, "grammy" number, "oscar" number, "tony" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- who took the least time to complete egot ? ### Response:
SELECT "name" FROM table_204_673 ORDER BY "egot completed" LIMIT 1
### Instruction: CREATE TABLE table_20344 ( "Name" text, "Japanese" text, "Date of designation" text, "Date of reclassification" text, "Region" text, "Prefecture" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- Name all the date of designations for kurume ### Response:
SELECT "Date of designation" FROM table_20344 WHERE "Name" = 'Kurume'
### Instruction: CREATE TABLE table_2417395_4 ( reason_for_change VARCHAR, date_successor_seated VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What was the reason for change to the successor that was seated on December 13, 1880? ### Response:
SELECT reason_for_change FROM table_2417395_4 WHERE date_successor_seated = "December 13, 1880"
### Instruction: CREATE TABLE table_53886 ( "Date" text, "Visitor" text, "Score" text, "Home" text, "Decision" text, "Attendance" real, "Record" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the record of the game when Los Angeles was the home team? ### Response:
SELECT "Record" FROM table_53886 WHERE "Home" = 'los angeles'
### Instruction: CREATE TABLE table_19924 ( "Series Ep." text, "Episode" real, "Segment A" text, "Segment B" text, "Segment C" text, "Segment D" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What is the segment A on episode 237? ### Response:
SELECT "Segment A" FROM table_19924 WHERE "Episode" = '237'
### Instruction: CREATE TABLE table_46760 ( "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 the team 1 in the match with a team 2 of Karabakh? ### Response:
SELECT "Team 1" FROM table_46760 WHERE "Team 2" = 'karabakh'
### Instruction: CREATE TABLE table_59041 ( "Week" real, "Date" text, "Opponent" text, "Result" text, "Game site" text, "Record" text, "Attendance" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Date was the Game at Griffith Stadium? ### Response:
SELECT "Date" FROM table_59041 WHERE "Game site" = 'griffith stadium'
### Instruction: CREATE TABLE election ( election_id number, representative_id number, date text, votes number, vote_percent number, seats number, place number ) CREATE TABLE representative ( representative_id number, name text, state text, party text, lifespan text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- List the votes of elections in descending order. ### Response:
SELECT votes FROM election ORDER BY votes DESC
### Instruction: CREATE TABLE table_203_208 ( id number, "team" text, "location" text, "venue" text, "capacity" number, "position in 1993-94" number ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what were the total amount of times minsk is listed as a location ? ### Response:
SELECT COUNT(*) FROM table_203_208 WHERE "location" = 'minsk'
### Instruction: CREATE TABLE table_41723 ( "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. -- Where the away team is Bradford City, who is the home team? ### Response:
SELECT "Home team" FROM table_41723 WHERE "Away team" = 'bradford city'
### Instruction: CREATE TABLE table_19242_5 ( _km² VARCHAR, of_which_currently_forests INTEGER, land_formation VARCHAR ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When middle prut valley is the land formation what is the highest of which currently forests, km ? ### Response:
SELECT MAX(of_which_currently_forests), _km² FROM table_19242_5 WHERE land_formation = "Middle Prut Valley"
### Instruction: CREATE TABLE table_71832 ( "Date" text, "Tournament" text, "Surface" text, "Opponent in the Final" text, "Score in the Final" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- When did Mathieu play against Andrey Golubev? ### Response:
SELECT "Date" FROM table_71832 WHERE "Opponent in the Final" = 'andrey golubev'
### Instruction: CREATE TABLE table_204_101 ( id number, "#" number, "title" text, "producer(s)" text, "performer (s)" text, "sample(s)" text, "length" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many songs have more than one sample ? ### Response:
SELECT COUNT("title") FROM table_204_101 WHERE "sample(s)" > 1
### Instruction: CREATE TABLE table_203_191 ( id number, "year" number, "group" text, "award" text, "result" text, "notes" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- how many times did erbedija win best actor between 1994 and 2012 ? ### Response:
SELECT COUNT(*) FROM table_203_191 WHERE "award" = 'best actor'
### Instruction: CREATE TABLE table_204_694 ( id number, "year" text, "name" text, "date" text, "stages" number, "distance" text, "winner" text, "time" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- what was the largest distance traveled for the marlboro tour ? ### Response:
SELECT MAX("distance") FROM table_204_694
### Instruction: CREATE TABLE table_66627 ( "City of license" text, "Identifier" text, "Frequency" text, "Power" text, "Class" text, "RECNet" text ) -- Using valid SQLite, answer the following questions for the tables provided above. -- What Frequency has the Identifier of CBFX-FM-6? ### Response:
SELECT "Frequency" FROM table_66627 WHERE "Identifier" = 'cbfx-fm-6'