instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_46612 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Part 3 when the Verb meaning is to gather?
### Response:
|
SELECT "Part 3" FROM table_46612 WHERE "Verb meaning" = 'to gather'
|
### Instruction:
CREATE TABLE table_67128 (
"Year" real,
"Event" text,
"Venue" text,
"Driver" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the Spanish Grand Prix where Emerson Fittipaldi drove?
### Response:
|
SELECT "Year" FROM table_67128 WHERE "Event" = 'spanish grand prix' AND "Driver" = 'emerson fittipaldi'
|
### Instruction:
CREATE TABLE table_36569 (
"Outcome" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent when the score was 6-3, 6-3?
### Response:
|
SELECT "Opponent" FROM table_36569 WHERE "Score" = '6-3, 6-3'
|
### Instruction:
CREATE TABLE table_20194 (
"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.
-- Name the number of players for louisiana state
### Response:
|
SELECT COUNT("Player") FROM table_20194 WHERE "School/Club Team" = 'Louisiana State'
|
### Instruction:
CREATE TABLE table_204_52 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the name of the last venue on this chart ?
### Response:
|
SELECT "venue" FROM table_204_52 ORDER BY id DESC LIMIT 1
|
### 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.
-- for each winning game , what was their score ?
### Response:
|
SELECT "score" FROM table_203_750 WHERE "result" = 'win'
|
### Instruction:
CREATE TABLE table_52232 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the Capitals game when Columbus was the home team?
### Response:
|
SELECT "Date" FROM table_52232 WHERE "Home" = 'columbus'
|
### Instruction:
CREATE TABLE table_70726 (
"Artist" text,
"Country of origin" text,
"Period active" text,
"Release-year of first charted record" real,
"Genre" text,
"Claimed sales" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Genre when the Artist is Prince?
### Response:
|
SELECT "Genre" FROM table_70726 WHERE "Artist" = 'prince'
|
### Instruction:
CREATE TABLE table_204_799 (
id number,
"name" text,
"built" text,
"listed" text,
"location" text,
"county" text,
"type" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many total bridges are in copiah county ?
### Response:
|
SELECT COUNT(DISTINCT "name") FROM table_204_799 WHERE "county" = 'copiah'
|
### Instruction:
CREATE TABLE table_12201 (
"Preferences" text,
"1. vs 2." real,
"1. vs 3." real,
"2. vs 3." real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2 vs 3 when total is bigger than 38?
### Response:
|
SELECT AVG("2. vs 3.") FROM table_12201 WHERE "Total" > '38'
|
### Instruction:
CREATE TABLE table_50294 (
"Parameter" text,
"1st stage" text,
"2nd stage" text,
"3rd stage" text,
"4th stage" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the third stage that has the first phase of 5,443kg?
### Response:
|
SELECT "3rd stage" FROM table_50294 WHERE "1st stage" = '5,443kg'
|
### Instruction:
CREATE TABLE table_37747 (
"Name" text,
"Team" text,
"Qual 1" text,
"Qual 2" text,
"Best" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Name of the person with a Qual 1 of 1:26.056?
### Response:
|
SELECT "Name" FROM table_37747 WHERE "Qual 1" = '1:26.056'
|
### Instruction:
CREATE TABLE table_52175 (
"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 was the away team when the home team was South Melbourne?
### Response:
|
SELECT "Away team" FROM table_52175 WHERE "Home team" = 'south melbourne'
|
### Instruction:
CREATE TABLE table_73244 (
"Round #" real,
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Sherrick McManis's earliest round?
### Response:
|
SELECT MIN("Round #") FROM table_73244 WHERE "Player" = 'Sherrick McManis'
|
### Instruction:
CREATE TABLE table_20747 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Date" text,
"Crowd" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the home team for football park
### Response:
|
SELECT "Home team" FROM table_20747 WHERE "Ground" = 'Football Park'
|
### Instruction:
CREATE TABLE table_36008 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Notes after 1983 have a Position of 18th?
### Response:
|
SELECT "Notes" FROM table_36008 WHERE "Year" > '1983' AND "Position" = '18th'
|
### Instruction:
CREATE TABLE table_name_34 (
attendance VARCHAR,
season VARCHAR,
games VARCHAR,
sellouts VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many attendance numbers had more than 15 games, and sellouts of more than 8 in the 2011-12 season?
### Response:
|
SELECT COUNT(attendance) FROM table_name_34 WHERE games > 15 AND sellouts > 8 AND season = "2011-12"
|
### Instruction:
CREATE TABLE table_60183 (
"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 place of the player with a 71-69-66=206 score?
### Response:
|
SELECT "Place" FROM table_60183 WHERE "Score" = '71-69-66=206'
|
### Instruction:
CREATE TABLE table_45993 (
"Player" text,
"Nationality" text,
"Jersey Number(s)" real,
"Position" text,
"Years" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What years was the jersey number(s) smaller than 3?
### Response:
|
SELECT "Years" FROM table_45993 WHERE "Jersey Number(s)" < '3'
|
### Instruction:
CREATE TABLE table_61413 (
"Letter" text,
"American" text,
"British" text,
"Australian" text,
"Examples" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Australian letter with a British of and a letter of /i/??
### Response:
|
SELECT "Australian" FROM table_61413 WHERE "British" = 'ɪ' AND "Letter" = 'æ /i/'
|
### Instruction:
CREATE TABLE table_41874 (
"First District" text,
"Second District" text,
"Third District" text,
"Fourth District" text,
"Fifth District" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's the First District with a Fifth District of prudy adam?
### Response:
|
SELECT "First District" FROM table_41874 WHERE "Fifth District" = 'prudy adam'
|
### Instruction:
CREATE TABLE table_203_5 (
id number,
"season" text,
"competition" text,
"round" text,
"opponent" text,
"home" text,
"away" text,
"aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times did they make it to the first round ?
### Response:
|
SELECT COUNT(*) FROM table_203_5 WHERE "round" = 'first round'
|
### Instruction:
CREATE TABLE table_31253 (
"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.
-- How many times is the couple kerry & daniel?
### Response:
|
SELECT COUNT("Place") FROM table_31253 WHERE "Couple" = 'Kerry & Daniel'
|
### Instruction:
CREATE TABLE table_23449363_1 (
leagues_entering_at_this_round VARCHAR,
winners_from_previous_round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which leagues entered in rounds where there were 16 winners from the previous round?
### Response:
|
SELECT leagues_entering_at_this_round FROM table_23449363_1 WHERE winners_from_previous_round = "16"
|
### Instruction:
CREATE TABLE table_2562572_2 (
population__2011_ VARCHAR,
population__2002_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of 2011 populations having a 2002 population of 29449?
### Response:
|
SELECT COUNT(population__2011_) FROM table_2562572_2 WHERE population__2002_ = 29449
|
### Instruction:
CREATE TABLE checking (
custid number,
balance number
)
CREATE TABLE accounts (
custid number,
name text
)
CREATE TABLE savings (
custid number,
balance number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the number of checking accounts for each account name.
### Response:
|
SELECT COUNT(*), T1.name FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid GROUP BY T1.name
|
### Instruction:
CREATE TABLE table_64805 (
"Date" text,
"Venue" text,
"Opponents" text,
"Competition" text,
"Match Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the match report from the game played on 25 april 2009?
### Response:
|
SELECT "Match Report" FROM table_64805 WHERE "Date" = '25 april 2009'
|
### Instruction:
CREATE TABLE table_15869 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years in Toronto" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the number of the player from Boise State?
### Response:
|
SELECT "No." FROM table_15869 WHERE "School/Club Team" = 'Boise State'
|
### Instruction:
CREATE TABLE table_61302 (
"Opposing Teams" text,
"Against" real,
"Date" text,
"Venue" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue has more than 9 against and a status of second test?
### Response:
|
SELECT "Venue" FROM table_61302 WHERE "Against" > '9' AND "Status" = 'second test'
|
### Instruction:
CREATE TABLE table_24398 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When william b. campbell (u) is the successor what is the district?
### Response:
|
SELECT "District" FROM table_24398 WHERE "Successor" = 'William B. Campbell (U)'
|
### Instruction:
CREATE TABLE table_18342 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many incumbents are there in district Louisiana 5?
### Response:
|
SELECT COUNT("Incumbent") FROM table_18342 WHERE "District" = 'Louisiana 5'
|
### Instruction:
CREATE TABLE table_64544 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the game played that was at the Seattle Center Coliseum?
### Response:
|
SELECT "Date" FROM table_64544 WHERE "Location/Attendance" = 'seattle center coliseum'
|
### Instruction:
CREATE TABLE table_23283 (
"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.
-- When chris carney is the incumbent what are the results?
### Response:
|
SELECT "Result" FROM table_23283 WHERE "Incumbent" = 'Chris Carney'
|
### Instruction:
CREATE TABLE table_44664 (
"Rider" text,
"Manufacturer" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the rider for Honda with a grid of 25?
### Response:
|
SELECT "Rider" FROM table_44664 WHERE "Manufacturer" = 'honda' AND "Grid" = '25'
|
### Instruction:
CREATE TABLE table_58291 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the location of record 5-3
### Response:
|
SELECT "Location" FROM table_58291 WHERE "Record" = '5-3'
|
### Instruction:
CREATE TABLE table_22219 (
"Year" real,
"Delegate" text,
"Hometown" text,
"Pageant" text,
"Result" text,
"Other awards" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many pageants were margaret ann awitan bayot the delegate of?
### Response:
|
SELECT COUNT("Pageant") FROM table_22219 WHERE "Delegate" = 'Margaret Ann Awitan Bayot'
|
### Instruction:
CREATE TABLE table_12584173_1 (
population__glengallan_ VARCHAR,
population__region_total_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many population figures are given for Glengallen for the year when the region's total is 30554?
### Response:
|
SELECT COUNT(population__glengallan_) FROM table_12584173_1 WHERE population__region_total_ = 30554
|
### Instruction:
CREATE TABLE table_13576 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the player from the United States, with a total larger than 145?
### Response:
|
SELECT "Player" FROM table_13576 WHERE "Country" = 'united states' AND "Total" > '145'
|
### Instruction:
CREATE TABLE table_49229 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which part 2 has a verb that means to leap?
### Response:
|
SELECT "Part 2" FROM table_49229 WHERE "Verb meaning" = 'to leap'
|
### Instruction:
CREATE TABLE table_35801 (
"Date" text,
"Tournament" text,
"Location" text,
"Winner" text,
"Score" text,
"1st prize ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the 1st prize for may 21
### Response:
|
SELECT SUM("1st prize ( $ )") FROM table_35801 WHERE "Date" = 'may 21'
|
### Instruction:
CREATE TABLE table_77029 (
"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 decision of the game on January 13?
### Response:
|
SELECT "Decision" FROM table_77029 WHERE "Date" = 'january 13'
|
### Instruction:
CREATE TABLE table_25376 (
"No." real,
"Player" text,
"Hometown" text,
"Class" text,
"Position" text,
"Height" text,
"Weight" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every number for the hometown of Canton, Illinois?
### Response:
|
SELECT "No." FROM table_25376 WHERE "Hometown" = 'Canton, Illinois'
|
### Instruction:
CREATE TABLE table_54942 (
"Year" real,
"Artist" text,
"Composition" text,
"Mintage" real,
"Issue Price" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Artist has an Issue Price of $8,159.95?
### Response:
|
SELECT "Artist" FROM table_54942 WHERE "Issue Price" = '$8,159.95'
|
### Instruction:
CREATE TABLE mountain (
mountain_id number,
name text,
height number,
prominence number,
range text,
country text
)
CREATE TABLE climber (
climber_id number,
name text,
country text,
time text,
points number,
mountain_id number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names of mountains in ascending alphabetical order?
### Response:
|
SELECT name FROM mountain ORDER BY name
|
### Instruction:
CREATE TABLE table_3714 (
"Episode #" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Originalairdate" text,
"Ratings" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least episode number for jonathan harvey
### Response:
|
SELECT MIN("Episode #") FROM table_3714 WHERE "Written by" = 'Jonathan Harvey'
|
### Instruction:
CREATE TABLE table_21749 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the call sign of the station with the frequency of 90.3mhz
### Response:
|
SELECT "Callsign" FROM table_21749 WHERE "Frequency" = '90.3MHz'
|
### Instruction:
CREATE TABLE table_29301 (
"Frequency" text,
"Call sign" text,
"Name" text,
"Format" text,
"Owner" text,
"Target city/ market" text,
"City of license" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the market for KLRJ?
### Response:
|
SELECT "Target city/ market" FROM table_29301 WHERE "Call sign" = 'KLRJ'
|
### Instruction:
CREATE TABLE table_35558 (
"Date" text,
"Placing" text,
"Beat by" text,
"Location" text,
"Distance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the placing of the race in which Chic won by 8gf?
### Response:
|
SELECT "Placing" FROM table_35558 WHERE "Beat by" = 'won' AND "Distance" = '8gf'
|
### Instruction:
CREATE TABLE table_3686 (
"Date" text,
"Battles" text,
"Conflict" text,
"Combatants A" text,
"Combatants B" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many battles resulted in Battle of the Yellow Sea?
### Response:
|
SELECT COUNT("Result") FROM table_3686 WHERE "Battles" = 'Battle of the Yellow Sea'
|
### Instruction:
CREATE TABLE table_3013 (
"Institution" text,
"Nickname" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Sport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the enrollment with cougars
### Response:
|
SELECT "Enrollment" FROM table_3013 WHERE "Nickname" = 'Cougars'
|
### Instruction:
CREATE TABLE table_19179 (
"Home (1st leg)" text,
"Home (2nd leg)" text,
"1st Leg" text,
"2nd leg" text,
"Aggregate" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many 2nd legs had an aggregate of 2-4?
### Response:
|
SELECT COUNT("2nd leg") FROM table_19179 WHERE "Aggregate" = '2-4'
|
### Instruction:
CREATE TABLE table_42222 (
"Former kingdom" text,
"Province" text,
"Hangul" text,
"Hanja" text,
"Capital" text,
"Modern equivalent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the capital of the province with in Hangul?
### Response:
|
SELECT "Capital" FROM table_42222 WHERE "Hangul" = '양주'
|
### Instruction:
CREATE TABLE table_204_258 (
id number,
"location" text,
"frequency" number,
"call sign" text,
"network" text,
"call sign meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many stations have frequencies between 88 and 92 ?
### Response:
|
SELECT COUNT(*) FROM table_204_258 WHERE "frequency" >= 88 AND "frequency" <= 92
|
### Instruction:
CREATE TABLE table_78102 (
"Rd #" real,
"Pick #" real,
"Player" text,
"Team (League)" text,
"Reg GP" real,
"Pl GP" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the highest Pl GP with a Reg GP over 18?
### Response:
|
SELECT MAX("Pl GP") FROM table_78102 WHERE "Reg GP" > '18'
|
### Instruction:
CREATE TABLE table_72025 (
"Name" text,
"Reign" real,
"Days held" text,
"Location" text,
"Defenses" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the days held the champion with a reign larger than 3 and less than 1 defense has?
### Response:
|
SELECT "Days held" FROM table_72025 WHERE "Reign" > '3' AND "Defenses" < '1'
|
### Instruction:
CREATE TABLE table_51920 (
"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 home score has an Away team of fitzroy?
### Response:
|
SELECT "Home team score" FROM table_51920 WHERE "Away team" = 'fitzroy'
|
### Instruction:
CREATE TABLE table_23529 (
"Pos" real,
"Driver" text,
"Vehicle" text,
"Top 13 Time" text,
"Shoot-Out Time" text,
"Best Time of Day" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the lowest position of brendan sole
### Response:
|
SELECT MAX("Pos") FROM table_23529 WHERE "Driver" = 'Brendan Sole'
|
### Instruction:
CREATE TABLE table_52169 (
"Region" text,
"Year" real,
"Name" text,
"Format(s)" text,
"Label" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the region before 2008 when name of best 1200
### Response:
|
SELECT "Region" FROM table_52169 WHERE "Year" < '2008' AND "Name" = 'best 1200'
|
### Instruction:
CREATE TABLE table_77454 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Road Team has a Home Team of rochester, and a Game of game 2?
### Response:
|
SELECT "Road Team" FROM table_77454 WHERE "Home Team" = 'rochester' AND "Game" = 'game 2'
|
### Instruction:
CREATE TABLE table_204_823 (
id number,
"dates" text,
"location" text,
"attendance" text,
"official guests" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- where was the first location used in august , 1976 ?
### Response:
|
SELECT "location" FROM table_204_823 WHERE "dates" = 1976 AND "dates" = 8
|
### Instruction:
CREATE TABLE table_18424435_4 (
us_air_date VARCHAR,
canadian_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the air date in the U.S. for the episode that had 1.452 million Canadian viewers?
### Response:
|
SELECT us_air_date FROM table_18424435_4 WHERE canadian_viewers__million_ = "1.452"
|
### Instruction:
CREATE TABLE table_203_173 (
id number,
"year(s)" text,
"serial name" text,
"role" text,
"co-star" text,
"note(s)" text,
"channel" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many shows were on zee tv ?
### Response:
|
SELECT COUNT("serial name") FROM table_203_173 WHERE "channel" = 'zee tv'
|
### Instruction:
CREATE TABLE table_36855 (
"City" text,
"State/Territory" text,
"IATA" text,
"ICAO" text,
"Airport" text,
"Begin" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which airport has an ICAO of ybcg?
### Response:
|
SELECT "Airport" FROM table_36855 WHERE "ICAO" = 'ybcg'
|
### Instruction:
CREATE TABLE table_39604 (
"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.
-- Which championship has a margin of 8 strokes?
### Response:
|
SELECT "Championship" FROM table_39604 WHERE "Margin" = '8 strokes'
|
### Instruction:
CREATE TABLE table_32466 (
"Rank" real,
"Player" text,
"Years" text,
"Games" real,
"Reb. Avg." real,
"Total Rebounds" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Peter Woolfolk's Total Rebound average?
### Response:
|
SELECT SUM("Total Rebounds") FROM table_32466 WHERE "Player" = 'peter woolfolk'
|
### Instruction:
CREATE TABLE table_17024 (
"Ships name" text,
"Date entered service" text,
"Date withdrawn" text,
"Tonnage" real,
"Type of Ship" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the date entered service with ships name koningin wilhelmina
### Response:
|
SELECT "Date entered service" FROM table_17024 WHERE "Ships name" = 'Koningin Wilhelmina'
|
### Instruction:
CREATE TABLE table_40613 (
"Name" text,
"Novelty" text,
"Status" text,
"Authors" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Name, when Location is Tanzania, and when Novelty is Gen Nov?
### Response:
|
SELECT "Name" FROM table_40613 WHERE "Location" = 'tanzania' AND "Novelty" = 'gen nov'
|
### 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 crime thrillers were released in this category in this year ?
### Response:
|
SELECT COUNT(*) FROM table_204_652 WHERE "genre" = 'crime thriller'
|
### Instruction:
CREATE TABLE table_80342 (
"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 region of the Alfa Records release with catalog ALCA-282?
### Response:
|
SELECT "Region" FROM table_80342 WHERE "Label" = 'alfa records' AND "Catalog" = 'alca-282'
|
### Instruction:
CREATE TABLE table_203_221 (
id number,
"name" text,
"nationality" text,
"matches played" number,
"goals scored" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of matches played by brazilians for melbourne ?
### Response:
|
SELECT SUM("matches played") FROM table_203_221 WHERE "nationality" = 'brazil'
|
### Instruction:
CREATE TABLE table_1637981_7 (
grand_rapids__grr_ VARCHAR,
saginaw__mbs_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When Saginaw's fare is $470.47, what was the fare to Grand Rapids?
### Response:
|
SELECT grand_rapids__grr_ FROM table_1637981_7 WHERE saginaw__mbs_ = "$470.47"
|
### Instruction:
CREATE TABLE table_name_92 (
year INTEGER,
result VARCHAR,
nation VARCHAR,
championship VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was olympics, Canada and the Men's Eight Event ended with a silver medal?
### Response:
|
SELECT MAX(year) FROM table_name_92 WHERE championship = "olympics" AND event = "men's eight" AND nation = "canada" AND result = "silver"
|
### Instruction:
CREATE TABLE table_38629 (
"Call sign" text,
"Frequency MHz" text,
"City of license" text,
"ERP W" real,
"Class" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Charleston, SC ERP W?
### Response:
|
SELECT "ERP W" FROM table_38629 WHERE "City of license" = 'charleston, sc'
|
### Instruction:
CREATE TABLE table_18228 (
"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.
-- Which incumbent was first elected in 1958?
### Response:
|
SELECT "Incumbent" FROM table_18228 WHERE "First elected" = '1958'
|
### Instruction:
CREATE TABLE table_name_34 (
erp___power_w VARCHAR,
frequency VARCHAR,
facility_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of ERP/Power W for frequency of 89.3 fm and facility ID less than 40430
### Response:
|
SELECT COUNT(erp___power_w) FROM table_name_34 WHERE frequency = "89.3 fm" AND facility_id < 40430
|
### Instruction:
CREATE TABLE table_38337 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the position of terry jones whose pick number was after 256?
### Response:
|
SELECT "Position" FROM table_38337 WHERE "Pick" > '256' AND "Player" = 'terry jones'
|
### Instruction:
CREATE TABLE Person (
age INTEGER,
name VARCHAR
)
CREATE TABLE PersonFriend (
name VARCHAR,
friend VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which person whose friends have the oldest average age?
### Response:
|
SELECT T2.name, AVG(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY AVG(T1.age) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_680 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidatess" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result when incumbent gil gutknecht ran?
### Response:
|
SELECT "Results" FROM table_680 WHERE "Incumbent" = 'Gil Gutknecht'
|
### Instruction:
CREATE TABLE table_66944 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team of the team 1 column, has a 2nd leg of 1-0?
### Response:
|
SELECT "Team 1" FROM table_66944 WHERE "2nd leg" = '1-0'
|
### Instruction:
CREATE TABLE table_76496 (
"Game" real,
"Date" text,
"Opponent" text,
"Venue" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total game number with athlone town as the opponent?
### Response:
|
SELECT COUNT("Game") FROM table_76496 WHERE "Opponent" = 'athlone town'
|
### Instruction:
CREATE TABLE table_73403 (
"District" text,
"Vacator" text,
"Reason for change" text,
"Successor" text,
"Date successor seated" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the reason for change when maryland 6th is the district?
### Response:
|
SELECT "Reason for change" FROM table_73403 WHERE "District" = 'Maryland 6th'
|
### Instruction:
CREATE TABLE table_name_16 (
opponents VARCHAR,
raiders_points VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Opponents, when Raiders Points is '42', when Attendance is less than 52,505?
### Response:
|
SELECT COUNT(opponents) FROM table_name_16 WHERE raiders_points = 42 AND attendance < 52 OFFSET 505
|
### Instruction:
CREATE TABLE table_69943 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What engine did Scuderia Ambrosiana with fewer than 4 points have?
### Response:
|
SELECT "Engine" FROM table_69943 WHERE "Entrant" = 'scuderia ambrosiana' AND "Points" < '4'
|
### Instruction:
CREATE TABLE table_37848 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What score has vancouver as the home, and february 16 as the date?
### Response:
|
SELECT "Score" FROM table_37848 WHERE "Home" = 'vancouver' AND "Date" = 'february 16'
|
### Instruction:
CREATE TABLE table_72851 (
"Position" text,
"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.
-- How many positions correspond to a 1-3 1st leg?
### Response:
|
SELECT COUNT("Position") FROM table_72851 WHERE "1st leg" = '1-3'
|
### Instruction:
CREATE TABLE table_5032 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Time" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which res has a Record of 3-0?
### Response:
|
SELECT "Res." FROM table_5032 WHERE "Record" = '3-0'
|
### Instruction:
CREATE TABLE table_66821 (
"Call sign" text,
"Frequency MHz" real,
"City of license" text,
"ERP W" real,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of ERP W when the call sign is w217bf
### Response:
|
SELECT COUNT("ERP W") FROM table_66821 WHERE "Call sign" = 'w217bf'
|
### Instruction:
CREATE TABLE table_18645 (
"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 party that was frist elected in 1919?
### Response:
|
SELECT "Party" FROM table_18645 WHERE "First elected" = '1919'
|
### Instruction:
CREATE TABLE customers_policies (
customer_id VARCHAR
)
CREATE TABLE customers (
customer_name VARCHAR,
customer_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the customer who has the most policies listed?
### Response:
|
SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_44645 (
"Election" real,
"Number of PNC votes" text,
"Share of votes" text,
"Seats" text,
"Outcome of election" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many PNC votes did the election before 1996 have?
### Response:
|
SELECT "Number of PNC votes" FROM table_44645 WHERE "Election" < '1996'
|
### Instruction:
CREATE TABLE table_73573 (
"No" real,
"Player" text,
"Height (m)" text,
"Height (f)" text,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the player that is 1.85 m
### Response:
|
SELECT "Player" FROM table_73573 WHERE "Height (m)" = '1.85'
|
### Instruction:
CREATE TABLE table_29317 (
"Stage" real,
"Stage winner" text,
"General classification" text,
"Points classification" text,
"Mountains classification" text,
"Asian rider classification" text,
"Team classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is listed under general classification on stage 4?
### Response:
|
SELECT "General classification" FROM table_29317 WHERE "Stage" = '4'
|
### Instruction:
CREATE TABLE table_42115 (
"Name" text,
"Date of Birth" text,
"Height" real,
"Weight" real,
"Spike" real,
"Block" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date of Birth with a Block that is larger than 342?
### Response:
|
SELECT "Date of Birth" FROM table_42115 WHERE "Block" > '342'
|
### Instruction:
CREATE TABLE customers (
email_address VARCHAR,
customer_id VARCHAR
)
CREATE TABLE complaints (
customer_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the emails of customers who has filed a complaints of the product with the most complaints.
### Response:
|
SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_id ORDER BY COUNT(*) LIMIT 1
|
### Instruction:
CREATE TABLE table_34107 (
"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 Games have a Drawn smaller than 1, and a Lost larger than 4?
### Response:
|
SELECT COUNT("Games") FROM table_34107 WHERE "Drawn" < '1' AND "Lost" > '4'
|
### Instruction:
CREATE TABLE table_13119 (
"Mark" text,
"Wind*" text,
"Athlete" text,
"Nationality" text,
"Venue" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Mark has an Athlete of tatyana lebedeva?
### Response:
|
SELECT "Mark" FROM table_13119 WHERE "Athlete" = 'tatyana lebedeva'
|
### Instruction:
CREATE TABLE table_30340 (
"Team" text,
"Outgoing manager" text,
"Manner of departure" text,
"Date of vacancy" text,
"Incoming manager" text,
"Date of appointment" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many managers left sunshine stars?
### Response:
|
SELECT COUNT("Outgoing manager") FROM table_30340 WHERE "Team" = 'Sunshine Stars'
|
### Instruction:
CREATE TABLE table_44367 (
"Class" text,
"Part 1" text,
"Part 2" text,
"Part 3" text,
"Part 4" text,
"Verb meaning" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the verb meaning when the part 1 is lopen?
### Response:
|
SELECT "Verb meaning" FROM table_44367 WHERE "Part 1" = 'lopen'
|
### Instruction:
CREATE TABLE table_73107 (
"C_{low}" text,
"C_{high}" text,
"I_{low}" real,
"I_{high}" real,
"Category" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the C_{low} value when C_{high} is 12.0?
### Response:
|
SELECT "C_{low}" FROM table_73107 WHERE "C_{high}" = '12.0'
|
### Instruction:
CREATE TABLE table_49141 (
"E. coli" text,
"Yeast (S. cerevisiae)" text,
"Human" text,
"Type" text,
"Substrates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which E. coli has a human value of HNEIL1?
### Response:
|
SELECT "E. coli" FROM table_49141 WHERE "Human" = 'hneil1'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.