instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_94 (
case_suffix__case_ VARCHAR,
postposition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Case Suffix (Case), when Postposition is '-mde (drops d)'?
### Response:
|
SELECT case_suffix__case_ FROM table_name_94 WHERE postposition = "-mde (drops d)"
|
### Instruction:
CREATE TABLE table_name_75 (
caps INTEGER,
club_province VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of caps for Meralomas with positions of centre?
### Response:
|
SELECT AVG(caps) FROM table_name_75 WHERE club_province = "meralomas" AND position = "centre"
|
### Instruction:
CREATE TABLE table_name_40 (
sack INTEGER,
player VARCHAR,
fumr VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total sack for mike green when fumr is less than 0?
### Response:
|
SELECT SUM(sack) FROM table_name_40 WHERE player = "mike green" AND fumr < 0
|
### Instruction:
CREATE TABLE table_20785990_2 (
position VARCHAR,
home_town VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position of the player who's hometown is North Babylon, NY?
### Response:
|
SELECT position FROM table_20785990_2 WHERE home_town = "North Babylon, NY"
|
### Instruction:
CREATE TABLE table_name_53 (
react INTEGER,
country VARCHAR,
lane VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest react of the athlete from the United States who has a lane less than 4?
### Response:
|
SELECT MIN(react) FROM table_name_53 WHERE country = "united states" AND lane < 4
|
### Instruction:
CREATE TABLE table_name_8 (
state_territory VARCHAR,
winning_driver VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the state the winning driver Jamie Whincup from in round 2?
### Response:
|
SELECT state_territory FROM table_name_8 WHERE winning_driver = "jamie whincup" AND round = 2
|
### Instruction:
CREATE TABLE table_name_48 (
heat INTEGER,
time VARCHAR,
nationality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the highest heat with a time slower than 48.87 from sweden?
### Response:
|
SELECT MAX(heat) FROM table_name_48 WHERE time > 48.87 AND nationality = "sweden"
|
### Instruction:
CREATE TABLE table_76233 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Frank Nobilo plays for what country?
### Response:
|
SELECT "Country" FROM table_76233 WHERE "Player" = 'frank nobilo'
|
### Instruction:
CREATE TABLE table_23385853_20 (
power_stage_wins VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the power stage wins total number if the wins is 10?
### Response:
|
SELECT COUNT(power_stage_wins) FROM table_23385853_20 WHERE wins = 10
|
### Instruction:
CREATE TABLE table_15187735_19 (
segment_c VARCHAR,
segment_b VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the segment C of the episode where segment B is Film Digitization?
### Response:
|
SELECT segment_c FROM table_15187735_19 WHERE segment_b = "Film Digitization"
|
### Instruction:
CREATE TABLE table_name_19 (
draw INTEGER,
competition VARCHAR,
dynamo VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the most draw when the competition is soviet league and dynamo is more than 34?
### Response:
|
SELECT MAX(draw) FROM table_name_19 WHERE competition = "soviet league" AND dynamo > 34
|
### Instruction:
CREATE TABLE table_name_85 (
total VARCHAR,
e_score VARCHAR,
a_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the total score when the E score was larger than 9.6 and the A score was 6?
### Response:
|
SELECT total FROM table_name_85 WHERE e_score > 9.6 AND a_score = 6
|
### Instruction:
CREATE TABLE table_13596 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the to par of canada?
### Response:
|
SELECT "To par" FROM table_13596 WHERE "Country" = 'canada'
|
### Instruction:
CREATE TABLE table_13657749_2 (
results VARCHAR,
gto_winning_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Peter Gregg Hurley Haywood's results?
### Response:
|
SELECT results FROM table_13657749_2 WHERE gto_winning_team = "Peter Gregg Hurley Haywood"
|
### Instruction:
CREATE TABLE table_name_72 (
date VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Date of the Tournament with a Score of 3 6, 7 6(6), 5 7?
### Response:
|
SELECT date FROM table_name_72 WHERE score = "3β6, 7β6(6), 5β7"
|
### Instruction:
CREATE TABLE table_name_40 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2004 Lukoil oil prodroduction when in 2011 oil production 90.917 million tonnes?
### Response:
|
SELECT 2004 FROM table_name_40 WHERE 2011 = "90.917"
|
### Instruction:
CREATE TABLE table_61643 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Nick Faldo's score?
### Response:
|
SELECT "Score" FROM table_61643 WHERE "Player" = 'nick faldo'
|
### Instruction:
CREATE TABLE table_name_62 (
myspace INTEGER,
site VARCHAR,
orkut VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What myspace has linkedin as the site, with an orkit greater than 3?
### Response:
|
SELECT AVG(myspace) FROM table_name_62 WHERE site = "linkedin" AND orkut > 3
|
### Instruction:
CREATE TABLE table_name_87 (
language VARCHAR,
network VARCHAR,
genre VARCHAR,
service VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What language is the moviein that is on UMP movies network through Sky service?
### Response:
|
SELECT language FROM table_name_87 WHERE genre = "movies" AND service = "sky" AND network = "ump movies"
|
### Instruction:
CREATE TABLE table_20726262_2 (
originalairdate VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the original air date for the episode with production code 1wab06?
### Response:
|
SELECT originalairdate FROM table_20726262_2 WHERE production_code = "1WAB06"
|
### Instruction:
CREATE TABLE table_14219514_2 (
home__1st_leg_ VARCHAR,
aggregate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 0-1 is the aggregate what are the home (1st leg)?
### Response:
|
SELECT home__1st_leg_ FROM table_14219514_2 WHERE aggregate = "0-1"
|
### Instruction:
CREATE TABLE student_course_registrations (
student_id VARCHAR
)
CREATE TABLE student_course_attendance (
student_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all info of students who registered courses but not attended courses?
### Response:
|
SELECT * FROM student_course_registrations WHERE NOT student_id IN (SELECT student_id FROM student_course_attendance)
|
### Instruction:
CREATE TABLE table_name_58 (
nation VARCHAR,
bronze VARCHAR,
total VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What nation has a total less than 11, more than 1 silver and less than 1 bronze?
### Response:
|
SELECT nation FROM table_name_58 WHERE total < 11 AND silver < 1 AND bronze < 1
|
### Instruction:
CREATE TABLE table_name_62 (
total VARCHAR,
nation VARCHAR,
silver VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many medals for spain that has 1 silver and 1 bronze?
### Response:
|
SELECT COUNT(total) FROM table_name_62 WHERE silver = "1" AND bronze = "1" AND nation = "spain"
|
### Instruction:
CREATE TABLE table_name_22 (
record VARCHAR,
opponent VARCHAR,
loss VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record at the game against the Blue Jays with a loss of Batista (0 3)?
### Response:
|
SELECT record FROM table_name_22 WHERE opponent = "blue jays" AND loss = "batista (0β3)"
|
### Instruction:
CREATE TABLE table_18254488_2 (
league_cup INTEGER,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When koki mizuno is the player what is the lowest league cup?
### Response:
|
SELECT MIN(league_cup) FROM table_18254488_2 WHERE player = "Koki Mizuno"
|
### Instruction:
CREATE TABLE table_name_21 (
total INTEGER,
event VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Total with the Event 2004 Athens and Gold less than 20?
### Response:
|
SELECT SUM(total) FROM table_name_21 WHERE event = "2004 athens" AND gold < 20
|
### Instruction:
CREATE TABLE table_5073 (
"Team" text,
"Driver" text,
"Laps" real,
"Time" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest grid for new zealand?
### Response:
|
SELECT MAX("Grid") FROM table_5073 WHERE "Team" = 'new zealand'
|
### Instruction:
CREATE TABLE table_name_89 (
wards__branches_in_arkansas VARCHAR,
stake VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the wards/branches of the fort smith Arkansas stake?
### Response:
|
SELECT wards__branches_in_arkansas FROM table_name_89 WHERE stake = "fort smith arkansas"
|
### Instruction:
CREATE TABLE table_1341604_26 (
first_elected INTEGER,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was ike skelton first elected?
### Response:
|
SELECT MIN(first_elected) FROM table_1341604_26 WHERE incumbent = "Ike Skelton"
|
### Instruction:
CREATE TABLE table_58857 (
"Team" text,
"Country" text,
"Domestic tournament" text,
"Position" text,
"Group" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Dolphins Group?
### Response:
|
SELECT "Group" FROM table_58857 WHERE "Team" = 'dolphins'
|
### Instruction:
CREATE TABLE table_99 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people were pick #30?
### Response:
|
SELECT COUNT("Position") FROM table_99 WHERE "Pick #" = '30'
|
### Instruction:
CREATE TABLE table_1181375_1 (
engine VARCHAR,
number_range VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the engine where number range is 8 9, 13 16
### Response:
|
SELECT engine FROM table_1181375_1 WHERE number_range = "8β9, 13β16"
|
### Instruction:
CREATE TABLE table_name_7 (
opponent VARCHAR,
game_site VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has a Game site of heinz field, and a Record of 3 1?
### Response:
|
SELECT opponent FROM table_name_7 WHERE game_site = "heinz field" AND record = "3β1"
|
### Instruction:
CREATE TABLE table_222666_1 (
period_of_validity VARCHAR,
former_country_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number for period of validity for upper volta
### Response:
|
SELECT COUNT(period_of_validity) FROM table_222666_1 WHERE former_country_name = "Upper Volta"
|
### Instruction:
CREATE TABLE table_name_41 (
wins INTEGER,
losses VARCHAR,
against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of wins for teams with 14 losses and against over 2200?
### Response:
|
SELECT AVG(wins) FROM table_name_41 WHERE losses = 14 AND against > 2200
|
### Instruction:
CREATE TABLE table_18539834_2 (
japanese_title VARCHAR,
tv_station VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the japanese title(s) for tv asahi?
### Response:
|
SELECT japanese_title FROM table_18539834_2 WHERE tv_station = "TV Asahi"
|
### Instruction:
CREATE TABLE table_name_23 (
result VARCHAR,
rank_number VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result for Rank 2 on December 6, 1969?
### Response:
|
SELECT result FROM table_name_23 WHERE rank_number = "2" AND date = "december 6, 1969"
|
### Instruction:
CREATE TABLE table_2409041_5 (
production_code INTEGER,
no_in_series VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the production code for episode number 86 in the series?
### Response:
|
SELECT MIN(production_code) FROM table_2409041_5 WHERE no_in_series = 86
|
### Instruction:
CREATE TABLE table_name_7 (
paper_type VARCHAR,
date_of_issue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the paper type that the one that was issued on 26 july 2007 done on?
### Response:
|
SELECT paper_type FROM table_name_7 WHERE date_of_issue = "26 july 2007"
|
### Instruction:
CREATE TABLE table_name_68 (
to_par VARCHAR,
place VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE TO PAR WITH T5 PLACE, AND PLAYER MARK MCCUMBER?
### Response:
|
SELECT to_par FROM table_name_68 WHERE place = "t5" AND player = "mark mccumber"
|
### Instruction:
CREATE TABLE table_name_62 (
current_affiliation VARCHAR,
years_owned VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the current affiliation when the years owned is between 1955 1995?
### Response:
|
SELECT current_affiliation FROM table_name_62 WHERE years_owned = "1955β1995"
|
### Instruction:
CREATE TABLE table_22862203_2 (
terps_points VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the terps points for the nov. 25/05 game?
### Response:
|
SELECT terps_points FROM table_22862203_2 WHERE date = "Nov. 25/05"
|
### Instruction:
CREATE TABLE table_name_1 (
quantity INTEGER,
class_from_1928 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the sum of Quantity for the Class of 1928 of CI-30?
### Response:
|
SELECT SUM(quantity) FROM table_name_1 WHERE class_from_1928 = "ci-30"
|
### Instruction:
CREATE TABLE table_1342233_11 (
party VARCHAR,
candidates VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which party is associated with the candidate Albert Sidney Camp (D) unopposed?
### Response:
|
SELECT COUNT(party) FROM table_1342233_11 WHERE candidates = "Albert Sidney Camp (D) Unopposed"
|
### Instruction:
CREATE TABLE table_name_99 (
title VARCHAR,
year VARCHAR,
distributor_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the movie from 1997 distributed from HBO Pictures?
### Response:
|
SELECT title FROM table_name_99 WHERE year = "1997" AND distributor_s_ = "hbo pictures"
|
### Instruction:
CREATE TABLE table_203_224 (
id number,
"title" text,
"year" number,
"channel" text,
"role" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was her first role ?
### Response:
|
SELECT "role" FROM table_203_224 WHERE id = 1
|
### Instruction:
CREATE TABLE table_2562572_30 (
settlement VARCHAR,
cyrillic_name_other_names VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which settlement has the cyrillic name ?
### Response:
|
SELECT settlement FROM table_2562572_30 WHERE cyrillic_name_other_names = "Π‘ΠΈΠ³Π΅Ρ"
|
### Instruction:
CREATE TABLE table_name_25 (
round VARCHAR,
time VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many rounds had a time of 5:00 at UFC 155?
### Response:
|
SELECT COUNT(round) FROM table_name_25 WHERE time = "5:00" AND event = "ufc 155"
|
### Instruction:
CREATE TABLE table_27700375_8 (
record VARCHAR,
high_assists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many record data were written when Devin Harris (6) was High Assists?
### Response:
|
SELECT COUNT(record) FROM table_27700375_8 WHERE high_assists = "Devin Harris (6)"
|
### Instruction:
CREATE TABLE airport (
International_Passengers VARCHAR,
Domestic_Passengers VARCHAR,
Airport_Name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the number of international and domestic passengers of the airport named London 'Heathrow'?
### Response:
|
SELECT International_Passengers, Domestic_Passengers FROM airport WHERE Airport_Name = "London Heathrow"
|
### Instruction:
CREATE TABLE table_1850282_5 (
tobago VARCHAR,
species VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- are in tobago species liophis cobellus cobellus?
### Response:
|
SELECT tobago FROM table_1850282_5 WHERE species = "Liophis cobellus cobellus"
|
### Instruction:
CREATE TABLE table_name_67 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE 2011 WITH 2007 AT A AND2 008 AT 3R?
### Response:
|
SELECT 2011 FROM table_name_67 WHERE 2007 = "a" AND 2008 = "3r"
|
### Instruction:
CREATE TABLE table_name_47 (
d_48_o VARCHAR,
d_41_β VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the D 48 O with D 41 of d 41
### Response:
|
SELECT d_48_o FROM table_name_47 WHERE d_41_β = "d 41 β"
|
### Instruction:
CREATE TABLE table_name_14 (
bronze INTEGER,
silver VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of bronze medals when the silver is greater than 0, and the total medals 5?
### Response:
|
SELECT SUM(bronze) FROM table_name_14 WHERE silver > 0 AND total = 5
|
### Instruction:
CREATE TABLE table_2534578_1 (
science VARCHAR,
social_studies VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the science score in the year there was a social studies score of 93.56?
### Response:
|
SELECT science FROM table_2534578_1 WHERE social_studies = "93.56"
|
### Instruction:
CREATE TABLE table_name_28 (
finish_construction VARCHAR,
unit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date that construction was finished when the unit was greifswald - 4 (kgr 4)?
### Response:
|
SELECT finish_construction FROM table_name_28 WHERE unit = "greifswald - 4 (kgr 4)"
|
### Instruction:
CREATE TABLE table_name_9 (
draws INTEGER,
losses VARCHAR,
against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of draws for losses over 8 and Against values under 1344?
### Response:
|
SELECT AVG(draws) FROM table_name_9 WHERE losses > 8 AND against < 1344
|
### Instruction:
CREATE TABLE table_13258876_2 (
record VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the Seahawks record on September 18, 1983?
### Response:
|
SELECT record FROM table_13258876_2 WHERE date = "September 18, 1983"
|
### Instruction:
CREATE TABLE table_name_19 (
mascot VARCHAR,
year_joined VARCHAR,
school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the mascot for moores hill that joined later than 1952?
### Response:
|
SELECT mascot FROM table_name_19 WHERE year_joined > 1952 AND school = "moores hill"
|
### Instruction:
CREATE TABLE table_name_98 (
genre VARCHAR,
release_year_of_first_charted_record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the genre for release-year of first charted record of 1988
### Response:
|
SELECT genre FROM table_name_98 WHERE release_year_of_first_charted_record = 1988
|
### Instruction:
CREATE TABLE table_name_53 (
silver INTEGER,
gold VARCHAR,
bronze VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of silver medals with more than 6 gold meals and less than 5 bronze medals?
### Response:
|
SELECT AVG(silver) FROM table_name_53 WHERE gold > 6 AND bronze < 5
|
### Instruction:
CREATE TABLE table_15187735_10 (
segment_d VARCHAR,
segment_a VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of segment d for wooden s barrel
### Response:
|
SELECT COUNT(segment_d) FROM table_15187735_10 WHERE segment_a = "Wooden s Barrel"
|
### Instruction:
CREATE TABLE table_6025 (
"Letter" text,
"Players" text,
"Pitch" text,
"Ret#" text,
"Records" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what pitcher scored 4
### Response:
|
SELECT "Ret#" FROM table_6025 WHERE "Records" = '4'
|
### Instruction:
CREATE TABLE table_12175755_1 (
order__number VARCHAR,
original_artist VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the order number for songs by the original artist Luis Fonsi?
### Response:
|
SELECT order__number FROM table_12175755_1 WHERE original_artist = "Luis Fonsi"
|
### Instruction:
CREATE TABLE table_name_37 (
record VARCHAR,
opponent VARCHAR,
loss VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the record at the game against the Indians with a loss of Camacho (1-4)?
### Response:
|
SELECT record FROM table_name_37 WHERE opponent = "indians" AND loss = "camacho (1-4)"
|
### Instruction:
CREATE TABLE table_name_56 (
distance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of 2012 passengers in millions that have traveled a distance of 1075km?
### Response:
|
SELECT COUNT(2012 AS _passengers__in_millions_) FROM table_name_56 WHERE distance = "1075km"
|
### Instruction:
CREATE TABLE table_13258876_2 (
opponent VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who did the Seahawks play on September 4, 1983?
### Response:
|
SELECT opponent FROM table_13258876_2 WHERE date = "September 4, 1983"
|
### Instruction:
CREATE TABLE table_21632864_1 (
third_place VARCHAR,
runners_up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who got the third position when laranja kyoto got the second position?
### Response:
|
SELECT third_place FROM table_21632864_1 WHERE runners_up = "Laranja Kyoto"
|
### Instruction:
CREATE TABLE table_name_97 (
goals_for VARCHAR,
wins VARCHAR,
goal_difference VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of goals with less than 14 wins and a goal difference less than -4?
### Response:
|
SELECT goals_for FROM table_name_97 WHERE wins < 14 AND goal_difference < -4
|
### Instruction:
CREATE TABLE table_26419467_1 (
alumni VARCHAR,
original_season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What alumni were in rw: cancun as their original season?
### Response:
|
SELECT alumni FROM table_26419467_1 WHERE original_season = "RW: Cancun"
|
### Instruction:
CREATE TABLE table_name_12 (
year INTEGER,
position VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the latest year in which she took 4th position in Budapest, Hungary?
### Response:
|
SELECT MAX(year) FROM table_name_12 WHERE position = "4th" AND venue = "budapest, hungary"
|
### Instruction:
CREATE TABLE table_203_745 (
id number,
"year" text,
"title" text,
"catalog" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the decca catalog number of the singe everybody sing ?
### Response:
|
SELECT "catalog" FROM table_203_745 WHERE "title" = 'everybody sing'
|
### Instruction:
CREATE TABLE table_name_71 (
loser VARCHAR,
winner VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the loser when the New York Giants were the winners on November 14?
### Response:
|
SELECT loser FROM table_name_71 WHERE winner = "new york giants" AND date = "november 14"
|
### Instruction:
CREATE TABLE table_name_25 (
bronze INTEGER,
total VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the average bronze with a total number of medals being 1, with more than 0 silvers?
### Response:
|
SELECT AVG(bronze) FROM table_name_25 WHERE total = 1 AND silver > 0
|
### Instruction:
CREATE TABLE table_name_97 (
time_retired VARCHAR,
laps VARCHAR,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the time/retired for Laps larger than 63 and has a grid of 20
### Response:
|
SELECT time_retired FROM table_name_97 WHERE laps > 63 AND grid = 20
|
### Instruction:
CREATE TABLE table_name_15 (
appearances VARCHAR,
club VARCHAR,
goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many appearances did the player for the Rayo Vallecano club that scored more than 37 goals make?
### Response:
|
SELECT COUNT(appearances) FROM table_name_15 WHERE club = "rayo vallecano" AND goals > 37
|
### Instruction:
CREATE TABLE table_203_762 (
id number,
"#" number,
"date" text,
"film" text,
"gross" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total number of films released ?
### Response:
|
SELECT COUNT("film") FROM table_203_762
|
### Instruction:
CREATE TABLE table_27877656_8 (
outcome VARCHAR,
edition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the outcome in the 2010 Europe/Africa Group IIB edition?
### Response:
|
SELECT outcome FROM table_27877656_8 WHERE edition = "2010 Europe/Africa Group IIB"
|
### Instruction:
CREATE TABLE table_name_76 (
nation VARCHAR,
total VARCHAR,
silver VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Nation has more than 4 silver, more than 3 gold and 18 total medals?
### Response:
|
SELECT nation FROM table_name_76 WHERE silver > 4 AND gold > 3 AND total = 18
|
### Instruction:
CREATE TABLE table_name_71 (
title VARCHAR,
year VARCHAR,
original_channel VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the title when the year is after 2011 and the original channel is nhk?
### Response:
|
SELECT title FROM table_name_71 WHERE year > 2011 AND original_channel = "nhk"
|
### Instruction:
CREATE TABLE table_169955_1 (
saka_era VARCHAR,
sign_of_zodiac VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the saka era for sign of zodiac being pisces
### Response:
|
SELECT saka_era FROM table_169955_1 WHERE sign_of_zodiac = "Pisces"
|
### Instruction:
CREATE TABLE table_2076463_2 (
enrollment INTEGER,
location_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much would you expect the enrollment to be in Springfield?
### Response:
|
SELECT MIN(enrollment) FROM table_2076463_2 WHERE location_s_ = "Springfield"
|
### Instruction:
CREATE TABLE table_204_735 (
id number,
"rank" number,
"team" text,
"names" text,
"time" text,
"qualification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many consecutive rankings are listed ?
### Response:
|
SELECT COUNT("rank") FROM table_204_735
|
### Instruction:
CREATE TABLE table_name_97 (
sitalsasthi_carnival VARCHAR,
kosal VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sitalsasthi carnival with sonepur as kosal?
### Response:
|
SELECT sitalsasthi_carnival FROM table_name_97 WHERE kosal = "sonepur"
|
### Instruction:
CREATE TABLE table_name_60 (
quantity INTEGER,
year VARCHAR,
model VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of quantity for before 2011 model slf-230
### Response:
|
SELECT SUM(quantity) FROM table_name_60 WHERE year < 2011 AND model = "slf-230"
|
### Instruction:
CREATE TABLE table_name_68 (
height_feet___m VARCHAR,
floors VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the height of the Tides with less than 34 floors?
### Response:
|
SELECT height_feet___m FROM table_name_68 WHERE floors < 34 AND name = "the tides"
|
### Instruction:
CREATE TABLE table_name_91 (
round INTEGER,
position VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest Round that has a Position of Tackle and the Player Fred Neilsen?
### Response:
|
SELECT MAX(round) FROM table_name_91 WHERE position = "tackle" AND player = "fred neilsen"
|
### Instruction:
CREATE TABLE table_name_43 (
country VARCHAR,
date VARCHAR,
catalog_nr VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which country has the catalog nr of thr-048 in 2004?
### Response:
|
SELECT country FROM table_name_43 WHERE date = "2004" AND catalog_nr = "thr-048"
|
### Instruction:
CREATE TABLE table_name_43 (
opponent VARCHAR,
venue VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who played against in venue a on 17 february 1900?
### Response:
|
SELECT opponent FROM table_name_43 WHERE venue = "a" AND date = "17 february 1900"
|
### Instruction:
CREATE TABLE table_name_78 (
position VARCHAR,
elected VARCHAR,
country_of_origin VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position elected in 2011 from the Country of Algeria?
### Response:
|
SELECT position FROM table_name_78 WHERE elected = 2011 AND country_of_origin = "algeria"
|
### Instruction:
CREATE TABLE table_name_64 (
round VARCHAR,
college VARCHAR,
overall VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Round has a College of appalachian state, and an Overall smaller than 156?
### Response:
|
SELECT COUNT(round) FROM table_name_64 WHERE college = "appalachian state" AND overall < 156
|
### Instruction:
CREATE TABLE table_name_88 (
home VARCHAR,
visitor VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team was the home team when Colorado was the visitor and the record became 22 13 6?
### Response:
|
SELECT home FROM table_name_88 WHERE visitor = "colorado" AND record = "22β13β6"
|
### Instruction:
CREATE TABLE table_17039232_3 (
outgoing_manager VARCHAR,
position_in_table VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the outgoing manager for position in table being 11th
### Response:
|
SELECT outgoing_manager FROM table_17039232_3 WHERE position_in_table = "11th"
|
### Instruction:
CREATE TABLE table_name_61 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the 1997 value when 2002 was A and 2003 was 1R?
### Response:
|
SELECT 1997 FROM table_name_61 WHERE 2002 = "a" AND 2003 = "1r"
|
### Instruction:
CREATE TABLE table_name_45 (
rank INTEGER,
name VARCHAR,
games VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of Rank, when Name is Will Solomon, and when Games is greater than 21?
### Response:
|
SELECT SUM(rank) FROM table_name_45 WHERE name = "will solomon" AND games > 21
|
### Instruction:
CREATE TABLE table_name_9 (
read_by VARCHAR,
un__abridged VARCHAR,
author VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who read the unabridged book written by Gary Paulsen?
### Response:
|
SELECT read_by FROM table_name_9 WHERE un__abridged = "unabridged" AND author = "gary paulsen"
|
### Instruction:
CREATE TABLE table_12272590_2 (
season VARCHAR,
best_supported_club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many season did sportfreunde siegen win best supported club?
### Response:
|
SELECT COUNT(season) FROM table_12272590_2 WHERE best_supported_club = "Sportfreunde Siegen"
|
### Instruction:
CREATE TABLE table_12564633_1 (
series__number INTEGER,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the first series in this list that Jack Orman wrote?
### Response:
|
SELECT MIN(series__number) FROM table_12564633_1 WHERE written_by = "Jack Orman"
|
### Instruction:
CREATE TABLE table_name_5 (
socialist_ticket VARCHAR,
democratic_ticket VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who's the Socialist ticket with a Democratic ticket of herbert h. lehman?
### Response:
|
SELECT socialist_ticket FROM table_name_5 WHERE democratic_ticket = "herbert h. lehman"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.