instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_11 (
date VARCHAR,
visitor VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the game where the vistor team was the Knicks and more than 18,165 were in attendance?
### Response:
|
SELECT date FROM table_name_11 WHERE visitor = "knicks" AND attendance > 18 OFFSET 165
|
### Instruction:
CREATE TABLE table_23014923_1 (
season VARCHAR,
intermediate__south__winners VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year of the season if the intermediate (South) winners is Southmead Athletic?
### Response:
|
SELECT season FROM table_23014923_1 WHERE intermediate__south__winners = "Southmead Athletic"
|
### Instruction:
CREATE TABLE table_name_24 (
name VARCHAR,
height__cm_ VARCHAR,
weight__kg_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which name's height in centimeters is 178 when its weight in kilograms is less than 91?
### Response:
|
SELECT name FROM table_name_24 WHERE height__cm_ = 178 AND weight__kg_ < 91
|
### Instruction:
CREATE TABLE table_name_3 (
against INTEGER,
wins VARCHAR,
losses VARCHAR,
draws VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the lowest against for when wins are greater than 14, draws is 0 and losses are 4
### Response:
|
SELECT MIN(against) FROM table_name_3 WHERE losses = 4 AND draws = 0 AND wins > 14
|
### Instruction:
CREATE TABLE table_name_83 (
loses INTEGER,
position VARCHAR,
games_played VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the fewest loses for the club that is below 8 in position, and had played less than 30 games?
### Response:
|
SELECT MIN(loses) FROM table_name_83 WHERE position < 8 AND games_played < 30
|
### Instruction:
CREATE TABLE table_12078626_1 (
success VARCHAR,
date_of_completion VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the success where date of completion is september 28, 2007
### Response:
|
SELECT success FROM table_12078626_1 WHERE date_of_completion = "September 28, 2007"
|
### Instruction:
CREATE TABLE table_1320857_1 (
hl_birkett VARCHAR,
wh_archer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is h.l birkett if w.h. archer is r. cochrane?
### Response:
|
SELECT hl_birkett FROM table_1320857_1 WHERE wh_archer = "R. Cochrane"
|
### Instruction:
CREATE TABLE table_65995 (
"Year" real,
"Formula" text,
"Driver" text,
"Constructor" text,
"Location" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many years had a formula of Grand Prix?
### Response:
|
SELECT COUNT("Year") FROM table_65995 WHERE "Formula" = 'grand prix'
|
### Instruction:
CREATE TABLE table_name_46 (
wkts INTEGER,
ovrs VARCHAR,
econ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the sum of the wkts when the ovrs were bigger than 2 and econ was bigger than 7.84?
### Response:
|
SELECT SUM(wkts) FROM table_name_46 WHERE ovrs > 2 AND econ > 7.84
|
### Instruction:
CREATE TABLE table_13480122_5 (
high_rebounds VARCHAR,
high_assists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the the high rebounds with high assbeingts being scottie pippen (9)
### Response:
|
SELECT high_rebounds FROM table_13480122_5 WHERE high_assists = "Scottie Pippen (9)"
|
### Instruction:
CREATE TABLE table_3527 (
"Week #" text,
"Theme" text,
"Song choice" text,
"Original artist" text,
"Order #" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the original artist for First Solo?
### Response:
|
SELECT "Original artist" FROM table_3527 WHERE "Theme" = 'First Solo'
|
### Instruction:
CREATE TABLE table_28859177_2 (
directed_by VARCHAR,
original_air_date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who directed the episode that aired November 21, 2003?
### Response:
|
SELECT directed_by FROM table_28859177_2 WHERE original_air_date = "November 21, 2003"
|
### Instruction:
CREATE TABLE table_78999 (
"Country" text,
"Transfers In" text,
"Transfers Out" text,
"Internal Transfers" text,
"Total Transfers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the transfers in for Hungary?
### Response:
|
SELECT "Transfers In" FROM table_78999 WHERE "Country" = 'hungary'
|
### Instruction:
CREATE TABLE table_33731 (
"Date" text,
"Venue" text,
"Result" text,
"Goals" real,
"Competition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue has a Result of 3-0?
### Response:
|
SELECT "Venue" FROM table_33731 WHERE "Result" = '3-0'
|
### Instruction:
CREATE TABLE table_73943 (
"School" text,
"Location" text,
"Founded" real,
"Affiliation" text,
"Enrollment" real,
"Nickname" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maximum enrollment of the schools?
### Response:
|
SELECT MAX("Enrollment") FROM table_73943
|
### Instruction:
CREATE TABLE table_name_1 (
played VARCHAR,
tries_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the played number when the tries against shows correct as of 18:13 26 May 2008?
### Response:
|
SELECT played FROM table_name_1 WHERE tries_against = "correct as of 18:13 26 may 2008"
|
### Instruction:
CREATE TABLE table_52341 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which lap number had Olivier Panis as a driver?
### Response:
|
SELECT "Laps" FROM table_52341 WHERE "Driver" = 'olivier panis'
|
### Instruction:
CREATE TABLE table_30175 (
"Winners" text,
"Match points" text,
"Aggregate score" text,
"Points margin" real,
"Losers" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many match points did gran parma lost
### Response:
|
SELECT "Match points" FROM table_30175 WHERE "Losers" = 'Gran Parma'
|
### Instruction:
CREATE TABLE table_name_96 (
venue VARCHAR,
against VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the venue for the game played on 16/01/1954, when the against was more than 3?
### Response:
|
SELECT venue FROM table_name_96 WHERE against > 3 AND date = "16/01/1954"
|
### Instruction:
CREATE TABLE table_8574 (
"Region" text,
"Date" text,
"Label" text,
"Format" text,
"Catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The Catalog of ilps 9153 is from what region?
### Response:
|
SELECT "Region" FROM table_8574 WHERE "Catalog" = 'ilps 9153'
|
### Instruction:
CREATE TABLE table_204_882 (
id number,
"number" number,
"builder" text,
"entered service" text,
"withdrawn" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the last number on the list ?
### Response:
|
SELECT "number" FROM table_204_882 ORDER BY id DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_name_74 (
enrollment VARCHAR,
_number___county VARCHAR,
mascot VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many are enrolled at 49 Marion with the Warriors as their mascot?
### Response:
|
SELECT COUNT(enrollment) FROM table_name_74 WHERE _number___county = "49 marion" AND mascot = "warriors"
|
### Instruction:
CREATE TABLE table_76979 (
"Nation" text,
"Gold" text,
"Silver" text,
"Bronze" text,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Gold, when Bronze is 11?
### Response:
|
SELECT "Gold" FROM table_76979 WHERE "Bronze" = '11'
|
### Instruction:
CREATE TABLE table_13399573_4 (
won VARCHAR,
tries_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the 2008/2009 season one team had 47 tries against, how many games did they win that year?
### Response:
|
SELECT won FROM table_13399573_4 WHERE tries_against = "47"
|
### Instruction:
CREATE TABLE table_65049 (
"Year" real,
"Tournament" text,
"Venue" text,
"Result" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the tournament in 2001?
### Response:
|
SELECT "Result" FROM table_65049 WHERE "Year" = '2001'
|
### Instruction:
CREATE TABLE table_name_87 (
grid INTEGER,
laps VARCHAR,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total amount of grid when the laps amount was smaller than 68 and the time/retired was injection?
### Response:
|
SELECT SUM(grid) FROM table_name_87 WHERE laps < 68 AND time_retired = "injection"
|
### Instruction:
CREATE TABLE table_32400 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Bye's opponent's attendance?
### Response:
|
SELECT "Attendance" FROM table_32400 WHERE "Opponent" = 'bye'
|
### Instruction:
CREATE TABLE table_name_23 (
vietnamese_name VARCHAR,
chinese_name_¹ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHICH Vietnamese name has a Chinese name of ( ) m ngzh ng?
### Response:
|
SELECT vietnamese_name FROM table_name_23 WHERE chinese_name_¹ = "芒種 (芒种) mángzhòng"
|
### Instruction:
CREATE TABLE table_15593 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Pts." real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which year has brm v12 as the engine?
### Response:
|
SELECT "Year" FROM table_15593 WHERE "Engine" = 'brm v12'
|
### Instruction:
CREATE TABLE useracct (
name VARCHAR,
u_id VARCHAR
)
CREATE TABLE trust (
target_u_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of the target user with the lowest trust score.
### Response:
|
SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id ORDER BY trust LIMIT 1
|
### Instruction:
CREATE TABLE table_10023387_1 (
doubles_w_l VARCHAR,
years_played VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the doubles w-l with years played value of 1 (1968)
### Response:
|
SELECT doubles_w_l FROM table_10023387_1 WHERE years_played = "1 (1968)"
|
### Instruction:
CREATE TABLE route (
train_id VARCHAR
)
CREATE TABLE train (
name VARCHAR,
id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the name of the train whose route runs through greatest number of stations.
### Response:
|
SELECT t1.name FROM train AS t1 JOIN route AS t2 ON t1.id = t2.train_id GROUP BY t2.train_id ORDER BY COUNT(*) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_1661124_1 (
target VARCHAR,
approved_treatment_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the target when the approved treatment is non-hodgkin lymphoma?
### Response:
|
SELECT target FROM table_1661124_1 WHERE approved_treatment_s_ = "non-Hodgkin lymphoma"
|
### Instruction:
CREATE TABLE table_name_94 (
podiums INTEGER,
series VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Podiums where their total for the Series of Macau grand prix, as well as being a season before 2008?
### Response:
|
SELECT SUM(podiums) FROM table_name_94 WHERE series = "macau grand prix" AND season < 2008
|
### Instruction:
CREATE TABLE table_17416221_1 (
area__km_2__ INTEGER,
largest_city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is minimum area where the largest city is bloemfontein?
### Response:
|
SELECT MIN(area__km_2__) FROM table_17416221_1 WHERE largest_city = "Bloemfontein"
|
### Instruction:
CREATE TABLE tweets (
followers INTEGER,
UID VARCHAR
)
CREATE TABLE user_profiles (
followers INTEGER,
UID VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the average number of followers for the users who do not have any tweet.
### Response:
|
SELECT AVG(followers) FROM user_profiles WHERE NOT UID IN (SELECT UID FROM tweets)
|
### Instruction:
CREATE TABLE table_2102945_1 (
viewers__in_millions_ VARCHAR,
run_time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 24:31 is the run time how many millions of viewers are there?
### Response:
|
SELECT viewers__in_millions_ FROM table_2102945_1 WHERE run_time = "24:31"
|
### Instruction:
CREATE TABLE table_52519 (
"Ceremony" text,
"Award" text,
"Category" text,
"Nominee" text,
"Outcome" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the nominee for best director?
### Response:
|
SELECT "Nominee" FROM table_52519 WHERE "Category" = 'best director'
|
### Instruction:
CREATE TABLE table_name_39 (
laps VARCHAR,
grid VARCHAR,
time VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Laps when collision shows for time for Switzerland and less than 11 for grid?
### Response:
|
SELECT COUNT(laps) FROM table_name_39 WHERE time = "collision" AND team = "switzerland" AND grid < 11
|
### Instruction:
CREATE TABLE table_4478 (
"Number" text,
"Name" text,
"Meaning" text,
"Fleet" text,
"Launched" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what number is associated with the name chartist ( )?
### Response:
|
SELECT "Number" FROM table_4478 WHERE "Name" = 'chartist (чартист)'
|
### Instruction:
CREATE TABLE table_name_4 (
against VARCHAR,
draws VARCHAR,
wins VARCHAR,
losses VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of Against values for clubs with more than 2 wins, 5 losses, and 0 draws?
### Response:
|
SELECT COUNT(against) FROM table_name_4 WHERE wins > 2 AND losses = 5 AND draws < 0
|
### Instruction:
CREATE TABLE table_38257 (
"Name" text,
"Type" text,
"Year Built" real,
"Where Built" text,
"Length" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where the length is 91', what is the year built?
### Response:
|
SELECT "Year Built" FROM table_38257 WHERE "Length" = '91'
|
### Instruction:
CREATE TABLE table_name_88 (
wsu_year_s_ VARCHAR,
pro_year_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is WSU Year(s), when Pro Year(s) is 1974-77?
### Response:
|
SELECT wsu_year_s_ FROM table_name_88 WHERE pro_year_s_ = "1974-77"
|
### Instruction:
CREATE TABLE table_name_28 (
to_par VARCHAR,
player VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of To Par, when Player is 'Julius Boros', and when Total is greater than 295?
### Response:
|
SELECT COUNT(to_par) FROM table_name_28 WHERE player = "julius boros" AND total > 295
|
### Instruction:
CREATE TABLE table_name_97 (
date_of_death VARCHAR,
date_of_birth VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Date of Death of the person whose Date of Birth was 28 May 1371?
### Response:
|
SELECT date_of_death FROM table_name_97 WHERE date_of_birth = "28 may 1371"
|
### Instruction:
CREATE TABLE table_name_39 (
points VARCHAR,
series VARCHAR,
poles VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Points with a Series of italian formula renault 2.0, and Poles smaller than 0?
### Response:
|
SELECT COUNT(points) FROM table_name_39 WHERE series = "italian formula renault 2.0" AND poles < 0
|
### Instruction:
CREATE TABLE table_62187 (
"Name" text,
"Championship" real,
"League Cup" real,
"FA Cup" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average total for less than 1 championship?
### Response:
|
SELECT AVG("Total") FROM table_62187 WHERE "Championship" < '1'
|
### Instruction:
CREATE TABLE table_name_23 (
total INTEGER,
nation VARCHAR,
silver VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average total when the silver is larger than 2, and a gold larger than 1, and a nation of total?
### Response:
|
SELECT AVG(total) FROM table_name_23 WHERE silver > 2 AND gold > 1 AND nation = total
|
### Instruction:
CREATE TABLE table_52818 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Player attended George Washington High School?
### Response:
|
SELECT "Player" FROM table_52818 WHERE "School" = 'george washington high school'
|
### Instruction:
CREATE TABLE table_69016 (
"Year" text,
"Venue" text,
"Winners" text,
"Runner-up" text,
"3rd place" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the venue Landshut?
### Response:
|
SELECT "Year" FROM table_69016 WHERE "Venue" = 'landshut'
|
### Instruction:
CREATE TABLE table_203_447 (
id number,
"constituency" number,
"region" text,
"name" text,
"party" text,
"last elected" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the last region listed on the table ?
### Response:
|
SELECT "region" FROM table_203_447 ORDER BY id DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_9659 (
"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.
-- Which Away team has a Home team of walsall?
### Response:
|
SELECT "Away team" FROM table_9659 WHERE "Home team" = 'walsall'
|
### Instruction:
CREATE TABLE table_56665 (
"Driver" text,
"Constructor" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many laps did Eddie Irvine have?
### Response:
|
SELECT "Laps" FROM table_56665 WHERE "Driver" = 'eddie irvine'
|
### Instruction:
CREATE TABLE table_name_93 (
year INTEGER,
competition VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year has a Competition of olympic games, and a Venue of atlanta, united states?
### Response:
|
SELECT AVG(year) FROM table_name_93 WHERE competition = "olympic games" AND venue = "atlanta, united states"
|
### Instruction:
CREATE TABLE table_name_15 (
income_inequality_1994_2011__latest_available_ VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the current income inequality for the country of Seychelles?
### Response:
|
SELECT income_inequality_1994_2011__latest_available_ FROM table_name_15 WHERE country = "seychelles"
|
### Instruction:
CREATE TABLE table_75267 (
"Nation" text,
"Skip" text,
"Third" text,
"Second" text,
"Lead" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the Second with Nikolina Petric as Third?
### Response:
|
SELECT "Second" FROM table_75267 WHERE "Third" = 'nikolina petric'
|
### Instruction:
CREATE TABLE table_name_35 (
money___$__ VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Money ( $ ), when Score is '75-71-72-70=288'?
### Response:
|
SELECT money___$__ FROM table_name_35 WHERE score = 75 - 71 - 72 - 70 = 288
|
### Instruction:
CREATE TABLE table_36001 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Attendance has a Tie number of 5?
### Response:
|
SELECT "Attendance" FROM table_36001 WHERE "Tie no" = '5'
|
### Instruction:
CREATE TABLE table_name_28 (
name VARCHAR,
pos VARCHAR,
date_of_birth VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- born on 1983-03-14, what is the cb's name?
### Response:
|
SELECT name FROM table_name_28 WHERE pos = "cb" AND date_of_birth = "1983-03-14"
|
### Instruction:
CREATE TABLE table_204_902 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the top ranked competitor in this race ?
### Response:
|
SELECT "name" FROM table_204_902 WHERE "rank" = 1
|
### Instruction:
CREATE TABLE table_name_4 (
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What shows for 209 when the 2000 is , and a Total of 3, and a 2004 of 9th?
### Response:
|
SELECT 2009 FROM table_name_4 WHERE 2000 = "–" AND total = 3 AND 2004 = "9th"
|
### Instruction:
CREATE TABLE table_name_44 (
format_name VARCHAR,
video_coding VARCHAR,
color_sampling VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What format name has dv as video coding and 4:1:1 as the color sampling?
### Response:
|
SELECT format_name FROM table_name_44 WHERE video_coding = "dv" AND color_sampling = "4:1:1"
|
### Instruction:
CREATE TABLE table_204_395 (
id number,
"year" number,
"competition" text,
"venue" text,
"position" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the last competition on the chart ?
### Response:
|
SELECT "competition" FROM table_204_395 ORDER BY id DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_80325 (
"Week" real,
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which week did the Baltimore Ravens play at home ?
### Response:
|
SELECT "Week" FROM table_80325 WHERE "Host Team" = 'baltimore ravens'
|
### Instruction:
CREATE TABLE table_name_10 (
goals_conceded INTEGER,
points VARCHAR,
lost VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total of Goals Conceded that has Points smaller than 21 and a Lost thats smaller than 8?
### Response:
|
SELECT SUM(goals_conceded) FROM table_name_10 WHERE points < 21 AND lost < 8
|
### Instruction:
CREATE TABLE table_name_94 (
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 1 goal, and the date is August 27, 1980?
### Response:
|
SELECT venue FROM table_name_94 WHERE score = "1 goal" AND date = "august 27, 1980"
|
### Instruction:
CREATE TABLE table_52711 (
"Rank" real,
"Mountain Peak" text,
"State" text,
"Mountain Range" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which state is West Spanish Peak in?
### Response:
|
SELECT "State" FROM table_52711 WHERE "Mountain Peak" = 'west spanish peak'
|
### Instruction:
CREATE TABLE table_65665 (
"Actor" text,
"Character" text,
"Soap Opera" text,
"Years" text,
"Duration" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the duration of the character Bartha Zsolt?
### Response:
|
SELECT "Duration" FROM table_65665 WHERE "Character" = 'bartha zsolt'
|
### Instruction:
CREATE TABLE table_74499 (
"Aircraft" text,
"Origin" text,
"Type" text,
"Versions" text,
"In service" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the versions for czechoslovakia?
### Response:
|
SELECT "Versions" FROM table_74499 WHERE "Origin" = 'czechoslovakia'
|
### Instruction:
CREATE TABLE table_20074209_1 (
redskins__score_ VARCHAR,
opponent__score_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is redskins (score) against tennessee titans 27
### Response:
|
SELECT redskins__score_ FROM table_20074209_1 WHERE opponent__score_ = "Tennessee Titans 27"
|
### Instruction:
CREATE TABLE table_13862 (
"Competition" text,
"Total" real,
"Al Ahly wins" real,
"Draws" real,
"El Zamalek wins" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which competition had 2 draws?
### Response:
|
SELECT "Competition" FROM table_13862 WHERE "Draws" = '2'
|
### Instruction:
CREATE TABLE table_name_52 (
tournament VARCHAR,
surface VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which tournament was played on clay and there was a score of 4 6, 6 1, 6 4?
### Response:
|
SELECT tournament FROM table_name_52 WHERE surface = "clay" AND score = "4–6, 6–1, 6–4"
|
### Instruction:
CREATE TABLE table_27714573_1 (
written_by VARCHAR,
production_code_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who are the writers of the episode whose production code(s) is 225560?
### Response:
|
SELECT written_by FROM table_27714573_1 WHERE production_code_s_ = 225560
|
### Instruction:
CREATE TABLE table_24291077_8 (
brisbane INTEGER,
melbourne VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the rating in Brisbane the week it was 276000 in Melbourne?
### Response:
|
SELECT MAX(brisbane) FROM table_24291077_8 WHERE melbourne = 276000
|
### Instruction:
CREATE TABLE table_31423 (
"Prefix class" text,
"Type and usage" text,
"Example" text,
"Equivalent" text,
"Reference" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every equivalent for the example of asy28?
### Response:
|
SELECT "Equivalent" FROM table_31423 WHERE "Example" = 'ASY28'
|
### Instruction:
CREATE TABLE table_38072 (
"Played" real,
"Wins" real,
"Losses" real,
"No Result" real,
"% Win" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of played with wins more than 19
### Response:
|
SELECT SUM("Played") FROM table_38072 WHERE "Wins" > '19'
|
### Instruction:
CREATE TABLE table_23248420_1 (
county VARCHAR,
region_province VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 20 is the rank and north west is the region/province what is the county?
### Response:
|
SELECT county FROM table_23248420_1 WHERE region_province = "North West" AND rank = 20
|
### Instruction:
CREATE TABLE table_name_2 (
lost INTEGER,
position VARCHAR,
points VARCHAR,
difference VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total lost that has points greater than 8 and a difference of - 8 and a position of greater than 5?
### Response:
|
SELECT SUM(lost) FROM table_name_2 WHERE points > 8 AND difference = "- 8" AND position > 5
|
### Instruction:
CREATE TABLE table_name_56 (
rebounds INTEGER,
team VARCHAR,
games VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Rebounds, when Team is Aris Thessaloniki, and when Games is greater than 14?
### Response:
|
SELECT SUM(rebounds) FROM table_name_56 WHERE team = "aris thessaloniki" AND games > 14
|
### Instruction:
CREATE TABLE table_57388 (
"Region" text,
"Host" text,
"Venue" text,
"City" text,
"State" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What region is the host university of southern california located?
### Response:
|
SELECT "Region" FROM table_57388 WHERE "Host" = 'university of southern california'
|
### Instruction:
CREATE TABLE table_34339 (
"Pick #" real,
"Round" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For Pick #323, which round is it?
### Response:
|
SELECT "Round" FROM table_34339 WHERE "Pick #" = '323'
|
### Instruction:
CREATE TABLE table_29997127_4 (
game INTEGER,
location_attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what game was the attendance at the America West Arena 18,756?
### Response:
|
SELECT MAX(game) FROM table_29997127_4 WHERE location_attendance = "America West Arena 18,756"
|
### Instruction:
CREATE TABLE table_22464685_1 (
transliteration VARCHAR,
period_covered VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the transliteration during the period covered is 1125-1223?
### Response:
|
SELECT transliteration FROM table_22464685_1 WHERE period_covered = "1125-1223"
|
### Instruction:
CREATE TABLE table_65715 (
"Player" text,
"Round" real,
"Pick" real,
"Position" text,
"NFL Club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round has a Pick larger than 179?
### Response:
|
SELECT MAX("Round") FROM table_65715 WHERE "Pick" > '179'
|
### Instruction:
CREATE TABLE table_34757 (
"Rank" real,
"Centre" text,
"Country" text,
"Rating" real,
"Change" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Rating has a Centre of helsinki?
### Response:
|
SELECT SUM("Rating") FROM table_34757 WHERE "Centre" = 'helsinki'
|
### Instruction:
CREATE TABLE table_name_80 (
total_attendance VARCHAR,
average_attendance VARCHAR,
sport VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the total attendance in rink hockey when the average attendance was smaller than 4850?
### Response:
|
SELECT total_attendance FROM table_name_80 WHERE average_attendance < 4850 AND sport = "rink hockey"
|
### Instruction:
CREATE TABLE table_11399 (
"Year" real,
"Chassis" text,
"Engine(s)" text,
"Tyres" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What engine was made in 1991?
### Response:
|
SELECT "Engine(s)" FROM table_11399 WHERE "Year" = '1991'
|
### Instruction:
CREATE TABLE table_19453 (
"Virtual" real,
"Physical" real,
"Call sign" text,
"Branding" text,
"Network" text,
"Owner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the number of virtual for NBC
### Response:
|
SELECT COUNT("Virtual") FROM table_19453 WHERE "Network" = 'NBC'
|
### Instruction:
CREATE TABLE table_name_21 (
player VARCHAR,
school VARCHAR,
division VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Player is from the west Division and the Team of special teams and is from the School Toledo Western Michigan?
### Response:
|
SELECT player FROM table_name_21 WHERE division = "west" AND team = "special teams" AND school = "toledo western michigan"
|
### Instruction:
CREATE TABLE table_36146 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Rebounds" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rebounds does Ann Wauters have?
### Response:
|
SELECT COUNT("Rebounds") FROM table_36146 WHERE "Name" = 'ann wauters'
|
### Instruction:
CREATE TABLE table_52152 (
"Date" text,
"Venue" text,
"Result" text,
"Competition" text,
"Goals" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what Venue was the Result 1-3?
### Response:
|
SELECT "Venue" FROM table_52152 WHERE "Result" = '1-3'
|
### Instruction:
CREATE TABLE table_8411 (
"Player" text,
"Round" text,
"Overall" text,
"NHL Team" text,
"MWEHL Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which MWEHL team has player Ben Johnson?
### Response:
|
SELECT "MWEHL Team" FROM table_8411 WHERE "Player" = 'ben johnson'
|
### Instruction:
CREATE TABLE table_59358 (
"Publication" text,
"Country" text,
"Accolade" text,
"Year" real,
"Rank" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What rank is the publication the observer music monthly?
### Response:
|
SELECT "Rank" FROM table_59358 WHERE "Publication" = 'the observer music monthly'
|
### Instruction:
CREATE TABLE table_name_91 (
april_28 VARCHAR,
final VARCHAR,
mar_17 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the April 28th rank when the Final is 20, and Mar 17 is 22?
### Response:
|
SELECT april_28 FROM table_name_91 WHERE final = "20" AND mar_17 = "22"
|
### Instruction:
CREATE TABLE table_9346 (
"Event" text,
"Skip" text,
"Lead" text,
"Alternate" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event has the result of 7th (5-6)?
### Response:
|
SELECT "Event" FROM table_9346 WHERE "Result" = '7th (5-6)'
|
### Instruction:
CREATE TABLE table_62902 (
"Name (pinyin)" text,
"Name (Wade Giles)" text,
"Characters" text,
"Type" text,
"Construction" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type has the characters ?
### Response:
|
SELECT "Type" FROM table_62902 WHERE "Characters" = '廣利'
|
### Instruction:
CREATE TABLE table_name_32 (
round___race VARCHAR,
winning_driver VARCHAR,
pole_position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the round or race of the winning driver Charles Hollings and what was his pole position?
### Response:
|
SELECT round___race FROM table_name_32 WHERE winning_driver = "charles hollings" AND pole_position = "charles hollings"
|
### Instruction:
CREATE TABLE table_60628 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What week was the result l 14 9?
### Response:
|
SELECT "Week" FROM table_60628 WHERE "Result" = 'l 14–9'
|
### Instruction:
CREATE TABLE table_59298 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What week did Cleveland Browns played?
### Response:
|
SELECT AVG("Week") FROM table_59298 WHERE "Opponent" = 'cleveland browns'
|
### Instruction:
CREATE TABLE table_20688030_1 (
mccain_number VARCHAR,
obama_percentage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is McCains percent when Obamas is 39.13%
### Response:
|
SELECT COUNT(mccain_number) FROM table_20688030_1 WHERE obama_percentage = "39.13%"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.