text
stringlengths 293
1.24k
|
---|
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (number_of_clubs INTEGER, winners VARCHAR, fourth_placed VARCHAR)
### Question:
What is the number of clubs when Dalian Shide won and Sichuan Quanxing won 4th?
### Answer:
SELECT AVG(number_of_clubs) FROM table_name_35 WHERE winners = "dalian shide" AND fourth_placed = "sichuan quanxing" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_62 (score VARCHAR, visitor VARCHAR, home VARCHAR)
### Question:
What was the score when the home team, Toronto, played against New Jersey?
### Answer:
SELECT score FROM table_name_62 WHERE visitor = "new jersey" AND home = "toronto" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25401_15 (proto_italo_western_1 VARCHAR, english VARCHAR)
### Question:
What is every entry for Proto-Italo-Western 1 when door is English?
### Answer:
SELECT proto_italo_western_1 FROM table_25401_15 WHERE english = "door" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2850912_7 (player VARCHAR, college_junior_club_team VARCHAR)
### Question:
What is the name of the player when the college/junior/club team is new westminster bruins (whl)?
### Answer:
SELECT player FROM table_2850912_7 WHERE college_junior_club_team = "New Westminster Bruins (WHL)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20205538_4 (episode__number VARCHAR, series__number VARCHAR)
### Question:
What is the episode number for series 17?
### Answer:
SELECT episode__number FROM table_20205538_4 WHERE series__number = 17 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_68 (venue VARCHAR, crowd INTEGER)
### Question:
Which venue had a crowd larger than 20,000?
### Answer:
SELECT venue FROM table_name_68 WHERE crowd > 20 OFFSET 000 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_77 (score VARCHAR, losing_team VARCHAR, total VARCHAR)
### Question:
Which Score has a Losing Team of sydney roosters, and a Total of 88?
### Answer:
SELECT score FROM table_name_77 WHERE losing_team = "sydney roosters" AND total = 88 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (winner VARCHAR, city VARCHAR)
### Question:
Who is the Winner, when the City is Berlin?
### Answer:
SELECT winner FROM table_name_19 WHERE city = "berlin" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341707_15 (incumbent VARCHAR, first_elected VARCHAR)
### Question:
Which incumbent was first elected in 1964?
### Answer:
SELECT incumbent FROM table_1341707_15 WHERE first_elected = "1964" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_84 (opponents_in_the_final VARCHAR, score VARCHAR)
### Question:
What is Opponents In The Final, when Score is 4-1 5-4 (7) 4-2?
### Answer:
SELECT opponents_in_the_final FROM table_name_84 WHERE score = "4-1 5-4 (7) 4-2" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_33 (attendance INTEGER, date VARCHAR)
### Question:
What was the average attendance on October 30, 1938?
### Answer:
SELECT AVG(attendance) FROM table_name_33 WHERE date = "october 30, 1938" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2668329_11 (party VARCHAR, incumbent VARCHAR)
### Question:
what is Peter Little's party?
### Answer:
SELECT party FROM table_2668329_11 WHERE incumbent = "Peter Little" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_17 (capacity__mw_ VARCHAR, notes VARCHAR)
### Question:
What is the total capacity (MW) of the farm that is noted as being under construction?
### Answer:
SELECT COUNT(capacity__mw_) FROM table_name_17 WHERE notes = "under construction" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_57 (year INTEGER, venue VARCHAR)
### Question:
What year was the venue in Barcelona, Spain?
### Answer:
SELECT MIN(year) FROM table_name_57 WHERE venue = "barcelona, spain" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_57 (case_length VARCHAR, base VARCHAR)
### Question:
Which Case Length has a Base of 14.96 (.589)?
### Answer:
SELECT case_length FROM table_name_57 WHERE base = "14.96 (.589)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_50 (primary_sponsor_s_ VARCHAR, owner_s_ VARCHAR, crew_chief VARCHAR)
### Question:
What primary sponsor has the owner Rick Hendrick and their crew chief is Alan Gustafson?
### Answer:
SELECT primary_sponsor_s_ FROM table_name_50 WHERE owner_s_ = "rick hendrick" AND crew_chief = "alan gustafson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_33 (time VARCHAR, opponent VARCHAR)
### Question:
What was the time of the bout against Dave Menne?
### Answer:
SELECT time FROM table_name_33 WHERE opponent = "dave menne" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_21 (team VARCHAR, driver VARCHAR)
### Question:
Name the team for toshihiro kaneishi
### Answer:
SELECT team FROM table_name_21 WHERE driver = "toshihiro kaneishi" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_44 (opponent VARCHAR, score VARCHAR)
### Question:
Which Opponent has a Score of 92-111?
### Answer:
SELECT opponent FROM table_name_44 WHERE score = "92-111" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR)
### Question:
What was Collingwood's score at the home match against Richmond?
### Answer:
SELECT home_team AS score FROM table_name_47 WHERE away_team = "richmond" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_46 (score VARCHAR, date VARCHAR)
### Question:
Name the score on august 21, 2007
### Answer:
SELECT score FROM table_name_46 WHERE date = "august 21, 2007" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1976898_1 (english_name VARCHAR, chinese_name__simplified___traditional_ VARCHAR)
### Question:
What's the English name of the county called 太湖县 / 太湖縣 in Chinese?
### Answer:
SELECT english_name FROM table_1976898_1 WHERE chinese_name__simplified___traditional_ = "太湖县 / 太湖縣" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (years_in_orlando VARCHAR, player VARCHAR, nationality VARCHAR, position VARCHAR)
### Question:
Which Years in Orlando has a Nationality of united states, a Position of center, and a Player of jawann oldham?
### Answer:
SELECT years_in_orlando FROM table_name_10 WHERE nationality = "united states" AND position = "center" AND player = "jawann oldham" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_5 (grid INTEGER, driver VARCHAR, laps VARCHAR)
### Question:
For Jo Siffert, what was the highest grid with the number of laps above 12?
### Answer:
SELECT MAX(grid) FROM table_name_5 WHERE driver = "jo siffert" AND laps > 12 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_56 (surface VARCHAR, tournament VARCHAR)
### Question:
What kind of surface was the tournament at Pune played on?
### Answer:
SELECT surface FROM table_name_56 WHERE tournament = "pune" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_41 (games VARCHAR, tied VARCHAR, goals_against VARCHAR)
### Question:
How many games had a tied less 15 with goals against being fewer than 186?
### Answer:
SELECT COUNT(games) FROM table_name_41 WHERE tied < 15 AND goals_against < 186 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13050822_2 (time VARCHAR, stage VARCHAR)
### Question:
What is the time for stage ss18?
### Answer:
SELECT time FROM table_13050822_2 WHERE stage = "SS18" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23265433_2 (offensive VARCHAR, overall VARCHAR)
### Question:
Name the total number of offensive for colin doyle
### Answer:
SELECT COUNT(offensive) FROM table_23265433_2 WHERE overall = "Colin Doyle" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1108394_6 (staten_island VARCHAR)
### Question:
Who was the republican candidate in 2013 when Staten Island was 451?
### Answer:
SELECT 2013 AS _republican_primary FROM table_1108394_6 WHERE staten_island = "451" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_74 (dvd_release_date VARCHAR, season VARCHAR, episodes VARCHAR)
### Question:
On what date was the DVD released for the season with fewer than 13 episodes that aired before season 8?
### Answer:
SELECT dvd_release_date FROM table_name_74 WHERE season < 8 AND episodes < 13 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_14 (date VARCHAR, venue VARCHAR, result VARCHAR)
### Question:
What date is for Venue of jjb stadium, and a Result of w?
### Answer:
SELECT date FROM table_name_14 WHERE venue = "jjb stadium" AND result = "w" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1281200_1 (winners_from_previous_round VARCHAR, clubs_involved VARCHAR)
### Question:
Clubs involved is 8, what number would you find from winners from previous round?
### Answer:
SELECT winners_from_previous_round FROM table_1281200_1 WHERE clubs_involved = 8 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1639689_2 (date VARCHAR, week VARCHAR)
### Question:
What day(s) did they play on week 2?
### Answer:
SELECT date FROM table_1639689_2 WHERE week = 2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_66 (home_team VARCHAR, venue VARCHAR)
### Question:
What is the home team's score at corio oval?
### Answer:
SELECT home_team AS score FROM table_name_66 WHERE venue = "corio oval" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_83 (record VARCHAR, leading_scorer VARCHAR)
### Question:
What record has Glenn Robinson (16) as the leading scorer?
### Answer:
SELECT record FROM table_name_83 WHERE leading_scorer = "glenn robinson (16)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_48 (result VARCHAR, week VARCHAR)
### Question:
What was the result of the week 9 game?
### Answer:
SELECT result FROM table_name_48 WHERE week = 9 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_55 (surface VARCHAR, date VARCHAR)
### Question:
Date of january 11, 1998 has what surface?
### Answer:
SELECT surface FROM table_name_55 WHERE date = "january 11, 1998" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_69 (time_retired VARCHAR, constructor VARCHAR, driver VARCHAR)
### Question:
What is the Time/Retired of Carlos Reutemann who was driving a brabham - Alfa Romeo?
### Answer:
SELECT time_retired FROM table_name_69 WHERE constructor = "brabham - alfa romeo" AND driver = "carlos reutemann" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_59 (leading_scorer VARCHAR, visitor VARCHAR)
### Question:
Tell me the leading scorer for grizzlies
### Answer:
SELECT leading_scorer FROM table_name_59 WHERE visitor = "grizzlies" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2618113_1 (directed_by VARCHAR, production_code VARCHAR)
### Question:
Who directed k0122?
### Answer:
SELECT directed_by FROM table_2618113_1 WHERE production_code = "K0122" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26375386_23 (public VARCHAR, vote_percentage VARCHAR)
### Question:
What is the number of public that was there when the vote percentage was 22.9%?
### Answer:
SELECT COUNT(public) FROM table_26375386_23 WHERE vote_percentage = "22.9%" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_58 (opponent VARCHAR, date VARCHAR)
### Question:
what team played on april 9
### Answer:
SELECT opponent FROM table_name_58 WHERE date = "april 9" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_15 (goals_scored VARCHAR, points VARCHAR, draws VARCHAR, loses VARCHAR)
### Question:
What is the total number of goals scored of the club with more than 3 draws, more than 1 loses, and less than 26 points?
### Answer:
SELECT COUNT(goals_scored) FROM table_name_15 WHERE draws > 3 AND loses > 1 AND points < 26 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11220799_2 (finish VARCHAR, first_air_date VARCHAR)
### Question:
What were the results of episodes with the first air date of March 6, 2008?
### Answer:
SELECT finish FROM table_11220799_2 WHERE first_air_date = "March 6, 2008" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_60 (class VARCHAR, identifier VARCHAR)
### Question:
what is the class when the identifier is cjbc-1-fm?
### Answer:
SELECT class FROM table_name_60 WHERE identifier = "cjbc-1-fm" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_87 (year_s__won VARCHAR, player VARCHAR)
### Question:
What year did Tom Watson win?
### Answer:
SELECT year_s__won FROM table_name_87 WHERE player = "tom watson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_67 (pole_position VARCHAR, tyre VARCHAR)
### Question:
What individual(s) had Pole Position for Tyre F?
### Answer:
SELECT pole_position FROM table_name_67 WHERE tyre = "f" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (position INTEGER, against VARCHAR, drawn VARCHAR)
### Question:
Which Position has an Against of 5, and a Drawn larger than 0?
### Answer:
SELECT SUM(position) FROM table_name_35 WHERE against = 5 AND drawn > 0 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_53 (start VARCHAR, team VARCHAR, year VARCHAR)
### Question:
Where did the team of Rahal Letterman in 2006 start?
### Answer:
SELECT COUNT(start) FROM table_name_53 WHERE team = "rahal letterman" AND year = 2006 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_99 (points INTEGER, home VARCHAR)
### Question:
What is the lowest amount of points of the game with toronto as the home team?
### Answer:
SELECT MIN(points) FROM table_name_99 WHERE home = "toronto" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_31 (laps VARCHAR, time VARCHAR)
### Question:
Total number of laps at a time of +56.977?
### Answer:
SELECT COUNT(laps) FROM table_name_31 WHERE time = "+56.977" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_31 (name VARCHAR, circuit VARCHAR)
### Question:
What was the name for the race in the Miramas circuit?
### Answer:
SELECT name FROM table_name_31 WHERE circuit = "miramas" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_6 (player VARCHAR, team VARCHAR, pick VARCHAR, position VARCHAR)
### Question:
Which Player has a Pick smaller than 11, and a Position of rhp, and a Team of new york mets?
### Answer:
SELECT player FROM table_name_6 WHERE pick < 11 AND position = "rhp" AND team = "new york mets" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17309500_1 (gs VARCHAR, points VARCHAR)
### Question:
Name the gs for points being 12.1
### Answer:
SELECT gs FROM table_17309500_1 WHERE points = "12.1" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24481478_1 (kickoff VARCHAR, date VARCHAR)
### Question:
What time did the game start on saturday, april 20?
### Answer:
SELECT kickoff FROM table_24481478_1 WHERE date = "Saturday, April 20" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20404716_1 (director VARCHAR, result VARCHAR, spanish_title VARCHAR)
### Question:
Who was the director of the film that was not nominated and had the Spanish title of play?
### Answer:
SELECT director FROM table_20404716_1 WHERE result = "Not Nominated" AND spanish_title = "Play" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25818630_1 (constituency VARCHAR, result___votes VARCHAR)
### Question:
How many values for constituency for the vote result of 162?
### Answer:
SELECT COUNT(constituency) FROM table_25818630_1 WHERE result___votes = 162 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (date VARCHAR, week VARCHAR, opponent VARCHAR)
### Question:
On what date was the game where is was later than Week 4 of the season and the opponent was the New York Giants?
### Answer:
SELECT date FROM table_name_54 WHERE week > 4 AND opponent = "new york giants" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_2 (frequency_mhz INTEGER, call_sign VARCHAR)
### Question:
What is the Frequency MHz for the station with a call sign of w224bn?
### Answer:
SELECT AVG(frequency_mhz) FROM table_name_2 WHERE call_sign = "w224bn" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (mascot VARCHAR, previous_conference VARCHAR, location VARCHAR)
### Question:
Which Mascot has a Previous conference of independents, and a Location of akron?
### Answer:
SELECT mascot FROM table_name_38 WHERE previous_conference = "independents" AND location = "akron" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14302582_1 (result VARCHAR, record VARCHAR)
### Question:
What was the result when the team was 4-1?
### Answer:
SELECT result FROM table_14302582_1 WHERE record = "4-1" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_88 (result VARCHAR, round VARCHAR)
### Question:
Which Result has a Round of 6?
### Answer:
SELECT result FROM table_name_88 WHERE round = "6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (score VARCHAR, home VARCHAR, date VARCHAR)
### Question:
What is the Score of the Chicago Black Hawks Home game on March 28?
### Answer:
SELECT score FROM table_name_38 WHERE home = "chicago black hawks" AND date = "march 28" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Customers_cards (card_type_code VARCHAR, customer_id VARCHAR)
### Question:
Show all card type codes and the number of customers holding cards in each type.
### Answer:
SELECT card_type_code, COUNT(DISTINCT customer_id) FROM Customers_cards GROUP BY card_type_code |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE stadium (Id VARCHAR)
### Question:
How many stadiums are there?
### Answer:
SELECT COUNT(*) FROM stadium |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (college_junior_team VARCHAR, pick VARCHAR, player VARCHAR)
### Question:
What is the college/junior team of player tyler myers, who has a pick less than 44?
### Answer:
SELECT college_junior_team FROM table_name_35 WHERE pick < 44 AND player = "tyler myers" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2562572_33 (largest_ethnic_group__2002_ VARCHAR, settlement VARCHAR)
### Question:
What is the largest ethnic group in doline?
### Answer:
SELECT largest_ethnic_group__2002_ FROM table_2562572_33 WHERE settlement = "Doline" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_255188_1 (founded INTEGER, joined VARCHAR)
### Question:
When was the University founded that joined in 1978?
### Answer:
SELECT MAX(founded) FROM table_255188_1 WHERE joined = 1978 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_30 (nationality VARCHAR, position VARCHAR)
### Question:
Which Nationality of the person has a Position on left wing?
### Answer:
SELECT nationality FROM table_name_30 WHERE position = "left wing" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18600760_19 (geo_id VARCHAR, latitude VARCHAR)
### Question:
how many geo id with 48.578664 are
### Answer:
SELECT COUNT(geo_id) FROM table_18600760_19 WHERE latitude = "48.578664" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (set_1 VARCHAR, set_3 VARCHAR)
### Question:
What is the score for set 1 when the score for set 3 is 22–25?
### Answer:
SELECT set_1 FROM table_name_10 WHERE set_3 = "22–25" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_5 (games INTEGER, debut_year VARCHAR, years_at_club VARCHAR, goals VARCHAR)
### Question:
Which Games have Years at club of 1977, and Goals of 17, and a Debut year smaller than 1977?
### Answer:
SELECT AVG(games) FROM table_name_5 WHERE years_at_club = "1977" AND goals = 17 AND debut_year < 1977 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341453_7 (party VARCHAR, first_elected VARCHAR)
### Question:
What party was first elected in 1974?
### Answer:
SELECT party FROM table_1341453_7 WHERE first_elected = 1974 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_53 (golden_point_s__scorer VARCHAR, away VARCHAR, home VARCHAR)
### Question:
What Golden point(s) scorer has the Away Sydney Roosters and Home Cronulla Sharks?
### Answer:
SELECT golden_point_s__scorer FROM table_name_53 WHERE away = "sydney roosters" AND home = "cronulla sharks" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_41 (talent__female_ VARCHAR, year VARCHAR)
### Question:
Who is the female talent in 1999?
### Answer:
SELECT talent__female_ FROM table_name_41 WHERE year = 1999 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_84 (score VARCHAR, opponent VARCHAR, record VARCHAR)
### Question:
Which Score has an Opponent of @ la lakers, and a Record of 8-6?
### Answer:
SELECT score FROM table_name_84 WHERE opponent = "@ la lakers" AND record = "8-6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_55 (incumbent VARCHAR, winner VARCHAR)
### Question:
Who was the incumbent when Arthur Osborne won the election?
### Answer:
SELECT incumbent FROM table_name_55 WHERE winner = "arthur osborne" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14242137_4 (oberliga_hessen VARCHAR, oberliga_baden_württemberg VARCHAR, oberliga_südwest VARCHAR)
### Question:
Name the oberliga hessen for sv sandhausen and fsv salmrohr
### Answer:
SELECT oberliga_hessen FROM table_14242137_4 WHERE oberliga_baden_württemberg = "SV Sandhausen" AND oberliga_südwest = "FSV Salmrohr" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_99 (region_4_release VARCHAR, region_2_release VARCHAR)
### Question:
What is the region 4 release that has july 20, 2009 as the region 2?
### Answer:
SELECT region_4_release FROM table_name_99 WHERE region_2_release = "july 20, 2009" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18812411_3 (r1 VARCHAR, country VARCHAR)
### Question:
How many times did Fiji win r1?
### Answer:
SELECT COUNT(r1) FROM table_18812411_3 WHERE country = "Fiji" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (country VARCHAR, class VARCHAR)
### Question:
What is Country, when Class is "club"?
### Answer:
SELECT country FROM table_name_51 WHERE class = "club" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_20 (to_par VARCHAR, score VARCHAR)
### Question:
What is the To par when the score was 72-67-68-71=278?
### Answer:
SELECT to_par FROM table_name_20 WHERE score = 72 - 67 - 68 - 71 = 278 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (Id VARCHAR)
### Question:
What is the 2011 value with nms in 2008?
### Answer:
SELECT 2011 FROM table_name_54 WHERE 2008 = "nms" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11058032_1 (title VARCHAR, directed_by VARCHAR)
### Question:
What is the title of the episode directed by Mark Tinker?
### Answer:
SELECT title FROM table_11058032_1 WHERE directed_by = "Mark Tinker" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_71 (deleted VARCHAR, county VARCHAR)
### Question:
What is the deleted for tolland?
### Answer:
SELECT deleted FROM table_name_71 WHERE county = "tolland" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_31 (date VARCHAR, opponents VARCHAR, h___a VARCHAR)
### Question:
When is The Opponents of lincoln city and a H / A of a?
### Answer:
SELECT date FROM table_name_31 WHERE opponents = "lincoln city" AND h___a = "a" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_1 (nominating_festival VARCHAR, director_s_ VARCHAR)
### Question:
Name the nominating festival for director of 2004
### Answer:
SELECT nominating_festival FROM table_name_1 WHERE director_s_ = "2004" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_43 (wins VARCHAR, series VARCHAR, podiums VARCHAR)
### Question:
How many wins where there total for Series named formula 3 euro series as well as having more than 2 Podiums?
### Answer:
SELECT COUNT(wins) FROM table_name_43 WHERE series = "formula 3 euro series" AND podiums > 2 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14954150_1 (record VARCHAR, date VARCHAR)
### Question:
What was the record on September 22, 1974?
### Answer:
SELECT record FROM table_14954150_1 WHERE date = "September 22, 1974" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_95 (loans_received VARCHAR, _2q VARCHAR, total_receipts VARCHAR)
### Question:
Name the loans received for 2Q having total receipts of $25,328,694
### Answer:
SELECT loans_received, _2q FROM table_name_95 WHERE total_receipts = "$25,328,694" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_38 (bonus_points VARCHAR, club VARCHAR)
### Question:
What number of bonus points did Stade Français?
### Answer:
SELECT bonus_points FROM table_name_38 WHERE club = "stade français" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_66 (ship VARCHAR, class___type VARCHAR, location VARCHAR)
### Question:
What is the Cargo Ship located at Birkenhead?
### Answer:
SELECT ship FROM table_name_66 WHERE class___type = "cargo ship" AND location = "birkenhead" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_49 (opened VARCHAR, stadium VARCHAR, capacity VARCHAR)
### Question:
What total number of opened has a stadium of stade de la mosson and is larger than 32,939 capacity?
### Answer:
SELECT COUNT(opened) FROM table_name_49 WHERE stadium = "stade de la mosson" AND capacity > 32 OFFSET 939 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_76 (against VARCHAR, date VARCHAR)
### Question:
What is the against for 17/02/1979?
### Answer:
SELECT against FROM table_name_76 WHERE date = "17/02/1979" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_68 (losses INTEGER, byes VARCHAR, draws VARCHAR, wins VARCHAR)
### Question:
What is the lowest losses for a team that has 0 draws, fewer than 4 wins, and no Byes?
### Answer:
SELECT MIN(losses) FROM table_name_68 WHERE draws = 0 AND wins < 4 AND byes < 0 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_16 (score VARCHAR, opponent VARCHAR, date VARCHAR)
### Question:
What Score has an Opponent of @ Blue Jays with a Date of June 7?
### Answer:
SELECT score FROM table_name_16 WHERE opponent = "@ blue jays" AND date = "june 7" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (game VARCHAR, points VARCHAR, october VARCHAR)
### Question:
How many games have Points smaller than 4, and an October smaller than 5?
### Answer:
SELECT COUNT(game) FROM table_name_51 WHERE points < 4 AND october < 5 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_50 (employees INTEGER, company VARCHAR, rank VARCHAR)
### Question:
How many employees at nokia, ranked under 3?
### Answer:
SELECT MAX(employees) FROM table_name_50 WHERE company = "nokia" AND rank < 3 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_86 (notes VARCHAR, time VARCHAR)
### Question:
what is the notes for the athlete with the time of 7:38.87?
### Answer:
SELECT notes FROM table_name_86 WHERE time = "7:38.87" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_34 (opponent VARCHAR, round VARCHAR)
### Question:
What opponent has final as the round?
### Answer:
SELECT opponent FROM table_name_34 WHERE round = "final" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.