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_1651764_3 (vacator VARCHAR, district VARCHAR)
### Question:
who is the vacator whre the district is new jersey 2nd?
### Answer:
SELECT vacator FROM table_1651764_3 WHERE district = "New Jersey 2nd" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1539201_1 (february VARCHAR)
### Question:
Name all of the february
### Answer:
SELECT february FROM table_1539201_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_8 (bore VARCHAR, designation VARCHAR)
### Question:
What is the bore of the boat howitzers with a 12-pdr heavy designation?
### Answer:
SELECT bore FROM table_name_8 WHERE designation = "12-pdr heavy" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_47 (name VARCHAR, creator VARCHAR)
### Question:
Who is a Creator of hyriand?
### Answer:
SELECT name FROM table_name_47 WHERE creator = "hyriand" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (rank INTEGER, province VARCHAR, date_of_official_foundation_of_municipality VARCHAR)
### Question:
What is the sum of Rank, when Province is Gīlān, when Date of Official Foundation of Municipality is after 1922, and when 2006 is greater than 557366?
### Answer:
SELECT SUM(rank) FROM table_name_51 WHERE province = "gīlān" AND date_of_official_foundation_of_municipality > 1922 AND 2006 > 557366 |
Below is an context that describes a sql 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 (runner_s__up VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
### Question:
Who was the runner-up for the mazda senior tournament players championship tournament when the margin of victory was 2 strokes?
### Answer:
SELECT runner_s__up FROM table_name_86 WHERE margin_of_victory = "2 strokes" AND tournament = "mazda senior tournament players championship" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14342592_3 (position VARCHAR, player VARCHAR)
### Question:
What positions does Hal Weeks play?
### Answer:
SELECT position FROM table_14342592_3 WHERE player = "Hal Weeks" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_10015132_21 (school_club_team VARCHAR, player VARCHAR)
### Question:
Which school did Herb Williams go to?
### Answer:
SELECT school_club_team FROM table_10015132_21 WHERE player = "Herb Williams" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_79 (first_member VARCHAR, election VARCHAR)
### Question:
Who is the first member in the 1868 election?
### Answer:
SELECT first_member FROM table_name_79 WHERE election = "1868" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22815568_1 (poverty_rate VARCHAR, market_income_per_capita VARCHAR)
### Question:
What is the poverty rate in the county that has a market income per capita of $16,420?
### Answer:
SELECT poverty_rate FROM table_22815568_1 WHERE market_income_per_capita = "$16,420" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26448179_4 (title VARCHAR, production_code VARCHAR)
### Question:
What is the title of the episode with production code 305?
### Answer:
SELECT title FROM table_26448179_4 WHERE production_code = 305 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE races (name VARCHAR, YEAR VARCHAR)
### Question:
Find the names of all races held in 2017.
### Answer:
SELECT name FROM races WHERE YEAR = 2017 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15467476_3 (points_difference VARCHAR, tries_for VARCHAR)
### Question:
How many teams have 21 tries for?
### Answer:
SELECT COUNT(points_difference) FROM table_15467476_3 WHERE tries_for = "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_16 (goals INTEGER, date VARCHAR)
### Question:
What is the sum of the goals on 2007-06-16?
### Answer:
SELECT SUM(goals) FROM table_name_16 WHERE date = "2007-06-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_2362606_1 (score_in_final VARCHAR, year VARCHAR)
### Question:
What was the score in the final in 1988?
### Answer:
SELECT score_in_final FROM table_2362606_1 WHERE year = 1988 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_57 (poles VARCHAR, season VARCHAR, wins VARCHAR)
### Question:
How many poles did he have in 2006 with under 2 wins?
### Answer:
SELECT poles FROM table_name_57 WHERE season = "2006" AND wins < 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_14 (odds VARCHAR, finish VARCHAR)
### Question:
What were the odds for the finish of 1/4h?
### Answer:
SELECT odds FROM table_name_14 WHERE finish = "1/4h" |
Below is an context that describes a sql 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 (power VARCHAR, identifier VARCHAR)
### Question:
Which Power has a CBLI Identifier?
### Answer:
SELECT power FROM table_name_40 WHERE identifier = "cbli" |
Below is an context that describes a sql 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 (partially_deleted VARCHAR, deleted VARCHAR, county VARCHAR)
### Question:
What is the partially deleted result for a deleted of m– in Valley?
### Answer:
SELECT partially_deleted FROM table_name_95 WHERE deleted = "–" AND county = "valley" |
Below is an context that describes a sql 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 (size__steps_ INTEGER, interval_name VARCHAR)
### Question:
Tell me the average size for minor third
### Answer:
SELECT AVG(size__steps_) FROM table_name_62 WHERE interval_name = "minor third" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23963781_2 (name VARCHAR, goals VARCHAR, position VARCHAR)
### Question:
who has the 1 goal and the position is fw?
### Answer:
SELECT name FROM table_23963781_2 WHERE goals = 1 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_18 (frequency__per_hour_ VARCHAR, line VARCHAR, destination VARCHAR)
### Question:
How many frequencies have a line of East London and destination of Crystal Palace?
### Answer:
SELECT COUNT(frequency__per_hour_) FROM table_name_18 WHERE line = "east london" AND destination = "crystal palace" |
Below is an context that describes 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 (Location VARCHAR, Party_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE HOST (Host_ID VARCHAR, Age INTEGER)
### Question:
Show the locations of parties with hosts older than 50.
### Answer:
SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T2.Age > 50 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_54 (races VARCHAR, podiums VARCHAR, poles VARCHAR, season VARCHAR)
### Question:
What is the total number of races in the 2006 season with 0 poles and more than 0 podiums?
### Answer:
SELECT COUNT(races) FROM table_name_54 WHERE poles = 0 AND season = "2006" AND podiums > 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_13755296_1 (story_by VARCHAR, directed_by VARCHAR)
### Question:
Who wrote the sorry of the episode directed by Dan Attias?
### Answer:
SELECT story_by FROM table_13755296_1 WHERE directed_by = "Dan Attias" |
Below is an context that describes a sql 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 (home VARCHAR, visitor VARCHAR)
### Question:
Name the home with toronto visiting
### Answer:
SELECT home FROM table_name_29 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 table_18823880_10 (mult VARCHAR, sspec_number VARCHAR)
### Question:
When slblw(b1) is the sspec number what is the mult.?
### Answer:
SELECT mult FROM table_18823880_10 WHERE sspec_number = "SLBLW(B1)" |
Below is an context that describes a sql 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 (chassis VARCHAR, year VARCHAR)
### Question:
Name the chassis of 1961
### Answer:
SELECT chassis FROM table_name_33 WHERE year = 1961 |
Below is an context that describes a sql 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 (abbreviation VARCHAR, country VARCHAR)
### Question:
What's the abbreviation for libya?
### Answer:
SELECT abbreviation FROM table_name_88 WHERE country = "libya" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14489821_1 (average VARCHAR)
### Question:
list the number of matches played by the teams that got an average of 1.079
### Answer:
SELECT 1986 AS _87 FROM table_14489821_1 WHERE average = "1.079" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2589963_1 (institution VARCHAR, women VARCHAR)
### Question:
What institution is represented by the lady saints?
### Answer:
SELECT institution FROM table_2589963_1 WHERE women = "Lady Saints" |
Below is an context that describes a sql 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 (state VARCHAR, name VARCHAR)
### Question:
What is the state Yi?
### Answer:
SELECT state FROM table_name_35 WHERE name = "yi" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_11545282_6 (nationality VARCHAR, player VARCHAR)
### Question:
What's Jim Farmer's nationality?
### Answer:
SELECT nationality FROM table_11545282_6 WHERE player = "Jim Farmer" |
Below is an context that describes a sql 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 (match_report VARCHAR, venue VARCHAR)
### Question:
What is Match Report, when Venue is "Westfalenstadion , Dortmund"?
### Answer:
SELECT match_report FROM table_name_92 WHERE venue = "westfalenstadion , 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_46 (centerfold_model VARCHAR)
### Question:
Who was the 20 Questions section aimed at when Centerfold Model was Rachel Jeán Marteen?
### Answer:
SELECT 20 AS _questions FROM table_name_46 WHERE centerfold_model = "rachel jeán marteen" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1217448_1 (cover_date VARCHAR, character_s_ VARCHAR)
### Question:
what's the cover date where character(s) is x-men ; magneto
### Answer:
SELECT cover_date FROM table_1217448_1 WHERE character_s_ = "X-Men ; Magneto" |
Below is an context that describes a sql 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 (drawn INTEGER, against VARCHAR)
### Question:
What is the lowest nuber of games drawn in the total column?
### Answer:
SELECT MIN(drawn) FROM table_name_31 WHERE against = "total" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22879323_10 (date VARCHAR, record VARCHAR)
### Question:
What date was the record 11-67?
### Answer:
SELECT date FROM table_22879323_10 WHERE record = "11-67" |
Below is an context that describes a sql 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 (date VARCHAR, result VARCHAR, opponent VARCHAR)
### Question:
When has a Result of 0–2 and a Opponent of aberdeen?
### Answer:
SELECT date FROM table_name_13 WHERE result = "0–2" AND opponent = "aberdeen" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Documents_with_expenses (Id VARCHAR)
### Question:
How many documents have expenses?
### Answer:
SELECT COUNT(*) FROM Documents_with_expenses |
Below is an context that describes a sql 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 (chassis VARCHAR, points INTEGER)
### Question:
What chassis has more than 0 points?
### Answer:
SELECT chassis FROM table_name_40 WHERE points > 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_66 (year VARCHAR, laps VARCHAR, qual VARCHAR)
### Question:
Which Year has a Qual of 144.683 and Lap larger than 27?
### Answer:
SELECT year FROM table_name_66 WHERE laps > 27 AND qual = "144.683" |
Below is an context that describes a sql 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 (location VARCHAR, distance VARCHAR)
### Question:
Which Location has a Distance of 10,000 m?
### Answer:
SELECT location FROM table_name_59 WHERE distance = "10,000 m" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_94 (date VARCHAR, tournament VARCHAR)
### Question:
What is the date of the Outback Steakhouse Pro-Am Tournament?
### Answer:
SELECT date FROM table_name_94 WHERE tournament = "outback steakhouse pro-am" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1590652_4 (runner_s__up VARCHAR, tournament VARCHAR)
### Question:
Name the runners up for when tournament is wgc-accenture match play championship
### Answer:
SELECT runner_s__up FROM table_1590652_4 WHERE tournament = "WGC-Accenture Match Play Championship" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_18 (attendance INTEGER, week VARCHAR, result VARCHAR)
### Question:
What sum of Attendance has a Week smaller than 10, and a Result of l 30-21?
### Answer:
SELECT SUM(attendance) FROM table_name_18 WHERE week < 10 AND result = "l 30-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_1198175_1 (weight_lbs_ VARCHAR, born VARCHAR)
### Question:
What is the weight(lbs) when born is april 6, 1954 detroit, mi?
### Answer:
SELECT weight_lbs_ FROM table_1198175_1 WHERE born = "April 6, 1954 Detroit, MI" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27537870_5 (game VARCHAR, score VARCHAR)
### Question:
Name the number of game 2-6
### Answer:
SELECT COUNT(game) FROM table_27537870_5 WHERE score = "2-6" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_52 (week INTEGER, result VARCHAR)
### Question:
What Week has a Result of l 17-14?
### Answer:
SELECT SUM(week) FROM table_name_52 WHERE result = "l 17-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_name_25 (manufacturer VARCHAR, grid VARCHAR)
### Question:
Which manufacturer has a grid of 6?
### Answer:
SELECT manufacturer FROM table_name_25 WHERE grid = "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_47 (place VARCHAR, player VARCHAR)
### Question:
Name the place for ed oliver
### Answer:
SELECT place FROM table_name_47 WHERE player = "ed oliver" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (date VARCHAR, no_built VARCHAR, wheels VARCHAR)
### Question:
On what date were 5 built with 4-4-2t wheels?
### Answer:
SELECT date FROM table_name_10 WHERE no_built = 5 AND wheels = "4-4-2t" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25355501_2 (june_10_11 VARCHAR, january_15_16 VARCHAR)
### Question:
june 10-11 when january 15-16 is january 15, 1991?
### Answer:
SELECT june_10_11 FROM table_25355501_2 WHERE january_15_16 = "January 15, 1991" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_59 (height_in_ft VARCHAR, school_club_team_country VARCHAR)
### Question:
Name the height in ft for the player from wyoming
### Answer:
SELECT height_in_ft FROM table_name_59 WHERE school_club_team_country = "wyoming" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_199666_1 (chipset VARCHAR, codename VARCHAR, wireless_lan VARCHAR)
### Question:
How many series had the chipset of the Intel Centrino Ultimate-N 6300 wireless LAN with the codename Arrandale?
### Answer:
SELECT chipset FROM table_199666_1 WHERE codename = "Arrandale" AND wireless_lan = "Intel centrino Ultimate-N 6300" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23944514_15 (mountains_classification VARCHAR, aggressive_rider VARCHAR)
### Question:
Name the mountains classification for bradley white
### Answer:
SELECT mountains_classification FROM table_23944514_15 WHERE aggressive_rider = "Bradley White" |
Below is an context that describes a sql 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 (set_1 VARCHAR, set_2 VARCHAR, set_3 VARCHAR)
### Question:
What is the Set 1 with a Set 2 of 15–5, and a Set 3 with 15–3?
### Answer:
SELECT set_1 FROM table_name_6 WHERE set_2 = "15–5" AND set_3 = "15–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_41 (team VARCHAR, shirt_sponsor VARCHAR)
### Question:
Who is the team captain for the team with sparkasse (düsseldorf) as the shirt sponsor?
### Answer:
SELECT team AS captain FROM table_name_41 WHERE shirt_sponsor = "sparkasse (düsseldorf)" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_10 (soap_opera VARCHAR, years VARCHAR)
### Question:
what is the soap opera when the years are 2000–2004, 2005—?
### Answer:
SELECT soap_opera FROM table_name_10 WHERE years = "2000–2004, 2005—" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_89 (floors VARCHAR, location VARCHAR)
### Question:
Which Floors has a Location of tower hill?
### Answer:
SELECT floors FROM table_name_89 WHERE location = "tower hill" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_27973624_1 (number_of_fixtures VARCHAR, new_entries_this_round VARCHAR)
### Question:
How many times is the new entries this round is none?
### Answer:
SELECT COUNT(number_of_fixtures) FROM table_27973624_1 WHERE new_entries_this_round = "none" |
Below is an context that describes a sql 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 (time VARCHAR, heat VARCHAR, rank VARCHAR, athlete VARCHAR)
### Question:
how many times is the rank more than 29, the athlete is barbara pierre and the heat less than 5?
### Answer:
SELECT COUNT(time) FROM table_name_8 WHERE rank > 29 AND athlete = "barbara pierre" AND heat < 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_13762472_5 (high_rebounds VARCHAR, record VARCHAR)
### Question:
How many people had the high rebound total when the team was 19-13?
### Answer:
SELECT COUNT(high_rebounds) FROM table_13762472_5 WHERE record = "19-13" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_21 (lineup VARCHAR, location VARCHAR)
### Question:
Name the lineup for washington dc
### Answer:
SELECT lineup FROM table_name_21 WHERE location = "washington dc" |
Below is an context that describes a sql 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 (director_s_ VARCHAR, prize VARCHAR, film VARCHAR)
### Question:
Which Director(s) made the film hanzubon no ojisan and received a prize of ¥300,000?
### Answer:
SELECT director_s_ FROM table_name_21 WHERE prize = "¥300,000" AND film = "hanzubon no ojisan" |
Below is an context that describes a sql 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 (writer VARCHAR, film_title VARCHAR)
### Question:
Who wrote Toy Story?
### Answer:
SELECT writer FROM table_name_22 WHERE film_title = "toy story" |
Below is an context that describes a sql 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 (altitude__meters_ VARCHAR, range VARCHAR, rank VARCHAR)
### Question:
What is the Altitude (meters) associated with a rank smaller than 10, and the range Mühlig-Hofmann Mountains?
### Answer:
SELECT COUNT(altitude__meters_) FROM table_name_72 WHERE range = "mühlig-hofmann mountains" AND rank < 10 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE hosting_city (host_city VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Feb INTEGER, Jun VARCHAR)
### Question:
Give me a list of cities whose temperature in Feb is higher than that in Jun or cities that were once host cities?
### Answer:
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id WHERE T2.Feb > T2.Jun UNION SELECT T3.city FROM city AS T3 JOIN hosting_city AS T4 ON T3.city_id = T4.host_city |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (winning_car VARCHAR, circuit VARCHAR, winning_driver VARCHAR)
### Question:
What car did Tony Trimmer drive at the Oulton Park Circuit?
### Answer:
SELECT winning_car FROM table_name_35 WHERE circuit = "oulton park" AND winning_driver = "tony trimmer" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_76 (date VARCHAR, results¹ VARCHAR)
### Question:
On what Date was the Results¹ 1:2?
### Answer:
SELECT date FROM table_name_76 WHERE results¹ = "1: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_25647137_2 (touchdowns VARCHAR, player VARCHAR)
### Question:
How many touchdowns did bill culligan have?
### Answer:
SELECT COUNT(touchdowns) FROM table_25647137_2 WHERE player = "Bill Culligan" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18607260_6 (played INTEGER)
### Question:
Name the least played
### Answer:
SELECT MIN(played) FROM table_18607260_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_9 (finish INTEGER, year VARCHAR)
### Question:
Name the most finish for 2006
### Answer:
SELECT MAX(finish) FROM table_name_9 WHERE year = 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 drivers (surname VARCHAR, driverid VARCHAR); CREATE TABLE results (driverid VARCHAR); CREATE TABLE pitstops (driverid VARCHAR)
### Question:
What are the drivers' last names and id who had 11 pit stops and participated in more than 5 race results?
### Answer:
SELECT T1.surname, T1.driverid FROM drivers AS T1 JOIN pitstops AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) = 11 INTERSECT SELECT T1.surname, T1.driverid FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid GROUP BY T1.driverid HAVING COUNT(*) > 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_90 (money___$__ VARCHAR, place VARCHAR, score VARCHAR)
### Question:
What is the Money for the T1 Player with a Score of 66-69-70-75=280?
### Answer:
SELECT money___$__ FROM table_name_90 WHERE place = "t1" AND score = 66 - 69 - 70 - 75 = 280 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_96 (occ_championships INTEGER, school VARCHAR)
### Question:
How many times have Central Crossing won the OCC Championship?
### Answer:
SELECT SUM(occ_championships) FROM table_name_96 WHERE school = "central crossing" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_79 (surface VARCHAR, date VARCHAR)
### Question:
Which Surface is on 23 january 2011?
### Answer:
SELECT surface FROM table_name_79 WHERE date = "23 january 2011" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_57 (player VARCHAR, place VARCHAR, country VARCHAR)
### Question:
What United States player holds the place of t8?`
### Answer:
SELECT player FROM table_name_57 WHERE place = "t8" AND country = "united states" |
Below is an context that describes a sql 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 (_percentage_of_all VARCHAR, dennis_kucinich VARCHAR)
### Question:
What is % of All, when Dennis Kucinich is "5%"?
### Answer:
SELECT _percentage_of_all FROM table_name_52 WHERE dennis_kucinich = "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_24 (nationality VARCHAR, name VARCHAR, lane VARCHAR, rank VARCHAR)
### Question:
What is the nationality with a lane larger than 1, and a rank larger than 5, for Hsu Chi-Chieh?
### Answer:
SELECT nationality FROM table_name_24 WHERE lane > 1 AND rank > 5 AND name = "hsu chi-chieh" |
Below is an context that describes a sql 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 (Id VARCHAR)
### Question:
What is 2004, when 2003 is "1R", and when 2006 is "A"?
### Answer:
SELECT 2004 FROM table_name_20 WHERE 2003 = "1r" AND 2006 = "a" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Employee (name VARCHAR, salary INTEGER)
### Question:
Show names for all employees with salary more than the average.
### Answer:
SELECT name FROM Employee WHERE salary > (SELECT AVG(salary) FROM Employee) |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_17801022_1 (year INTEGER, race_time VARCHAR)
### Question:
What year was the winning race time 1:55:13?
### Answer:
SELECT MAX(year) FROM table_17801022_1 WHERE race_time = "1:55:13" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_32 (arena VARCHAR, capacity VARCHAR, team VARCHAR)
### Question:
Which arena has the Milton Keynes Lions and a capacity of 800?
### Answer:
SELECT arena FROM table_name_32 WHERE capacity = "800" AND team = "milton keynes lions" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_51 (horsepowers INTEGER, year VARCHAR, tonnage VARCHAR)
### Question:
How many Horsepowers have a Year smaller than 1974, and a Tonnage of 4437?
### Answer:
SELECT SUM(horsepowers) FROM table_name_51 WHERE year < 1974 AND tonnage = 4437 |
Below is an context that describes a sql 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 (party VARCHAR, elected VARCHAR, district VARCHAR)
### Question:
What party has a district of 28 and was elected after 1983?
### Answer:
SELECT party FROM table_name_98 WHERE elected > 1983 AND district = 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_36 (Id VARCHAR)
### Question:
What is the 2011 when the 2010 shows grand slam tournaments?
### Answer:
SELECT 2011 FROM table_name_36 WHERE 2010 = "grand slam tournaments" |
Below is an context that describes a sql 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 (best INTEGER, qual_2 VARCHAR, team VARCHAR, name VARCHAR)
### Question:
Graham rahal for n/h/l racing has a qual 2 greater than 59.384 and how much lowest best?
### Answer:
SELECT MIN(best) FROM table_name_34 WHERE team = "n/h/l racing" AND name = "graham rahal" AND qual_2 > 59.384 |
Below is an context that describes a sql 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 (week INTEGER, attendance VARCHAR)
### Question:
When did the Chiefs have their first bye?
### Answer:
SELECT MIN(week) FROM table_name_47 WHERE attendance = "bye" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20573232_1 (county VARCHAR, others_number VARCHAR)
### Question:
What county has others at 5?
### Answer:
SELECT county FROM table_20573232_1 WHERE others_number = 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_25 (completed VARCHAR, name VARCHAR)
### Question:
When was satsuki dd-27 completed?
### Answer:
SELECT completed FROM table_name_25 WHERE name = "satsuki dd-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_48 (time_retired VARCHAR, points VARCHAR, laps VARCHAR)
### Question:
What Time/Retired has a Points that's smaller than 11 and has a Laps of 74?
### Answer:
SELECT time_retired FROM table_name_48 WHERE points < 11 AND laps = 74 |
Below is an context that describes a sql 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 (tie_no VARCHAR, attendance VARCHAR, away_team VARCHAR)
### Question:
Which Tie # that has an Attendance of 14 november 1998, and an Away team of hayes?
### Answer:
SELECT tie_no FROM table_name_62 WHERE attendance = "14 november 1998" AND away_team = "hayes" |
Below is an context that describes a sql 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 (attendance INTEGER, record VARCHAR)
### Question:
On the game that put the team at 34-44, what was the attendance?
### Answer:
SELECT SUM(attendance) FROM table_name_95 WHERE record = "34-44" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12419515_5 (season__number VARCHAR, directed_by VARCHAR)
### Question:
Name the season number for the direction of patrick norris
### Answer:
SELECT season__number FROM table_12419515_5 WHERE directed_by = "Patrick Norris" |
Below is an context that describes a sql 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 (score VARCHAR, place VARCHAR, player VARCHAR)
### Question:
What is score of the game played in place t8 with Byron Nelson playing?
### Answer:
SELECT score FROM table_name_20 WHERE place = "t8" AND player = "byron nelson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_12226390_6 (title VARCHAR, no_in_season VARCHAR)
### Question:
What's the title of the episode with a season number 25?
### Answer:
SELECT title FROM table_12226390_6 WHERE no_in_season = 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_29063233_1 (directed_by VARCHAR, uk_viewers__million_ VARCHAR)
### Question:
Who directed the episode with a UK viewership of exactly 5.77 million?
### Answer:
SELECT directed_by FROM table_29063233_1 WHERE uk_viewers__million_ = "5.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 people (Name VARCHAR, People_ID VARCHAR, Weight VARCHAR); CREATE TABLE entrepreneur (People_ID VARCHAR)
### Question:
What is the name of the entrepreneur with the greatest weight?
### Answer:
SELECT T2.Name FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T2.Weight 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_76 (engine_code VARCHAR, model VARCHAR)
### Question:
What is the engine code for the Xdrive25i?
### Answer:
SELECT engine_code FROM table_name_76 WHERE model = "xdrive25i" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.