instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_2803106_1 (
result VARCHAR,
tonioli VARCHAR,
horwood VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result for the dance that tonioli's scored an 8 and horwood scored a 6?
### Response:
|
SELECT result FROM table_2803106_1 WHERE tonioli = "8" AND horwood = "6"
|
### Instruction:
CREATE TABLE table_3283 (
"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.
-- What is the smallest number of extra points?
### Response:
|
SELECT MIN("Extra points") FROM table_3283
|
### Instruction:
CREATE TABLE table_28760804_1 (
written_by VARCHAR,
us_viewers__million_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the episode that got 5.95 million U.S. viewers?
### Response:
|
SELECT written_by FROM table_28760804_1 WHERE us_viewers__million_ = "5.95"
|
### Instruction:
CREATE TABLE table_10398 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps did Yannick Dalmas do?
### Response:
|
SELECT "Laps" FROM table_10398 WHERE "Driver" = 'yannick dalmas'
|
### Instruction:
CREATE TABLE table_name_90 (
year INTEGER,
award VARCHAR,
nominated_work VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest year with a Drama Desk award when the Mineola Twins was a nominated work?
### Response:
|
SELECT MIN(year) FROM table_name_90 WHERE award = "drama desk award" AND nominated_work = "the mineola twins"
|
### Instruction:
CREATE TABLE table_name_74 (
result VARCHAR,
score VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Result has a Score of 2 0, and a Competition of 2006 fifa world cup qualification?
### Response:
|
SELECT result FROM table_name_74 WHERE score = "2 – 0" AND competition = "2006 fifa world cup qualification"
|
### Instruction:
CREATE TABLE table_name_72 (
favorable INTEGER,
date VARCHAR,
unfavorable VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which is the lowest favorable on 1954 June and more unfavorable than 45?
### Response:
|
SELECT MIN(favorable) FROM table_name_72 WHERE date = "1954 june" AND unfavorable > 45
|
### Instruction:
CREATE TABLE table_69108 (
"Match" text,
"Date" text,
"Location" text,
"Lineup" text,
"Result" text,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of match 25?
### Response:
|
SELECT "Result" FROM table_69108 WHERE "Match" = '25'
|
### Instruction:
CREATE TABLE table_12143 (
"Year" real,
"Title" text,
"Format/genre" text,
"Role" text,
"Staged by" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what title did he act in 1940?
### Response:
|
SELECT "Title" FROM table_12143 WHERE "Year" = '1940'
|
### Instruction:
CREATE TABLE table_name_16 (
years_active VARCHAR,
titles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of 2nd place finishes for racers active in the year 2000 and more than 0 titles?
### Response:
|
SELECT AVG(2 AS nd_pl) FROM table_name_16 WHERE years_active = "2000" AND titles > 0
|
### Instruction:
CREATE TABLE table_204_718 (
id number,
"date" text,
"opponent" text,
"time" text,
"score" text,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the last opponent ?
### Response:
|
SELECT "opponent" FROM table_204_718 ORDER BY "date" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_72 (
overall VARCHAR,
name VARCHAR,
pick VARCHAR,
college VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the overall pick number for a draft pick smaller than 9, named buck mystrom from Michigan State college?
### Response:
|
SELECT overall FROM table_name_72 WHERE pick < 9 AND college = "michigan state" AND name = "buck mystrom"
|
### Instruction:
CREATE TABLE table_41943 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Sum of Score, when Player is Vijay Singh?
### Response:
|
SELECT SUM("Score") FROM table_41943 WHERE "Player" = 'vijay singh'
|
### Instruction:
CREATE TABLE table_15143 (
"Name" text,
"Design" text,
"Manufacturer" text,
"Acquired" real,
"Disposed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What design was acquired in 1875?
### Response:
|
SELECT "Design" FROM table_15143 WHERE "Acquired" = '1875'
|
### Instruction:
CREATE TABLE table_23391714_1 (
team VARCHAR,
chassis_engine VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team uses lola t92/00/ buick for their chassis/engine?
### Response:
|
SELECT team FROM table_23391714_1 WHERE chassis_engine = "Lola T92/00/ Buick"
|
### Instruction:
CREATE TABLE table_name_99 (
goals_for INTEGER,
goal_difference VARCHAR,
losses VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average amount of goals that have a goal difference or 8 and the losses are smaller than 12?
### Response:
|
SELECT AVG(goals_for) FROM table_name_99 WHERE goal_difference = 8 AND losses < 12
|
### Instruction:
CREATE TABLE table_name_15 (
venue VARCHAR,
score VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the venue when the score is 10-0 on 1997-06-22?
### Response:
|
SELECT venue FROM table_name_15 WHERE score = "10-0" AND date = "1997-06-22"
|
### Instruction:
CREATE TABLE table_68196 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Director'" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country is the film directed by Alfonso Cuar n from?
### Response:
|
SELECT "Country" FROM table_68196 WHERE "Director'" = 'alfonso cuarón'
|
### Instruction:
CREATE TABLE table_51169 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has an Attendance of bye?
### Response:
|
SELECT "Opponent" FROM table_51169 WHERE "Attendance" = 'bye'
|
### Instruction:
CREATE TABLE table_name_67 (
intercontinental_cup_1998 VARCHAR,
copa_mercosur_1998 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the runner-up for the intercontinental cup
### Response:
|
SELECT intercontinental_cup_1998 FROM table_name_67 WHERE copa_mercosur_1998 = "runner-up"
|
### Instruction:
CREATE TABLE table_name_26 (
club VARCHAR,
position VARCHAR,
wins VARCHAR,
goals_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Club has 13 wins, goals against less than 48, and a position of 4?
### Response:
|
SELECT club FROM table_name_26 WHERE wins = 13 AND goals_against < 48 AND position = 4
|
### Instruction:
CREATE TABLE table_67020 (
"Rank" text,
"Games" text,
"Player" text,
"Club" text,
"Career span" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of games for Roger Merrett?
### Response:
|
SELECT "Games" FROM table_67020 WHERE "Player" = 'roger merrett'
|
### Instruction:
CREATE TABLE table_name_35 (
score VARCHAR,
opponent VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when Opponent is Portland Trail Blazers, and when Record is 12-58?
### Response:
|
SELECT score FROM table_name_35 WHERE opponent = "portland trail blazers" AND record = "12-58"
|
### Instruction:
CREATE TABLE table_name_29 (
country VARCHAR,
total VARCHAR,
year_s__won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Country, when Total is less than 290, and when Year(s) Won is 1960?
### Response:
|
SELECT country FROM table_name_29 WHERE total < 290 AND year_s__won = "1960"
|
### Instruction:
CREATE TABLE table_name_82 (
entered_the_house VARCHAR,
evicted VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did sla ana peji , who was evicted on day 29, enter the house?
### Response:
|
SELECT entered_the_house FROM table_name_82 WHERE evicted = "day 29" AND name = "slađana pejić"
|
### Instruction:
CREATE TABLE table_13033 (
"Rank" real,
"Name" text,
"Country" text,
"Birth" real,
"Death" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name with a death in 2001?
### Response:
|
SELECT "Name" FROM table_13033 WHERE "Death" = '2001'
|
### Instruction:
CREATE TABLE table_name_39 (
film_or_series VARCHAR,
year VARCHAR,
award VARCHAR,
category VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What film won best actress at the 2007 Inside Soap Awards?
### Response:
|
SELECT film_or_series FROM table_name_39 WHERE award = "inside soap awards" AND category = "best actress" AND year = 2007
|
### Instruction:
CREATE TABLE table_name_57 (
venue VARCHAR,
result VARCHAR,
year VARCHAR,
category VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the venues prior to 2005 in the World Class category that resulted in a bronze?
### Response:
|
SELECT venue FROM table_name_57 WHERE year < 2005 AND category = "world class" AND result = "bronze"
|
### Instruction:
CREATE TABLE table_203_9 (
id number,
"state" text,
"last execution date" text,
"name" text,
"crime" text,
"method" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many states have never executed anyone ?
### Response:
|
SELECT COUNT("state") FROM table_203_9 WHERE "last execution date" = 'never used'
|
### Instruction:
CREATE TABLE table_22355_20 (
nation VARCHAR,
olympics VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nation who won 1 bronze in the Olympics during 1924 1928?
### Response:
|
SELECT nation FROM table_22355_20 WHERE olympics = "1924–1928" AND bronze = 1
|
### Instruction:
CREATE TABLE table_35576 (
"Date" text,
"Territory" text,
"Screens" real,
"Rank" real,
"Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the gross in the United Kingdom?
### Response:
|
SELECT "Gross" FROM table_35576 WHERE "Territory" = 'united kingdom'
|
### Instruction:
CREATE TABLE table_name_41 (
set_2 VARCHAR,
set_1 VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Set 2 has a Set 1 of 25 15, and a Score of 3 0?
### Response:
|
SELECT set_2 FROM table_name_41 WHERE set_1 = "25–15" AND score = "3–0"
|
### Instruction:
CREATE TABLE table_name_74 (
played VARCHAR,
position VARCHAR,
drawn VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many games were played by the team with 2 draws, less than 16 points and a position higher than 5?
### Response:
|
SELECT COUNT(played) FROM table_name_74 WHERE drawn = 2 AND points < 16 AND position > 5
|
### Instruction:
CREATE TABLE table_14928 (
"Heat" 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 used by a racer from Malta?
### Response:
|
SELECT MAX("Lane") FROM table_14928 WHERE "Nationality" = 'malta'
|
### Instruction:
CREATE TABLE table_36194 (
"Round" real,
"Pick" text,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest round for Paul Hubbard?
### Response:
|
SELECT MIN("Round") FROM table_36194 WHERE "Name" = 'paul hubbard'
|
### Instruction:
CREATE TABLE table_name_45 (
episode_number INTEGER,
event_4 VARCHAR,
event_3 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What episode had sumo ball for event 3 and the wall for event 4?
### Response:
|
SELECT AVG(episode_number) FROM table_name_45 WHERE event_4 = "the wall" AND event_3 = "sumo ball"
|
### Instruction:
CREATE TABLE table_68203 (
"Team" text,
"City" text,
"Stadium" text,
"Manager" text,
"Past season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what stadium has a prior record of 7th?
### Response:
|
SELECT "Stadium" FROM table_68203 WHERE "Past season" = '7th'
|
### Instruction:
CREATE TABLE table_name_21 (
ecclesiastical_province VARCHAR,
type VARCHAR,
latin_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Ecclesiastical Province has a type diocese and a latin name alexiensis?
### Response:
|
SELECT ecclesiastical_province FROM table_name_21 WHERE type = "diocese" AND latin_name = "alexiensis"
|
### Instruction:
CREATE TABLE table_1610301_1 (
headquarters VARCHAR,
population__2011_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the headquarters of the place whose population in 2011 was 3811738?
### Response:
|
SELECT headquarters FROM table_1610301_1 WHERE population__2011_ = 3811738
|
### Instruction:
CREATE TABLE table_45112 (
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type shown from 1991 bc?
### Response:
|
SELECT "Type" FROM table_45112 WHERE "From" = '1991 bc'
|
### Instruction:
CREATE TABLE table_61483 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played against away team hereford united?
### Response:
|
SELECT "Home team" FROM table_61483 WHERE "Away team" = 'hereford united'
|
### Instruction:
CREATE TABLE table_4993 (
"Version" text,
"Length" text,
"Album" text,
"Remixed by" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Year that has an Album of Remixes?
### Response:
|
SELECT SUM("Year") FROM table_4993 WHERE "Album" = 'remixes'
|
### Instruction:
CREATE TABLE table_43926 (
"Sport" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total associated with Bronzes over 35?
### Response:
|
SELECT "Total" FROM table_43926 WHERE "Bronze" > '35'
|
### Instruction:
CREATE TABLE table_name_9 (
khmer INTEGER,
ala_lc VARCHAR,
value VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is smallest Khmer valued less than 90 have a kau sip ALA-LC?
### Response:
|
SELECT MIN(khmer) FROM table_name_9 WHERE ala_lc = "kau sip" AND value < 90
|
### Instruction:
CREATE TABLE table_41929 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Bill's attendance on December 6?
### Response:
|
SELECT "Attendance" FROM table_41929 WHERE "Date" = 'december 6'
|
### Instruction:
CREATE TABLE table_55326 (
"Player" text,
"Games" real,
"Goals" real,
"First Games" text,
"Last Games" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals does mitsuo kato have?
### Response:
|
SELECT MAX("Goals") FROM table_55326 WHERE "Player" = 'mitsuo kato'
|
### Instruction:
CREATE TABLE table_204_546 (
id number,
"year" number,
"film" text,
"song" text,
"language" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which of the languages mentioned was used in the most films ?
### Response:
|
SELECT "language" FROM table_204_546 GROUP BY "language" ORDER BY COUNT("film") DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_204_340 (
id number,
"name" text,
"year inducted" number,
"position" text,
"apps" number,
"goals" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who has the largest amount of apps ?
### Response:
|
SELECT "name" FROM table_204_340 ORDER BY "apps" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_8763 (
"Rider" text,
"Bike" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Grid has a Rider of loic napoleone?
### Response:
|
SELECT AVG("Grid") FROM table_8763 WHERE "Rider" = 'loic napoleone'
|
### Instruction:
CREATE TABLE table_13836704_9 (
total_passengers VARCHAR,
freight__metric_tonnes_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the total passengers with freight (metric tonnes) being 827
### Response:
|
SELECT total_passengers FROM table_13836704_9 WHERE freight__metric_tonnes_ = 827
|
### Instruction:
CREATE TABLE table_19492 (
"Pick #" real,
"NFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What number picked were players from arizona state picked?
### Response:
|
SELECT "Pick #" FROM table_19492 WHERE "College" = 'Arizona State'
|
### Instruction:
CREATE TABLE table_19814 (
"Software" text,
"Version" text,
"Operating systems" text,
"Developer" text,
"License" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all the operating systems for sbagen?
### Response:
|
SELECT "Operating systems" FROM table_19814 WHERE "Software" = 'SBaGen'
|
### Instruction:
CREATE TABLE table_name_54 (
attendance VARCHAR,
week VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the attendance for the game on October 30, 1994 for a week after week 2?
### Response:
|
SELECT COUNT(attendance) FROM table_name_54 WHERE week > 2 AND date = "october 30, 1994"
|
### Instruction:
CREATE TABLE table_name_65 (
silver VARCHAR,
total VARCHAR,
gold VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many silvers did the country with more than 0 gold and a rank above 1 win that had a total less than 4?
### Response:
|
SELECT COUNT(silver) FROM table_name_65 WHERE gold > 0 AND rank > 1 AND total < 4
|
### Instruction:
CREATE TABLE table_13301516_1 (
us_viewers__millions_ VARCHAR,
no_in_series VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many millions of U.S. viewers watched episode 185?
### Response:
|
SELECT us_viewers__millions_ FROM table_13301516_1 WHERE no_in_series = 185
|
### Instruction:
CREATE TABLE table_35577 (
"Date" text,
"Territory" text,
"Screens" real,
"Rank" real,
"Gross" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the territory with 17 screens?
### Response:
|
SELECT "Territory" FROM table_35577 WHERE "Screens" = '17'
|
### Instruction:
CREATE TABLE table_67729 (
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which lane did George Bovell swim in?
### Response:
|
SELECT SUM("Lane") FROM table_67729 WHERE "Name" = 'george bovell'
|
### Instruction:
CREATE TABLE table_11967 (
"Player" text,
"Position" text,
"Date of Birth (Age)" text,
"Caps" real,
"Club/province" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What position for chris moreno?
### Response:
|
SELECT "Position" FROM table_11967 WHERE "Player" = 'chris moreno'
|
### Instruction:
CREATE TABLE table_30444 (
"Stadium" text,
"Capacity" real,
"City" text,
"Country" text,
"Tenant" text,
"Opening" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the country for athens
### Response:
|
SELECT COUNT("Country") FROM table_30444 WHERE "City" = 'Athens'
|
### Instruction:
CREATE TABLE table_name_54 (
points INTEGER,
played VARCHAR,
position VARCHAR,
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the points that has a lost more 6, played less than 14 and a position more than 1?
### Response:
|
SELECT SUM(points) FROM table_name_54 WHERE position > 1 AND lost > 6 AND played < 14
|
### Instruction:
CREATE TABLE table_71869 (
"Year" text,
"xDSL" text,
"Cable" text,
"FTTx" text,
"Other" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year when cable was 4.6%?
### Response:
|
SELECT "Year" FROM table_71869 WHERE "Cable" = '4.6%'
|
### Instruction:
CREATE TABLE table_203_77 (
id number,
"album title" text,
"format" text,
"year" number,
"original label" text,
"chart positions" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many albums garnered chart positions ?
### Response:
|
SELECT COUNT("album title") FROM table_203_77 WHERE NOT "chart positions" IS NULL
|
### Instruction:
CREATE TABLE table_16384 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is McMaster College's pick number?
### Response:
|
SELECT MIN("Pick #") FROM table_16384 WHERE "College" = 'McMaster'
|
### Instruction:
CREATE TABLE table_name_90 (
results¹ VARCHAR,
type_of_game VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What results has euro '84 qualifying as the type of game and norway as the opponent?
### Response:
|
SELECT results¹ FROM table_name_90 WHERE type_of_game = "euro '84 qualifying" AND opponent = "norway"
|
### Instruction:
CREATE TABLE table_5862 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game when St. Louis was the visiting team?
### Response:
|
SELECT "Date" FROM table_5862 WHERE "Visitor" = 'st. louis'
|
### Instruction:
CREATE TABLE table_204_251 (
id number,
"community" text,
"area" text,
"location" text,
"population" number,
"date established" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what community has the largest area in acres ?
### Response:
|
SELECT "community" FROM table_204_251 ORDER BY "area" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_27813010_2 (
weeks_in_top_10 INTEGER,
artist VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many weeks in the top 10 was spent by a song performed by Peter Kay?
### Response:
|
SELECT MAX(weeks_in_top_10) FROM table_27813010_2 WHERE artist = "Peter Kay"
|
### Instruction:
CREATE TABLE table_62550 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What did South Africa place?
### Response:
|
SELECT "Place" FROM table_62550 WHERE "Country" = 'south africa'
|
### Instruction:
CREATE TABLE table_56474 (
"Navy" text,
"Name" text,
"Pennant" text,
"Commissioned" real,
"Home port" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home port of m40?
### Response:
|
SELECT "Home port" FROM table_56474 WHERE "Pennant" = 'm40'
|
### Instruction:
CREATE TABLE table_40690 (
"Date" text,
"Location" text,
"Country" text,
"Event" text,
"Winner" text,
"Runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which event was held at Manly Beach?
### Response:
|
SELECT "Event" FROM table_40690 WHERE "Location" = 'manly beach'
|
### Instruction:
CREATE TABLE table_78105 (
"Date" text,
"Winning Team" text,
"Losing Team" text,
"Score" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who won by a score of 4-1?
### Response:
|
SELECT "Winning Team" FROM table_78105 WHERE "Score" = '4-1'
|
### Instruction:
CREATE TABLE table_47666 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent has 1-1 as the record?
### Response:
|
SELECT "Opponent" FROM table_47666 WHERE "Record" = '1-1'
|
### Instruction:
CREATE TABLE table_30881 (
"Network" text,
"Flagship" text,
"Programming" text,
"Region" text,
"Origin" text,
"Owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which owners originate in Mexico City?
### Response:
|
SELECT "Owner" FROM table_30881 WHERE "Origin" = 'Mexico City'
|
### Instruction:
CREATE TABLE table_72234 (
"Country" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the interview score for Hawaii?
### Response:
|
SELECT "Interview" FROM table_72234 WHERE "Country" = 'Hawaii'
|
### Instruction:
CREATE TABLE table_2270 (
"Number" real,
"Name" text,
"Kilometer" real,
"Pavement" text,
"Length (in m)" real,
"Average climb (%)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum number of km listed?
### Response:
|
SELECT MAX("Kilometer") FROM table_2270
|
### Instruction:
CREATE TABLE table_69849 (
"Player" text,
"Height" real,
"Position" text,
"Year born" real,
"Current Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the height of the person born before 1975?
### Response:
|
SELECT "Height" FROM table_69849 WHERE "Year born" < '1975'
|
### Instruction:
CREATE TABLE table_54259 (
"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 event with a result of 3-2?
### Response:
|
SELECT "Competition" FROM table_54259 WHERE "Result" = '3-2'
|
### Instruction:
CREATE TABLE table_67618 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of years for brm straight-4
### Response:
|
SELECT COUNT("Year") FROM table_67618 WHERE "Engine" = 'brm straight-4'
|
### Instruction:
CREATE TABLE table_name_45 (
away_team VARCHAR,
home_team VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the away team on 30 January 1988, when the home team was Everton?
### Response:
|
SELECT away_team FROM table_name_45 WHERE home_team = "everton" AND date = "30 january 1988"
|
### Instruction:
CREATE TABLE table_47168 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Visitor of the game on December 25?
### Response:
|
SELECT "Visitor" FROM table_47168 WHERE "Date" = 'december 25'
|
### Instruction:
CREATE TABLE table_46197 (
"Date" text,
"Opponent" text,
"Site" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At what Site was the Result W13-7?
### Response:
|
SELECT "Site" FROM table_46197 WHERE "Result" = 'w13-7'
|
### Instruction:
CREATE TABLE table_79725 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the loss for September 16?
### Response:
|
SELECT "Loss" FROM table_79725 WHERE "Date" = 'september 16'
|
### Instruction:
CREATE TABLE table_name_80 (
events INTEGER,
top_10 VARCHAR,
top_5 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Events, when Top-10 is 7, and when Top-5 is greater than 4?
### Response:
|
SELECT SUM(events) FROM table_name_80 WHERE top_10 = 7 AND top_5 > 4
|
### Instruction:
CREATE TABLE table_name_43 (
lane INTEGER,
time VARCHAR,
heat VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest lane with a time of 2:05.90, and a Heat larger than 3?
### Response:
|
SELECT MIN(lane) FROM table_name_43 WHERE time = "2:05.90" AND heat > 3
|
### Instruction:
CREATE TABLE table_30263 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What CFL team got the player from york?
### Response:
|
SELECT "CFL Team" FROM table_30263 WHERE "College" = 'York'
|
### Instruction:
CREATE TABLE table_40041 (
"Country" text,
"Local name" text,
"Host" text,
"Network" text,
"Date premiered" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Country has a Host of miguel esteban?
### Response:
|
SELECT "Country" FROM table_40041 WHERE "Host" = 'miguel esteban'
|
### Instruction:
CREATE TABLE table_17085981_2 (
date_of_appointment VARCHAR,
replaced_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many appointment dates were recorded when J rgen Kohler was the replaced by?
### Response:
|
SELECT COUNT(date_of_appointment) FROM table_17085981_2 WHERE replaced_by = "Jürgen Kohler"
|
### Instruction:
CREATE TABLE table_name_80 (
score VARCHAR,
home VARCHAR,
decision VARCHAR,
visitor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the score when it had a decision of dipietro and visitor of ny islanders with home of colorado
### Response:
|
SELECT score FROM table_name_80 WHERE decision = "dipietro" AND visitor = "ny islanders" AND home = "colorado"
|
### Instruction:
CREATE TABLE table_name_97 (
division_iII VARCHAR,
division_v VARCHAR,
division_iV VARCHAR,
hanover VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Division III has Bishop Brady in Division V and Hanover in Division IV?
### Response:
|
SELECT division_iII FROM table_name_97 WHERE division_v = "bishop brady" AND division_iV = hanover
|
### Instruction:
CREATE TABLE table_54329 (
"Team" text,
"Manager" text,
"Captain" text,
"Kit manufacturer" text,
"Shirt sponsor" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team does Graeme Souness manage?
### Response:
|
SELECT "Team" FROM table_54329 WHERE "Manager" = 'graeme souness'
|
### Instruction:
CREATE TABLE table_289 (
"Delegate" text,
"Interview" text,
"Swimsuit" text,
"Evening Gown" text,
"Average" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the swimsuits for south africa?
### Response:
|
SELECT "Swimsuit" FROM table_289 WHERE "Delegate" = 'South Africa'
|
### Instruction:
CREATE TABLE table_67665 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score for the April 12 game?
### Response:
|
SELECT "Score" FROM table_67665 WHERE "Date" = 'april 12'
|
### Instruction:
CREATE TABLE table_64463 (
"Rank" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Rank of the Swimmer in Lane 5?
### Response:
|
SELECT AVG("Rank") FROM table_64463 WHERE "Lane" = '5'
|
### Instruction:
CREATE TABLE table_44070 (
"Lane" real,
"Name" text,
"Country" text,
"Mark" text,
"React" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country did Dmitriy Karpov represent?
### Response:
|
SELECT "Country" FROM table_44070 WHERE "Name" = 'dmitriy karpov'
|
### Instruction:
CREATE TABLE table_23408094_14 (
tournament_at_which_lead_began VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- At what tournament did pete sampras begin his lead?
### Response:
|
SELECT tournament_at_which_lead_began FROM table_23408094_14 WHERE player = "Pete Sampras"
|
### Instruction:
CREATE TABLE table_40399 (
"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 lowest Attendance during Week 12?
### Response:
|
SELECT MIN("Attendance") FROM table_40399 WHERE "Week" = '12'
|
### Instruction:
CREATE TABLE table_76715 (
"Week" text,
"Theme" text,
"Artist" text,
"Order sung" text,
"Status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What order was the performance of a Richard Marx song?
### Response:
|
SELECT "Order sung" FROM table_76715 WHERE "Artist" = 'richard marx'
|
### Instruction:
CREATE TABLE table_70602 (
"Rider" text,
"Manufacturer" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the manufacturer with grid of 11
### Response:
|
SELECT "Manufacturer" FROM table_70602 WHERE "Grid" = '11'
|
### Instruction:
CREATE TABLE table_name_62 (
nets_points INTEGER,
game VARCHAR,
opponents VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average point total for the nets in games before game 9 where the opponents scored less than 95?
### Response:
|
SELECT AVG(nets_points) FROM table_name_62 WHERE game < 9 AND opponents < 95
|
### Instruction:
CREATE TABLE table_76957 (
"Date" text,
"Opponent" text,
"Site" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On which date was the result w20-0?
### Response:
|
SELECT "Date" FROM table_76957 WHERE "Result" = 'w20-0'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.