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_55 (away_team VARCHAR, home_team VARCHAR)
### Question:
Who is the away team when the home team was Fitzroy?
### Answer:
SELECT away_team FROM table_name_55 WHERE home_team = "fitzroy" |
Below is an context that describes a 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 (Id VARCHAR)
### Question:
What is the 2004 value with a sf in 2010?
### Answer:
SELECT 2004 FROM table_name_4 WHERE 2010 = "sf" |
Below is an context that describes a 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 (wins INTEGER, events VARCHAR, top_5 VARCHAR)
### Question:
what is the sum of wins when events is 13 and top-5 is less than 1?
### Answer:
SELECT SUM(wins) FROM table_name_15 WHERE events = 13 AND top_5 < 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_76 (party VARCHAR, results VARCHAR, district VARCHAR)
### Question:
What is Party, when Results is "Re-Elected", and when District is "Louisiana 5"?
### Answer:
SELECT party FROM table_name_76 WHERE results = "re-elected" AND district = "louisiana 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_48 (score VARCHAR, loss VARCHAR)
### Question:
What was the score of the game that had a loss of Williams (1-1)?
### Answer:
SELECT score FROM table_name_48 WHERE loss = "williams (1-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_47 (name VARCHAR, rank VARCHAR, height_feet___m VARCHAR)
### Question:
What is the building's name that is 617 / 188 in height and ranked less than 6?
### Answer:
SELECT name FROM table_name_47 WHERE rank < 6 AND height_feet___m = "617 / 188" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1307842_6 (gdp__billion_us$_ VARCHAR, area__km²_ VARCHAR)
### Question:
What is the gdp of the country with an area of 83871 (km2)?
### Answer:
SELECT gdp__billion_us$_ FROM table_1307842_6 WHERE area__km²_ = 83871 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Delivery_Routes (route_name VARCHAR, route_id VARCHAR); CREATE TABLE Delivery_Route_Locations (route_id VARCHAR)
### Question:
Find the name of route that has the highest number of deliveries.
### Answer:
SELECT t1.route_name FROM Delivery_Routes AS t1 JOIN Delivery_Route_Locations AS t2 ON t1.route_id = t2.route_id GROUP BY t1.route_id 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_name_37 (league VARCHAR, home VARCHAR)
### Question:
What is the league with a 0:1 home?
### Answer:
SELECT league FROM table_name_37 WHERE home = "0: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_20246201_9 (popular_vote VARCHAR, candidate VARCHAR)
### Question:
How many different popular vote counts were there for the candidate Rick Perry?
### Answer:
SELECT COUNT(popular_vote) FROM table_20246201_9 WHERE candidate = "Rick Perry" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1000181_1 (text_background_colour VARCHAR, state_territory VARCHAR)
### Question:
Name the background colour for the Australian Capital Territory
### Answer:
SELECT text_background_colour FROM table_1000181_1 WHERE state_territory = "Australian Capital Territory" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17335602_1 (winners_share___ INTEGER, tournament VARCHAR)
### Question:
What was the winner's share in the wegmans lpga championship?
### Answer:
SELECT MAX(winners_share___) AS $__ FROM table_17335602_1 WHERE tournament = "Wegmans LPGA Championship" |
Below is an context that describes a 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_28 (affiliation VARCHAR, pick__number INTEGER)
### Question:
What affiliations have Pick #s under 32?
### Answer:
SELECT affiliation FROM table_name_28 WHERE pick__number < 32 |
Below is an context that describes a 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 (name VARCHAR, tries VARCHAR, club VARCHAR)
### Question:
Who was part of Club Munster with 1 try?
### Answer:
SELECT name FROM table_name_38 WHERE tries = 1 AND club = "munster" |
Below is an context that describes a 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 (stadium VARCHAR, visiting_team VARCHAR)
### Question:
What is the name of the stadium when the visiting team is the Denver Broncos?
### Answer:
SELECT stadium FROM table_name_6 WHERE visiting_team = "denver broncos" |
Below is an context that describes a 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 (team__number1 VARCHAR, res VARCHAR)
### Question:
What was the team #1 for the match that had a result of 0-3?
### Answer:
SELECT team__number1 FROM table_name_17 WHERE res = "0-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_20799587_1 (obama_number INTEGER, mccain_percentage VARCHAR)
### Question:
How many people voted for Obama in the county where McCain got 72.75% of the votes?
### Answer:
SELECT MIN(obama_number) FROM table_20799587_1 WHERE mccain_percentage = "72.75%" |
Below is an context that describes a 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 (tournament VARCHAR, partner VARCHAR, outcome VARCHAR, score VARCHAR)
### Question:
Which Tournament has a winner Outcome with a Score of 6–3, 7–5 with Kimberly Po-Messerli as a Partner?
### Answer:
SELECT tournament FROM table_name_85 WHERE outcome = "winner" AND score = "6–3, 7–5" AND partner = "kimberly po-messerli" |
Below is an context that describes a 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 (laps INTEGER, driver VARCHAR)
### Question:
What is the lowest number of laps obtained by driver Nick Heidfeld?
### Answer:
SELECT MIN(laps) FROM table_name_32 WHERE driver = "nick heidfeld" |
Below is an context that describes a 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 (route INTEGER, rank VARCHAR, elevation VARCHAR)
### Question:
On what Route is the mountain with a Rank less than 33 and an Elevation of 11,312 feet 3448 m?
### Answer:
SELECT MAX(route) FROM table_name_60 WHERE rank < 33 AND elevation = "11,312 feet 3448 m" |
Below is an context that describes a 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_65 (region VARCHAR, area__km²_ VARCHAR)
### Question:
Which Region has an Area of 9,451km²?
### Answer:
SELECT region FROM table_name_65 WHERE area__km²_ = "9,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_64 (pos VARCHAR, year VARCHAR, event VARCHAR)
### Question:
What is the pos from 2003, and the f event?
### Answer:
SELECT pos FROM table_name_64 WHERE year = "2003" AND event = "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_26351260_1 (enrollment INTEGER, institution VARCHAR)
### Question:
What is the lowest enrollment for Eastern Michigan University?
### Answer:
SELECT MIN(enrollment) FROM table_26351260_1 WHERE institution = "Eastern Michigan University" |
Below is an context that describes a 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 (semifinalists VARCHAR, surface VARCHAR)
### Question:
what is the semifinalists when the surface is hard (i)?
### Answer:
SELECT semifinalists FROM table_name_9 WHERE surface = "hard (i)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_256286_23 (meas_num INTEGER, description VARCHAR)
### Question:
What is the number of the tax supervising and conservation bill?
### Answer:
SELECT MIN(meas_num) FROM table_256286_23 WHERE description = "Tax Supervising and Conservation Bill" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341423_20 (candidates VARCHAR, district VARCHAR)
### Question:
Who were the candidates in the Maryland 5 district election?
### Answer:
SELECT candidates FROM table_1341423_20 WHERE district = "Maryland 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 person (name VARCHAR, job VARCHAR, age INTEGER); CREATE TABLE Person (name VARCHAR, job VARCHAR, age INTEGER)
### Question:
Who is the oldest person whose job is student?
### Answer:
SELECT name FROM Person WHERE job = 'student' AND age = (SELECT MAX(age) FROM person WHERE job = 'student') |
Below is an context that describes a 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_2 (directed_by VARCHAR, production_code VARCHAR)
### Question:
Who directed when the production code is 1.02?
### Answer:
SELECT directed_by FROM table_2226817_2 WHERE production_code = "1.02" |
Below is an context that describes a 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 (pick__number INTEGER, nationality VARCHAR)
### Question:
What is the highest pick number from Slovakia?
### Answer:
SELECT MAX(pick__number) FROM table_name_51 WHERE nationality = "slovakia" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1628607_5 (foursomes_w_l_h VARCHAR, year VARCHAR)
### Question:
What was the foursome's record in 2002?
### Answer:
SELECT foursomes_w_l_h FROM table_1628607_5 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_9 (matches INTEGER, rank INTEGER)
### Question:
What was the total matches that ranked above 10?
### Answer:
SELECT SUM(matches) FROM table_name_9 WHERE rank > 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_3 (lost VARCHAR, tied VARCHAR, goals_for VARCHAR)
### Question:
What is the total number of losses for teams with less than 5 ties and more than 330 goals for?
### Answer:
SELECT COUNT(lost) FROM table_name_3 WHERE tied < 5 AND goals_for > 330 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24122653_2 (finish VARCHAR, vote VARCHAR)
### Question:
What is the finish associated with a 3-2 vote?
### Answer:
SELECT finish FROM table_24122653_2 WHERE vote = "3-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_14058433_3 (points_for VARCHAR, lost VARCHAR)
### Question:
How many points are there when the lost is 7?
### Answer:
SELECT points_for FROM table_14058433_3 WHERE lost = "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_2 (games INTEGER, position VARCHAR, number VARCHAR)
### Question:
What is the earliest game with a position of Re and a smaller number than 95?
### Answer:
SELECT MIN(games) AS ↑ FROM table_name_2 WHERE position = "re" AND number < 95 |
Below is an context that describes a 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 (competition VARCHAR, attendance VARCHAR, opponent VARCHAR)
### Question:
What kind of competition had an attendance of more than 914 people and the Wightlink Raiders as an opponent?
### Answer:
SELECT competition FROM table_name_52 WHERE attendance > 914 AND opponent = "wightlink raiders" |
Below is an context that describes a 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 (u_wins INTEGER, draws VARCHAR, alianza_wins VARCHAR, alianza_goals VARCHAR)
### Question:
What is the lowest U Wins, when Alianza Wins is greater than 0, when Alianza Goals is greater than 25, and when Draws is "99"?
### Answer:
SELECT MIN(u_wins) FROM table_name_52 WHERE alianza_wins > 0 AND alianza_goals > 25 AND draws = 99 |
Below is an context that describes a 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 (money___ INTEGER, score VARCHAR)
### Question:
What is the average Money ( $ ), when Score is "69-69-76-69=283"?
### Answer:
SELECT AVG(money___) AS $__ FROM table_name_74 WHERE score = 69 - 69 - 76 - 69 = 283 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE body_builder (Snatch INTEGER)
### Question:
What is the average snatch score of body builders?
### Answer:
SELECT AVG(Snatch) FROM body_builder |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE projects (hours INTEGER)
### Question:
Find the average hours of all projects.
### Answer:
SELECT AVG(hours) FROM projects |
Below is an context that describes a 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 (date VARCHAR, record VARCHAR)
### Question:
On what date was the Record of 43–35?
### Answer:
SELECT date FROM table_name_25 WHERE record = "43–35" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24431348_20 (status VARCHAR, new_points VARCHAR)
### Question:
How many times is the new points 2690?
### Answer:
SELECT COUNT(status) FROM table_24431348_20 WHERE new_points = 2690 |
Below is an context that describes a 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 (date VARCHAR, partner VARCHAR)
### Question:
Which Date has a Partner of daniella dominikovic?
### Answer:
SELECT date FROM table_name_66 WHERE partner = "daniella dominikovic" |
Below is an context that describes a 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_7 (date VARCHAR, score VARCHAR)
### Question:
What is the Date with a Score with 86–108?
### Answer:
SELECT date FROM table_name_7 WHERE score = "86–108" |
Below is an context that describes a 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 (notes VARCHAR, rank VARCHAR)
### Question:
What notes have 2 as the rank?
### Answer:
SELECT notes FROM table_name_62 WHERE rank = 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_3 (score VARCHAR, away_team VARCHAR)
### Question:
What was the score of the game against away team crewe alexandra?
### Answer:
SELECT score FROM table_name_3 WHERE away_team = "crewe alexandra" |
Below is an context that describes a 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 (club VARCHAR, country VARCHAR, goals VARCHAR)
### Question:
What club was in Netherlands and had 22 goals?
### Answer:
SELECT club FROM table_name_82 WHERE country = "netherlands" AND goals = "22" |
Below is an context that describes a 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 (score VARCHAR, date VARCHAR)
### Question:
What was the score on april 4, 1993?
### Answer:
SELECT score FROM table_name_33 WHERE date = "april 4, 1993" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18373863_2 (mlb_team VARCHAR, years_played VARCHAR, fcsl_team VARCHAR)
### Question:
when deland is the fcsl team and 2008 is the year played who is the mlb team?
### Answer:
SELECT mlb_team FROM table_18373863_2 WHERE years_played = "2008" AND fcsl_team = "DeLand" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2127933_3 (score VARCHAR, opponents VARCHAR)
### Question:
What were the scores for matches with irving wright hazel hotchkiss wightman?
### Answer:
SELECT score FROM table_2127933_3 WHERE opponents = "Irving Wright Hazel Hotchkiss Wightman" |
Below is an context that describes a 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 (game INTEGER, march VARCHAR)
### Question:
March of 29 involves what highest scoring game?
### Answer:
SELECT MAX(game) FROM table_name_40 WHERE march = 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_name_71 (away_team VARCHAR, venue VARCHAR)
### Question:
What was the away team's score at windy hill?
### Answer:
SELECT away_team AS score FROM table_name_71 WHERE venue = "windy hill" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24018112_1 (brand_name VARCHAR, model__list_ VARCHAR)
### Question:
What brand is model I7-8xx?
### Answer:
SELECT brand_name FROM table_24018112_1 WHERE model__list_ = "i7-8xx" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12791809_1 (year INTEGER, road_closed VARCHAR)
### Question:
What is thea year the road closed April 13?
### Answer:
SELECT MAX(year) FROM table_12791809_1 WHERE road_closed = "April 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_99 (home_captain VARCHAR, venue VARCHAR)
### Question:
Who was the Home captain for the Test match of Australia in England at the Edgbaston Venue?
### Answer:
SELECT home_captain FROM table_name_99 WHERE venue = "edgbaston" |
Below is an context that describes a 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 (opponent VARCHAR, record VARCHAR)
### Question:
Which opponent has a 53-24 record?
### Answer:
SELECT opponent FROM table_name_56 WHERE record = "53-24" |
Below is an context that describes a 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 (bike VARCHAR, laps VARCHAR, time VARCHAR)
### Question:
What is the Bike with 18 laps and +41.280 as the time?
### Answer:
SELECT bike FROM table_name_51 WHERE laps = 18 AND time = "+41.280" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24638867_4 (championship VARCHAR, partner VARCHAR)
### Question:
What championships had a match where Natasha Zvereva played as partner?
### Answer:
SELECT championship FROM table_24638867_4 WHERE partner = "Natasha Zvereva" |
Below is an context that describes a 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 (latin VARCHAR, greek VARCHAR)
### Question:
What is the Latin term for the Greek symbol μ?
### Answer:
SELECT latin FROM table_name_80 WHERE greek = "μ" |
Below is an context that describes a 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 (year INTEGER, venue VARCHAR, position VARCHAR)
### Question:
In what Year did Chernova come in 1st in Götzis, Austria?
### Answer:
SELECT SUM(year) FROM table_name_37 WHERE venue = "götzis, austria" AND position = "1st" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25352318_1 (team VARCHAR, races VARCHAR, position VARCHAR)
### Question:
When 7th is the position and 15 is the race who is the team?
### Answer:
SELECT team FROM table_25352318_1 WHERE races = 15 AND position = "7th" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2102898_1 (viewers__in_millions_ VARCHAR, broadcast_date VARCHAR)
### Question:
On broadcast date is 21march1970, how many people tuned in?
### Answer:
SELECT COUNT(viewers__in_millions_) FROM table_2102898_1 WHERE broadcast_date = "21March1970" |
Below is an context that describes a 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 (cuts_made INTEGER, top_25 VARCHAR, top_5 VARCHAR)
### Question:
Name the average cuts for top-25 more than 13 and top-5 less than 11
### Answer:
SELECT AVG(cuts_made) FROM table_name_5 WHERE top_25 > 13 AND top_5 < 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_1 (laps INTEGER, year VARCHAR)
### Question:
What is the total laps for the year 2011?
### Answer:
SELECT SUM(laps) FROM table_name_1 WHERE year = 2011 |
Below is an context that describes a 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 (system VARCHAR, current_version VARCHAR)
### Question:
What is the System with the Current version 3.0.0?
### Answer:
SELECT system FROM table_name_58 WHERE current_version = "3.0.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_12962773_16 (position VARCHAR, current_club VARCHAR)
### Question:
How many players are from energa czarni?
### Answer:
SELECT COUNT(position) FROM table_12962773_16 WHERE current_club = "Energa Czarni" |
Below is an context that describes a 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 (record VARCHAR, date VARCHAR)
### Question:
What is the Record from February 10?
### Answer:
SELECT record FROM table_name_47 WHERE date = "february 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_70 (position VARCHAR, overall VARCHAR)
### Question:
What is the position of the player with an overall of 45?
### Answer:
SELECT position FROM table_name_70 WHERE overall = 45 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24910733_1 (title VARCHAR, us_viewers__millions_ VARCHAR)
### Question:
How many titles are listed with 8.44 million viewers?
### Answer:
SELECT COUNT(title) FROM table_24910733_1 WHERE us_viewers__millions_ = "8.44" |
Below is an context that describes a 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 (week INTEGER, opponent VARCHAR)
### Question:
What is the highest week that was played against the Minnesota Vikings?
### Answer:
SELECT MAX(week) FROM table_name_5 WHERE opponent = "minnesota vikings" |
Below is an context that describes a 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 (position VARCHAR, team_from VARCHAR, pick__number VARCHAR)
### Question:
Which Position has a Team from of ottawa 67's, and a Pick # smaller than 47?
### Answer:
SELECT position FROM table_name_99 WHERE team_from = "ottawa 67's" AND pick__number < 47 |
Below is an context that describes a 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 (country VARCHAR, year_s__won VARCHAR)
### Question:
Which country won in 1988?
### Answer:
SELECT country FROM table_name_19 WHERE year_s__won = "1988" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28859177_2 (title VARCHAR, series__number VARCHAR)
### Question:
How many episode titles have series number 4?
### Answer:
SELECT COUNT(title) FROM table_28859177_2 WHERE series__number = 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_name_88 (home_team VARCHAR, away_team VARCHAR)
### Question:
What team was the home team when Manchester City was the away team?
### Answer:
SELECT home_team FROM table_name_88 WHERE away_team = "manchester 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_80 (tournament VARCHAR)
### Question:
Which 2010 has a Tournament of australian open?
### Answer:
SELECT 2010 FROM table_name_80 WHERE tournament = "australian open" |
Below is an context that describes a 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_22 (lost INTEGER, pct VARCHAR, total_games VARCHAR)
### Question:
What is the average number lost when the PCT is more than 0.7334 and the total number of games is larger than 48?
### Answer:
SELECT AVG(lost) FROM table_name_22 WHERE pct > 0.7334 AND total_games > 48 |
Below is an context that describes a 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 (result VARCHAR, venue VARCHAR, extra VARCHAR)
### Question:
Venue of melbourne , australia, and a Extra of 200 m has what results?
### Answer:
SELECT result FROM table_name_90 WHERE venue = "melbourne , australia" AND extra = "200 m" |
Below is an context that describes a 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 (division VARCHAR, season VARCHAR, country VARCHAR, apps VARCHAR)
### Question:
What is the total number of Division(s), when Country is China, when Apps is greater than 9, and when Season is 2008?
### Answer:
SELECT COUNT(division) FROM table_name_32 WHERE country = "china" AND apps > 9 AND 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 bank (state VARCHAR, no_of_customers INTEGER)
### Question:
Find the state which has the most number of customers.
### Answer:
SELECT state FROM bank GROUP BY state ORDER BY SUM(no_of_customers) 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_name_90 (date VARCHAR, catalogue VARCHAR)
### Question:
What is the Date of Catalogue number 602517739468?
### Answer:
SELECT date FROM table_name_90 WHERE catalogue = "602517739468" |
Below is an context that describes a 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 (capacity VARCHAR, club VARCHAR)
### Question:
What is the total number of capacity for the venue of the club, pirin?
### Answer:
SELECT COUNT(capacity) FROM table_name_30 WHERE club = "pirin" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1414743_1 (students INTEGER, pupil_teacher_ratio VARCHAR)
### Question:
What is the highest number of students with a teacher:student ratio of 20.8?
### Answer:
SELECT MAX(students) FROM table_1414743_1 WHERE pupil_teacher_ratio = "20.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 (livery VARCHAR, date VARCHAR, description VARCHAR)
### Question:
What livery was worn on the date before 1936, with the description of Gresley RF?
### Answer:
SELECT livery FROM table_name_82 WHERE date < 1936 AND description = "gresley rf" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE department_stores (dept_store_chain_id VARCHAR)
### Question:
What are the ids of the two department store chains with the largest number of department stores?
### Answer:
SELECT dept_store_chain_id FROM department_stores GROUP BY dept_store_chain_id ORDER BY COUNT(*) DESC LIMIT 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_25 (mascot VARCHAR, location VARCHAR)
### Question:
What is the Mascot of Brook?
### Answer:
SELECT mascot FROM table_name_25 WHERE location = "brook" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE entrepreneur (Company VARCHAR, People_ID VARCHAR, Money_Requested VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
### Question:
List the names of entrepreneurs and their companies in descending order of money requested?
### Answer:
SELECT T2.Name, T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Documents_with_expenses (document_id VARCHAR); CREATE TABLE Documents (document_id VARCHAR, document_name VARCHAR)
### Question:
What are the ids of documents with letter 's' in the name with any expense budgets.
### Answer:
SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%' |
Below is an context that describes a 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 (home VARCHAR, visitor VARCHAR)
### Question:
Who was the home team in the game having a visitor of Chicago?
### Answer:
SELECT home FROM table_name_21 WHERE visitor = "chicago" |
Below is an context that describes a 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 (leading_scorer VARCHAR, visitor VARCHAR)
### Question:
Who was the leading scorer that was a visitor of the Trail Blazers?
### Answer:
SELECT leading_scorer FROM table_name_35 WHERE visitor = "trail blazers" |
Below is an context that describes a 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 (founded VARCHAR, location VARCHAR)
### Question:
What is the Founded year of the school located in Paul Smiths, New York?
### Answer:
SELECT founded FROM table_name_99 WHERE location = "paul smiths, 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_11 (round INTEGER, pick VARCHAR, position VARCHAR, player VARCHAR)
### Question:
What round was john sutro, tackle, drafter with a pick lower than 79?
### Answer:
SELECT SUM(round) FROM table_name_11 WHERE position = "tackle" AND player = "john sutro" AND pick < 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_name_40 (leading_scorer VARCHAR, visitor VARCHAR, date VARCHAR)
### Question:
Who is the leading scorer for the game on March 22, 2008 with a visitor of Magic?
### Answer:
SELECT leading_scorer FROM table_name_40 WHERE visitor = "magic" AND date = "march 22, 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 (original_artist VARCHAR, week__number VARCHAR)
### Question:
What is the Original artist when the week number is top 9?
### Answer:
SELECT original_artist FROM table_name_39 WHERE week__number = "top 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_19 (score VARCHAR, attendance VARCHAR)
### Question:
What was the score for the game that had an attendance of 41,087?
### Answer:
SELECT score FROM table_name_19 WHERE attendance = "41,087" |
Below is an context that describes a 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 (points_for_higher INTEGER, points_for_foundation VARCHAR, points_for_ordinary VARCHAR, grade VARCHAR)
### Question:
What average points for highers has 0 has points for ordinary, and Ng as the grade, and less than 0 as points for foundation?
### Answer:
SELECT AVG(points_for_higher) FROM table_name_25 WHERE points_for_ordinary = 0 AND grade = "ng" AND points_for_foundation < 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_21 (chef VARCHAR, restaurant_name VARCHAR)
### Question:
Who is the chef at Lakes Bar and Grill?
### Answer:
SELECT chef FROM table_name_21 WHERE restaurant_name = "lakes bar and grill" |
Below is an context that describes a 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 (shooter VARCHAR, total VARCHAR)
### Question:
Who's the shooter with a total of 25?
### Answer:
SELECT shooter FROM table_name_57 WHERE total = "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_90 (decile VARCHAR, roll VARCHAR)
### Question:
tell me the total number of decile with a roll showing 251.
### Answer:
SELECT COUNT(decile) FROM table_name_90 WHERE roll = 251 |
Below is an context that describes a 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 (bronze INTEGER, rank VARCHAR, silver VARCHAR)
### Question:
How many Bronzes have a Rank of 9, and a Silver larger than 2?
### Answer:
SELECT SUM(bronze) FROM table_name_5 WHERE rank = "9" AND silver > 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_60 (date VARCHAR, label VARCHAR)
### Question:
When did sony music direct a label?
### Answer:
SELECT date FROM table_name_60 WHERE label = "sony music direct" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.