instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_31503 (
"Townland" text,
"Area( acres )" real,
"Barony" text,
"Civil parish" text,
"Poor law union" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of areas where the townland is brittas?
### Response:
|
SELECT COUNT("Area( acres )") FROM table_31503 WHERE "Townland" = 'Brittas'
|
### Instruction:
CREATE TABLE table_75747 (
"Date" text,
"Opponent" text,
"Location" text,
"Result" text,
"Overall" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Location with a Date that is december 10, 1963?
### Response:
|
SELECT "Location" FROM table_75747 WHERE "Date" = 'december 10, 1963'
|
### Instruction:
CREATE TABLE table_68166 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the score on october 14
### Response:
|
SELECT "Score" FROM table_68166 WHERE "Date" = 'october 14'
|
### Instruction:
CREATE TABLE table_13836704_7 (
transit_passengers INTEGER,
international_passengers VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum number of trnsit passeners when the total number of international passengers is 4870184?
### Response:
|
SELECT MAX(transit_passengers) FROM table_13836704_7 WHERE international_passengers = 4870184
|
### Instruction:
CREATE TABLE table_name_17 (
score VARCHAR,
game VARCHAR,
location_attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE SCORE OF THE GAME LARGER THAN 47, AT THE ROSE GARDEN 20,250 IN ATTENDANCE?
### Response:
|
SELECT score FROM table_name_17 WHERE game > 47 AND location_attendance = "rose garden 20,250"
|
### Instruction:
CREATE TABLE table_77313 (
"Rank" real,
"Title" text,
"Studio" text,
"Director(s)" text,
"Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rank has a gross of $35,976,000?
### Response:
|
SELECT "Rank" FROM table_77313 WHERE "Gross" = '$35,976,000'
|
### Instruction:
CREATE TABLE table_203_374 (
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 total medals did germany win ?
### Response:
|
SELECT "total" FROM table_203_374 WHERE "nation" = 'germany'
|
### Instruction:
CREATE TABLE table_4253 (
"Name" text,
"Family name" text,
"Receptor" text,
"Coreceptor" text,
"Property" text,
"Chromosomal location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the chromosomal location of il-1 ?
### Response:
|
SELECT "Chromosomal location" FROM table_4253 WHERE "Name" = 'IL-1β'
|
### Instruction:
CREATE TABLE table_name_90 (
position VARCHAR,
nationality VARCHAR,
years_for_grizzlies VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position is the player from the United States play for the Grizzlies from 2000-2001?
### Response:
|
SELECT position FROM table_name_90 WHERE nationality = "united states" AND years_for_grizzlies = "2000-2001"
|
### Instruction:
CREATE TABLE table_name_92 (
date VARCHAR,
city VARCHAR,
type_of_game VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date has friendly as the type of game, france as an opponent, and paris, france as the city?
### Response:
|
SELECT date FROM table_name_92 WHERE type_of_game = "friendly" AND opponent = "france" AND city = "paris, france"
|
### Instruction:
CREATE TABLE table_11918 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Leading scorer" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score on the 1 December 2007 game?
### Response:
|
SELECT "Score" FROM table_11918 WHERE "Date" = '1 december 2007'
|
### Instruction:
CREATE TABLE table_21979 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Total points" real,
"Number of dances" real,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is average for Cody & Julianne?
### Response:
|
SELECT "Average" FROM table_21979 WHERE "Couple" = 'Cody & Julianne'
|
### Instruction:
CREATE TABLE table_18197 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Status" text,
"Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- To what district does Bill Hefner belong?
### Response:
|
SELECT "District" FROM table_18197 WHERE "Incumbent" = 'Bill Hefner'
|
### Instruction:
CREATE TABLE table_203_750 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long in years down this table cover ?
### Response:
|
SELECT MAX("date") - MIN("date") FROM table_203_750
|
### Instruction:
CREATE TABLE table_55992 (
"Date" text,
"Competition" text,
"Venue" text,
"Result" text,
"Score" text,
"Goals" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the venue when the score was 24 28?
### Response:
|
SELECT "Venue" FROM table_55992 WHERE "Score" = '24–28'
|
### Instruction:
CREATE TABLE table_72577 (
"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.
-- Name the position for pick number 128
### Response:
|
SELECT "Position" FROM table_72577 WHERE "Pick #" = '128'
|
### Instruction:
CREATE TABLE table_203_491 (
id number,
"year" number,
"title" text,
"us hot 100" number,
"us modern rock" number,
"us mainstream rock" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of singles released since 1994 ?
### Response:
|
SELECT COUNT("title") FROM table_203_491
|
### Instruction:
CREATE TABLE table_55496 (
"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's the record for january 10?
### Response:
|
SELECT "Record" FROM table_55496 WHERE "Date" = 'january 10'
|
### Instruction:
CREATE TABLE table_51733 (
"Name" text,
"Street address" text,
"Years as tallest" text,
"Height ft / m" text,
"Floors" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the years the building with 44 floors was tallest?
### Response:
|
SELECT "Years as tallest" FROM table_51733 WHERE "Floors" = '44'
|
### Instruction:
CREATE TABLE table_66988 (
"Ship" text,
"Pennant number" text,
"Laid down" text,
"Launched" text,
"Completed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the laid down for completed of 22 october 1934
### Response:
|
SELECT "Laid down" FROM table_66988 WHERE "Completed" = '22 october 1934'
|
### Instruction:
CREATE TABLE table_52236 (
"Year" real,
"Theme" text,
"Artist" text,
"Mintage" text,
"Issue Price" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which artist created the silver dollar for the 400th anniversary of Quebec?
### Response:
|
SELECT "Artist" FROM table_52236 WHERE "Theme" = '400th anniversary of quebec'
|
### Instruction:
CREATE TABLE table_35814 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which district has joseph t. johnson as an incumbent?
### Response:
|
SELECT "District" FROM table_35814 WHERE "Incumbent" = 'joseph t. johnson'
|
### Instruction:
CREATE TABLE table_6550 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the game on May 4 with Philadelphia as the road team?
### Response:
|
SELECT "Result" FROM table_6550 WHERE "Road Team" = 'philadelphia' AND "Date" = 'may 4'
|
### Instruction:
CREATE TABLE table_28504 (
"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.
-- Who is the original artist of the song choice ' Under My Thumb '?
### Response:
|
SELECT "Original artist" FROM table_28504 WHERE "Song choice" = ' Under My Thumb '
|
### Instruction:
CREATE TABLE table_name_36 (
administrative_panel INTEGER,
nominated_by_the_taoiseach VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average administrative panel of the composition nominated by Taoiseach 0 times with a total less than 4?
### Response:
|
SELECT AVG(administrative_panel) FROM table_name_36 WHERE nominated_by_the_taoiseach = 0 AND total < 4
|
### Instruction:
CREATE TABLE table_38192 (
"Rank" real,
"Name" text,
"Height m (ft)" text,
"Floors" real,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what year was the rank less than 6 for Damac Heights?
### Response:
|
SELECT "Year" FROM table_38192 WHERE "Rank" < '6' AND "Name" = 'damac heights'
|
### Instruction:
CREATE TABLE table_3701 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Replaced by" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For team reggina please mention all the outgoing manager
### Response:
|
SELECT "Outgoing manager" FROM table_3701 WHERE "Team" = 'Reggina'
|
### Instruction:
CREATE TABLE table_name_10 (
n117_2400_iec3 VARCHAR,
n100_iec3 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the N117/2400 IEC3 associated with an N100IEC3 of 25?
### Response:
|
SELECT n117_2400_iec3 FROM table_name_10 WHERE n100_iec3 = "25"
|
### Instruction:
CREATE TABLE table_23979 (
"Round" real,
"Choice" real,
"Player name" text,
"Position" text,
"Height" text,
"Weight" real,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the player name when eastern michigan is the college?
### Response:
|
SELECT "Player name" FROM table_23979 WHERE "College" = 'Eastern Michigan'
|
### Instruction:
CREATE TABLE table_36731 (
"Year" text,
"Champion" text,
"Runner-up" text,
"Score" text,
"Surface" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of champion Ken Rosewall in 1957?
### Response:
|
SELECT "Score" FROM table_36731 WHERE "Champion" = 'ken rosewall' AND "Year" = '1957'
|
### Instruction:
CREATE TABLE table_24427 (
"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.
-- With theme the Year They Were Born, what is the song of choice?
### Response:
|
SELECT "Song choice" FROM table_24427 WHERE "Theme" = 'Year They Were Born'
|
### Instruction:
CREATE TABLE table_68337 (
"Outcome" text,
"Date" text,
"Surface" text,
"Partner" text,
"Opponents" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the match in which mardy fish was the partner?
### Response:
|
SELECT "Score" FROM table_68337 WHERE "Partner" = 'mardy fish'
|
### Instruction:
CREATE TABLE table_name_62 (
set_5 VARCHAR,
set_2 VARCHAR,
set_1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the set 5 for the game with a set 2 of 21-25 and a set 1 of 41633?
### Response:
|
SELECT set_5 FROM table_name_62 WHERE set_2 = "21-25" AND set_1 = "41633"
|
### Instruction:
CREATE TABLE table_54928 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What did Carlton score when they were the Home team?
### Response:
|
SELECT "Home team score" FROM table_54928 WHERE "Home team" = 'carlton'
|
### Instruction:
CREATE TABLE table_68078 (
"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.
-- Who was the visiting team at Raymond James Stadium?
### Response:
|
SELECT "Visiting Team" FROM table_68078 WHERE "Stadium" = 'raymond james stadium'
|
### Instruction:
CREATE TABLE table_29686983_1 (
round VARCHAR,
fastest_lap VARCHAR,
pole_position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the round wher the fabien foret had the fastest lap and david salom was the pole position?
### Response:
|
SELECT round FROM table_29686983_1 WHERE fastest_lap = "Fabien Foret" AND pole_position = "David Salom"
|
### Instruction:
CREATE TABLE table_9535 (
"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 of the game that was played on 23 October 1966?
### Response:
|
SELECT "Venue" FROM table_9535 WHERE "Date" = '23 october 1966'
|
### Instruction:
CREATE TABLE table_18319 (
"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 was the incumbent of texas 3?
### Response:
|
SELECT "Incumbent" FROM table_18319 WHERE "District" = 'Texas 3'
|
### Instruction:
CREATE TABLE table_32105 (
"Title" text,
"Japan" text,
"North America" text,
"Europe" text,
"Australia" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me europe for japan of january 28, 2010
### Response:
|
SELECT "Europe" FROM table_32105 WHERE "Japan" = 'january 28, 2010'
|
### Instruction:
CREATE TABLE table_3156 (
"Tie no" real,
"Home team" text,
"Score 1" text,
"Away team" text,
"Attendance" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the game played with Birmingham City as the away team?
### Response:
|
SELECT "Date" FROM table_3156 WHERE "Away team" = 'Birmingham City'
|
### Instruction:
CREATE TABLE table_32676 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The game on September 2, 1979 was during which week of the season?
### Response:
|
SELECT COUNT("Week") FROM table_32676 WHERE "Date" = 'september 2, 1979'
|
### Instruction:
CREATE TABLE table_204_449 (
id number,
"no" number,
"episode" text,
"title" text,
"original airdate" text,
"viewers" number,
"nightly\nrank" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many viewers watched episode 6 ?
### Response:
|
SELECT "viewers" FROM table_204_449 WHERE "no" = 6
|
### Instruction:
CREATE TABLE table_20939 (
"Number" real,
"Name" text,
"Kilometer" real,
"Pavement" text,
"Length (m)" real,
"Average climb (%)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many have a kilometers of 233?
### Response:
|
SELECT "Number" FROM table_20939 WHERE "Kilometer" = '233'
|
### Instruction:
CREATE TABLE table_204_802 (
id number,
"tie no" number,
"home team" text,
"score" text,
"away team" text,
"date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the total number of home team wins in the first round proper , november 1988 ?
### Response:
|
SELECT COUNT(*) FROM table_204_802 WHERE "score" > "score"
|
### Instruction:
CREATE TABLE table_28885 (
"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 ended up happening in the district Virginia 22?
### Response:
|
SELECT "Result" FROM table_28885 WHERE "District" = 'Virginia 22'
|
### Instruction:
CREATE TABLE table_12862 (
"Elimination" text,
"Wrestler" text,
"Team" text,
"Eliminated by" text,
"Elimination Move" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Wrestler has an Elimination of 7?
### Response:
|
SELECT "Wrestler" FROM table_12862 WHERE "Elimination" = '7'
|
### Instruction:
CREATE TABLE table_72683 (
"Player" text,
"No." real,
"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 school did Dwight Howard play for
### Response:
|
SELECT "School/Club Team" FROM table_72683 WHERE "Player" = 'Dwight Howard'
|
### Instruction:
CREATE TABLE review (
i_id VARCHAR,
rating INTEGER
)
CREATE TABLE item (
title VARCHAR,
i_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of the item with the lowest average rating.
### Response:
|
SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) LIMIT 1
|
### Instruction:
CREATE TABLE table_79115 (
"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 To par value that goes with a Score of 70-69=139?
### Response:
|
SELECT "To par" FROM table_79115 WHERE "Score" = '70-69=139'
|
### Instruction:
CREATE TABLE table_75668 (
"Call sign" text,
"Frequency MHz" text,
"City of license" text,
"ERP W" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Frequency MHz has a Call Sign of K218BE?
### Response:
|
SELECT "Frequency MHz" FROM table_75668 WHERE "Call sign" = 'k218be'
|
### Instruction:
CREATE TABLE table_30852 (
"Series" real,
"Premiere" text,
"Finale" text,
"Runners-up" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many runners-up were there when Joanne Wheatley won?
### Response:
|
SELECT COUNT("Runners-up") FROM table_30852 WHERE "Winner" = 'Joanne Wheatley'
|
### Instruction:
CREATE TABLE table_18570 (
"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 is the result of the first elected is 1943?
### Response:
|
SELECT "Result" FROM table_18570 WHERE "First elected" = '1943'
|
### Instruction:
CREATE TABLE table_64687 (
"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 agg when the seconf leg is 58-75?
### Response:
|
SELECT "Agg." FROM table_64687 WHERE "2nd leg" = '58-75'
|
### Instruction:
CREATE TABLE table_6054 (
"Tone" text,
"Standard Thai" text,
"Phonemic" text,
"Phonetic" text,
"Example meaning in English" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which tone goes with Phonetic of [p a ]?
### Response:
|
SELECT "Tone" FROM table_6054 WHERE "Phonetic" = '[pʰaː˥˥]'
|
### Instruction:
CREATE TABLE table_34989 (
"School Year" text,
"Class A" text,
"Class AA" text,
"Class AAA" text,
"Class AAAA" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was Class AA in School Year 1994-95?
### Response:
|
SELECT "Class AA" FROM table_34989 WHERE "School Year" = '1994-95'
|
### Instruction:
CREATE TABLE table_785 (
"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 was the result of the election for incumbent Cordell Hull?
### Response:
|
SELECT "Result" FROM table_785 WHERE "Incumbent" = 'Cordell Hull'
|
### Instruction:
CREATE TABLE table_2076516_1 (
enrollment__2012_ INTEGER,
school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When university of north carolina at charlotte is the school what is the lowest enrollment in 2012?
### Response:
|
SELECT MIN(enrollment__2012_) FROM table_2076516_1 WHERE school = "University of North Carolina at Charlotte"
|
### Instruction:
CREATE TABLE table_22335 (
"Eliminated" real,
"Wrestler" text,
"Entered" real,
"Eliminated by" text,
"Method of elimination" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the time for the match with Cena?
### Response:
|
SELECT "Time" FROM table_22335 WHERE "Wrestler" = 'Cena'
|
### Instruction:
CREATE TABLE table_37496 (
"Date" real,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Score of 6 3, 7 6?
### Response:
|
SELECT SUM("Date") FROM table_37496 WHERE "Score" = '6–3, 7–6'
|
### Instruction:
CREATE TABLE table_43696 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/junior/club team (league)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE ROUND FOR JAMIE ARNIEL?
### Response:
|
SELECT COUNT("Round") FROM table_43696 WHERE "Player" = 'jamie arniel'
|
### Instruction:
CREATE TABLE table_36107 (
"Year" real,
"Player" text,
"Country" text,
"Score" text,
"Margin of victory" text,
"Winner's share ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is south africa's margin of victory?
### Response:
|
SELECT "Margin of victory" FROM table_36107 WHERE "Country" = 'south africa'
|
### Instruction:
CREATE TABLE table_64686 (
"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 2nd leg when second team is Sumykhimprom?
### Response:
|
SELECT "2nd leg" FROM table_64686 WHERE "Team #2" = 'sumykhimprom'
|
### Instruction:
CREATE TABLE table_203_13 (
id number,
"year" number,
"champion" text,
"score" text,
"runner-up" text,
"coach" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the first year boston college won the championship ?
### Response:
|
SELECT "year" FROM table_203_13 WHERE "champion" = 'boston college' ORDER BY "year" LIMIT 1
|
### Instruction:
CREATE TABLE table_25552 (
"Date" text,
"Location" text,
"Opponent" text,
"Sooners Points" real,
"Opp. Points" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What game date had a record of 17-7?
### Response:
|
SELECT "Date" FROM table_25552 WHERE "Record" = '17-7'
|
### Instruction:
CREATE TABLE table_204_378 (
id number,
"no" number,
"driver" text,
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the first engine listed on this chart ?
### Response:
|
SELECT "engine" FROM table_204_378 WHERE id = 1
|
### Instruction:
CREATE TABLE table_67532 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent at the game when the record was 4-5?
### Response:
|
SELECT "Opponent" FROM table_67532 WHERE "Record" = '4-5'
|
### Instruction:
CREATE TABLE table_203_390 (
id number,
"year" number,
"venue" text,
"winners" text,
"runner-up" text,
"3rd place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- after 2008 how many points total were scored by winners ?
### Response:
|
SELECT SUM("winners") FROM table_203_390 WHERE "year" > 2008
|
### Instruction:
CREATE TABLE table_80116 (
"Year" real,
"Team" text,
"Co-Drivers" text,
"Class" text,
"Laps" real,
"Pos." text,
"Class Pos." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the position in 1997?
### Response:
|
SELECT "Pos." FROM table_80116 WHERE "Year" = '1997'
|
### Instruction:
CREATE TABLE table_35193 (
"Year" text,
"Team" text,
"Apps" real,
"Tries" real,
"Goals" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year has tries less than 24 and 0 points?
### Response:
|
SELECT "Year" FROM table_35193 WHERE "Tries" < '24' AND "Points" = '0'
|
### Instruction:
CREATE TABLE table_20937 (
"Number" real,
"Name" text,
"Kilometer" real,
"Pavement" text,
"Length (m)" real,
"Average climb (%)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many had a length of 455?
### Response:
|
SELECT COUNT("Name") FROM table_20937 WHERE "Length (m)" = '455'
|
### Instruction:
CREATE TABLE table_15572 (
"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.
-- Who was the host team for the game with the final score of 26-24?
### Response:
|
SELECT "Host Team" FROM table_15572 WHERE "Final Score" = '26-24'
|
### Instruction:
CREATE TABLE table_name_67 (
length__ft_ VARCHAR,
order_year VARCHAR,
manufacturer VARCHAR,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Length (ft.) for a 2008 nfi d40lf?
### Response:
|
SELECT length__ft_ FROM table_name_67 WHERE manufacturer = "nfi" AND model = "d40lf" AND order_year = "2008"
|
### Instruction:
CREATE TABLE table_28869 (
"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 party did john s. barbour represent?
### Response:
|
SELECT "Party" FROM table_28869 WHERE "Incumbent" = 'John S. Barbour'
|
### Instruction:
CREATE TABLE table_419 (
"Symbol" text,
"Description" text,
"Success" text,
"Date of completion" text,
"Deadline for completion" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the success where date of completion is september 28, 2007
### Response:
|
SELECT "Success" FROM table_419 WHERE "Date of completion" = 'September 28, 2007'
|
### Instruction:
CREATE TABLE table_39385 (
"Year" real,
"Championship" text,
"54 holes" text,
"Winning score" text,
"Margin" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Year with of the open championship?
### Response:
|
SELECT MAX("Year") FROM table_39385 WHERE "Championship" = 'the open championship'
|
### Instruction:
CREATE TABLE table_78676 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the place when the score was 68-75-68=211?
### Response:
|
SELECT "Place" FROM table_78676 WHERE "Score" = '68-75-68=211'
|
### Instruction:
CREATE TABLE table_24146 (
"Rank" real,
"Strike rate" text,
"Player" text,
"Innings" real,
"Balls Faced" real,
"Runs" real,
"Period" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player has 477 runs?
### Response:
|
SELECT "Player" FROM table_24146 WHERE "Runs" = '477'
|
### Instruction:
CREATE TABLE table_37141 (
"Rank" real,
"Player" text,
"Country" text,
"Earnings ( $ )" real,
"Events" real,
"Wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Wins is the lowest one that has Events larger than 30?
### Response:
|
SELECT MIN("Wins") FROM table_37141 WHERE "Events" > '30'
|
### Instruction:
CREATE TABLE table_67286 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which record has an attendance larger than 28,459?
### Response:
|
SELECT "Record" FROM table_67286 WHERE "Attendance" > '28,459'
|
### Instruction:
CREATE TABLE table_77216 (
"Rank" text,
"Name" text,
"Location" text,
"Length ( m )" text,
"Length ( ft )" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the length in feet when the length in meters is 64.2?
### Response:
|
SELECT "Length ( ft )" FROM table_77216 WHERE "Length ( m )" = '64.2'
|
### Instruction:
CREATE TABLE table_name_78 (
goals INTEGER,
year VARCHAR,
national_team VARCHAR,
apps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Goals have a National team of england, and Apps smaller than 6, and a Year of 2012?
### Response:
|
SELECT SUM(goals) FROM table_name_78 WHERE national_team = "england" AND apps < 6 AND year = "2012"
|
### Instruction:
CREATE TABLE table_18698 (
"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 is the affiliation of charles h. brand
### Response:
|
SELECT "Party" FROM table_18698 WHERE "Incumbent" = 'Charles H. Brand'
|
### Instruction:
CREATE TABLE table_name_8 (
area_km_2 VARCHAR,
population_in_millions VARCHAR,
member_state VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of area km2 with a 4.2 population in millions and is a member state of the Czech Republic?
### Response:
|
SELECT COUNT(area_km_2) FROM table_name_8 WHERE population_in_millions > 4.2 AND member_state = "czech republic"
|
### Instruction:
CREATE TABLE table_name_96 (
name VARCHAR,
time VARCHAR,
heat VARCHAR,
lane VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Name of the racer with a heat higher than 2 and a lane less than 5, with a time of 1:01.53?
### Response:
|
SELECT name FROM table_name_96 WHERE heat > 2 AND lane < 5 AND time = "1:01.53"
|
### Instruction:
CREATE TABLE table_6718 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the time for a grid less than 6 for Noriyuki Haga?
### Response:
|
SELECT "Time" FROM table_6718 WHERE "Grid" < '6' AND "Rider" = 'noriyuki haga'
|
### Instruction:
CREATE TABLE table_5958 (
"City" text,
"State/Territory" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the country of the airport with ICAO of WADD?
### Response:
|
SELECT "Country" FROM table_5958 WHERE "ICAO" = 'wadd'
|
### Instruction:
CREATE TABLE table_name_42 (
engine_name VARCHAR,
max_torque_at_rpm VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the engine name that has a maximum torque at rpm of n m ( lbf ft ) @ 3,800?
### Response:
|
SELECT engine_name FROM table_name_42 WHERE max_torque_at_rpm = "n·m ( lbf·ft ) @ 3,800"
|
### Instruction:
CREATE TABLE table_65216 (
"Nat." text,
"Name" text,
"Type" text,
"Transfer window" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What player had a transfer window of winter, and free as the transfer fee?
### Response:
|
SELECT "Name" FROM table_65216 WHERE "Transfer window" = 'winter' AND "Transfer fee" = 'free'
|
### Instruction:
CREATE TABLE table_39268 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Game site has 27,189 Attendances ?
### Response:
|
SELECT "Game site" FROM table_39268 WHERE "Attendance" = '27,189'
|
### Instruction:
CREATE TABLE table_15852 (
"Aircraft" text,
"Description" text,
"Max Gross Weight" text,
"Total disk area" text,
"Max disk Loading" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the max gross weight of the Robinson R-22?
### Response:
|
SELECT "Max Gross Weight" FROM table_15852 WHERE "Aircraft" = 'Robinson R-22'
|
### Instruction:
CREATE TABLE table_18609 (
"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 is the candidate for south carolina 4?
### Response:
|
SELECT "Candidates" FROM table_18609 WHERE "District" = 'South Carolina 4'
|
### Instruction:
CREATE TABLE table_name_48 (
wins INTEGER,
byes VARCHAR,
losses VARCHAR,
mininera_dfl VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many wins for the Caramut team with fewer than 11 losses and fewer than 2 byes?
### Response:
|
SELECT MAX(wins) FROM table_name_48 WHERE losses < 11 AND mininera_dfl = "caramut" AND byes < 2
|
### Instruction:
CREATE TABLE table_28644 (
"Rank by average" real,
"Place" real,
"Couple" text,
"Total points" text,
"Number of dances" real,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every average when number of dances is 1?
### Response:
|
SELECT "Average" FROM table_28644 WHERE "Number of dances" = '1'
|
### Instruction:
CREATE TABLE table_14933 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people went to the game with the record of 8-10?
### Response:
|
SELECT SUM("Attendance") FROM table_14933 WHERE "Record" = '8-10'
|
### Instruction:
CREATE TABLE station (
network_name VARCHAR,
services VARCHAR,
id VARCHAR
)
CREATE TABLE route (
station_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the number of trains for each station, as well as the station network name and services.
### Response:
|
SELECT COUNT(*), t1.network_name, t1.services FROM station AS t1 JOIN route AS t2 ON t1.id = t2.station_id GROUP BY t2.station_id
|
### Instruction:
CREATE TABLE table_203_810 (
id number,
"#" number,
"title" text,
"songwriters" text,
"producer(s)" text,
"performer (s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who produced listen !!! but not hip hop hooray ?
### Response:
|
SELECT "producer(s)" FROM table_203_810 WHERE "title" = '"listen!!!"'
|
### Instruction:
CREATE TABLE table_60961 (
"Cover Date" text,
"Story Title" text,
"Writer/s" text,
"Letterer/s" text,
"Colourist/s" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Story Title that has Albers as the Letterer?
### Response:
|
SELECT "Story Title" FROM table_60961 WHERE "Letterer/s" = 'albers'
|
### Instruction:
CREATE TABLE table_3387 (
"Episode #" text,
"Original Air Date (UK)" text,
"Episode Title" text,
"Director" text,
"Writer" text,
"Cast" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the episode number for episode title Leave Takers?
### Response:
|
SELECT "Episode #" FROM table_3387 WHERE "Episode Title" = 'Leave Takers'
|
### Instruction:
CREATE TABLE table_46193 (
"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 highest money ($) for bernhard langer?
### Response:
|
SELECT MAX("Money ( $ )") FROM table_46193 WHERE "Player" = 'bernhard langer'
|
### Instruction:
CREATE TABLE table_52217 (
"Year" text,
"Builder" text,
"Motors" text,
"Trailers" text,
"Control Trailers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the year for mcwf and control trailers of 35
### Response:
|
SELECT "Year" FROM table_52217 WHERE "Builder" = 'mcwf' AND "Control Trailers" = '35'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.