answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT directed_by FROM table_234886_3 WHERE no_in_series = 44 | Who directed episode no. 44 in the series? | CREATE TABLE table_234886_3 (directed_by VARCHAR, no_in_series VARCHAR) |
SELECT title FROM table_name_87 WHERE written_by = "terri hughes & ron milbauer" AND original_air_date = "march 6, 2001" | What is the Title written by Terri Hughes & Ron Milbauer, and an Original air date of march 6, 2001? | CREATE TABLE table_name_87 (title VARCHAR, written_by VARCHAR, original_air_date VARCHAR) |
SELECT class FROM table_22824297_1 WHERE position = "Guard" AND player = "Tal Brody" | What is every class with a position of guard and Tal Brody as the player? | CREATE TABLE table_22824297_1 (class VARCHAR, position VARCHAR, player VARCHAR) |
SELECT points_for FROM table_name_76 WHERE points_against = "571" | What is Points For, when Points Against is 571? | CREATE TABLE table_name_76 (points_for VARCHAR, points_against VARCHAR) |
SELECT college FROM table_name_84 WHERE round > 6 AND position = "defensive end" | Which college has a defensive end with a round less than 6? | CREATE TABLE table_name_84 (college VARCHAR, round VARCHAR, position VARCHAR) |
SELECT time_retired FROM table_name_42 WHERE grid = "19" | What is the time/retired when the grid is 19? | CREATE TABLE table_name_42 (time_retired VARCHAR, grid VARCHAR) |
SELECT COUNT(original_air_date) FROM table_19266557_1 WHERE _number = 7 | For episode number 7, what was the numbers of original air dates? | CREATE TABLE table_19266557_1 (original_air_date VARCHAR, _number VARCHAR) |
SELECT iata FROM table_name_83 WHERE airport = "berlin schönefeld airport" | What kind of IATA that has a Airport of berlin schönefeld airport? | CREATE TABLE table_name_83 (iata VARCHAR, airport VARCHAR) |
SELECT mountains_classification FROM table_15059783_1 WHERE winner = "Alejandro Valverde" AND points_classification = "Erik Zabel" | If winner is alejandro Valverde and the points Classification is by Erik Zabel, who is the mountain classification? | CREATE TABLE table_15059783_1 (mountains_classification VARCHAR, winner VARCHAR, points_classification VARCHAR) |
SELECT school FROM table_11677100_12 WHERE position = "Catcher" | What school did the catcher attend? | CREATE TABLE table_11677100_12 (school VARCHAR, position VARCHAR) |
SELECT name FROM table_name_96 WHERE reserved_for___sc___st__none_ = "none" AND constituency_number = "7" | Which Name has a Reserved for of none, and a Constituency number of 7? | CREATE TABLE table_name_96 (name VARCHAR, reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) |
SELECT opponent FROM table_name_36 WHERE date = "august 8" | Who was the opponent of the game on August 8? | CREATE TABLE table_name_36 (opponent VARCHAR, date VARCHAR) |
SELECT score FROM table_name_36 WHERE leading_scorer = "devin brown (24)" | What score has devin brown (24) as the leading scorer? | CREATE TABLE table_name_36 (score VARCHAR, leading_scorer VARCHAR) |
SELECT SUM(labour_party) FROM table_name_29 WHERE fianna_fáil = 3 AND total > 9 AND green_party > 2 | How many are in the Labour Party of a Fianna Fail of 3 with a total higher than 9 and more than 2 in the Green Party? | CREATE TABLE table_name_29 (labour_party INTEGER, green_party VARCHAR, fianna_fáil VARCHAR, total VARCHAR) |
SELECT score FROM table_name_62 WHERE opponent = "seattle" | Which Score has an Opponent of seattle? | CREATE TABLE table_name_62 (score VARCHAR, opponent VARCHAR) |
SELECT SUM(grid) FROM table_name_58 WHERE driver = "patrick carpentier" AND laps < 103 | What is the sum of a grid for driver Patrick Carpentier and less than 103 laps? | CREATE TABLE table_name_58 (grid INTEGER, driver VARCHAR, laps VARCHAR) |
SELECT COUNT(constancy) FROM table_11609814_1 WHERE purity = "falling" | what is the total number of constancy where purity is falling | CREATE TABLE table_11609814_1 (constancy VARCHAR, purity VARCHAR) |
SELECT type_of_record FROM table_21436373_6 WHERE result_games = "9 games (57,144 avg.)" | Which type of record has result/games of 9 games (57,144 avg.) | CREATE TABLE table_21436373_6 (type_of_record VARCHAR, result_games VARCHAR) |
SELECT rank FROM table_name_15 WHERE country = "italy" | What is Italy's rank? | CREATE TABLE table_name_15 (rank VARCHAR, country VARCHAR) |
SELECT airport FROM table_name_59 WHERE iata = "bkk" | Which airport has IATA of BKK? | CREATE TABLE table_name_59 (airport VARCHAR, iata VARCHAR) |
SELECT MAX(year) FROM table_24642706_1 WHERE money_list_rank = 74 | Name the most year for money list rank is 74 | CREATE TABLE table_24642706_1 (year INTEGER, money_list_rank VARCHAR) |
SELECT customer_details FROM Customers EXCEPT SELECT T1.customer_details FROM Customers AS T1 JOIN Customer_Policies AS T2 ON T1.customer_id = T2.customer_id | List the details of the customers who do not have any policies. | CREATE TABLE Customer_Policies (customer_id VARCHAR); CREATE TABLE Customers (customer_details VARCHAR, customer_id VARCHAR); CREATE TABLE Customers (customer_details VARCHAR) |
SELECT identity_ies_ FROM table_name_93 WHERE dvd_volume > 5 | What identities have more than 5 DVD volumes? | CREATE TABLE table_name_93 (identity_ies_ VARCHAR, dvd_volume INTEGER) |
SELECT score FROM table_name_41 WHERE game < 69 AND record = "4–56" | What is the Score of the game earlier than 69 with a record of 4–56? | CREATE TABLE table_name_41 (score VARCHAR, game VARCHAR, record VARCHAR) |
SELECT T2.name, COUNT(*) FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id GROUP BY T1.artist_id | Show all artist names and the number of exhibitions for each artist. | CREATE TABLE artist (name VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition (artist_id VARCHAR) |
SELECT circuit FROM table_13079788_3 WHERE date = "9 September" AND gt3_winner = "Hector Lester Allan Simonsen" | what are all the circuit for 9 september and gt3 winner hector lester allan simonsen | CREATE TABLE table_13079788_3 (circuit VARCHAR, date VARCHAR, gt3_winner VARCHAR) |
SELECT fineness FROM table_name_28 WHERE year < 2007 | What was the fineness prior to 2007? | CREATE TABLE table_name_28 (fineness VARCHAR, year INTEGER) |
SELECT weekly_winner FROM table_name_85 WHERE air_date = "july 4, 2008" | What is Weekly Winner, when Air Date is "July 4, 2008"? | CREATE TABLE table_name_85 (weekly_winner VARCHAR, air_date VARCHAR) |
SELECT city FROM table_name_86 WHERE stadium = "ciro vigorito" | What city houses the Ciro Vigorito stadium? | CREATE TABLE table_name_86 (city VARCHAR, stadium VARCHAR) |
SELECT player FROM table_name_40 WHERE score = 69 - 68 - 66 - 70 = 273 | What Player's Score is 69-68-66-70=273? | CREATE TABLE table_name_40 (player VARCHAR, score VARCHAR) |
SELECT successor FROM table_225099_3 WHERE state__class_ = "Maine (2)" | Who was the successor for the state of Maine (2) ? | CREATE TABLE table_225099_3 (successor VARCHAR, state__class_ VARCHAR) |
SELECT league FROM table_1986692_1 WHERE open_cup = "Final" | When final is the open cup what is the league? | CREATE TABLE table_1986692_1 (league VARCHAR, open_cup VARCHAR) |
SELECT MIN(attendance) FROM table_name_7 WHERE record = "7-15" | What was the smallest attendance at a game when the record was 7-15? | CREATE TABLE table_name_7 (attendance INTEGER, record VARCHAR) |
SELECT result FROM table_name_47 WHERE competition = "friendly" AND score = "5-0" AND date = "october 27, 2005" | What is the Result of the Friendly Competition on October 27, 2005 with a Score of 5-0? | CREATE TABLE table_name_47 (result VARCHAR, date VARCHAR, competition VARCHAR, score VARCHAR) |
SELECT title FROM item ORDER BY title | List the titles of all items in alphabetic order . | CREATE TABLE item (title VARCHAR) |
SELECT year FROM table_name_36 WHERE award = "kids' choice awards argentina" AND category = "best actress" | What year was there a nomination for Best Actress at the Kids' Choice Awards Argentina? | CREATE TABLE table_name_36 (year VARCHAR, award VARCHAR, category VARCHAR) |
SELECT away FROM table_name_93 WHERE score = "3:1" | What was the away team when the score was 3:1? | CREATE TABLE table_name_93 (away VARCHAR, score VARCHAR) |
SELECT tournament FROM table_name_14 WHERE score = "6–2, 4–6, 6–4" | What Tournament's Score was 6–2, 4–6, 6–4? | CREATE TABLE table_name_14 (tournament VARCHAR, score VARCHAR) |
SELECT AVG(score) FROM table_name_35 WHERE place = "t1" AND player = "hubert green" | Which Score has a Place of t1, and a Player of hubert green? | CREATE TABLE table_name_35 (score INTEGER, place VARCHAR, player VARCHAR) |
SELECT result FROM table_name_25 WHERE home_away = "home" AND date = "august 14" | What is the result of the home game on August 14? | CREATE TABLE table_name_25 (result VARCHAR, home_away VARCHAR, date VARCHAR) |
SELECT host_team FROM table_name_29 WHERE visiting_team = "new england patriots" | Which host team played against the New England Patriots? | CREATE TABLE table_name_29 (host_team VARCHAR, visiting_team VARCHAR) |
SELECT MAX(total) FROM table_name_28 WHERE year_s__won = "1979" AND to_par < 11 | What is the Total of the Player who won in 1979 with a To par of less than 11? | CREATE TABLE table_name_28 (total INTEGER, year_s__won VARCHAR, to_par VARCHAR) |
SELECT AVG(points) FROM table_name_60 WHERE drawn = 0 AND lost = 5 AND played > 10 | what is the average points when drawn is 0, lost is 5 and played is more than 10? | CREATE TABLE table_name_60 (points INTEGER, played VARCHAR, drawn VARCHAR, lost VARCHAR) |
SELECT MIN(points) FROM table_24108789_6 WHERE _number = 6 | Name the least points for number 6 | CREATE TABLE table_24108789_6 (points INTEGER, _number VARCHAR) |
SELECT MAX(number_of_families) FROM table_16048129_5 WHERE average_family_size = "2.7" | What is the most number of families in regions where average family size is 2.7? | CREATE TABLE table_16048129_5 (number_of_families INTEGER, average_family_size VARCHAR) |
SELECT MAX(bronze) FROM table_name_29 WHERE nation = "israel" AND silver < 3 | What is the highest number of bronze medals that israel acheived when they got less than 3 silver medals? | CREATE TABLE table_name_29 (bronze INTEGER, nation VARCHAR, silver VARCHAR) |
SELECT COUNT(segment_c) FROM table_15187735_20 WHERE segment_d = "Bicycle Tires" | How many segment C are there in the episode where segment D is bicycle tires? | CREATE TABLE table_15187735_20 (segment_c VARCHAR, segment_d VARCHAR) |
SELECT COUNT(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id WHERE T1.founded > 1880 OR T1.type = 'Private' | How many proteins are associated with an institution founded after 1880 or an institution with type "Private"? | CREATE TABLE institution (institution_id VARCHAR, founded VARCHAR, type VARCHAR); CREATE TABLE protein (institution_id VARCHAR) |
SELECT away_team AS score FROM table_name_41 WHERE away_team = "carlton" | What was the away score for Carlton? | CREATE TABLE table_name_41 (away_team VARCHAR) |
SELECT Name FROM conductor ORDER BY Year_of_Work DESC LIMIT 1 | List the name of the conductor with the most years of work. | CREATE TABLE conductor (Name VARCHAR, Year_of_Work VARCHAR) |
SELECT elevator FROM table_name_50 WHERE elevated = "september 21, 1179" | What is the Elevator of the Elected Elevated on September 21, 1179? | CREATE TABLE table_name_50 (elevator VARCHAR, elevated VARCHAR) |
SELECT date FROM table_name_97 WHERE event = "1500 m freestyle" | What date was the 1500 m freestyle competition? | CREATE TABLE table_name_97 (date VARCHAR, event VARCHAR) |
SELECT county FROM table_name_9 WHERE prominence__m_ < 1292 AND isolation__km_ = 14 | What country has a prominence less than 1292 and an Isolation (km) of 14? | CREATE TABLE table_name_9 (county VARCHAR, prominence__m_ VARCHAR, isolation__km_ VARCHAR) |
SELECT MIN(all_time) FROM table_name_35 WHERE first_title = 2007 AND amateur_era > 0 | What is the lowest All-Time, when First Title is "2007, and when Amateur Era is greater than 0? | CREATE TABLE table_name_35 (all_time INTEGER, first_title VARCHAR, amateur_era VARCHAR) |
SELECT opponent FROM table_name_60 WHERE record = "64-51" | Who's the opponent of the game with the record 64-51? | CREATE TABLE table_name_60 (opponent VARCHAR, record VARCHAR) |
SELECT date FROM table_name_13 WHERE away_team = "minehead" | What is Date, when Away Team is "Minehead"? | CREATE TABLE table_name_13 (date VARCHAR, away_team VARCHAR) |
SELECT opponent FROM table_name_96 WHERE loss = "bell (6–9)" | Who was the opponent at the game that had a loss of Bell (6–9)? | CREATE TABLE table_name_96 (opponent VARCHAR, loss VARCHAR) |
SELECT building_address, building_phone FROM Apartment_Buildings WHERE building_manager = "Brenden" | Show the addresses and phones of all the buildings managed by "Brenden". | CREATE TABLE Apartment_Buildings (building_address VARCHAR, building_phone VARCHAR, building_manager VARCHAR) |
SELECT COUNT(*) FROM Rooms WHERE bedType = "King" | Find the number of rooms with a king bed. | CREATE TABLE Rooms (bedType VARCHAR) |
SELECT pick__number FROM table_name_42 WHERE overall < 145 AND college = "ohio state" | What is College of Ohio State's pick number with an overall lower than 145? | CREATE TABLE table_name_42 (pick__number VARCHAR, overall VARCHAR, college VARCHAR) |
SELECT MAX(round) FROM table_name_14 WHERE school_club_team = "louisville" AND pick > 75 | What's the highest round that louisville drafted into when their pick was over 75? | CREATE TABLE table_name_14 (round INTEGER, school_club_team VARCHAR, pick VARCHAR) |
SELECT 1953 FROM table_name_52 WHERE 1947 = "2" AND 1938 = "dne" | What 1953 has 2 for 1947, and dne as 1938? | CREATE TABLE table_name_52 (Id VARCHAR) |
SELECT COUNT(attendance) FROM table_name_64 WHERE record = "26-35" | What was the attendance at the ballpark during the game where the Blue Jays had a record of 26-35 during the 1996 season? | CREATE TABLE table_name_64 (attendance VARCHAR, record VARCHAR) |
SELECT opponent FROM table_21091127_1 WHERE record = "6-2" | Which opponent has a record of 6-2? | CREATE TABLE table_21091127_1 (opponent VARCHAR, record VARCHAR) |
SELECT Maker, Model FROM MODEL_LIST | What are all the makers and models? | CREATE TABLE MODEL_LIST (Maker VARCHAR, Model VARCHAR) |
SELECT MIN(bronze) FROM table_name_63 WHERE gold > 0 AND total = 36 AND silver > 11 | What is the smallest bronze value associated with golds over 0, silvers over 11, and totals of 36? | CREATE TABLE table_name_63 (bronze INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR) |
SELECT surface FROM table_name_13 WHERE opponent = "gustavo kuerten" | WHich Surface has an Opponent of gustavo kuerten? | CREATE TABLE table_name_13 (surface VARCHAR, opponent VARCHAR) |
SELECT AVG(pick__number) FROM table_name_9 WHERE player = "mike williams" | Name the average Pick # of mike williams? | CREATE TABLE table_name_9 (pick__number INTEGER, player VARCHAR) |
SELECT nation FROM table_name_91 WHERE sail = "usa-18" | Which Nation has the USA-18 sail? | CREATE TABLE table_name_91 (nation VARCHAR, sail VARCHAR) |
SELECT final FROM table_name_73 WHERE event = "63.5 kg" | What is the final result for the 63.5 kg? | CREATE TABLE table_name_73 (final VARCHAR, event VARCHAR) |
SELECT driver FROM table_name_58 WHERE points = "9" | Which driver scored 9 points? | CREATE TABLE table_name_58 (driver VARCHAR, points VARCHAR) |
SELECT date FROM table_name_42 WHERE week > 14 | Which date has a week larger than 14? | CREATE TABLE table_name_42 (date VARCHAR, week INTEGER) |
SELECT geographical_regions FROM table_24192031_2 WHERE contestant = "Laura Jiménez Ynoa" | What geographical region is contestant laura jiménez ynoa from? | CREATE TABLE table_24192031_2 (geographical_regions VARCHAR, contestant VARCHAR) |
SELECT MAX(evening_gown) FROM table_name_8 WHERE average = 9.531 AND swimsuit < 9.449 | What is the highest evening gown with an average of 9.531 and swimsuit smaller than 9.449? | CREATE TABLE table_name_8 (evening_gown INTEGER, average VARCHAR, swimsuit VARCHAR) |
SELECT MAX(points) FROM table_name_35 WHERE score = "4–1" | Which Points have a Score of 4–1? | CREATE TABLE table_name_35 (points INTEGER, score VARCHAR) |
SELECT SUM(to_par) FROM table_name_88 WHERE score = 76 - 77 - 74 - 75 = 302 | What is the sum of the to par with a 76-77-74-75=302 score? | CREATE TABLE table_name_88 (to_par INTEGER, score VARCHAR) |
SELECT 1 AS st_leg FROM table_name_14 WHERE team_1 = "lesotho" | What was the 1st leg score for the match with Lesotho as team 1? | CREATE TABLE table_name_14 (team_1 VARCHAR) |
SELECT party FROM table_name_19 WHERE first_elected = "1898" | Which party was first elected in 1898? | CREATE TABLE table_name_19 (party VARCHAR, first_elected VARCHAR) |
SELECT MIN(gain) FROM table_name_95 WHERE long = 0 AND gp_gs = "4–0" AND loss < 3 | Name the lowest Gain which has a Long of 0, and a GP-GS of 4–0, and a Loss smaller than 3? | CREATE TABLE table_name_95 (gain INTEGER, loss VARCHAR, long VARCHAR, gp_gs VARCHAR) |
SELECT motogp_winner FROM table_26781017_1 WHERE circuit = "Catalunya" | Who are all the motogp winners when the circuit was Catalunya? | CREATE TABLE table_26781017_1 (motogp_winner VARCHAR, circuit VARCHAR) |
SELECT date FROM table_name_29 WHERE visitor = "nets" | Name the date when the visitor is nets | CREATE TABLE table_name_29 (date VARCHAR, visitor VARCHAR) |
SELECT opponent_number FROM table_name_78 WHERE attendance = "63,659" | What opponent had an attendance of 63,659? | CREATE TABLE table_name_78 (opponent_number VARCHAR, attendance VARCHAR) |
SELECT original_title FROM table_15277629_1 WHERE director = "Bruno Barreto" AND year__ceremony_ = 1989 | What was the original title of the Bruno Barreto film in 1989 | CREATE TABLE table_15277629_1 (original_title VARCHAR, director VARCHAR, year__ceremony_ VARCHAR) |
SELECT year__ceremony_ FROM table_name_38 WHERE language_s_ = "dari" AND original_title = "osama (أسامة)" | WHAT IS THE YEAR WITH DARI, AND TITLE osama (أسامة)? | CREATE TABLE table_name_38 (year__ceremony_ VARCHAR, language_s_ VARCHAR, original_title VARCHAR) |
SELECT SUM(lost) FROM table_name_71 WHERE played < 42 | what is the lost when played is less than 42? | CREATE TABLE table_name_71 (lost INTEGER, played INTEGER) |
SELECT date FROM table_name_61 WHERE label = "alfa records" AND catalog = "alca-487" | What is the Date when the label was alfa records, and a Catalog of alca-487? | CREATE TABLE table_name_61 (date VARCHAR, label VARCHAR, catalog VARCHAR) |
SELECT winning_score FROM table_name_87 WHERE year < 1959 AND runner_s__up = "jackie pung" | What is the winning score before 1959, with runner-up Jackie Pung? | CREATE TABLE table_name_87 (winning_score VARCHAR, year VARCHAR, runner_s__up VARCHAR) |
SELECT production_code__order_they_were_made___number FROM table_2342078_2 WHERE episode__number = 13 | What is every production code for episode # 13? | CREATE TABLE table_2342078_2 (production_code__order_they_were_made___number VARCHAR, episode__number VARCHAR) |
SELECT position FROM table_name_94 WHERE player = "mario kasun" | What position does Mario Kasun play? | CREATE TABLE table_name_94 (position VARCHAR, player VARCHAR) |
SELECT loss FROM table_name_45 WHERE opponent = "yankees" AND attendance = "27,652" | What was the loss of the game against the Yankees that was attended by 27,652? | CREATE TABLE table_name_45 (loss VARCHAR, opponent VARCHAR, attendance VARCHAR) |
SELECT to_par FROM table_21469545_2 WHERE date = "20 Feb 2005" | Name the to par for 20 feb 2005 | CREATE TABLE table_21469545_2 (to_par VARCHAR, date VARCHAR) |
SELECT high_assists FROM table_name_78 WHERE date = "march 30" | who had the high assists on march 30? | CREATE TABLE table_name_78 (high_assists VARCHAR, date VARCHAR) |
SELECT score FROM table_name_35 WHERE opponents = "pkns fc" AND date = "january 8, 2006" | Which Score has Opponents of pkns fc, and a Date of january 8, 2006? | CREATE TABLE table_name_35 (score VARCHAR, opponents VARCHAR, date VARCHAR) |
SELECT city FROM table_name_41 WHERE results¹ = "4:2" | what city has the results of 4:2? | CREATE TABLE table_name_41 (city VARCHAR, results¹ VARCHAR) |
SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING AVG(total_amount_purchased) > 50000 OR AVG(total_amount_purchased) < 30000 | Find the id of suppliers whose average amount purchased for each product is above 50000 or below 30000. | CREATE TABLE Product_Suppliers (supplier_id VARCHAR, total_amount_purchased INTEGER) |
SELECT MIN(blank_ends) FROM table_29546030_2 WHERE pf = 44 | What is the least amount of blank ends for a skip who has 44 PF? | CREATE TABLE table_29546030_2 (blank_ends INTEGER, pf VARCHAR) |
SELECT number FROM table_name_50 WHERE language = "german" | How many speak german? | CREATE TABLE table_name_50 (number VARCHAR, language VARCHAR) |
SELECT COUNT(bowl) FROM table_2724704_5 WHERE studio_analyst_s_ = "Lee Corso, Gene Chizik and Chip Kelly" | Name the number of bowl for lee corso, gene chizik and chip kelly | CREATE TABLE table_2724704_5 (bowl VARCHAR, studio_analyst_s_ VARCHAR) |
SELECT location FROM table_26358264_2 WHERE fastest_qualifying = "Cancelled" | When cancelled is the fastest qualifying where is the location? | CREATE TABLE table_26358264_2 (location VARCHAR, fastest_qualifying VARCHAR) |
SELECT surface FROM table_name_47 WHERE score_in_the_final = "0–6, 4–6" | On what surface was the score in the final 0–6, 4–6? | CREATE TABLE table_name_47 (surface VARCHAR, score_in_the_final VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.