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_32 (crowd INTEGER, venue VARCHAR)
### Question:
What is the size of the smallest crowd that watched a game at Arden Street Oval?
### Answer:
SELECT MIN(crowd) FROM table_name_32 WHERE venue = "arden street oval" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE student (sex VARCHAR, age INTEGER)
### Question:
Find the number of students whose age is older than the average age for each gender.
### Answer:
SELECT COUNT(*), sex FROM student WHERE age > (SELECT AVG(age) FROM student) GROUP BY sex |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (date VARCHAR, opponent VARCHAR)
### Question:
What date did the Ravens play the buffalo bills?
### Answer:
SELECT date FROM table_name_97 WHERE opponent = "buffalo bills" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17525955_2 (share VARCHAR, rating VARCHAR)
### Question:
How many share values are listed for the episode with a rating/share value of 2.6/8?
### Answer:
SELECT COUNT(share) FROM table_17525955_2 WHERE rating / SHARE(18 AS –49) = 2.6 / 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_56 (world_record VARCHAR)
### Question:
What's the 102kg when the snatch was snatch and the olympic record was the world record?
### Answer:
SELECT 102 AS kg FROM table_name_56 WHERE world_record = "olympic record" AND "snatch" = "snatch" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE teacher (Name VARCHAR, Age VARCHAR)
### Question:
List the names of teachers in ascending order of age.
### Answer:
SELECT Name FROM teacher ORDER BY Age |
Below is an context that describes a sql 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 (written_by VARCHAR, original_airdate VARCHAR)
### Question:
Who wrote the episode that originally aired on March 1, 1998?
### Answer:
SELECT written_by FROM table_name_42 WHERE original_airdate = "march 1, 1998" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (flap INTEGER, bike VARCHAR, race VARCHAR)
### Question:
What is the highest FLap by a Honda NSR500 bike after Race 16?
### Answer:
SELECT MAX(flap) FROM table_name_97 WHERE bike = "honda nsr500" AND race > 16 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_62 (driver VARCHAR, laps VARCHAR)
### Question:
Who is the driver for laps of 45
### Answer:
SELECT driver FROM table_name_62 WHERE laps = 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_name_39 (round VARCHAR, competition VARCHAR, club VARCHAR)
### Question:
Which round is the UEFA Cup Compeition and the Kolkheti-1913 Poti Cub?
### Answer:
SELECT round FROM table_name_39 WHERE competition = "uefa cup" AND club = "kolkheti-1913 poti" |
Below is an context that describes a sql 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 (wickets INTEGER, maidens VARCHAR, best VARCHAR)
### Question:
What is the largest number of wickets when there are more than 630 maidens and a best of 7/72?
### Answer:
SELECT MAX(wickets) FROM table_name_55 WHERE maidens > 630 AND best = "7/72" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (catalog VARCHAR, format VARCHAR, label VARCHAR, region VARCHAR)
### Question:
What's the catalog number for a record from columbia formatted in a cd/dvd that's from the United States region?
### Answer:
SELECT catalog FROM table_name_97 WHERE label = "columbia" AND region = "united states" AND format = "cd/dvd" |
Below is an context that describes a sql 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 (laps VARCHAR, time_retired VARCHAR)
### Question:
What shows for laps when the Time/Retired was +1:08.577?
### Answer:
SELECT laps FROM table_name_48 WHERE time_retired = "+1:08.577" |
Below is an context that describes a sql 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 (partner VARCHAR, date VARCHAR)
### Question:
Who was the partner for the game on October 20, 2013?
### Answer:
SELECT partner FROM table_name_80 WHERE date = "october 20, 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_93 (driver VARCHAR, laps VARCHAR, time_retired VARCHAR)
### Question:
What driver had under 22 laps and a Time/Retired of ignition?
### Answer:
SELECT driver FROM table_name_93 WHERE laps < 22 AND time_retired = "ignition" |
Below is an context that describes a sql 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 (first_elected INTEGER, district VARCHAR)
### Question:
What is the average first elected for the district South Carolina 2?
### Answer:
SELECT AVG(first_elected) FROM table_name_75 WHERE district = "south carolina 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_20866024_4 (engine VARCHAR, model_designation VARCHAR)
### Question:
How many engines are there for model 97H00?
### Answer:
SELECT COUNT(engine) FROM table_20866024_4 WHERE model_designation = "97H00" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_95 (date VARCHAR, road_team VARCHAR, game VARCHAR)
### Question:
On what date was Portland on the road for Game 2?
### Answer:
SELECT date FROM table_name_95 WHERE road_team = "portland" AND game = "game 2" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_88 (games INTEGER, name VARCHAR, assists VARCHAR)
### Question:
What is the mean number of games for pablo prigioni when there are more than 14 assists?
### Answer:
SELECT AVG(games) FROM table_name_88 WHERE name = "pablo prigioni" AND assists > 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 AIRLINES (Country VARCHAR)
### Question:
How many airlines are from USA?
### Answer:
SELECT COUNT(*) FROM AIRLINES WHERE Country = "USA" |
Below is an context that describes a sql 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 (date VARCHAR, pole_position VARCHAR)
### Question:
What date was Joakim Bonnier in the pole position?
### Answer:
SELECT date FROM table_name_21 WHERE pole_position = "joakim bonnier" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25561038_1 (points VARCHAR, position VARCHAR)
### Question:
List the total points for the 1st place team.
### Answer:
SELECT points FROM table_25561038_1 WHERE 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_name_14 (athlete VARCHAR, country_state VARCHAR)
### Question:
Which Athlete is from the United Kingdom?
### Answer:
SELECT athlete FROM table_name_14 WHERE country_state = "united kingdom" |
Below is an context that describes a sql 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 (attendance__away_ INTEGER, venue VARCHAR, date VARCHAR)
### Question:
Name the least attendance with venue of away on 24 august 2007
### Answer:
SELECT MIN(attendance__away_) FROM table_name_99 WHERE venue = "away" AND date = "24 august 2007" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_19 (location VARCHAR, record VARCHAR)
### Question:
Which location held the bout that led to a 4-3 record?
### Answer:
SELECT location FROM table_name_19 WHERE record = "4-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_82 (time VARCHAR, nfl_recap VARCHAR, game_site VARCHAR)
### Question:
What is the Time of the game at Arrowhead Stadium with an NFL Recap of recap?
### Answer:
SELECT time FROM table_name_82 WHERE nfl_recap = "recap" AND game_site = "arrowhead stadium" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_69 (constructor VARCHAR, entrant VARCHAR, rounds VARCHAR)
### Question:
What was the constructor for jo bonnier of 6 rounds?
### Answer:
SELECT constructor FROM table_name_69 WHERE entrant = "jo bonnier" AND rounds = "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_48 (total__kg_ INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
### Question:
Which Total (kg) has a Clean & Jerk smaller than 153, and a Snatch smaller than 100?
### Answer:
SELECT MIN(total__kg_) FROM table_name_48 WHERE clean_ & _jerk < 153 AND snatch < 100 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_93 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR)
### Question:
Which Total has a Silver larger than 8, and a Bronze of 20, and a Gold smaller than 20?
### Answer:
SELECT COUNT(total) FROM table_name_93 WHERE silver > 8 AND bronze = 20 AND gold < 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_97 (constructor VARCHAR, grand_prix VARCHAR)
### Question:
Who constructed the car that won the Canadian Grand Prix?
### Answer:
SELECT constructor FROM table_name_97 WHERE grand_prix = "canadian 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_23 (muklom VARCHAR, halang VARCHAR)
### Question:
Which Muklom has a Halang of wɯ¹cʰi¹?
### Answer:
SELECT muklom FROM table_name_23 WHERE halang = "wɯ¹cʰ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 Ref_Transaction_Types (transaction_type_description VARCHAR, transaction_type_code VARCHAR)
### Question:
Show the description of transaction type with code "PUR".
### Answer:
SELECT transaction_type_description FROM Ref_Transaction_Types WHERE transaction_type_code = "PUR" |
Below is an context that describes a sql 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 (played VARCHAR, ga VARCHAR)
### Question:
What is the total played games of a 22 G.A.?
### Answer:
SELECT COUNT(played) FROM table_name_24 WHERE ga = "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_22 (year INTEGER, result VARCHAR)
### Question:
What year was the game that ended with a score of 24-14?
### Answer:
SELECT AVG(year) FROM table_name_22 WHERE result = "24-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_25931938_1 (age INTEGER, aggregate VARCHAR)
### Question:
What is the age of the celebrity who had a 402 aggregate?
### Answer:
SELECT MAX(age) FROM table_25931938_1 WHERE aggregate = 402 |
Below is an context that describes a sql 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 (year VARCHAR, nominee VARCHAR)
### Question:
What year was Mary Elizabeth Mastrantonio nominated?
### Answer:
SELECT year FROM table_name_63 WHERE nominee = "mary elizabeth mastrantonio" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE STUDENT (Id VARCHAR)
### Question:
Find the number of students in total.
### Answer:
SELECT COUNT(*) FROM 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_name_57 (loss VARCHAR, date VARCHAR)
### Question:
What loss occurred on August 21?
### Answer:
SELECT loss FROM table_name_57 WHERE date = "august 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_62 (rank INTEGER, title VARCHAR)
### Question:
What is the rank of The Big Doll House?
### Answer:
SELECT MIN(rank) FROM table_name_62 WHERE title = "the big doll house" |
Below is an context that describes a sql 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 (episode__number INTEGER, episode_name VARCHAR)
### Question:
What is the average episode # with a name of the origin of Donnie (part 1)?
### Answer:
SELECT AVG(episode__number) FROM table_name_75 WHERE episode_name = "the origin of donnie (part 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_56 (metal VARCHAR, size VARCHAR)
### Question:
Which metal has a size that is 26mm (across scallops)?
### Answer:
SELECT metal FROM table_name_56 WHERE size = "26mm (across scallops)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_67 (country VARCHAR, rank VARCHAR, notes VARCHAR)
### Question:
What country were the athletes where ranked smaller than 5 with notes listed as fb?
### Answer:
SELECT country FROM table_name_67 WHERE rank < 5 AND notes = "fb" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2638104_1 (signal_power VARCHAR, callsign VARCHAR)
### Question:
What is the signal power for JOAB-DTV?
### Answer:
SELECT signal_power FROM table_2638104_1 WHERE callsign = "JOAB-DTV" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (wins INTEGER, year VARCHAR, class VARCHAR)
### Question:
Which Wins have a Year of 1963, and a Class of 50cc?
### Answer:
SELECT AVG(wins) FROM table_name_54 WHERE year = 1963 AND class = "50cc" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE poker_player (People_ID VARCHAR, Earnings VARCHAR); CREATE TABLE people (Birth_Date VARCHAR, People_ID VARCHAR)
### Question:
What is the birth date of the poker player with the lowest earnings?
### Answer:
SELECT T1.Birth_Date FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Earnings 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_12592074_1 (launched VARCHAR, commissioned_or_completed_ VARCHAR, _ VARCHAR)
### Question:
When was the ship launched when the commissioned or completed(*) is 6 june 1864?
### Answer:
SELECT launched FROM table_12592074_1 WHERE commissioned_or_completed_ * _ = "6 June 1864" |
Below is an context that describes a sql 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)
### Question:
Which Game has a Record of 27-11-10?
### Answer:
SELECT AVG(game) FROM table_name_19 WHERE record = "27-11-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_53 (position VARCHAR, overall VARCHAR, round VARCHAR, pick__number VARCHAR)
### Question:
What was the Position of Pick #23 in a Round less than 5 with 23 Overall?
### Answer:
SELECT position FROM table_name_53 WHERE round < 5 AND pick__number = 23 AND overall = 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_82 (year VARCHAR, notes VARCHAR)
### Question:
In what year is the notes distance 1.83m?
### Answer:
SELECT year FROM table_name_82 WHERE notes = "1.83m" |
Below is an context that describes a sql 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 (result VARCHAR, date VARCHAR)
### Question:
What was the result on july 16, 1992?
### Answer:
SELECT result FROM table_name_4 WHERE date = "july 16, 1992" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_91 (week_2 VARCHAR, week_1 VARCHAR)
### Question:
What kind of Week 2 that has a Week 1 of mandy ashford?
### Answer:
SELECT week_2 FROM table_name_91 WHERE week_1 = "mandy ashford" |
Below is an context that describes a sql 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 (gold INTEGER, total VARCHAR, silver VARCHAR)
### Question:
what is the gold count with total less than 3 and more than 1 silver?
### Answer:
SELECT MIN(gold) FROM table_name_68 WHERE total < 3 AND silver > 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_93 (attendance INTEGER, score VARCHAR)
### Question:
What was the the total top attendance with a score of 0 – 4?
### Answer:
SELECT MAX(attendance) FROM table_name_93 WHERE score = "0 – 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_23224961_2 (unterfranken_west VARCHAR, oberfranken_ost VARCHAR)
### Question:
When wacker marktredwitz is the oberfranken ost how many unterfranken wests are there?
### Answer:
SELECT COUNT(unterfranken_west) FROM table_23224961_2 WHERE oberfranken_ost = "Wacker Marktredwitz" |
Below is an context that describes a sql 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 (laps INTEGER, time_retired VARCHAR)
### Question:
What is the highest Laps with a Time/Retired Wheel?
### Answer:
SELECT MAX(laps) FROM table_name_80 WHERE time_retired = "wheel" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16527640_2 (location VARCHAR, player VARCHAR)
### Question:
What locations did sid o'neill play football?
### Answer:
SELECT location FROM table_16527640_2 WHERE player = "Sid O'Neill" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22583466_5 (reporters VARCHAR, year VARCHAR)
### Question:
In 1976, who was the reporter for the Belmont Stakes?
### Answer:
SELECT reporters FROM table_22583466_5 WHERE year = 1976 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_66 (tournament VARCHAR)
### Question:
what is 2012 when the tournament is cincinnati masters?
### Answer:
SELECT 2012 FROM table_name_66 WHERE tournament = "cincinnati masters" |
Below is an context that describes a sql 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 (director VARCHAR, title VARCHAR)
### Question:
Who was the director of the episode Rebel Rabbit?
### Answer:
SELECT director FROM table_name_90 WHERE title = "rebel rabbit" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2268216_1 (average_speed__mph_ VARCHAR, year VARCHAR)
### Question:
How many average speeds are listed in the year 2003?
### Answer:
SELECT COUNT(average_speed__mph_) FROM table_2268216_1 WHERE year = "2003" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_90 (mpg_us_combined INTEGER, transmission VARCHAR, manufacturer VARCHAR, green_rating VARCHAR, mpg_uk_combined VARCHAR)
### Question:
What is the lowest MPG-US combined for a green rating of E, mpg in the UK- combined of under 42.2, manufacturer of Volkswagen, and an M6 transmission?
### Answer:
SELECT MIN(mpg_us_combined) FROM table_name_90 WHERE green_rating = "e" AND mpg_uk_combined < 42.2 AND manufacturer = "volkswagen" AND transmission = "m6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_31 (scorers VARCHAR, opponent VARCHAR, date VARCHAR)
### Question:
What shows for Scorers when the Opponent was west germany on October 7?
### Answer:
SELECT scorers FROM table_name_31 WHERE opponent = "west germany" AND date = "october 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 musical (Nominee VARCHAR, Award VARCHAR)
### Question:
What are the distinct nominees of the musicals with the award that is not "Tony Award"?
### Answer:
SELECT DISTINCT Nominee FROM musical WHERE Award <> "Tony Award" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22447251_2 (province VARCHAR, _community VARCHAR, hometown VARCHAR)
### Question:
Which province is Villa Bisonó in?
### Answer:
SELECT province, _community FROM table_22447251_2 WHERE hometown = "Villa Bisonó" |
Below is an context that describes 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 (people_id VARCHAR, People_ID VARCHAR); CREATE TABLE people (people_id VARCHAR, People_ID VARCHAR)
### Question:
How many persons are not body builders?
### Answer:
SELECT COUNT(*) FROM people WHERE NOT people_id IN (SELECT People_ID 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 table_name_59 (place VARCHAR, score VARCHAR)
### Question:
In what place did the golfer that scored 68-70-69=207 finish?
### Answer:
SELECT place FROM table_name_59 WHERE score = 68 - 70 - 69 = 207 |
Below is an context that describes a sql 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 (ending VARCHAR, british VARCHAR, examples VARCHAR)
### Question:
Which Ending has British of iz, and Examples of achilles, appendices, fæces?
### Answer:
SELECT ending FROM table_name_49 WHERE british = "iz" AND examples = "achilles, appendices, fæces" |
Below is an context that describes a sql 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 (result VARCHAR, game VARCHAR)
### Question:
What is the result for game 5?
### Answer:
SELECT result FROM table_name_65 WHERE game = "game 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 Bookings (Workshop_Group_ID VARCHAR, Status_Code VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Workshop_Group_ID VARCHAR)
### Question:
What are the names of the workshop groups that have bookings with status code "stop"?
### Answer:
SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = "stop" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_18 (team VARCHAR, location_attendance VARCHAR, score VARCHAR)
### Question:
Which team played in the Boston Garden when the final score was L 118-130?
### Answer:
SELECT team FROM table_name_18 WHERE location_attendance = "boston garden" AND score = "l 118-130" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE party (party_name VARCHAR, party_id VARCHAR); CREATE TABLE party_events (party_id VARCHAR)
### Question:
Show party names and the number of events for each party.
### Answer:
SELECT T2.party_name, COUNT(*) FROM party_events AS T1 JOIN party AS T2 ON T1.party_id = T2.party_id GROUP BY T1.party_id |
Below is an context that describes a sql 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 (away_team VARCHAR)
### Question:
What is Away team Carlton's score?
### Answer:
SELECT away_team AS score FROM table_name_59 WHERE away_team = "carlton" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_42 (result VARCHAR, theme VARCHAR)
### Question:
What is the Result when the Theme was by Dolly Parton?
### Answer:
SELECT result FROM table_name_42 WHERE theme = "dolly parton" |
Below is an context that describes a sql 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 (federal_state VARCHAR, representatives_of_national_average VARCHAR)
### Question:
Which federal state has 6 representatives of national average?
### Answer:
SELECT federal_state FROM table_name_3 WHERE representatives_of_national_average = "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_16 (rank INTEGER, borough VARCHAR, population VARCHAR)
### Question:
Which Rank is the lowest one that has a Borough of richmondshire, and a Population larger than 8,178?
### Answer:
SELECT MIN(rank) FROM table_name_16 WHERE borough = "richmondshire" AND population > 8 OFFSET 178 |
Below is an context that describes a sql 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 (resolution VARCHAR, network VARCHAR)
### Question:
What is the resolution of the network Canal de las Estrellas?
### Answer:
SELECT resolution FROM table_name_96 WHERE network = "canal de las estrellas" |
Below is an context that describes a sql 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 (height INTEGER, player VARCHAR)
### Question:
What is the lowest height for Rans Brempong?
### Answer:
SELECT MIN(height) FROM table_name_37 WHERE player = "rans brempong" |
Below is an context that describes a sql 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 (date_withdrawn VARCHAR, fleet_numbers VARCHAR)
### Question:
What day withdrawn is associated with fleet numbers of 12, 25, 42–46, 50, 70–71, 74–77, 106–107, 129?
### Answer:
SELECT date_withdrawn FROM table_name_96 WHERE fleet_numbers = "12, 25, 42–46, 50, 70–71, 74–77, 106–107, 129" |
Below is an context that describes a sql 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 (location VARCHAR, event VARCHAR)
### Question:
What is the location of the match with an event of ecc 8: comeback?
### Answer:
SELECT location FROM table_name_49 WHERE event = "ecc 8: comeback" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22297140_3 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
### Question:
What was the date in which Behtash Fariba left his team?
### Answer:
SELECT date_of_vacancy FROM table_22297140_3 WHERE outgoing_manager = "Behtash Fariba" |
Below is an context that describes a sql 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 (score VARCHAR, surface VARCHAR, tournament VARCHAR)
### Question:
When the surface is clay, and the tournament of barcelona what is the score?
### Answer:
SELECT score FROM table_name_29 WHERE surface = "clay" AND tournament = "barcelona" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_43 (earnings___ VARCHAR, events VARCHAR, rank VARCHAR)
### Question:
How much money did the player ranked above 3 with under 28 events earn?
### Answer:
SELECT COUNT(earnings___) AS $__ FROM table_name_43 WHERE events < 28 AND rank < 3 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10236830_4 (nomination VARCHAR, director VARCHAR)
### Question:
Srdjan Dragojevic worked on a film which earned what nomination?
### Answer:
SELECT nomination FROM table_10236830_4 WHERE director = "Srdjan Dragojevic" |
Below is an context that describes a sql 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 (slalom INTEGER, average INTEGER)
### Question:
What's the slalom when the average time was greater than 99.25?
### Answer:
SELECT AVG(slalom) FROM table_name_5 WHERE average > 99.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_67 (club VARCHAR, points VARCHAR)
### Question:
What club had 56 points?
### Answer:
SELECT club FROM table_name_67 WHERE points = "56" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE shop (address VARCHAR, num_of_staff VARCHAR, shop_id VARCHAR); CREATE TABLE happy_hour (address VARCHAR, num_of_staff VARCHAR, shop_id VARCHAR)
### Question:
Find the address and staff number of the shops that do not have any happy hour.
### Answer:
SELECT address, num_of_staff FROM shop WHERE NOT shop_id IN (SELECT shop_id FROM happy_hour) |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12294557_3 (us_airdate VARCHAR, canadian_airdate VARCHAR)
### Question:
what are the u.s. air dates with a Canadian air date of may 4, 2009
### Answer:
SELECT us_airdate FROM table_12294557_3 WHERE canadian_airdate = "May 4, 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_78 (player VARCHAR, matches VARCHAR)
### Question:
what player matched up with 9
### Answer:
SELECT player FROM table_name_78 WHERE matches = "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_1543845_63 (locale VARCHAR, stolen_ends VARCHAR, shot_pct VARCHAR)
### Question:
What was the location when the stolen ends is 12 and shot pct is 77%?
### Answer:
SELECT locale FROM table_1543845_63 WHERE stolen_ends = 12 AND shot_pct = "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_14132239_3 (defensive VARCHAR, month VARCHAR, rookie VARCHAR)
### Question:
Who was the defensive award winner in February when the rookie award was given to Rhys Duch?
### Answer:
SELECT defensive FROM table_14132239_3 WHERE month = "February" AND rookie = "Rhys Duch" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11614581_3 (seat VARCHAR, name_in_polish VARCHAR)
### Question:
What seat does Gubernia Warszawska hold?
### Answer:
SELECT seat FROM table_11614581_3 WHERE name_in_polish = "Gubernia warszawska" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE complaints (complaint_type_code VARCHAR)
### Question:
How many distinct complaint type codes are there in the database?
### Answer:
SELECT COUNT(DISTINCT complaint_type_code) FROM complaints |
Below is an context that describes a sql 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 (result VARCHAR, score VARCHAR, date VARCHAR)
### Question:
What is the Result with a Score of 1–0, and a Date with 18 april 2009?
### Answer:
SELECT result FROM table_name_35 WHERE score = "1–0" AND date = "18 april 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_89 (away_team VARCHAR)
### Question:
What is the Away team score for Away team Melbourne?
### Answer:
SELECT away_team AS score FROM table_name_89 WHERE away_team = "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_10581768_2 (type VARCHAR, institution VARCHAR)
### Question:
What type institution is point park university
### Answer:
SELECT type FROM table_10581768_2 WHERE institution = "Point Park 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_68 (course VARCHAR, edition VARCHAR)
### Question:
What was the course called that had an Edition of 117th?
### Answer:
SELECT course FROM table_name_68 WHERE edition = "117th" |
Below is an context that describes a sql 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 (driver VARCHAR, class VARCHAR, navigator VARCHAR)
### Question:
Who was the driver of the vehicle having class of CM22 and navigator of Macneall?
### Answer:
SELECT driver FROM table_name_86 WHERE class = "cm22" AND navigator = "macneall" |
Below is an context that describes a sql 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 (class VARCHAR, name VARCHAR)
### Question:
for the name of jamar jackson what is the class?
### Answer:
SELECT class FROM table_name_87 WHERE name = "jamar jackson" |
Below is an context that describes a sql 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 (overall INTEGER, pick VARCHAR, college VARCHAR)
### Question:
How many overalls have a pick greater than 19, with florida as the college?
### Answer:
SELECT SUM(overall) FROM table_name_24 WHERE pick > 19 AND college = "florida" |
Below is an context that describes 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 (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR)
### Question:
Which city has hosted the most events?
### Answer:
SELECT T1.city FROM city AS T1 JOIN hosting_city AS T2 ON T1.city_id = T2.host_city GROUP BY T2.host_city ORDER BY COUNT(*) DESC LIMIT 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.