instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_28648 (
"Rank" real,
"Couple" text,
"Judges" real,
"Public" real,
"Total" real,
"Vote percentage" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the judges for 4 public
### Response:
| SELECT "Judges" FROM table_28648 WHERE "Public" = '4' |
### Instruction:
CREATE TABLE table_14652 (
"City" text,
"Province/Region" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country is the ICAO vvts?
### Response:
| SELECT "Country" FROM table_14652 WHERE "ICAO" = 'vvts' |
### Instruction:
CREATE TABLE table_name_20 (
venue VARCHAR,
event VARCHAR,
year VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the venue when the year is 2006, the competition is asian games and the event is 400 m?
###... | SELECT venue FROM table_name_20 WHERE year = 2006 AND competition = "asian games" AND event = "400 m" |
### Instruction:
CREATE TABLE table_1233808_2 (
competition VARCHAR,
date_and_time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What competitions record a date and time of 17.04.1920 at 15:00?
### Response:
| SELECT competition FROM table_1233808_2 WHERE date_and_time = "17.04.1920 at 15:00" |
### Instruction:
CREATE TABLE table_35702 (
"Track" text,
"City" text,
"State" text,
"Opened (closing date if defunct)" text,
"Surface" text,
"Length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city is the indianapolis speedrome in?
#... | SELECT "City" FROM table_35702 WHERE "Track" = 'indianapolis speedrome' |
### Instruction:
CREATE TABLE table_name_34 (
intergiro_classification VARCHAR,
points_classification VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Intergiro classification of Nicolaj bo Larsen, who has a Fabrizio guidi point... | SELECT intergiro_classification FROM table_name_34 WHERE points_classification = "fabrizio guidi" AND winner = "nicolaj bo larsen" |
### Instruction:
CREATE TABLE table_name_78 (
built VARCHAR,
location VARCHAR,
county VARCHAR,
listed VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which year did Blount County build a bridge in Cleveland that was listed on 1981-08-20?
### Resp... | SELECT built FROM table_name_78 WHERE county = "blount" AND listed = "1981-08-20" AND location = "cleveland" |
### Instruction:
CREATE TABLE table_204_680 (
id number,
"released" text,
"title" text,
"artist" text,
"format" text,
"language" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- was big bang 2 recorded in japanese or korean ?
### Response:
| SELECT "language" FROM table_204_680 WHERE "title" = 'big bang 2' |
### Instruction:
CREATE TABLE table_18122 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" text,
"Results" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the results for the district oklahoma 3?
##... | SELECT "Results" FROM table_18122 WHERE "District" = 'Oklahoma 3' |
### Instruction:
CREATE TABLE table_33808 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Time" text,
"Att." text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What score has 3-7 as the record?
### Response:
| SELECT "Score" FROM table_33808 WHERE "Record" = '3-7' |
### Instruction:
CREATE TABLE table_69848 (
"Club" text,
"Sport" text,
"League" text,
"Venue" text,
"Championships (Years)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which years did the Tampa Bay Storm win the Championships?
### Response:
| SELECT "Championships (Years)" FROM table_69848 WHERE "Club" = 'tampa bay storm' |
### Instruction:
CREATE TABLE table_26638600_3 (
circuit VARCHAR,
lites_1_race_one_winning_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On which circuit was the lites 1 race one winning team #66 Gunnar Racing?
### Response:
| SELECT circuit FROM table_26638600_3 WHERE lites_1_race_one_winning_team = "#66 Gunnar Racing" |
### Instruction:
CREATE TABLE table_41739 (
"Date" text,
"Opponent" text,
"Location" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team was the opponent when the score was 8-2?
### Response:
| SELECT "Opponent" FROM table_41739 WHERE "Score" = '8-2' |
### Instruction:
CREATE TABLE table_name_55 (
date VARCHAR,
margin_of_victory VARCHAR,
runner_s__up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date was the event that Yani won in a playoff over Yueh-Chyn Huang?
### Response:
| SELECT date FROM table_name_55 WHERE margin_of_victory = "playoff" AND runner_s__up = "yueh-chyn huang" |
### Instruction:
CREATE TABLE table_62251 (
"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 Tom Kite with a Score of 68's To Par?
### Response:
| SELECT "To par" FROM table_62251 WHERE "Score" = '68' AND "Player" = 'tom kite' |
### Instruction:
CREATE TABLE table_203_3 (
id number,
"province" text,
"capital" text,
"population" number,
"density" text,
"municipalities" text,
"legal districts" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which province has the mos... | SELECT "province" FROM table_203_3 ORDER BY "legal districts" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_name_82 (
classification VARCHAR,
dennis_kucinich VARCHAR,
_percentage_of_all VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Classification, when Dennis Kucinich is '3%', and when % of All is '53%'?
### Respo... | SELECT classification FROM table_name_82 WHERE dennis_kucinich = "3%" AND _percentage_of_all = "53%" |
### Instruction:
CREATE TABLE table_name_86 (
title VARCHAR,
release_date VARCHAR,
production_num VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the title when the release date is 1938-12-17 and the production number is 8610?
### Response:
| SELECT title FROM table_name_86 WHERE release_date = "1938-12-17" AND production_num = "8610" |
### Instruction:
CREATE TABLE table_7652 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Rank with a Nation that is east germany?
### Response:
| SELECT MIN("Rank") FROM table_7652 WHERE "Nation" = 'east germany' |
### Instruction:
CREATE TABLE table_47772 (
"Name" text,
"Built" text,
"Listed" text,
"Location" text,
"Borough" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What location was listed on 1977-11-23?
### Response:
| SELECT "Location" FROM table_47772 WHERE "Listed" = '1977-11-23' |
### Instruction:
CREATE TABLE table_36962 (
"Team" text,
"Location" text,
"Venue" text,
"Capacity" real,
"Position in 2004" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue was number 9 for 2004?
### Response:
| SELECT "Venue" FROM table_36962 WHERE "Position in 2004" = '9' |
### Instruction:
CREATE TABLE table_name_77 (
round INTEGER,
overall VARCHAR,
pick__number VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest round with a pick# of 9, overll less than 468, and position of defensive b... | SELECT MAX(round) FROM table_name_77 WHERE pick__number = 9 AND position = "defensive back" AND overall < 468 |
### Instruction:
CREATE TABLE table_54878 (
"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 date is the Victoria Park venue?
### Respo... | SELECT "Date" FROM table_54878 WHERE "Venue" = 'victoria park' |
### Instruction:
CREATE TABLE table_79834 (
"Year" real,
"Stage" real,
"Category" text,
"Start" text,
"Finish" text,
"Leader at the summit" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Give the Finish for years after 2007.
### Response:
| SELECT "Finish" FROM table_79834 WHERE "Year" > '2007' |
### Instruction:
CREATE TABLE table_12952 (
"Player" text,
"Country" text,
"Year(s) won" text,
"Total" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the lowest total with a finish of t47?
### Response:
| SELECT MIN("Total") FROM table_12952 WHERE "Finish" = 't47' |
### Instruction:
CREATE TABLE table_203_206 (
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.
-- what country won the most medals ?
### Respons... | SELECT "nation" FROM table_203_206 ORDER BY "total" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_12107 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What surface was the tournament played on against Steven Diez?
### Res... | SELECT "Surface" FROM table_12107 WHERE "Opponent in the final" = 'steven diez' |
### Instruction:
CREATE TABLE table_37334 (
"Track" text,
"City" text,
"State" text,
"Opened" text,
"Major Series" text,
"Turns" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of turns for the City of san antonio?
### Respon... | SELECT "Turns" FROM table_37334 WHERE "City" = 'san antonio' |
### Instruction:
CREATE TABLE table_77341 (
"Call sign" text,
"Frequency" text,
"City of license" text,
"State" text,
"FCC info" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the frequency of the radio station with a call sign of WGNR-FM?
... | SELECT "Frequency" FROM table_77341 WHERE "Call sign" = 'wgnr-fm' |
### Instruction:
CREATE TABLE table_train_52 (
"id" int,
"pregnancy_or_lactation" bool,
"consent" bool,
"surgery" bool,
"hemodynamic_instability" bool,
"age" float,
"NOUSE" float
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- patients under 18 ye... | SELECT * FROM table_train_52 WHERE age < 18 |
### Instruction:
CREATE TABLE table_68499 (
"Season" real,
"Team" text,
"Country" text,
"Apps" real,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many seasons have 1 goals and more than 11 apps?
### Response:
| SELECT COUNT("Season") FROM table_68499 WHERE "Goals" = '1' AND "Apps" > '11' |
### Instruction:
CREATE TABLE table_55452 (
"Team" text,
"Class" text,
"Day 1" text,
"Day 2" text,
"Behind" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which team had 3:18.513 on day 1?
### Response:
| SELECT "Team" FROM table_55452 WHERE "Day 1" = '3:18.513' |
### Instruction:
CREATE TABLE climber (
Time VARCHAR,
Mountain_ID VARCHAR
)
CREATE TABLE mountain (
Mountain_ID VARCHAR,
Country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Show the times used by climbers to climb mountains in Country Uganda.
#... | SELECT T1.Time FROM climber AS T1 JOIN mountain AS T2 ON T1.Mountain_ID = T2.Mountain_ID WHERE T2.Country = "Uganda" |
### Instruction:
CREATE TABLE table_49780 (
"Year" real,
"Series" text,
"Make" text,
"Driver" text,
"Team" text,
"Schedule" text,
"Role" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the make for the year 2008?
### Response:
| SELECT "Make" FROM table_49780 WHERE "Year" = '2008' |
### Instruction:
CREATE TABLE table_203_574 (
id number,
"track number" number,
"russian title" text,
"english title" text,
"music" text,
"lyrics" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the last track on the album smile ! ?
###... | SELECT "english title" FROM table_203_574 ORDER BY "track number" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_48925 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Week has a Date of december 8, 1991?
### Response:
| SELECT AVG("Week") FROM table_48925 WHERE "Date" = 'december 8, 1991' |
### Instruction:
CREATE TABLE table_204_757 (
id number,
"state" text,
"interview" number,
"swimsuit" number,
"evening gown" number,
"average" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the top scorer in evening gown ?
### Respon... | SELECT "state" FROM table_204_757 ORDER BY "evening gown" DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_17041 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What MLB Drafts have the position pitcher/infielder?
### Response:
| SELECT "MLB Draft" FROM table_17041 WHERE "Position" = 'Pitcher/Infielder' |
### Instruction:
CREATE TABLE table_14752049_2 (
international_tourist_arrivals__2011_ VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many international tourist arrivals were in Senegal in 2011?
### Response:
| SELECT international_tourist_arrivals__2011_ FROM table_14752049_2 WHERE country = "Senegal" |
### Instruction:
CREATE TABLE table_63219 (
"Island" text,
"Country" text,
"Population" text,
"Area km\u00b2" text,
"Density (per km\u00b2)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which island is in the United Kingdom?
### Response:
| SELECT "Island" FROM table_63219 WHERE "Country" = 'united kingdom' |
### Instruction:
CREATE TABLE table_78565 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent when the attendance is 57,331?
### Response:
| SELECT "Opponent" FROM table_78565 WHERE "Attendance" = '57,331' |
### Instruction:
CREATE TABLE table_67342 (
"Driver" text,
"Team" text,
"Laps" real,
"Time/Retired" text,
"Grid" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver has 7 points for team Australia?
### Response:
| SELECT "Driver" FROM table_67342 WHERE "Points" = '7' AND "Team" = 'team australia' |
### Instruction:
CREATE TABLE table_38703 (
"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 drawn have points of 6 and lost by fewer than 4?
### Response:
| SELECT COUNT("Drawn") FROM table_38703 WHERE "Points" = '6' AND "Lost" < '4' |
### Instruction:
CREATE TABLE table_225099_3 (
date_of_successors_formal_installation VARCHAR,
successor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many entries are shown for date of successors formal installation where successor is john w. walker (d... | SELECT COUNT(date_of_successors_formal_installation) FROM table_225099_3 WHERE successor = "John W. Walker (DR)" |
### Instruction:
CREATE TABLE table_name_14 (
points INTEGER,
date VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Points, when Date is 'February 2', and when Attendance is less than 16,874?
### Response:
| SELECT AVG(points) FROM table_name_14 WHERE date = "february 2" AND attendance < 16 OFFSET 874 |
### Instruction:
CREATE TABLE table_31472 (
"Event" real,
"Circuit" text,
"GT3 Pro Cup Winner" text,
"GT3 Pro / Am Cup Winner" text,
"GT3 Citation Cup Winner" text,
"GT4 Cup Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the high... | SELECT MAX("Event") FROM table_31472 |
### Instruction:
CREATE TABLE table_203_358 (
id number,
"pos." number,
"athlete" text,
"run 1" number,
"run 2" number,
"total" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the total time for filip trejbal ?
### Response:
| SELECT "total" FROM table_203_358 WHERE "athlete" = 'filip trejbal' |
### Instruction:
CREATE TABLE table_32674 (
"Orchestra" text,
"Conductor" text,
"Record Company" text,
"Year of Recording" real,
"Format" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the conductor when the chicago symphony orchestra is feat... | SELECT "Conductor" FROM table_32674 WHERE "Orchestra" = 'chicago symphony orchestra' |
### Instruction:
CREATE TABLE table_58394 (
"AVE- No." real,
"Name" text,
"Country" text,
"Highest mountain" text,
"Height (m)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which AVE-No has a Name of livigno alps?
### Response:
| SELECT MIN("AVE- No.") FROM table_58394 WHERE "Name" = 'livigno alps' |
### Instruction:
CREATE TABLE table_36612 (
"Weight Division" text,
"Winner" text,
"Loser" text,
"Method" text,
"Round" real,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the loser of the fight against antonio silva?
### Respo... | SELECT "Loser" FROM table_36612 WHERE "Winner" = 'antonio silva' |
### Instruction:
CREATE TABLE table_53947 (
"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.
-- When were the boston bruins the home team?
### ... | SELECT "Date" FROM table_53947 WHERE "Home" = 'boston bruins' |
### Instruction:
CREATE TABLE table_35024 (
"Game" real,
"March" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Record of 44 18 8 involves which score?
### Response:
| SELECT "Score" FROM table_35024 WHERE "Record" = '44–18–8' |
### Instruction:
CREATE TABLE table_225200_3 (
successor VARCHAR,
date_of_successors_formal_installation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the successor for elected january 26, 1837
### Response:
| SELECT COUNT(successor) FROM table_225200_3 WHERE date_of_successors_formal_installation = "Elected January 26, 1837" |
### Instruction:
CREATE TABLE table_6949 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text,
"Alternate" text,
"Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was second for the United States team?
### Respons... | SELECT "Second" FROM table_6949 WHERE "Nation" = 'united states' |
### Instruction:
CREATE TABLE table_name_21 (
score VARCHAR,
player VARCHAR,
place VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when Place is 'T5', when Country is 'United States', and when Player is 'Davis Love III'... | SELECT score FROM table_name_21 WHERE place = "t5" AND country = "united states" AND player = "davis love iii" |
### Instruction:
CREATE TABLE table_56067 (
"Rank" real,
"Name" text,
"City" text,
"Height" text,
"Floors" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city is the lamar tower 1, ranked above 5?
### Response:
| SELECT "City" FROM table_56067 WHERE "Rank" < '5' AND "Name" = 'lamar tower 1' |
### Instruction:
CREATE TABLE table_12776 (
"Name" text,
"Location" text,
"Land" text,
"Longest span in s metre ( feet )" text,
"Arch type" text,
"Completed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which bridge was completed in 1928?
##... | SELECT "Name" FROM table_12776 WHERE "Completed" = '1928' |
### Instruction:
CREATE TABLE table_44509 (
"Year" text,
"Supplier" text,
"Chest" text,
"Sleeves" text,
"Back" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Supplier has a Year of 2006-2008?
### Response:
| SELECT "Supplier" FROM table_44509 WHERE "Year" = '2006-2008' |
### Instruction:
CREATE TABLE table_74017 (
"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.
-- Name the first elected for kentucky 1
### Response:
| SELECT "First elected" FROM table_74017 WHERE "District" = 'Kentucky 1' |
### Instruction:
CREATE TABLE table_33451 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended the game against the cincinnati bengals?
### Response:
| SELECT COUNT("Attendance") FROM table_33451 WHERE "Opponent" = 'cincinnati bengals' |
### Instruction:
CREATE TABLE table_203_755 (
id number,
"singing position" number,
"song title" text,
"informal translation" text,
"act" text,
"percentage of votes" text,
"final position" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what ... | SELECT "song title" FROM table_203_755 WHERE id = 1 |
### Instruction:
CREATE TABLE table_name_6 (
date VARCHAR,
margin_of_victory VARCHAR,
runner_s__up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Date was Carole Charbonnier a Runner(s)-up with a 1 stroke Margin of victory?
### Response:
| SELECT date FROM table_name_6 WHERE margin_of_victory = "1 stroke" AND runner_s__up = "carole charbonnier" |
### Instruction:
CREATE TABLE table_2125 (
"Rank" real,
"Couple" text,
"Judges" real,
"Public" real,
"Total" real,
"Vote percentage" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What couple had a total score of 6?
### Resp... | SELECT "Couple" FROM table_2125 WHERE "Total" = '6' |
### Instruction:
CREATE TABLE table_80009 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of laps that also has a finish total of 8?
### Res... | SELECT MAX("Laps") FROM table_80009 WHERE "Finish" = '8' |
### Instruction:
CREATE TABLE table_8164 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game site" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the record when the result was w 52 43?
### Response:
| SELECT "Record" FROM table_8164 WHERE "Result" = 'w 52–43' |
### Instruction:
CREATE TABLE table_204_162 (
id number,
"team" text,
"constructor" text,
"motorcycle" text,
"tyres" text,
"no" number,
"rider" text,
"rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- give the total number of riders... | SELECT COUNT("rider") FROM table_204_162 |
### Instruction:
CREATE TABLE table_63325 (
"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 was the away team when Brighton & Hove Albion was home?
### Response:
| SELECT "Away team" FROM table_63325 WHERE "Home team" = 'brighton & hove albion' |
### Instruction:
CREATE TABLE table_204_911 (
id number,
"album / name" text,
"artist(s)" text,
"label" text,
"role/credit" text,
"date" text,
"chart#" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the top album name ?
### Respons... | SELECT "album / name" FROM table_204_911 WHERE id = 1 |
### Instruction:
CREATE TABLE table_1337 (
"Series #" real,
"Season #" real,
"Title" text,
"Directed by:" text,
"Written by:" text,
"Original air date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who wrote the episode where the series number ... | SELECT "Written by:" FROM table_1337 WHERE "Series #" = '74' |
### Instruction:
CREATE TABLE table_2282444_1 (
t_c__ VARCHAR,
magnet VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When nd 2 fe 14 b (bonded) is the magnet how many measurements of tc ( c)?
### Response:
| SELECT COUNT(t_c__) AS °c_ FROM table_2282444_1 WHERE magnet = "Nd 2 Fe 14 B (bonded)" |
### Instruction:
CREATE TABLE table_60270 (
"Rank" real,
"Champion" text,
"Runner-up" text,
"Third place" text,
"Fourth place" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the runner-up for rank of 7?
### Response:
| SELECT "Runner-up" FROM table_60270 WHERE "Rank" = '7' |
### Instruction:
CREATE TABLE table_32328 (
"Year" text,
"Name" text,
"Date" text,
"Stages" text,
"Distance" text,
"Winner" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the winning time in 1984?
### Response:
| SELECT "Time" FROM table_32328 WHERE "Year" = '1984' |
### Instruction:
CREATE TABLE table_35036 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Game is the highest one that has a Score of 3 2?
### Response... | SELECT MAX("Game") FROM table_35036 WHERE "Score" = '3–2' |
### Instruction:
CREATE TABLE table_46253 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Year, when Venue is Rio De Janeiro, Brazil?
### Response:
| SELECT MIN("Year") FROM table_46253 WHERE "Venue" = 'rio de janeiro, brazil' |
### Instruction:
CREATE TABLE table_name_80 (
blank_ends INTEGER,
shot__percentage VARCHAR,
ends_won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average Blank Ends which has a Shot % smaller than 78, and a Ends Won larger than 43?
### Respo... | SELECT AVG(blank_ends) FROM table_name_80 WHERE shot__percentage < 78 AND ends_won > 43 |
### Instruction:
CREATE TABLE table_name_78 (
order_and_title VARCHAR,
elevated VARCHAR,
elector VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a date of May 1262 under elevated, Guillaume de Bray as the elector, what is the order and title?
### R... | SELECT order_and_title FROM table_name_78 WHERE elevated = "may 1262" AND elector = "guillaume de bray" |
### Instruction:
CREATE TABLE table_58349 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the tournament when the winning score is 2 and 1?
### Re... | SELECT "Tournament" FROM table_58349 WHERE "Winning score" = '2 and 1' |
### Instruction:
CREATE TABLE table_204_639 (
id number,
"poll company" text,
"source" text,
"publication date" text,
"psuv" number,
"opposition" number,
"undecided" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many different poll co... | SELECT COUNT(DISTINCT "poll company") FROM table_204_639 |
### Instruction:
CREATE TABLE table_11523 (
"Team" text,
"Home city" text,
"Stadium" text,
"Capacity" real,
"2011-12 season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people attended games at alberto picco stadium?
### Response:
| SELECT COUNT("Capacity") FROM table_11523 WHERE "Stadium" = 'alberto picco' |
### Instruction:
CREATE TABLE table_name_79 (
lens__35mm_equiv__zoom VARCHAR,
_aperture VARCHAR,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lens zoom and aperture for the coolpix 5400?
### Response:
| SELECT lens__35mm_equiv__zoom, _aperture FROM table_name_79 WHERE model = "coolpix 5400" |
### Instruction:
CREATE TABLE table_2562572_20 (
largest_ethnic_group__2002_ VARCHAR,
population__2011_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the largest ethnic group for 24112
### Response:
| SELECT largest_ethnic_group__2002_ FROM table_2562572_20 WHERE population__2011_ = 24112 |
### Instruction:
CREATE TABLE table_20169 (
"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.
-- How much does geno hayes weigh?
### Respon... | SELECT "Weight" FROM table_20169 WHERE "Player name" = 'Geno Hayes' |
### Instruction:
CREATE TABLE table_51732 (
"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 is the street address of the building with 40 floors?
### R... | SELECT "Street address" FROM table_51732 WHERE "Floors" = '40' |
### Instruction:
CREATE TABLE table_16048129_5 (
_percentage_of_total_deportees VARCHAR,
average_family_size VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of regions where the average family size is 2.8?
### Response:
| SELECT COUNT(_percentage_of_total_deportees) FROM table_16048129_5 WHERE average_family_size = "2.8" |
### Instruction:
CREATE TABLE table_4155 (
"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.
-- What team drafted a player from Sweden?
##... | SELECT "NHL team" FROM table_4155 WHERE "Nationality" = 'Sweden' |
### Instruction:
CREATE TABLE table_12679 (
"Tries" real,
"Player" text,
"Opponent" text,
"Score" text,
"Venue" text,
"Round" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the opponent of player phil graham?
### Response:
| SELECT "Opponent" FROM table_12679 WHERE "Player" = 'phil graham' |
### Instruction:
CREATE TABLE table_45565 (
"City" text,
"Country" text,
"IATA" text,
"ICAO" text,
"Airport" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the ICAO in India with IATA TRZ?
### Response:
| SELECT "ICAO" FROM table_45565 WHERE "Country" = 'india' AND "IATA" = 'trz' |
### Instruction:
CREATE TABLE table_14752049_2 (
change__2009_to_2010_ VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the changes from 2009 to 2010 in Tunisia?
### Response:
| SELECT change__2009_to_2010_ FROM table_14752049_2 WHERE country = "Tunisia" |
### Instruction:
CREATE TABLE table_64207 (
"Frequency" text,
"Station" text,
"Operator" text,
"Country of origin" text,
"Transmitter location" text,
"Format" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which station has a frequency of 873khz... | SELECT "Station" FROM table_64207 WHERE "Frequency" = '873khz' |
### Instruction:
CREATE TABLE table_71073 (
"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 money for trevor immelman?
### Response:
| SELECT "Money ( $ )" FROM table_71073 WHERE "Player" = 'trevor immelman' |
### Instruction:
CREATE TABLE table_41086 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Year with a Competition that is new york city marathon?
### Resp... | SELECT MAX("Year") FROM table_41086 WHERE "Competition" = 'new york city marathon' |
### Instruction:
CREATE TABLE table_14560 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent has a Date of april 14?
### Response:
| SELECT "Opponent" FROM table_14560 WHERE "Date" = 'april 14' |
### Instruction:
CREATE TABLE table_15261_1 (
processor_speed__mhz_ VARCHAR,
part_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the processor speed (mhz) for part number a80486dx4-75?
### Response:
| SELECT COUNT(processor_speed__mhz_) FROM table_15261_1 WHERE part_number = "A80486DX4-75" |
### Instruction:
CREATE TABLE table_64945 (
"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 name for lane 1, from Mauritius?
### Response:
| SELECT "Name" FROM table_64945 WHERE "Lane" = '1' AND "Nationality" = 'mauritius' |
### Instruction:
CREATE TABLE table_71930 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event did she finish 3rd in 2010?
### Response:
| SELECT "Event" FROM table_71930 WHERE "Position" = '3rd' AND "Year" = '2010' |
### Instruction:
CREATE TABLE table_1430913_1 (
height_from_sea_level_in_meters VARCHAR,
category VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- picturesque and trekking route is the category what is the height from sea level in meters?
### Response:
| SELECT height_from_sea_level_in_meters FROM table_1430913_1 WHERE category = "Picturesque and trekking_route" |
### Instruction:
CREATE TABLE table_71191 (
"Player" text,
"Position" text,
"Previous Club" text,
"Apps" real,
"Tries" real,
"Goals" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Goals did Matt Cook have?
### Respo... | SELECT "Goals" FROM table_71191 WHERE "Player" = 'matt cook' |
### Instruction:
CREATE TABLE table_name_16 (
year_named INTEGER,
name VARCHAR,
diameter__km_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the average year for the name aida-wedo dorsa with a diameter less than 450?
### Response:
| SELECT AVG(year_named) FROM table_name_16 WHERE name = "aida-wedo dorsa" AND diameter__km_ < 450 |
### Instruction:
CREATE TABLE WINE (
Price INTEGER,
Cases INTEGER,
YEAR VARCHAR,
Grape VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the average prices and cases of wines produced in the year of 2009 and made of Zinfandel grape?
### Respo... | SELECT AVG(Price), AVG(Cases) FROM WINE WHERE YEAR = 2009 AND Grape = "Zinfandel" |
### Instruction:
CREATE TABLE table_76861 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"Record" text,
"Streak" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Game had a Score of 101 92?
### Response:
| SELECT AVG("Game") FROM table_76861 WHERE "Score" = '101–92' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.