question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Name the least yes for dublin south
CREATE TABLE table_1705429_1 (yes INTEGER, constituency VARCHAR)
SELECT MIN(yes) FROM table_1705429_1 WHERE constituency = "Dublin South"
If the till aligarh is 150, what the mac till mathura?
CREATE TABLE table_19787093_1 (till_mathura INTEGER, till_aligarh VARCHAR)
SELECT MAX(till_mathura) FROM table_19787093_1 WHERE till_aligarh = 150
List all countries and their number of airlines in the descending order of number of airlines.
CREATE TABLE airlines (country VARCHAR)
SELECT country, COUNT(*) FROM airlines GROUP BY country ORDER BY COUNT(*) DESC
What was the sum of the draws for the team that had 11 wins, less than 38 points, and a position smaller than 4?
CREATE TABLE table_name_19 (draws INTEGER, points VARCHAR, position VARCHAR, wins VARCHAR)
SELECT SUM(draws) FROM table_name_19 WHERE position < 4 AND wins = 11 AND points < 38
Which Losses has Scored of 9, and Points larger than 8?
CREATE TABLE table_name_87 (losses INTEGER, scored VARCHAR, points VARCHAR)
SELECT AVG(losses) FROM table_name_87 WHERE scored = 9 AND points > 8
Which Year has a Film of baazigar?
CREATE TABLE table_name_32 (year INTEGER, film VARCHAR)
SELECT MAX(year) FROM table_name_32 WHERE film = "baazigar"
Who is the visitor from the game with 7,000 in attendance on January 1?
CREATE TABLE table_name_77 (visitor VARCHAR, attendance VARCHAR, date VARCHAR)
SELECT visitor FROM table_name_77 WHERE attendance = "7,000" AND date = "january 1"
What is the total amount of settlement made for all the settlements?
CREATE TABLE Settlements (Amount_Settled INTEGER)
SELECT SUM(Amount_Settled) FROM Settlements
What's the roll for summerland primary when decile is over 6?
CREATE TABLE table_name_66 (roll VARCHAR, decile VARCHAR, name VARCHAR)
SELECT roll FROM table_name_66 WHERE decile > 6 AND name = "summerland primary"
What is the average NGC number of everything with a Right ascension (J2000) of 05h33m30s?
CREATE TABLE table_name_7 (ngc_number INTEGER, right_ascension___j2000__ VARCHAR)
SELECT AVG(ngc_number) FROM table_name_7 WHERE right_ascension___j2000__ = "05h33m30s"
When cannot handle non-empty timestamp argument! 2007 is released what is the no.?
CREATE TABLE table_18442691_2 (no VARCHAR, released VARCHAR)
SELECT no FROM table_18442691_2 WHERE released = "Cannot handle non-empty timestamp argument! 2007"
When relay is the station type and 5kw is the power kw what is the branding?
CREATE TABLE table_23394920_1 (branding VARCHAR, power_kw VARCHAR, station_type VARCHAR)
SELECT branding FROM table_23394920_1 WHERE power_kw = "5kW" AND station_type = "Relay"
What are the price ranges of hotels?
CREATE TABLE HOTELS (price_range VARCHAR)
SELECT price_range FROM HOTELS
What is the sum of the to par of player meg mallon, who had a total greater than 157?
CREATE TABLE table_name_52 (to_par INTEGER, player VARCHAR, total VARCHAR)
SELECT SUM(to_par) FROM table_name_52 WHERE player = "meg mallon" AND total > 157
What high school did Jeff Malm attend?
CREATE TABLE table_11677100_15 (school VARCHAR, player VARCHAR)
SELECT school FROM table_11677100_15 WHERE player = "Jeff Malm"
When was the game when Footscray was the away team?
CREATE TABLE table_name_38 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_38 WHERE away_team = "footscray"
Who is the December playmate with a February playmate Anne-Marie Fox?
CREATE TABLE table_name_76 (december VARCHAR, february VARCHAR)
SELECT december FROM table_name_76 WHERE february = "anne-marie fox"
What is the smallest number of wins for the Totals Tournament with a Top-25 value greater than 3?
CREATE TABLE table_name_25 (wins INTEGER, tournament VARCHAR, top_25 VARCHAR)
SELECT MIN(wins) FROM table_name_25 WHERE tournament = "totals" AND top_25 > 3
Where was the fight that took a time of 1:37?
CREATE TABLE table_name_94 (location VARCHAR, time VARCHAR)
SELECT location FROM table_name_94 WHERE time = "1:37"
Find the names of stores whose number products is more than the average number of products.
CREATE TABLE shop (name VARCHAR, number_products INTEGER)
SELECT name FROM shop WHERE number_products > (SELECT AVG(number_products) FROM shop)
What is the No 1 from the Maryland (2008) Region (year)?
CREATE TABLE table_name_27 (no_1 VARCHAR, region__year_ VARCHAR)
SELECT no_1 FROM table_name_27 WHERE region__year_ = "maryland (2008)"
HOW MANY PLAYERS PLAY FOR OREGON?
CREATE TABLE table_11677691_2 (player VARCHAR, college VARCHAR)
SELECT COUNT(player) FROM table_11677691_2 WHERE college = "Oregon"
What is the traffic direction of 70th street?
CREATE TABLE table_name_88 (traffic_direction VARCHAR, street VARCHAR)
SELECT traffic_direction FROM table_name_88 WHERE street = "70th street"
Which FA Cup has a Player of khairan ezuan razali, and a Total smaller than 0?
CREATE TABLE table_name_62 (fa_cup INTEGER, player VARCHAR, total VARCHAR)
SELECT AVG(fa_cup) FROM table_name_62 WHERE player = "khairan ezuan razali" AND total < 0
What are the original air date(s) for episodes with production code ipea343l?
CREATE TABLE table_2501754_2 (original_airdate VARCHAR, prod_code VARCHAR)
SELECT original_airdate FROM table_2501754_2 WHERE prod_code = "IPEA343L"
Which result did the Republican have with the incumbent, Billy Tauzin?
CREATE TABLE table_1341472_20 (result VARCHAR, party VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341472_20 WHERE party = "Republican" AND incumbent = "Billy Tauzin"
what is the type when the position is ambassador and the location is rabat?
CREATE TABLE table_name_62 (type VARCHAR, position VARCHAR, location VARCHAR)
SELECT type FROM table_name_62 WHERE position = "ambassador" AND location = "rabat"
Name the teleplay for david simon & eric overmyer and tom piazza
CREATE TABLE table_26914076_2 (teleplay_by VARCHAR, story_by VARCHAR)
SELECT teleplay_by FROM table_26914076_2 WHERE story_by = "David Simon & Eric Overmyer and Tom Piazza"
What is the lowest number of episodes for anabel barnston?
CREATE TABLE table_name_35 (episodes INTEGER, actor VARCHAR)
SELECT MIN(episodes) FROM table_name_35 WHERE actor = "anabel barnston"
How many viewers in millions were there for episode 4 of this season?
CREATE TABLE table_27969432_4 (us_viewers__in_millions_ VARCHAR, no_in_season VARCHAR)
SELECT COUNT(us_viewers__in_millions_) FROM table_27969432_4 WHERE no_in_season = 4
Who was the player from texas southern?
CREATE TABLE table_name_72 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_72 WHERE college = "texas southern"
How many wickets have runs under 7531, matches over 44, and an average of 22.17?
CREATE TABLE table_name_77 (wickets VARCHAR, average VARCHAR, runs VARCHAR, matches VARCHAR)
SELECT wickets FROM table_name_77 WHERE runs < 7531 AND matches > 44 AND average = 22.17
Which position had fewer rounds than 3, and an overall of less than 48?
CREATE TABLE table_name_96 (position VARCHAR, round VARCHAR, overall VARCHAR)
SELECT position FROM table_name_96 WHERE round < 3 AND overall < 48
What is the intercontinental cup 1999 result of the team who did not qualify for the Copa Libertadores 1999 and made quarterfinals in the Copa Mercosur 1999?
CREATE TABLE table_name_48 (intercontinental_cup_1999 VARCHAR, copa_libertadores_1999 VARCHAR, copa_mercosur_1999 VARCHAR)
SELECT intercontinental_cup_1999 FROM table_name_48 WHERE copa_libertadores_1999 = "did not qualify" AND copa_mercosur_1999 = "quarterfinals"
What is the Venue of the 2009 St. Louis Rams Home game?
CREATE TABLE table_name_58 (venue VARCHAR, year VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_58 WHERE year = 2009 AND home_team = "st. louis rams"
What's the position listed for the east carolina team?
CREATE TABLE table_name_81 (position VARCHAR, school_club_team VARCHAR)
SELECT position FROM table_name_81 WHERE school_club_team = "east carolina"
How many years were there 97 qatari male births?
CREATE TABLE table_19309079_2 (year VARCHAR, qatari_male VARCHAR)
SELECT COUNT(year) FROM table_19309079_2 WHERE qatari_male = 97
what's the chroma format with name being high profile
CREATE TABLE table_1376890_2 (chroma_format VARCHAR, name VARCHAR)
SELECT chroma_format FROM table_1376890_2 WHERE name = "High profile"
How many U.S. viewers were there for the number 4 episode in season?
CREATE TABLE table_25246990_5 (us_viewers__millions_ VARCHAR, no_in_season VARCHAR)
SELECT us_viewers__millions_ FROM table_25246990_5 WHERE no_in_season = 4
What is the total having a bronze value over 1, silver under 5, and ranked 9?
CREATE TABLE table_name_55 (total VARCHAR, rank VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT total FROM table_name_55 WHERE bronze > 1 AND silver < 5 AND rank = "9"
Name the traditional for 屏南县
CREATE TABLE table_2013618_1 (traditional VARCHAR, simplified VARCHAR)
SELECT traditional FROM table_2013618_1 WHERE simplified = "屏南县"
How many pinyin transaltions are available for the chinese phrase 釋蟲?
CREATE TABLE table_1216675_1 (pinyin VARCHAR, chinese VARCHAR)
SELECT COUNT(pinyin) FROM table_1216675_1 WHERE chinese = "釋蟲"
What was the score for home team AFC Hornchurch?
CREATE TABLE table_name_74 (score VARCHAR, home_team VARCHAR)
SELECT score FROM table_name_74 WHERE home_team = "afc hornchurch"
Name the seasons and winners that airs 28 january 2007
CREATE TABLE table_16884579_1 (seasons_and_winners VARCHAR, premiere VARCHAR)
SELECT seasons_and_winners FROM table_16884579_1 WHERE premiere = "28 January 2007"
What is the nationality of the player from the Ohio State University (NCAA) Team?
CREATE TABLE table_name_20 (nationality VARCHAR, college_junior_club_team__league_ VARCHAR)
SELECT nationality FROM table_name_20 WHERE college_junior_club_team__league_ = "ohio state university (ncaa)"
Which Source model has a 16-bit* Architecture?
CREATE TABLE table_name_27 (source_model VARCHAR, architecture VARCHAR)
SELECT source_model FROM table_name_27 WHERE architecture = "16-bit*"
How many solar eclipse during June 10-11 and march 27-29 is 149?
CREATE TABLE table_25287007_2 (june_10_11 VARCHAR, march_27_29 VARCHAR)
SELECT june_10_11 FROM table_25287007_2 WHERE march_27_29 = "149"
What is the height of the Forward who currently plays for the Toronto Raptors?
CREATE TABLE table_name_1 (height VARCHAR, position VARCHAR, current_club VARCHAR)
SELECT height FROM table_name_1 WHERE position = "forward" AND current_club = "toronto raptors"
What away has 1-4 as the home?
CREATE TABLE table_name_82 (away VARCHAR, home VARCHAR)
SELECT away FROM table_name_82 WHERE home = "1-4"
How many Points have a Position larger than 4, and Losses larger than 5, and a Conceded of 15, and a Scored larger than 11?
CREATE TABLE table_name_70 (points VARCHAR, scored VARCHAR, conceded VARCHAR, position VARCHAR, losses VARCHAR)
SELECT COUNT(points) FROM table_name_70 WHERE position > 4 AND losses > 5 AND conceded = 15 AND scored > 11
Which Wins is the highest one that has a Country of united states, and a Player of andy bean, and a Rank smaller than 4?
CREATE TABLE table_name_66 (wins INTEGER, rank VARCHAR, country VARCHAR, player VARCHAR)
SELECT MAX(wins) FROM table_name_66 WHERE country = "united states" AND player = "andy bean" AND rank < 4
what is the listing for 1999 when 1990 is more than 0, 2003 is 3, 2007 is more than 1 and 1996 is more than 0?
CREATE TABLE table_name_27 (Id VARCHAR)
SELECT SUM(1999) FROM table_name_27 WHERE 1990 > 0 AND 2003 = 3 AND 2007 > 1 AND 1996 > 0
What is the rank of the gauteng province?
CREATE TABLE table_name_64 (rank VARCHAR, province VARCHAR)
SELECT rank FROM table_name_64 WHERE province = "gauteng"
When james seaton is the incumbent what is the reason?
CREATE TABLE table_28898974_3 (reason VARCHAR, incumbent VARCHAR)
SELECT reason FROM table_28898974_3 WHERE incumbent = "James Seaton"
What was the kickoff time on monday, may 13?
CREATE TABLE table_1639689_2 (kickoff VARCHAR, date VARCHAR)
SELECT kickoff FROM table_1639689_2 WHERE date = "Monday, May 13"
What was the score at Spartan Stadium when San Jose was the Home team?
CREATE TABLE table_name_18 (score VARCHAR, home_team VARCHAR, venue VARCHAR)
SELECT score FROM table_name_18 WHERE home_team = "san jose" AND venue = "spartan stadium"
What is the location and attendance for the Orlando team?
CREATE TABLE table_17323092_6 (location_attendance VARCHAR, team VARCHAR)
SELECT location_attendance FROM table_17323092_6 WHERE team = "Orlando"
What is the average 1940 value where 1929 values are 101.4 and 1933 values are over 68.3?
CREATE TABLE table_name_6 (Id VARCHAR)
SELECT AVG(1940) FROM table_name_6 WHERE 1929 = 101.4 AND 1933 > 68.3
What is the Japanese orthography for the English name National Farmers Academy?
CREATE TABLE table_11390711_4 (japanese_orthography VARCHAR, english_name VARCHAR)
SELECT japanese_orthography FROM table_11390711_4 WHERE english_name = "National Farmers Academy"
how many producers are responsible for the song 'calling out to marlboro?
CREATE TABLE table_28232443_1 (producer__s_ VARCHAR, song__s_ VARCHAR)
SELECT COUNT(producer__s_) FROM table_28232443_1 WHERE song__s_ = "Calling Out to Marlboro"
Where in 1985 was tim mayotte runner up?
CREATE TABLE table_name_13 (location VARCHAR, year VARCHAR, runner_up VARCHAR)
SELECT location FROM table_name_13 WHERE year > 1985 AND runner_up = "tim mayotte"
Which team lives in mcg?
CREATE TABLE table_name_26 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_26 WHERE venue = "mcg"
Name the english translation of 219
CREATE TABLE table_13003460_1 (english_translation VARCHAR, word_number VARCHAR)
SELECT english_translation FROM table_13003460_1 WHERE word_number = "219"
what's the total number of episodes with a US air date of january 15, 2005?
CREATE TABLE table_1231892_4 (production_code VARCHAR, us_air_date VARCHAR)
SELECT COUNT(production_code) FROM table_1231892_4 WHERE us_air_date = "January 15, 2005"
What is the total amount of decile with the authority of state around the Pokuru School and a roll smaller than 109?
CREATE TABLE table_name_44 (decile INTEGER, roll VARCHAR, authority VARCHAR, name VARCHAR)
SELECT SUM(decile) FROM table_name_44 WHERE authority = "state" AND name = "pokuru school" AND roll < 109
What is the nationality of the player who played 505 games?
CREATE TABLE table_name_37 (nationality VARCHAR, games VARCHAR)
SELECT nationality FROM table_name_37 WHERE games = "505"
What is the largest value for SP+FS with more than 164.56 points for Mitsuru Matsumura in a Rank greater than 1?
CREATE TABLE table_name_27 (fs VARCHAR, sp INTEGER, name VARCHAR, points VARCHAR, rank VARCHAR)
SELECT MAX(sp) + fs FROM table_name_27 WHERE points > 164.56 AND rank > 1 AND name = "mitsuru matsumura"
What college did the player who played DE go to?
CREATE TABLE table_26996293_1 (college VARCHAR, position VARCHAR)
SELECT college FROM table_26996293_1 WHERE position = "DE"
Which Position has a Venue of berlin, germany?
CREATE TABLE table_name_3 (position VARCHAR, venue VARCHAR)
SELECT position FROM table_name_3 WHERE venue = "berlin, germany"
Opponent of new york giants, and a Yards smaller than 68 is what kicker?
CREATE TABLE table_name_36 (kicker VARCHAR, opponent VARCHAR, yards VARCHAR)
SELECT kicker FROM table_name_36 WHERE opponent = "new york giants" AND yards < 68
Who is the player with a 70-68-74=212 score?
CREATE TABLE table_name_73 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_73 WHERE score = 70 - 68 - 74 = 212
Name the total number of opponent of record 9-2
CREATE TABLE table_17186229_4 (opponent VARCHAR, record VARCHAR)
SELECT COUNT(opponent) FROM table_17186229_4 WHERE record = "9-2"
What number in series was the episode written by Eric Gilliland?
CREATE TABLE table_27987768_1 (no_in_series INTEGER, written_by VARCHAR)
SELECT MAX(no_in_series) FROM table_27987768_1 WHERE written_by = "Eric Gilliland"
What is the Away team at Mansfield Town's Home game?
CREATE TABLE table_name_53 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_53 WHERE home_team = "mansfield town"
What engine was introduced in 1935?
CREATE TABLE table_name_66 (engine VARCHAR, introduced VARCHAR)
SELECT engine FROM table_name_66 WHERE introduced = "1935"
Name the total for % core moldova for 4.36%
CREATE TABLE table_19260_1 (total VARCHAR, _percentage_core_moldova VARCHAR)
SELECT total FROM table_19260_1 WHERE _percentage_core_moldova = "4.36_percentage"
What is the record at Columbia when KU, 4-1 is the record for the last 5 minutes?
CREATE TABLE table_name_2 (at_columbia VARCHAR, last_5_meetings VARCHAR)
SELECT at_columbia FROM table_name_2 WHERE last_5_meetings = "ku, 4-1"
what are the average and maximum attendances of all events?
CREATE TABLE event (Event_Attendance INTEGER)
SELECT AVG(Event_Attendance), MAX(Event_Attendance) FROM event
What is the preliminary average when the semifinal average is 8.834 (3) ?
CREATE TABLE table_16268026_3 (preliminary_average VARCHAR, semifinal_average VARCHAR)
SELECT preliminary_average FROM table_16268026_3 WHERE semifinal_average = "8.834 (3)"
How many parties were represented for Charles R. Crisp?
CREATE TABLE table_1342370_10 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(party) FROM table_1342370_10 WHERE incumbent = "Charles R. Crisp"
What date did Jamie McMurray win the race?
CREATE TABLE table_17801022_1 (date VARCHAR, driver VARCHAR)
SELECT date FROM table_17801022_1 WHERE driver = "Jamie McMurray"
What team used the BRM built car?
CREATE TABLE table_name_92 (entrant VARCHAR, constructor VARCHAR)
SELECT entrant FROM table_name_92 WHERE constructor = "brm"
what is the normal environment of occurrence that has a Proto-Germanic origin /ai/
CREATE TABLE table_name_86 (normal_environment_of_occurrence__in_native_words_ VARCHAR, proto_germanic_origin VARCHAR)
SELECT normal_environment_of_occurrence__in_native_words_ FROM table_name_86 WHERE proto_germanic_origin = "/ai/"
What are the minimum and maximum vote percents of elections?
CREATE TABLE election (Vote_Percent INTEGER)
SELECT MIN(Vote_Percent), MAX(Vote_Percent) FROM election
For couple Todd and Susie, what was the vote percentage?
CREATE TABLE table_19744915_17 (vote_percentage VARCHAR, couple VARCHAR)
SELECT vote_percentage FROM table_19744915_17 WHERE couple = "Todd and Susie"
What is 2004, when 2005 is "Not Tier I"?
CREATE TABLE table_name_31 (Id VARCHAR)
SELECT 2004 FROM table_name_31 WHERE 2005 = "not tier i"
What is the highest heat for Ihor Bodrov when the mark is 6.76 and the lane is less than 1?
CREATE TABLE table_name_8 (heat INTEGER, lane VARCHAR, mark VARCHAR, name VARCHAR)
SELECT MAX(heat) FROM table_name_8 WHERE mark = "6.76" AND name = "ihor bodrov" AND lane < 1
At what race does jim clark has a Pole position on the Circuit of monaco?
CREATE TABLE table_name_72 (race VARCHAR, pole_position VARCHAR, circuit VARCHAR)
SELECT race FROM table_name_72 WHERE pole_position = "jim clark" AND circuit = "monaco"
What was the location of the game on February 2?
CREATE TABLE table_name_50 (location_attendance VARCHAR, date VARCHAR)
SELECT location_attendance FROM table_name_50 WHERE date = "february 2"
Which Club team has a Pick larger than 139?
CREATE TABLE table_name_55 (club_team VARCHAR, pick INTEGER)
SELECT club_team FROM table_name_55 WHERE pick > 139
What Winning driver has a Winning constructor of talbot?
CREATE TABLE table_name_59 (winning_driver VARCHAR, winning_constructor VARCHAR)
SELECT winning_driver FROM table_name_59 WHERE winning_constructor = "talbot"
What is the road team of game 6 with Philadelphia as the home team?
CREATE TABLE table_name_56 (road_team VARCHAR, home_team VARCHAR, game VARCHAR)
SELECT road_team FROM table_name_56 WHERE home_team = "philadelphia" AND game = "game 6"
Which artist has a Spoofed title in June 1992?
CREATE TABLE table_name_32 (artist VARCHAR, date VARCHAR)
SELECT artist FROM table_name_32 WHERE date = "june 1992"
What is the release date of the mm series, which has the title tom thumb in trouble?
CREATE TABLE table_name_40 (release_date VARCHAR, series VARCHAR, title VARCHAR)
SELECT release_date FROM table_name_40 WHERE series = "mm" AND title = "tom thumb in trouble"
How many times is a score for stolen ends recorded for France?
CREATE TABLE table_1644857_2 (stolen_ends VARCHAR, country VARCHAR, France VARCHAR)
SELECT COUNT(stolen_ends) FROM table_1644857_2 WHERE country = France
What is the name of the cornerback from Wisconsin college?
CREATE TABLE table_name_45 (name VARCHAR, position VARCHAR, college VARCHAR)
SELECT name FROM table_name_45 WHERE position = "cornerback" AND college = "wisconsin"
When the torsion spring diameter is 38.4cm what would be the length or weight of the missile
CREATE TABLE table_21012786_2 (length_weight_of_missile VARCHAR, diameter_of_torsion_spring VARCHAR)
SELECT length_weight_of_missile FROM table_21012786_2 WHERE diameter_of_torsion_spring = "38.4cm"
what is the character with the duration of 11 years?
CREATE TABLE table_name_47 (character VARCHAR, duration VARCHAR)
SELECT character FROM table_name_47 WHERE duration = "11 years"
What is the lowest Rank of Denmark County with a Total smaller than 1?
CREATE TABLE table_name_2 (rank INTEGER, country VARCHAR, total VARCHAR)
SELECT MIN(rank) FROM table_name_2 WHERE country = "denmark" AND total < 1
What is the number of ends lost when there are 15 blank ends, less than 14 stolen ends?
CREATE TABLE table_name_67 (ends_lost VARCHAR, blank_ends VARCHAR, stolen_ends VARCHAR)
SELECT COUNT(ends_lost) FROM table_name_67 WHERE blank_ends = 15 AND stolen_ends < 14