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_91 (qual_1 VARCHAR, team VARCHAR, best VARCHAR)
### Question:
Which Qual 1 has a Team of team player's, and a Best of 58.405?
### Answer:
SELECT qual_1 FROM table_name_91 WHERE team = "team player's" AND best = "58.405" |
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 (week VARCHAR, date VARCHAR)
### Question:
What is the Week number on December 18, 1960?
### Answer:
SELECT COUNT(week) FROM table_name_17 WHERE date = "december 18, 1960" |
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_26 (tournament VARCHAR)
### Question:
Tell me the tournament of 2009 of atp masters series
### Answer:
SELECT tournament FROM table_name_26 WHERE 2009 = "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 table_name_44 (pick__number INTEGER, reg_gp INTEGER)
### Question:
Which is the smallest pick number that had a Reg GP of less than 0?
### Answer:
SELECT MIN(pick__number) FROM table_name_44 WHERE reg_gp < 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_60 (away_team VARCHAR, score VARCHAR)
### Question:
What away team had a 103-94 score?
### Answer:
SELECT away_team FROM table_name_60 WHERE score = "103-94" |
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_16494599_10 (player VARCHAR, school_club_team VARCHAR)
### Question:
Who are the players that have attended Stanford?
### Answer:
SELECT player FROM table_16494599_10 WHERE school_club_team = "Stanford" |
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 (home_team VARCHAR, match_no VARCHAR)
### Question:
Who is the Home Team for Match No. 23?
### Answer:
SELECT home_team FROM table_name_42 WHERE match_no = "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_10 (qual_2 VARCHAR, best VARCHAR)
### Question:
What is Qual 2, when Best is 1:27.976?
### Answer:
SELECT qual_2 FROM table_name_10 WHERE best = "1:27.976" |
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 (budget VARCHAR, year VARCHAR)
### Question:
What is 2005's budget figure?
### Answer:
SELECT budget FROM table_name_4 WHERE year = 2005 |
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 station (city VARCHAR)
### Question:
How many stations does Mountain View city has?
### Answer:
SELECT COUNT(*) FROM station WHERE city = "Mountain View" |
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 (city VARCHAR, results¹ VARCHAR)
### Question:
What city held the game with a result of 1:0?
### Answer:
SELECT city FROM table_name_69 WHERE results¹ = "1: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_49 (Id VARCHAR)
### Question:
In the Tournament during which Jiří Novák was absent(A) in 2004, how did he do in 2003?
### Answer:
SELECT 2003 FROM table_name_49 WHERE 2004 = "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_2562572_33 (settlement VARCHAR, cyrillic_name_other_names VARCHAR)
### Question:
What settlement is also called мартонош (hungarian: martonos)?
### Answer:
SELECT settlement FROM table_2562572_33 WHERE cyrillic_name_other_names = "Мартонош (Hungarian: Martonos)" |
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 (crew VARCHAR, comments VARCHAR)
### Question:
Which Crew has Comments of daggerboards. design: roy seaman?
### Answer:
SELECT crew FROM table_name_49 WHERE comments = "daggerboards. design: roy seaman" |
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_70 (against INTEGER, losses VARCHAR, ntfa_div_2 VARCHAR)
### Question:
Old Scotch had less than 9 losses and how much against?
### Answer:
SELECT SUM(against) FROM table_name_70 WHERE losses < 9 AND ntfa_div_2 = "old scotch" |
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 (matches INTEGER, against VARCHAR, wins VARCHAR)
### Question:
What is the lowest Matches, when Against is less than 7, and when Wins is greater than 1?
### Answer:
SELECT MIN(matches) FROM table_name_74 WHERE against < 7 AND wins > 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_33 (class VARCHAR, quantity VARCHAR, gwr_nos VARCHAR)
### Question:
Which class is smaller than 5 and the GWR is 1322–1323?
### Answer:
SELECT class FROM table_name_33 WHERE quantity < 5 AND gwr_nos = "1322–1323" |
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 Companies (Industry VARCHAR)
### Question:
Find the number of companies whose industry is "Banking" or "Conglomerate",
### Answer:
SELECT COUNT(*) FROM Companies WHERE Industry = "Banking" OR Industry = "Conglomerate" |
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 (closed INTEGER, city VARCHAR, capacity VARCHAR)
### Question:
Tell me the sum of closed for city of pittsburgh and capacity larger than 59,000
### Answer:
SELECT SUM(closed) FROM table_name_73 WHERE city = "pittsburgh" AND capacity > 59 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_80 (touchdowns VARCHAR, average INTEGER)
### Question:
What is the number of touchdowns with the average is less than 2.6?
### Answer:
SELECT COUNT(touchdowns) FROM table_name_80 WHERE average < 2.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_32 (type VARCHAR, ends VARCHAR)
### Question:
What is the type that ends in 2009?
### Answer:
SELECT type FROM table_name_32 WHERE ends = "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_name_4 (venue VARCHAR, position VARCHAR, year VARCHAR)
### Question:
Name the venue for 2004 and position of 25th
### Answer:
SELECT venue FROM table_name_4 WHERE position = "25th" AND year = 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_33 (opponent VARCHAR, attendance VARCHAR)
### Question:
Which opponent has an attendance of 17,015?
### Answer:
SELECT opponent FROM table_name_33 WHERE attendance = "17,015" |
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 (week_15__final__dec_3 VARCHAR, week_12_nov_13 VARCHAR)
### Question:
What was Week 15 when Week 12 was Washington (9-1)?
### Answer:
SELECT week_15__final__dec_3 FROM table_name_69 WHERE week_12_nov_13 = "washington (9-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_2597876_2 (top_10 VARCHAR, position VARCHAR)
### Question:
How many values of top 10 for 5th position?
### Answer:
SELECT COUNT(top_10) FROM table_2597876_2 WHERE position = "5th" |
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 (isotopic_mass___u__ VARCHAR, nuclide VARCHAR)
### Question:
What is the isotopic mass (u) when the nuclide is 89 y?
### Answer:
SELECT isotopic_mass___u__ FROM table_name_6 WHERE nuclide = "89 y" |
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 people (Nationality VARCHAR)
### Question:
What are different nationalities of people and the corresponding number of people from each nation?
### Answer:
SELECT Nationality, COUNT(*) FROM people GROUP BY Nationality |
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_70 (season VARCHAR, overall VARCHAR)
### Question:
What year's Season had an Overall of 77?
### Answer:
SELECT season FROM table_name_70 WHERE overall = "77" |
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 (place INTEGER, ribbon VARCHAR, total VARCHAR)
### Question:
What place had a ribbon below 9.8 and a 19.2 total?
### Answer:
SELECT MAX(place) FROM table_name_23 WHERE ribbon < 9.8 AND total = 19.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_19517448_3 (rank VARCHAR, rating VARCHAR)
### Question:
What rank has a rating of 146.8?
### Answer:
SELECT rank FROM table_19517448_3 WHERE rating = "146.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_25 (draws INTEGER, wins VARCHAR, goals_for VARCHAR)
### Question:
How many draws have less than 8 wins, and 31 goals for?
### Answer:
SELECT SUM(draws) FROM table_name_25 WHERE wins < 8 AND goals_for = 31 |
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_52 (opponent VARCHAR, date VARCHAR)
### Question:
Which Opponent has a Date of november 24, 1991?
### Answer:
SELECT opponent FROM table_name_52 WHERE date = "november 24, 1991" |
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 (net_profit__ INTEGER, earnings_per_share__p_ VARCHAR, profit__loss__before_tax__£m_ VARCHAR)
### Question:
What is the total net profit when earnings per share is 27.4, and profit/loss befor tax was smaller than 194.6 million?
### Answer:
SELECT SUM(net_profit__) AS £m_ FROM table_name_75 WHERE earnings_per_share__p_ = 27.4 AND profit__loss__before_tax__£m_ < 194.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_17102076_9 (high_assists VARCHAR, date VARCHAR)
### Question:
Who had high assists on March 15?
### Answer:
SELECT high_assists FROM table_17102076_9 WHERE date = "March 15" |
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 albums (label VARCHAR)
### Question:
What is the label that has the most albums?
### Answer:
SELECT label FROM albums GROUP BY label ORDER BY COUNT(*) DESC LIMIT 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_1346137_4 (candidates VARCHAR, first_elected VARCHAR)
### Question:
Who were the candidates when the winner was first elected in 1910?
### Answer:
SELECT candidates FROM table_1346137_4 WHERE first_elected = "1910" |
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 (cabinet VARCHAR, chair VARCHAR, year VARCHAR, fractievoorzitter VARCHAR)
### Question:
What is Cabinet, when Year is after 1981, when Fractievoorzitter is "Hans Van Mierlo", and when Chair is "W.I.J.M. Vrijhoef"?
### Answer:
SELECT cabinet FROM table_name_42 WHERE year > 1981 AND fractievoorzitter = "hans van mierlo" AND chair = "w.i.j.m. vrijhoef" |
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 (score VARCHAR, place VARCHAR)
### Question:
What was the score for place 4?
### Answer:
SELECT score FROM table_name_21 WHERE place = "4" |
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_1243601_1 (playoffs VARCHAR, year VARCHAR)
### Question:
What was the playoff result in 2002?
### Answer:
SELECT playoffs FROM table_1243601_1 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_15185133_1 (no_in_season VARCHAR, written_by VARCHAR, directed_by VARCHAR)
### Question:
What season has an episode written by john o'bryan and directed by ethan spaulding?
### Answer:
SELECT no_in_season FROM table_15185133_1 WHERE written_by = "John O'Bryan" AND directed_by = "Ethan Spaulding" |
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 (crowd INTEGER, away_team VARCHAR)
### Question:
What was the attendance of the Hawthorn as the away team?
### Answer:
SELECT SUM(crowd) FROM table_name_92 WHERE away_team = "hawthorn" |
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 (attendance VARCHAR, week VARCHAR, opponent VARCHAR)
### Question:
What was the attendance at the post-week 7 game against the San Diego Chargers?
### Answer:
SELECT attendance FROM table_name_53 WHERE week > 7 AND opponent = "san diego chargers" |
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_17968229_1 (home__2nd_leg_ VARCHAR, aggregate VARCHAR)
### Question:
With an aggregate of 0-2, what is listed for home?
### Answer:
SELECT home__2nd_leg_ FROM table_17968229_1 WHERE aggregate = "0-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_1008653_1 (capital___endonym__ VARCHAR, capital___exonym__ VARCHAR)
### Question:
What is the local name given to the city of Canberra?
### Answer:
SELECT capital___endonym__ FROM table_1008653_1 WHERE capital___exonym__ = "Canberra" |
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_27369069_1 (soccer_stadium VARCHAR, province VARCHAR)
### Question:
What is the name of the soccer stadium in NL providence?
### Answer:
SELECT soccer_stadium FROM table_27369069_1 WHERE province = "NL" |
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 (frequency VARCHAR, branding VARCHAR)
### Question:
What frequency does branding dzec radyo agila 1062 have?
### Answer:
SELECT frequency FROM table_name_33 WHERE branding = "dzec radyo agila 1062" |
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_13681_2 (equivalent_daily_inflation_rate VARCHAR, time_required_for_prices_to_double VARCHAR)
### Question:
how many equivalent daily inflation rate with time required for prices to double being 3.7 days
### Answer:
SELECT COUNT(equivalent_daily_inflation_rate) FROM table_13681_2 WHERE time_required_for_prices_to_double = "3.7 days" |
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 (entrant VARCHAR, year VARCHAR)
### Question:
Who was in 1963?
### Answer:
SELECT entrant FROM table_name_87 WHERE year = 1963 |
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 (wavelength VARCHAR, frequency__mhz_ VARCHAR)
### Question:
What is the Wavelength of Frequency (MHz) 14.050–14.150?
### Answer:
SELECT wavelength FROM table_name_53 WHERE frequency__mhz_ = "14.050–14.150" |
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_63 (wins INTEGER, top_10 VARCHAR)
### Question:
How many total wins are associated with events with 1 top-10?
### Answer:
SELECT SUM(wins) FROM table_name_63 WHERE top_10 = 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_82 (date VARCHAR, attendance VARCHAR)
### Question:
On what Date was the Attendance 16,212?
### Answer:
SELECT date FROM table_name_82 WHERE attendance = "16,212" |
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 products (product_type_code VARCHAR, product_name VARCHAR, product_price VARCHAR)
### Question:
Show the product type and name for the products with price higher than 1000 or lower than 500.
### Answer:
SELECT product_type_code, product_name FROM products WHERE product_price > 1000 OR product_price < 500 |
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 (crowd INTEGER, venue VARCHAR)
### Question:
How many people attended the game at VFL Park?
### Answer:
SELECT SUM(crowd) FROM table_name_71 WHERE venue = "vfl park" |
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 (sales__billion_ INTEGER, company VARCHAR)
### Question:
What is BP's lowest sales?
### Answer:
SELECT MIN(sales__billion_) AS $_ FROM table_name_73 WHERE company = "bp" |
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 (driver VARCHAR, grid VARCHAR)
### Question:
what driver has 12 in grid?
### Answer:
SELECT driver FROM table_name_80 WHERE grid = 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_27734577_13 (series VARCHAR, high_rebounds VARCHAR)
### Question:
What is the series number when al horford (10) had the high rebounds?
### Answer:
SELECT series FROM table_27734577_13 WHERE high_rebounds = "Al Horford (10)" |
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 (proto_oceanic VARCHAR, animal VARCHAR)
### Question:
What proto-oceanic has louse as the animal?
### Answer:
SELECT proto_oceanic FROM table_name_86 WHERE animal = "louse" |
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 (catalogue VARCHAR, date VARCHAR)
### Question:
Name the october 15, 2004 catalogue
### Answer:
SELECT catalogue FROM table_name_48 WHERE date = "october 15, 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_92 (winner VARCHAR, city___state VARCHAR, team VARCHAR)
### Question:
What is Winner, when City / State is "Mallala , South Australia", and when Team is "Elfin Sports Cars"?
### Answer:
SELECT winner FROM table_name_92 WHERE city___state = "mallala , south australia" AND team = "elfin sports cars" |
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_2226817_12 (title VARCHAR, original_air_date VARCHAR)
### Question:
what is the name of the episode whose premiere was in march 2, 1997?
### Answer:
SELECT title FROM table_2226817_12 WHERE original_air_date = "March 2, 1997" |
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 (gold INTEGER, total VARCHAR, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
### Question:
What is the average gold medals for countries with more than 0 bronze, more than 0 silver, rank over 2 and total over 3?
### Answer:
SELECT AVG(gold) FROM table_name_56 WHERE bronze > 0 AND silver > 0 AND rank > 2 AND total > 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_38 (rank VARCHAR, silver VARCHAR, bronze VARCHAR)
### Question:
How many teams won more than 2 silver medals and fewer than 2 Bronze medals?
### Answer:
SELECT COUNT(rank) FROM table_name_38 WHERE silver > 2 AND bronze < 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_25794532_1 (series VARCHAR, points VARCHAR)
### Question:
Name the series for 68
### Answer:
SELECT series FROM table_25794532_1 WHERE points = "68" |
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_96 (game INTEGER, february VARCHAR)
### Question:
Which Game is the highest one that has a February of 25?
### Answer:
SELECT MAX(game) FROM table_name_96 WHERE february = 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_68 (stage VARCHAR, team_classification VARCHAR)
### Question:
Which stage had tabriz petrochemical team in the team classification?
### Answer:
SELECT stage FROM table_name_68 WHERE team_classification = "tabriz petrochemical team" |
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 TRANSACTIONS (investor_id VARCHAR); CREATE TABLE INVESTORS (investor_id VARCHAR)
### Question:
Show the ids of the investors who have at least two transactions.
### Answer:
SELECT T2.investor_id FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id = T2.investor_id GROUP BY T2.investor_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_74 (away_team VARCHAR, home_team VARCHAR)
### Question:
Who was the away team against Newton Heath?
### Answer:
SELECT away_team FROM table_name_74 WHERE home_team = "newton heath" |
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_1134091_4 (district VARCHAR, reason_for_change VARCHAR)
### Question:
What was the district when the reason for change was died January 1, 1974?
### Answer:
SELECT district FROM table_1134091_4 WHERE reason_for_change = "Died January 1, 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_47 (total INTEGER, player VARCHAR)
### Question:
What is the Total for Seve Ballesteros?
### Answer:
SELECT SUM(total) FROM table_name_47 WHERE player = "seve ballesteros" |
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_24160890_3 (conference VARCHAR, tournament_venue__city_ VARCHAR)
### Question:
When madison square garden ( new york city, new york ) is the tournament venue (city) what is the conference tournament?
### Answer:
SELECT conference AS Tournament FROM table_24160890_3 WHERE tournament_venue__city_ = "Madison Square Garden ( New York City, New York )" |
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 (ends_lost INTEGER, province VARCHAR, stolen_ends VARCHAR)
### Question:
How many ends lost for Alberta when stolen ends are greater than 7?
### Answer:
SELECT SUM(ends_lost) FROM table_name_62 WHERE province = "alberta" AND stolen_ends > 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_19 (game INTEGER, record VARCHAR, points VARCHAR)
### Question:
Which Game has a Record of 4–2–1, and Points larger than 9?
### Answer:
SELECT SUM(game) FROM table_name_19 WHERE record = "4–2–1" AND points > 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_26 (episode__number INTEGER, format__number VARCHAR)
### Question:
What is the average episode number with q146 format?
### Answer:
SELECT AVG(episode__number) FROM table_name_26 WHERE format__number = "q146" |
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 (christ_madeking VARCHAR, great_tribulation VARCHAR)
### Question:
What was the Christ made king date with a great tribulation in 1925?
### Answer:
SELECT christ_madeking FROM table_name_16 WHERE great_tribulation = "1925" |
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 (week VARCHAR, opponent VARCHAR)
### Question:
What is the total number of weeks when the New York Jets are the opponent?
### Answer:
SELECT COUNT(week) FROM table_name_35 WHERE opponent = "new york jets" |
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 (prince_devitt VARCHAR, block_a VARCHAR)
### Question:
What is the Prince Devitt when Block A is Yamato?
### Answer:
SELECT prince_devitt FROM table_name_49 WHERE block_a = "yamato" |
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 (quantity INTEGER, axle_arrangement VARCHAR)
### Question:
Which Quantity has an Axle arrangement of 2′c h2?
### Answer:
SELECT AVG(quantity) FROM table_name_86 WHERE axle_arrangement = "2′c h2" |
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 (name VARCHAR, wins VARCHAR, matches VARCHAR)
### Question:
What are the names of those who made less than 3 wins in 15 matches?
### Answer:
SELECT name FROM table_name_90 WHERE wins < 3 AND matches < 15 |
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 people (People_ID VARCHAR, Height VARCHAR); CREATE TABLE poker_player (Money_Rank VARCHAR, People_ID VARCHAR)
### Question:
What is the money rank of the tallest poker player?
### Answer:
SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 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_25965003_3 (access_using_a_croatian_identity_card VARCHAR, countries_and_territories VARCHAR)
### Question:
Can one access the Faroe Islands using a Croatian identity card?
### Answer:
SELECT access_using_a_croatian_identity_card FROM table_25965003_3 WHERE countries_and_territories = "Faroe Islands" |
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 (team VARCHAR, podiums VARCHAR, position VARCHAR)
### Question:
Which Team has Podiums of 0, and a Position of nc†?
### Answer:
SELECT team FROM table_name_94 WHERE podiums = "0" AND position = "nc†" |
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 (episode VARCHAR, program VARCHAR)
### Question:
What's the episode of Batman?
### Answer:
SELECT episode FROM table_name_38 WHERE program = "batman" |
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 (gdp__ppp__per_capita_2012_eu27_ VARCHAR, _100 VARCHAR, gdp_2012_millions_of_euro VARCHAR)
### Question:
What is GDP (PPP) Per Capita 2012 EU27 = 100, when GDP 2012 Millions Of Euro is 309,900?
### Answer:
SELECT gdp__ppp__per_capita_2012_eu27_ = _100 FROM table_name_27 WHERE gdp_2012_millions_of_euro = "309,900" |
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_9 (grid INTEGER, laps INTEGER)
### Question:
How many grids had more than 61 laps?
### Answer:
SELECT SUM(grid) FROM table_name_9 WHERE laps > 61 |
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 (result VARCHAR, record VARCHAR)
### Question:
What was the result with a record of 58–11?
### Answer:
SELECT result FROM table_name_49 WHERE record = "58–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_14345690_2 (entered VARCHAR, finished VARCHAR)
### Question:
When did the 4th finisher enter?
### Answer:
SELECT entered FROM table_14345690_2 WHERE finished = "4th" |
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_20683381_2 (date_of_opinion_poll VARCHAR, undecided VARCHAR)
### Question:
How many polls taken on different dates show an undecided percentage of 25%?
### Answer:
SELECT COUNT(date_of_opinion_poll) FROM table_20683381_2 WHERE undecided = "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_34 (episode__number VARCHAR, original_airdate VARCHAR)
### Question:
Name the episode number that aired on july 23, 2000
### Answer:
SELECT episode__number FROM table_name_34 WHERE original_airdate = "july 23, 2000" |
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 (date VARCHAR, h___a VARCHAR, league_position VARCHAR)
### Question:
What is the date of the away game when the team has a league position of 9th?
### Answer:
SELECT date FROM table_name_34 WHERE h___a = "a" AND league_position = "9th" |
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 (final_position VARCHAR, season VARCHAR)
### Question:
What is the final position for the season 2008?
### Answer:
SELECT final_position FROM table_name_76 WHERE season = "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_39 (score VARCHAR, result VARCHAR)
### Question:
What is the score of the match with a 4-0 result?
### Answer:
SELECT score FROM table_name_39 WHERE result = "4-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_29 (mls_team VARCHAR, affiliation VARCHAR)
### Question:
Which MLS tea, drafted a player affilaited with the university of california?
### Answer:
SELECT mls_team FROM table_name_29 WHERE affiliation = "university of california" |
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_36 (duration VARCHAR, actor VARCHAR)
### Question:
What is the duration for nickolas grace as the actor?
### Answer:
SELECT duration FROM table_name_36 WHERE actor = "nickolas grace" |
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_32 (name VARCHAR, mark VARCHAR, lane VARCHAR)
### Question:
What name has 8.19 as the mark, with 3 as the lane?
### Answer:
SELECT name FROM table_name_32 WHERE mark = "8.19" AND lane = 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_83 (result VARCHAR, date VARCHAR)
### Question:
What was the game result on November 16, 1969?
### Answer:
SELECT result FROM table_name_83 WHERE date = "november 16, 1969" |
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 (venue VARCHAR, event VARCHAR, tournament VARCHAR)
### Question:
What was the venue of the 400 M Hurdles for the Olympic Games?
### Answer:
SELECT venue FROM table_name_35 WHERE event = "400 m hurdles" AND tournament = "olympic games" |
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 (constructor VARCHAR, time_retired VARCHAR, laps VARCHAR)
### Question:
Who constructed the car that has a Time/Retired of engine, and over 50 laps?
### Answer:
SELECT constructor FROM table_name_56 WHERE time_retired = "engine" AND laps > 50 |
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 (lost INTEGER, seasons VARCHAR, goals_against VARCHAR)
### Question:
Which Lost has Seasons of 2, and Goals against larger than 43?
### Answer:
SELECT MAX(lost) FROM table_name_75 WHERE seasons = 2 AND goals_against > 43 |
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_81 (nhl_team VARCHAR, position VARCHAR, college_junior_club_team VARCHAR)
### Question:
What NHL team has a player in the position of Left Wing that came from the Toronto Marlboros (omjhl)?
### Answer:
SELECT nhl_team FROM table_name_81 WHERE position = "left wing" AND college_junior_club_team = "toronto marlboros (omjhl)" |
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 (year INTEGER, accolade VARCHAR, rank VARCHAR)
### Question:
How many years have an accolade of 50 best albums of the year, with #3 as the rank?
### Answer:
SELECT SUM(year) FROM table_name_6 WHERE accolade = "50 best albums of the year" AND rank = "#3" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.