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_11 (draws VARCHAR, losses VARCHAR, efficiency__percentage VARCHAR)
### Question:
what is the number of draws when there are 4 losses and 28.6% efficiency?
### Answer:
SELECT COUNT(draws) FROM table_name_11 WHERE losses = 4 AND efficiency__percentage = "28.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_82 (finish VARCHAR, start VARCHAR, team VARCHAR, year VARCHAR)
### Question:
What is the finish for the chip ganassi racing team that was later than 2010 and a Start of 17?
### Answer:
SELECT finish FROM table_name_82 WHERE team = "chip ganassi racing" AND year > 2010 AND start = "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_20 (series VARCHAR, title_rank VARCHAR)
### Question:
What series had the title rank of various?
### Answer:
SELECT series FROM table_name_20 WHERE title_rank = "various" |
Below is an context that describes a sql 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 (copies_per_particle VARCHAR, size___s_base_pair__ VARCHAR, location VARCHAR, rna_segment__gene_ VARCHAR)
### Question:
What is the number of copies per particle having a nonstructural location, an RNA segment over 5 and a base pair size under 751?
### Answer:
SELECT copies_per_particle FROM table_name_88 WHERE location = "nonstructural" AND rna_segment__gene_ > 5 AND size___s_base_pair__ < 751 |
Below is an context that describes a sql 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 (mixed_doubles VARCHAR, season VARCHAR)
### Question:
Who won mixed doubles in the 2002 season?
### Answer:
SELECT mixed_doubles FROM table_name_42 WHERE season = 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_19 (year INTEGER, actor VARCHAR)
### Question:
What is the average year that Idris Elba was nominated for or won an award?
### Answer:
SELECT AVG(year) FROM table_name_19 WHERE actor = "idris elba" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28039032_1 (round VARCHAR, winners_from_previous_round VARCHAR)
### Question:
What was the round when there were 16 winners from the previous round?
### Answer:
SELECT round FROM table_28039032_1 WHERE winners_from_previous_round = "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_99 (socialist_workers_ticket VARCHAR, republican_ticket VARCHAR)
### Question:
When Republican ticket was John P. Lomenzo who ran for the Socialist Workers ticket?
### Answer:
SELECT socialist_workers_ticket FROM table_name_99 WHERE republican_ticket = "john p. lomenzo" |
Below is an context that describes a sql 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 (winning_driver VARCHAR, circuit VARCHAR)
### Question:
Name the winning driver for circuit of monza
### Answer:
SELECT winning_driver FROM table_name_36 WHERE circuit = "monza" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_26 (conference VARCHAR, school VARCHAR)
### Question:
What conference has the Wichita State school?
### Answer:
SELECT conference FROM table_name_26 WHERE school = "wichita state" |
Below is an context that describes a sql 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 (runner_s__up VARCHAR)
### Question:
What is the round of 54 holes in which Phil Mickelson was the runner-up?
### Answer:
SELECT 54 AS _holes FROM table_name_33 WHERE runner_s__up = "phil mickelson" |
Below is an context that describes a sql 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 (country VARCHAR, name VARCHAR)
### Question:
What country has the SBA Towers Tower Hayneville?
### Answer:
SELECT country FROM table_name_71 WHERE name = "sba towers tower hayneville" |
Below is an context that describes a sql 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 (university_of_dublin INTEGER, administrative_panel VARCHAR, cultural_and_educational_panel VARCHAR)
### Question:
What is the lowest number for the University of Dublin, having and administrative panel of 3, and a Cultural and Educational panel less than 2?
### Answer:
SELECT MIN(university_of_dublin) FROM table_name_93 WHERE administrative_panel = 3 AND cultural_and_educational_panel < 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 (parent_magazine VARCHAR, title VARCHAR)
### Question:
What is the parent magazine of Dengeki g's festival! deluxe?
### Answer:
SELECT parent_magazine FROM table_name_78 WHERE title = "dengeki g's festival! deluxe" |
Below is an context that describes a sql 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 (grid INTEGER, laps VARCHAR, driver VARCHAR)
### Question:
What is the grid total for bruce mclaren with over 73 laps?
### Answer:
SELECT SUM(grid) FROM table_name_14 WHERE laps > 73 AND driver = "bruce mclaren" |
Below is an context that describes a sql 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 (first_elected INTEGER, result VARCHAR, district VARCHAR)
### Question:
What's the highest First Elected with a Result of Re-elected and DIstrict of California 5?
### Answer:
SELECT MAX(first_elected) FROM table_name_21 WHERE result = "re-elected" AND district = "california 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_14 (Id VARCHAR)
### Question:
What is the categorization in 2009 when it was 2R in 2008 and 2011?
### Answer:
SELECT 2009 FROM table_name_14 WHERE 2008 = "2r" AND 2011 = "2r" |
Below is an context that describes a sql 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 (con__gress VARCHAR, date VARCHAR)
### Question:
Which congress was held in 2010?
### Answer:
SELECT con__gress FROM table_name_50 WHERE date = "2010" |
Below is an context that describes a sql 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 (record VARCHAR, date VARCHAR)
### Question:
What was the record on the game that was played on october 27?
### Answer:
SELECT record FROM table_name_72 WHERE date = "october 27" |
Below is an context that describes a sql 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 (opponent VARCHAR, attendance VARCHAR)
### Question:
Which Opponent had an Attendance of 78,883?
### Answer:
SELECT opponent FROM table_name_4 WHERE attendance = "78,883" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1015521_2 (commonwealth_equivalent VARCHAR, us_air_force_equivalent VARCHAR)
### Question:
If you're a major general in the US air force then what ranking will you receive in the commonwealth's air force?
### Answer:
SELECT commonwealth_equivalent FROM table_1015521_2 WHERE us_air_force_equivalent = "Major General" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_27 (goal INTEGER, venue VARCHAR)
### Question:
What was the highest number of goals for a game held at Hannover?
### Answer:
SELECT MAX(goal) FROM table_name_27 WHERE venue = "hannover" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26007767_1 (arabs INTEGER, metropolitan_ring VARCHAR)
### Question:
What is the least arabs when the metropolitan ring is inner ring 3?
### Answer:
SELECT MIN(arabs) FROM table_26007767_1 WHERE metropolitan_ring = "Inner Ring 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_96 (opponent VARCHAR, loss VARCHAR)
### Question:
Who was the opponent at the game that had a loss of Bell (6–9)?
### Answer:
SELECT opponent FROM table_name_96 WHERE loss = "bell (6–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_26565917_2 (title VARCHAR, no_in_season VARCHAR)
### Question:
what was the name of episode 5?
### Answer:
SELECT title FROM table_26565917_2 WHERE no_in_season = 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_20124413_2 (directed_by VARCHAR, prod_code VARCHAR)
### Question:
How many directed have the product code of 2.8?
### Answer:
SELECT COUNT(directed_by) FROM table_20124413_2 WHERE prod_code = "2.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_60 (record VARCHAR, date VARCHAR)
### Question:
Which record is dated April 8?
### Answer:
SELECT record FROM table_name_60 WHERE date = "april 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_18 (t20_matches VARCHAR, total VARCHAR)
### Question:
What T20 Match has a total of 23?
### Answer:
SELECT t20_matches FROM table_name_18 WHERE total = "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_22081847_1 (wins INTEGER)
### Question:
What was the maximum number of wins?
### Answer:
SELECT MAX(wins) FROM table_22081847_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_27086613_5 (fa_cup_goals INTEGER, fa_cup_apps VARCHAR, position VARCHAR)
### Question:
Name the least fa cup goals with fa cup apps being 2 and fw
### Answer:
SELECT MIN(fa_cup_goals) FROM table_27086613_5 WHERE fa_cup_apps = 2 AND position = "FW" |
Below is an context that describes a sql 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 (original_teams VARCHAR, the_biggest_loser VARCHAR)
### Question:
What were the original teams for the season that was won by Danni Allen?
### Answer:
SELECT original_teams FROM table_name_29 WHERE the_biggest_loser = "danni allen" |
Below is an context that describes a sql 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 (attendance INTEGER, week VARCHAR)
### Question:
What is the smallest attendance in week 5?
### Answer:
SELECT MIN(attendance) FROM table_name_18 WHERE week = 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_21 (outcome VARCHAR, venue VARCHAR, year VARCHAR)
### Question:
What was the Outcome of the Danish Open in 1985?
### Answer:
SELECT outcome FROM table_name_21 WHERE venue = "danish open" AND year = "1985" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Songs (Id VARCHAR)
### Question:
How many songs are there?
### Answer:
SELECT COUNT(*) FROM Songs |
Below is an context that describes a sql 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 (film VARCHAR, nominating_festival VARCHAR)
### Question:
The Prix UIP Vilo Do Conde festival nominated which film?
### Answer:
SELECT film FROM table_name_7 WHERE nominating_festival = "prix uip vilo do conde" |
Below is an context that describes a sql 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 (broadcasts__tv__1 INTEGER, series VARCHAR, us_release_date VARCHAR)
### Question:
What is the sum of Broadcasts (TV) 1, when Series is "3 4", and when US Release Date is "27 December 2006"?
### Answer:
SELECT SUM(broadcasts__tv__1) FROM table_name_47 WHERE series = "3 4" AND us_release_date = "27 december 2006" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_15 (week_2 VARCHAR, week_4 VARCHAR)
### Question:
What kind of Week 2 has a Week 4 of araya robinson?
### Answer:
SELECT week_2 FROM table_name_15 WHERE week_4 = "araya robinson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_20 (writer VARCHAR, arranger VARCHAR, length VARCHAR)
### Question:
Who was the writer that worked with arranger Tarek Akef on a 4:58 song?
### Answer:
SELECT writer FROM table_name_20 WHERE arranger = "tarek akef" AND length = "4:58" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2417330_4 (successor VARCHAR, reason_for_change VARCHAR, date_successor_seated VARCHAR)
### Question:
Name the successor for vacant and december 3, 1862
### Answer:
SELECT successor FROM table_2417330_4 WHERE reason_for_change = "Vacant" AND date_successor_seated = "December 3, 1862" |
Below is an context that describes a sql 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 (artist VARCHAR, spoofed_title VARCHAR)
### Question:
What is the name of the Artist for the Spoofed Title of the moron downer jr. show?
### Answer:
SELECT artist FROM table_name_13 WHERE spoofed_title = "the moron downer jr. show" |
Below is an context that describes a sql 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 (date VARCHAR, loss VARCHAR)
### Question:
What date was the loss of ponson (4–3)?
### Answer:
SELECT date FROM table_name_68 WHERE loss = "ponson (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_26555737_1 (result VARCHAR, year__ceremony_ VARCHAR)
### Question:
When 2012 (85th) is the year (ceremony) how many results?
### Answer:
SELECT COUNT(result) FROM table_26555737_1 WHERE year__ceremony_ = "2012 (85th)" |
Below is an context that describes a sql 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 (clerk VARCHAR, highway_commissioners VARCHAR)
### Question:
Who was the clerk when the highway commissioner was Albert Lewis?
### Answer:
SELECT clerk FROM table_name_14 WHERE highway_commissioners = "albert lewis" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_98 (hometown VARCHAR, player VARCHAR)
### Question:
Where is Terry Mills from?
### Answer:
SELECT hometown FROM table_name_98 WHERE player = "terry mills" |
Below is an context that describes a sql 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 (venue VARCHAR, date VARCHAR)
### Question:
Name the venue for 23 january 2009
### Answer:
SELECT venue FROM table_name_88 WHERE date = "23 january 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_24481478_1 (team_record VARCHAR, week VARCHAR)
### Question:
What was the game record during week 7?
### Answer:
SELECT team_record FROM table_24481478_1 WHERE week = 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_16255245_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
### Question:
Name the original title for the counterfeiters
### Answer:
SELECT original_title FROM table_16255245_1 WHERE film_title_used_in_nomination = "The Counterfeiters" |
Below is an context that describes 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 (Age INTEGER, Major VARCHAR)
### Question:
What are the maximum and minimum age of students with major 600?
### Answer:
SELECT MAX(Age), MIN(Age) FROM STUDENT WHERE Major = 600 |
Below is an context that describes a sql 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 (draws INTEGER, wins VARCHAR, points VARCHAR)
### Question:
What is the average draws with less than 3 wins and more than 5 points?
### Answer:
SELECT AVG(draws) FROM table_name_69 WHERE wins < 3 AND points > 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_3 (navigator VARCHAR, driver VARCHAR)
### Question:
What is the navigator for James?
### Answer:
SELECT navigator FROM table_name_3 WHERE driver = "james" |
Below is an context that describes a sql 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 (high_points VARCHAR, location_attendance VARCHAR)
### Question:
Who had the high points at the United Center 20,389?
### Answer:
SELECT high_points FROM table_name_42 WHERE location_attendance = "united center 20,389" |
Below is an context that describes a sql 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 (driver VARCHAR, grid VARCHAR)
### Question:
Which driver has a grid of 3?
### Answer:
SELECT driver FROM table_name_59 WHERE grid = 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_25084227_1 (written_by VARCHAR, us_viewers__in_millions_ VARCHAR)
### Question:
if the 2.09 million US viewers watched this episode, who was it written by
### Answer:
SELECT written_by FROM table_25084227_1 WHERE us_viewers__in_millions_ = "2.09" |
Below is an context that describes a sql 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 (musical_guest_song_performed VARCHAR, original_airdate VARCHAR)
### Question:
What is the Musical Guest/Song with an original airdate of january 2008?
### Answer:
SELECT musical_guest_song_performed FROM table_name_85 WHERE original_airdate = "january 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_85 (score VARCHAR, date VARCHAR)
### Question:
What was the score on 15 march 2006?
### Answer:
SELECT score FROM table_name_85 WHERE date = "15 march 2006" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_90 (degree VARCHAR, award_year VARCHAR, award VARCHAR)
### Question:
Tell me the degree for chemistry 1965
### Answer:
SELECT degree FROM table_name_90 WHERE award_year = 1965 AND award = "chemistry" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18823880_10 (socket VARCHAR, part_number_s_ VARCHAR)
### Question:
When by80607002907ahbx80607i7720qm is the part number what is the socket?
### Answer:
SELECT socket FROM table_18823880_10 WHERE part_number_s_ = "BY80607002907AHBX80607I7720QM" |
Below is an context that describes a sql 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 (Severe INTEGER, tropical_cyclones VARCHAR, tropical_lows VARCHAR)
### Question:
What is the highest number of severe tropical cyclones when there are 10 tropical cyclones and 14 tropical lows?
### Answer:
SELECT MAX(Severe) AS tropical_cyclones FROM table_name_78 WHERE tropical_cyclones = 10 AND tropical_lows = 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_28562675_3 (austria VARCHAR, netherlands VARCHAR, belgium VARCHAR)
### Question:
What was the team from Austria when the Netherlands sent Brunssum/Schinnen LL Brunssum and Belgium sent Shape and Waterloo LL Brussels?
### Answer:
SELECT austria FROM table_28562675_3 WHERE netherlands = "Brunssum/Schinnen LL Brunssum" AND belgium = "SHAPE and Waterloo LL Brussels" |
Below is an context that describes a sql 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 (score VARCHAR, date VARCHAR)
### Question:
Can you tell me the Score that has the Date of april 8?
### Answer:
SELECT score FROM table_name_22 WHERE date = "april 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_35 (lost VARCHAR, tries_against VARCHAR)
### Question:
What team lost with 30 tries against?
### Answer:
SELECT lost FROM table_name_35 WHERE tries_against = "30" |
Below is an context that describes a sql 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 (winner VARCHAR, venue VARCHAR, year VARCHAR)
### Question:
What winner has royal st george's golf club as the venue, and 1969 as the year?
### Answer:
SELECT winner FROM table_name_70 WHERE venue = "royal st george's golf club" AND year = "1969" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_64 (result VARCHAR, year VARCHAR, nominee_s_ VARCHAR)
### Question:
What is the result for a year after 2003, when the nominee(s) is john wells?
### Answer:
SELECT result FROM table_name_64 WHERE year > 2003 AND nominee_s_ = "john wells" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_120778_1 (percent_for VARCHAR, jurisdiction VARCHAR)
### Question:
What is the percent for in manitoba?
### Answer:
SELECT percent_for FROM table_120778_1 WHERE jurisdiction = "Manitoba" |
Below is an context that describes a sql 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 (year INTEGER)
### Question:
Which Year Inducted is the highest one that has a Year smaller than 1965?
### Answer:
SELECT MAX(year) AS Inducted FROM table_name_28 WHERE year < 1965 |
Below is an context that describes a sql 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 (district VARCHAR, result VARCHAR)
### Question:
result is lost re-election republican gain, what is the district?
### Answer:
SELECT district FROM table_name_48 WHERE result = "lost re-election republican gain" |
Below is an context that describes a sql 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 (points VARCHAR, year VARCHAR, entrant VARCHAR, chassis VARCHAR)
### Question:
What is the number of points for the Entrant of wolfgang seidel and a Cooper t45 chassis later than 1960?
### Answer:
SELECT COUNT(points) FROM table_name_74 WHERE entrant = "wolfgang seidel" AND chassis = "cooper t45" AND year > 1960 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1405704_1 (season VARCHAR, winning_driver VARCHAR)
### Question:
In what year did Tom Sneva win a race?
### Answer:
SELECT season FROM table_1405704_1 WHERE winning_driver = "Tom Sneva" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341577_43 (result VARCHAR, candidates VARCHAR)
### Question:
What was the results for the candidates listed as bart gordon (d) 76.5% wallace embry (r) 23.5%?
### Answer:
SELECT result FROM table_1341577_43 WHERE candidates = "Bart Gordon (D) 76.5% Wallace Embry (R) 23.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_89 (opponent VARCHAR, week VARCHAR, attendance VARCHAR)
### Question:
Which opponent, before Week 10, had an attendance of 63,672?
### Answer:
SELECT opponent FROM table_name_89 WHERE week < 10 AND attendance = "63,672" |
Below is an context that describes a sql 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 (launch_vehicle VARCHAR, institutional_authority VARCHAR)
### Question:
Name the launch vehicle with Institutional authority of ndc
### Answer:
SELECT launch_vehicle FROM table_name_59 WHERE institutional_authority = "ndc" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2430014_8 (written_by VARCHAR, uk_ratings__bbc2_rank_ VARCHAR)
### Question:
Who wrote the episode what had the rating 2.27m (5)?
### Answer:
SELECT written_by FROM table_2430014_8 WHERE uk_ratings__bbc2_rank_ = "2.27m (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 products (product_id VARCHAR); CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
### Question:
How many products have the characteristic named "hot"?
### Answer:
SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id WHERE t3.characteristic_name = "hot" |
Below is an context that describes a sql 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 (attendance INTEGER, week VARCHAR, date VARCHAR)
### Question:
With the date of October 28, 1962, and the week greater than 4, what was the lowest attendance?
### Answer:
SELECT MIN(attendance) FROM table_name_12 WHERE week > 4 AND date = "october 28, 1962" |
Below is an context that describes a sql 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 (destroyed INTEGER, survived VARCHAR, to_iran VARCHAR, damaged VARCHAR)
### Question:
What's the average destroyed with a 1990 over 12, more than 1 damaged, 6 survivors, and a to Iran less than 4?
### Answer:
SELECT AVG(destroyed) FROM table_name_17 WHERE 1990 > 12 AND damaged > 1 AND to_iran < 4 AND survived = 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_1108394_47 (_percentage VARCHAR, queens VARCHAR)
### Question:
The man who received 87,676 votes in Queens won what percentage of the total for the election?
### Answer:
SELECT _percentage FROM table_1108394_47 WHERE queens = "87,676" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Accounts (customer_id VARCHAR); CREATE TABLE Customers (customer_first_name VARCHAR, customer_last_name VARCHAR, customer_id VARCHAR)
### Question:
Show distinct first and last names for all customers with an account.
### Answer:
SELECT DISTINCT T1.customer_first_name, T1.customer_last_name FROM Customers AS T1 JOIN Accounts AS T2 ON T1.customer_id = T2.customer_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_74 (notes VARCHAR, country VARCHAR)
### Question:
What are the notes for Zimbabwe?
### Answer:
SELECT notes FROM table_name_74 WHERE country = "zimbabwe" |
Below is an context that describes a 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 (directed_by VARCHAR, _number VARCHAR)
### Question:
How many directors for #15?
### Answer:
SELECT COUNT(directed_by) FROM table_20942925_1 WHERE _number = 15 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_65 (álbum VARCHAR, year VARCHAR)
### Question:
What álbum was in the year 1996?
### Answer:
SELECT álbum FROM table_name_65 WHERE year = 1996 |
Below is an context that describes a sql 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 (score VARCHAR, player VARCHAR)
### Question:
What did Phil Rodgers score?
### Answer:
SELECT score FROM table_name_6 WHERE player = "phil rodgers" |
Below is an context that describes a sql 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 (week_2_sept_7 VARCHAR, week_7_oct_12 VARCHAR)
### Question:
Which Week 2 Sept 7 has a Week 7 Oct 12 of ball state (7-0)?
### Answer:
SELECT week_2_sept_7 FROM table_name_8 WHERE week_7_oct_12 = "ball state (7-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_58 (owner VARCHAR, frequency VARCHAR)
### Question:
Who is the owner with a frequency of 0 101.1 fm?
### Answer:
SELECT owner FROM table_name_58 WHERE frequency = "0 101.1 fm" |
Below is an context that describes a sql 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 (time VARCHAR, date VARCHAR)
### Question:
What is the time associated with August 16, 2008?
### Answer:
SELECT time FROM table_name_12 WHERE date = "august 16, 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_81 (bronze INTEGER, gold VARCHAR, silver VARCHAR, nation VARCHAR)
### Question:
What is the most bronze can be when silver is larger than 2, and the nation is germany, and gold is more than 8?
### Answer:
SELECT MAX(bronze) FROM table_name_81 WHERE silver > 2 AND nation = "germany" AND gold > 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_5 (rank INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR)
### Question:
Name the least rank when silver is less than 1 and bronze is less than 1 with total more than 1
### Answer:
SELECT MIN(rank) FROM table_name_5 WHERE silver < 1 AND total > 1 AND bronze < 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_20354_7 (sanskrit_word_and_meaning VARCHAR, zodiac_sign VARCHAR)
### Question:
Name the sanskrit word and meaning for aquarius
### Answer:
SELECT sanskrit_word_and_meaning FROM table_20354_7 WHERE zodiac_sign = "Aquarius" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_94 (song VARCHAR, artist VARCHAR)
### Question:
What song has filipa sousa as an artist?
### Answer:
SELECT song FROM table_name_94 WHERE artist = "filipa sousa" |
Below is an context that describes a sql 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 (silver INTEGER, total VARCHAR, bronze VARCHAR)
### Question:
What is the highest number of Silver medals with a Total greater than 14 and more than 15 Bronze medals?
### Answer:
SELECT MAX(silver) FROM table_name_38 WHERE total > 14 AND bronze > 15 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_83 (round VARCHAR, college_junior_club_team__league_ VARCHAR)
### Question:
What is the total number of Round, when College/Junior/Club Team (League) is "Kelowna Rockets ( WHL )"?
### Answer:
SELECT COUNT(round) FROM table_name_83 WHERE college_junior_club_team__league_ = "kelowna rockets ( whl )" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_41 (purse___ VARCHAR, champion VARCHAR, venue VARCHAR)
### Question:
What was the purse when Sherri Steinhauer was champion at Woburn Golf and Country Club?
### Answer:
SELECT COUNT(purse___) AS $__ FROM table_name_41 WHERE champion = "sherri steinhauer" AND venue = "woburn golf and country club" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20774360_2 (year VARCHAR, standing VARCHAR)
### Question:
Name the year for t-10th
### Answer:
SELECT year FROM table_20774360_2 WHERE standing = "T-10th" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1214035_1 (playoffs VARCHAR, regular_season VARCHAR)
### Question:
What was the result of the playoffs when the regular season was 7th, southeast
### Answer:
SELECT playoffs FROM table_1214035_1 WHERE regular_season = "7th, Southeast" |
Below is an context that describes a sql 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 (year VARCHAR, runner_up VARCHAR, winner VARCHAR)
### Question:
What year has John Davies as the runner-up, with warren humphreys as the winner?
### Answer:
SELECT year FROM table_name_3 WHERE runner_up = "john davies" AND winner = "warren humphreys" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE review (rating INTEGER)
### Question:
Find the average and maximum rating of all reviews.
### Answer:
SELECT AVG(rating), MAX(rating) FROM review |
Below is an context that describes a sql 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 (location VARCHAR, event VARCHAR)
### Question:
What location was the event ufc: fight for the troops?
### Answer:
SELECT location FROM table_name_91 WHERE event = "ufc: fight for the troops" |
Below is an context that describes a sql 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 (total INTEGER, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
### Question:
What is the Total number of medals for the Nation with 7 or less Bronze medals and 1 Silver medal with a Rank of 9 or larger?
### Answer:
SELECT MIN(total) FROM table_name_90 WHERE bronze < 7 AND silver = 1 AND rank > 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_29135051_2 (singer_s_ VARCHAR, comedian VARCHAR)
### Question:
Name the singer for joe wilkinson
### Answer:
SELECT singer_s_ FROM table_29135051_2 WHERE comedian = "Joe Wilkinson" |
Below is an context that describes a sql 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 (team VARCHAR, laps VARCHAR)
### Question:
What is the Team with a Lap that is 5?
### Answer:
SELECT team FROM table_name_48 WHERE laps = 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_94 (live_births_2006 INTEGER, whites_as__percentage_of_pop VARCHAR, tfr_2006 VARCHAR)
### Question:
What is the total number of live births in 2006 with 98.40% of the population as Whites and has more than 2 for the TFR?
### Answer:
SELECT SUM(live_births_2006) FROM table_name_94 WHERE whites_as__percentage_of_pop = "98.40%" AND tfr_2006 > 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.