instruction stringlengths 212 6.3k | output stringlengths 6 2.03k |
|---|---|
### Instruction:
CREATE TABLE table_24012 (
"Stations" text,
"Connections" text,
"City/ Neighborhood" text,
"Parking" text,
"Date Opened" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the stations in Tarzana?
### Response:
| SELECT "Stations" FROM table_24012 WHERE "City/ Neighborhood" = 'Tarzana' |
### Instruction:
CREATE TABLE table_204_838 (
id number,
"year" number,
"award" text,
"category" text,
"nominated work" text,
"result" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what are the total number of awards that this actor has won ?
... | SELECT COUNT("award") FROM table_204_838 WHERE "result" = 'won' |
### Instruction:
CREATE TABLE table_204_398 (
id number,
"title" text,
"year" number,
"publisher" text,
"developer" text,
"platforms" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which publisher had the most projects ?
### Response:
| SELECT "publisher" FROM table_204_398 GROUP BY "publisher" ORDER BY COUNT("title") DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_16769 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When does V Madgwick Cup take place?
### Response:
| SELECT "Date" FROM table_16769 WHERE "Race Name" = 'V Madgwick Cup' |
### 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.
-- what was the score after the season open... | SELECT "score" FROM table_203_746 WHERE id = 1 |
### Instruction:
CREATE TABLE table_58006 (
"Singular abbreviation" text,
"Singular Word" text,
"Plural abbreviation" text,
"Plural Word" text,
"Discipline" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- The plural word of hands uses what singular w... | SELECT "Singular Word" FROM table_58006 WHERE "Plural Word" = 'hands' |
### Instruction:
CREATE TABLE table_62246 (
"Tie no" text,
"Home team" text,
"Score" text,
"Away team" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Score, when Away Team is 'Yeovil Town'?
### Response:
| SELECT "Score" FROM table_62246 WHERE "Away team" = 'yeovil town' |
### Instruction:
CREATE TABLE authorship (
authorder INTEGER
)
CREATE TABLE papers (
title VARCHAR,
paperid VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Retrieve the title of the paper that has the largest number of authors.
### Response:
| SELECT t2.title FROM authorship AS t1 JOIN papers AS t2 ON t1.paperid = t2.paperid WHERE t1.authorder = (SELECT MAX(authorder) FROM authorship) |
### Instruction:
CREATE TABLE table_75890 (
"Heat" real,
"Lane" real,
"Name" text,
"Country" text,
"Mark" text,
"React" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Heat, when Mark is 6.69?
### Response:
| SELECT "Heat" FROM table_75890 WHERE "Mark" = '6.69' |
### Instruction:
CREATE TABLE table_18328569_1 (
new_entries_this_round VARCHAR,
winners_from_previous_round VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many new entries started in the round where winners from the previous round is 32?
### Response:... | SELECT new_entries_this_round FROM table_18328569_1 WHERE winners_from_previous_round = "32" |
### Instruction:
CREATE TABLE table_62096 (
"Name" text,
"Street address" text,
"Years as tallest" text,
"Height ft (m)" text,
"Floors" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the street address of the van antwerp building?
### Resp... | SELECT "Street address" FROM table_62096 WHERE "Name" = 'van antwerp building' |
### Instruction:
CREATE TABLE table_203_805 (
id number,
"year" number,
"player" text,
"position" text,
"high school" text,
"college" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- tony fisher and ryan brewer each played what position ?
### Re... | SELECT "position" FROM table_203_805 WHERE "player" = 'tony fisher' |
### Instruction:
CREATE TABLE table_18780 (
"Series Number" real,
"Season Number" real,
"Episode Title" text,
"Premiere Date" text,
"Production Code" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the series number for season episode 24?
#... | SELECT MIN("Series Number") FROM table_18780 WHERE "Season Number" = '24' |
### Instruction:
CREATE TABLE table_54065 (
"Round" real,
"Pick" text,
"Player" text,
"Position" text,
"School/Club Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which School/Club Team did not make it to round 2?
### Response:
| SELECT "School/Club Team" FROM table_54065 WHERE "Round" < '2' |
### Instruction:
CREATE TABLE table_49049 (
"Source Version" text,
"Target Version" text,
"Last Release" text,
"License" text,
"Website" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Source Version, when License is LGPL or MPL?
### Respon... | SELECT "Source Version" FROM table_49049 WHERE "License" = 'lgpl or mpl' |
### Instruction:
CREATE TABLE table_27168 (
"Position" real,
"Driver / Passenger" text,
"Equipment" text,
"Bike No" real,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When 556 is the amount of points how much equipment is there?
### Res... | SELECT COUNT("Equipment") FROM table_27168 WHERE "Points" = '556' |
### Instruction:
CREATE TABLE table_49132 (
"Event" text,
"Date" text,
"Round" text,
"Name" text,
"Nationality" text,
"Time" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which event was Ye Shiwen in?
### Response:
| SELECT "Event" FROM table_49132 WHERE "Name" = 'ye shiwen' |
### Instruction:
CREATE TABLE table_6142 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the 2nd leg of team 2 Far rabat?
### Response:
| SELECT "2nd leg" FROM table_6142 WHERE "Team 2" = 'far rabat' |
### Instruction:
CREATE TABLE table_203_512 (
id number,
"release date" text,
"album" text,
"catalog number" text,
"chart position" number,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the number of times that pulse had been re... | SELECT COUNT("release date") FROM table_203_512 WHERE "album" = 'pulse' |
### Instruction:
CREATE TABLE table_19851 (
"Category" text,
"Type" text,
"Attribute" text,
"Description" text,
"Bubbles" text,
"Cancelable" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are the attributes when the type is 'DOMNodeRemoved'... | SELECT "Attribute" FROM table_19851 WHERE "Type" = 'DOMNodeRemoved' |
### Instruction:
CREATE TABLE table_name_45 (
host_country___countries VARCHAR,
bronze VARCHAR,
host_city___cities VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the host country when bronze is [[|]] (1) and host city is Krynica?
### Response:
| SELECT host_country___countries FROM table_name_45 WHERE bronze = "[[|]] (1)" AND host_city___cities = "krynica" |
### Instruction:
CREATE TABLE table_46545 (
"Name" text,
"Date" text,
"Defending forces" text,
"Brigade" text,
"Population" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the brigade Tall Al-Shawk shows for the name?
### Response:
| SELECT "Brigade" FROM table_46545 WHERE "Name" = 'tall al-shawk' |
### Instruction:
CREATE TABLE table_27845 (
"Institution" text,
"Location" text,
"Type" text,
"Joined" real,
"Enrollment" real,
"Nickname" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the location of the institution nicknamed Lions?
... | SELECT "Location" FROM table_27845 WHERE "Nickname" = 'Lions' |
### Instruction:
CREATE TABLE table_8429 (
"Name" text,
"Country" text,
"Status" text,
"Moving to" text,
"Transfer window" text,
"Transfer fee" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the status of the player who is moving to Nant... | SELECT "Status" FROM table_8429 WHERE "Moving to" = 'nantes' |
### Instruction:
CREATE TABLE table_63275 (
"Rank" real,
"Heat" real,
"Lane" real,
"Name" text,
"Nationality" text,
"Time" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the total lane for a heat larger than 7?
### Response:
| SELECT COUNT("Lane") FROM table_63275 WHERE "Heat" > '7' |
### Instruction:
CREATE TABLE table_33408 (
"Year" real,
"Chassis" text,
"Engine" text,
"Start" text,
"Finish" text,
"Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the starting position in the year before 1986?
### Response:
| SELECT "Start" FROM table_33408 WHERE "Year" < '1986' |
### Instruction:
CREATE TABLE table_53385 (
"Constructor" text,
"Chassis" text,
"Engine" text,
"Tyre" text,
"Driver" text,
"Rounds" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What Chassis was driven by Otto Stuppacher?
### Response:
| SELECT "Chassis" FROM table_53385 WHERE "Driver" = 'otto stuppacher' |
### Instruction:
CREATE TABLE table_name_74 (
score INTEGER,
player VARCHAR,
to_par VARCHAR,
country VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score when To par was 3, in South Africa, for Richard Sterne?
### Response:
| SELECT AVG(score) FROM table_name_74 WHERE to_par = "−3" AND country = "south africa" AND player = "richard sterne" |
### Instruction:
CREATE TABLE table_7057 (
"Rank" text,
"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 total of silver when gold is less than 0?
### Response:
| SELECT SUM("Silver") FROM table_7057 WHERE "Gold" < '0' |
### Instruction:
CREATE TABLE table_768 (
"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 results have Jere Cooper as incumbent?
### Res... | SELECT "Result" FROM table_768 WHERE "Incumbent" = 'Jere Cooper' |
### Instruction:
CREATE TABLE table_54251 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the Attendance on august 15?
### Response:
| SELECT "Attendance" FROM table_54251 WHERE "Date" = 'august 15' |
### Instruction:
CREATE TABLE table_name_74 (
week VARCHAR,
opponent VARCHAR,
attendance VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Week has an Opponent of washington redskins, and an Attendance larger than 56,077?
### Response:
| SELECT COUNT(week) FROM table_name_74 WHERE opponent = "washington redskins" AND attendance > 56 OFFSET 077 |
### Instruction:
CREATE TABLE table_412 (
"Jurisdiction" text,
"Voted Yes" real,
"Percent Yes" text,
"Voted No" real,
"Percent No" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what is the minimum voted no where percent no is 56.6
### Response:
| SELECT MIN("Voted No") FROM table_412 WHERE "Percent No" = '56.6' |
### Instruction:
CREATE TABLE table_18303 (
"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.
-- Election results of 1976
### Response:
| SELECT "Result" FROM table_18303 WHERE "First elected" = '1976' |
### Instruction:
CREATE TABLE table_60029 (
"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.
-- What is Score, when Away Team is 'Newcastle Benfield'?
### Response:
| SELECT "Score" FROM table_60029 WHERE "Away team" = 'newcastle benfield' |
### Instruction:
CREATE TABLE table_783 (
"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.
-- Name the party or first elected is 1920
### Response:
| SELECT "Party" FROM table_783 WHERE "First elected" = '1920' |
### Instruction:
CREATE TABLE table_30594 (
"Version" text,
"Release" text,
"Release date" text,
"End of maintenance" text,
"Requirement" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the number of the 1.0.12 release version?
### Response:... | SELECT COUNT("Version") FROM table_30594 WHERE "Release" = '1.0.12' |
### Instruction:
CREATE TABLE table_35345 (
"Tie No." real,
"Home team" text,
"Score" text,
"Away team" text,
"Report" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which attendance has 9 as the tie no.?
### Response:
| SELECT "Attendance" FROM table_35345 WHERE "Tie No." = '9' |
### Instruction:
CREATE TABLE table_12639 (
"Rnd." real,
"Pick #" text,
"NFL team" text,
"Pos." text,
"College" text,
"Conf." text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Northern Colorado's Rnd.?
### Response:
| SELECT "Rnd." FROM table_12639 WHERE "College" = 'northern colorado' |
### Instruction:
CREATE TABLE table_18027411_1 (
team___competition VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many times did estudiantes de la plata participate in 2008 suruga bank championship
### Response:
| SELECT COUNT(2008 AS _suruga_bank_championship) FROM table_18027411_1 WHERE team___competition = "Estudiantes de La Plata" |
### Instruction:
CREATE TABLE table_70541 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who got the loss for the game ending in a record of 55-41?
### Response:
| SELECT "Loss" FROM table_70541 WHERE "Record" = '55-41' |
### Instruction:
CREATE TABLE table_42247 (
"Event" text,
"Record" text,
"Nation" text,
"Date" text,
"Venue" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Record has a Date of 23 february 1986?
### Response:
| SELECT "Record" FROM table_42247 WHERE "Date" = '23 february 1986' |
### Instruction:
CREATE TABLE table_41000 (
"Name" text,
"Number" real,
"Position" text,
"Year" text,
"Hometown" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the lowest number of the player with a hometown of Bellwood, IL?
### Response:
| SELECT MIN("Number") FROM table_41000 WHERE "Hometown" = 'bellwood, il' |
### Instruction:
CREATE TABLE table_51052 (
"Date" text,
"City" text,
"Event" text,
"Winner" text,
"Prize" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is Date, when Winner is 'Murilo Figueiredo'?
### Response:
| SELECT "Date" FROM table_51052 WHERE "Winner" = 'murilo figueiredo' |
### Instruction:
CREATE TABLE table_name_85 (
draws INTEGER,
goal_differential VARCHAR,
wins VARCHAR,
losses VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many draws have 1 win, 1 loss, and a Goal Differential of +1?
### Response:
| SELECT SUM(draws) FROM table_name_85 WHERE wins = 1 AND losses = 1 AND goal_differential = "+1" |
### Instruction:
CREATE TABLE table_55538 (
"Driver" text,
"Constructor" text,
"Laps" real,
"Time/Retired" text,
"Grid" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What driver has grid 2 and over 72 laps?
### Response:
| SELECT "Driver" FROM table_55538 WHERE "Laps" > '72' AND "Grid" = '2' |
### Instruction:
CREATE TABLE table_33844 (
"Kanji" text,
"Name (Translation)" text,
"Builder" text,
"Laid down" text,
"Launched" text,
"Completed" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which builder has the the kanji of ?
### Respons... | SELECT "Builder" FROM table_33844 WHERE "Kanji" = '曙' |
### Instruction:
CREATE TABLE table_29612 (
"Game" real,
"October" real,
"Opponent" text,
"Score" text,
"Location/Attendance" text,
"Record" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the score for game 5
### Respon... | SELECT "Score" FROM table_29612 WHERE "Game" = '5' |
### Instruction:
CREATE TABLE table_1137702_3 (
round VARCHAR,
winning_constructor VARCHAR,
pole_position VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which round was the winning constructor was Benetton - Ford and in the Pole Position was Damon Hill?
... | SELECT round FROM table_1137702_3 WHERE winning_constructor = "Benetton - Ford" AND pole_position = "Damon Hill" |
### Instruction:
CREATE TABLE table_204_33 (
id number,
"number" number,
"name" text,
"year built" number,
"boat builder" text,
"current status" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- which year saw the most ships produced ?
### Respon... | SELECT "year built" FROM table_204_33 GROUP BY "year built" ORDER BY COUNT("name") DESC LIMIT 1 |
### Instruction:
CREATE TABLE table_13809 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the score for Lucas Glover of the United States?
### Response:
| SELECT "Score" FROM table_13809 WHERE "Country" = 'united states' AND "Player" = 'lucas glover' |
### Instruction:
CREATE TABLE table_21070 (
"Team #1" text,
"Points" text,
"Team #2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- If team two is San Lorenzo, how many were on team one?
### Response:
| SELECT COUNT("Team #1") FROM table_21070 WHERE "Team #2" = 'San Lorenzo' |
### Instruction:
CREATE TABLE table_50772 (
"Episode" text,
"Air Date" text,
"Timeslot" text,
"18-49" text,
"Viewers" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When did the episode air that had 7.3 viewers?
### Response:
| SELECT "Air Date" FROM table_50772 WHERE "Viewers" = '7.3' |
### Instruction:
CREATE TABLE table_750 (
"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.
-- What district is tom j. murray from?
### Response:
| SELECT "District" FROM table_750 WHERE "Incumbent" = 'Tom J. Murray' |
### Instruction:
CREATE TABLE table_name_26 (
number_of_decimal_digits VARCHAR,
total_bits VARCHAR,
exponent VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the number of decimal digits when the total bits is more than 32 and the exponent is less t... | SELECT number_of_decimal_digits FROM table_name_26 WHERE total_bits > 32 AND exponent < 15 |
### Instruction:
CREATE TABLE table_17175 (
"Name of ground" text,
"Location" text,
"Year" text,
"FC matches" real,
"LA matches" real,
"T20 matches" real,
"Total" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the minimum of t20 matc... | SELECT MIN("T20 matches") FROM table_17175 |
### Instruction:
CREATE TABLE table_6383 (
"Games" real,
"Drawn" real,
"Lost" real,
"Points difference" text,
"Points" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many total drawn has less than 4 lost and 8 points?
### Response:
| SELECT SUM("Drawn") FROM table_6383 WHERE "Lost" < '4' AND "Points" = '8' |
### Instruction:
CREATE TABLE table_24798489_1 (
challenge_winner VARCHAR,
original_airdate VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who was the challenge winner in the episode that originally aired on January 28, 2009?
### Response:
| SELECT challenge_winner FROM table_24798489_1 WHERE original_airdate = "January 28, 2009" |
### Instruction:
CREATE TABLE table_10975034_5 (
player VARCHAR,
position VARCHAR,
cfl_team VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the player who is lb and cfl team is saskatchewan roughriders?
### Response:
| SELECT player FROM table_10975034_5 WHERE position = "LB" AND cfl_team = "Saskatchewan Roughriders" |
### Instruction:
CREATE TABLE table_45990 (
"Team 1" text,
"Agg." text,
"Team 2" text,
"1st leg" text,
"2nd leg" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which 1st leg has a Team 1 of drita?
### Response:
| SELECT "1st leg" FROM table_45990 WHERE "Team 1" = 'drita' |
### Instruction:
CREATE TABLE table_70432 (
"Week" real,
"Opponent" text,
"Result" text,
"Game site" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What week's game had a result of l 35 37?
### Response:
| SELECT "Week" FROM table_70432 WHERE "Result" = 'l 35–37' |
### Instruction:
CREATE TABLE table_48653 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text,
"Money ( $ )" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How much money has a to par of E?
### Response:
| SELECT COUNT("Money ( $ )") FROM table_48653 WHERE "To par" = 'e' |
### Instruction:
CREATE TABLE table_2344 (
"English title" text,
"Russian title" text,
"Published in Russian" text,
"Published in English" text,
"Type of work" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the russian title of the ugly swan... | SELECT "Russian title" FROM table_2344 WHERE "English title" = 'The Ugly Swans' |
### Instruction:
CREATE TABLE table_name_95 (
playing_for VARCHAR,
opponent VARCHAR,
date VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is playing for when the opponent is deportes savio and the date is 2010-03-11?
### Response:
| SELECT playing_for FROM table_name_95 WHERE opponent = "deportes savio" AND date = "2010-03-11" |
### Instruction:
CREATE TABLE table_204_374 (
id number,
"event" text,
"gold" number,
"silver" number,
"bronze" number,
"total" number,
"ranking" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many medals has switzerland won in the gold ... | SELECT SUM("gold") FROM table_204_374 |
### Instruction:
CREATE TABLE table_4724 (
"Rank" real,
"Player" text,
"County" text,
"Tally" text,
"Total" real,
"Opposition" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest ranked player who opposed Westmeath?
### Response... | SELECT MAX("Rank") FROM table_4724 WHERE "Opposition" = 'westmeath' |
### Instruction:
CREATE TABLE table_20487 (
"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.
-- What was the result of week 2?
### Response:... | SELECT "Result" FROM table_20487 WHERE "Week" = '2' |
### Instruction:
CREATE TABLE table_name_65 (
opponents_in_the_final VARCHAR,
date VARCHAR,
tournament VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Who are the Opponents in the final prior to 1998 in the Bucharest, Romania Tournament?
### Response:
| SELECT opponents_in_the_final FROM table_name_65 WHERE date < 1998 AND tournament = "bucharest, romania" |
### Instruction:
CREATE TABLE table_name_70 (
runner_up VARCHAR,
prize VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is 3rd Place, when Runner-Up is 'Simon Ehne', and when Prize is $100,000?
### Response:
| SELECT 3 AS rd_place FROM table_name_70 WHERE runner_up = "simon ehne" AND prize = "$100,000" |
### Instruction:
CREATE TABLE table_1014319_1 (
dixon VARCHAR,
dance_song VARCHAR,
result VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What score did Dixon give to the song 'samba / young hearts run free', which was in second place?
### Response:
| SELECT dixon FROM table_1014319_1 WHERE dance_song = "Samba / Young Hearts Run Free" AND result = "Second place" |
### Instruction:
CREATE TABLE table_36482 (
"Date" text,
"Tournament" text,
"Surface" text,
"Opponent in the final" text,
"Score" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What surface did Smeets play on during the Kuwait tournament?
### Resp... | SELECT "Surface" FROM table_36482 WHERE "Tournament" = 'kuwait' |
### Instruction:
CREATE TABLE table_291 (
"Player" text,
"Position" text,
"School" text,
"Hometown" text,
"MLB Draft" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- How many players have the hometown Pennsauken, NJ?
### Response:
| SELECT COUNT("Player") FROM table_291 WHERE "Hometown" = 'Pennsauken, NJ' |
### Instruction:
CREATE TABLE table_43811 (
"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.
-- WHAT IS THE AWAY TEAM WITH A TIE NUMBER 1?
### Response:
| SELECT "Away team" FROM table_43811 WHERE "Tie no" = '1' |
### Instruction:
CREATE TABLE table_name_74 (
obesity_rank INTEGER,
obese_children_and_adolescents VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What's the rank when the obese children and adolescent count is 14.2%?
### Response:
| SELECT SUM(obesity_rank) FROM table_name_74 WHERE obese_children_and_adolescents = "14.2%" |
### Instruction:
CREATE TABLE table_36982 (
"Round" real,
"Pick #" real,
"Overall" real,
"Name" text,
"Position" text,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest overall of the player from Georgia?
### Respons... | SELECT MAX("Overall") FROM table_36982 WHERE "College" = 'georgia' |
### Instruction:
CREATE TABLE table_5609 (
"Date" text,
"Opponent" text,
"Score" text,
"Loss" text,
"Attendance" real,
"Record" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What was the team's record on july 18?
### Response:
| SELECT "Record" FROM table_5609 WHERE "Date" = 'july 18' |
### Instruction:
CREATE TABLE table_203_2 (
id number,
"name" text,
"mineral" text,
"opened" text,
"closed" text,
"years connected" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many quarries was slate mined at ?
### Res... | SELECT COUNT(*) FROM table_203_2 WHERE "mineral" = 'slate' |
### Instruction:
CREATE TABLE table_5128 (
"Race" text,
"Length" text,
"Class" text,
"Circuit" text,
"Date" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the class of the Charlotte Camel gt 500 race?
### Response:
| SELECT "Class" FROM table_5128 WHERE "Race" = 'charlotte camel gt 500' |
### Instruction:
CREATE TABLE table_51983 (
"Race Name" text,
"Circuit" text,
"Date" text,
"Winning driver" text,
"Constructor" text,
"Report" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which Race Name has Goodwood in the Curcuit?
### Resp... | SELECT "Race Name" FROM table_51983 WHERE "Circuit" = 'goodwood' |
### Instruction:
CREATE TABLE table_29486189_4 (
representative VARCHAR,
first_elected VARCHAR,
residence VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many representatives from hanover twp were first elected in 2008
### Response:
| SELECT COUNT(representative) FROM table_29486189_4 WHERE first_elected = "2008" AND residence = "Hanover Twp" |
### Instruction:
CREATE TABLE table_name_11 (
year INTEGER,
finish VARCHAR,
percentage VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average Year for the Finish of lost 2001 alcs and the Percentage is over 0.716?
### Response:
| SELECT AVG(year) FROM table_name_11 WHERE finish = "lost 2001 alcs" AND percentage > 0.716 |
### Instruction:
CREATE TABLE table_203_823 (
id number,
"model name" text,
"date" text,
"type" text,
"thrust (kg) / power (eshp)" text,
"fitted to" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- what model is listed first in the table ?
### R... | SELECT "model name" FROM table_203_823 WHERE id = 1 |
### Instruction:
CREATE TABLE table_58412 (
"Member" text,
"Party" text,
"Electorate" text,
"State" text,
"Term in office" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What party is the member that has an electorate of Lindsay?
### Response:
| SELECT "Party" FROM table_58412 WHERE "Electorate" = 'lindsay' |
### Instruction:
CREATE TABLE table_62885 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- In what year did Ilju t enko compete in Barcelona, Spain?
### Response:
| SELECT "Year" FROM table_62885 WHERE "Venue" = 'barcelona, spain' |
### Instruction:
CREATE TABLE table_204_596 (
id number,
"year" number,
"winners" text,
"score" text,
"runners up" text,
"notes" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- how many finals did shelfield athletic win ?
### Response:
| SELECT COUNT(*) FROM table_204_596 WHERE "winners" = 'shelfield athletic' |
### Instruction:
CREATE TABLE table_23982 (
"Round" real,
"Choice" real,
"Player name" text,
"Position" text,
"Height" text,
"Weight" real,
"College" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the height if de is the position?
... | SELECT COUNT("Height") FROM table_23982 WHERE "Position" = 'DE' |
### Instruction:
CREATE TABLE table_26808178_3 (
series__number INTEGER,
us_viewers__millions_ VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which series # had 0.645 U.S. viewers(millions)?
### Response:
| SELECT MAX(series__number) FROM table_26808178_3 WHERE us_viewers__millions_ = "0.645" |
### Instruction:
CREATE TABLE table_69502 (
"Year" text,
"Start" text,
"Qual" text,
"Rank" text,
"Finish" text,
"Laps" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the highest number of laps with a 21 start?
### Response:
| SELECT MAX("Laps") FROM table_69502 WHERE "Start" = '21' |
### Instruction:
CREATE TABLE table_203_249 (
id number,
"position" number,
"song title" text,
"artist" text,
"sales" number,
"highest position" number
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who performed the number 1 single of 1995 ?
### R... | SELECT "artist" FROM table_203_249 WHERE "position" = 1 |
### Instruction:
CREATE TABLE table_78048 (
"Stage" text,
"Winner" text,
"General classification" text,
"Points classification" text,
"Trofeo Fast Team" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- who is the trofeo fast team in stage 10?
### Re... | SELECT "Trofeo Fast Team" FROM table_78048 WHERE "Stage" = '10' |
### Instruction:
CREATE TABLE table_32900 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- When was the Browns' game that over 36,796 attended?
### Response:
| SELECT "Date" FROM table_32900 WHERE "Attendance" > '36,796' |
### Instruction:
CREATE TABLE table_22764 (
"Entities" text,
"Country" text,
"Supply point" text,
"Voltage (kV)" real,
"Power (MW)" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What are all the countries where the electric company Ebisa has a pres... | SELECT "Country" FROM table_22764 WHERE "Entities" = 'EBISA' |
### Instruction:
CREATE TABLE table_20084 (
"First District" text,
"Second District" text,
"Third District" text,
"Fourth District" text,
"Fifth District" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Name the fourth district for joan runnels
###... | SELECT "Fourth District" FROM table_20084 WHERE "Second District" = 'Joan Runnels' |
### Instruction:
CREATE TABLE table_37891 (
"Date" text,
"Round" text,
"Opponents" text,
"H / A" text,
"Result F \u2013 A" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which opponent made it to the final round?
### Response:
| SELECT "Opponents" FROM table_37891 WHERE "Round" = 'final' |
### Instruction:
CREATE TABLE table_71647 (
"Year" real,
"English title" text,
"Original title" text,
"Country" text,
"Director(s)" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the average year of the film from France/Hong Kong?
### Resp... | SELECT AVG("Year") FROM table_71647 WHERE "Country" = 'france/hong kong' |
### Instruction:
CREATE TABLE table_10360 (
"Catalogue Number" text,
"Artist" text,
"Tracks" text,
"Type" text,
"Year" real
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- What is the year of the disc with a catalogue number mash02?
### Response:
| SELECT "Year" FROM table_10360 WHERE "Catalogue Number" = 'mash02' |
### Instruction:
CREATE TABLE table_name_44 (
manufacturer VARCHAR,
laps VARCHAR,
time_retired VARCHAR
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- WHAT IS THE MANUFACTURER WITH 24 LAPS, AND +1.965 TIME/RETIRED?
### Response:
| SELECT manufacturer FROM table_name_44 WHERE laps = "24" AND time_retired = "+1.965" |
### Instruction:
CREATE TABLE table_20511 (
"Line" text,
"Terminals" text,
"Status" text,
"Length" text,
"Total number of stations" real,
"Operator" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Which operator runs the Mamariga shuttle line?
... | SELECT "Operator" FROM table_20511 WHERE "Line" = 'Mamariga Shuttle' |
### Instruction:
CREATE TABLE table_70417 (
"Name" text,
"Born" text,
"Age at first step" text,
"Mission" text,
"Lunar EVA dates" text,
"Service" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- David Scott went on which mission?
### Response:
| SELECT "Mission" FROM table_70417 WHERE "Name" = 'david scott' |
### Instruction:
CREATE TABLE table_56741 (
"Player" text,
"Overs" text,
"Runs" text,
"Wkts" text,
"Mdns" text,
"Econ" text
)
-- Using valid SQLite, answer the following questions for the tables provided above.
-- Tell me the overs for mdns of 4
### Response:
| SELECT "Overs" FROM table_56741 WHERE "Mdns" = '4' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.