instruction
stringlengths 212
6.3k
| output
stringlengths 6
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_name_26 (
player VARCHAR,
place VARCHAR,
score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the player when the place is t5 and the score is 69-74=143?
### Response:
|
SELECT player FROM table_name_26 WHERE place = "t5" AND score = 69 - 74 = 143
|
### Instruction:
CREATE TABLE table_name_38 (
myspace_band VARCHAR,
original_airdate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the MySpace Band with an Original Airdate of 19 february 2008?
### Response:
|
SELECT myspace_band FROM table_name_38 WHERE original_airdate = "19 february 2008"
|
### Instruction:
CREATE TABLE table_178389_1 (
location_of_the_church VARCHAR,
year_built VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total number of churches built in 1916?
### Response:
|
SELECT COUNT(location_of_the_church) FROM table_178389_1 WHERE year_built = 1916
|
### Instruction:
CREATE TABLE table_10706961_2 (
fastest_lap VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the fastest lap time in the Escort Radar Warning 200?
### Response:
|
SELECT fastest_lap FROM table_10706961_2 WHERE name = "Escort Radar Warning 200"
|
### Instruction:
CREATE TABLE table_11677100_11 (
hometown VARCHAR,
school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT TOWN IS WEST BROOK SENIOR HIGH SCHOOL FROM?
### Response:
|
SELECT hometown FROM table_11677100_11 WHERE school = "West Brook Senior High school"
|
### Instruction:
CREATE TABLE table_name_62 (
grid INTEGER,
rider VARCHAR,
laps VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Grid for the Rider Toni Elias with Laps more than 30?
### Response:
|
SELECT AVG(grid) FROM table_name_62 WHERE rider = "toni elias" AND laps > 30
|
### Instruction:
CREATE TABLE table_name_33 (
player VARCHAR,
pick VARCHAR,
new_wnba_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which player had a pick under 6 and a new WNBA team of the Minnesota Lynx?
### Response:
|
SELECT player FROM table_name_33 WHERE pick < 6 AND new_wnba_team = "minnesota lynx"
|
### Instruction:
CREATE TABLE table_585 (
"Institution" text,
"Location" text,
"Nickname" text,
"Current Conference" text,
"Classification" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What institution has the nickname Penmen?
### Response:
|
SELECT "Institution" FROM table_585 WHERE "Nickname" = 'Penmen'
|
### Instruction:
CREATE TABLE table_name_45 (
loss VARCHAR,
opponent VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the loss of the game against the Yankees that was attended by 27,652?
### Response:
|
SELECT loss FROM table_name_45 WHERE opponent = "yankees" AND attendance = "27,652"
|
### Instruction:
CREATE TABLE table_204_986 (
id number,
"#" number,
"event year" number,
"season" text,
"flag bearer" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who was the first flag bearer ?
### Response:
|
SELECT "flag bearer" FROM table_204_986 ORDER BY "event year" LIMIT 1
|
### Instruction:
CREATE TABLE table_6480 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which record has a date of January 29?
### Response:
|
SELECT "Record" FROM table_6480 WHERE "Date" = 'january 29'
|
### Instruction:
CREATE TABLE table_name_17 (
time VARCHAR,
event VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the Time for an Event of 4x100 m relay and has a Venue of Frankfurt?
### Response:
|
SELECT time FROM table_name_17 WHERE event = "4x100 m relay" AND venue = "frankfurt"
|
### Instruction:
CREATE TABLE table_28884858_2 (
average_attendance VARCHAR,
total_attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was average attendance when total attendance was 541380?
### Response:
|
SELECT average_attendance FROM table_28884858_2 WHERE total_attendance = 541380
|
### Instruction:
CREATE TABLE table_11233358_2 (
w_l__total_ VARCHAR,
debut VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- During the 2013 debut, what is the w-I(total) number?
### Response:
|
SELECT COUNT(w_l__total_) FROM table_11233358_2 WHERE debut = 2013
|
### Instruction:
CREATE TABLE table_204_338 (
id number,
"location" text,
"coordinates" text,
"type" text,
"built" text,
"details" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what year built is at the top ?
### Response:
|
SELECT "built" FROM table_204_338 WHERE id = 1
|
### Instruction:
CREATE TABLE table_name_43 (
constructor VARCHAR,
laps VARCHAR,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which constructor has laps less than 100 and a time/retired +10 laps?
### Response:
|
SELECT constructor FROM table_name_43 WHERE laps < 100 AND time_retired = "+10 laps"
|
### Instruction:
CREATE TABLE table_name_81 (
opponent VARCHAR,
week VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponent has a Week larger than 2 on november 19, 1995?
### Response:
|
SELECT opponent FROM table_name_81 WHERE week > 2 AND date = "november 19, 1995"
|
### Instruction:
CREATE TABLE table_10420426_1 (
wins VARCHAR,
series VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of wins for gp2 series for racing engineering?
### Response:
|
SELECT COUNT(wins) FROM table_10420426_1 WHERE series = "GP2 series" AND team = "Racing Engineering"
|
### Instruction:
CREATE TABLE table_25691838_8 (
introductory_phrase VARCHAR,
production_code VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the introductory phrase on the episode production code 6101?
### Response:
|
SELECT introductory_phrase FROM table_25691838_8 WHERE production_code = 6101
|
### Instruction:
CREATE TABLE table_name_36 (
acting_segment VARCHAR,
status VARCHAR,
name VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the acting segment of lin peiqi's events that are eliminated?
### Response:
|
SELECT acting_segment FROM table_name_36 WHERE status = "eliminated" AND name = "林佩琪 lin peiqi"
|
### Instruction:
CREATE TABLE table_name_80 (
events VARCHAR,
top_10 VARCHAR,
top_5 VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Events have a Top-10 larger than 6, and a Top-5 smaller than 8?
### Response:
|
SELECT COUNT(events) FROM table_name_80 WHERE top_10 > 6 AND top_5 < 8
|
### Instruction:
CREATE TABLE table_name_4 (
date VARCHAR,
home_team VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Date has a Home team of philadelphia, and a Result of 104 110?
### Response:
|
SELECT date FROM table_name_4 WHERE home_team = "philadelphia" AND result = "104–110"
|
### Instruction:
CREATE TABLE table_name_86 (
grid INTEGER,
constructor VARCHAR,
driver VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the sum of the grid with alfa romeo and toulo de graffenried
### Response:
|
SELECT SUM(grid) FROM table_name_86 WHERE constructor = "alfa romeo" AND driver = "toulo de graffenried"
|
### Instruction:
CREATE TABLE table_name_18 (
player VARCHAR,
pick__number VARCHAR,
nationality VARCHAR,
position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What which player from Canada was picked #49 and plays left wing?
### Response:
|
SELECT player FROM table_name_18 WHERE nationality = "canada" AND position = "left wing" AND pick__number = "49"
|
### Instruction:
CREATE TABLE table_204_321 (
id number,
"community" text,
"currency" text,
"region" text,
"target date" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the first region on the chart
### Response:
|
SELECT "region" FROM table_204_321 WHERE id = 1
|
### Instruction:
CREATE TABLE table_name_46 (
sr VARCHAR,
average VARCHAR,
runs_scored VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which S.R. has a Average smaller than 23.63 Runs Scored of 49?
### Response:
|
SELECT sr FROM table_name_46 WHERE average < 23.63 AND runs_scored = 49
|
### Instruction:
CREATE TABLE table_name_36 (
clock_speed__mhz_ INTEGER,
introduced VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With April 1986 as the introduced, what is the least clock speed (MHz)?
### Response:
|
SELECT MIN(clock_speed__mhz_) FROM table_name_36 WHERE introduced = "april 1986"
|
### Instruction:
CREATE TABLE table_51336 (
"Driver" text,
"Constructor" text,
"Laps" text,
"Time/Retired" text,
"Grid" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver had a grid of 22?
### Response:
|
SELECT "Driver" FROM table_51336 WHERE "Grid" = '22'
|
### Instruction:
CREATE TABLE table_9974 (
"Game" text,
"Date" text,
"Home Team" text,
"Result" text,
"Road Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what day was Game 7 of this season played?
### Response:
|
SELECT "Date" FROM table_9974 WHERE "Game" = 'game 7'
|
### Instruction:
CREATE TABLE table_name_23 (
surface VARCHAR,
score_in_final VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Surface, when Score in Final is 3-6, 6-3, 6-2?
### Response:
|
SELECT surface FROM table_name_23 WHERE score_in_final = "3-6, 6-3, 6-2"
|
### Instruction:
CREATE TABLE table_name_16 (
ihsaa_football_class VARCHAR,
county VARCHAR,
school VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the IHSAA Football Class for county 67 putnam at Greencastle?
### Response:
|
SELECT ihsaa_football_class FROM table_name_16 WHERE county = "67 putnam" AND school = "greencastle"
|
### Instruction:
CREATE TABLE table_name_70 (
average INTEGER,
english_title VARCHAR,
finale VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Average of Men in Pain with a Finale of less than 33?
### Response:
|
SELECT AVG(average) FROM table_name_70 WHERE english_title = "men in pain" AND finale < 33
|
### Instruction:
CREATE TABLE table_name_92 (
college_junior_club_team__league_ VARCHAR,
nationality VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which College/Junior/Club Team (League) are from sweden?
### Response:
|
SELECT college_junior_club_team__league_ FROM table_name_92 WHERE nationality = "sweden"
|
### Instruction:
CREATE TABLE table_name_27 (
to_par INTEGER,
player VARCHAR,
total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest to par number for Justin Leonard when the total is less than 297?
### Response:
|
SELECT MAX(to_par) FROM table_name_27 WHERE player = "justin leonard" AND total < 297
|
### Instruction:
CREATE TABLE table_12650 (
"Perpetrator" text,
"Year" text,
"Location" text,
"Country" text,
"Killed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year is the location Ta'izz?
### Response:
|
SELECT "Year" FROM table_12650 WHERE "Location" = 'ta''izz'
|
### Instruction:
CREATE TABLE manufacturers (
revenue INTEGER,
headquarter VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin.
### Response:
|
SELECT SUM(revenue) FROM manufacturers WHERE revenue > (SELECT MIN(revenue) FROM manufacturers WHERE headquarter = 'Austin')
|
### Instruction:
CREATE TABLE table_65544 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the notes of the United States?
### Response:
|
SELECT "Notes" FROM table_65544 WHERE "Country" = 'united states'
|
### Instruction:
CREATE TABLE table_name_23 (
opponents VARCHAR,
year VARCHAR,
team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Opponents have a Year of 1998 99, and a Team of aston villa?
### Response:
|
SELECT opponents FROM table_name_23 WHERE year = "1998–99" AND team = "aston villa"
|
### Instruction:
CREATE TABLE table_23572 (
"Pick #" real,
"CFL Team" text,
"Player" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team was in position OL?
### Response:
|
SELECT "CFL Team" FROM table_23572 WHERE "Position" = 'OL'
|
### Instruction:
CREATE TABLE table_name_2 (
finish VARCHAR,
laps VARCHAR,
qual VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the finish when there was more than 192 laps and a qual of 135.736?
### Response:
|
SELECT finish FROM table_name_2 WHERE laps > 192 AND qual = "135.736"
|
### Instruction:
CREATE TABLE table_25597136_1 (
current_status VARCHAR,
date_first_lit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The date first lit is 1853 total number of current status.
### Response:
|
SELECT COUNT(current_status) FROM table_25597136_1 WHERE date_first_lit = "1853"
|
### Instruction:
CREATE TABLE table_name_52 (
election INTEGER,
party VARCHAR,
mayor VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Election has a Party of democratic party, and a Mayor of leonardo betti?
### Response:
|
SELECT MAX(election) FROM table_name_52 WHERE party = "democratic party" AND mayor = "leonardo betti"
|
### Instruction:
CREATE TABLE table_name_61 (
weight VARCHAR,
club VARCHAR,
height VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Weight of the Spandau 04 Player with a Height of m (ft 5in)?
### Response:
|
SELECT weight FROM table_name_61 WHERE club = "spandau 04" AND height = "m (ft 5in)"
|
### Instruction:
CREATE TABLE table_20403667_2 (
village INTEGER,
house_affected VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the largest village that had 103279 houses affected?
### Response:
|
SELECT MAX(village) FROM table_20403667_2 WHERE house_affected = 103279
|
### Instruction:
CREATE TABLE table_name_45 (
draw INTEGER,
season VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Draw has a Season of 2001 02, and Points larger than 47?
### Response:
|
SELECT SUM(draw) FROM table_name_45 WHERE season = "2001–02" AND points > 47
|
### Instruction:
CREATE TABLE table_name_78 (
source VARCHAR,
remainder VARCHAR,
topinka__r_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Source has a Remainder of 15%, and a Topinka of 26%?
### Response:
|
SELECT source FROM table_name_78 WHERE remainder = "15%" AND topinka__r_ = "26%"
|
### Instruction:
CREATE TABLE table_name_62 (
score VARCHAR,
result VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the Score that has the Result of win, and the Date of 13 november 2009?
### Response:
|
SELECT score FROM table_name_62 WHERE result = "win" AND date = "13 november 2009"
|
### Instruction:
CREATE TABLE table_203_354 (
id number,
"party" text,
"candidate(s)" text,
"votes" number,
"percentage" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which party received the least votes
### Response:
|
SELECT "party" FROM table_203_354 ORDER BY "votes" LIMIT 1
|
### Instruction:
CREATE TABLE table_23819979_3 (
final_place VARCHAR,
last_match VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the final place for july 25, 2009
### Response:
|
SELECT final_place FROM table_23819979_3 WHERE last_match = "July 25, 2009"
|
### Instruction:
CREATE TABLE table_41511 (
"Date" text,
"Home captain" text,
"Away captain" text,
"Venue" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which venue led to a draw?
### Response:
|
SELECT "Venue" FROM table_41511 WHERE "Result" = 'draw'
|
### Instruction:
CREATE TABLE table_name_26 (
year_introduced INTEGER,
memory__gb_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Year Introduced has a Memory (GB) of 0.125 2?
### Response:
|
SELECT MAX(year_introduced) FROM table_name_26 WHERE memory__gb_ = "0.125–2"
|
### Instruction:
CREATE TABLE table_16247 (
"DVD Name" text,
"# of Ep" real,
"Region 1" text,
"Region 2" text,
"Region 4" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the least amount of season epidsodes?
### Response:
|
SELECT MIN("# of Ep") FROM table_16247
|
### Instruction:
CREATE TABLE table_name_28 (
catalog VARCHAR,
format VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- From what catalog was the release that happened on April 12, 1968, and in LP format?
### Response:
|
SELECT catalog FROM table_name_28 WHERE format = "lp" AND date = "april 12, 1968"
|
### Instruction:
CREATE TABLE table_77116 (
"Title" text,
"Release Date" text,
"Format" text,
"Release" text,
"Label" text,
"Code" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was Gala released?
### Response:
|
SELECT "Release" FROM table_77116 WHERE "Title" = 'gala'
|
### Instruction:
CREATE TABLE table_65718 (
"Rank" real,
"Rider" text,
"Team" text,
"Speed" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What team does Anthony Redmond ride for?
### Response:
|
SELECT "Team" FROM table_65718 WHERE "Rider" = 'anthony redmond'
|
### Instruction:
CREATE TABLE table_name_99 (
championship VARCHAR,
result VARCHAR,
nation VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What championship was in the USA after 1994, and resulted in 5th place?
### Response:
|
SELECT championship FROM table_name_99 WHERE nation = "usa" AND year > 1994 AND result = "5th"
|
### Instruction:
CREATE TABLE table_73327 (
"Year" real,
"Division" real,
"League" text,
"Reg. Season" text,
"Playoffs" text,
"National Open" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest division number?
### Response:
|
SELECT MIN("Division") FROM table_73327
|
### Instruction:
CREATE TABLE table_37029 (
"Wrestler" text,
"Reign" text,
"Days held" text,
"Location" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What event has unknown as the days held.?
### Response:
|
SELECT "Event" FROM table_37029 WHERE "Days held" = 'unknown'
|
### Instruction:
CREATE TABLE table_16201038_3 (
at_opponents_venue VARCHAR,
missouri_vs VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the total number of opponets venue for oklahoma
### Response:
|
SELECT COUNT(at_opponents_venue) FROM table_16201038_3 WHERE missouri_vs = "Oklahoma"
|
### Instruction:
CREATE TABLE table_204_249 (
id number,
"km" number,
"municipality" text,
"location" text,
"interescting highway" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the total of location ?
### Response:
|
SELECT COUNT("location") FROM table_204_249
|
### Instruction:
CREATE TABLE table_name_64 (
lost VARCHAR,
losing_bonus VARCHAR,
club VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Lost, when Losing Bonus is '3', and when Club is 'Bettws RFC'?
### Response:
|
SELECT lost FROM table_name_64 WHERE losing_bonus = "3" AND club = "bettws rfc"
|
### Instruction:
CREATE TABLE table_203_340 (
id number,
"rank" number,
"airport" text,
"passengers handled" number,
"% change 2011 / 12" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many airports are listed ?
### Response:
|
SELECT COUNT("airport") FROM table_203_340
|
### Instruction:
CREATE TABLE table_14847258_1 (
title VARCHAR,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- 15.03 million u.s viewers seen what episode?
### Response:
|
SELECT title FROM table_14847258_1 WHERE us_viewers__millions_ = "15.03"
|
### Instruction:
CREATE TABLE table_name_43 (
rank INTEGER,
studio_s_ VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the average rank for dharma productions before 2013
### Response:
|
SELECT AVG(rank) FROM table_name_43 WHERE studio_s_ = "dharma productions" AND year < 2013
|
### Instruction:
CREATE TABLE table_name_37 (
place INTEGER,
national_final VARCHAR,
points VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the highest place when the national final is 4th and the points is less than 139?
### Response:
|
SELECT MAX(place) FROM table_name_37 WHERE national_final = "4th" AND points < 139
|
### Instruction:
CREATE TABLE table_name_49 (
title_in_english VARCHAR,
format VARCHAR,
original_title VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the english title with a lp format and an Original title of ?
### Response:
|
SELECT title_in_english FROM table_name_49 WHERE format = "lp" AND original_title = "то ли ещё будет"
|
### Instruction:
CREATE TABLE table_name_80 (
population INTEGER,
per_capita_income VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest Population, when Per Capita Income is '$16,330'?
### Response:
|
SELECT MIN(population) FROM table_name_80 WHERE per_capita_income = "$16,330"
|
### Instruction:
CREATE TABLE table_20032301_3 (
undecided VARCHAR,
sampling_error VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the percentage of undecided according to the poll source with sampling error of 2.7%?
### Response:
|
SELECT undecided FROM table_20032301_3 WHERE sampling_error = "2.7%"
|
### Instruction:
CREATE TABLE table_204_902 (
id number,
"rank" number,
"name" text,
"nationality" text,
"time" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the first name listed ?
### Response:
|
SELECT "name" FROM table_204_902 WHERE id = 1
|
### Instruction:
CREATE TABLE table_204_265 (
id number,
"no." number,
"title (latin)" text,
"title (english translation)" text,
"subject" text,
"date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many subjects are there ?
### Response:
|
SELECT COUNT("subject") FROM table_204_265
|
### Instruction:
CREATE TABLE phone (
Hardware_Model_name VARCHAR,
Company_name VARCHAR,
Accreditation_type VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Find all phones that have word 'Full' in their accreditation types. List the Hardware Model name and Company name.
### Response:
|
SELECT Hardware_Model_name, Company_name FROM phone WHERE Accreditation_type LIKE 'Full'
|
### Instruction:
CREATE TABLE table_name_46 (
ofsted INTEGER,
capacity VARCHAR,
ages VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Ofsted has a Capacity smaller than 56, and Ages of 11-16?
### Response:
|
SELECT SUM(ofsted) FROM table_name_46 WHERE capacity < 56 AND ages = "11-16"
|
### Instruction:
CREATE TABLE table_name_12 (
competition VARCHAR,
score VARCHAR,
result VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the competition when the result is loss in berlin with a score of 0-3?
### Response:
|
SELECT competition FROM table_name_12 WHERE result = "loss" AND location = "berlin" AND score = "0-3"
|
### Instruction:
CREATE TABLE table_name_80 (
tie_no VARCHAR,
score VARCHAR,
home_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Tie no at the Hull City Home game with a Score of 1 1?
### Response:
|
SELECT tie_no FROM table_name_80 WHERE score = "1–1" AND home_team = "hull city"
|
### Instruction:
CREATE TABLE table_70895 (
"Year" text,
"Category" text,
"Genre" text,
"Recording" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the recording for 2012
### Response:
|
SELECT "Recording" FROM table_70895 WHERE "Year" = '2012'
|
### Instruction:
CREATE TABLE table_name_86 (
artist VARCHAR,
label VARCHAR,
standard_number VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Artist has the Label of Columbia and the Standard number of COCC-72073?
### Response:
|
SELECT artist FROM table_name_86 WHERE label = "columbia" AND standard_number = "cocc-72073"
|
### Instruction:
CREATE TABLE table_name_2 (
group_position VARCHAR,
opponents VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What group of juventus had an attendance larger than 47,786?
### Response:
|
SELECT group_position FROM table_name_2 WHERE opponents = "juventus" AND attendance > 47 OFFSET 786
|
### Instruction:
CREATE TABLE table_17356205_1 (
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 Terrence Nightingall?
### Response:
|
SELECT original_air_date FROM table_17356205_1 WHERE directed_by = "Terrence Nightingall"
|
### Instruction:
CREATE TABLE table_name_69 (
year VARCHAR,
balance_sheet_total VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year did the company have a balance sheet total of 125,359,000?
### Response:
|
SELECT COUNT(year) FROM table_name_69 WHERE balance_sheet_total = "€125,359,000"
|
### Instruction:
CREATE TABLE table_65422 (
"Rank" real,
"Rowers" text,
"Country" text,
"Time" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Hungary's highest Rank?
### Response:
|
SELECT MAX("Rank") FROM table_65422 WHERE "Country" = 'hungary'
|
### Instruction:
CREATE TABLE table_34999 (
"Date" text,
"Course" text,
"Distance" text,
"Type" text,
"Winner" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the course for 24 july
### Response:
|
SELECT "Course" FROM table_34999 WHERE "Date" = '24 july'
|
### Instruction:
CREATE TABLE table_29127804_3 (
surface VARCHAR,
location VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the material of the surface in the dehradun , uttarakhand, india location
### Response:
|
SELECT surface FROM table_29127804_3 WHERE location = "Dehradun , Uttarakhand, India"
|
### Instruction:
CREATE TABLE table_34314 (
"Position" text,
"Name" text,
"School" text,
"Unanimous" text,
"College Hall of Fame" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What School is the Center from?
### Response:
|
SELECT "School" FROM table_34314 WHERE "Position" = 'center'
|
### Instruction:
CREATE TABLE table_1341738_19 (
incumbent VARCHAR,
first_elected VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the name of the incumbent who was first eleccted in 1940?
### Response:
|
SELECT incumbent FROM table_1341738_19 WHERE first_elected = 1940
|
### Instruction:
CREATE TABLE table_name_66 (
winning_driver VARCHAR,
winning_car VARCHAR,
circuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which driver drove car McLaren M23 at the Snetterton Circuit?
### Response:
|
SELECT winning_driver FROM table_name_66 WHERE winning_car = "mclaren m23" AND circuit = "snetterton"
|
### Instruction:
CREATE TABLE table_name_14 (
human_resources_ VARCHAR,
_operations VARCHAR,
year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the Human Resources & Operations person between 2003-2004?
### Response:
|
SELECT human_resources_ & _operations FROM table_name_14 WHERE year = "2003-2004"
|
### Instruction:
CREATE TABLE table_name_99 (
stage VARCHAR,
yellow_jersey VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the stage winner when the stage was more than 10 and yellow jersey was Joseph Planckaert?
### Response:
|
SELECT stage AS winner FROM table_name_99 WHERE stage > 10 AND yellow_jersey = "joseph planckaert"
|
### Instruction:
CREATE TABLE table_50964 (
"Title" text,
"Parent magazine" text,
"Magazine type" text,
"Frequency" text,
"Magazine run" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What titles come out monthly?
### Response:
|
SELECT "Title" FROM table_50964 WHERE "Frequency" = 'monthly'
|
### Instruction:
CREATE TABLE table_name_5 (
platform_s_ VARCHAR,
year VARCHAR,
director VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the platform of the 2010 game with Shuichiro Nishiya as director?
### Response:
|
SELECT platform_s_ FROM table_name_5 WHERE year = 2010 AND director = "shuichiro nishiya"
|
### Instruction:
CREATE TABLE table_13082900_1 (
season VARCHAR,
rookie_of_the_year VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the season for no award given for rookie of the year?
### Response:
|
SELECT season FROM table_13082900_1 WHERE rookie_of_the_year = "No award given"
|
### Instruction:
CREATE TABLE table_1036189_1 (
bullet_tip_color VARCHAR,
headstamp_id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For the headstamp id of h2, what was the color of the bullet tip?
### Response:
|
SELECT bullet_tip_color FROM table_1036189_1 WHERE headstamp_id = "H2"
|
### Instruction:
CREATE TABLE table_name_53 (
race_title VARCHAR,
winner VARCHAR,
circuit VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the race title when the winner is dick johnson and the circuit is sandown raceway?
### Response:
|
SELECT race_title FROM table_name_53 WHERE winner = "dick johnson" AND circuit = "sandown raceway"
|
### Instruction:
CREATE TABLE table_52551 (
"Name/Number" text,
"Builder" text,
"Type" text,
"Status" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the builder for joffre
### Response:
|
SELECT "Builder" FROM table_52551 WHERE "Name/Number" = 'joffre'
|
### Instruction:
CREATE TABLE table_1717824_1 (
south_asians_2001 VARCHAR,
province VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the South Asian population in Nova Scotia in 2001?
### Response:
|
SELECT south_asians_2001 FROM table_1717824_1 WHERE province = "Nova Scotia"
|
### Instruction:
CREATE TABLE table_name_62 (
home_team VARCHAR,
date VARCHAR,
venue VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who is the home team at Victoria Park on 20 April 1957?
### Response:
|
SELECT home_team FROM table_name_62 WHERE date = "20 april 1957" AND venue = "victoria park"
|
### Instruction:
CREATE TABLE table_name_39 (
bronze INTEGER,
total VARCHAR,
gold VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the number of bronze medals when the total medals were 78 and there were less than 12 golds?
### Response:
|
SELECT SUM(bronze) FROM table_name_39 WHERE total = 78 AND gold < 12
|
### Instruction:
CREATE TABLE table_60275 (
"Model" text,
"Year" text,
"Type" text,
"Engine" text,
"Displacement cc" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What type of car has the model 6cm?
### Response:
|
SELECT "Type" FROM table_60275 WHERE "Model" = '6cm'
|
### Instruction:
CREATE TABLE table_name_30 (
winner VARCHAR,
score VARCHAR,
season VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Winner has a Score of 1 0, and a Season of 2011 12?
### Response:
|
SELECT winner FROM table_name_30 WHERE score = "1 – 0" AND season = "2011–12"
|
### Instruction:
CREATE TABLE table_name_45 (
events_won__uk_series_ VARCHAR,
events_won__us_series_ INTEGER
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many UK events won for the contestant that won under 1 US event?
### Response:
|
SELECT events_won__uk_series_ FROM table_name_45 WHERE events_won__us_series_ < 1
|
### Instruction:
CREATE TABLE table_name_33 (
drawn INTEGER,
penalties VARCHAR,
conversions VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many ties did he have when he had 1 penalties and more than 20 conversions?
### Response:
|
SELECT SUM(drawn) FROM table_name_33 WHERE penalties = 1 AND conversions > 20
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.