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_2409041_5 (production_code INTEGER, no_in_series VARCHAR)
### Question:
What is the production code for episode number 86 in the series?
### Answer:
SELECT MIN(production_code) FROM table_2409041_5 WHERE no_in_series = 86 |
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 (bronze VARCHAR, silver VARCHAR, total VARCHAR)
### Question:
How many bronze medals are there when there are fewer than 3 silver medals and 7 medals total?
### Answer:
SELECT bronze FROM table_name_69 WHERE silver < 3 AND total = 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_76 (date VARCHAR, location VARCHAR)
### Question:
What's the date when the location is Berlin?
### Answer:
SELECT date FROM table_name_76 WHERE location = "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_name_86 (hits VARCHAR, year INTEGER)
### Question:
Name the hits for years before 1883
### Answer:
SELECT hits FROM table_name_86 WHERE year < 1883 |
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 (korean_dialect VARCHAR, capital VARCHAR)
### Question:
What is the Korean dialect in the daegu capital?
### Answer:
SELECT korean_dialect FROM table_name_71 WHERE capital = "daegu" |
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_90 (written_by VARCHAR, original_airdate VARCHAR)
### Question:
Who wrote the program that originally aired on June 6, 1999?
### Answer:
SELECT written_by FROM table_name_90 WHERE original_airdate = "june 6, 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_64 (entrant VARCHAR, points VARCHAR, year VARCHAR, engine VARCHAR)
### Question:
After 1961, who as the Entrant when the engine was a Ferrari v8, and when the points were lower than 23?
### Answer:
SELECT entrant FROM table_name_64 WHERE year > 1961 AND engine = "ferrari v8" AND points < 23 |
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_27 (driver VARCHAR, grid INTEGER)
### Question:
What driver has a grid greater than 19?
### Answer:
SELECT driver FROM table_name_27 WHERE grid > 19 |
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 Teachers (address_id VARCHAR, first_name VARCHAR); CREATE TABLE Addresses (zip_postcode VARCHAR, address_id VARCHAR)
### Question:
What is the zip code of the address where the teacher with first name "Lyla" lives?
### Answer:
SELECT T1.zip_postcode FROM Addresses AS T1 JOIN Teachers AS T2 ON T1.address_id = T2.address_id WHERE T2.first_name = "Lyla" |
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 (label VARCHAR, year VARCHAR, formats VARCHAR, format VARCHAR)
### Question:
Tell me the label for formats of cd and album and year of 2008
### Answer:
SELECT label FROM table_name_48 WHERE formats = "cd" AND format = "album" AND year = 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_37 (bronze INTEGER, total VARCHAR, silver VARCHAR)
### Question:
How many bronzes were held by those with a total of 4 and less than 3 silvers.
### Answer:
SELECT SUM(bronze) FROM table_name_37 WHERE total = 4 AND silver < 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_1341472_20 (district VARCHAR, incumbent VARCHAR)
### Question:
How many districts was Robert Livingston incumbent in?
### Answer:
SELECT COUNT(district) FROM table_1341472_20 WHERE incumbent = "Robert Livingston" |
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_18 (round VARCHAR, record VARCHAR)
### Question:
Which round has the record of 5-0?
### Answer:
SELECT round FROM table_name_18 WHERE record = "5-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_80 (total INTEGER, country VARCHAR, silver VARCHAR)
### Question:
What is the lowest total medals for the united states who had more than 11 silver medals?
### Answer:
SELECT MIN(total) FROM table_name_80 WHERE country = "united states" AND silver > 11 |
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 (total VARCHAR, to_par VARCHAR)
### Question:
What is the total number of Total, when To Par is 12?
### Answer:
SELECT COUNT(total) FROM table_name_71 WHERE to_par = 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_61 (home_team VARCHAR, away_team VARCHAR)
### Question:
In the match where north melbourne was the away team, how much did the home team score?
### Answer:
SELECT home_team AS score FROM table_name_61 WHERE away_team = "north melbourne" |
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 (opponent VARCHAR, week VARCHAR)
### Question:
Who was the opponent in week 12?
### Answer:
SELECT opponent FROM table_name_69 WHERE week = 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_46 (country VARCHAR, year VARCHAR)
### Question:
What country got accolades in 2002?
### Answer:
SELECT country FROM table_name_46 WHERE year = 2002 |
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_8 (goals VARCHAR, club_apps VARCHAR, nationality VARCHAR, position VARCHAR)
### Question:
How many goals did the player from England who played the position of mf and had 170 club apps had?
### Answer:
SELECT goals FROM table_name_8 WHERE nationality = "england" AND position = "mf" AND club_apps = "170" |
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 Street_Markets (Market_Details VARCHAR, Market_ID VARCHAR); CREATE TABLE TOURIST_ATTRACTIONS (Tourist_Attraction_ID VARCHAR, How_to_Get_There VARCHAR)
### Question:
What are the details of the markets that can be accessed by walk or bus?
### Answer:
SELECT T1.Market_Details FROM Street_Markets AS T1 JOIN TOURIST_ATTRACTIONS AS T2 ON T1.Market_ID = T2.Tourist_Attraction_ID WHERE T2.How_to_Get_There = "walk" OR T2.How_to_Get_There = "bus" |
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 (pick INTEGER, player VARCHAR, round VARCHAR)
### Question:
Zack Jordan has the lowest pick and a round of less than 28?
### Answer:
SELECT MIN(pick) FROM table_name_69 WHERE player = "zack jordan" AND round < 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 dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR)
### Question:
Find the name of dorms which have TV Lounge but no Study Room as amenity.
### Answer:
SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'Study Room' |
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_22353769_3 (share VARCHAR, viewers__millions_ VARCHAR)
### Question:
How many episodes had 3.62 million viewers?
### Answer:
SELECT COUNT(share) FROM table_22353769_3 WHERE viewers__millions_ = "3.62" |
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_18618707_1 (contestant VARCHAR, height VARCHAR, geographical_regions VARCHAR)
### Question:
When el cibao is the geographical region and the height is 1.80 who is the contestant?
### Answer:
SELECT contestant FROM table_18618707_1 WHERE height = "1.80" AND geographical_regions = "El Cibao" |
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 Ref_document_types (document_type_description VARCHAR, document_type_name VARCHAR)
### Question:
What is the document type description for document type named Film?
### Answer:
SELECT document_type_description FROM Ref_document_types WHERE document_type_name = "Film" |
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_64 (tournament VARCHAR, surface VARCHAR, opponent VARCHAR)
### Question:
What is the tournament with a hard surface and Ruben de Kleijn as the opponent?
### Answer:
SELECT tournament FROM table_name_64 WHERE surface = "hard" AND opponent = "ruben de kleijn" |
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_73 (away_team VARCHAR, score VARCHAR)
### Question:
What was the away team that scored 63-69?
### Answer:
SELECT away_team FROM table_name_73 WHERE score = "63-69" |
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 (week INTEGER, opponent VARCHAR, attendance VARCHAR)
### Question:
What is the highest week for the San Diego Chargers with an attendance that is less than 53,455?
### Answer:
SELECT MAX(week) FROM table_name_53 WHERE opponent = "san diego chargers" AND attendance < 53 OFFSET 455 |
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 (result VARCHAR, score VARCHAR, venue VARCHAR, date VARCHAR)
### Question:
What was the result at dakar , senegal, on 3 september 2011, and with a Score of 2β0?
### Answer:
SELECT result FROM table_name_17 WHERE venue = "dakar , senegal" AND date = "3 september 2011" AND score = "2β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_14009909_1 (counties_represented VARCHAR, first_elected VARCHAR)
### Question:
Which country has a delegate who was first elected in 2006?
### Answer:
SELECT counties_represented FROM table_14009909_1 WHERE first_elected = 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_8 (date VARCHAR, score VARCHAR)
### Question:
What is Date, when Score is "80-79"?
### Answer:
SELECT date FROM table_name_8 WHERE score = "80-79" |
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_2508633_11 (college VARCHAR, nfl_team VARCHAR, position VARCHAR)
### Question:
In which colleges is the NFL Team New York Giants and with the position defensive back?
### Answer:
SELECT college FROM table_2508633_11 WHERE nfl_team = "New York Giants" AND position = "Defensive back" |
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 (draws INTEGER, losses VARCHAR, against VARCHAR, wins VARCHAR)
### Question:
Which Draws has an Against larger than 1158, and a Wins of 9, and a Losses smaller than 9?
### Answer:
SELECT SUM(draws) FROM table_name_74 WHERE against > 1158 AND wins = 9 AND losses < 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_8 (outcome VARCHAR, tournament VARCHAR, partner VARCHAR)
### Question:
What is the Outcome of the Los Angeles Tournament when the Partner is Julie Halard?
### Answer:
SELECT outcome FROM table_name_8 WHERE tournament = "los angeles" AND partner = "julie halard" |
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 (lane INTEGER, mark VARCHAR)
### Question:
What is the lowest Lane, when Mark is 7.66?
### Answer:
SELECT MIN(lane) FROM table_name_21 WHERE mark = "7.66" |
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_72 (assists INTEGER, games INTEGER)
### Question:
Which player has the fewest assists and played 2 games or fewer?
### Answer:
SELECT MIN(assists) FROM table_name_72 WHERE games < 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 browser (id VARCHAR, name VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR); CREATE TABLE accelerator_compatible_browser (accelerator_id VARCHAR, browser_id VARCHAR); CREATE TABLE web_client_accelerator (name VARCHAR, operating_system VARCHAR, id VARCHAR)
### Question:
Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'.
### Answer:
SELECT name, operating_system FROM web_client_accelerator EXCEPT SELECT T1.name, T1.operating_system FROM web_client_accelerator AS T1 JOIN accelerator_compatible_browser AS T2 ON T2.accelerator_id = T1.id JOIN browser AS T3 ON T2.browser_id = T3.id WHERE T3.name = 'Opera' |
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_4 (score VARCHAR, country VARCHAR, player VARCHAR)
### Question:
what is the score when the country is united states and the player is george fazio?
### Answer:
SELECT score FROM table_name_4 WHERE country = "united states" AND player = "george fazio" |
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 (to_par INTEGER, score VARCHAR)
### Question:
What is the average to par for a score of 78-67-73=218?
### Answer:
SELECT AVG(to_par) FROM table_name_2 WHERE score = 78 - 67 - 73 = 218 |
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 (attendance VARCHAR, score VARCHAR)
### Question:
How many people attended the game that ended 4-6?
### Answer:
SELECT COUNT(attendance) FROM table_name_15 WHERE score = "4-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_39 (airport VARCHAR, city VARCHAR)
### Question:
Which airport has perth as the city?
### Answer:
SELECT airport FROM table_name_39 WHERE city = "perth" |
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_40 (date VARCHAR, circuit VARCHAR, round VARCHAR)
### Question:
What was the date for the Sepang International circuit, round 3?
### Answer:
SELECT date FROM table_name_40 WHERE circuit = "sepang international circuit" AND round = "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_56 (captain VARCHAR, team VARCHAR)
### Question:
Who was the team captain for Crystal Palace?
### Answer:
SELECT captain FROM table_name_56 WHERE team = "crystal palace" |
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_89 (score VARCHAR, home_team VARCHAR)
### Question:
What was the score when York City was home?
### Answer:
SELECT score FROM table_name_89 WHERE home_team = "york city" |
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 (psip_short_name VARCHAR, station VARCHAR, channel VARCHAR)
### Question:
What is the short name of channel 5.5, KSTC-TV?
### Answer:
SELECT psip_short_name FROM table_name_95 WHERE station = "kstc-tv" AND channel = 5.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_10240125_1 (total_goals INTEGER)
### Question:
What is the highest value of Total Goals?
### Answer:
SELECT MAX(total_goals) FROM table_10240125_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_1507852_1 (category VARCHAR, attribute VARCHAR)
### Question:
How many categories are there when the attribute is "onreset"?
### Answer:
SELECT COUNT(category) FROM table_1507852_1 WHERE attribute = "onreset" |
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_92 (military_deaths VARCHAR, total_casualties VARCHAR)
### Question:
How many military deaths were there when there were 1,615 total casualties?
### Answer:
SELECT military_deaths FROM table_name_92 WHERE total_casualties = "1,615" |
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 (gold VARCHAR, bronze INTEGER)
### Question:
What is the total number of Gold medals for the Nation with more than 3 Bronze?
### Answer:
SELECT COUNT(gold) FROM table_name_15 WHERE bronze > 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_61 (tie_no VARCHAR, away_team VARCHAR)
### Question:
What is the Tie number for the match that had away team of Scunthorpe & Lindsey United?
### Answer:
SELECT tie_no FROM table_name_61 WHERE away_team = "scunthorpe & lindsey united" |
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_13012165_1 (washington VARCHAR, _dc VARCHAR, new_york VARCHAR)
### Question:
What teams played in Washington, DC the year that Ramapo LL Ramapo was the game in New York?
### Answer:
SELECT washington, _dc FROM table_13012165_1 WHERE new_york = "Ramapo LL Ramapo" |
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_37 (pick INTEGER, round VARCHAR, name VARCHAR)
### Question:
What is the highest pick of scott turner, who has a round greater than 2?
### Answer:
SELECT MAX(pick) FROM table_name_37 WHERE round > 2 AND name = "scott turner" |
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_28005100_1 (no VARCHAR, lyricist VARCHAR)
### Question:
Which number was the lyricist ahmed metwally?
### Answer:
SELECT no FROM table_28005100_1 WHERE lyricist = "Ahmed Metwally" |
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_19210115_1 (location VARCHAR, conference VARCHAR)
### Question:
Where is the University that plays in the American Athletic Conference?
### Answer:
SELECT location FROM table_19210115_1 WHERE conference = "American Athletic conference" |
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 (fin_time VARCHAR, finish VARCHAR, track VARCHAR)
### Question:
What is the finishing time with a 2/1q finish on the Meadowlands track?
### Answer:
SELECT fin_time FROM table_name_10 WHERE finish = "2/1q" AND track = "the meadowlands" |
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_92 (date VARCHAR, opponent VARCHAR)
### Question:
what day was the game in argentina
### Answer:
SELECT date FROM table_name_92 WHERE opponent = "argentina" |
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_42 (try_diff VARCHAR, points_against VARCHAR)
### Question:
What is Try Diff, when Points Against is 213?
### Answer:
SELECT try_diff FROM table_name_42 WHERE points_against = "213" |
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 (location VARCHAR, date VARCHAR, winner VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
### Question:
What is Location, when Fastest Lap is Ben Spies, when Pole Position is Ben Spies, when Winner is Ben Spies, and when Date is Tooele, Utah?
### Answer:
SELECT location FROM table_name_77 WHERE fastest_lap = "ben spies" AND pole_position = "ben spies" AND winner = "ben spies" AND date = "tooele, utah" |
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_22050544_1 (winner VARCHAR, elapsed_time VARCHAR)
### Question:
Who is the winner with an elapsed time of 12 h 42 min?
### Answer:
SELECT winner FROM table_22050544_1 WHERE elapsed_time = "12 h 42 min" |
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_85 (loss VARCHAR, date VARCHAR)
### Question:
On May 29 which team had the loss?
### Answer:
SELECT loss FROM table_name_85 WHERE date = "may 29" |
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_10979230_5 (japanese_title VARCHAR, reference VARCHAR)
### Question:
what are the title in japanese where the reference is kids-430?
### Answer:
SELECT japanese_title FROM table_10979230_5 WHERE reference = "KIDS-430" |
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 (total_finals INTEGER, runners_up VARCHAR, winners VARCHAR)
### Question:
What is the highest total number of finals a club with more than 2 runners-up and fewer than 1 winner went to?
### Answer:
SELECT MAX(total_finals) FROM table_name_56 WHERE runners_up > 2 AND winners < 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_78 (name VARCHAR, position VARCHAR, lost VARCHAR)
### Question:
Which name was in a position less than 4 with 2 losses?
### Answer:
SELECT name FROM table_name_78 WHERE position < 4 AND lost = 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_80 (week INTEGER, date VARCHAR, attendance VARCHAR)
### Question:
what is the highest week when the date is october 6, 1975 and attendance is higher than 79,384?
### Answer:
SELECT MAX(week) FROM table_name_80 WHERE date = "october 6, 1975" AND attendance > 79 OFFSET 384 |
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_80 (other VARCHAR, atheism VARCHAR)
### Question:
What is the value of other religions associated with atheism at 1.86%?
### Answer:
SELECT other FROM table_name_80 WHERE atheism = "1.86%" |
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_23 (domestic_freight INTEGER, change VARCHAR, total_freight_and_mail VARCHAR)
### Question:
What is the most domestic freight with a change of +9,8% and a total freight and mail of more than 3,278?
### Answer:
SELECT MAX(domestic_freight) FROM table_name_23 WHERE change = "+9,8%" AND total_freight_and_mail > 3 OFFSET 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_79 (block INTEGER, director VARCHAR)
### Question:
What is the lowest block for director Graeme Harper?
### Answer:
SELECT MIN(block) FROM table_name_79 WHERE director = "graeme harper" |
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_91 (points INTEGER, opponent VARCHAR)
### Question:
Which Points have an Opponent of vancouver canucks?
### Answer:
SELECT AVG(points) FROM table_name_91 WHERE opponent = "vancouver canucks" |
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 injury_accident (game_id VARCHAR, player VARCHAR); CREATE TABLE game (season VARCHAR, id VARCHAR)
### Question:
What is the season of the game which causes the player 'Walter Samuel' to get injured?
### Answer:
SELECT T1.season FROM game AS T1 JOIN injury_accident AS T2 ON T1.id = T2.game_id WHERE T2.player = 'Walter Samuel' |
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_25505246_7 (round VARCHAR, against VARCHAR)
### Question:
What kind of round was played when Hanne Skak Jensen faced Austria?
### Answer:
SELECT round FROM table_25505246_7 WHERE against = "Austria" |
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 (total_apps VARCHAR, league_cup_apps VARCHAR, position VARCHAR)
### Question:
What is the Total Apps when League Cup Apps is 0 (1), and position is df?
### Answer:
SELECT total_apps FROM table_name_55 WHERE league_cup_apps = "0 (1)" AND position = "df" |
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_94 (purse VARCHAR, distance VARCHAR, year VARCHAR)
### Question:
What is the purse in 2003, which had a 1-1/16 distance?
### Answer:
SELECT purse FROM table_name_94 WHERE distance = "1-1/16" AND year = 2003 |
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 game (id VARCHAR, score VARCHAR, date VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR)
### Question:
What are the ids, scores, and dates of the games which caused at least two injury accidents?
### Answer:
SELECT T1.id, T1.score, T1.date FROM game AS T1 JOIN injury_accident AS T2 ON T2.game_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 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_88 (total INTEGER, play_offs VARCHAR, league VARCHAR, player VARCHAR)
### Question:
What mean total had a league number of 18, Richard Logan as a player, and a play-offs number smaller than 1?
### Answer:
SELECT AVG(total) FROM table_name_88 WHERE league = 18 AND player = "richard logan" AND play_offs < 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_20 (home_team VARCHAR, venue VARCHAR)
### Question:
Who was the home team for the game played at Corio Oval?
### Answer:
SELECT home_team FROM table_name_20 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_11058032_1 (no_in_series VARCHAR, us_viewers__millions_ VARCHAR)
### Question:
How many episodes had 16.03 million viewers?
### Answer:
SELECT COUNT(no_in_series) FROM table_11058032_1 WHERE us_viewers__millions_ = "16.03" |
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 (co_drivers VARCHAR, year VARCHAR, team VARCHAR)
### Question:
Which co-driver was part of team Martini Lancia earlier than 1986?
### Answer:
SELECT co_drivers FROM table_name_14 WHERE year < 1986 AND team = "martini lancia" |
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_13619135_5 (record VARCHAR, score VARCHAR)
### Question:
What was the record when the score was w 108β93 (ot)?
### Answer:
SELECT record FROM table_13619135_5 WHERE score = "W 108β93 (OT)" |
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_19744915_15 (couple VARCHAR, total VARCHAR)
### Question:
What couple had a total score of 6?
### Answer:
SELECT couple FROM table_19744915_15 WHERE total = 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_93 (country VARCHAR, player VARCHAR)
### Question:
What country is Bob Tway from?
### Answer:
SELECT country FROM table_name_93 WHERE player = "bob tway" |
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 (game_site VARCHAR, result VARCHAR)
### Question:
What game site has w 10-3 as the result?
### Answer:
SELECT game_site FROM table_name_50 WHERE result = "w 10-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_33 (player VARCHAR, position VARCHAR, year VARCHAR)
### Question:
What player has a no pick position in 1976?
### Answer:
SELECT player FROM table_name_33 WHERE position = "no pick" AND year = 1976 |
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_2668352_5 (first_elected VARCHAR, district VARCHAR)
### Question:
Who is first elected when Kentucky 6 is the district?
### Answer:
SELECT first_elected FROM table_2668352_5 WHERE district = "Kentucky 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_17121262_9 (location_attendance VARCHAR, game VARCHAR)
### Question:
What was the location and attendance for game 60?
### Answer:
SELECT location_attendance FROM table_17121262_9 WHERE game = 60 |
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_1341522_24 (party VARCHAR, district VARCHAR)
### Question:
What parties are represented in Massachusetts4 district?
### Answer:
SELECT party FROM table_1341522_24 WHERE district = "Massachusetts4" |
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 (high_assists VARCHAR, date VARCHAR)
### Question:
Who had the highest assists of the game on March 5?
### Answer:
SELECT high_assists FROM table_name_50 WHERE date = "march 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 Employees (employee_ID VARCHAR, employee_name VARCHAR)
### Question:
What is the id for the employee called Ebba?
### Answer:
SELECT employee_ID FROM Employees WHERE employee_name = "Ebba" |
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_18 (draw INTEGER, performer VARCHAR, televotes VARCHAR)
### Question:
Name the lowest Draw which has a Performer of kaliopi and a Televotes larger than 3834?
### Answer:
SELECT MIN(draw) FROM table_name_18 WHERE performer = "kaliopi" AND televotes > 3834 |
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 (position VARCHAR, round VARCHAR, name VARCHAR)
### Question:
What is the Position with a round 3 pick for r. jay soward?
### Answer:
SELECT position FROM table_name_20 WHERE round < 3 AND name = "r. jay soward" |
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 (internet_explorer VARCHAR, firefox VARCHAR)
### Question:
What percentage of users were using Internet Explorer according to the source that reported 20.01% used Firefox?
### Answer:
SELECT internet_explorer FROM table_name_53 WHERE firefox = "20.01%" |
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_3 (career_win_loss VARCHAR)
### Question:
What is the career win-loss for the ATP Masters Series?
### Answer:
SELECT career_win_loss FROM table_name_3 WHERE 1995 = "atp masters series" |
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 church (name VARCHAR); CREATE TABLE wedding (church_id VARCHAR, year VARCHAR); CREATE TABLE church (name VARCHAR, church_id VARCHAR)
### Question:
Show all church names except for those that had a wedding in year 2015.
### Answer:
SELECT name FROM church EXCEPT SELECT T1.name FROM church AS T1 JOIN wedding AS T2 ON T1.church_id = T2.church_id WHERE T2.year = 2015 |
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 (home_team VARCHAR, away_team VARCHAR)
### Question:
What did the home team score when Carlton played as the Away team?
### Answer:
SELECT home_team AS score FROM table_name_30 WHERE away_team = "carlton" |
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_75 (runs VARCHAR, strike_rate VARCHAR)
### Question:
How many runs were scored when the strike rate was 101.42?
### Answer:
SELECT runs FROM table_name_75 WHERE strike_rate = "101.42" |
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 (country VARCHAR, score VARCHAR)
### Question:
Which country has a score of 71-72-73-69=285?
### Answer:
SELECT country FROM table_name_44 WHERE score = 71 - 72 - 73 - 69 = 285 |
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_23286158_10 (location_attendance VARCHAR, high_assists VARCHAR, game VARCHAR)
### Question:
When 78 is the game and brandon roy (6) has the highest amount of assists how many locations/attendances are there?
### Answer:
SELECT COUNT(location_attendance) FROM table_23286158_10 WHERE high_assists = "Brandon Roy (6)" AND game = 78 |
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_3 (stadium VARCHAR, club VARCHAR)
### Question:
Which stadium had the club Kuwait?
### Answer:
SELECT stadium FROM table_name_3 WHERE club = "kuwait" |
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_72 (song_choice VARCHAR, episode VARCHAR)
### Question:
What song was chosen for the episode with the top 8?
### Answer:
SELECT song_choice FROM table_name_72 WHERE episode = "top 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_name_82 (against INTEGER, date VARCHAR)
### Question:
What is the total against on 08/12/1992?
### Answer:
SELECT SUM(against) FROM table_name_82 WHERE date = "08/12/1992" |
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_75 (crowd INTEGER, away_team VARCHAR)
### Question:
When melbourne was the away team, what was the lowest crowd turnout they had?
### Answer:
SELECT MIN(crowd) FROM table_name_75 WHERE away_team = "melbourne" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.