instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_22 (
winning_driver VARCHAR,
constructor VARCHAR,
race_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winner of the XII Spring Trophy race with BRM as the constructor?
### Response:
|
SELECT winning_driver FROM table_name_22 WHERE constructor = "brm" AND race_name = "xii spring trophy"
|
### Instruction:
CREATE TABLE table_name_52 (
starts INTEGER,
tournament VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the tournament of HSBC Champions, what was the sum of the Starts with Wins lower than 0?
### Response:
|
SELECT SUM(starts) FROM table_name_52 WHERE tournament = "hsbc champions" AND wins < 0
|
### Instruction:
CREATE TABLE table_name_40 (
b_score INTEGER,
position VARCHAR,
a_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the score for the 5th position and a score less than 7
### Response:
|
SELECT MIN(b_score) FROM table_name_40 WHERE position = "5th" AND a_score < 7
|
### Instruction:
CREATE TABLE table_28194879_1 (
_number INTEGER,
written_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the last number in season of the episodes written by Dan Vebber?
### Response:
|
SELECT MAX(_number) FROM table_28194879_1 WHERE written_by = "Dan Vebber"
|
### Instruction:
CREATE TABLE table_name_56 (
velocity__km_h_ INTEGER,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- on august 16, 1963, what is the velocity?
### Response:
|
SELECT SUM(velocity__km_h_) FROM table_name_56 WHERE date = "august 16, 1963"
|
### Instruction:
CREATE TABLE table_name_59 (
format VARCHAR,
label VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the format on july 27, 1994 for alfa records
### Response:
|
SELECT format FROM table_name_59 WHERE label = "alfa records" AND date = "july 27, 1994"
|
### Instruction:
CREATE TABLE table_1529793_1 (
listed_owner_s_ VARCHAR,
driver_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who owned the team Jeremy Mayfield raced for?
### Response:
|
SELECT listed_owner_s_ FROM table_1529793_1 WHERE driver_s_ = "Jeremy Mayfield"
|
### Instruction:
CREATE TABLE table_17521433_1 (
swimsuit VARCHAR,
average VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the swimsuit score for the country with the average score of 8.848?
### Response:
|
SELECT swimsuit FROM table_17521433_1 WHERE average = "8.848"
|
### Instruction:
CREATE TABLE weather (
zip_code VARCHAR,
max_dew_point_f VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find all the zip codes in which the max dew point have never reached 70.
### Response:
|
SELECT DISTINCT zip_code FROM weather EXCEPT SELECT DISTINCT zip_code FROM weather WHERE max_dew_point_f >= 70
|
### Instruction:
CREATE TABLE table_19698421_1 (
number_of_candidates VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many candidates were there in the year of 1987?
### Response:
|
SELECT number_of_candidates FROM table_19698421_1 WHERE year = "1987"
|
### Instruction:
CREATE TABLE table_5507 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what team was the visitor in the chicago game
### Response:
|
SELECT "Visitor" FROM table_5507 WHERE "Home" = 'chicago'
|
### Instruction:
CREATE TABLE table_name_9 (
round VARCHAR,
opponent VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What round did the celtic played away on 24 february 1900?
### Response:
|
SELECT round FROM table_name_9 WHERE opponent = "celtic" AND date = "24 february 1900"
|
### Instruction:
CREATE TABLE table_name_73 (
year INTEGER,
chassis VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Year with a Veritas rs chassis and more than 0 points?
### Response:
|
SELECT AVG(year) FROM table_name_73 WHERE chassis = "veritas rs" AND points > 0
|
### Instruction:
CREATE TABLE table_10722506_6 (
_number_of_bids VARCHAR,
conference VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of bids of the sun belt conference
### Response:
|
SELECT COUNT(_number_of_bids) FROM table_10722506_6 WHERE conference = "Sun Belt"
|
### Instruction:
CREATE TABLE table_name_21 (
city VARCHAR,
oil_pattern VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city had the chameleon oil pattern at the Go RV'ing Classic?
### Response:
|
SELECT city FROM table_name_21 WHERE oil_pattern = "chameleon" AND event = "go rv'ing classic"
|
### Instruction:
CREATE TABLE table_25246990_2 (
no_in_series VARCHAR,
prod_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What number episode in the series had a production code of 111?
### Response:
|
SELECT no_in_series FROM table_25246990_2 WHERE prod_code = "111"
|
### Instruction:
CREATE TABLE table_170969_2 (
census_ranking VARCHAR,
area_km_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the census ranking when the area is 78.67 ?
### Response:
|
SELECT census_ranking FROM table_170969_2 WHERE area_km_2 = "78.67"
|
### Instruction:
CREATE TABLE table_12962773_12 (
year_born INTEGER,
height VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the player with the height 2.04 born?
### Response:
|
SELECT MIN(year_born) FROM table_12962773_12 WHERE height = "2.04"
|
### Instruction:
CREATE TABLE table_name_83 (
total INTEGER,
finish VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average total of player hale irwin, who had a t52 finish?
### Response:
|
SELECT AVG(total) FROM table_name_83 WHERE finish = "t52" AND player = "hale irwin"
|
### Instruction:
CREATE TABLE table_name_59 (
points VARCHAR,
lost VARCHAR,
points_against VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points did the club with 13 losses and 461 points against have?
### Response:
|
SELECT points FROM table_name_59 WHERE lost = "13" AND points_against = "461"
|
### Instruction:
CREATE TABLE table_name_51 (
gold INTEGER,
nation VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Japan (JPN) with a total of less than 5, has what average gold medals?
### Response:
|
SELECT AVG(gold) FROM table_name_51 WHERE nation = "japan (jpn)" AND total < 5
|
### Instruction:
CREATE TABLE table_17311759_4 (
score VARCHAR,
high_rebounds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Give the score when high rebounds was zaza pachulia (8)
### Response:
|
SELECT score FROM table_17311759_4 WHERE high_rebounds = "Zaza Pachulia (8)"
|
### Instruction:
CREATE TABLE table_name_69 (
year VARCHAR,
start VARCHAR,
qual VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what year did a Qual of 141.105 with a Start of 25 happen?
### Response:
|
SELECT year FROM table_name_69 WHERE start = "25" AND qual = "141.105"
|
### Instruction:
CREATE TABLE table_11240028_3 (
portrayed_by VARCHAR,
relationship VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many characters were portrayed by the informant of don flack?
### Response:
|
SELECT COUNT(portrayed_by) FROM table_11240028_3 WHERE relationship = "Informant of Don Flack"
|
### Instruction:
CREATE TABLE table_23982399_12 (
winner VARCHAR,
iron_chef VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winner when the iron chef is hiroyuki sakai?
### Response:
|
SELECT winner FROM table_23982399_12 WHERE iron_chef = "Hiroyuki Sakai"
|
### Instruction:
CREATE TABLE table_name_78 (
song_title VARCHAR,
chart_peak VARCHAR,
track VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the title of the song that peaked the charts at #1 with track 20?
### Response:
|
SELECT song_title FROM table_name_78 WHERE chart_peak = "#1" AND track = 20
|
### Instruction:
CREATE TABLE table_13477468_3 (
original_air_date VARCHAR,
directed_by VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the original air date of the episode directed by Jeff Melman?
### Response:
|
SELECT original_air_date FROM table_13477468_3 WHERE directed_by = "Jeff Melman"
|
### Instruction:
CREATE TABLE table_name_94 (
competition_description VARCHAR,
rank_qualifying VARCHAR,
apparatus VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What competition had a Rank-Qualifying of 1st and a ball apparatus?
### Response:
|
SELECT competition_description FROM table_name_94 WHERE rank_qualifying = "1st" AND apparatus = "ball"
|
### Instruction:
CREATE TABLE table_name_96 (
opponent VARCHAR,
week VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the opponent after week 8 that had 72,190 people in attendance?
### Response:
|
SELECT opponent FROM table_name_96 WHERE week > 8 AND attendance = "72,190"
|
### Instruction:
CREATE TABLE table_name_61 (
number_of_electorates__2009_ VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of electorates when the name is badnawar?
### Response:
|
SELECT number_of_electorates__2009_ FROM table_name_61 WHERE name = "badnawar"
|
### Instruction:
CREATE TABLE table_26914759_3 (
position_in_table VARCHAR,
incoming_manager VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many teams had gary megson as an incoming manager
### Response:
|
SELECT COUNT(position_in_table) FROM table_26914759_3 WHERE incoming_manager = "Gary Megson"
|
### Instruction:
CREATE TABLE table_name_24 (
date VARCHAR,
fastest_lap VARCHAR,
round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date does Yuji Tachikawa have the fastest lap in round 1?
### Response:
|
SELECT date FROM table_name_24 WHERE fastest_lap = "yuji tachikawa" AND round = 1
|
### Instruction:
CREATE TABLE table_22825058_23 (
result VARCHAR,
opponents VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the result for ji nov k radek t p nek
### Response:
|
SELECT result FROM table_22825058_23 WHERE opponents = "Jiří Novák Radek Štěpánek"
|
### Instruction:
CREATE TABLE table_15525 (
"Place" text,
"Player" text,
"Country" text,
"Score" real,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Dave Douglas has what score?
### Response:
|
SELECT "Score" FROM table_15525 WHERE "Player" = 'dave douglas'
|
### Instruction:
CREATE TABLE table_16337329_5 (
probable_future VARCHAR,
imperative VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the probably futures for gares 'may you do
### Response:
|
SELECT probable_future FROM table_16337329_5 WHERE imperative = "गरेस् gares 'may you do'"
|
### Instruction:
CREATE TABLE table_name_37 (
bachelorette VARCHAR,
premiered VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the bachelorette of the season that premiered on May 24, 2010?
### Response:
|
SELECT bachelorette FROM table_name_37 WHERE premiered = "may 24, 2010"
|
### Instruction:
CREATE TABLE table_name_19 (
location VARCHAR,
bowl VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where was the California bowl played with 30,000 attending?
### Response:
|
SELECT location FROM table_name_19 WHERE bowl = "california bowl" AND attendance = "30,000"
|
### Instruction:
CREATE TABLE table_name_55 (
caps INTEGER,
position VARCHAR,
club_province VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the high cap total for a lock with the vicenza rangers?
### Response:
|
SELECT MAX(caps) FROM table_name_55 WHERE position = "lock" AND club_province = "vicenza rangers"
|
### Instruction:
CREATE TABLE table_name_51 (
american_labor_ticket VARCHAR,
democratic_ticket VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which American Labor candidate ran against Democratic candidate Robert F. Wagner?
### Response:
|
SELECT american_labor_ticket FROM table_name_51 WHERE democratic_ticket = "robert f. wagner"
|
### Instruction:
CREATE TABLE table_23649244_2 (
song_1_title VARCHAR,
artist_1 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is song 1 title is the artist is Danny Byrd?
### Response:
|
SELECT song_1_title FROM table_23649244_2 WHERE artist_1 = "Danny Byrd"
|
### Instruction:
CREATE TABLE table_255885_1 (
municipality VARCHAR,
area__km²_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the municipality that has an area of exactly 214.44 sq. km?
### Response:
|
SELECT municipality FROM table_255885_1 WHERE area__km²_ = "214.44"
|
### Instruction:
CREATE TABLE table_name_83 (
round VARCHAR,
venue VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which round was played in the H Venue on 29 january 1949?
### Response:
|
SELECT round FROM table_name_83 WHERE venue = "h" AND date = "29 january 1949"
|
### Instruction:
CREATE TABLE table_name_59 (
date VARCHAR,
opponents VARCHAR,
competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the date of the GC competition when the opponents are 1. FC Nuremberg?
### Response:
|
SELECT date FROM table_name_59 WHERE opponents = "1. fc nuremberg" AND competition = "gc"
|
### Instruction:
CREATE TABLE table_23180638_1 (
peak_position VARCHAR,
oricon_albums_chart VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many peak positions were there on the daily charts?
### Response:
|
SELECT peak_position FROM table_23180638_1 WHERE oricon_albums_chart = "Daily Charts"
|
### Instruction:
CREATE TABLE table_name_89 (
year INTEGER,
role VARCHAR,
character VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the main role a character named Guan Yu ( )?
### Response:
|
SELECT MIN(year) FROM table_name_89 WHERE role = "main" AND character = "guan yu (關羽)"
|
### Instruction:
CREATE TABLE table_202_74 (
id number,
"year" text,
"film" text,
"role" text,
"other notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what was the first character she played in her first movie ?
### Response:
|
SELECT "role" FROM table_202_74 ORDER BY id LIMIT 1
|
### Instruction:
CREATE TABLE table_name_65 (
_ VARCHAR,
knots_knots VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the pseudoknot prediction of the software named tfold?
### Response:
|
SELECT knots_knots AS :_pseudoknot_prediction, _ FROM table_name_65 WHERE name = "tfold"
|
### Instruction:
CREATE TABLE table_26427332_17 (
federal_state VARCHAR,
city VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- for how many federal states is the city of lahnstein listed in the ranking?
### Response:
|
SELECT COUNT(federal_state) FROM table_26427332_17 WHERE city = "Lahnstein"
|
### Instruction:
CREATE TABLE table_name_16 (
avg INTEGER,
yards VARCHAR,
rec VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average of the player with 124 yards and less than 13 rec.?
### Response:
|
SELECT AVG(avg) FROM table_name_16 WHERE yards = 124 AND rec < 13
|
### Instruction:
CREATE TABLE table_name_99 (
home VARCHAR,
away VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the home with a 1-1 away in the 2004-05 season?
### Response:
|
SELECT home FROM table_name_99 WHERE away = "1-1" AND season = "2004-05"
|
### Instruction:
CREATE TABLE table_name_46 (
interview INTEGER,
state VARCHAR,
swimsuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the lowest interview for oklahoma and swimsuit less than 8.8
### Response:
|
SELECT MIN(interview) FROM table_name_46 WHERE state = "oklahoma" AND swimsuit < 8.8
|
### Instruction:
CREATE TABLE table_name_13 (
home_team VARCHAR,
rank VARCHAR,
capacity VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What home team has a rank greater than 6, and 94,392 as the capacity?
### Response:
|
SELECT home_team FROM table_name_13 WHERE rank > 6 AND capacity = "94,392"
|
### Instruction:
CREATE TABLE table_name_89 (
venue VARCHAR,
competition VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the venue for friendly competition october 16, 2012
### Response:
|
SELECT venue FROM table_name_89 WHERE competition = "friendly" AND date = "october 16, 2012"
|
### Instruction:
CREATE TABLE table_name_54 (
ht VARCHAR,
venue VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the HT for the game at Zagreb, with a full-time score of 0-2?
### Response:
|
SELECT ht FROM table_name_54 WHERE venue = "zagreb" AND score = "0-2"
|
### Instruction:
CREATE TABLE table_22385461_1 (
spacewalkers VARCHAR,
spacecraft VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who walked in space from STS-101 Eva 1?
### Response:
|
SELECT spacewalkers FROM table_22385461_1 WHERE spacecraft = "STS-101 EVA 1"
|
### Instruction:
CREATE TABLE table_63761 (
"play" text,
"author" text,
"company" text,
"base" text,
"country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country had the play Cyclops?
### Response:
|
SELECT "country" FROM table_63761 WHERE "play" = 'cyclops'
|
### Instruction:
CREATE TABLE table_name_46 (
score VARCHAR,
visitor VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the score on february 18 when the visitors are the montreal canadiens?
### Response:
|
SELECT score FROM table_name_46 WHERE visitor = "montreal canadiens" AND date = "february 18"
|
### Instruction:
CREATE TABLE table_2311410_1 (
season VARCHAR,
winning_profit___aud__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season had a winning profit of $15,000?
### Response:
|
SELECT season FROM table_2311410_1 WHERE winning_profit___aud__ = "$15,000"
|
### Instruction:
CREATE TABLE table_name_60 (
date VARCHAR,
winning_constructor VARCHAR,
winning_driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the date for bugatti fpr stanislas czaykowski
### Response:
|
SELECT date FROM table_name_60 WHERE winning_constructor = "bugatti" AND winning_driver = "stanislas czaykowski"
|
### Instruction:
CREATE TABLE Draft_Copies (
document_id VARCHAR,
copy_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which document has the most draft copies? List its document id and number of draft copies.
### Response:
|
SELECT document_id, COUNT(copy_number) FROM Draft_Copies GROUP BY document_id ORDER BY COUNT(copy_number) DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_44633 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country was Ernie Els from?
### Response:
|
SELECT "Country" FROM table_44633 WHERE "Player" = 'ernie els'
|
### Instruction:
CREATE TABLE table_name_27 (
winners VARCHAR,
third VARCHAR,
runners_up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Winners have a Third of 1, and Runners-up smaller than 0?
### Response:
|
SELECT COUNT(winners) FROM table_name_27 WHERE third = 1 AND runners_up < 0
|
### Instruction:
CREATE TABLE table_8817 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what place did Dave Barr score?
### Response:
|
SELECT "Place" FROM table_8817 WHERE "Player" = 'dave barr'
|
### Instruction:
CREATE TABLE table_name_17 (
game VARCHAR,
record VARCHAR,
december VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- After December 19, what is the Game number with a Record of 21 4 7?
### Response:
|
SELECT COUNT(game) FROM table_name_17 WHERE record = "21–4–7" AND december > 19
|
### Instruction:
CREATE TABLE table_1153898_1 (
emulated_class VARCHAR,
comparisons VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Is usb re-enumeration required part of the emulated class?
### Response:
|
SELECT emulated_class FROM table_1153898_1 WHERE comparisons = "USB RE-Enumeration Required"
|
### Instruction:
CREATE TABLE table_25695027_1 (
cylinder_size VARCHAR,
number_built VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the cylinder size of this engine that was made with only 88 pieces?
### Response:
|
SELECT cylinder_size FROM table_25695027_1 WHERE number_built = "88"
|
### Instruction:
CREATE TABLE table_15451122_2 (
second_member VARCHAR,
first_member VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many different second members were there when John rudhale was first member?
### Response:
|
SELECT COUNT(second_member) FROM table_15451122_2 WHERE first_member = "John Rudhale"
|
### Instruction:
CREATE TABLE table_28342423_1 (
parent_unit VARCHAR,
commanding_officer VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the parent unit for ludwig franzisket
### Response:
|
SELECT parent_unit FROM table_28342423_1 WHERE commanding_officer = "Ludwig Franzisket"
|
### Instruction:
CREATE TABLE table_name_80 (
loss INTEGER,
name VARCHAR,
gain VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest loss that Jarius Wright has had where he also has had a gain bigger than 1.
### Response:
|
SELECT MIN(loss) FROM table_name_80 WHERE name = "jarius wright" AND gain > 1
|
### Instruction:
CREATE TABLE table_18676973_3 (
most_recent_cyclist VARCHAR,
rank VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 12 is the rank who is the most recent cyclist?
### Response:
|
SELECT most_recent_cyclist FROM table_18676973_3 WHERE rank = "12"
|
### Instruction:
CREATE TABLE table_name_44 (
constructor VARCHAR,
time_retired VARCHAR,
grid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What companyw as the constructor when the Time/Retired was collision, and a Grid of 11?
### Response:
|
SELECT constructor FROM table_name_44 WHERE time_retired = "collision" AND grid = "11"
|
### Instruction:
CREATE TABLE table_name_80 (
opponent VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who did thomaz bellucci play against when the score was 4 6, 6 4, 6 2?
### Response:
|
SELECT opponent FROM table_name_80 WHERE score = "4–6, 6–4, 6–2"
|
### Instruction:
CREATE TABLE table_1855342_5 (
background INTEGER,
ability_to_compromise VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When the ability to compromise is 13, what is background?
### Response:
|
SELECT MAX(background) FROM table_1855342_5 WHERE ability_to_compromise = 13
|
### Instruction:
CREATE TABLE table_name_50 (
year INTEGER,
type VARCHAR,
title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year had a title of Die Shaolin Affen EP and EP as the type?
### Response:
|
SELECT AVG(year) FROM table_name_50 WHERE type = "ep" AND title = "die shaolin affen ep"
|
### Instruction:
CREATE TABLE table_name_67 (
location VARCHAR,
year VARCHAR,
silver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location for the year under 2010 and the year Hei Zhi Hong won silver?
### Response:
|
SELECT location FROM table_name_67 WHERE year < 2010 AND silver = "hei zhi hong"
|
### Instruction:
CREATE TABLE Ref_Incident_Type (
incident_type_description VARCHAR,
incident_type_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the incident type description for the incident type with code 'VIOLENCE'?
### Response:
|
SELECT incident_type_description FROM Ref_Incident_Type WHERE incident_type_code = "VIOLENCE"
|
### Instruction:
CREATE TABLE table_23286158_8 (
record VARCHAR,
location_attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the record for rose garden 20,565 attendance
### Response:
|
SELECT record FROM table_23286158_8 WHERE location_attendance = "Rose Garden 20,565"
|
### Instruction:
CREATE TABLE table_12740151_8 (
clock_speed VARCHAR,
price___usd__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the clock speed of the model that costs $910?
### Response:
|
SELECT clock_speed FROM table_12740151_8 WHERE price___usd__ = "$910"
|
### Instruction:
CREATE TABLE table_1013129_11 (
college_junior_club_team VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What high school team did Doug Nolan play for?
### Response:
|
SELECT college_junior_club_team FROM table_1013129_11 WHERE player = "Doug Nolan"
|
### Instruction:
CREATE TABLE table_name_82 (
first_party VARCHAR,
year VARCHAR,
first_member VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the first party for Lord John Hay earlier than 1857?
### Response:
|
SELECT first_party FROM table_name_82 WHERE year < 1857 AND first_member = "lord john hay"
|
### Instruction:
CREATE TABLE table_name_98 (
tries VARCHAR,
points VARCHAR,
games VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the tries that has a points of 008 8 and games of 27 27
### Response:
|
SELECT tries FROM table_name_98 WHERE points = "008 8" AND games = "27 27"
|
### Instruction:
CREATE TABLE table_name_64 (
overall INTEGER,
round VARCHAR,
pick__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Round of 11, and a Pick # larger than 14 is the highest overall pick?
### Response:
|
SELECT MAX(overall) FROM table_name_64 WHERE round = 11 AND pick__number > 14
|
### Instruction:
CREATE TABLE table_24172078_2 (
lessons_taught VARCHAR,
episode__number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the lessons taught for episode # 2/205
### Response:
|
SELECT lessons_taught FROM table_24172078_2 WHERE episode__number = "2/205"
|
### Instruction:
CREATE TABLE table_15419 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player had a place of T4?
### Response:
|
SELECT "Player" FROM table_15419 WHERE "Place" = 't4'
|
### Instruction:
CREATE TABLE table_name_62 (
length VARCHAR,
expected_start_of_revenue_services INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the length when the expected start of revenue is more than 2017?
### Response:
|
SELECT length FROM table_name_62 WHERE expected_start_of_revenue_services > 2017
|
### Instruction:
CREATE TABLE table_13114949_3 (
event VARCHAR,
qualifying_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times was the qualifying score 60.750?
### Response:
|
SELECT COUNT(event) FROM table_13114949_3 WHERE qualifying_score = "60.750"
|
### Instruction:
CREATE TABLE station (
total_passengers INTEGER,
LOCATION VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average and maximum number of total passengers for train stations in London or Glasgow?
### Response:
|
SELECT AVG(total_passengers), MAX(total_passengers) FROM station WHERE LOCATION = 'London' OR LOCATION = 'Glasgow'
|
### Instruction:
CREATE TABLE table_16677887_2 (
opponent VARCHAR,
bills_first_downs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team were the bills playing where their first down was 23?
### Response:
|
SELECT opponent FROM table_16677887_2 WHERE bills_first_downs = 23
|
### Instruction:
CREATE TABLE table_2077192_2 (
phonetic_greek VARCHAR,
french VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Phonetic Greek words translate to grenouille in French?
### Response:
|
SELECT COUNT(phonetic_greek) FROM table_2077192_2 WHERE french = "grenouille"
|
### Instruction:
CREATE TABLE table_204_692 (
id number,
"publication" text,
"score" text,
"review" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many publications used a scale of one to ten scoring system ?
### Response:
|
SELECT COUNT("publication") FROM table_204_692 WHERE "score" = 10
|
### Instruction:
CREATE TABLE table_name_40 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the value in 2006 when 2003 was not held and 2012 was A?
### Response:
|
SELECT 2006 FROM table_name_40 WHERE 2003 = "not held" AND 2012 = "a"
|
### Instruction:
CREATE TABLE table_1140073_2 (
fastest_lap VARCHAR,
pole_position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who had the fastest lap in the race where Patrick Tambay was on the pole?
### Response:
|
SELECT fastest_lap FROM table_1140073_2 WHERE pole_position = "Patrick Tambay"
|
### Instruction:
CREATE TABLE table_name_36 (
name VARCHAR,
local_board VARCHAR,
decile VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name when the local board is albert eden, and a Decile of 9?
### Response:
|
SELECT name FROM table_name_36 WHERE local_board = "albert–eden" AND decile = "9"
|
### Instruction:
CREATE TABLE table_1342359_23 (
incumbent VARCHAR,
first_elected VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many winners were there in the race of 1922
### Response:
|
SELECT COUNT(incumbent) FROM table_1342359_23 WHERE first_elected = 1922
|
### Instruction:
CREATE TABLE table_13619053_7 (
high_points VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who ihad the highest points and what was the number when the record was 11-40?
### Response:
|
SELECT high_points FROM table_13619053_7 WHERE record = "11-40"
|
### Instruction:
CREATE TABLE customer (
state VARCHAR,
acc_type VARCHAR,
credit_score VARCHAR,
no_of_loans VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the state, account type, and credit score of the customer whose number of loan is 0.
### Response:
|
SELECT state, acc_type, credit_score FROM customer WHERE no_of_loans = 0
|
### Instruction:
CREATE TABLE table_name_99 (
year INTEGER,
venue VARCHAR,
margin VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the average year for brookvale oval and margin more than 46
### Response:
|
SELECT AVG(year) FROM table_name_99 WHERE venue = "brookvale oval" AND margin > 46
|
### Instruction:
CREATE TABLE scientists (
ssn number,
name text
)
CREATE TABLE projects (
code text,
name text,
hours number
)
CREATE TABLE assignedto (
scientist number,
project text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of hours for all projects?
### Response:
|
SELECT SUM(hours) FROM projects
|
### Instruction:
CREATE TABLE table_name_81 (
surface VARCHAR,
opponents_in_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Surface, when Opponents, when Final is 'Gigi Fern ndez Robin White'?
### Response:
|
SELECT surface FROM table_name_81 WHERE opponents_in_final = "gigi fernández robin white"
|
### Instruction:
CREATE TABLE table_27533947_1 (
best_winning_average VARCHAR,
games_won VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If the games won are 5, what is the best winning average?
### Response:
|
SELECT best_winning_average FROM table_27533947_1 WHERE games_won = 5
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.