instruction
stringlengths 231
6.3k
| output
stringlengths 2
2.03k
|
---|---|
### Instruction:
CREATE TABLE table_18224 (
"District" text,
"Incumbent" text,
"Party" text,
"Elected" text,
"Status" text,
"Opponent" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many incumbents represent district California 34?
### Response:
|
SELECT COUNT("Incumbent") FROM table_18224 WHERE "District" = 'California 34'
|
### Instruction:
CREATE TABLE table_71423 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 1961, what was the Chassis when the points were lower than 6?
### Response:
|
SELECT "Chassis" FROM table_71423 WHERE "Points" < '6' AND "Year" = '1961'
|
### Instruction:
CREATE TABLE table_70736 (
"Model" text,
"Build date" text,
"Total produced" real,
"Wheel arrangement" text,
"Prime mover" text,
"Power output" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the prime mover for a build date in 1975?
### Response:
|
SELECT "Prime mover" FROM table_70736 WHERE "Build date" = '1975'
|
### Instruction:
CREATE TABLE table_10083 (
"Institution" text,
"Location" text,
"Team Nickname" text,
"Joined TSCHL" real,
"Home Arena" text,
"Capacity" real,
"Team Website" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the institution at akron, oh?
### Response:
|
SELECT "Institution" FROM table_10083 WHERE "Location" = 'akron, oh'
|
### Instruction:
CREATE TABLE table_46256 (
"Res." text,
"Record" text,
"Opponent" text,
"Method" text,
"Event" text,
"Round" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the method of the match with chris ade as the opponent?
### Response:
|
SELECT "Method" FROM table_46256 WHERE "Opponent" = 'chris ade'
|
### Instruction:
CREATE TABLE table_7430 (
"Rank" real,
"Name" text,
"Team" text,
"Games" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many Games has a Name of st phane dumas and a Rank larger than 5?
### Response:
|
SELECT AVG("Games") FROM table_7430 WHERE "Name" = 'stéphane dumas' AND "Rank" > '5'
|
### Instruction:
CREATE TABLE table_49874 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Can you tell me the average December rhat has the Opponent of @ toronto maple leafs?
### Response:
|
SELECT AVG("December") FROM table_49874 WHERE "Opponent" = '@ toronto maple leafs'
|
### Instruction:
CREATE TABLE table_65924 (
"Year" real,
"Venue" text,
"Competition" text,
"Kilkenny score" text,
"Waterford score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What yeae has 6-08 (24) as a waterford score?
### Response:
|
SELECT "Year" FROM table_65924 WHERE "Waterford score" = '6-08 (24)'
|
### Instruction:
CREATE TABLE tryout (
pid number,
cname text,
ppos text,
decision text
)
CREATE TABLE college (
cname text,
state text,
enr number
)
CREATE TABLE player (
pid number,
pname text,
ycard text,
hs number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many students, on average, does each college have enrolled?
### Response:
|
SELECT AVG(enr) FROM college
|
### Instruction:
CREATE TABLE table_11570261_1 (
winning_score VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what's the 54 holes where winning score is 19 (67-66-67-69=269)
### Response:
|
SELECT 54 AS _holes FROM table_11570261_1 WHERE winning_score = −19(67 - 66 - 67 - 69 = 269)
|
### Instruction:
CREATE TABLE table_76047 (
"Rank" text,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which rank has 1 silver medal and more than 1 gold medal?
### Response:
|
SELECT "Rank" FROM table_76047 WHERE "Silver" = '1' AND "Gold" > '1'
|
### Instruction:
CREATE TABLE table_name_99 (
Id VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the 1997 if 1993 has a 1R, 1995 has a 3R, and 1999 has a 1R?
### Response:
|
SELECT 1997 FROM table_name_99 WHERE 1999 = "1r" AND 1995 = "3r" AND 1993 = "1r"
|
### Instruction:
CREATE TABLE table_name_95 (
payload_to_gto VARCHAR,
ccbs VARCHAR,
payload_to_leo VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Payload to GTO has CCBs larger than 1, and a Payload to LEO of 29,400kg?
### Response:
|
SELECT payload_to_gto FROM table_name_95 WHERE ccbs > 1 AND payload_to_leo = "29,400kg"
|
### Instruction:
CREATE TABLE table_41706 (
"Year" real,
"Round" real,
"Pick" real,
"Player" text,
"NBA Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the average pick with Ed O'Bannon and a round smaller than 1?
### Response:
|
SELECT AVG("Pick") FROM table_41706 WHERE "Player" = 'ed o''bannon' AND "Round" < '1'
|
### Instruction:
CREATE TABLE table_203_830 (
id number,
"year" number,
"song" text,
"chart positions\nus country" number,
"chart positions\ncan country" number,
"album" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many songs made it into the top 10 us charts ?
### Response:
|
SELECT COUNT("song") FROM table_203_830 WHERE "chart positions\nus country" <= 10
|
### Instruction:
CREATE TABLE table_18547 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many times was w. arthur winstead first elected?
### Response:
|
SELECT COUNT("First elected") FROM table_18547 WHERE "Incumbent" = 'W. Arthur Winstead'
|
### Instruction:
CREATE TABLE table_203_116 (
id number,
"no." number,
"player" text,
"birth date" text,
"weight" number,
"height" number,
"position" text,
"current club" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is at least 25 years or older ?
### Response:
|
SELECT "player" FROM table_203_116 WHERE "birth date" >= 25
|
### Instruction:
CREATE TABLE table_49140 (
"E. coli" text,
"Yeast (S. cerevisiae)" text,
"Human" text,
"Type" text,
"Substrates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the type of glycosylase that has an E. coli of Muty?
### Response:
|
SELECT "Type" FROM table_49140 WHERE "E. coli" = 'muty'
|
### Instruction:
CREATE TABLE table_31547 (
"Pick" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the college for jason holland
### Response:
|
SELECT "College/junior/club team" FROM table_31547 WHERE "Player" = 'jason holland'
|
### Instruction:
CREATE TABLE table_204_227 (
id number,
"week" number,
"date" text,
"opponent" text,
"score" text,
"result" text,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the average number of points scored by opponents in the five games lost this season ?
### Response:
|
SELECT AVG("score") FROM table_204_227 WHERE "result" = 'loss'
|
### Instruction:
CREATE TABLE table_18604 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the contenders In the New York 29 polling area race?
### Response:
|
SELECT "Candidates" FROM table_18604 WHERE "District" = 'New York 29'
|
### Instruction:
CREATE TABLE table_6493 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Attendance" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Score has a Home team of yeovil town won 5 3 on penalties?
### Response:
|
SELECT "Score" FROM table_6493 WHERE "Home team" = 'yeovil town won 5–3 on penalties'
|
### Instruction:
CREATE TABLE table_33942 (
"Latitude" text,
"Longitude" text,
"City" text,
"State" text,
"Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What city in Svalbard has a longitude of 15 39 e?
### Response:
|
SELECT "City" FROM table_33942 WHERE "State" = 'svalbard' AND "Longitude" = '15°39′e'
|
### Instruction:
CREATE TABLE table_51407 (
"Year" real,
"Film" text,
"Role" text,
"Leading Man" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What leading man earlier than 1932 was directed by archie mayo?
### Response:
|
SELECT "Leading Man" FROM table_51407 WHERE "Year" < '1932' AND "Director" = 'archie mayo'
|
### Instruction:
CREATE TABLE table_35293 (
"Date" text,
"Tournament" text,
"Winning score" text,
"Margin of victory" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the winning scor of the tournament with Robin Walton as the runner-up?
### Response:
|
SELECT "Winning score" FROM table_35293 WHERE "Runner(s)-up" = 'robin walton'
|
### Instruction:
CREATE TABLE table_36654 (
"Pick #" text,
"Player" text,
"Position" text,
"Nationality" text,
"NHL team" text,
"College/junior/club team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the NHL team that had pick number 32?
### Response:
|
SELECT "NHL team" FROM table_36654 WHERE "Pick #" = '32'
|
### Instruction:
CREATE TABLE table_40559 (
"Country" text,
"Laws against homosexuality" text,
"Penalty" text,
"Same-sex Unions" text,
"Laws against discrimination" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the laws against homosexuality in Malaysia?
### Response:
|
SELECT "Laws against homosexuality" FROM table_40559 WHERE "Country" = 'malaysia'
|
### Instruction:
CREATE TABLE table_13586 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In which competition was Moradi's time 1:48.58?
### Response:
|
SELECT "Competition" FROM table_13586 WHERE "Notes" = '1:48.58'
|
### Instruction:
CREATE TABLE table_204_243 (
id number,
"year" number,
"album" text,
"song" text,
"duration" text,
"artist" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what album was published next after mama ?
### Response:
|
SELECT "album" FROM table_204_243 WHERE id = (SELECT id FROM table_204_243 WHERE "album" = 'mama') + 1
|
### Instruction:
CREATE TABLE table_1341522_50 (
status VARCHAR,
opponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the result of the election of doc hastings (r) 53.3% jay inslee (d) 46.7%
### Response:
|
SELECT status FROM table_1341522_50 WHERE opponent = "Doc Hastings (R) 53.3% Jay Inslee (D) 46.7%"
|
### Instruction:
CREATE TABLE table_52968 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the stadium of melbourne?
### Response:
|
SELECT "Venue" FROM table_52968 WHERE "Home team" = 'melbourne'
|
### Instruction:
CREATE TABLE table_51337 (
"Wicket Partnership" text,
"Runs" text,
"Batsmen" text,
"Opponents" text,
"Venue" text,
"Season" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which season is the wicket 2nd partnership in?
### Response:
|
SELECT "Season" FROM table_51337 WHERE "Wicket Partnership" = '2nd'
|
### Instruction:
CREATE TABLE table_name_53 (
week INTEGER,
time__cst_ VARCHAR,
game_site VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest week that has 7:15 p.m. as the time (cst) and fedexfield as the game site?
### Response:
|
SELECT MIN(week) FROM table_name_53 WHERE time__cst_ = "7:15 p.m." AND game_site = "fedexfield"
|
### Instruction:
CREATE TABLE table_17004 (
"Disaster" text,
"Year" text,
"Countries Affected" text,
"Scale of Disaster" text,
"People Assisted" text,
"Nature of Help" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the scale of disaster in Peru?
### Response:
|
SELECT "Scale of Disaster" FROM table_17004 WHERE "Countries Affected" = 'Peru'
|
### Instruction:
CREATE TABLE table_74284 (
"#" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Winnings ($)" real,
"After" real,
"Before" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score when the player is Matt Kuchar?
### Response:
|
SELECT "Score" FROM table_74284 WHERE "Player" = 'Matt Kuchar'
|
### Instruction:
CREATE TABLE table_203_573 (
id number,
"name" text,
"rank - 2000" number,
"number" number,
"country of origin" text,
"england - 2001" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the english american name that the most people have ?
### Response:
|
SELECT "name" FROM table_203_573 ORDER BY "number" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_25378 (
"No." real,
"Player" text,
"Hometown" text,
"Class" text,
"Position" text,
"Height" text,
"Weight" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are all players from hometown of Carbondale, Illinois?
### Response:
|
SELECT "Player" FROM table_25378 WHERE "Hometown" = 'Carbondale, Illinois'
|
### Instruction:
CREATE TABLE table_24571 (
"Train No." text,
"Train Name" text,
"Destination" text,
"Category" text,
"Frequency" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the category for trains numbered 16609/16610?
### Response:
|
SELECT "Category" FROM table_24571 WHERE "Train No." = '16609/16610'
|
### Instruction:
CREATE TABLE table_18023 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Game site" text,
"Record" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the date of the game against Kansas City Chiefs?
### Response:
|
SELECT "Date" FROM table_18023 WHERE "Opponent" = 'Kansas City Chiefs'
|
### Instruction:
CREATE TABLE table_58221 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which grid is lower for thierry boutsen which laps less than 44?
### Response:
|
SELECT MIN("Grid") FROM table_58221 WHERE "Driver" = 'thierry boutsen' AND "Laps" < '44'
|
### Instruction:
CREATE TABLE table_201_31 (
id number,
"number" number,
"author" text,
"first line" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which author had a poem on this list with the first line as it fell upon day and also a poem that starts with if music and sweet poetry agree .
### Response:
|
SELECT "author" FROM table_201_31 WHERE "first line" = '"as it fell upon a day"'
|
### Instruction:
CREATE TABLE table_78768 (
"Year" real,
"Competition" text,
"Awards" text,
"Category" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What year has Stacy as the category and award of Best Reality Star in Social Media?
### Response:
|
SELECT MIN("Year") FROM table_78768 WHERE "Category" = 'stacy' AND "Awards" = 'best reality star in social media'
|
### Instruction:
CREATE TABLE table_7671 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Silver has a Total smaller than 2 and a Rank larger than 8
### Response:
|
SELECT MIN("Silver") FROM table_7671 WHERE "Total" < '2' AND "Rank" > '8'
|
### Instruction:
CREATE TABLE table_name_24 (
score VARCHAR,
year VARCHAR,
winners VARCHAR,
runners_up VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was Galatasaray score when when he won in 1990 and Trabzonspor was the runner-up?
### Response:
|
SELECT score FROM table_name_24 WHERE winners = "galatasaray" AND runners_up = "trabzonspor" AND year = 1990
|
### Instruction:
CREATE TABLE table_9121 (
"Season" real,
"Premiered" text,
"Bachelor" text,
"Winner" text,
"Runner(s)-Up" text,
"Proposal" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What season had bachelor Byron Velvick?
### Response:
|
SELECT MIN("Season") FROM table_9121 WHERE "Bachelor" = 'byron velvick'
|
### Instruction:
CREATE TABLE table_54265 (
"Railway" text,
"Loco name" text,
"Build date" real,
"Wheels" text,
"Disposal" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the build date of the railway(s) with 0-6-2 t wheels?
### Response:
|
SELECT "Build date" FROM table_54265 WHERE "Wheels" = '0-6-2 t'
|
### Instruction:
CREATE TABLE table_54450 (
"Pick" real,
"Player" text,
"Country of origin*" text,
"PBA team" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the player with a pick smaller than 12 and a college of UV from?
### Response:
|
SELECT "Country of origin*" FROM table_54450 WHERE "Pick" < '12' AND "College" = 'uv'
|
### Instruction:
CREATE TABLE table_203_746 (
id number,
"date" text,
"opponent" text,
"score" text,
"leading scorer" text,
"attendance" number,
"record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many people attended the game on june 24 ?
### Response:
|
SELECT "attendance" FROM table_203_746 WHERE "date" = 'june 24'
|
### Instruction:
CREATE TABLE table_34368 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Record" text,
"Game Site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what Week was the Detroit Lions the Opponent?
### Response:
|
SELECT "Week" FROM table_34368 WHERE "Opponent" = 'detroit lions'
|
### Instruction:
CREATE TABLE table_25305 (
"Country" text,
"Type of Protection" text,
"Maximum Term" text,
"PCT route available" text,
"Conversion from Patent Application" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- For short patent type of protections, what type of PCT route is available?
### Response:
|
SELECT "PCT route available" FROM table_25305 WHERE "Type of Protection" = 'short patent'
|
### Instruction:
CREATE TABLE table_19793 (
"Year" real,
"Mens singles" text,
"Womens singles" text,
"Mens doubles" text,
"Womens doubles" text,
"Mixed doubles" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the the mixed doubles with mens singles being peter moritz
### Response:
|
SELECT "Mixed doubles" FROM table_19793 WHERE "Mens singles" = 'Peter Moritz'
|
### Instruction:
CREATE TABLE table_35047 (
"Game" real,
"December" real,
"Opponent" text,
"Score" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What record has points greater than 39, with 38 as the game?
### Response:
|
SELECT "Record" FROM table_35047 WHERE "Points" > '39' AND "Game" = '38'
|
### Instruction:
CREATE TABLE table_47330 (
"Round" real,
"Pick" real,
"Player" text,
"Position" text,
"School" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many picks had less than 11 rounds and a player of Charley Casey?
### Response:
|
SELECT SUM("Pick") FROM table_47330 WHERE "Round" < '11' AND "Player" = 'charley casey'
|
### Instruction:
CREATE TABLE table_32734 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What date was the Home team fitzroy?
### Response:
|
SELECT "Date" FROM table_32734 WHERE "Home team" = 'fitzroy'
|
### Instruction:
CREATE TABLE table_59991 (
"Rank" real,
"Name" text,
"Years" text,
"Current Club" text,
"Goals" real,
"Apps" real,
"Ratio" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Goals have a Ratio of 0.29?
### Response:
|
SELECT "Goals" FROM table_59991 WHERE "Ratio" = '0.29'
|
### Instruction:
CREATE TABLE table_53489 (
"Year" real,
"Competition" text,
"Date" text,
"Location" text,
"Score" text,
"Result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the result of the Europe/Africa Group I, play-off competition?
### Response:
|
SELECT "Result" FROM table_53489 WHERE "Competition" = 'europe/africa group i, play-off'
|
### Instruction:
CREATE TABLE table_5963 (
"Callsign" text,
"Area served" text,
"Frequency" text,
"Band" text,
"On-air ID" text,
"Purpose" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Frequency of 100.1 has what on-air id?
### Response:
|
SELECT "On-air ID" FROM table_5963 WHERE "Frequency" = '100.1'
|
### Instruction:
CREATE TABLE table_15059783_1 (
combination_classification VARCHAR,
points_classification VARCHAR,
winner VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many combination classifications have the winner as Erik Zabel and a points classification as Alessandro Petacchi
### Response:
|
SELECT COUNT(combination_classification) FROM table_15059783_1 WHERE points_classification = "Alessandro Petacchi" AND winner = "Erik Zabel"
|
### Instruction:
CREATE TABLE table_73881 (
"Round" real,
"Circuit" text,
"Date" text,
"Pole Position" text,
"Fastest Lap" text,
"Winning driver" text,
"Winning team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is every date of Mark Taylor as winning driver?
### Response:
|
SELECT "Date" FROM table_73881 WHERE "Winning driver" = 'Mark Taylor'
|
### Instruction:
CREATE TABLE table_75596 (
"Outcome" text,
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the score of the match against duk-hee lee?
### Response:
|
SELECT "Score" FROM table_75596 WHERE "Opponent" = 'duk-hee lee'
|
### Instruction:
CREATE TABLE table_50517 (
"Nominative" text,
"Ergative" text,
"Dative" text,
"Genitive" text,
"Instrumental" text,
"Adverbial" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- With a nominative of chven-i what is the ergative?
### Response:
|
SELECT "Ergative" FROM table_50517 WHERE "Nominative" = 'chven-i'
|
### Instruction:
CREATE TABLE table_57965 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What day is carlton the home side?
### Response:
|
SELECT "Date" FROM table_57965 WHERE "Home team" = 'carlton'
|
### Instruction:
CREATE TABLE table_52470 (
"Productions" text,
"Rose" text,
"Louise" text,
"Dainty June" text,
"Herbie" text,
"Director" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was Dainty June when Tammy Blanchard was Louise?
### Response:
|
SELECT "Dainty June" FROM table_52470 WHERE "Louise" = 'tammy blanchard'
|
### Instruction:
CREATE TABLE table_204_535 (
id number,
"pos" text,
"rider" text,
"manufacturer" text,
"laps" number,
"time/retired" text,
"grid" number,
"points" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which rider is on top in points
### Response:
|
SELECT "rider" FROM table_204_535 ORDER BY "points" DESC LIMIT 1
|
### Instruction:
CREATE TABLE table_50838 (
"Date" text,
"Opponent" text,
"Score" text,
"Leading Scorer" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Leading Scorer has an Opponent of @ indiana?
### Response:
|
SELECT "Leading Scorer" FROM table_50838 WHERE "Opponent" = '@ indiana'
|
### 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.
-- looking at the top 10 busiest routes to and from london southend airport what is the average number of passengers handled ?
### Response:
|
SELECT AVG("passengers handled") FROM table_203_340
|
### Instruction:
CREATE TABLE table_15322 (
"Version" text,
"Code name" text,
"Release date" text,
"API level" real,
"Distribution" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- with release date of february 9, 2011, what is the api level?
### Response:
|
SELECT AVG("API level") FROM table_15322 WHERE "Release date" = 'february 9, 2011'
|
### Instruction:
CREATE TABLE table_38769 (
"Medal" text,
"Name" text,
"Games" text,
"Sport" text,
"Event" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What medal was won in the 1996 Atlanta games in wrestling?
### Response:
|
SELECT "Medal" FROM table_38769 WHERE "Games" = '1996 atlanta' AND "Sport" = 'wrestling'
|
### Instruction:
CREATE TABLE table_16859 (
"Player" text,
"No." real,
"Nationality" text,
"Position" text,
"Years for Jazz" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many schools did darryl dawkins play for
### Response:
|
SELECT COUNT("School/Club Team") FROM table_16859 WHERE "Player" = 'Darryl Dawkins'
|
### Instruction:
CREATE TABLE table_31101 (
"Week of" text,
"Tournament" text,
"Champion" text,
"Runner-up" text,
"Semifinalists" text,
"Quarterfinalists" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the week of what was the runner-up Pat Du Pr ?
### Response:
|
SELECT "Week of" FROM table_31101 WHERE "Runner-up" = 'Pat Du Pré'
|
### Instruction:
CREATE TABLE table_69919 (
"Deputy Prime Minister" text,
"Took office" real,
"Left office" text,
"Prime Minister" text,
"Term" text,
"Party" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which deputy prime minister left office in 1981?
### Response:
|
SELECT "Deputy Prime Minister" FROM table_69919 WHERE "Left office" = '1981'
|
### Instruction:
CREATE TABLE table_2368 (
"Institution" text,
"Location" text,
"Year Joined" real,
"Affiliation" text,
"Enrollment" real,
"Mascot" text,
"Colors" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- in what year did the colors red and gold join?
### Response:
|
SELECT COUNT("Year Joined") FROM table_2368 WHERE "Colors" = 'Red and Gold'
|
### Instruction:
CREATE TABLE table_3559 (
"Entered [A ]" text,
"Weeks in top 10" real,
"Single" text,
"Artist" text,
"Peak" real,
"Peak reached [A ]" text,
"Weeks at peak" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What smallest amount in the weeks at peak column?
### Response:
|
SELECT MIN("Weeks at peak") FROM table_3559
|
### Instruction:
CREATE TABLE table_23181 (
"Institution" text,
"Location" text,
"Nickname" text,
"Founded" real,
"Type" text,
"Enrollment" real,
"Joined" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the private/non-sectarian school founded?
### Response:
|
SELECT "Founded" FROM table_23181 WHERE "Type" = 'Private/Non-sectarian'
|
### Instruction:
CREATE TABLE table_28457 (
"Year" real,
"Championship" text,
"54 holes" text,
"Winning score" text,
"Margin" text,
"Runner(s)-up" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the space where the next winner is skee riegel
### Response:
|
SELECT "Margin" FROM table_28457 WHERE "Runner(s)-up" = 'Skee Riegel'
|
### Instruction:
CREATE TABLE table_56565 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Venue" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- On what date did the away team Melbourne play?
### Response:
|
SELECT "Date" FROM table_56565 WHERE "Away team" = 'melbourne'
|
### Instruction:
CREATE TABLE table_204_712 (
id number,
"rank" number,
"athlete" text,
"nationality" text,
"time" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many russians finished at least 3rd in the 20km walk ?
### Response:
|
SELECT COUNT(*) FROM table_204_712 WHERE "nationality" = 'russia' AND id <= 3
|
### Instruction:
CREATE TABLE table_71669 (
"Name" text,
"Years" text,
"Gender" text,
"Area" text,
"Authority" text,
"Decile" real,
"Roll" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Gender are the schools that have a Roll of 135?
### Response:
|
SELECT "Gender" FROM table_71669 WHERE "Roll" = '135'
|
### Instruction:
CREATE TABLE table_71818 (
"Date" text,
"Visiting Team" text,
"Final Score" text,
"Host Team" text,
"Stadium" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What visiting team played at 3com park on October 7?
### Response:
|
SELECT "Visiting Team" FROM table_71818 WHERE "Stadium" = '3com park' AND "Date" = 'october 7'
|
### Instruction:
CREATE TABLE table_72639 (
"Date" text,
"Tournament" text,
"Player" text,
"Country" text,
"Rounds" text,
"Score" real,
"To par" text,
"Finish" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What country hosts the tournament the open championship?
### Response:
|
SELECT "Country" FROM table_72639 WHERE "Tournament" = 'The Open Championship'
|
### Instruction:
CREATE TABLE table_336 (
"Player" text,
"No.(s)" text,
"Height in Ft." text,
"Position" text,
"Years for Rockets" text,
"School/Club Team/Country" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the players that attented long beach state?
### Response:
|
SELECT "Player" FROM table_336 WHERE "School/Club Team/Country" = 'Long Beach State'
|
### Instruction:
CREATE TABLE table_name_20 (
goals INTEGER,
goal_ratio VARCHAR,
debut_in_europe VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the smallest goals with a Goal Ratio of 0.14, and a Debut in Europe smaller than 1995?
### Response:
|
SELECT MIN(goals) FROM table_name_20 WHERE goal_ratio = 0.14 AND debut_in_europe < 1995
|
### Instruction:
CREATE TABLE table_42801 (
"Office" text,
"Democratic ticket" text,
"Republican ticket" text,
"Prohibition ticket" text,
"Greenback ticket" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was on the Prohibition ticket when Thomas Armstrong ran on the Greenback ticket?
### Response:
|
SELECT "Prohibition ticket" FROM table_42801 WHERE "Greenback ticket" = 'thomas armstrong'
|
### Instruction:
CREATE TABLE table_56609 (
"Date" text,
"Visitor" text,
"Score" text,
"Home" text,
"Decision" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score of the game when the New York Rangers were the home team?
### Response:
|
SELECT "Score" FROM table_56609 WHERE "Home" = 'new york rangers'
|
### Instruction:
CREATE TABLE table_21756039_1 (
maac VARCHAR,
ncaa_seed VARCHAR,
overall VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many maac are there that have 14th as the ncaa and the overall is 20-10?
### Response:
|
SELECT COUNT(maac) FROM table_21756039_1 WHERE ncaa_seed = "14th" AND overall = "20-10"
|
### Instruction:
CREATE TABLE table_78789 (
"Release" text,
"Chart" text,
"Peak Position" real,
"Sales Total" real,
"Chart Run" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much Peak Position has Sales Total larger than 1,540,088?
### Response:
|
SELECT COUNT("Peak Position") FROM table_78789 WHERE "Sales Total" > '1,540,088'
|
### Instruction:
CREATE TABLE table_20739 (
"Home team" text,
"Home team score" text,
"Away team" text,
"Away team score" text,
"Ground" text,
"Crowd" real,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What did the home team score against Richmond?
### Response:
|
SELECT "Home team score" FROM table_20739 WHERE "Away team" = 'Richmond'
|
### Instruction:
CREATE TABLE table_13782 (
"Rank" real,
"Nation" text,
"Gold" real,
"Silver" real,
"Bronze" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average number of gold medals won among the nations that won more than 1 bronze?
### Response:
|
SELECT AVG("Gold") FROM table_13782 WHERE "Bronze" > '1'
|
### Instruction:
CREATE TABLE table_name_21 (
number_of_electorates__2009_ VARCHAR,
reserved_for___sc___st__none_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Number of electorates (2009) has a Reserved for (SC / ST /None) of total:?
### Response:
|
SELECT number_of_electorates__2009_ FROM table_name_21 WHERE reserved_for___sc___st__none_ = "total:"
|
### Instruction:
CREATE TABLE table_70091 (
"Project" text,
"Year" text,
"Location" text,
"Capacity" real,
"Suites" text,
"Architect" text,
"Cost" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which location has a capacity larger than 52,000?
### Response:
|
SELECT "Location" FROM table_70091 WHERE "Capacity" > '52,000'
|
### Instruction:
CREATE TABLE table_51711 (
"Year" real,
"Entrant" text,
"Chassis" text,
"Engine" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many points for maserati v12 engines in 1968?
### Response:
|
SELECT COUNT("Points") FROM table_51711 WHERE "Engine" = 'maserati v12' AND "Year" = '1968'
|
### Instruction:
CREATE TABLE table_18244 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In the district called Tennessee 6, how many in total of first elected are there?
### Response:
|
SELECT COUNT("First elected") FROM table_18244 WHERE "District" = 'Tennessee 6'
|
### Instruction:
CREATE TABLE table_204_330 (
id number,
"finished" text,
"horse" text,
"jockey" text,
"trainer" text,
"owner" text,
"time / behind" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how long did spokane take to finish the race ?
### Response:
|
SELECT "time / behind" FROM table_204_330 WHERE "horse" = 'spokane'
|
### Instruction:
CREATE TABLE table_36681 (
"Name" text,
"Number" text,
"Namesake" text,
"Albedo feature name" text,
"Area" text,
"Current map" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the current map designation of the feature for which derain crater was the namesake?
### Response:
|
SELECT "Current map" FROM table_36681 WHERE "Namesake" = 'derain crater'
|
### Instruction:
CREATE TABLE table_79981 (
"Date" text,
"Winning Team" text,
"Score" text,
"Winning Pitcher" text,
"Losing Pitcher" text,
"Attendance" real,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which location has a date of may 21?
### Response:
|
SELECT "Location" FROM table_79981 WHERE "Date" = 'may 21'
|
### Instruction:
CREATE TABLE table_41339 (
"Week" real,
"Date" text,
"Time" text,
"Opponent" text,
"Result" text,
"Game site" text,
"NFL Recap" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Record for week 12?
### Response:
|
SELECT "Record" FROM table_41339 WHERE "Week" = '12'
|
### Instruction:
CREATE TABLE table_name_54 (
world_ranking__1_ VARCHAR,
ranking_la__2_ VARCHAR,
year_of_publication VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In 2008, what was the world ranking that ranked 5th in L.A.?
### Response:
|
SELECT world_ranking__1_ FROM table_name_54 WHERE ranking_la__2_ = "5th" AND year_of_publication = "2008"
|
### Instruction:
CREATE TABLE table_18602 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Result" text,
"Candidates" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the contenders In the New York 19 polling area race?
### Response:
|
SELECT "Candidates" FROM table_18602 WHERE "District" = 'New York 19'
|
### Instruction:
CREATE TABLE table_71397 (
"Branding" text,
"Callsign" text,
"Frequency" text,
"Power (kW)" text,
"Station Type" text,
"Location" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Where is the place that has a Callsign of DWRJ-FM?
### Response:
|
SELECT "Location" FROM table_71397 WHERE "Callsign" = 'dwrj-fm'
|
### Instruction:
CREATE TABLE table_name_85 (
goals_against VARCHAR,
drawn VARCHAR,
lost VARCHAR,
goals_for VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many goals scored against the opposing team occurred with more than 7 losses, less than 27 goals scored for the team and drawn more than 1?
### Response:
|
SELECT COUNT(goals_against) FROM table_name_85 WHERE lost > 7 AND goals_for < 27 AND drawn > 1
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.