answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(year_of_first_appearance) FROM table_name_38 WHERE corps_name = "black knights" AND number_of_finals_appearances < 1
What is the year of the first appearance of the Black Knights, who had less than 1 finals appearances?
CREATE TABLE table_name_38 (year_of_first_appearance VARCHAR, corps_name VARCHAR, number_of_finals_appearances VARCHAR)
SELECT date FROM table_name_74 WHERE home_team = "geelong"
On which date did Geelong play at home?
CREATE TABLE table_name_74 (date VARCHAR, home_team VARCHAR)
SELECT semifinalists FROM table_name_28 WHERE tournament = "paris"
WHO ARE THE SEMIFINALISTS FOR TOURNAMENT OF PARIS?
CREATE TABLE table_name_28 (semifinalists VARCHAR, tournament VARCHAR)
SELECT ole_miss FROM table_name_90 WHERE year > 2008 AND mississippi_st = "eric moulds"
Who was the player associated with Ole Miss in years after 2008 with a Mississippi St. name of Eric Moulds?
CREATE TABLE table_name_90 (ole_miss VARCHAR, year VARCHAR, mississippi_st VARCHAR)
SELECT location FROM table_18904831_6 WHERE score = "W 73-70"
When w 73-70 is the score what is the location?
CREATE TABLE table_18904831_6 (location VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_66 WHERE score = "4 - 2"
Who did the Toronto Blue Jays play against where the score was 4 - 2?
CREATE TABLE table_name_66 (opponent VARCHAR, score VARCHAR)
SELECT MIN(floor_exercise) FROM table_name_58 WHERE pommel_horse < 8.45 AND parallel_bars > 9.687
Name the least floor exercise for parallel bars more than 9.687 and pommel horse less than 8.45
CREATE TABLE table_name_58 (floor_exercise INTEGER, pommel_horse VARCHAR, parallel_bars VARCHAR)
SELECT venue FROM table_name_23 WHERE year > 2008 AND notes = "team"
What is the venue of the team race that was after 2008?
CREATE TABLE table_name_23 (venue VARCHAR, year VARCHAR, notes VARCHAR)
SELECT authority FROM table_name_62 WHERE decile > 5 AND roll = 170
What Authority has a decile greater than 5, with a roll of 170?
CREATE TABLE table_name_62 (authority VARCHAR, decile VARCHAR, roll VARCHAR)
SELECT musical_performance FROM table_26733129_1 WHERE air_date = "5 April 2010"
What musical performances aired on 5 April 2010?
CREATE TABLE table_26733129_1 (musical_performance VARCHAR, air_date VARCHAR)
SELECT MAX(played) FROM table_name_42 WHERE difference = "- 8" AND position > 8
What is the largest played number when the difference is - 8 and position is more than 8?
CREATE TABLE table_name_42 (played INTEGER, difference VARCHAR, position VARCHAR)
SELECT MIN(group) FROM table_name_99 WHERE fraction < 0.000748 AND half_life__s_ = 55.72 AND decay_constant__s_−1__ > 0.012400000000000001
What is the lowest group number that has a Fraction less than 0.000748, a Half-Life of 55.72 and a Decay Constant larger than 0.012400000000000001?
CREATE TABLE table_name_99 (group INTEGER, decay_constant__s_−1__ VARCHAR, fraction VARCHAR, half_life__s_ VARCHAR)
SELECT team FROM table_name_79 WHERE average = 1.035
Team with average of 1.035?
CREATE TABLE table_name_79 (team VARCHAR, average VARCHAR)
SELECT COUNT(a_external__cm_2__) FROM table_26967904_2 WHERE chambering = ".338 Lapua Magnum"
How many external (cm 2 ) are there for the .338 lapua magnum chambering?
CREATE TABLE table_26967904_2 (a_external__cm_2__ VARCHAR, chambering VARCHAR)
SELECT place FROM table_name_95 WHERE player = "bob tway"
Where does Bob Tway Place?
CREATE TABLE table_name_95 (place VARCHAR, player VARCHAR)
SELECT enrollment FROM table_1974443_1 WHERE institution = "Lakeland College"
What is the enrollment for Lakeland College?
CREATE TABLE table_1974443_1 (enrollment VARCHAR, institution VARCHAR)
SELECT MIN(total) FROM table_name_78 WHERE nation = "canada (can)" AND bronze < 0
what is the least total when the nation is canada (can) and bronze is less than 0?
CREATE TABLE table_name_78 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT COUNT(opponent) FROM table_14984126_1 WHERE date = "October 25, 1964"
how many opponent with date being october 25, 1964
CREATE TABLE table_14984126_1 (opponent VARCHAR, date VARCHAR)
SELECT MAX(year) FROM table_name_72 WHERE nation_represented = "philippines"
What is the latest result where a person from the Philippines won?
CREATE TABLE table_name_72 (year INTEGER, nation_represented VARCHAR)
SELECT MIN(against) FROM table_name_46 WHERE status = "tour match" AND date = "21 july 1990"
Lowest against for tour match on 21 july 1990?
CREATE TABLE table_name_46 (against INTEGER, status VARCHAR, date VARCHAR)
SELECT years FROM table_name_31 WHERE authority = "state" AND name = "tahunanui school"
What years are listed for the Tahunanui school with an authority of state?
CREATE TABLE table_name_31 (years VARCHAR, authority VARCHAR, name VARCHAR)
SELECT T1.Festival_ID, T3.Festival_Name, COUNT(*) FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID
Show the id, name of each festival and the number of artworks it has nominated.
CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR)
SELECT date FROM table_name_30 WHERE home_team = "brentford"
What date had the home team as brentford?
CREATE TABLE table_name_30 (date VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_29 WHERE surface = "clay" AND tournament = "barcelona"
When the surface is clay, and the tournament of barcelona what is the score?
CREATE TABLE table_name_29 (score VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT team_s_ FROM table_2387790_2 WHERE avg_finish = "8.3"
What team was Bodine in when he had an average finish of 8.3?
CREATE TABLE table_2387790_2 (team_s_ VARCHAR, avg_finish VARCHAR)
SELECT ladder_position FROM table_24919137_2 WHERE score = "15.9 (99)–14.6 (90)"
What was the ladder position when the score was 15.9 (99)–14.6 (90)?
CREATE TABLE table_24919137_2 (ladder_position VARCHAR, score VARCHAR)
SELECT incumbent FROM table_name_1 WHERE results = "68% 32%"
Who is the Incumbent with Results of 68% 32%?
CREATE TABLE table_name_1 (incumbent VARCHAR, results VARCHAR)
SELECT local_authority FROM table_name_46 WHERE zone_2007 = "outside zones" AND zone_2008 = "outside zones" AND zone_2010 = "outside zones" AND station = "waltham cross"
Which Local authority has a Zone 2007 of outside zones, and a Zone 2008 of outside zones, and a Zone 2010 of outside zones, and a Station of waltham cross?
CREATE TABLE table_name_46 (local_authority VARCHAR, station VARCHAR, zone_2010 VARCHAR, zone_2007 VARCHAR, zone_2008 VARCHAR)
SELECT MIN(_number) FROM table_2182170_1 WHERE car_s_ = "Chevrolet Monte Carlo" AND listed_owner_s_ = "Teresa Earnhardt" AND driver_s_ = "Paul Menard"
What is the car number for the Chevrolet Monte Carlo that Teresa Earnhardt owns and Paul Menard is her driver?
CREATE TABLE table_2182170_1 (_number INTEGER, driver_s_ VARCHAR, car_s_ VARCHAR, listed_owner_s_ VARCHAR)
SELECT round FROM table_name_98 WHERE time = "5:00" AND opponent = "aleksander emelianenko"
What Round against Aleksander Emelianenko had a time of 5:00?
CREATE TABLE table_name_98 (round VARCHAR, time VARCHAR, opponent VARCHAR)
SELECT outgoing_head_coach FROM table_27383390_4 WHERE incoming_head_coach = "Abdollah Veysi"
Who is the outgoing head coach when the incoming head coach is abdollah veysi?
CREATE TABLE table_27383390_4 (outgoing_head_coach VARCHAR, incoming_head_coach VARCHAR)
SELECT music_by FROM table_191105_3 WHERE episode_title = "Interplanet Janet"
When interplanet janet is the episode title who is the music by?
CREATE TABLE table_191105_3 (music_by VARCHAR, episode_title VARCHAR)
SELECT thurs_25_aug FROM table_30058355_3 WHERE rank = 3
What is every value on Thursday August 25 for rank 3?
CREATE TABLE table_30058355_3 (thurs_25_aug VARCHAR, rank VARCHAR)
SELECT MIN(champ_car_world_series__2004_2007_) FROM table_19524523_1
What is the minimum number of wins possible for the Champ Car World Series among all the drivers?
CREATE TABLE table_19524523_1 (champ_car_world_series__2004_2007_ INTEGER)
SELECT win_loss FROM table_25820584_7 WHERE year_s_ = "1969"
What was the win loss record the lady who appeard in 1969?
CREATE TABLE table_25820584_7 (win_loss VARCHAR, year_s_ VARCHAR)
SELECT year FROM table_name_36 WHERE platform_s_ = "windows" AND game = "grim fandango"
What year is the Grim Fandango with a windows platform?
CREATE TABLE table_name_36 (year VARCHAR, platform_s_ VARCHAR, game VARCHAR)
SELECT western_title FROM table_name_56 WHERE genre = "puzzle"
What is the western title for the puzzle genre?
CREATE TABLE table_name_56 (western_title VARCHAR, genre VARCHAR)
SELECT home_team AS score FROM table_name_41 WHERE venue = "princes park"
Who was the home team at Princes Park?
CREATE TABLE table_name_41 (home_team VARCHAR, venue VARCHAR)
SELECT original_airdate FROM table_26591434_1 WHERE writer = "Tanaka Shinichi"
What is the original air date for the writer tanaka shinichi?
CREATE TABLE table_26591434_1 (original_airdate VARCHAR, writer VARCHAR)
SELECT COUNT(act) FROM table_28180840_15 WHERE name_name_of_act = "Modern Grannies"
What is the total number of modern grannies performed?
CREATE TABLE table_28180840_15 (act VARCHAR, name_name_of_act VARCHAR)
SELECT method FROM table_name_22 WHERE opponent = "georges st-pierre"
What is the method of opponent georges st-pierre?
CREATE TABLE table_name_22 (method VARCHAR, opponent VARCHAR)
SELECT tuesday FROM table_18173916_6 WHERE thursday = "196 Buried"
What was the Tuesday episode if theThursday episode was 196 Buried?
CREATE TABLE table_18173916_6 (tuesday VARCHAR, thursday VARCHAR)
SELECT score FROM table_name_55 WHERE team_2 = "al-qadsia"
What was the score for the game in which Al-Qadsia was Team 2?
CREATE TABLE table_name_55 (score VARCHAR, team_2 VARCHAR)
SELECT city__town FROM table_name_34 WHERE year_founded = 1860
In what City/town was their institution founded in 1860?
CREATE TABLE table_name_34 (city__town VARCHAR, year_founded VARCHAR)
SELECT winning_driver FROM table_name_26 WHERE race_name = "vii rand grand prix"
What driver won the VII Rand Grand Prix?
CREATE TABLE table_name_26 (winning_driver VARCHAR, race_name VARCHAR)
SELECT COUNT(population) FROM table_171361_1 WHERE area_km_2 = "10.25"
How many population values are listed for the community with an area of 10.25 sq.km.?
CREATE TABLE table_171361_1 (population VARCHAR, area_km_2 VARCHAR)
SELECT 2008 FROM table_name_58 WHERE 2010 = "2r" AND tournament = "wimbledon"
Name the 2008 with 2010 of 2r and wimbledon tournament
CREATE TABLE table_name_58 (tournament VARCHAR)
SELECT manner_of_departure FROM table_name_1 WHERE date_of_appointment = "3 january"
Tell me the manner of departure for 3 january date of appointment
CREATE TABLE table_name_1 (manner_of_departure VARCHAR, date_of_appointment VARCHAR)
SELECT population FROM table_name_8 WHERE area = "4,575"
What is the population when the area is 4,575?
CREATE TABLE table_name_8 (population VARCHAR, area VARCHAR)
SELECT attendance FROM table_name_24 WHERE date = "july 16"
Name the attendance for july 16
CREATE TABLE table_name_24 (attendance VARCHAR, date VARCHAR)
SELECT city___state FROM table_name_83 WHERE circuit = "eastern creek raceway" AND winner = "michael donaher"
What is City / State, when Circuit is Eastern Creek Raceway, and when Winner is Michael Donaher?
CREATE TABLE table_name_83 (city___state VARCHAR, circuit VARCHAR, winner VARCHAR)
SELECT state FROM table_name_67 WHERE region = "mideast" AND host = "university of iowa"
Which state contains the University of Iowa in the mideast region?
CREATE TABLE table_name_67 (state VARCHAR, region VARCHAR, host VARCHAR)
SELECT 2006 FROM table_name_65 WHERE 2000 = "1r" AND 1996 = "a" AND tournament = "cincinnati masters"
What shows for 2006 when 2000 is 1r, 1996 is A, and Tournament is Cincinnati Masters?
CREATE TABLE table_name_65 (tournament VARCHAR)
SELECT player FROM table_name_17 WHERE opponent = "source: . last updated: 28 june 2007."
What is Player, when Opponent is source: . last updated: 28 june 2007.?
CREATE TABLE table_name_17 (player VARCHAR, opponent VARCHAR)
SELECT muzzle_energy FROM table_16010376_1 WHERE cartridge = ".375 Winchester"
When using a .375 Winchester, what is the muzzle energy?
CREATE TABLE table_16010376_1 (muzzle_energy VARCHAR, cartridge VARCHAR)
SELECT COUNT(original_airdate) FROM table_14937957_1 WHERE episode__number = "1.8"
How many times did episode 1.8 air?
CREATE TABLE table_14937957_1 (original_airdate VARCHAR, episode__number VARCHAR)
SELECT wsop_cashes FROM table_23696862_6 WHERE wsop_earnings = "$126,796"
The person who had $126,796 WSOP earnings had how many WSOP cashes?
CREATE TABLE table_23696862_6 (wsop_cashes VARCHAR, wsop_earnings VARCHAR)
SELECT MAX(points) FROM table_name_2 WHERE laps > 13 AND team = "minardi team usa"
What is the highest number of points scored by minardi team usa in more than 13 laps?
CREATE TABLE table_name_2 (points INTEGER, laps VARCHAR, team VARCHAR)
SELECT position FROM table_name_47 WHERE school = "plant high school"
What position is for Plant high school?
CREATE TABLE table_name_47 (position VARCHAR, school VARCHAR)
SELECT COUNT(population) FROM table_name_73 WHERE official_name = "durham"
What's the population of durham parish?
CREATE TABLE table_name_73 (population VARCHAR, official_name VARCHAR)
SELECT MAX(pole) FROM table_name_88 WHERE class = "125 cc" AND wchmp > 1
What is the highest pole for class 125 cc and a WChmp more than 1?
CREATE TABLE table_name_88 (pole INTEGER, class VARCHAR, wchmp VARCHAR)
SELECT leading_scorer FROM table_11964047_8 WHERE date = "February 1"
What is the leading scorer on february 1?
CREATE TABLE table_11964047_8 (leading_scorer VARCHAR, date VARCHAR)
SELECT product_type_code, MAX(product_price), MIN(product_price) FROM products GROUP BY product_type_code
For each product type, return the maximum and minimum price.
CREATE TABLE products (product_type_code VARCHAR, product_price INTEGER)
SELECT rank FROM table_name_15 WHERE total > 4 AND nation = "spain"
Spain with a total of more than 4 medals is in what rank?
CREATE TABLE table_name_15 (rank VARCHAR, total VARCHAR, nation VARCHAR)
SELECT name FROM table_name_88 WHERE call_sign = "kdsu"
Which owner has the call sign of KDSU?
CREATE TABLE table_name_88 (name VARCHAR, call_sign VARCHAR)
SELECT player FROM table_name_21 WHERE total < 287 AND year_s__won = "1988"
Who won in 1988 with a total less than 287?
CREATE TABLE table_name_21 (player VARCHAR, total VARCHAR, year_s__won VARCHAR)
SELECT AVG(attendance) FROM table_name_28 WHERE round = "f"
How many people on average attend round f?
CREATE TABLE table_name_28 (attendance INTEGER, round VARCHAR)
SELECT MIN(first_year) FROM table_name_15 WHERE model = "quattroporte (2.8)"
What is the lowest First Year, when Model is "Quattroporte (2.8)"?
CREATE TABLE table_name_15 (first_year INTEGER, model VARCHAR)
SELECT engine_s_ FROM table_name_19 WHERE year = 1983
What are the engines for 1983?
CREATE TABLE table_name_19 (engine_s_ VARCHAR, year VARCHAR)
SELECT nationality FROM table_11545282_5 WHERE years_for_jazz = "1989-92; 1994-95"
What is the nationality of the player who played during the years 1989-92; 1994-95?
CREATE TABLE table_11545282_5 (nationality VARCHAR, years_for_jazz VARCHAR)
SELECT away_team AS score FROM table_name_75 WHERE home_team = "richmond"
What was the score for the away team when the home team was richmond?
CREATE TABLE table_name_75 (away_team VARCHAR, home_team VARCHAR)
SELECT opponent FROM table_name_70 WHERE score = "1-3"
What opponent has a score of 1-3?
CREATE TABLE table_name_70 (opponent VARCHAR, score VARCHAR)
SELECT COUNT(goals_for) FROM table_name_33 WHERE lost > 35 AND games < 80
How many goals have Lost larger than 35, and Games smaller than 80?
CREATE TABLE table_name_33 (goals_for VARCHAR, lost VARCHAR, games VARCHAR)
SELECT circuit FROM table_name_74 WHERE winning_driver = "hans-joachim stuck" AND round = 3
Which Circuit has a Winning Driver of hans-joachim stuck, and a Round of 3?
CREATE TABLE table_name_74 (circuit VARCHAR, winning_driver VARCHAR, round VARCHAR)
SELECT name FROM table_26387382_1 WHERE capacity__mw_ = "70" AND status = "Operational"
What farm has a capacity of 70 and is operational?
CREATE TABLE table_26387382_1 (name VARCHAR, capacity__mw_ VARCHAR, status VARCHAR)
SELECT COUNT(virtual) FROM table_14623167_1 WHERE network = "Fox"
Name the virtual for Fox
CREATE TABLE table_14623167_1 (virtual VARCHAR, network VARCHAR)
SELECT COUNT(*) FROM Faculty WHERE Rank = "Professor" AND building = "NEB"
How many Professors are in building NEB?
CREATE TABLE Faculty (Rank VARCHAR, building VARCHAR)
SELECT date FROM table_name_69 WHERE record = "43-28"
What was the date of the record of 43-28?
CREATE TABLE table_name_69 (date VARCHAR, record VARCHAR)
SELECT Grape, Winery, YEAR FROM WINE WHERE Price > 100 ORDER BY YEAR
List the grape, winery and year of the wines whose price is bigger than 100 ordered by year.
CREATE TABLE WINE (Grape VARCHAR, Winery VARCHAR, YEAR VARCHAR, Price INTEGER)
SELECT MIN(field_goals) FROM table_14342367_7
What is the least amount of field goals made by a player?
CREATE TABLE table_14342367_7 (field_goals INTEGER)
SELECT MAX(gold) FROM table_name_76 WHERE silver < 3 AND bronze > 5
What is the highest gold a team with less than 3 silver and more than 5 bronze medals has?
CREATE TABLE table_name_76 (gold INTEGER, silver VARCHAR, bronze VARCHAR)
SELECT MAX(mccain_number) FROM table_20722805_1 WHERE parish = "Webster"
What is the total number of votes McCain had in Webster?
CREATE TABLE table_20722805_1 (mccain_number INTEGER, parish VARCHAR)
SELECT MAX(difference) FROM table_26677836_1
WHat is the highest difference?
CREATE TABLE table_26677836_1 (difference INTEGER)
SELECT AVG(wins) FROM table_name_37 WHERE cuts_made > 2 AND top_10 < 2
How many wins did he have when he made over 2 cuts and had under 2 top 10s?
CREATE TABLE table_name_37 (wins INTEGER, cuts_made VARCHAR, top_10 VARCHAR)
SELECT nfl_team FROM table_name_23 WHERE college = "toledo"
What is the NFL team for Toledo?
CREATE TABLE table_name_23 (nfl_team VARCHAR, college VARCHAR)
SELECT score FROM table_name_70 WHERE date = "10 jan 1990" AND away_team = "exeter city"
What is the score of the game against away team exeter city on 10 jan 1990?
CREATE TABLE table_name_70 (score VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT driver FROM table_name_21 WHERE capacity < 5700 AND total_time = "08:29"
Which Driver has a Capacity smaller than 5700, and a Total Time of 08:29?
CREATE TABLE table_name_21 (driver VARCHAR, capacity VARCHAR, total_time VARCHAR)
SELECT booking_start_date, booking_end_date FROM Apartment_Bookings
Show the start dates and end dates of all the apartment bookings.
CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, booking_end_date VARCHAR)
SELECT home_team FROM table_name_39 WHERE venue = "mcg"
Who was the home team at MCG?
CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR)
SELECT manufacturer FROM table_name_52 WHERE laps = 23 AND time_retired = "+45.195"
Which manufacturer has 23 laps and a time of +45.195?
CREATE TABLE table_name_52 (manufacturer VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT monday_to_friday FROM table_name_87 WHERE el_canal_de_las_estrellas = "pop tv"
When does the El Canal de las Estrellas of pop tv show from Monday to Friday?
CREATE TABLE table_name_87 (monday_to_friday VARCHAR, el_canal_de_las_estrellas VARCHAR)
SELECT try_bonus FROM table_12792876_2 WHERE tries_for = "64"
How many try bonuses were there when there were 64 tries for?
CREATE TABLE table_12792876_2 (try_bonus VARCHAR, tries_for VARCHAR)
SELECT home_team FROM table_15173650_2 WHERE away_team = "Kilmarnock"
Name the home team when away team is kilmarnock
CREATE TABLE table_15173650_2 (home_team VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_18 WHERE home_team = "fitzroy"
What date was the Home team fitzroy?
CREATE TABLE table_name_18 (date VARCHAR, home_team VARCHAR)
SELECT AVG(game) FROM table_name_12 WHERE record = "45-16"
Which game had a record of 45-16?
CREATE TABLE table_name_12 (game INTEGER, record VARCHAR)
SELECT lost FROM table_name_63 WHERE conv = "0" AND span = "2006-"
What is the lost for span 2006- when conv is 0?
CREATE TABLE table_name_63 (lost VARCHAR, conv VARCHAR, span VARCHAR)
SELECT MAX(won) FROM table_25368177_1 WHERE team = "Canterbury Wizards"
How many wins did Canterbury Wizards have?
CREATE TABLE table_25368177_1 (won INTEGER, team VARCHAR)
SELECT drawn FROM table_name_87 WHERE bonus_points = "6" AND points_against = "410"
What was drawn for 6 bonus points and is against 410 points?
CREATE TABLE table_name_87 (drawn VARCHAR, bonus_points VARCHAR, points_against VARCHAR)
SELECT current_streak FROM table_name_28 WHERE last_10_meetings = "ku, 8-2"
For what current streak is KU, 8-2 under last 10 meetings?
CREATE TABLE table_name_28 (current_streak VARCHAR, last_10_meetings VARCHAR)
SELECT team FROM table_name_70 WHERE home = "stirling"
What is the name of the team from Stirling?
CREATE TABLE table_name_70 (team VARCHAR, home VARCHAR)