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_13 (wk_9 INTEGER, wk_11 VARCHAR, wk_7 VARCHAR, wk_6 VARCHAR, wk_10 VARCHAR)
### Question:
What is the highest week 9 that had a week 6 of 7, a week 10 of greater than 2, a week 7 of 5, and a week 11 less than 2?
### Answer:
SELECT MAX(wk_9) FROM table_name_13 WHERE wk_6 = "7" AND wk_10 > 2 AND wk_7 = "5" AND wk_11 < 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_78 (elevated VARCHAR, order VARCHAR)
### Question:
What's listed for the Elevated category that has an Order of Cardinal-Bishop?
### Answer:
SELECT elevated FROM table_name_78 WHERE order = "cardinal-bishop" |
Below is an context that describes a sql 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 (visitor VARCHAR, score VARCHAR)
### Question:
Who was the visiting team when the score was 1–3?
### Answer:
SELECT visitor FROM table_name_16 WHERE score = "1–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_92 (first_elected INTEGER, result VARCHAR, incumbent VARCHAR)
### Question:
What's the average year Charles N. Felton was re-elected?
### Answer:
SELECT AVG(first_elected) FROM table_name_92 WHERE result = "re-elected" AND incumbent = "charles n. felton" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11827596_2 (film_name VARCHAR, co_singer VARCHAR)
### Question:
what are the film names with the co-singer vinod rathod?
### Answer:
SELECT film_name FROM table_11827596_2 WHERE co_singer = "Vinod Rathod" |
Below is an context that describes a sql 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 (event VARCHAR, pursuit VARCHAR, sprint VARCHAR)
### Question:
Name the event with pursuit of 18th and sprint of 20th
### Answer:
SELECT event FROM table_name_25 WHERE pursuit = "18th" AND sprint = "20th" |
Below is an context that describes a sql 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 (april_28 VARCHAR, mar_24 VARCHAR)
### Question:
What is the April 28 rank when the Mar 24 is 17?
### Answer:
SELECT april_28 FROM table_name_92 WHERE mar_24 = "17" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_70 (cyclist VARCHAR, team VARCHAR, uci_points VARCHAR)
### Question:
Who is the cyclist from the GCE team and had UCI points under 20?
### Answer:
SELECT cyclist FROM table_name_70 WHERE team = "gce" AND uci_points < 20 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_11 (pick INTEGER, position VARCHAR, round VARCHAR)
### Question:
WHAT IS THE HIGHEST PICK WITH A TE POSITION, AND ROUND SMALLER THAN 2?
### Answer:
SELECT MAX(pick) FROM table_name_11 WHERE position = "te" AND round < 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_72 (right_ascension___j2000__ VARCHAR, ngc_number VARCHAR, declination___j2000__ VARCHAR)
### Question:
I want to know the right ascension which has an NGC less than 6575 and declination of °38′00″
### Answer:
SELECT right_ascension___j2000__ FROM table_name_72 WHERE ngc_number < 6575 AND declination___j2000__ = "°38′00″" |
Below is an context that describes a sql 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 (Id VARCHAR)
### Question:
What 2007 has 236 for 2006?
### Answer:
SELECT 2007 FROM table_name_70 WHERE 2006 = "236" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_24 (country VARCHAR, place VARCHAR, score VARCHAR)
### Question:
What is Country, when Place is "T3", and when Score is "67-70=137"?
### Answer:
SELECT country FROM table_name_24 WHERE place = "t3" AND score = 67 - 70 = 137 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10812293_3 (score VARCHAR, date VARCHAR)
### Question:
What was the score of the game on November 12?
### Answer:
SELECT score FROM table_10812293_3 WHERE date = "November 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 city (name VARCHAR, population INTEGER)
### Question:
Return the names of cities that have a population between 160000 and 900000 .
### Answer:
SELECT name FROM city WHERE population BETWEEN 160000 AND 900000 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_29033869_3 (round INTEGER, result__includes_margin_ VARCHAR)
### Question:
What is the earliest round where collingswood lost by 36 points?
### Answer:
SELECT MIN(round) FROM table_29033869_3 WHERE result__includes_margin_ = "Lost by 36 points" |
Below is an context that describes a sql 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 (play_by_play VARCHAR, studio_host VARCHAR, studio_analysts VARCHAR)
### Question:
WHich Play-by-play has a Studio host of gary tanguay, and a Studio analysts of donny marshall?
### Answer:
SELECT play_by_play FROM table_name_63 WHERE studio_host = "gary tanguay" AND studio_analysts = "donny marshall" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1140105_6 (circuit VARCHAR, date VARCHAR)
### Question:
What is the total amount of circuts dated 22 april?
### Answer:
SELECT COUNT(circuit) FROM table_1140105_6 WHERE date = "22 April" |
Below is an context that describes a sql 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 (country VARCHAR, place VARCHAR, score VARCHAR)
### Question:
What country placed t3 with a score of 70-65=135?
### Answer:
SELECT country FROM table_name_52 WHERE place = "t3" AND score = 70 - 65 = 135 |
Below is an context that describes a sql 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 (canadian_championship VARCHAR, league VARCHAR)
### Question:
What Canadian Championship has 84 (4) as the league?
### Answer:
SELECT canadian_championship FROM table_name_85 WHERE league = "84 (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_37 (track INTEGER, writer_s_ VARCHAR, time VARCHAR)
### Question:
What's the smallest track written by dennis linde that's 2:50 minutes long
### Answer:
SELECT MIN(track) FROM table_name_37 WHERE writer_s_ = "dennis linde" AND time = "2: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_2668254_17 (candidates VARCHAR, incumbent VARCHAR)
### Question:
Who were the running candidates when Joshua Sands was the incumbent?
### Answer:
SELECT candidates FROM table_2668254_17 WHERE incumbent = "Joshua Sands" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1139835_3 (winners VARCHAR, season_result VARCHAR)
### Question:
who is the winners where season result is 7th
### Answer:
SELECT winners FROM table_1139835_3 WHERE season_result = "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_name_84 (points INTEGER, place VARCHAR, draw VARCHAR)
### Question:
What is the highest point total that placed 3rd and has a draw larger than 5?
### Answer:
SELECT MAX(points) FROM table_name_84 WHERE place = "3rd" AND draw > 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_15417439_1 (identity VARCHAR, genus_species VARCHAR)
### Question:
What identities do the genus/species arabidopsis thaliana have?
### Answer:
SELECT identity FROM table_15417439_1 WHERE genus_species = "Arabidopsis thaliana" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27374004_2 (team_captain VARCHAR, shirt_sponsor VARCHAR)
### Question:
What is the team captain when the shirt sponser is quick?
### Answer:
SELECT team_captain FROM table_27374004_2 WHERE shirt_sponsor = "Quick" |
Below is an context that describes a sql 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 (fastest_lap VARCHAR, grand_prix VARCHAR)
### Question:
Who had the fastest lap at the Australian Grand Prix?
### Answer:
SELECT fastest_lap FROM table_name_36 WHERE grand_prix = "australian grand prix" |
Below is an context that describes a sql 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 (away_team VARCHAR, home_team VARCHAR)
### Question:
What was the away team when the home team was south melbourne?
### Answer:
SELECT away_team FROM table_name_85 WHERE home_team = "south 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_26914759_3 (position_in_table VARCHAR, incoming_manager VARCHAR)
### Question:
How many teams had gary megson as an incoming manager
### Answer:
SELECT COUNT(position_in_table) FROM table_26914759_3 WHERE incoming_manager = "Gary Megson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_12 (score VARCHAR, place VARCHAR, player VARCHAR)
### Question:
What is the Score of T2 Place Player Dow Finsterwald?
### Answer:
SELECT score FROM table_name_12 WHERE place = "t2" AND player = "dow finsterwald" |
Below is an context that describes a sql 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 (floors INTEGER, name VARCHAR)
### Question:
How many floors does detroit marriott at the renaissance center have?
### Answer:
SELECT MAX(floors) FROM table_name_70 WHERE name = "detroit marriott at the renaissance center" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13758945_3 (won VARCHAR, try_bonus VARCHAR)
### Question:
what's the won with try bonus being 8
### Answer:
SELECT won FROM table_13758945_3 WHERE try_bonus = "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_39 (home_team VARCHAR, venue VARCHAR)
### Question:
What did the home team score at MCG?
### Answer:
SELECT home_team AS score FROM table_name_39 WHERE venue = "mcg" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2668378_13 (candidates VARCHAR, incumbent VARCHAR)
### Question:
who was running where the winner is daniel montgomery
### Answer:
SELECT candidates FROM table_2668378_13 WHERE incumbent = "Daniel Montgomery" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_59 (to_par INTEGER, finish VARCHAR)
### Question:
What is the sum of To par when the Finish is t11?
### Answer:
SELECT SUM(to_par) FROM table_name_59 WHERE finish = "t11" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE manufacturers (name VARCHAR, headquarter VARCHAR, founder VARCHAR, revenue VARCHAR)
### Question:
Find the name, headquarter and founder of the manufacturer that has the highest revenue.
### Answer:
SELECT name, headquarter, founder FROM manufacturers ORDER BY revenue 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_58 (game INTEGER, date VARCHAR)
### Question:
What is the average Game, when Date is "December 23"?
### Answer:
SELECT AVG(game) FROM table_name_58 WHERE date = "december 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_64 (funny_car VARCHAR, year VARCHAR)
### Question:
Who won Funny Car in 2012?
### Answer:
SELECT funny_car FROM table_name_64 WHERE year = 2012 |
Below is an context that describes a sql 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 (high_points VARCHAR, team VARCHAR)
### Question:
What is High Points, when Team is @ Phoenix?
### Answer:
SELECT high_points FROM table_name_73 WHERE team = "@ phoenix" |
Below is an context that describes a sql 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 (Id VARCHAR)
### Question:
What is the result for 2004 when A is the result for 2005, and the result of q1 when 2009?
### Answer:
SELECT 2004 FROM table_name_32 WHERE 2005 = "a" AND 2009 = "q1" |
Below is an context that describes a sql 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, date VARCHAR)
### Question:
What was the score on April 12?
### Answer:
SELECT score FROM table_name_48 WHERE date = "april 12" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_56 (black VARCHAR, moves VARCHAR, tournament VARCHAR)
### Question:
What's the black with 24 moves in the dortmund tournament?
### Answer:
SELECT black FROM table_name_56 WHERE moves = 24 AND tournament = "dortmund" |
Below is an context that describes a sql 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 (higher_harmonics VARCHAR, speed VARCHAR)
### Question:
Which higher harmonics have a speed of 0.0821373?
### Answer:
SELECT higher_harmonics FROM table_name_36 WHERE speed = "0.0821373" |
Below is an context that describes a sql 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 (report VARCHAR, winning_driver VARCHAR)
### Question:
What Report has a Winning driver of mario razzauti?
### Answer:
SELECT report FROM table_name_72 WHERE winning_driver = "mario razzauti" |
Below is an context that describes a sql 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 (margin_of_victory VARCHAR, date VARCHAR)
### Question:
What was the margin of victory on Apr 23, 1967?
### Answer:
SELECT margin_of_victory FROM table_name_56 WHERE date = "apr 23, 1967" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1805191_36 (results VARCHAR, incumbent VARCHAR)
### Question:
What are the results of those elections for which Marcy Kaptur is the incumbent?
### Answer:
SELECT results FROM table_1805191_36 WHERE incumbent = "Marcy Kaptur" |
Below is an context that describes a sql 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 (release_date VARCHAR, sspec_number VARCHAR)
### Question:
Which Release date has a sSpec number of sr0pk(e1)?
### Answer:
SELECT release_date FROM table_name_55 WHERE sspec_number = "sr0pk(e1)" |
Below is an context that describes a sql 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 (points INTEGER, engine VARCHAR, year VARCHAR)
### Question:
What is the average Points when the engine was a climax straight-4 earlier than 1958?
### Answer:
SELECT AVG(points) FROM table_name_4 WHERE engine = "climax straight-4" AND year < 1958 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_59 (type VARCHAR, date VARCHAR, president VARCHAR, location VARCHAR, year VARCHAR)
### Question:
What is the Type with a Location with justus lipsius building, brussels, and a Year of 2012, and a President with herman van rompuy (1st term), and a Date with 23 may?
### Answer:
SELECT type FROM table_name_59 WHERE location = "justus lipsius building, brussels" AND year = 2012 AND president = "herman van rompuy (1st term)" AND date = "23 may" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_169693_1 (age_30_39 VARCHAR, age_10_19 VARCHAR)
### Question:
Name the age 30-39 and age 10-19 380
### Answer:
SELECT age_30_39 FROM table_169693_1 WHERE age_10_19 = 380 |
Below is an context that describes a sql 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 (name VARCHAR, country VARCHAR)
### Question:
What is the person's name that is from the country of SCO?
### Answer:
SELECT name FROM table_name_19 WHERE country = "sco" |
Below is an context that describes a sql 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 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
### Question:
What was the time/retired for the driver with fewer than 23 laps and grid larger than 23?
### Answer:
SELECT time_retired FROM table_name_75 WHERE laps < 23 AND grid > 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_21 (lost INTEGER, goals_scored VARCHAR, points VARCHAR)
### Question:
What the lost that has less than 10 points and less than 38 goals scored?
### Answer:
SELECT SUM(lost) FROM table_name_21 WHERE goals_scored < 38 AND points < 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_42 (competition VARCHAR, year INTEGER)
### Question:
What was the competition earlier than 1987?
### Answer:
SELECT competition FROM table_name_42 WHERE year < 1987 |
Below is an context that describes a sql 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 (event VARCHAR)
### Question:
What is the 2007-08 result when the event was Colonial Square?
### Answer:
SELECT 2007 AS _08 FROM table_name_74 WHERE event = "colonial square" |
Below is an context that describes a sql 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 (second_member VARCHAR, election VARCHAR)
### Question:
What is Second Member, when Election is "1835"?
### Answer:
SELECT second_member FROM table_name_99 WHERE election = "1835" |
Below is an context that describes a sql 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 (home VARCHAR, date VARCHAR, attendance VARCHAR, score VARCHAR)
### Question:
What is the home team of the match on 21 September 2008 with an attendance less than 2248 and a 2:0 score?
### Answer:
SELECT home FROM table_name_60 WHERE attendance < 2248 AND score = "2:0" AND date = "21 september 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_1147705_1 (engine_displacement VARCHAR, engine_type VARCHAR)
### Question:
What is the engine displacement for the engine type b5254 t?
### Answer:
SELECT engine_displacement FROM table_1147705_1 WHERE engine_type = "B5254 T" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE pets (petType VARCHAR, weight INTEGER)
### Question:
Find the maximum weight for each type of pet. List the maximum weight and pet type.
### Answer:
SELECT MAX(weight), petType FROM pets GROUP BY petType |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Customers (amount_outstanding INTEGER)
### Question:
What is maximum, minimum and average amount of outstanding of customer?
### Answer:
SELECT MAX(amount_outstanding), MIN(amount_outstanding), AVG(amount_outstanding) FROM Customers |
Below is an context that describes a sql 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 (date VARCHAR, record VARCHAR)
### Question:
Which Date has a Record of 7-9?
### Answer:
SELECT date FROM table_name_48 WHERE record = "7-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_50 (regular_season VARCHAR, year VARCHAR)
### Question:
Which regular season was 2013 in?
### Answer:
SELECT regular_season FROM table_name_50 WHERE year = 2013 |
Below is an context that describes a sql 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 (record VARCHAR, team VARCHAR)
### Question:
Which Record has a Team of philadelphia?
### Answer:
SELECT record FROM table_name_66 WHERE team = "philadelphia" |
Below is an context that describes a sql 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 (lost INTEGER, points VARCHAR, played VARCHAR)
### Question:
What is the highest number of losses with 23 points and 22 plays?
### Answer:
SELECT MAX(lost) FROM table_name_58 WHERE points = 23 AND played > 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_14603057_2 (class_a VARCHAR, school_year VARCHAR)
### Question:
Who was the Class A winner in 2006-07?
### Answer:
SELECT class_a FROM table_14603057_2 WHERE school_year = "2006-07" |
Below is an context that describes a sql 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 (attendance VARCHAR, game_site VARCHAR)
### Question:
What is the total attendance for Candlestick Park?
### Answer:
SELECT COUNT(attendance) FROM table_name_74 WHERE game_site = "candlestick 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_42 (game INTEGER, october VARCHAR)
### Question:
Name the least game for october 21
### Answer:
SELECT MIN(game) FROM table_name_42 WHERE october = 21 |
Below is an context that describes a sql 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 (name VARCHAR, marriage VARCHAR)
### Question:
Who had a disputed marriage?
### Answer:
SELECT name FROM table_name_57 WHERE marriage = "disputed" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20942925_1 (us_viewers__millions_ VARCHAR, written_by VARCHAR)
### Question:
What are all values for U.S. viewers(millions) with Kevin Curran as a writer?
### Answer:
SELECT us_viewers__millions_ FROM table_20942925_1 WHERE written_by = "Kevin Curran" |
Below is an context that describes a sql 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 (argon VARCHAR, neon VARCHAR)
### Question:
Name the Argon which has a Neon of 0.484?
### Answer:
SELECT argon FROM table_name_56 WHERE neon = "0.484" |
Below is an context that describes a sql 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 (track VARCHAR, opened VARCHAR)
### Question:
Where is the track located that opened in 1992?
### Answer:
SELECT track FROM table_name_34 WHERE opened = "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_1532779_1 (muslim___percentage_of_total_population_ VARCHAR, population_of_england_and_wales_000 VARCHAR)
### Question:
What is the muslim percentage of the 49634 population of england and wales 000?
### Answer:
SELECT muslim___percentage_of_total_population_ FROM table_1532779_1 WHERE population_of_england_and_wales_000 = 49634 |
Below is an context that describes a sql 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 (round VARCHAR, college VARCHAR)
### Question:
Which round is the player from Oregon from?
### Answer:
SELECT round FROM table_name_32 WHERE college = "oregon" |
Below is an context that describes a sql 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 (away_team VARCHAR, venue VARCHAR)
### Question:
What was the away team score at kardinia park?
### Answer:
SELECT away_team AS score FROM table_name_40 WHERE venue = "kardinia 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_39 (result VARCHAR, opponent VARCHAR)
### Question:
what is the result when the opponent is blackburn rovers?
### Answer:
SELECT result FROM table_name_39 WHERE opponent = "blackburn rovers" |
Below is an context that describes a sql 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 (home VARCHAR, visitor VARCHAR)
### Question:
What was the home team when the visiting team was Toronto?
### Answer:
SELECT home FROM table_name_22 WHERE visitor = "toronto" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE tryout (cName VARCHAR, decision VARCHAR); CREATE TABLE college (state VARCHAR, enr VARCHAR, cName VARCHAR)
### Question:
What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision.
### Answer:
SELECT DISTINCT T1.state, T1.enr FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2233872_1 (Otl INTEGER, l VARCHAR)
### Question:
What was the maximum OTL if L is 28?
### Answer:
SELECT MAX(Otl) FROM table_2233872_1 WHERE l = 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 table_name_92 (skip VARCHAR, nation VARCHAR)
### Question:
What is Spain's skip?
### Answer:
SELECT skip FROM table_name_92 WHERE nation = "spain" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_65 (owner VARCHAR, frequency VARCHAR)
### Question:
Who owns the station with the frequency FM 92.1?
### Answer:
SELECT owner FROM table_name_65 WHERE frequency = "fm 92.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_29202276_2 (route_via VARCHAR, destination VARCHAR)
### Question:
What is the route/via when the destination is listed as Madurai?
### Answer:
SELECT route_via FROM table_29202276_2 WHERE destination = "Madurai" |
Below is an context that describes a sql 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 (high_rebounds VARCHAR, game VARCHAR)
### Question:
Who had the high rebounds for game 12?
### Answer:
SELECT high_rebounds FROM table_name_55 WHERE game = 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_81 (semi_finalists VARCHAR, runner_up VARCHAR)
### Question:
Who were the semi finalists when Alexia Dechaume-Balleret Sandrine testud was the runner-up?
### Answer:
SELECT semi_finalists FROM table_name_81 WHERE runner_up = "alexia dechaume-balleret sandrine testud" |
Below is an context that describes a sql 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 (position VARCHAR, pick VARCHAR)
### Question:
What position did pick 14 play?
### Answer:
SELECT position FROM table_name_72 WHERE pick = 14 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20367820_16 (not_out VARCHAR, average VARCHAR)
### Question:
How many no outs are there for an average of 43.70?
### Answer:
SELECT not_out FROM table_20367820_16 WHERE average = "43.70" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Visits_Restaurant (Id VARCHAR); CREATE TABLE Student (Id VARCHAR)
### Question:
Which student visited restaurant most often? List student's first name and last name.
### Answer:
SELECT Student.Fname, Student.Lname FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID GROUP BY Student.StuID 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_3 (chinese_title VARCHAR, rank VARCHAR, average VARCHAR, peak VARCHAR)
### Question:
What Chinese Title Ranking #7 has an Average of 32 and Peak less than 38?
### Answer:
SELECT chinese_title FROM table_name_3 WHERE average = 32 AND peak < 38 AND rank = 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_70 (frequency VARCHAR, state VARCHAR, call_sign VARCHAR)
### Question:
What is the frequency of the radio station in Indiana that has a call sign of WGNR?
### Answer:
SELECT frequency FROM table_name_70 WHERE state = "indiana" AND call_sign = "wgnr" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26360571_2 (assists VARCHAR, opponent VARCHAR)
### Question:
List the number of assists against illinois-chicago.
### Answer:
SELECT assists FROM table_26360571_2 WHERE opponent = "Illinois-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_42 (attendance INTEGER, venue VARCHAR, opponent VARCHAR)
### Question:
What is the highest attendance for the match against west ham united at the venue of a?
### Answer:
SELECT MAX(attendance) FROM table_name_42 WHERE venue = "a" AND opponent = "west ham 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_name_62 (total VARCHAR, nation VARCHAR, silver VARCHAR, bronze VARCHAR)
### Question:
How many medals for spain that has 1 silver and 1 bronze?
### Answer:
SELECT COUNT(total) FROM table_name_62 WHERE silver = "1" AND bronze = "1" AND nation = "spain" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27069503_2 (season VARCHAR, conf_record VARCHAR)
### Question:
In what season was the conference record for the Pandas 15-1-1?
### Answer:
SELECT season FROM table_27069503_2 WHERE conf_record = "15-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_13857700_1 (mens_doubles VARCHAR, year VARCHAR)
### Question:
who is the the mens doubles with year being 1978
### Answer:
SELECT mens_doubles FROM table_13857700_1 WHERE year = 1978 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_65 (rank INTEGER, lane VARCHAR)
### Question:
What is the smallest rank with a Lane of 1?
### Answer:
SELECT MIN(rank) FROM table_name_65 WHERE lane = 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_2203760_4 (domestic_box_office VARCHAR, foreign_box_office VARCHAR)
### Question:
What was the domestic box office for the film that had a foreign box office of $26,600,000?
### Answer:
SELECT domestic_box_office FROM table_2203760_4 WHERE foreign_box_office = "$26,600,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_32 (purse___us$__ VARCHAR, race VARCHAR)
### Question:
What was the Illinois Derby purse?
### Answer:
SELECT purse___us$__ FROM table_name_32 WHERE race = "illinois derby" |
Below is an context that describes a sql 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 (city VARCHAR, erp__analog__digital_ VARCHAR)
### Question:
Which City has a 360kw 90kw ERP?
### Answer:
SELECT city FROM table_name_32 WHERE erp__analog__digital_ = "360kw 90kw" |
Below is an context that describes a sql 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 (goal_difference INTEGER, club VARCHAR)
### Question:
What is the average goal difference using slavia sofia club?
### Answer:
SELECT AVG(goal_difference) FROM table_name_8 WHERE club = "slavia sofia" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15624586_2 (deficit___surplus_ VARCHAR, country VARCHAR)
### Question:
What is the deficit (-surplus) of France?
### Answer:
SELECT deficit___surplus_ FROM table_15624586_2 WHERE country = "France" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_24330912_1 (Id VARCHAR)
### Question:
What is the lowest overall amount of times they've been in 3rd?
### Answer:
SELECT MIN(3 AS rd) FROM table_24330912_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 FLIGHTS (Airline VARCHAR); CREATE TABLE AIRLINES (Abbreviation VARCHAR, Country VARCHAR, Airline VARCHAR, uid VARCHAR)
### Question:
Find the abbreviation and country of the airline that has fewest number of flights?
### Answer:
SELECT T1.Abbreviation, T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline ORDER BY COUNT(*) LIMIT 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.