answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO
Find the name of the department that has no students minored in?
CREATE TABLE DEPARTMENT (DName VARCHAR, DNO VARCHAR); CREATE TABLE MINOR_IN (DNO VARCHAR); CREATE TABLE DEPARTMENT (DName VARCHAR)
SELECT 1 AS st_leg FROM table_name_36 WHERE agg = "151-134"
What was the 1st leg score for the team with an Agg score of 151-134?
CREATE TABLE table_name_36 (agg VARCHAR)
SELECT COUNT(number_of_screening) FROM table_18220102_1 WHERE opening_film = "The Journey of Vaan Nguyen"
How many number of screenings have an opening film of the journey of vaan nguyen?
CREATE TABLE table_18220102_1 (number_of_screening VARCHAR, opening_film VARCHAR)
SELECT class_from_1928 FROM table_name_88 WHERE class_to_1928 = "bdi-21"
Which class from 1928 had a class to 1928 of BDi-21?
CREATE TABLE table_name_88 (class_from_1928 VARCHAR, class_to_1928 VARCHAR)
SELECT MIN(finish) FROM table_name_61 WHERE start = 14
For any races with a start of 14 what was the lowest finish?
CREATE TABLE table_name_61 (finish INTEGER, start VARCHAR)
SELECT best_score FROM table_name_30 WHERE dance = "freestyle"
What is the best score of the dance freestyle?
CREATE TABLE table_name_30 (best_score VARCHAR, dance VARCHAR)
SELECT COUNT(result) FROM table_26375386_17 WHERE vote_percentage = "3.1%"
How many results where given for the vote percentage 3.1%?
CREATE TABLE table_26375386_17 (result VARCHAR, vote_percentage VARCHAR)
SELECT english_name FROM table_2013618_1 WHERE traditional = "福鼎市"
Name the english name for 福鼎市
CREATE TABLE table_2013618_1 (english_name VARCHAR, traditional VARCHAR)
SELECT venue FROM table_name_61 WHERE away_team = "south melbourne"
What venue did South Melbourne play as the away team?
CREATE TABLE table_name_61 (venue VARCHAR, away_team VARCHAR)
SELECT Police_force, COUNT(*) FROM county_public_safety GROUP BY Police_force
Please show the police forces and the number of counties with each police force.
CREATE TABLE county_public_safety (Police_force VARCHAR)
SELECT engine FROM table_name_20 WHERE tyres = "p" AND driver = "pierluigi martini"
What was the engine belonging to Pierluigi Martini with a Tyre of P?
CREATE TABLE table_name_20 (engine VARCHAR, tyres VARCHAR, driver VARCHAR)
SELECT year__ceremony_ FROM table_26555737_1 WHERE arabic_title = "موسم زيتون"
When موسم زيتون is the arabic title when is the year (ceremony)?
CREATE TABLE table_26555737_1 (year__ceremony_ VARCHAR, arabic_title VARCHAR)
SELECT tournament FROM table_name_63 WHERE opponent = "daniel elsner"
What Tournament was against Daniel Elsner?
CREATE TABLE table_name_63 (tournament VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_42 WHERE high_rebounds = "luc mbah a moute (11)"
Which Record has a High rebounds of luc mbah a moute (11)?
CREATE TABLE table_name_42 (record VARCHAR, high_rebounds VARCHAR)
SELECT place FROM table_name_83 WHERE score = 72 - 68 = 140
Name the Place with a Score of 72-68=140?
CREATE TABLE table_name_83 (place VARCHAR, score VARCHAR)
SELECT MAX(capacity) FROM table_name_54 WHERE locality = "heaton chapel"
What is heaton chapel's capacity?
CREATE TABLE table_name_54 (capacity INTEGER, locality VARCHAR)
SELECT MAX(week) FROM table_name_67 WHERE date = "october 12, 2008"
What is the highest Week for october 12, 2008?
CREATE TABLE table_name_67 (week INTEGER, date VARCHAR)
SELECT club FROM table_name_36 WHERE head_coach = "casemiro mior"
Head Coach casemiro mior is at which Club?
CREATE TABLE table_name_36 (club VARCHAR, head_coach VARCHAR)
SELECT MIN(area__acres__) FROM table_30120633_1 WHERE townland = "Clashroe"
How few acres is the area of Clashroe?
CREATE TABLE table_30120633_1 (area__acres__ INTEGER, townland VARCHAR)
SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing > 90 AND T2.preferred_foot = "right"
List the names of all players who have a crossing score higher than 90 and prefer their right foot.
CREATE TABLE Player (player_name VARCHAR, player_api_id VARCHAR); CREATE TABLE Player_Attributes (player_api_id VARCHAR, crossing VARCHAR, preferred_foot VARCHAR)
SELECT AVG(number) FROM table_name_13 WHERE position = "forward"
What is the average Number, when Position is Forward?
CREATE TABLE table_name_13 (number INTEGER, position VARCHAR)
SELECT COUNT(segment_c) FROM table_15187735_9 WHERE segment_d = "Pedal Steel Guitars"
How many times was leather introduced before pedal steel guitars in episode 111?
CREATE TABLE table_15187735_9 (segment_c VARCHAR, segment_d VARCHAR)
SELECT SUM(attendance) FROM table_name_65 WHERE result = "w 35-14"
What is the combined attendance of all games that had a result of w 35-14?
CREATE TABLE table_name_65 (attendance INTEGER, result VARCHAR)
SELECT total FROM table_25831483_1 WHERE actor_actress = "Pam Ferris"
How many total are there when actor/actress is pam ferris?
CREATE TABLE table_25831483_1 (total VARCHAR, actor_actress VARCHAR)
SELECT headquarters FROM table_1506619_1 WHERE school_board = "Renfrew County Catholic District school_board"
Which headquarters are associated with the school board Renfrew County Catholic District School Board?
CREATE TABLE table_1506619_1 (headquarters VARCHAR, school_board VARCHAR)
SELECT COUNT(no_in_series) FROM table_21666472_1 WHERE written_by = "Greg Haddrick"
How many number in series's are written by Greg Haddrick?
CREATE TABLE table_21666472_1 (no_in_series VARCHAR, written_by VARCHAR)
SELECT COUNT(top_10) FROM table_2463383_2 WHERE avg_start = "37.3"
Name the total number of top 10 for avg start being 37.3
CREATE TABLE table_2463383_2 (top_10 VARCHAR, avg_start VARCHAR)
SELECT third_place FROM table_name_23 WHERE total > 2 AND rank < 2
How many third places has a total greater than 2 and a rank less than 2?
CREATE TABLE table_name_23 (third_place VARCHAR, total VARCHAR, rank VARCHAR)
SELECT builder FROM table_name_63 WHERE pennant_number = "q149"
Which Builder has a Pennant number of Q149?
CREATE TABLE table_name_63 (builder VARCHAR, pennant_number VARCHAR)
SELECT week FROM table_name_20 WHERE attendance = "bye"
What week was the Bye attendance week?
CREATE TABLE table_name_20 (week VARCHAR, attendance VARCHAR)
SELECT inductee_s_ FROM table_name_56 WHERE venue = "ecw arena"
What is the name of the inductee for the ecw arena?
CREATE TABLE table_name_56 (inductee_s_ VARCHAR, venue VARCHAR)
SELECT series_premiere FROM table_name_25 WHERE tv_network_s_ = "acasa tv"
Which series premiered on Acasa TV?
CREATE TABLE table_name_25 (series_premiere VARCHAR, tv_network_s_ VARCHAR)
SELECT constructor FROM table_name_30 WHERE driver = "pedro diniz"
Who constructed pedro diniz's car?
CREATE TABLE table_name_30 (constructor VARCHAR, driver VARCHAR)
SELECT MIN(attendance) FROM table_20745746_1 WHERE date = "March 11, 1995"
What was attendance on March 11, 1995?
CREATE TABLE table_20745746_1 (attendance INTEGER, date VARCHAR)
SELECT MAX(first_season) FROM table_12896884_1 WHERE institution = "University of Saskatchewan"
What year did University of Saskatchewan have their first season?
CREATE TABLE table_12896884_1 (first_season INTEGER, institution VARCHAR)
SELECT AVG(crowd) FROM table_name_9 WHERE home_team = "melbourne"
What was the average crowd size when Melbourne was the home team?
CREATE TABLE table_name_9 (crowd INTEGER, home_team VARCHAR)
SELECT player FROM table_name_46 WHERE figures = "4/14"
Which player has figures of 4/14?
CREATE TABLE table_name_46 (player VARCHAR, figures VARCHAR)
SELECT celebrity FROM table_name_35 WHERE exited = "day 13"
Who was the celebrity who exited on day 13?
CREATE TABLE table_name_35 (celebrity VARCHAR, exited VARCHAR)
SELECT district FROM table_1341663_6 WHERE incumbent = "Bob Wilson"
What is the district that has Bob Wilson as an incumbent?
CREATE TABLE table_1341663_6 (district VARCHAR, incumbent VARCHAR)
SELECT venue FROM table_name_91 WHERE score = "1–0" AND competition = "2002 world cup qualifier"
Which venue has a Score of 1–0, and a Competition of 2002 world cup qualifier?
CREATE TABLE table_name_91 (venue VARCHAR, score VARCHAR, competition VARCHAR)
SELECT date FROM table_name_40 WHERE game = 81
What was the date of game 81?
CREATE TABLE table_name_40 (date VARCHAR, game VARCHAR)
SELECT result FROM table_name_62 WHERE extra = "heptathlon" AND venue = "götzis , austria"
What is Result, when Extra is "Heptathlon", and when Venue is "Götzis , Austria"?
CREATE TABLE table_name_62 (result VARCHAR, extra VARCHAR, venue VARCHAR)
SELECT lane FROM table_name_22 WHERE name = "rhiannon leier"
What is Rhiannon Leier's lane?
CREATE TABLE table_name_22 (lane VARCHAR, name VARCHAR)
SELECT date FROM table_name_36 WHERE away_team = "richmond"
When did Richmond play an away game against Collingwood?
CREATE TABLE table_name_36 (date VARCHAR, away_team VARCHAR)
SELECT SUM(games_lost) FROM table_name_74 WHERE points_against = 61 AND points_difference < 42
Which Games lost has Points against of 61, and Points difference smaller than 42?
CREATE TABLE table_name_74 (games_lost INTEGER, points_against VARCHAR, points_difference VARCHAR)
SELECT reserved_for___sc___st__none_ FROM table_name_72 WHERE constituency_number = "169"
What was reserved in the district that has 169 constituents?
CREATE TABLE table_name_72 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR)
SELECT MAX(pick) FROM table_name_42 WHERE position = "back" AND round = 28
What is the highest pick of the back player from round 28?
CREATE TABLE table_name_42 (pick INTEGER, position VARCHAR, round VARCHAR)
SELECT finalists FROM table_name_88 WHERE not_winning_editions = "2008, 2012, 2013"
What is the Finalists that has 2008, 2012, 2013 as Not winning editions
CREATE TABLE table_name_88 (finalists VARCHAR, not_winning_editions VARCHAR)
SELECT tournament FROM table_name_75 WHERE 1996 = "a" AND 1998 = "a" AND 1994 = "rr"
Which tournament had a 1994 finish of RR and 1996 and 1998 finishes of A?
CREATE TABLE table_name_75 (tournament VARCHAR)
SELECT margin_of_victory FROM table_1590652_4 WHERE date = "10 Jul 2011"
Name th margin of victory when date is 10 jul 2011
CREATE TABLE table_1590652_4 (margin_of_victory VARCHAR, date VARCHAR)
SELECT circuit FROM table_1140090_6 WHERE winning_driver = "Clay Regazzoni"
What circuit did Clay Regazzoni win?
CREATE TABLE table_1140090_6 (circuit VARCHAR, winning_driver VARCHAR)
SELECT written_by FROM table_21994729_3 WHERE directed_by = "Reginald Hudlin"
reginald hudlin directed how many written by.
CREATE TABLE table_21994729_3 (written_by VARCHAR, directed_by VARCHAR)
SELECT MAX(geo_id) FROM table_18600760_10 WHERE township = "Joliette"
What is the geo id for Joliette?
CREATE TABLE table_18600760_10 (geo_id INTEGER, township VARCHAR)
SELECT STRUCT(high) FROM table_1942366_9 WHERE STRUCT(low) = "250.5"
What's the C_{high} when the C_{low} value is 250.5?
CREATE TABLE table_1942366_9 (high VARCHAR, low VARCHAR)
SELECT bleeding_time FROM table_14006_1 WHERE platelet_count = "Decreased" AND prothrombin_time = "Prolonged"
what's the bleeding time with platelet count being decreased and prothrombin time being prolonged
CREATE TABLE table_14006_1 (bleeding_time VARCHAR, platelet_count VARCHAR, prothrombin_time VARCHAR)
SELECT margin_of_victory FROM table_name_77 WHERE tournament = "mississippi gulf resort classic"
What was the margin of victory for the Mississippi Gulf Resort Classic?
CREATE TABLE table_name_77 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT SUM(goals_for) FROM table_name_44 WHERE games_played > 8
What is the number of Goals For for Games Played more than 8?
CREATE TABLE table_name_44 (goals_for INTEGER, games_played INTEGER)
SELECT MAX(week) FROM table_name_7 WHERE result = "w 38-13"
Name the highest week for result of w 38-13
CREATE TABLE table_name_7 (week INTEGER, result VARCHAR)
SELECT location FROM table_name_76 WHERE round = 1 AND opponent = "joe slick"
What is Location, when Round is "1", and when Opponent is "Joe Slick"?
CREATE TABLE table_name_76 (location VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_7 WHERE site = "memorial stadium • minneapolis, mn" AND attendance = "20,000" AND result = "w52-0"
What is the Date at memorial stadium • minneapolis, mn with an Attendance of 20,000, and a Result of w52-0?
CREATE TABLE table_name_7 (date VARCHAR, result VARCHAR, site VARCHAR, attendance VARCHAR)
SELECT progressive_ticket FROM table_name_28 WHERE democratic_ticket = "john t. norton"
Who was on the Progressive ticket when John T. Norton was on the Democratic ticket?
CREATE TABLE table_name_28 (progressive_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT COUNT(games) FROM table_name_91 WHERE ast_avg > 2.7 AND total_assists > 598
How many games for the player that has an over 2.7 assist average and over 598 total assists?
CREATE TABLE table_name_91 (games VARCHAR, ast_avg VARCHAR, total_assists VARCHAR)
SELECT gdp___bn__ FROM table_name_74 WHERE area__sq_mi_ = "7,263"
What is the GDP for the region with an area of 7,263 sq. mi.?
CREATE TABLE table_name_74 (gdp___bn__ VARCHAR, area__sq_mi_ VARCHAR)
SELECT colors FROM table_28051859_3 WHERE school = "Hudson"
What are the colors of the Hudson school?
CREATE TABLE table_28051859_3 (colors VARCHAR, school VARCHAR)
SELECT home_team AS score FROM table_name_6 WHERE venue = "victoria park"
What was the home team's score in the match at Victoria Park?
CREATE TABLE table_name_6 (home_team VARCHAR, venue VARCHAR)
SELECT COUNT(population_per_square_km) FROM table_name_97 WHERE population_112006 = 12.757
Name the total number of population per square km with population 1.12006 of 12.757
CREATE TABLE table_name_97 (population_per_square_km VARCHAR, population_112006 VARCHAR)
SELECT notes FROM table_19161046_1 WHERE model = "HIS HD4850 (512MB)"
What are the notes recorded for the model HIS HD4850 (512MB)?
CREATE TABLE table_19161046_1 (notes VARCHAR, model VARCHAR)
SELECT year_of_induction_into_pro_football_hall_of_fame FROM table_274117_5 WHERE player = "Will Shields"
When was Will Shields inducted into the Pro Football Hall of Fame?
CREATE TABLE table_274117_5 (year_of_induction_into_pro_football_hall_of_fame VARCHAR, player VARCHAR)
SELECT COUNT(rank) FROM table_name_14 WHERE nation = "turkey (tur)" AND total > 2
What's the rank of Turkey (TUR) with a total more than 2?
CREATE TABLE table_name_14 (rank VARCHAR, nation VARCHAR, total VARCHAR)
SELECT pole_position FROM table_name_83 WHERE grand_prix = "german grand prix"
What is the Pole Position for the German Grand Prix
CREATE TABLE table_name_83 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT player FROM table_name_41 WHERE year_s__won = "1978 , 1985"
What is Player, when Year(s) Won is 1978 , 1985?
CREATE TABLE table_name_41 (player VARCHAR, year_s__won VARCHAR)
SELECT school FROM table_name_11 WHERE location = "ligonier"
What school is in Ligonier?
CREATE TABLE table_name_11 (school VARCHAR, location VARCHAR)
SELECT recnet FROM table_name_9 WHERE power = "199 watts"
What's the RECNet when the power is 199 watts?
CREATE TABLE table_name_9 (recnet VARCHAR, power VARCHAR)
SELECT SUM(hull_no) FROM table_name_37 WHERE destination = "italy" AND year > 1999
Name the sum of hull number for italy and year more than 1999
CREATE TABLE table_name_37 (hull_no INTEGER, destination VARCHAR, year VARCHAR)
SELECT surface FROM table_name_67 WHERE opponent_in_the_final = "laura golarsa"
What was the surface that Laura Golarsa and her opponent played on in the final?
CREATE TABLE table_name_67 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT team FROM table_1405704_1 WHERE winning_driver = "Al Unser"
What team does Al Unser drive for?
CREATE TABLE table_1405704_1 (team VARCHAR, winning_driver VARCHAR)
SELECT SUM(rank) FROM table_name_84 WHERE bronze < 5 AND country = "japan" AND silver > 3
What was the sum of the ranks for Japan who had less than 5 bronze medals and more than 3 silvers?
CREATE TABLE table_name_84 (rank INTEGER, silver VARCHAR, bronze VARCHAR, country VARCHAR)
SELECT COUNT(pop_dens) FROM table_name_83 WHERE population > 92 OFFSET 719
What is the population density of the area with a population larger than 92,719?
CREATE TABLE table_name_83 (pop_dens VARCHAR, population INTEGER)
SELECT AVG(2000) FROM table_name_97 WHERE location = "montana" AND reservation = "fort peck indian reservation" AND 1979 < 26.8
What shows for 2000 at the Fort Peck Indian Reservation, Montana, when the 1979 is less than 26.8?
CREATE TABLE table_name_97 (location VARCHAR, reservation VARCHAR)
SELECT democrat AS :_vivian_davis_figures FROM table_16751596_12 WHERE dates_administered = "November 14, 2007"
On November 14, 2007, what are the Democrat: Vivian Davis Figures percentages?
CREATE TABLE table_16751596_12 (democrat VARCHAR, dates_administered VARCHAR)
SELECT MIN(points) FROM table_name_41 WHERE wins < 2
which Points has Wins smaller than 2?
CREATE TABLE table_name_41 (points INTEGER, wins INTEGER)
SELECT team FROM table_name_46 WHERE class = "c1" AND laps = 40
What Team had 40 Laps in C1 Class?
CREATE TABLE table_name_46 (team VARCHAR, class VARCHAR, laps VARCHAR)
SELECT branding FROM table_name_44 WHERE frequency = "1150 am"
What is the branding for the radio with a frequency of 1150 am?
CREATE TABLE table_name_44 (branding VARCHAR, frequency VARCHAR)
SELECT COUNT(status) FROM table_2801185_2 WHERE district = "Durham"
How many statuses are there for the Durham district?
CREATE TABLE table_2801185_2 (status VARCHAR, district VARCHAR)
SELECT SUM(race) FROM table_name_64 WHERE podium = 4 AND pole = 5 AND flap > 3
How many races had 4 podiums, 5 poles and more than 3 Flaps?
CREATE TABLE table_name_64 (race INTEGER, flap VARCHAR, podium VARCHAR, pole VARCHAR)
SELECT DISTINCT District FROM election
Show all the distinct districts for elections.
CREATE TABLE election (District VARCHAR)
SELECT country_name FROM table_name_63 WHERE numeric_code < 246 AND latin_3_letter_code = "slv"
What is the country's name with a numeric code less than 246 and a Latin 3-letter code of slv?
CREATE TABLE table_name_63 (country_name VARCHAR, numeric_code VARCHAR, latin_3_letter_code VARCHAR)
SELECT song_title FROM table_22457674_1 WHERE artist = "Europe"
Name the song title for europe
CREATE TABLE table_22457674_1 (song_title VARCHAR, artist VARCHAR)
SELECT MIN(length__km_) FROM table_name_38 WHERE name = "north klondike highway" AND length__mi_ < 326
What's the shortest length from north klondike highway that has a length less than 326?
CREATE TABLE table_name_38 (length__km_ INTEGER, name VARCHAR, length__mi_ VARCHAR)
SELECT MAX(year) FROM table_name_19 WHERE album___song = "the best worst-case scenario"
What is the most recent year with the Album/Song "the best worst-case scenario"?
CREATE TABLE table_name_19 (year INTEGER, album___song VARCHAR)
SELECT maximum_diameter FROM table_17918238_1 WHERE owner_operator = "Esperance Pipeline Co"
What is Esperance pipeline co total diameter?
CREATE TABLE table_17918238_1 (maximum_diameter VARCHAR, owner_operator VARCHAR)
SELECT COUNT(*) FROM countries AS t1 JOIN car_makers AS t2 ON t1.countryid = t2.country GROUP BY t1.countryid HAVING COUNT(*) > 2
How many countries has more than 2 car makers ?
CREATE TABLE car_makers (country VARCHAR); CREATE TABLE countries (countryid VARCHAR)
SELECT place FROM table_name_38 WHERE downhill_points = 7.73
What place is the skier with 7.73 downhill points?
CREATE TABLE table_name_38 (place VARCHAR, downhill_points VARCHAR)
SELECT COUNT(attendance) FROM table_name_23 WHERE week = 8
What is the attendance of week 8?
CREATE TABLE table_name_23 (attendance VARCHAR, week VARCHAR)
SELECT date FROM table_name_27 WHERE score = "postponed (rain) rescheduled for august 7"
What date has postponed (rain) rescheduled for august 7 as the score?
CREATE TABLE table_name_27 (date VARCHAR, score VARCHAR)
SELECT visitor FROM table_name_26 WHERE record = "51–12–4"
Who was the visiting team when the record was 51–12–4?
CREATE TABLE table_name_26 (visitor VARCHAR, record VARCHAR)
SELECT score FROM table_name_43 WHERE surface = "clay" AND year > 2006 AND opponent = "david ferrer"
What was the score on a clay surface in a year later than 2006 with David Ferrer as an opponent?
CREATE TABLE table_name_43 (score VARCHAR, opponent VARCHAR, surface VARCHAR, year VARCHAR)
SELECT team FROM table_27723228_3 WHERE game = 4
What team did the Hornets play in game 4?
CREATE TABLE table_27723228_3 (team VARCHAR, game VARCHAR)
SELECT AVG(heat) FROM table_name_38 WHERE name = "anjelika solovieva"
What is the average Heat for anjelika solovieva?
CREATE TABLE table_name_38 (heat INTEGER, name VARCHAR)
SELECT throughput__including_analysis_ FROM table_name_77 WHERE analysis_time = "4 hours"
what is the throughput (including analysis) when the analysis time is 4 hours?
CREATE TABLE table_name_77 (throughput__including_analysis_ VARCHAR, analysis_time VARCHAR)