instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_81 (
score VARCHAR,
game VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Game larger than 40, and a Record of 25-10-8?
### Response:
|
SELECT score FROM table_name_81 WHERE game > 40 AND record = "25-10-8"
|
### Instruction:
CREATE TABLE table_16951593_1 (
original_air_date VARCHAR,
no_in_season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the original air date of 1/2 in season
### Response:
|
SELECT original_air_date FROM table_16951593_1 WHERE no_in_season = "1/2"
|
### Instruction:
CREATE TABLE table_name_85 (
second_vice_president VARCHAR,
inaugurated VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Second Vice President, when Inaugurated is '26 March 1928'?
### Response:
|
SELECT second_vice_president FROM table_name_85 WHERE inaugurated = "26 march 1928"
|
### Instruction:
CREATE TABLE table_name_88 (
previous_conference VARCHAR,
size VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the previous conference of Fountain City with a size more than 287?
### Response:
|
SELECT previous_conference FROM table_name_88 WHERE size > 287 AND location = "fountain city"
|
### Instruction:
CREATE TABLE table_name_38 (
name VARCHAR,
sport VARCHAR,
event VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the player who competed in the Women's Individual Class 3 in Table Tennis?
### Response:
|
SELECT name FROM table_name_38 WHERE sport = "table tennis" AND event = "women's individual class 3"
|
### Instruction:
CREATE TABLE table_name_41 (
draws INTEGER,
wins VARCHAR,
byes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of draws of the team with 9 wins and less than 0 byes?
### Response:
|
SELECT MIN(draws) FROM table_name_41 WHERE wins = 9 AND byes < 0
|
### Instruction:
CREATE TABLE table_1123802_1 (
compression_ratio VARCHAR,
engine VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the compression ration when the engine was Wasp Jr. T1B2?
### Response:
|
SELECT compression_ratio FROM table_1123802_1 WHERE engine = "Wasp Jr. T1B2"
|
### Instruction:
CREATE TABLE table_2668254_25 (
district VARCHAR,
first_elected VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many district has a candidate that was first elected on 1811?
### Response:
|
SELECT COUNT(district) FROM table_2668254_25 WHERE first_elected = "1811"
|
### Instruction:
CREATE TABLE table_name_25 (
opponent VARCHAR,
round VARCHAR,
time VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who did wilson reis fight against that lasted less than 3 rounds with a time of 1:02?
### Response:
|
SELECT opponent FROM table_name_25 WHERE round < 3 AND time = "1:02"
|
### Instruction:
CREATE TABLE table_name_24 (
round VARCHAR,
venue VARCHAR,
away VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What round was the match at Westpac Stadium that had the Newcastle Jets as the away team?
### Response:
|
SELECT round FROM table_name_24 WHERE venue = "westpac stadium" AND away = "newcastle jets"
|
### Instruction:
CREATE TABLE table_name_88 (
margin VARCHAR,
year VARCHAR,
championship VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the margin in 2001 at the McDonald's LPGA Championship?
### Response:
|
SELECT margin FROM table_name_88 WHERE year = 2001 AND championship = "mcdonald's lpga championship"
|
### Instruction:
CREATE TABLE table_20996923_25 (
round__number INTEGER,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Sherrick McManis's earliest round?
### Response:
|
SELECT MIN(round__number) FROM table_20996923_25 WHERE player = "Sherrick McManis"
|
### Instruction:
CREATE TABLE table_name_56 (
ri_song_hui___prk__ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the 102kg when the Ri Song-Hui was 226kg?
### Response:
|
SELECT 102 AS kg FROM table_name_56 WHERE ri_song_hui___prk__ = "226kg"
|
### Instruction:
CREATE TABLE table_name_89 (
winner VARCHAR,
notes VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the winner for the world championship formula 1 at the venue, circuit de monaco?
### Response:
|
SELECT winner FROM table_name_89 WHERE notes = "world championship formula 1" AND venue = "circuit de monaco"
|
### Instruction:
CREATE TABLE table_name_95 (
result VARCHAR,
score VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Result of the Competition at MBPJ Stadium with a Score of 4 0?
### Response:
|
SELECT result FROM table_name_95 WHERE score = "4–0" AND venue = "mbpj stadium"
|
### Instruction:
CREATE TABLE table_17326036_7 (
date VARCHAR,
high_rebounds VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date when Troy Murphy (15), got high rebounds?
### Response:
|
SELECT date FROM table_17326036_7 WHERE high_rebounds = "Troy Murphy (15)"
|
### Instruction:
CREATE TABLE table_17120964_7 (
date VARCHAR,
man_of_the_match VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many dates did David Savage get man of the match?
### Response:
|
SELECT COUNT(date) FROM table_17120964_7 WHERE man_of_the_match = "David Savage"
|
### Instruction:
CREATE TABLE table_13998897_1 (
fcc_info VARCHAR,
call_sign VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the fcc info with call sign being w221aw
### Response:
|
SELECT fcc_info FROM table_13998897_1 WHERE call_sign = "W221AW"
|
### Instruction:
CREATE TABLE table_49170 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What place has a to par of E?
### Response:
|
SELECT "Place" FROM table_49170 WHERE "To par" = 'e'
|
### Instruction:
CREATE TABLE table_name_71 (
bronze INTEGER,
nation VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of bronze medals for Great Britain with more than 2 medals total?
### Response:
|
SELECT MIN(bronze) FROM table_name_71 WHERE nation = "great britain" AND total > 2
|
### Instruction:
CREATE TABLE table_24535095_2 (
_number INTEGER,
listed_owner_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least listed owner for pete raymer
### Response:
|
SELECT MIN(_number) FROM table_24535095_2 WHERE listed_owner_s_ = "Pete Raymer"
|
### Instruction:
CREATE TABLE table_13332 (
"Date" text,
"Course" text,
"Distance" text,
"Type" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which date was a rest day?
### Response:
|
SELECT "Date" FROM table_13332 WHERE "Course" = 'rest day'
|
### Instruction:
CREATE TABLE table_name_38 (
driver VARCHAR,
grid VARCHAR,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver has a grid bigger than 3 and a time of +62.6 secs?
### Response:
|
SELECT driver FROM table_name_38 WHERE grid > 3 AND time_retired = "+62.6 secs"
|
### Instruction:
CREATE TABLE table_name_78 (
memory VARCHAR,
part_number_s_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the memory for ct80618005844ab?
### Response:
|
SELECT memory FROM table_name_78 WHERE part_number_s_ = "ct80618005844ab"
|
### Instruction:
CREATE TABLE table_name_50 (
events INTEGER,
tournament VARCHAR,
cuts_made VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of events the Open Championship has with less than 0 cuts?
### Response:
|
SELECT SUM(events) FROM table_name_50 WHERE tournament = "the open championship" AND cuts_made < 0
|
### Instruction:
CREATE TABLE table_1431467_4 (
first_elected VARCHAR,
incumbent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was everyone first elected when incumbent was John J. Hemphill?
### Response:
|
SELECT first_elected FROM table_1431467_4 WHERE incumbent = "John J. Hemphill"
|
### Instruction:
CREATE TABLE table_19072602_5 (
team_usa VARCHAR,
team_europe VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When paul moor is on the europe team who is on the usa team?
### Response:
|
SELECT team_usa FROM table_19072602_5 WHERE team_europe = "Paul Moor"
|
### Instruction:
CREATE TABLE table_name_26 (
result VARCHAR,
party VARCHAR,
first_elected VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Result has a Party of republican, and a First elected smaller than 1856?
### Response:
|
SELECT result FROM table_name_26 WHERE party = "republican" AND first_elected < 1856
|
### Instruction:
CREATE TABLE table_12962773_14 (
year_born INTEGER,
height VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year was the player born who is 2.02m tall?
### Response:
|
SELECT MAX(year_born) FROM table_12962773_14 WHERE height = "2.02"
|
### Instruction:
CREATE TABLE table_12499 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- From what Country is Gary Evans?
### Response:
|
SELECT "Country" FROM table_12499 WHERE "Player" = 'gary evans'
|
### Instruction:
CREATE TABLE races (
name VARCHAR,
TIME VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the names of races held after 12:00:00 or before 09:00:00?
### Response:
|
SELECT name FROM races WHERE TIME > "12:00:00" OR TIME < "09:00:00"
|
### Instruction:
CREATE TABLE table_14523485_9 (
channel VARCHAR,
top_prize VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What channel had the prize of 100,000?
### Response:
|
SELECT channel FROM table_14523485_9 WHERE top_prize = "€100,000"
|
### Instruction:
CREATE TABLE table_name_98 (
draws INTEGER,
ntfa_div_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of draws of the NTFA Div 2 Lilydale?
### Response:
|
SELECT MIN(draws) FROM table_name_98 WHERE ntfa_div_2 = "lilydale"
|
### Instruction:
CREATE TABLE table_23944514_15 (
mountains_classification VARCHAR,
aggressive_rider VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the mountains classification for bradley white
### Response:
|
SELECT mountains_classification FROM table_23944514_15 WHERE aggressive_rider = "Bradley White"
|
### Instruction:
CREATE TABLE table_name_46 (
date INTEGER,
surface VARCHAR,
partner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the earliest Date David Adams played on a Clay Surface with Brett Steven as Partner?
### Response:
|
SELECT MIN(date) FROM table_name_46 WHERE surface = "clay" AND partner = "brett steven"
|
### Instruction:
CREATE TABLE table_name_99 (
remarks VARCHAR,
class_from_1928 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What were the remarks for the coach having a class from 1928 of Cid-21B?
### Response:
|
SELECT remarks FROM table_name_99 WHERE class_from_1928 = "cid-21b"
|
### Instruction:
CREATE TABLE table_name_31 (
rider VARCHAR,
rounds VARCHAR,
motorcycle VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is riding the Ducati 999 RS in Round 7?
### Response:
|
SELECT rider FROM table_name_31 WHERE rounds = "7" AND motorcycle = "ducati 999 rs"
|
### 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 club team is Per Gustafsson play for?
### Response:
|
SELECT college_junior_club_team FROM table_1013129_11 WHERE player = "Per Gustafsson"
|
### Instruction:
CREATE TABLE table_name_36 (
money___$__ VARCHAR,
place VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much money does player ben crenshaw, who has a t4 place, have?
### Response:
|
SELECT money___$__ FROM table_name_36 WHERE place = "t4" AND player = "ben crenshaw"
|
### Instruction:
CREATE TABLE table_name_10 (
fin_time VARCHAR,
finish VARCHAR,
track VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the finishing time with a 2/1q finish on the Meadowlands track?
### Response:
|
SELECT fin_time FROM table_name_10 WHERE finish = "2/1q" AND track = "the meadowlands"
|
### Instruction:
CREATE TABLE table_27846651_1 (
episode__number VARCHAR,
viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Wat episode number had 5.46 million viewers?
### Response:
|
SELECT episode__number FROM table_27846651_1 WHERE viewers__millions_ = "5.46"
|
### Instruction:
CREATE TABLE table_name_2 (
nationality VARCHAR,
pick VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the nationality of player corey fienhage, who has a pick less than 104?
### Response:
|
SELECT nationality FROM table_name_2 WHERE pick < 104 AND player = "corey fienhage"
|
### Instruction:
CREATE TABLE table_name_94 (
pick INTEGER,
name VARCHAR,
overall VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the sum of the pick of darryl pounds, who has an overall greater than 68?
### Response:
|
SELECT SUM(pick) FROM table_name_94 WHERE name = "darryl pounds" AND overall > 68
|
### Instruction:
CREATE TABLE table_11793221_2 (
killed VARCHAR,
commander VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many where killed under Major-General Jean Victor de Constant Rebecque's command?
### Response:
|
SELECT killed FROM table_11793221_2 WHERE commander = "Major-General Jean Victor de Constant Rebecque"
|
### Instruction:
CREATE TABLE table_name_55 (
population__2008_ INTEGER,
korean VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2008 population in (Ham Hyung)?
### Response:
|
SELECT SUM(population__2008_) FROM table_name_55 WHERE korean = "함흥"
|
### Instruction:
CREATE TABLE table_name_37 (
opponent VARCHAR,
game VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who has a Game smaller than 43, and a Record of 23-14-3?
### Response:
|
SELECT opponent FROM table_name_37 WHERE game < 43 AND record = "23-14-3"
|
### Instruction:
CREATE TABLE table_49362 (
"Type" text,
"Name" text,
"Title" text,
"Royal house" text,
"From" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type of the king title?
### Response:
|
SELECT "Type" FROM table_49362 WHERE "Title" = 'king'
|
### Instruction:
CREATE TABLE table_1538516_1 (
maximum_ceiling_temperature VARCHAR,
temperature_classification VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the most ceiling temperature for very extra high
### Response:
|
SELECT maximum_ceiling_temperature FROM table_1538516_1 WHERE temperature_classification = "Very Extra High"
|
### Instruction:
CREATE TABLE table_25711913_14 (
extra_points_1_point VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many extra points did Germany Schultz score?
### Response:
|
SELECT extra_points_1_point FROM table_25711913_14 WHERE player = "Germany Schultz"
|
### Instruction:
CREATE TABLE table_name_49 (
round INTEGER,
position VARCHAR,
overall VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average round when there is a defensive back and an overall smaller than 199?
### Response:
|
SELECT AVG(round) FROM table_name_49 WHERE position = "defensive back" AND overall < 199
|
### Instruction:
CREATE TABLE table_name_69 (
bask VARCHAR,
indoor_track VARCHAR,
school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the basketball status for Valparaiso who has an indoor track status of yes?
### Response:
|
SELECT bask FROM table_name_69 WHERE indoor_track = "yes" AND school = "valparaiso"
|
### Instruction:
CREATE TABLE table_name_30 (
network VARCHAR,
korean_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What network is the Korean title of mbc - on?
### Response:
|
SELECT network FROM table_name_30 WHERE korean_title = "mbc 베스트극장 - 작은 도둑"
|
### Instruction:
CREATE TABLE table_name_91 (
music_video VARCHAR,
album VARCHAR,
length VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the music video that was from the album High Society, with a length of 3:50?
### Response:
|
SELECT music_video FROM table_name_91 WHERE album = "high society" AND length = "3:50"
|
### Instruction:
CREATE TABLE table_name_38 (
third_vice_president VARCHAR,
inaugurated VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Third Vice President, when Inaugurated is '15 March 1934'?
### Response:
|
SELECT third_vice_president FROM table_name_38 WHERE inaugurated = "15 march 1934"
|
### Instruction:
CREATE TABLE table_1353096_2 (
current_status VARCHAR,
station VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many entries are listed under 'current status' for the WJW-TV ++ Station?
### Response:
|
SELECT COUNT(current_status) FROM table_1353096_2 WHERE station = "WJW-TV ++"
|
### Instruction:
CREATE TABLE table_28178595_2 (
platform VARCHAR,
mystic_arte VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many platforms have celsius calibur as mystic arte?
### Response:
|
SELECT COUNT(platform) FROM table_28178595_2 WHERE mystic_arte = "Celsius Calibur"
|
### Instruction:
CREATE TABLE table_26460435_5 (
monarch VARCHAR,
heir VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of monarchs that had Yan Maw la Mon as the heir?
### Response:
|
SELECT COUNT(monarch) FROM table_26460435_5 WHERE heir = "Yan Maw La Mon"
|
### Instruction:
CREATE TABLE table_name_11 (
date VARCHAR,
opponents VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When were scottish football league xi the opponents with a score of 1-5?
### Response:
|
SELECT date FROM table_name_11 WHERE opponents = "scottish football league xi" AND score = "1-5"
|
### Instruction:
CREATE TABLE table_25691838_12 (
guest VARCHAR,
original_airdate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who were the guests for the episode with an original airdate of december 07?
### Response:
|
SELECT guest FROM table_25691838_12 WHERE original_airdate = "December 07"
|
### Instruction:
CREATE TABLE table_name_59 (
constructor VARCHAR,
grid VARCHAR,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the constructor when the grid is more than 10 and the time/retired is +1 lap?
### Response:
|
SELECT constructor FROM table_name_59 WHERE grid > 10 AND time_retired = "+1 lap"
|
### Instruction:
CREATE TABLE table_24431348_20 (
points INTEGER,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest points won when the player is aravane reza ?
### Response:
|
SELECT MAX(points) AS won FROM table_24431348_20 WHERE player = "Aravane Rezaï"
|
### Instruction:
CREATE TABLE table_26847237_1 (
score VARCHAR,
opposition VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score when the opposition was West Coast in Wanganui?
### Response:
|
SELECT score FROM table_26847237_1 WHERE opposition = "West Coast" AND location = "Wanganui"
|
### Instruction:
CREATE TABLE table_73429 (
"Number" real,
"Name" text,
"Height (m)" real,
"Date of Birth" text,
"Position" text,
"Nationality" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the least number
### Response:
|
SELECT MIN("Number") FROM table_73429
|
### Instruction:
CREATE TABLE table_28768469_2 (
location_attendance VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location for the game on October 20 with it's corresponding attendance?
### Response:
|
SELECT location_attendance FROM table_28768469_2 WHERE date = "October 20"
|
### Instruction:
CREATE TABLE table_name_32 (
date VARCHAR,
result VARCHAR,
record VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date has w 20-17 as the result, and 1-0 as the record?
### Response:
|
SELECT date FROM table_name_32 WHERE result = "w 20-17" AND record = "1-0"
|
### Instruction:
CREATE TABLE table_name_23 (
july VARCHAR,
annual_precipitation VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the July temperature where the annual precipitation is 514mm (20.2in)?
### Response:
|
SELECT july FROM table_name_23 WHERE annual_precipitation = "514mm (20.2in)"
|
### Instruction:
CREATE TABLE table_44543 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What did Phil Rodgers score?
### Response:
|
SELECT "Score" FROM table_44543 WHERE "Player" = 'phil rodgers'
|
### Instruction:
CREATE TABLE table_1000181_1 (
text_background_colour VARCHAR,
state_territory VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the background colour for the Australian Capital Territory
### Response:
|
SELECT text_background_colour FROM table_1000181_1 WHERE state_territory = "Australian Capital Territory"
|
### Instruction:
CREATE TABLE table_name_90 (
finishes INTEGER,
points VARCHAR,
starts VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the finishes when points is more than 337 and starts is more than 26?
### Response:
|
SELECT SUM(finishes) FROM table_name_90 WHERE points > 337 AND starts > 26
|
### Instruction:
CREATE TABLE table_13981938_1 (
wine_style VARCHAR,
grand_cru VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the wine style with grand cru being roman e-conti
### Response:
|
SELECT wine_style FROM table_13981938_1 WHERE grand_cru = "Romanée-Conti"
|
### Instruction:
CREATE TABLE table_17641206_2 (
written_by VARCHAR,
viewership VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many people wrote the episode that had 6.34 million viewers?
### Response:
|
SELECT COUNT(written_by) FROM table_17641206_2 WHERE viewership = "6.34 million"
|
### Instruction:
CREATE TABLE table_26202847_6 (
no VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On the date October 21, 2007, what is the No.?
### Response:
|
SELECT no FROM table_26202847_6 WHERE date = "October 21, 2007"
|
### Instruction:
CREATE TABLE table_1601027_2 (
driver_matched_db VARCHAR,
headphone_class VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the driver matched db for joseph grado signature
### Response:
|
SELECT driver_matched_db FROM table_1601027_2 WHERE headphone_class = "Joseph Grado Signature"
|
### Instruction:
CREATE TABLE endowment (
school_id VARCHAR,
amount INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the number of schools that have more than one donator whose donation amount is less than 8.5.
### Response:
|
SELECT COUNT(*) FROM (SELECT * FROM endowment WHERE amount > 8.5 GROUP BY school_id HAVING COUNT(*) > 1)
|
### Instruction:
CREATE TABLE table_name_30 (
d_45_o VARCHAR,
d_46_o VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the D 45 O that has D 46 O of d 26
### Response:
|
SELECT d_45_o FROM table_name_30 WHERE d_46_o = "d 26"
|
### Instruction:
CREATE TABLE table_name_45 (
points INTEGER,
player VARCHAR,
field_goals VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points does Sweeley have, with less than 0 Field goals?
### Response:
|
SELECT SUM(points) FROM table_name_45 WHERE player = "sweeley" AND field_goals < 0
|
### Instruction:
CREATE TABLE table_name_73 (
win__percentage VARCHAR,
name VARCHAR,
wins VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Win % has a Name of tony rice, and Wins smaller than 28?
### Response:
|
SELECT COUNT(win__percentage) FROM table_name_73 WHERE name = "tony rice" AND wins < 28
|
### Instruction:
CREATE TABLE table_name_25 (
representative VARCHAR,
state VARCHAR,
years VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Representative was from Kentucky during the years of 1855 1859?
### Response:
|
SELECT representative FROM table_name_25 WHERE state = "kentucky" AND years = "1855–1859"
|
### Instruction:
CREATE TABLE table_38899 (
"Pos." real,
"Car #" real,
"Driver" text,
"Make" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Make has a Pos larger than 9?
### Response:
|
SELECT "Make" FROM table_38899 WHERE "Pos." > '9'
|
### Instruction:
CREATE TABLE table_name_19 (
laps INTEGER,
team VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the sum of laps for mi-jack conquest racing and points less than 11
### Response:
|
SELECT SUM(laps) FROM table_name_19 WHERE team = "mi-jack conquest racing" AND points < 11
|
### Instruction:
CREATE TABLE table_name_77 (
sponsor_s_ VARCHAR,
date_introduced VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who sponsored the bill introduced on June 9, 2011?
### Response:
|
SELECT sponsor_s_ FROM table_name_77 WHERE date_introduced = "june 9, 2011"
|
### Instruction:
CREATE TABLE table_11545282_4 (
no INTEGER,
school_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest jersey number for the player from maryland
### Response:
|
SELECT MAX(no) FROM table_11545282_4 WHERE school_club_team = "Maryland"
|
### Instruction:
CREATE TABLE table_name_33 (
to_par VARCHAR,
score VARCHAR,
player VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which To Par has a Score smaller than 70, and a Player of matt kowal?
### Response:
|
SELECT to_par FROM table_name_33 WHERE score < 70 AND player = "matt kowal"
|
### Instruction:
CREATE TABLE table_name_41 (
european_election__uk_ VARCHAR,
share_of_votes VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which European election (UK) has a Share of votes of 19%?
### Response:
|
SELECT european_election__uk_ FROM table_name_41 WHERE share_of_votes = "19%"
|
### Instruction:
CREATE TABLE table_name_61 (
density__hab__km²__ VARCHAR,
altitude_m VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the density (hab/ km ) when the altitude m is 1300?
### Response:
|
SELECT density__hab__km²__ FROM table_name_61 WHERE altitude_m = "1300"
|
### Instruction:
CREATE TABLE table_1708014_2 (
team_s_ VARCHAR,
winnings VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the team where winnings is $81,690?
### Response:
|
SELECT team_s_ FROM table_1708014_2 WHERE winnings = "$81,690"
|
### Instruction:
CREATE TABLE table_name_17 (
position VARCHAR,
round VARCHAR,
school_club_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the position of the player with a round less than 20 from the school/club Washington?
### Response:
|
SELECT position FROM table_name_17 WHERE round < 20 AND school_club_team = "washington"
|
### Instruction:
CREATE TABLE table_name_93 (
runner_up VARCHAR,
venue VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the runner-up in 1980 at the Pocking venue?
### Response:
|
SELECT runner_up FROM table_name_93 WHERE venue = "pocking" AND year = "1980"
|
### Instruction:
CREATE TABLE table_22447251_2 (
age INTEGER,
contestant VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How old is contestant Valerie Chardonnens Vargas?
### Response:
|
SELECT MAX(age) FROM table_22447251_2 WHERE contestant = "Valerie Chardonnens Vargas"
|
### Instruction:
CREATE TABLE table_name_44 (
rank INTEGER,
player VARCHAR,
matches VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest rank for championships with christy heffernan with over 4 matches?
### Response:
|
SELECT MAX(rank) FROM table_name_44 WHERE player = "christy heffernan" AND matches > 4
|
### Instruction:
CREATE TABLE table_name_83 (
bronze INTEGER,
rank VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest bronze total that has a rank of 1 and more than 34 total medals?
### Response:
|
SELECT MIN(bronze) FROM table_name_83 WHERE rank = "1" AND total > 34
|
### Instruction:
CREATE TABLE table_17344582_11 (
score VARCHAR,
high_assists VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- List the all the scores where the high assis is b. shaw (5)
### Response:
|
SELECT score FROM table_17344582_11 WHERE high_assists = "B. Shaw (5)"
|
### Instruction:
CREATE TABLE table_21692771_1 (
maturity VARCHAR,
coupon VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the maturity that has a coupon of exactly 0.726?
### Response:
|
SELECT maturity FROM table_21692771_1 WHERE coupon = "0.726"
|
### Instruction:
CREATE TABLE table_24446718_7 (
awardee_s_ VARCHAR,
name_of_award VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the awardee for best editing
### Response:
|
SELECT awardee_s_ FROM table_24446718_7 WHERE name_of_award = "Best Editing"
|
### Instruction:
CREATE TABLE table_name_29 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 1995 value with A in 1986 and 2r in 1992?
### Response:
|
SELECT 1995 FROM table_name_29 WHERE 1986 = "a" AND 1992 = "2r"
|
### Instruction:
CREATE TABLE table_12141496_1 (
inclination VARCHAR,
alt_name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the inclination when the alt name is OPS-1584?
### Response:
|
SELECT inclination FROM table_12141496_1 WHERE alt_name = "OPS-1584"
|
### Instruction:
CREATE TABLE table_name_75 (
week_4 VARCHAR,
week_2 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the cyber girl in week 4 when Lexi Lombardelli was the cyber girl in week 2?
### Response:
|
SELECT week_4 FROM table_name_75 WHERE week_2 = "lexi lombardelli"
|
### Instruction:
CREATE TABLE table_37378 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date is the visitor Ottawa?
### Response:
|
SELECT "Date" FROM table_37378 WHERE "Visitor" = 'ottawa'
|
### Instruction:
CREATE TABLE table_202_257 (
id number,
"year" number,
"single" text,
"chart" text,
"position" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many singles were under position 1 ?
### Response:
|
SELECT COUNT("single") FROM table_202_257 WHERE "position" = 1
|
### Instruction:
CREATE TABLE table_name_44 (
venue VARCHAR,
competition VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What venue were the 1986 Asian games resulting in 2-0 played at?
### Response:
|
SELECT venue FROM table_name_44 WHERE competition = "1986 asian games" AND result = "2-0"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.