answer
stringlengths 18
557
| question
stringlengths 12
244
| context
stringlengths 27
489
|
---|---|---|
SELECT nickname FROM table_name_25 WHERE years_in_gfl = "1986-1988"
|
What is the nickname of the team who was in the GFL from 1986-1988?
|
CREATE TABLE table_name_25 (nickname VARCHAR, years_in_gfl VARCHAR)
|
SELECT first_elected FROM table_1341472_15 WHERE district = "Illinois 18"
|
what's the first elected with district illinois 18
|
CREATE TABLE table_1341472_15 (first_elected VARCHAR, district VARCHAR)
|
SELECT representative FROM table_name_72 WHERE begin_date = "january 4, 1997"
|
Which member of the United States House of Representatives began their term on January 4, 1997?
|
CREATE TABLE table_name_72 (representative VARCHAR, begin_date VARCHAR)
|
SELECT us_hot_100 FROM table_name_95 WHERE us_r & b = "13"
|
Which U.S. Hot has 13 as the U.S. R&B?
|
CREATE TABLE table_name_95 (us_hot_100 VARCHAR, us_r VARCHAR, b VARCHAR)
|
SELECT poverty_rate FROM table_22815568_1 WHERE market_income_per_capita = "$16,420"
|
What is the poverty rate in the county that has a market income per capita of $16,420?
|
CREATE TABLE table_22815568_1 (poverty_rate VARCHAR, market_income_per_capita VARCHAR)
|
SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Blanche" AND T2.customer_last_name = "Huels" AND T1.card_type_code = "Credit"
|
How many credit cards does customer Blanche Huels have?
|
CREATE TABLE Customers_cards (customer_id VARCHAR, card_type_code VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR)
|
SELECT rider FROM table_name_79 WHERE speed = "120.953 mph"
|
Who was the rider with 120.953 mph speed?
|
CREATE TABLE table_name_79 (rider VARCHAR, speed VARCHAR)
|
SELECT nationality FROM table_name_86 WHERE player = "mattias modig"
|
What is the nationality of Mattias Modig?
|
CREATE TABLE table_name_86 (nationality VARCHAR, player VARCHAR)
|
SELECT MAX(attendance) FROM table_name_99 WHERE venue = "td banknorth garden" AND series = "montreal leads 3-1"
|
Name the most that attendend when the venue was td banknorth garden and the series of montreal leads 3-1
|
CREATE TABLE table_name_99 (attendance INTEGER, venue VARCHAR, series VARCHAR)
|
SELECT package_option FROM table_15887683_8 WHERE n° = 543
|
Name the package/option for number being 543
|
CREATE TABLE table_15887683_8 (package_option VARCHAR, n° VARCHAR)
|
SELECT visitor FROM table_name_13 WHERE date = "december 17"
|
Which Visitor is listed as having a Date of December 17?
|
CREATE TABLE table_name_13 (visitor VARCHAR, date VARCHAR)
|
SELECT state FROM bank GROUP BY state ORDER BY SUM(no_of_customers) DESC LIMIT 1
|
Find the state which has the most number of customers.
|
CREATE TABLE bank (state VARCHAR, no_of_customers INTEGER)
|
SELECT COUNT(crowd) FROM table_name_45 WHERE venue = "mcg"
|
What is the crowd total at mcg?
|
CREATE TABLE table_name_45 (crowd VARCHAR, venue VARCHAR)
|
SELECT MAX(episode) FROM table_2140071_8 WHERE premier_date = "March 8, 2008"
|
Which Maximum episode premiered March 8, 2008?
|
CREATE TABLE table_2140071_8 (episode INTEGER, premier_date VARCHAR)
|
SELECT tournament FROM table_name_47 WHERE runner_s__up = "gary mccord"
|
Which tournament has a Runner(s)-up of Gary McCord?
|
CREATE TABLE table_name_47 (tournament VARCHAR, runner_s__up VARCHAR)
|
SELECT outcome FROM table_name_68 WHERE opponent = "pascale paradis-mangon"
|
WHICH Outcome has aN Opponent of pascale paradis-mangon?
|
CREATE TABLE table_name_68 (outcome VARCHAR, opponent VARCHAR)
|
SELECT play_off FROM table_1059743_1 WHERE points = "860.5"
|
Did any team score games that totaled up to 860.5?
|
CREATE TABLE table_1059743_1 (play_off VARCHAR, points VARCHAR)
|
SELECT final_score FROM table_name_48 WHERE date = "november 22"
|
What is the Final score on november 22?
|
CREATE TABLE table_name_48 (final_score VARCHAR, date VARCHAR)
|
SELECT yard_name FROM table_name_19 WHERE ship_types_delivered = "n3 type, v4 type" AND total_vessels_built_for_usmc = "13 ships for usmc"
|
what is the yard name when the ship types delivered is n3 type, v4 type and the total vessels built for usmc is 13 ships for usmc?
|
CREATE TABLE table_name_19 (yard_name VARCHAR, ship_types_delivered VARCHAR, total_vessels_built_for_usmc VARCHAR)
|
SELECT category FROM table_name_90 WHERE year > 1991 AND score = "7-5, 6-7, 6-2"
|
What was the Category after 1991 with a Score of 7-5, 6-7, 6-2?
|
CREATE TABLE table_name_90 (category VARCHAR, year VARCHAR, score VARCHAR)
|
SELECT human_gene__protein_ FROM table_name_41 WHERE yeast_ortholog = "rad26"
|
What human gene has a yeast ortholog of RAD26?
|
CREATE TABLE table_name_41 (human_gene__protein_ VARCHAR, yeast_ortholog VARCHAR)
|
SELECT inscription FROM table_name_57 WHERE identification = "virgil"
|
What is the name of the inscription where Virgil is listed as the identification?
|
CREATE TABLE table_name_57 (inscription VARCHAR, identification VARCHAR)
|
SELECT COUNT(team) FROM table_27383390_4 WHERE incoming_head_coach = "Abdollah Veysi"
|
How many times is the incoming head coach abdollah veysi?
|
CREATE TABLE table_27383390_4 (team VARCHAR, incoming_head_coach VARCHAR)
|
SELECT film FROM table_name_2 WHERE date = "22/3/06"
|
What film was awarded on 22/3/06?
|
CREATE TABLE table_name_2 (film VARCHAR, date VARCHAR)
|
SELECT Category FROM music_festival GROUP BY Category HAVING COUNT(*) > 1
|
Please show the categories of the music festivals with count more than 1.
|
CREATE TABLE music_festival (Category VARCHAR)
|
SELECT MAX(overall) FROM table_name_31 WHERE college = "idaho" AND round < 1
|
Which highest overall has a College of idaho, and a Round smaller than 1?
|
CREATE TABLE table_name_31 (overall INTEGER, college VARCHAR, round VARCHAR)
|
SELECT T4.instrument FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId JOIN Instruments AS T4 ON T4.songid = T3.songid AND T4.bandmateid = T2.id WHERE T2.lastname = "Heilo" AND T3.title = "Badlands"
|
What instrument did the musician with last name "Heilo" use in the song "Badlands"?
|
CREATE TABLE Songs (SongId VARCHAR, songid VARCHAR, title VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, lastname VARCHAR); CREATE TABLE Instruments (instrument VARCHAR, songid VARCHAR, bandmateid VARCHAR)
|
SELECT cerclis_id FROM table_name_96 WHERE county = "polk" AND deleted = "08/04/2009"
|
What is the CERCLIS ID of the site in Polk County, with the date 08/04/2009?
|
CREATE TABLE table_name_96 (cerclis_id VARCHAR, county VARCHAR, deleted VARCHAR)
|
SELECT team FROM table_name_5 WHERE value__$m_ < 377 AND country = "germany" AND rank = 17
|
Which team has a value less than 377 million in Germany with a rank of 17?
|
CREATE TABLE table_name_5 (team VARCHAR, rank VARCHAR, value__$m_ VARCHAR, country VARCHAR)
|
SELECT driver___passenger FROM table_name_9 WHERE bike_no < 4 AND equipment = "zabel -vmc"
|
Which Driver and passenger have a bike number of less than 4 with zabel -vmc equipment?
|
CREATE TABLE table_name_9 (driver___passenger VARCHAR, bike_no VARCHAR, equipment VARCHAR)
|
SELECT medal FROM table_name_48 WHERE games = "2008 beijing" AND sport = "taekwondo"
|
Which Medal had a Games of 2008 beijing, and a Sport of taekwondo?
|
CREATE TABLE table_name_48 (medal VARCHAR, games VARCHAR, sport VARCHAR)
|
SELECT winning_team FROM table_26267607_2 WHERE round = "6"
|
In Round 6, who is the winning team?
|
CREATE TABLE table_26267607_2 (winning_team VARCHAR, round VARCHAR)
|
SELECT loss FROM table_name_96 WHERE date = "june 30"
|
Name the loss for june 30
|
CREATE TABLE table_name_96 (loss VARCHAR, date VARCHAR)
|
SELECT result FROM table_22736523_1 WHERE song_choice = "Coba"
|
What is the result if Coba is the song choice?
|
CREATE TABLE table_22736523_1 (result VARCHAR, song_choice VARCHAR)
|
SELECT director FROM table_name_51 WHERE production_number = "9368"
|
Who is the director of the production number 9368?
|
CREATE TABLE table_name_51 (director VARCHAR, production_number VARCHAR)
|
SELECT COUNT(*) FROM products AS t1 JOIN product_characteristics AS t2 ON t1.product_id = t2.product_id JOIN CHARACTERISTICS AS t3 ON t2.characteristic_id = t3.characteristic_id JOIN ref_colors AS t4 ON t1.color_code = t4.color_code WHERE t4.color_description = "red" AND t3.characteristic_name = "slow"
|
Find the number of the products that have their color described as "red" and have a characteristic named "slow".
|
CREATE TABLE CHARACTERISTICS (characteristic_id VARCHAR, characteristic_name VARCHAR); CREATE TABLE ref_colors (color_code VARCHAR, color_description VARCHAR); CREATE TABLE products (product_id VARCHAR, color_code VARCHAR); CREATE TABLE product_characteristics (product_id VARCHAR, characteristic_id VARCHAR)
|
SELECT notes FROM table_name_41 WHERE athlete = "gabriella bascelli"
|
What notes did Gabriella Bascelli receive?
|
CREATE TABLE table_name_41 (notes VARCHAR, athlete VARCHAR)
|
SELECT net_profit__us_$m_ FROM table_18077713_1 WHERE revenue__us_$million_ = "150.6"
|
How much is the net profit when the revenue is 150.6 million dollars?
|
CREATE TABLE table_18077713_1 (net_profit__us_$m_ VARCHAR, revenue__us_$million_ VARCHAR)
|
SELECT digital_channel FROM table_name_65 WHERE name = "storm tracker"
|
Which digital channel is named Storm Tracker?
|
CREATE TABLE table_name_65 (digital_channel VARCHAR, name VARCHAR)
|
SELECT county FROM table_name_68 WHERE ihsaa_class = "aaa" AND enrollment < 799
|
Which County has an IHSAA Class of aaa, and an Enrollment smaller than 799?
|
CREATE TABLE table_name_68 (county VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR)
|
SELECT MIN(manhunt_international) FROM table_30018460_1
|
What is the minimum manhunt beauty contest?
|
CREATE TABLE table_30018460_1 (manhunt_international INTEGER)
|
SELECT COUNT(sales) FROM table_name_88 WHERE artist = "kelly clarkson"
|
What is the sales when the artist is kelly clarkson?
|
CREATE TABLE table_name_88 (sales VARCHAR, artist VARCHAR)
|
SELECT studio_s_ FROM table_name_22 WHERE year = 2012 AND movie = "dabangg"
|
Which Studio has the Year of 2012 listed and the Movie, Dabangg?
|
CREATE TABLE table_name_22 (studio_s_ VARCHAR, year VARCHAR, movie VARCHAR)
|
SELECT season FROM table_name_25 WHERE runner_up = "waseda" AND title = "47th"
|
What season has a runner-up of waseda, and a title of 47th?
|
CREATE TABLE table_name_25 (season VARCHAR, runner_up VARCHAR, title VARCHAR)
|
SELECT party FROM table_name_20 WHERE election > 2012 AND inhabitants > 241 OFFSET 310
|
What party has more than 241,310 inhabitants after 2012?
|
CREATE TABLE table_name_20 (party VARCHAR, election VARCHAR, inhabitants VARCHAR)
|
SELECT home_team AS score FROM table_16387653_1 WHERE away_team = "Richmond"
|
What did the home team score against Richmond?
|
CREATE TABLE table_16387653_1 (home_team VARCHAR, away_team VARCHAR)
|
SELECT AVG(apr_2013) FROM table_name_76 WHERE jun_2011 < 14
|
What is the average Apr 2013 with a Jun 2011 less than 14?
|
CREATE TABLE table_name_76 (apr_2013 INTEGER, jun_2011 INTEGER)
|
SELECT date FROM table_name_71 WHERE game = 37
|
What date was game 37?
|
CREATE TABLE table_name_71 (date VARCHAR, game VARCHAR)
|
SELECT SUM(caps) FROM table_name_83 WHERE goals < 9 AND rank > 8
|
What is the sum of caps for players with less than 9 goals ranked below 8?
|
CREATE TABLE table_name_83 (caps INTEGER, goals VARCHAR, rank VARCHAR)
|
SELECT time FROM table_name_47 WHERE rank = 40
|
What is the time of the swimmer in rank 40?
|
CREATE TABLE table_name_47 (time VARCHAR, rank VARCHAR)
|
SELECT tie_no FROM table_name_44 WHERE date = "18 february 1956" AND away_team = "tottenham hotspur"
|
/What is Tie No, when Date is 18 February 1956, and when Away Team is Tottenham Hotspur?
|
CREATE TABLE table_name_44 (tie_no VARCHAR, date VARCHAR, away_team VARCHAR)
|
SELECT date FROM table_name_68 WHERE city = "punta del este"
|
What is the Date of the Event in Punta del Este?
|
CREATE TABLE table_name_68 (date VARCHAR, city VARCHAR)
|
SELECT position FROM table_name_75 WHERE nationality = "united states" AND player = "jimmy oliver"
|
What position did Jimmy Oliver of the United States play?
|
CREATE TABLE table_name_75 (position VARCHAR, nationality VARCHAR, player VARCHAR)
|
SELECT other_mozilla FROM table_name_80 WHERE period = "january 2010"
|
What other mozilla has January 2010 as the period?
|
CREATE TABLE table_name_80 (other_mozilla VARCHAR, period VARCHAR)
|
SELECT visitor FROM table_name_77 WHERE date = "12 march 2008"
|
Who was the visiting team on 12 March 2008?
|
CREATE TABLE table_name_77 (visitor VARCHAR, date VARCHAR)
|
SELECT AVG(balance) FROM checking
|
Find the average checking balance.
|
CREATE TABLE checking (balance INTEGER)
|
SELECT player FROM table_name_96 WHERE college = "manitoba"
|
Which player plays for the college of manitoba?
|
CREATE TABLE table_name_96 (player VARCHAR, college VARCHAR)
|
SELECT COUNT(*), T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > "1986-11-13" GROUP BY T2.product_id
|
For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?
|
CREATE TABLE product (product_id VARCHAR); CREATE TABLE problems (product_id VARCHAR, date_problem_reported INTEGER)
|
SELECT COUNT(attendance) FROM table_name_16 WHERE result = "l 24-20" AND week < 5
|
What is the total attendance in a week less than 5 when the result was l 24-20?
|
CREATE TABLE table_name_16 (attendance VARCHAR, result VARCHAR, week VARCHAR)
|
SELECT COUNT(silver) FROM table_name_44 WHERE total > 9 AND gold = 14
|
How much Silver has a Total larger than 9, and a Gold of 14?
|
CREATE TABLE table_name_44 (silver VARCHAR, total VARCHAR, gold VARCHAR)
|
SELECT adelaide FROM table_name_31 WHERE sydney = "yes" AND melbourne = "yes" AND perth = "no"
|
Which Adelaide has Sydney yes, Melbourne yes, and Perth no?
|
CREATE TABLE table_name_31 (adelaide VARCHAR, perth VARCHAR, sydney VARCHAR, melbourne VARCHAR)
|
SELECT height__m_ FROM table_name_19 WHERE nation = "sweden (swe)" AND weight__kg_ = "102"
|
what is the height (m) when the nation is sweden (swe) and the weight (kg) is 102?
|
CREATE TABLE table_name_19 (height__m_ VARCHAR, nation VARCHAR, weight__kg_ VARCHAR)
|
SELECT COUNT(points) FROM table_name_3 WHERE details = "1951 nswrfl grand final"
|
What's the total number of points scored during the 1951 NSWRFL Grand Final?
|
CREATE TABLE table_name_3 (points VARCHAR, details VARCHAR)
|
SELECT latin FROM table_name_13 WHERE tibetan = "ས"
|
What is the Latin letter for the Tibetan of ས?
|
CREATE TABLE table_name_13 (latin VARCHAR, tibetan VARCHAR)
|
SELECT ihsaa_class FROM table_name_93 WHERE mascot = "eagles" AND city = "evansville"
|
Which IHSAA Class has a Mascot of eagles, and a City of evansville?
|
CREATE TABLE table_name_93 (ihsaa_class VARCHAR, mascot VARCHAR, city VARCHAR)
|
SELECT incumbent FROM table_19753079_8 WHERE first_elected = 2009
|
What incumbent was first elected in 2009?
|
CREATE TABLE table_19753079_8 (incumbent VARCHAR, first_elected VARCHAR)
|
SELECT MIN(round) FROM table_name_29 WHERE player = "ed smith" AND pick > 19
|
What is the lowest round of Ed Smith, who had a pick lower than 19?
|
CREATE TABLE table_name_29 (round INTEGER, player VARCHAR, pick VARCHAR)
|
SELECT SUM(bronze) FROM table_name_24 WHERE rank = "3" AND total > 2
|
what is bronze when the rank is 3 and the total is more than 2?
|
CREATE TABLE table_name_24 (bronze INTEGER, rank VARCHAR, total VARCHAR)
|
SELECT verb_meaning FROM table_1745843_7 WHERE part_1 = "slapen"
|
What's the meaning of the verb whose part 1 is slapen?
|
CREATE TABLE table_1745843_7 (verb_meaning VARCHAR, part_1 VARCHAR)
|
SELECT SUM(crs_credit), dept_code FROM course GROUP BY dept_code
|
What is the total credit does each department offer?
|
CREATE TABLE course (dept_code VARCHAR, crs_credit INTEGER)
|
SELECT _number FROM table_28498999_5 WHERE score = 70 - 69 - 69 - 70 = 278
|
What is the # listed when the score is 70-69-69-70=278?
|
CREATE TABLE table_28498999_5 (_number VARCHAR, score VARCHAR)
|
SELECT capacity FROM table_name_68 WHERE name = "1.2 16v"
|
what is the capacity when the name is 1.2 16v?
|
CREATE TABLE table_name_68 (capacity VARCHAR, name VARCHAR)
|
SELECT COUNT(division) FROM table_name_9 WHERE fa_cup = "round of 16" AND season > 2012
|
What is the division in the season more recent than 2012 when the round of 16 was reached in the FA Cup?
|
CREATE TABLE table_name_9 (division VARCHAR, fa_cup VARCHAR, season VARCHAR)
|
SELECT club FROM table_name_59 WHERE home_ground = "central reserve"
|
What was the club when home ground was Central Reserve?
|
CREATE TABLE table_name_59 (club VARCHAR, home_ground VARCHAR)
|
SELECT avg_finish FROM table_1012730_1 WHERE year = 2012
|
In 2012 what was the average finish?
|
CREATE TABLE table_1012730_1 (avg_finish VARCHAR, year VARCHAR)
|
SELECT COUNT(week) FROM table_14984050_1 WHERE attendance = 50073
|
Name the number of weeks for 50073 attendance
|
CREATE TABLE table_14984050_1 (week VARCHAR, attendance VARCHAR)
|
SELECT COUNT(enrollment) FROM table_261941_1 WHERE joined = "1931, 1949 1"
|
How many different items appear in the enrollment column that joined in 1931, 1949 1?
|
CREATE TABLE table_261941_1 (enrollment VARCHAR, joined VARCHAR)
|
SELECT date FROM table_name_89 WHERE away_team = "north melbourne"
|
When did the game with North Melbourne as the away team take place?
|
CREATE TABLE table_name_89 (date VARCHAR, away_team VARCHAR)
|
SELECT AVG(last_cf) FROM table_name_44 WHERE cf_appearances < 4 AND cf_wins < 1 AND team = "st. louis blues"
|
What is the average last cf of the st. louis blues, who has less than 4 cf appearances and less than 1 cf wins?
|
CREATE TABLE table_name_44 (last_cf INTEGER, team VARCHAR, cf_appearances VARCHAR, cf_wins VARCHAR)
|
SELECT AVG(total) FROM table_name_67 WHERE nation = "egypt" AND gold < 2
|
What is the average total medals Egypt, who has less than 2 gold, has?
|
CREATE TABLE table_name_67 (total INTEGER, nation VARCHAR, gold VARCHAR)
|
SELECT t1.name, t1.age FROM pilot AS t1 JOIN MATCH AS t2 ON t1.pilot_id = t2.winning_pilot ORDER BY t1.age LIMIT 1
|
what is the name and age of the youngest winning pilot?
|
CREATE TABLE pilot (name VARCHAR, age VARCHAR, pilot_id VARCHAR); CREATE TABLE MATCH (winning_pilot VARCHAR)
|
SELECT award FROM table_name_2 WHERE result = "nominated" AND year = 2007
|
What award was Trent Tesoro nominated for in 2007?
|
CREATE TABLE table_name_2 (award VARCHAR, result VARCHAR, year VARCHAR)
|
SELECT lost FROM table_17366952_1 WHERE goal_average_1 = "1.21"
|
List all losses with average goals of 1.21.
|
CREATE TABLE table_17366952_1 (lost VARCHAR, goal_average_1 VARCHAR)
|
SELECT archive FROM table_2102714_1 WHERE run_time = "25:24"
|
What was the archive for the episode with a run time of 25:24?
|
CREATE TABLE table_2102714_1 (archive VARCHAR, run_time VARCHAR)
|
SELECT venue FROM table_name_87 WHERE home_team = "fitzroy"
|
What was the venue where Fitzroy played as the home team?
|
CREATE TABLE table_name_87 (venue VARCHAR, home_team VARCHAR)
|
SELECT time_retired FROM table_name_52 WHERE laps < 52 AND grid = 19
|
What is the Time/Retired for less than 52 laps in grid 19?
|
CREATE TABLE table_name_52 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
|
SELECT result FROM table_name_81 WHERE bowl_game = "1947 sun bowl"
|
What result has 1947 sun bowl as the bowl game?
|
CREATE TABLE table_name_81 (result VARCHAR, bowl_game VARCHAR)
|
SELECT school FROM table_name_74 WHERE county = "69 ripley"
|
What school has a county of 69 ripley?
|
CREATE TABLE table_name_74 (school VARCHAR, county VARCHAR)
|
SELECT record FROM table_name_97 WHERE game_site = "hoosier dome" AND week = 13
|
What was the Record on Week 13 at the Hoosier Dome?
|
CREATE TABLE table_name_97 (record VARCHAR, game_site VARCHAR, week VARCHAR)
|
SELECT name FROM table_name_67 WHERE round = 9
|
Round of 9 involved what name?
|
CREATE TABLE table_name_67 (name VARCHAR, round VARCHAR)
|
SELECT record FROM table_name_13 WHERE loss = "spillner (1-8)"
|
What was the record at the game that had a loss of Spillner (1-8)?
|
CREATE TABLE table_name_13 (record VARCHAR, loss VARCHAR)
|
SELECT location FROM table_name_90 WHERE winner = "baltimore colts" AND year < 1972 AND result = "14-6"
|
What is the Location, when the Winner is the Baltimore Colts, when the Year is before 1972, and when the Result is 14-6?
|
CREATE TABLE table_name_90 (location VARCHAR, result VARCHAR, winner VARCHAR, year VARCHAR)
|
SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'good' INTERSECT SELECT T1.coupon_amount FROM Discount_Coupons AS T1 JOIN customers AS T2 ON T1.coupon_id = T2.coupon_id WHERE T2.good_or_bad_customer = 'bad'
|
What are the coupon amount of the coupons owned by both good and bad customers?
|
CREATE TABLE Discount_Coupons (coupon_amount VARCHAR, coupon_id VARCHAR); CREATE TABLE customers (coupon_id VARCHAR, good_or_bad_customer VARCHAR)
|
SELECT no_in_series FROM table_10718631_2 WHERE no_in_season = 10
|
Which episode was the number in the season where the number in the season is 10?
|
CREATE TABLE table_10718631_2 (no_in_series VARCHAR, no_in_season VARCHAR)
|
SELECT championship_titles FROM table_name_83 WHERE fastest_laps < 3 AND podiums = 22
|
How many titles for the nation with less than 3 fastest laps and 22 podiums?
|
CREATE TABLE table_name_83 (championship_titles VARCHAR, fastest_laps VARCHAR, podiums VARCHAR)
|
SELECT COUNT(evening_gown) FROM table_name_79 WHERE preliminaries < 8.647 AND state = "district of columbia"
|
What is the evening gown score of the contestant from the District of Columbia with preliminaries smaller than 8.647?
|
CREATE TABLE table_name_79 (evening_gown VARCHAR, preliminaries VARCHAR, state VARCHAR)
|
SELECT COUNT(player) FROM table_28286776_52 WHERE goal_s_ = 8
|
How many players had 8 goals?
|
CREATE TABLE table_28286776_52 (player VARCHAR, goal_s_ VARCHAR)
|
SELECT winning_driver FROM table_name_22 WHERE constructor = "brm" AND race_name = "xii spring trophy"
|
Who was the winner of the XII Spring Trophy race with BRM as the constructor?
|
CREATE TABLE table_name_22 (winning_driver VARCHAR, constructor VARCHAR, race_name VARCHAR)
|
SELECT home_team AS score FROM table_name_47 WHERE venue = "windy hill"
|
What team has Windy Hill as their home venue
|
CREATE TABLE table_name_47 (home_team VARCHAR, venue VARCHAR)
|
SELECT result FROM table_name_26 WHERE home_team = "los angeles" AND game = "game 5"
|
What is the result of game 5 with Los Angeles as the home team?
|
CREATE TABLE table_name_26 (result VARCHAR, home_team VARCHAR, game VARCHAR)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.