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_25 (pick VARCHAR, position VARCHAR, overall VARCHAR)
### Question:
How many times is the position lb and the overall is less than 46?
### Answer:
SELECT COUNT(pick) FROM table_name_25 WHERE position = "lb" AND overall < 46 |
Below is an context that describes a sql 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 (wheat_ VARCHAR, c_ VARCHAR, potato_ VARCHAR, d_ VARCHAR)
### Question:
What is the wheat amount when the potato amount of 1.9?
### Answer:
SELECT wheat_[c_] FROM table_name_20 WHERE potato_[d_] = "1.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_26263954_1 (revised_hepburn VARCHAR, english VARCHAR)
### Question:
how many revised hepburn when english is roman characters
### Answer:
SELECT revised_hepburn FROM table_26263954_1 WHERE english = "Roman characters" |
Below is an context that describes a sql 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 (drawn INTEGER, points VARCHAR, lost VARCHAR)
### Question:
What is the smallest number of drawn games when there are fewer than 4 points and more than 4 lost games?
### Answer:
SELECT MIN(drawn) FROM table_name_52 WHERE points < 4 AND lost > 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_20884163_2 (report VARCHAR, race_title VARCHAR)
### Question:
What was the report for the winton race?
### Answer:
SELECT report FROM table_20884163_2 WHERE race_title = "Winton" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22368322_2 (date_of_report VARCHAR, tier_1_ratio VARCHAR)
### Question:
Name the date of report for tier 1 ratio being 3.9%
### Answer:
SELECT date_of_report FROM table_22368322_2 WHERE tier_1_ratio = "3.9%" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_96 (date VARCHAR, score VARCHAR)
### Question:
What was the date of the Mariners game that had a score of 1-12?
### Answer:
SELECT date FROM table_name_96 WHERE score = "1-12" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_42 (tournament VARCHAR)
### Question:
Which one of the tournaments had a QF in 1996?
### Answer:
SELECT tournament FROM table_name_42 WHERE 1996 = "qf" |
Below is an context that describes a sql 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 (home_team VARCHAR, away_team VARCHAR)
### Question:
What was the Home team score for the team that played South Melbourne?
### Answer:
SELECT home_team AS score FROM table_name_36 WHERE away_team = "south melbourne" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_25 (Regular VARCHAR, team VARCHAR, tournament VARCHAR, total VARCHAR)
### Question:
How many regular season titles did Kansas receive when they received fewer than 2 tournament titles and more than 0 total titles?
### Answer:
SELECT Regular AS season FROM table_name_25 WHERE tournament < 2 AND total > 0 AND team = "kansas" |
Below is an context that describes a sql 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 (to_par VARCHAR, finish VARCHAR)
### Question:
When the finish was t31 what was the To par?
### Answer:
SELECT to_par FROM table_name_28 WHERE finish = "t31" |
Below is an context that describes a sql 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, winner VARCHAR)
### Question:
Name the date for luciano pagliarini
### Answer:
SELECT date FROM table_name_68 WHERE winner = "luciano pagliarini" |
Below is an context that describes a sql 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 (class VARCHAR, vessel_name VARCHAR)
### Question:
What is the class of vessel of the ship Hyundai Smart?
### Answer:
SELECT class FROM table_name_85 WHERE vessel_name = "hyundai smart" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_7 (date VARCHAR, grand_prix VARCHAR)
### Question:
When was the Austrian Grand Prix?
### Answer:
SELECT date FROM table_name_7 WHERE grand_prix = "austrian 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_29 (goals VARCHAR, games VARCHAR)
### Question:
How many goals were there in game 47?
### Answer:
SELECT goals FROM table_name_29 WHERE games = "47" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_74 (tournament VARCHAR)
### Question:
What is Tournament, when 2005 is "N/A", and when 2002 is "0 / 1"?
### Answer:
SELECT tournament FROM table_name_74 WHERE 2005 = "n/a" AND 2002 = "0 / 1" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_33 (home VARCHAR, time VARCHAR)
### Question:
Who was the home team of the game at the time of 15:00?
### Answer:
SELECT home FROM table_name_33 WHERE time = "15:00" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_68 (date VARCHAR, stage VARCHAR)
### Question:
Which date has a Stage of 12?
### Answer:
SELECT date FROM table_name_68 WHERE stage = "12" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_53 (draws VARCHAR, played INTEGER)
### Question:
What is the number of draws when played is less than 38?
### Answer:
SELECT COUNT(draws) FROM table_name_53 WHERE played < 38 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_20010140_9 (high_assists VARCHAR, team VARCHAR)
### Question:
For the game against Iowa, who had the most assists?
### Answer:
SELECT high_assists FROM table_20010140_9 WHERE team = "Iowa" |
Below is an context that describes a sql 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 (score VARCHAR, location_attendance VARCHAR, record VARCHAR)
### Question:
What was the score for the game played in Alexander Memorial Coliseum when the record was 0-1?
### Answer:
SELECT score FROM table_name_32 WHERE location_attendance = "alexander memorial coliseum" AND record = "0-1" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_18894744_6 (high_rebounds VARCHAR, record VARCHAR)
### Question:
Who did the high rebounds in the game with a 19-6 record?
### Answer:
SELECT high_rebounds FROM table_18894744_6 WHERE record = "19-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_64 (second VARCHAR, first VARCHAR)
### Question:
What is SECOND, when FIRST is Western Australia?
### Answer:
SELECT second FROM table_name_64 WHERE first = "western australia" |
Below is an context that describes a sql 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 (gold VARCHAR, nation VARCHAR)
### Question:
How many total gold medals did India receive?
### Answer:
SELECT gold FROM table_name_10 WHERE nation = "india" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE INVOICES (payment_method_code VARCHAR)
### Question:
What is the payment method code used by the most orders?
### Answer:
SELECT payment_method_code FROM INVOICES GROUP BY payment_method_code ORDER BY COUNT(*) DESC LIMIT 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1341738_19 (incumbent VARCHAR, first_elected VARCHAR)
### Question:
What is the name of the incumbent who was first eleccted in 1940?
### Answer:
SELECT incumbent FROM table_1341738_19 WHERE first_elected = 1940 |
Below is an context that describes a sql 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 (record VARCHAR, time VARCHAR)
### Question:
Who holds the record time of 24.521 and where was it made?
### Answer:
SELECT record FROM table_name_12 WHERE time = "24.521" |
Below is an context that describes a sql 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 (round VARCHAR, college VARCHAR)
### Question:
College of lsu has how many rounds?
### Answer:
SELECT COUNT(round) FROM table_name_52 WHERE college = "lsu" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25689740_2 (w INTEGER)
### Question:
What is the highest number for W?
### Answer:
SELECT MAX(w) FROM table_25689740_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_20107762_1 (games INTEGER, mins VARCHAR)
### Question:
What is the game number with 385:33 mins?
### Answer:
SELECT MIN(games) FROM table_20107762_1 WHERE mins = "385:33" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_15796100_1 (theme VARCHAR, original_artist VARCHAR)
### Question:
How many themes have the original artist of Judy Garland?
### Answer:
SELECT COUNT(theme) FROM table_15796100_1 WHERE original_artist = "Judy Garland" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13779832_1 (country_region VARCHAR, seasons_and_winners VARCHAR)
### Question:
what's the country/region with seasons and winners being season 1, 2012: demetra malalan
### Answer:
SELECT country_region FROM table_13779832_1 WHERE seasons_and_winners = "Season 1, 2012: Demetra Malalan" |
Below is an context that describes a sql 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 (loan_club VARCHAR, country VARCHAR, ended VARCHAR)
### Question:
What is the Loan Club from Eng that ended on 22 February?
### Answer:
SELECT loan_club FROM table_name_57 WHERE country = "eng" AND ended = "22 february" |
Below is an context that describes a sql 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 (game INTEGER, time VARCHAR)
### Question:
What game had the highest score and a time of 2:35?
### Answer:
SELECT MAX(game) FROM table_name_34 WHERE time = "2:35" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_26748252_1 (written_by VARCHAR, us_viewers__in_millions_ VARCHAR)
### Question:
How many people wrote the episode with 3.40 million U.S viewers?
### Answer:
SELECT COUNT(written_by) FROM table_26748252_1 WHERE us_viewers__in_millions_ = "3.40" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_84 (run_2 VARCHAR, run_1 VARCHAR)
### Question:
What is Run 2, when Run 1 is 2:09.09?
### Answer:
SELECT run_2 FROM table_name_84 WHERE run_1 = "2:09.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_2417340_4 (successor VARCHAR, vacator VARCHAR, district VARCHAR)
### Question:
Who was the successor for vacant louisiana 5th
### Answer:
SELECT successor FROM table_2417340_4 WHERE vacator = "Vacant" AND district = "Louisiana 5th" |
Below is an context that describes a sql 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 (hometown VARCHAR, height VARCHAR, name VARCHAR)
### Question:
What is the hometown of Devon Bookert who is 6-3 tall?
### Answer:
SELECT hometown FROM table_name_62 WHERE height = "6-3" AND name = "devon bookert" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_84 (score VARCHAR, points VARCHAR, record VARCHAR)
### Question:
Which Score has Points of 88, and a Record of 38–22–12?
### Answer:
SELECT score FROM table_name_84 WHERE points = 88 AND record = "38–22–12" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_13 (attendance INTEGER, score VARCHAR, points VARCHAR)
### Question:
Which Attendance has a Score of 4–3, and Points smaller than 5?
### Answer:
SELECT MAX(attendance) FROM table_name_13 WHERE score = "4–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_84 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
### Question:
What is the time/retired for eddie irvine with a grid of greater than 3?
### Answer:
SELECT time_retired FROM table_name_84 WHERE grid > 3 AND driver = "eddie irvine" |
Below is an context that describes a sql 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, record VARCHAR)
### Question:
What is the Date with a game with a Record of 2–1–1?
### Answer:
SELECT date FROM table_name_68 WHERE record = "2–1–1" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_50 (home_team VARCHAR, away_team VARCHAR)
### Question:
What home team played North Melbourne?
### Answer:
SELECT home_team FROM table_name_50 WHERE away_team = "north 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_name_91 (title VARCHAR, season VARCHAR, attendance VARCHAR, runner_up VARCHAR)
### Question:
What was the title for the game with an attendance of n/a with the runner-up being Waseda, and a season of 1995-6 details?
### Answer:
SELECT title FROM table_name_91 WHERE attendance = "n/a" AND runner_up = "waseda" AND season = "1995-6 details" |
Below is an context that describes a sql 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 (country VARCHAR, place VARCHAR, player VARCHAR)
### Question:
What country is Gary Player from in T9 place?
### Answer:
SELECT country FROM table_name_38 WHERE place = "t9" AND player = "gary player" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_1982739_2 (pinyin VARCHAR, english_name VARCHAR)
### Question:
What is the Pinyin name for Dingyuan County?
### Answer:
SELECT pinyin FROM table_1982739_2 WHERE english_name = "Dingyuan County" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23285849_8 (record VARCHAR, score VARCHAR)
### Question:
Name the record for l 106–116 (ot)
### Answer:
SELECT record FROM table_23285849_8 WHERE score = "L 106–116 (OT)" |
Below is an context that describes a sql 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 (outcome VARCHAR, tournament VARCHAR)
### Question:
Name the outcome for dunlop world challenge
### Answer:
SELECT outcome FROM table_name_58 WHERE tournament = "dunlop world challenge" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_25692955_1 (route_number VARCHAR, south_west_terminal VARCHAR)
### Question:
Name the route number for rincon valley
### Answer:
SELECT route_number FROM table_25692955_1 WHERE south_west_terminal = "Rincon 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 (attendance INTEGER, date VARCHAR)
### Question:
Name the most attendance for 19 february 2005
### Answer:
SELECT MAX(attendance) FROM table_name_62 WHERE date = "19 february 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_63 (left_office VARCHAR, political_party VARCHAR, took_office VARCHAR)
### Question:
What is Left Office, when Political Party is Ba'ath Party ( Syria Region ), and when Took Office is 7 March 1958?
### Answer:
SELECT left_office FROM table_name_63 WHERE political_party = "ba'ath party ( syria region )" AND took_office = "7 march 1958" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_26 (year__ceremony_ VARCHAR, category VARCHAR, actor_actress VARCHAR)
### Question:
What is the year when sigourney weaver was nominated for best actress?
### Answer:
SELECT year__ceremony_ FROM table_name_26 WHERE category = "best actress" AND actor_actress = "sigourney weaver" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_16400024_1 (release_price___usd__ VARCHAR, model_number VARCHAR)
### Question:
How many release prices are there for the Pentium iii 550?
### Answer:
SELECT COUNT(release_price___usd__) FROM table_16400024_1 WHERE model_number = "Pentium III 550" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22180353_1 (type VARCHAR, registration VARCHAR)
### Question:
What are all types where registration is HB-OPU?
### Answer:
SELECT type FROM table_22180353_1 WHERE registration = "HB-OPU" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_19517621_4 (episode__number INTEGER, title VARCHAR)
### Question:
What is the latest episode number with the title of Jerusalem?
### Answer:
SELECT MAX(episode__number) FROM table_19517621_4 WHERE title = "Jerusalem" |
Below is an context that describes a sql 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 (city VARCHAR, team VARCHAR)
### Question:
where is the pegah team located?
### Answer:
SELECT city FROM table_name_74 WHERE team = "pegah" |
Below is an context that describes a sql 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 (tyres VARCHAR, driver VARCHAR)
### Question:
What is the tyres for Didier pironi?
### Answer:
SELECT tyres FROM table_name_10 WHERE driver = "didier pironi" |
Below is an context that describes a sql 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 (date VARCHAR, competition VARCHAR, score VARCHAR)
### Question:
In the 1936 summer Olympics what was the date of a match that ended with a score of 6-1?
### Answer:
SELECT date FROM table_name_33 WHERE competition = "1936 summer olympics" AND score = "6-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 Faculty (rank VARCHAR, Fname VARCHAR, Lname VARCHAR)
### Question:
Show the rank, first name, and last name for all the faculty.
### Answer:
SELECT rank, Fname, Lname FROM Faculty |
Below is an context that describes a sql 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 (race VARCHAR, date_of_execution VARCHAR)
### Question:
What was the race of the person executed on December 27, 1827?
### Answer:
SELECT race FROM table_name_52 WHERE date_of_execution = "december 27, 1827" |
Below is an context that describes a sql 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 (player VARCHAR, college VARCHAR, pick VARCHAR, position VARCHAR)
### Question:
What is the Offensive Guard Player from Mississippi State College with a Pick number larter than 44?
### Answer:
SELECT player FROM table_name_68 WHERE pick > 44 AND position = "offensive guard" AND college = "mississippi 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_40 (alternate_title_translation VARCHAR, series_premiere VARCHAR)
### Question:
What is the alternate title/translation of the series that premiered on December 12, 2006?
### Answer:
SELECT alternate_title_translation FROM table_name_40 WHERE series_premiere = "december 12, 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_12784134_1 (verbal_noun VARCHAR, basic_stem__root_ VARCHAR)
### Question:
What's the number of verbal nouns with the basic stem (root) -bil-?
### Answer:
SELECT COUNT(verbal_noun) FROM table_12784134_1 WHERE basic_stem__root_ = "-bil-" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28298471_14 (stage VARCHAR, winner VARCHAR)
### Question:
when svein tuft is the winner how many stages are there?
### Answer:
SELECT COUNT(stage) FROM table_28298471_14 WHERE winner = "Svein Tuft" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Student_Enrolment_Courses (course_id VARCHAR)
### Question:
What's the name of the course with most number of enrollments?
### Answer:
SELECT T1.course_name FROM Courses AS T1 JOIN Student_Enrolment_Courses AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_name ORDER BY COUNT(*) DESC LIMIT 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_2950964_5 (isbn VARCHAR, title VARCHAR)
### Question:
The Ring of Steel possesses what ISBN?
### Answer:
SELECT isbn FROM table_2950964_5 WHERE title = "The Ring Of Steel" |
Below is an context that describes a sql 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, venue VARCHAR)
### Question:
What was the away team score for the game played at MCG?
### Answer:
SELECT away_team AS score FROM table_name_89 WHERE venue = "mcg" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE tryout (cName VARCHAR, decision VARCHAR); CREATE TABLE college (state VARCHAR, cName VARCHAR)
### Question:
Find the states where have some college students in tryout and their decisions are yes.
### Answer:
SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes' |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_23215145_2 (team VARCHAR)
### Question:
What is the 2006-2007 points total number if the team is Saracens?
### Answer:
SELECT COUNT(2006 AS _07_points) FROM table_23215145_2 WHERE team = "Saracens" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Circulation_History (document_id VARCHAR, employee_id VARCHAR)
### Question:
For each document, list the number of employees who have showed up in the circulation history of that document. List the document ids and number of employees.
### Answer:
SELECT document_id, COUNT(DISTINCT employee_id) FROM Circulation_History GROUP BY document_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_26 (record VARCHAR, date VARCHAR)
### Question:
What was the record on September 4?
### Answer:
SELECT record FROM table_name_26 WHERE date = "september 4" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_16 (_2_ribbons VARCHAR, nation VARCHAR, place VARCHAR)
### Question:
Nation of bulgaria, and a Place larger than 1 had what highest 3 Balls, 2 Ribbons?
### Answer:
SELECT MAX(3 AS _balls), _2_ribbons FROM table_name_16 WHERE nation = "bulgaria" AND place > 1 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_58 (score VARCHAR, country VARCHAR)
### Question:
What was the score when the match was in the country of Scotland?
### Answer:
SELECT score FROM table_name_58 WHERE country = "scotland" |
Below is an context that describes a sql 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 (batting_team VARCHAR, venue VARCHAR, season VARCHAR)
### Question:
What batting team played in Chittagong in 2003?
### Answer:
SELECT batting_team FROM table_name_63 WHERE venue = "chittagong" AND season = "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_33 (official_website VARCHAR, number_of_episodes VARCHAR, english_title__chinese_title_ VARCHAR)
### Question:
What's the official website of Burning Flame 烈火雄心 with 22 episodes?
### Answer:
SELECT official_website FROM table_name_33 WHERE number_of_episodes > 22 AND english_title__chinese_title_ = "burning flame 烈火雄心" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_28898948_3 (reason VARCHAR, winner VARCHAR)
### Question:
When arthur collins is the winner what is the reason?
### Answer:
SELECT reason FROM table_28898948_3 WHERE winner = "Arthur Collins" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE nomination (Name VARCHAR, Artwork_ID VARCHAR); CREATE TABLE Artwork (Name VARCHAR, Artwork_ID VARCHAR)
### Question:
List the name of artworks that are not nominated.
### Answer:
SELECT Name FROM Artwork WHERE NOT Artwork_ID IN (SELECT Artwork_ID FROM nomination) |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE Apartments (apt_type_code VARCHAR, room_count INTEGER)
### Question:
Show the top 3 apartment type codes sorted by the average number of rooms in descending order.
### Answer:
SELECT apt_type_code FROM Apartments GROUP BY apt_type_code ORDER BY AVG(room_count) DESC LIMIT 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_65 (nickname_s_ VARCHAR, location VARCHAR)
### Question:
What Nickname(s) has a Location of elkville, illinois?
### Answer:
SELECT nickname_s_ FROM table_name_65 WHERE location = "elkville, illinois" |
Below is an context that describes a sql 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 (profits__billion_ INTEGER, company VARCHAR, market_value__billion_$_ VARCHAR, headquarters VARCHAR)
### Question:
What is the lowest Profits (billion $), when Market Value (billion $) is less than 201.3, when Headquarters is United States, and when Company is JPMorgan Chase?
### Answer:
SELECT MIN(profits__billion_) AS $_ FROM table_name_83 WHERE market_value__billion_$_ < 201.3 AND headquarters = "united states" AND company = "jpmorgan chase" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_22020724_1 (director VARCHAR, film_title_used_in_nomination VARCHAR)
### Question:
Who directed the film titled 'Steam of Life'?
### Answer:
SELECT director FROM table_22020724_1 WHERE film_title_used_in_nomination = "Steam of Life" |
Below is an context that describes a sql 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 (year INTEGER, performing_arts VARCHAR)
### Question:
Name the average year for janaprakal chandruang
### Answer:
SELECT AVG(year) FROM table_name_53 WHERE performing_arts = "janaprakal chandruang" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_84 (total INTEGER, nation VARCHAR, gold VARCHAR)
### Question:
What was Austria's lowest total when the gold was more than 3?
### Answer:
SELECT MIN(total) FROM table_name_84 WHERE nation = "austria" AND gold > 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_45 (laps INTEGER, time VARCHAR, grid VARCHAR)
### Question:
Tell me the least Laps for grid larger than 2 with 35:26.734
### Answer:
SELECT MIN(laps) FROM table_name_45 WHERE time = "35:26.734" AND grid > 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_57 (away_team VARCHAR, venue VARCHAR)
### Question:
How much did the away team score at victoria park?
### Answer:
SELECT away_team AS score FROM table_name_57 WHERE venue = "victoria park" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_97 (type VARCHAR, frequency VARCHAR)
### Question:
What is Type, when Frequency is "1480"?
### Answer:
SELECT type FROM table_name_97 WHERE frequency = 1480 |
Below is an context that describes a sql 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 (losses VARCHAR, central_murray VARCHAR, draws VARCHAR)
### Question:
What is the total number of losses of the central murray of tooleybuc manangatang, which has less than 0 draws?
### Answer:
SELECT COUNT(losses) FROM table_name_65 WHERE central_murray = "tooleybuc manangatang" AND draws < 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_60 (category VARCHAR, year VARCHAR, role_episode VARCHAR)
### Question:
Which Category was from before 2009 with a Role/Episode of Libby Goldstein and Junie Lowry-Johnson?
### Answer:
SELECT category FROM table_name_60 WHERE year < 2009 AND role_episode = "libby goldstein and junie lowry-johnson" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_45 (date VARCHAR, home_team VARCHAR)
### Question:
On what date did Melbourne play as the home team?
### Answer:
SELECT date FROM table_name_45 WHERE home_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_name_4 (goals INTEGER, player VARCHAR)
### Question:
Which Goals have a Player of noel carroll?
### Answer:
SELECT MIN(goals) FROM table_name_4 WHERE player = "noel carroll" |
Below is an context that describes a sql 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 (game VARCHAR, record VARCHAR)
### Question:
What is the Game number when the Rangers have a Record of 25-24-11?
### Answer:
SELECT COUNT(game) FROM table_name_18 WHERE record = "25-24-11" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_14937957_1 (masters VARCHAR, martial_art_style VARCHAR)
### Question:
Which masters fought in hapkido style?
### Answer:
SELECT masters FROM table_14937957_1 WHERE martial_art_style = "Hapkido" |
Below is an context that describes a sql 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 (colors VARCHAR, division VARCHAR, nickname VARCHAR)
### Question:
What are the colors for the division 2 team with the nickname, the seahawks?
### Answer:
SELECT colors FROM table_name_74 WHERE division = "division 2" AND nickname = "seahawks" |
Below is an context that describes a sql 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 (stopping_pattern VARCHAR, platform VARCHAR)
### Question:
What is Stopping Pattern, when Platform is 4?
### Answer:
SELECT stopping_pattern FROM table_name_92 WHERE platform = "4" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_35 (hdr_output___exr_ VARCHAR, _hdr VARCHAR, _logluv_ VARCHAR, _etc_ VARCHAR, name VARCHAR)
### Question:
What's the HDR output of Photovista Panorama?
### Answer:
SELECT hdr_output___exr_, _hdr, _logluv_, _etc_ FROM table_name_35 WHERE name = "photovista panorama" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_13050003_3 (steals VARCHAR, year VARCHAR)
### Question:
What is the number of steals for 2012
### Answer:
SELECT COUNT(steals) FROM table_13050003_3 WHERE year = 2012 |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_56 (date VARCHAR, city VARCHAR)
### Question:
What day did they play in salford?
### Answer:
SELECT date FROM table_name_56 WHERE city = "salford" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_1 (listed VARCHAR, built VARCHAR, type VARCHAR)
### Question:
What is the listed date of the Warren pony truss bridge that was built in 1925?
### Answer:
SELECT listed FROM table_name_1 WHERE built = "1925" AND type = "warren pony truss" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE table_name_2 (date VARCHAR, away_team VARCHAR)
### Question:
What is Date, when Away Team is "Gillingham"?
### Answer:
SELECT date FROM table_name_2 WHERE away_team = "gillingham" |
Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request. # noqa: E501
### Context:
CREATE TABLE endowment (amount VARCHAR, donator_name VARCHAR)
### Question:
List the amount and donor name for the largest amount of donation.
### Answer:
SELECT amount, donator_name FROM endowment ORDER BY amount DESC LIMIT 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.