question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
Find the country of all appelations who have at most three wines. | CREATE TABLE APPELLATIONS (County VARCHAR, Appelation VARCHAR); CREATE TABLE WINE (Appelation VARCHAR) | SELECT T1.County FROM APPELLATIONS AS T1 JOIN WINE AS T2 ON T1.Appelation = T2.Appelation GROUP BY T2.Appelation HAVING COUNT(*) <= 3 |
What is the order number of the Billboard Hot 100 Hits theme and the original artist was Sixpence None the Richer? | CREATE TABLE table_26250155_1 (order__number VARCHAR, theme VARCHAR, original_artist VARCHAR) | SELECT order__number FROM table_26250155_1 WHERE theme = "Billboard Hot 100 Hits" AND original_artist = "Sixpence None the Richer" |
WHAT POSITION HAS A 23 PICK? | CREATE TABLE table_name_50 (position VARCHAR, pick VARCHAR) | SELECT position FROM table_name_50 WHERE pick = 23 |
Who was the winning team on the circuit Zolder? | CREATE TABLE table_18095719_2 (winning_team VARCHAR, circuit VARCHAR) | SELECT winning_team FROM table_18095719_2 WHERE circuit = "Zolder" |
Can you tell me the Chassis that has the Year of 1977? | CREATE TABLE table_name_47 (chassis VARCHAR, year VARCHAR) | SELECT chassis FROM table_name_47 WHERE year = 1977 |
How many records for number of viewers is listed for episode number 8? | CREATE TABLE table_24689168_5 (viewers__millions_ VARCHAR, episode VARCHAR) | SELECT COUNT(viewers__millions_) FROM table_24689168_5 WHERE episode = 8 |
What is the sum of Poles, when Podiums is 0, and when Races is 17? | CREATE TABLE table_name_35 (poles INTEGER, podiums VARCHAR, races VARCHAR) | SELECT SUM(poles) FROM table_name_35 WHERE podiums = 0 AND races = 17 |
What was the attendance of the game where fitzroy was the away team? | CREATE TABLE table_name_83 (crowd VARCHAR, away_team VARCHAR) | SELECT COUNT(crowd) FROM table_name_83 WHERE away_team = "fitzroy" |
How many Games have a Lost of 6, and Points smaller than 7? | CREATE TABLE table_name_31 (games INTEGER, lost VARCHAR, points VARCHAR) | SELECT SUM(games) FROM table_name_31 WHERE lost = 6 AND points < 7 |
What is the name of the browser that became compatible with the accelerator 'CProxy' after year 1998 ? | CREATE TABLE accelerator_compatible_browser (browser_id VARCHAR, accelerator_id VARCHAR, compatible_since_year VARCHAR); CREATE TABLE web_client_accelerator (id VARCHAR, name VARCHAR); CREATE TABLE browser (name VARCHAR, id VARCHAR) | SELECT T1.name FROM browser AS T1 JOIN accelerator_compatible_browser AS T2 ON T1.id = T2.browser_id JOIN web_client_accelerator AS T3 ON T2.accelerator_id = T3.id WHERE T3.name = 'CProxy' AND T2.compatible_since_year > 1998 |
Who was eliminated from the competition when connacht to the quarter final? | CREATE TABLE table_28068063_3 (eliminated_from_competition VARCHAR, proceed_to_quarter_final VARCHAR) | SELECT eliminated_from_competition FROM table_28068063_3 WHERE proceed_to_quarter_final = "Connacht" |
What is the # of lanes on 20th street? | CREATE TABLE table_name_43 (_number_of_lanes VARCHAR, street VARCHAR) | SELECT _number_of_lanes FROM table_name_43 WHERE street = "20th street" |
Which first edition has an ISBN of 978-0785166252? | CREATE TABLE table_name_50 (first_edition VARCHAR, isbn VARCHAR) | SELECT first_edition FROM table_name_50 WHERE isbn = "978-0785166252" |
What is "the wørd" when guests were daniel ellsberg , william wegman , julie taymor? | CREATE TABLE table_25691838_12 (the_wørd VARCHAR, guest VARCHAR) | SELECT the_wørd FROM table_25691838_12 WHERE guest = "Daniel Ellsberg , William Wegman , Julie Taymor" |
What's the total of the position of 1? | CREATE TABLE table_name_91 (total INTEGER, position INTEGER) | SELECT SUM(total) FROM table_name_91 WHERE position < 1 |
Among deaths 106 000 how many is crude rate. | CREATE TABLE table_21258_1 (crude_death_rate VARCHAR, deaths VARCHAR) | SELECT crude_death_rate FROM table_21258_1 WHERE deaths = "106 000" |
What was the Attendance on November 7, 1999? | CREATE TABLE table_name_86 (attendance VARCHAR, date VARCHAR) | SELECT attendance FROM table_name_86 WHERE date = "november 7, 1999" |
What is Model Number, when Part Number(s) is AY80609003987AB? | CREATE TABLE table_name_70 (model_number VARCHAR, part_number_s_ VARCHAR) | SELECT model_number FROM table_name_70 WHERE part_number_s_ = "ay80609003987ab" |
What school has the nickname of Cardinals? | CREATE TABLE table_name_9 (founded INTEGER, nickname VARCHAR) | SELECT MIN(founded) FROM table_name_9 WHERE nickname = "cardinals" |
What is the recent BMI on season 8 for the person who's BMI started under 46.3? | CREATE TABLE table_name_49 (recent_bmi VARCHAR, start_bmi VARCHAR, season VARCHAR) | SELECT recent_bmi FROM table_name_49 WHERE start_bmi < 46.3 AND season = "season 8" |
how many teams had an appointment date of 11 april 2011 | CREATE TABLE table_27495117_3 (team VARCHAR, date_of_appointment VARCHAR) | SELECT COUNT(team) FROM table_27495117_3 WHERE date_of_appointment = "11 April 2011" |
what is the highest round when the player is troy creurer (d)? | CREATE TABLE table_name_90 (round INTEGER, player VARCHAR) | SELECT MAX(round) FROM table_name_90 WHERE player = "troy creurer (d)" |
What is the score with third place of stefan edberg? | CREATE TABLE table_name_33 (score VARCHAR, third_place VARCHAR) | SELECT score FROM table_name_33 WHERE third_place = "stefan edberg" |
Which Tuesday Tiw/Tyr has a Sunday Sunna/Sol of sondag? | CREATE TABLE table_name_61 (tuesday_tiw__tyr VARCHAR, sunday_sunna_sól VARCHAR) | SELECT tuesday_tiw__tyr FROM table_name_61 WHERE sunday_sunna_sól = "sondag" |
What was the attendance at the game that had a loss of Crabtree (0-1)? | CREATE TABLE table_name_34 (attendance VARCHAR, loss VARCHAR) | SELECT attendance FROM table_name_34 WHERE loss = "crabtree (0-1)" |
What is the % Won of Team of durham | CREATE TABLE table_name_12 (_percentage_won VARCHAR, team VARCHAR) | SELECT _percentage_won FROM table_name_12 WHERE team = "durham" |
What is the Money of the T4 Place Player with a Score of 71-66-74-67=278? | CREATE TABLE table_name_64 (money___ INTEGER, place VARCHAR, score VARCHAR) | SELECT AVG(money___) AS $__ FROM table_name_64 WHERE place = "t4" AND score = 71 - 66 - 74 - 67 = 278 |
List the name of the school with the smallest enrollment. | CREATE TABLE school (school_name VARCHAR, enrollment VARCHAR) | SELECT school_name FROM school ORDER BY enrollment LIMIT 1 |
List the locations of schools that do not have any player. | CREATE TABLE school (LOCATION VARCHAR, School_ID VARCHAR); CREATE TABLE Player (LOCATION VARCHAR, School_ID VARCHAR) | SELECT LOCATION FROM school WHERE NOT School_ID IN (SELECT School_ID FROM Player) |
Who directed the episode with 3.19 million u.s. viewers? | CREATE TABLE table_12722302_2 (directed_by VARCHAR, us_viewers__million_ VARCHAR) | SELECT directed_by FROM table_12722302_2 WHERE us_viewers__million_ = "3.19" |
How many wickets was there when the economy was 3.64? | CREATE TABLE table_28797906_3 (wickets VARCHAR, economy VARCHAR) | SELECT wickets FROM table_28797906_3 WHERE economy = "3.64" |
What the smallest version number and its template type code? | CREATE TABLE Templates (template_type_code VARCHAR, Version_Number INTEGER) | SELECT MIN(Version_Number), template_type_code FROM Templates |
What is the plural preterite that is associated with a subjunctive preterite of ü and has an infinitive stem of e + l/r + cons.? | CREATE TABLE table_name_93 (plur_pret VARCHAR, subj_pret VARCHAR, inf_stem VARCHAR) | SELECT plur_pret FROM table_name_93 WHERE subj_pret = "ü" AND inf_stem = "e + l/r + cons." |
What is the total pick# played by Anton Rodin with a Reg GP over 0? | CREATE TABLE table_name_32 (pick__number VARCHAR, player VARCHAR, reg_gp VARCHAR) | SELECT COUNT(pick__number) FROM table_name_32 WHERE player = "anton rodin" AND reg_gp > 0 |
What is the AG value associated with a D3&4 of 41? | CREATE TABLE table_name_71 (ag VARCHAR, d3 VARCHAR) | SELECT ag FROM table_name_71 WHERE d3 & 4 = "41" |
For how many years has the Mercury Prize been awarded? | CREATE TABLE table_name_71 (year VARCHAR, award VARCHAR) | SELECT COUNT(year) FROM table_name_71 WHERE award = "mercury prize" |
What is the total number of viewers where the share is 7 and the week rank is 64? | CREATE TABLE table_16072430_1 (viewers VARCHAR, share VARCHAR, weekly_rank VARCHAR) | SELECT COUNT(viewers) FROM table_16072430_1 WHERE share = 7 AND weekly_rank = "64" |
Name the highest Year with a Score of 4–1? | CREATE TABLE table_name_71 (year INTEGER, score VARCHAR) | SELECT MAX(year) FROM table_name_71 WHERE score = "4–1" |
What is the grid with a +0.180 time? | CREATE TABLE table_name_67 (grid VARCHAR, time VARCHAR) | SELECT grid FROM table_name_67 WHERE time = "+0.180" |
What is the Set 3 when the total was 53–75? | CREATE TABLE table_name_26 (set_3 VARCHAR, total VARCHAR) | SELECT set_3 FROM table_name_26 WHERE total = "53–75" |
Which home team plays at victoria park? | CREATE TABLE table_name_46 (home_team VARCHAR, venue VARCHAR) | SELECT home_team FROM table_name_46 WHERE venue = "victoria park" |
How many counties are at milepost 69.5? | CREATE TABLE table_2572788_1 (county VARCHAR, milepost VARCHAR) | SELECT COUNT(county) FROM table_2572788_1 WHERE milepost = "69.5" |
Which Game has a Team of at phoenix, and a Score of 107-119? | CREATE TABLE table_name_54 (game VARCHAR, team VARCHAR, score VARCHAR) | SELECT COUNT(game) FROM table_name_54 WHERE team = "at phoenix" AND score = "107-119" |
What is the lowest overall score prior to 1992 with a downhill score of 1? | CREATE TABLE table_name_57 (overall INTEGER, downhill VARCHAR, season VARCHAR) | SELECT MIN(overall) FROM table_name_57 WHERE downhill = "1" AND season < 1992 |
Name the comprehension for non-fluent, effortful, slow | CREATE TABLE table_2088_1 (auditory_comprehension VARCHAR, fluency VARCHAR) | SELECT auditory_comprehension FROM table_2088_1 WHERE fluency = "non-fluent, effortful, slow" |
What location has surveying as the type? | CREATE TABLE table_name_68 (location VARCHAR, type VARCHAR) | SELECT location FROM table_name_68 WHERE type = "surveying" |
What was the 6-4 score's maximum attendance? | CREATE TABLE table_27537518_4 (attendance INTEGER, score VARCHAR) | SELECT MAX(attendance) FROM table_27537518_4 WHERE score = "6-4" |
Who was the deceased spouse who was married for 4 years? | CREATE TABLE table_24143253_5 (deceased_spouse VARCHAR, length_of_marriage VARCHAR) | SELECT deceased_spouse FROM table_24143253_5 WHERE length_of_marriage = "4 years" |
List the name of actors whose age is not 20. | CREATE TABLE actor (Name VARCHAR, Age VARCHAR) | SELECT Name FROM actor WHERE Age <> 20 |
What is the total number of Rank with 100 goals, and less than 300 matches? | CREATE TABLE table_name_3 (rank VARCHAR, goals VARCHAR, matches VARCHAR) | SELECT COUNT(rank) FROM table_name_3 WHERE goals = 100 AND matches < 300 |
What year was Kirkland founded? | CREATE TABLE table_13759592_2 (founded VARCHAR, location VARCHAR) | SELECT founded FROM table_13759592_2 WHERE location = "Kirkland" |
Name the most epiosdes when region 4 is march 13, 2008 | CREATE TABLE table_14562722_2 (episodes INTEGER, region_4 VARCHAR) | SELECT MAX(episodes) FROM table_14562722_2 WHERE region_4 = "March 13, 2008" |
What number episode in the series is the episode "things that fly"? | CREATE TABLE table_13505192_3 (series_number INTEGER, episode_title VARCHAR) | SELECT MAX(series_number) FROM table_13505192_3 WHERE episode_title = "Things That Fly" |
In which city is the Universidad de Santiago de Compostela located? | CREATE TABLE table_name_37 (city VARCHAR, name VARCHAR) | SELECT city FROM table_name_37 WHERE name = "universidad de santiago de compostela" |
Which Reigon has a Village of Chassagne-Montrachet? | CREATE TABLE table_name_82 (region VARCHAR, village VARCHAR) | SELECT region FROM table_name_82 WHERE village = "chassagne-montrachet" |
Name the circuit for france and portugal | CREATE TABLE table_2446333_2 (circuit VARCHAR, main_winner VARCHAR, country VARCHAR) | SELECT circuit FROM table_2446333_2 WHERE main_winner = "France" AND country = "Portugal" |
What was the firefox % was chrome was 25.08%? | CREATE TABLE table_name_86 (firefox VARCHAR, chrome VARCHAR) | SELECT firefox FROM table_name_86 WHERE chrome = "25.08%" |
What competition has a Score of 7–0? | CREATE TABLE table_name_85 (competition VARCHAR, score VARCHAR) | SELECT competition FROM table_name_85 WHERE score = "7–0" |
Which Year has a Genre of rock (track)? | CREATE TABLE table_name_3 (year INTEGER, genre VARCHAR) | SELECT SUM(year) FROM table_name_3 WHERE genre = "rock (track)" |
What is the pick number for Ray Giroux? | CREATE TABLE table_name_52 (pick VARCHAR, player VARCHAR) | SELECT pick FROM table_name_52 WHERE player = "ray giroux" |
Which country and state does staff with first name as Janessa and last name as Sawayn lived? | CREATE TABLE Addresses (country VARCHAR, state_province_county VARCHAR, address_id VARCHAR); CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR) | SELECT T1.country, T1.state_province_county FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" |
What is the date for the game with team orlando? | CREATE TABLE table_27756314_8 (date VARCHAR, team VARCHAR) | SELECT date FROM table_27756314_8 WHERE team = "Orlando" |
What is the total quantity of products purchased by "Rodrick Heaney"? | CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE order_items (order_quantity INTEGER, order_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR) | SELECT SUM(t3.order_quantity) FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id WHERE t1.customer_name = "Rodrick Heaney" |
What was the value in 1966 with a 0 value in 1969? | CREATE TABLE table_name_72 (Id VARCHAR) | SELECT 1966 FROM table_name_72 WHERE 1969 = "0" |
Which Beam has a Model of 570? | CREATE TABLE table_name_17 (beam VARCHAR, model VARCHAR) | SELECT beam FROM table_name_17 WHERE model = "570" |
Featherstone Rovers club played a total of how many games? | CREATE TABLE table_19179465_1 (played VARCHAR, club VARCHAR) | SELECT COUNT(played) FROM table_19179465_1 WHERE club = "Featherstone Rovers" |
When was Too Hop to Handle released? | CREATE TABLE table_name_68 (release_date VARCHAR, title VARCHAR) | SELECT release_date FROM table_name_68 WHERE title = "too hop to handle" |
what is the lowest round pole position of satoshi motoyama | CREATE TABLE table_name_22 (round INTEGER, pole_position VARCHAR) | SELECT MIN(round) FROM table_name_22 WHERE pole_position = "satoshi motoyama" |
What's Italy's time when the notes were SA/B? | CREATE TABLE table_name_96 (time VARCHAR, notes VARCHAR, country VARCHAR) | SELECT time FROM table_name_96 WHERE notes = "sa/b" AND country = "italy" |
What is the Week number on September 6, 1946? | CREATE TABLE table_name_48 (week INTEGER, date VARCHAR) | SELECT SUM(week) FROM table_name_48 WHERE date = "september 6, 1946" |
What Motion Picture after 2003 had Viola Davis nominated for Best Supporting Actress? | CREATE TABLE table_name_70 (motion_picture VARCHAR, award VARCHAR, actor VARCHAR, year VARCHAR, result VARCHAR) | SELECT motion_picture FROM table_name_70 WHERE year > 2003 AND result = "nominated" AND actor = "viola davis" AND award = "best supporting actress" |
Who competed on may 6, 2006? | CREATE TABLE table_name_50 (opponents VARCHAR, date VARCHAR) | SELECT opponents FROM table_name_50 WHERE date = "may 6, 2006" |
I want the engine for luigi villoresi | CREATE TABLE table_name_44 (engine VARCHAR, driver VARCHAR) | SELECT engine FROM table_name_44 WHERE driver = "luigi villoresi" |
What series 1 has a Doug Richards in Series 2? | CREATE TABLE table_name_58 (series_1 VARCHAR, series_2 VARCHAR) | SELECT series_1 FROM table_name_58 WHERE series_2 = "doug richards" |
Date of march 30 involves what home? | CREATE TABLE table_name_86 (home VARCHAR, date VARCHAR) | SELECT home FROM table_name_86 WHERE date = "march 30" |
What is the control for Christopher Newport University? | CREATE TABLE table_2076608_1 (control VARCHAR, school VARCHAR) | SELECT control FROM table_2076608_1 WHERE school = "Christopher Newport University" |
What date was the 1500 m freestyle competition? | CREATE TABLE table_name_97 (date VARCHAR, event VARCHAR) | SELECT date FROM table_name_97 WHERE event = "1500 m freestyle" |
How many teams have hight points listed as David Lee (31)? | CREATE TABLE table_27755784_8 (team VARCHAR, high_points VARCHAR) | SELECT COUNT(team) FROM table_27755784_8 WHERE high_points = "David Lee (31)" |
What are the notes from the rank of 1? | CREATE TABLE table_name_47 (notes VARCHAR, rank VARCHAR) | SELECT notes FROM table_name_47 WHERE rank = 1 |
Name the original air date for harry hannigan directed by adam weissman | CREATE TABLE table_23937219_2 (original_air_date VARCHAR, written_by VARCHAR, directed_by VARCHAR) | SELECT original_air_date FROM table_23937219_2 WHERE written_by = "Harry Hannigan" AND directed_by = "Adam Weissman" |
Name the date successor seated for failure to elect | CREATE TABLE table_225094_4 (date_successor_seated VARCHAR, reason_for_change VARCHAR) | SELECT date_successor_seated FROM table_225094_4 WHERE reason_for_change = "failure to elect" |
What was Donald Bradman's average runs? | CREATE TABLE table_name_21 (runs INTEGER, player VARCHAR) | SELECT AVG(runs) FROM table_name_21 WHERE player = "donald bradman" |
What was the away team when the game was at Princes Park? | CREATE TABLE table_name_12 (away_team VARCHAR, venue VARCHAR) | SELECT away_team FROM table_name_12 WHERE venue = "princes park" |
Which player won the Masters in 1976? | CREATE TABLE table_name_66 (player VARCHAR, year_s__won VARCHAR) | SELECT player FROM table_name_66 WHERE year_s__won = "1976" |
Which Round is the highest one that has a Pick smaller than 10, and a Name of tory nixon? | CREATE TABLE table_name_7 (round INTEGER, pick VARCHAR, name VARCHAR) | SELECT MAX(round) FROM table_name_7 WHERE pick < 10 AND name = "tory nixon" |
What was the attendance on september 29? | CREATE TABLE table_name_83 (attendance INTEGER, date VARCHAR) | SELECT MAX(attendance) FROM table_name_83 WHERE date = "september 29" |
what's the torque with trim being xe (2009) | CREATE TABLE table_1373768_1 (torque VARCHAR, trim VARCHAR) | SELECT torque FROM table_1373768_1 WHERE trim = "XE (2009)" |
How much is after debt when cash on hand is $651,300? | CREATE TABLE table_name_11 (after_debt VARCHAR, cash_on_hand VARCHAR) | SELECT after_debt FROM table_name_11 WHERE cash_on_hand = "$651,300" |
What was the number of Laps with a Grid of more than 3 and Time of 39:24.967? | CREATE TABLE table_name_8 (laps INTEGER, grid VARCHAR, time VARCHAR) | SELECT MIN(laps) FROM table_name_8 WHERE grid > 3 AND time = "39:24.967" |
What was the to par score of the golfer that had a score of 68-70=138? | CREATE TABLE table_name_91 (to_par VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_91 WHERE score = 68 - 70 = 138 |
Name the minister for end date of 31 july 2004 | CREATE TABLE table_name_12 (minister VARCHAR, end_date VARCHAR) | SELECT minister FROM table_name_12 WHERE end_date = "31 july 2004" |
What 2007 number when the million CZK shows operating revenues? | CREATE TABLE table_name_47 (million_czk VARCHAR) | SELECT COUNT(2007) FROM table_name_47 WHERE million_czk = "operating revenues" |
Which Venue has a Date of 21 june 2000? | CREATE TABLE table_name_46 (venue VARCHAR, date VARCHAR) | SELECT venue FROM table_name_46 WHERE date = "21 june 2000" |
What's the model of the processor with a 5.5 w TDP? | CREATE TABLE table_24099916_1 (model__list_ VARCHAR, tdp VARCHAR) | SELECT model__list_ FROM table_24099916_1 WHERE tdp = "5.5 W" |
Which score has an Opponent of @ athletics, and a Record of 76-57? | CREATE TABLE table_name_19 (score VARCHAR, opponent VARCHAR, record VARCHAR) | SELECT score FROM table_name_19 WHERE opponent = "@ athletics" AND record = "76-57" |
Which Outcome has a Opponent of lindsay lee-waters? | CREATE TABLE table_name_83 (outcome VARCHAR, opponent VARCHAR) | SELECT outcome FROM table_name_83 WHERE opponent = "lindsay lee-waters" |
What is the Championship Game that has 4 Bids and a .600 Win %? | CREATE TABLE table_name_40 (championship_game VARCHAR, _number_of_bids VARCHAR, win__percentage VARCHAR) | SELECT championship_game FROM table_name_40 WHERE _number_of_bids = 4 AND win__percentage = ".600" |
Which class was made in 1880? | CREATE TABLE table_name_34 (class VARCHAR, year_made VARCHAR) | SELECT class FROM table_name_34 WHERE year_made = "1880" |
What's the time for the match with a record of 2-0? | CREATE TABLE table_name_74 (time VARCHAR, record VARCHAR) | SELECT time FROM table_name_74 WHERE record = "2-0" |
Which points classification shares a general classification of Bernard Hinault, a Trofeo Fast Tem of Bianchi, was won by Urs Freuler, and was stage 4? | CREATE TABLE table_name_7 (points_classification VARCHAR, stage VARCHAR, winner VARCHAR, general_classification VARCHAR, trofeo_fast_team VARCHAR) | SELECT points_classification FROM table_name_7 WHERE general_classification = "bernard hinault" AND trofeo_fast_team = "bianchi" AND winner = "urs freuler" AND stage = "4" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.