answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(complement) FROM table_11793221_4 WHERE unit = "4th Hanoverian Brigade"
Name the number of complement for 4th hanoverian brigade
CREATE TABLE table_11793221_4 (complement VARCHAR, unit VARCHAR)
SELECT defending_forces FROM table_name_62 WHERE population = "230"
Which defending forces has a population of 230?
CREATE TABLE table_name_62 (defending_forces VARCHAR, population VARCHAR)
SELECT school_colors FROM table_name_66 WHERE main_campus_location = "overland park"
What are the school colors for the college whose main campus is overland park?
CREATE TABLE table_name_66 (school_colors VARCHAR, main_campus_location VARCHAR)
SELECT MAX(week) FROM table_name_63 WHERE attendance = "63,001"
What was the latest week of a game that had an attendance of 63,001?
CREATE TABLE table_name_63 (week INTEGER, attendance VARCHAR)
SELECT number_of_households FROM table_name_71 WHERE county = "yadkin"
How many households have yadkin as the county?
CREATE TABLE table_name_71 (number_of_households VARCHAR, county VARCHAR)
SELECT date FROM table_name_90 WHERE catalogue = "602517739468"
What is the Date of Catalogue number 602517739468?
CREATE TABLE table_name_90 (date VARCHAR, catalogue VARCHAR)
SELECT AVG(games) FROM table_name_3 WHERE name = "stéphane dumas" AND rank > 5
How many Games has a Name of stéphane dumas and a Rank larger than 5?
CREATE TABLE table_name_3 (games INTEGER, name VARCHAR, rank VARCHAR)
SELECT national_share___percentage_ FROM table_171666_1 WHERE administrative_division = "Guizhou"
What is the national share of Guizhou's administrative division?
CREATE TABLE table_171666_1 (national_share___percentage_ VARCHAR, administrative_division VARCHAR)
SELECT reported_birth_date FROM table_name_58 WHERE reported_age = "110 years, 185 days"
what is the reported birth date when the reported age is 110 years, 185 days?
CREATE TABLE table_name_58 (reported_birth_date VARCHAR, reported_age VARCHAR)
SELECT Denomination, COUNT(*) FROM school GROUP BY Denomination
Please show different denominations and the corresponding number of schools.
CREATE TABLE school (Denomination VARCHAR)
SELECT COUNT(total) FROM table_name_87 WHERE year_s__won = "1986" AND to_par > 6
What is the total for 1986 with a to par higher than 6?
CREATE TABLE table_name_87 (total VARCHAR, year_s__won VARCHAR, to_par VARCHAR)
SELECT p1_diameter__mm_ FROM table_26967904_2 WHERE chambering = ".300 Lapua Magnum"
What is the p1 diameter (mm) when .300 lapua magnum is the chambering?
CREATE TABLE table_26967904_2 (p1_diameter__mm_ VARCHAR, chambering VARCHAR)
SELECT language FROM table_1601792_3 WHERE station = "Malacca FM"
What is the language of the malacca fm station?
CREATE TABLE table_1601792_3 (language VARCHAR, station VARCHAR)
SELECT opponent FROM table_name_20 WHERE result = "loss" AND score = "24-28"
Who loss the 24-28 game?
CREATE TABLE table_name_20 (opponent VARCHAR, result VARCHAR, score VARCHAR)
SELECT fate FROM table_name_97 WHERE nationality = "french" AND ship = "pierre lott"
what is the fate when the nationality is french and the ship is pierre lott?
CREATE TABLE table_name_97 (fate VARCHAR, nationality VARCHAR, ship VARCHAR)
SELECT score FROM table_name_56 WHERE tournament = "rabat" AND opponent_in_the_final = "frederico gil"
What is the Score of the Rabat Tournament with Opponent in the final of Frederico Gil?
CREATE TABLE table_name_56 (score VARCHAR, tournament VARCHAR, opponent_in_the_final VARCHAR)
SELECT school FROM table_2076463_2 WHERE location_s_ = "Kirksville"
Which school would you come across if you were in Kirksville?
CREATE TABLE table_2076463_2 (school VARCHAR, location_s_ VARCHAR)
SELECT SUM(hyndburn) FROM table_name_52 WHERE fylde > 3
How much Hyndburn has a Fylde larger than 3?
CREATE TABLE table_name_52 (hyndburn INTEGER, fylde INTEGER)
SELECT tournament FROM table_name_99 WHERE surface = "carpet"
What tournament is played on a carpet surface?
CREATE TABLE table_name_99 (tournament VARCHAR, surface VARCHAR)
SELECT position FROM table_29483890_1 WHERE goals = 57
What was the position of the player with 57 goals?
CREATE TABLE table_29483890_1 (position VARCHAR, goals VARCHAR)
SELECT type FROM table_2076608_1 WHERE school = "Jefferson College of Health Sciences"
What type of school is Jefferson College of Health Sciences?
CREATE TABLE table_2076608_1 (type VARCHAR, school VARCHAR)
SELECT 30 - day_pass FROM table_name_74 WHERE base_fares = "$3"
Which 30-day Pass has a Base Fare of $3?
CREATE TABLE table_name_74 (day_pass VARCHAR, base_fares VARCHAR)
SELECT COUNT(*) FROM customers GROUP BY customer_type_code ORDER BY COUNT(*) DESC LIMIT 1
How many customers are there in the customer type with the most customers?
CREATE TABLE customers (customer_type_code VARCHAR)
SELECT AVG(average) FROM table_name_23 WHERE tally = "2-12" AND total > 18
Which Average has a Tally of 2-12, and a Total larger than 18?
CREATE TABLE table_name_23 (average INTEGER, tally VARCHAR, total VARCHAR)
SELECT date FROM table_29090919_1 WHERE home_team = "Melbourne"
What is the date of the game when the home team is melbourne?
CREATE TABLE table_29090919_1 (date VARCHAR, home_team VARCHAR)
SELECT MIN(episode) FROM table_15187735_20
What is the first episode number?
CREATE TABLE table_15187735_20 (episode INTEGER)
SELECT record FROM table_21062353_1 WHERE opponent = "Florida"
What was the record of the Wildcats after playing Florida?
CREATE TABLE table_21062353_1 (record VARCHAR, opponent VARCHAR)
SELECT disaster FROM table_11649123_1 WHERE year = "2005-06"
In 2005-06 what was the disaster?
CREATE TABLE table_11649123_1 (disaster VARCHAR, year VARCHAR)
SELECT position FROM table_name_27 WHERE pick < 92 AND school_club_team = "ucla"
Which position at UCLA has a lower than 92 pick number?
CREATE TABLE table_name_27 (position VARCHAR, pick VARCHAR, school_club_team VARCHAR)
SELECT away_captain FROM table_name_36 WHERE venue = "old trafford"
What is the Away captain with a Venue that is old trafford?
CREATE TABLE table_name_36 (away_captain VARCHAR, venue VARCHAR)
SELECT class FROM table_name_57 WHERE erp_w = 10 AND call_sign = "w273bl"
What is the class of the translator with 10 ERP W and a call sign of w273bl?
CREATE TABLE table_name_57 (class VARCHAR, erp_w VARCHAR, call_sign VARCHAR)
SELECT trailing_party FROM table_name_74 WHERE party_won = "janata dal" AND year = 1996
What is Trailing Party, when Party Won is "Janata Dal", and when Year is "1996"?
CREATE TABLE table_name_74 (trailing_party VARCHAR, party_won VARCHAR, year VARCHAR)
SELECT open_cup FROM table_1986692_1 WHERE year = "1995"
When 1995 is the year what is the open cup?
CREATE TABLE table_1986692_1 (open_cup VARCHAR, year VARCHAR)
SELECT SUM(total_games) FROM table_name_68 WHERE conference = "big ten" AND lost < 488 AND team = "nebraska" AND pct < 0.7014
What were the total games in the Big Ten conference when Nebraska lost fewer than 488 games and had a Pct less than 0.7014?
CREATE TABLE table_name_68 (total_games INTEGER, pct VARCHAR, team VARCHAR, conference VARCHAR, lost VARCHAR)
SELECT MIN(pick__number) FROM table_name_39 WHERE player = "damani ralph"
Damani Ralph is associated with which lowest pick #?
CREATE TABLE table_name_39 (pick__number INTEGER, player VARCHAR)
SELECT AVG(figures) FROM table_name_63 WHERE placings = 34 AND total > 1247.51
Can you tell me the average Figures that has the Placings of 34, and the Total larger than 1247.51?
CREATE TABLE table_name_63 (figures INTEGER, placings VARCHAR, total VARCHAR)
SELECT womens_doubles FROM table_15002265_1 WHERE mens_doubles = "Reinhold Pum Karl Buchart" AND mixed_doubles = "Hermann Fröhlich Lore Voit"
who is the the womens doubles with mens doubles being reinhold pum karl buchart and mixed doubles being hermann fröhlich lore voit
CREATE TABLE table_15002265_1 (womens_doubles VARCHAR, mens_doubles VARCHAR, mixed_doubles VARCHAR)
SELECT executed_person FROM table_2861364_1 WHERE under_president = "Charles de Gaulle" AND crime = "Child murder after rape"
who was executed during president charles de gaulle's reign for thr crime of child murder after rape?
CREATE TABLE table_2861364_1 (executed_person VARCHAR, under_president VARCHAR, crime VARCHAR)
SELECT title FROM table_name_21 WHERE production_number = "627"
Which title has a production number of 627?
CREATE TABLE table_name_21 (title VARCHAR, production_number VARCHAR)
SELECT mission FROM table_name_47 WHERE launch_date = "december 30, 1970; 14:50 gmt"
Which Mission has a Launch Date of december 30, 1970; 14:50 gmt?
CREATE TABLE table_name_47 (mission VARCHAR, launch_date VARCHAR)
SELECT license FROM table_15038373_1 WHERE software = "BeeOne SMOD/HMS"
What is hte license for beeone smod/hms software?
CREATE TABLE table_15038373_1 (license VARCHAR, software VARCHAR)
SELECT nation FROM table_name_79 WHERE total < 10 AND bronze < 1 AND rank = "11"
What nation had a medal total of less than 10, less than 1 bronze medal, in rank 11?
CREATE TABLE table_name_79 (nation VARCHAR, rank VARCHAR, total VARCHAR, bronze VARCHAR)
SELECT record FROM table_11964154_11 WHERE high_rebounds = "Nick Collison (11)"
What was the record when the high rebounds was from Nick Collison (11)?
CREATE TABLE table_11964154_11 (record VARCHAR, high_rebounds VARCHAR)
SELECT SUM(overall_ranking) FROM table_name_66 WHERE index = "f10"
For all events with index f10, what is the sum of the overall rankings?
CREATE TABLE table_name_66 (overall_ranking INTEGER, index VARCHAR)
SELECT hometown FROM table_name_35 WHERE college = "ohio state"
What is the hometown of the player who attended Ohio State?
CREATE TABLE table_name_35 (hometown VARCHAR, college VARCHAR)
SELECT runner_up FROM table_name_95 WHERE year = "2008"
What runner-up has 2008 as the year?
CREATE TABLE table_name_95 (runner_up VARCHAR, year VARCHAR)
SELECT MIN(overall) FROM table_name_56 WHERE pick__number > 27
Name the least overall with pick number more than 27
CREATE TABLE table_name_56 (overall INTEGER, pick__number INTEGER)
SELECT MIN(penalty_points) FROM table_name_30 WHERE judge_e = "72.22"
what is the least penalty points when the judge e is 72.22?
CREATE TABLE table_name_30 (penalty_points INTEGER, judge_e VARCHAR)
SELECT ict FROM table_23050383_1 WHERE education = "1.73" AND ki = "1.99"
What is the ICT when education is 1.73 and KI is ag 1.99?
CREATE TABLE table_23050383_1 (ict VARCHAR, education VARCHAR, ki VARCHAR)
SELECT MIN(year) FROM table_name_36 WHERE trainer = "jeff mullins"
What year was Jeff Mullins?
CREATE TABLE table_name_36 (year INTEGER, trainer VARCHAR)
SELECT COUNT(first_elected) FROM table_1342233_32 WHERE incumbent = "Sol Bloom"
Name the total number of first elected for sol bloom
CREATE TABLE table_1342233_32 (first_elected VARCHAR, incumbent VARCHAR)
SELECT episode FROM table_23730973_5 WHERE no = 3
What was the title of episode 3?
CREATE TABLE table_23730973_5 (episode VARCHAR, no VARCHAR)
SELECT MAX(game) FROM table_28768469_7 WHERE location_attendance = "KeyArena 16,841"
What is listed in game when the location attendance is listed as Keyarena 16,841?
CREATE TABLE table_28768469_7 (game INTEGER, location_attendance VARCHAR)
SELECT lane FROM table_name_23 WHERE heat < 3 AND nationality = "barbados"
What lane did the barbados swimmer compete in before heat 3?
CREATE TABLE table_name_23 (lane VARCHAR, heat VARCHAR, nationality VARCHAR)
SELECT MIN(pick) FROM table_name_45 WHERE player = "paul stasiuk" AND round > 12
What is the lowest pick of player paul stasiuk from a round greater than 12?
CREATE TABLE table_name_45 (pick INTEGER, player VARCHAR, round VARCHAR)
SELECT constructor FROM table_name_75 WHERE date = "10 august"
Name the constructor for 10 august
CREATE TABLE table_name_75 (constructor VARCHAR, date VARCHAR)
SELECT track FROM table_name_34 WHERE catalogue = "apbo 0280"
Tell me the track that has the catalogue of apbo 0280
CREATE TABLE table_name_34 (track VARCHAR, catalogue VARCHAR)
SELECT date__ce_ FROM table_16162581_1 WHERE pinyin = "qíngyuán … yìmǎ"
Name the date for qíngyuán … yìmǎ
CREATE TABLE table_16162581_1 (date__ce_ VARCHAR, pinyin VARCHAR)
SELECT AVG(events) FROM table_name_17 WHERE top_10 < 4
I want the average events for top 10 less than 4
CREATE TABLE table_name_17 (events INTEGER, top_10 INTEGER)
SELECT COUNT(race) FROM table_name_48 WHERE circuit = "mallala motor sport park"
How many races were in the Mallala Motor Sport Park circuit?
CREATE TABLE table_name_48 (race VARCHAR, circuit VARCHAR)
SELECT MAX(lost) FROM table_name_43 WHERE pool_round = "pool 2" AND played < 6
Can you tell me the highest Lost that has the Pool/Round of pool 2, and the Played smaller than 6?
CREATE TABLE table_name_43 (lost INTEGER, pool_round VARCHAR, played VARCHAR)
SELECT manufacturer FROM table_name_73 WHERE locomotive_number = "ctn 46"
What manufacturer makes locomotive number CTN 46?
CREATE TABLE table_name_73 (manufacturer VARCHAR, locomotive_number VARCHAR)
SELECT MIN(goals_against) FROM table_name_31 WHERE points = 83 AND goal_difference > 50
What is the lowest goals against value for a team with 83 points and a difference over 50?
CREATE TABLE table_name_31 (goals_against INTEGER, points VARCHAR, goal_difference VARCHAR)
SELECT average FROM table_16390001_2 WHERE country = "Pennsylvania"
What are the average scores of contestants whose home state is Pennsylvania?
CREATE TABLE table_16390001_2 (average VARCHAR, country VARCHAR)
SELECT 250 AS _cc FROM table_name_19 WHERE year = "1985"
Who won the 250 cc in 1985?
CREATE TABLE table_name_19 (year VARCHAR)
SELECT COUNT(tries_for) FROM table_12886178_5 WHERE tries_against = "45" AND losing_bonus = "4"
How many clubs have a tries against count of 45 and a losing bonus of 4?
CREATE TABLE table_12886178_5 (tries_for VARCHAR, tries_against VARCHAR, losing_bonus VARCHAR)
SELECT name FROM table_name_67 WHERE country = "malaysia, kuala lumpur" AND index = "f8"
What is the name of the player from Malaysia, Kuala Lumpur in Index f8?
CREATE TABLE table_name_67 (name VARCHAR, country VARCHAR, index VARCHAR)
SELECT region FROM table_name_60 WHERE catalog__number = "7567-83061-2"
What is the region for the album with a catalog number of 7567-83061-2?
CREATE TABLE table_name_60 (region VARCHAR, catalog__number VARCHAR)
SELECT res FROM table_name_16 WHERE round < 3 AND opponent = "gil rael"
What was the result when there were less than 3 rounds against Gil Rael?
CREATE TABLE table_name_16 (res VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT COUNT(percentage__2006_) FROM table_2328113_1 WHERE mother_tongue = "French"
How many percentages (2006) are there for the population whose mother tongue is French?
CREATE TABLE table_2328113_1 (percentage__2006_ VARCHAR, mother_tongue VARCHAR)
SELECT opponents_in_the_final FROM table_name_91 WHERE partner = "daniella dominikovic"
Which Opponents in the final have a Partner of daniella dominikovic?
CREATE TABLE table_name_91 (opponents_in_the_final VARCHAR, partner VARCHAR)
SELECT eagle_riders FROM table_17480471_3 WHERE ova__harmony_gold_dub_ = "Lord Zortek"
What eagle riders where ova (harmony gold dub) is lord zortek?
CREATE TABLE table_17480471_3 (eagle_riders VARCHAR, ova__harmony_gold_dub_ VARCHAR)
SELECT SUM(score) FROM table_name_51 WHERE country = "australia" AND to_par = "e" AND player = "adam scott"
What was Adam Scott's total score when playing in Australia with a to par of e?
CREATE TABLE table_name_51 (score INTEGER, player VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT MAX(silver) FROM table_name_54 WHERE total = "4" AND bronze < 1
what is the highest silver when the total is 4 and bronze is less than 1?
CREATE TABLE table_name_54 (silver INTEGER, total VARCHAR, bronze VARCHAR)
SELECT ordained_bishop FROM table_1656555_1 WHERE ordained_priest = "December 1838"
What date was the person ordained as a priest in December 1838 ordained as a bishop?
CREATE TABLE table_1656555_1 (ordained_bishop VARCHAR, ordained_priest VARCHAR)
SELECT no_yds FROM table_13237088_28 WHERE ast = 8
List all number of yards with an AST of 8.
CREATE TABLE table_13237088_28 (no_yds VARCHAR, ast VARCHAR)
SELECT game FROM table_name_22 WHERE opponent = "phoenix suns"
Which Game has an Opponent of phoenix suns?
CREATE TABLE table_name_22 (game VARCHAR, opponent VARCHAR)
SELECT semimajor_axis___au__ FROM table_name_73 WHERE mass = "≥ 3.5 ± 1.4 m⊕"
What Semimajor axis (AU) has a Mass of ≥ 3.5 ± 1.4 m⊕?
CREATE TABLE table_name_73 (semimajor_axis___au__ VARCHAR, mass VARCHAR)
SELECT romanization FROM table_name_81 WHERE english_title = "my old sweetheart"
What is the Romanization for my old sweetheart?
CREATE TABLE table_name_81 (romanization VARCHAR, english_title VARCHAR)
SELECT website FROM table_name_85 WHERE frequency < 760 AND callsign = "kkyx"
Which Website has a Frequency smaller than 760 and a Callsign of kkyx?
CREATE TABLE table_name_85 (website VARCHAR, frequency VARCHAR, callsign VARCHAR)
SELECT ryds FROM table_name_35 WHERE ratt = "2" AND comp = "41"
What is the RYds when the RAtt was 2, and the comp is 41?
CREATE TABLE table_name_35 (ryds VARCHAR, ratt VARCHAR, comp VARCHAR)
SELECT title FROM table_25276528_2 WHERE directed_by = "Bill Foster"
What title did Bill Foster direct ?
CREATE TABLE table_25276528_2 (title VARCHAR, directed_by VARCHAR)
SELECT to_par FROM table_name_34 WHERE country = "england" AND score < 71
What's the to par for england when the score is less than 71?
CREATE TABLE table_name_34 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT born_died FROM table_name_39 WHERE name = "xhafer bej ypi"
What is the Born-Died dates of Xhafer Bej Ypi?
CREATE TABLE table_name_39 (born_died VARCHAR, name VARCHAR)
SELECT home FROM table_name_1 WHERE leading_scorer = "carlos boozer (27)"
What is the home of the team with Carlos Boozer (27) as the leading scorer?
CREATE TABLE table_name_1 (home VARCHAR, leading_scorer VARCHAR)
SELECT COUNT(year) FROM table_name_85 WHERE performance = "60.73m" AND age__years_ > 45
What is the year when the performance is 60.73m and the age (years) is more than 45?
CREATE TABLE table_name_85 (year VARCHAR, performance VARCHAR, age__years_ VARCHAR)
SELECT COUNT(maac) FROM table_21756039_1 WHERE ncaa_seed = "14th" AND overall = "20-10"
How many maac are there that have 14th as the ncaa and the overall is 20-10?
CREATE TABLE table_21756039_1 (maac VARCHAR, ncaa_seed VARCHAR, overall VARCHAR)
SELECT title FROM table_27911342_1 WHERE season__number = 5
What is the title of the Series 40 Season 5 show?
CREATE TABLE table_27911342_1 (title VARCHAR, season__number VARCHAR)
SELECT comp_att FROM table_name_83 WHERE season = "2009"
What is the number of completions and attempts taken in 2009?
CREATE TABLE table_name_83 (comp_att VARCHAR, season VARCHAR)
SELECT season FROM table_25561038_1 WHERE position = "1st"
List the year in which the driver was in 1st place.
CREATE TABLE table_25561038_1 (season VARCHAR, position VARCHAR)
SELECT property_name FROM Properties WHERE property_type_code = "House" UNION SELECT property_name FROM Properties WHERE property_type_code = "Apartment" AND room_count > 1
What are the names of properties that are either houses or apartments with more than 1 room?
CREATE TABLE Properties (property_name VARCHAR, property_type_code VARCHAR, room_count VARCHAR)
SELECT accolade FROM table_name_8 WHERE country = "united states" AND year = 1999
What is Accolade, when Country is "United States", and when Year is "1999"?
CREATE TABLE table_name_8 (accolade VARCHAR, country VARCHAR, year VARCHAR)
SELECT status FROM table_name_16 WHERE opposing_teams = "wales"
Which Status has a Opposing Teams of wales?
CREATE TABLE table_name_16 (status VARCHAR, opposing_teams VARCHAR)
SELECT stolen_ends FROM table_1543845_63 WHERE locale = Sweden
How many stolen ends were there when the locale was Sweden?
CREATE TABLE table_1543845_63 (stolen_ends VARCHAR, locale VARCHAR, Sweden VARCHAR)
SELECT COUNT(position) FROM table_15463188_17 WHERE season = "2009"
How many players with a position are listed for the 2009 season?
CREATE TABLE table_15463188_17 (position VARCHAR, season VARCHAR)
SELECT MIN(attendance) FROM table_name_3 WHERE record = "8-4"
What was the attendance where the record was 8-4?
CREATE TABLE table_name_3 (attendance INTEGER, record VARCHAR)
SELECT location_attendance FROM table_23285849_5 WHERE record = "9-4"
What location and how many people were in attendance where the record was 9-4 for the season?
CREATE TABLE table_23285849_5 (location_attendance VARCHAR, record VARCHAR)
SELECT seasons FROM table_name_88 WHERE goals > 100 AND games = 288
What seasons had 288 games and more than 100 goals?
CREATE TABLE table_name_88 (seasons VARCHAR, goals VARCHAR, games VARCHAR)
SELECT AVG(losses) FROM table_name_44 WHERE wins < 4 AND against > 1728
What is the average number of losses when there are more than 4 wins, and the against matches is more than 1728?
CREATE TABLE table_name_44 (losses INTEGER, wins VARCHAR, against VARCHAR)
SELECT MIN(week) FROM table_name_71 WHERE game_site = "oakland-alameda county coliseum" AND attendance > 52 OFFSET 169
Which Week has a Game site of oakland-alameda county coliseum, and an Attendance larger than 52,169?
CREATE TABLE table_name_71 (week INTEGER, game_site VARCHAR, attendance VARCHAR)