answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(english_name) FROM table_101196_1 WHERE irish_speakers = "53%" AND county = "county Kerry"
How many County Kerry have 53% Irish speakers?
CREATE TABLE table_101196_1 (english_name VARCHAR, irish_speakers VARCHAR, county VARCHAR)
SELECT ijekavian FROM table_27730_9 WHERE ikavian = "grijati"
What's the ijekavian translation of the ikavian word grijati?
CREATE TABLE table_27730_9 (ijekavian VARCHAR, ikavian VARCHAR)
SELECT departure FROM table_18333678_2 WHERE arrival = "11.45" AND going_to = "Stamford East"
when does the train arriving at stamford east at 11.45 departure
CREATE TABLE table_18333678_2 (departure VARCHAR, arrival VARCHAR, going_to VARCHAR)
SELECT county FROM table_29458735_5 WHERE division = "2nd division" AND regiment = "41st regiment"
what is he name of the county where the 2nd division and the 41st regiment was
CREATE TABLE table_29458735_5 (county VARCHAR, division VARCHAR, regiment VARCHAR)
SELECT date FROM table_name_78 WHERE record = "19–16"
Record of 19–16 occurred on what date?
CREATE TABLE table_name_78 (date VARCHAR, record VARCHAR)
SELECT result FROM table_name_46 WHERE goal < 2
What is the result when there's less than 2 goals?
CREATE TABLE table_name_46 (result VARCHAR, goal INTEGER)
SELECT COUNT(awardee_s_) FROM table_24446718_3 WHERE name_of_award = "Best Screenplay"
Name the total number of awardees for best screenplay
CREATE TABLE table_24446718_3 (awardee_s_ VARCHAR, name_of_award VARCHAR)
SELECT home_team AS score FROM table_name_37 WHERE away_team = "richmond"
When richmond was the Away team what was the score of the home team?
CREATE TABLE table_name_37 (home_team VARCHAR, away_team VARCHAR)
SELECT written_by FROM table_17356042_1 WHERE directed_by = "Arthur Albert"
Name who wrote the episode directed by arthur albert
CREATE TABLE table_17356042_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT county FROM table_name_92 WHERE r_bacon = "438 (4%)"
Which county has 438 (4%) listed under R. Bacon?
CREATE TABLE table_name_92 (county VARCHAR, r_bacon VARCHAR)
SELECT team FROM table_name_13 WHERE against > 8 AND lost = 7 AND position = 5
What team has an against more than 8, lost of 7, and the position is 5?
CREATE TABLE table_name_13 (team VARCHAR, position VARCHAR, against VARCHAR, lost VARCHAR)
SELECT AVG(year) FROM table_name_11 WHERE version = "wolf mix"
What year had a version called Wolf Mix?
CREATE TABLE table_name_11 (year INTEGER, version VARCHAR)
SELECT record FROM table_name_4 WHERE result = "w 33-3"
What is the record for the result w 33-3?
CREATE TABLE table_name_4 (record VARCHAR, result VARCHAR)
SELECT visitor FROM table_name_43 WHERE decision = "biron" AND date = "october 4"
Who was the visiting team where the decision was Biron on October 4?
CREATE TABLE table_name_43 (visitor VARCHAR, decision VARCHAR, date VARCHAR)
SELECT Destroyed_by_Employee_ID, COUNT(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID
Show the employee ids and the number of documents destroyed by each employee.
CREATE TABLE Documents_to_be_destroyed (Destroyed_by_Employee_ID VARCHAR)
SELECT institution FROM table_name_44 WHERE location = "reading, pa"
Which institution is located in Reading, PA?
CREATE TABLE table_name_44 (institution VARCHAR, location VARCHAR)
SELECT castilian FROM table_name_17 WHERE italian = "auto(mobile)"
What word would a Castilian speaker use for the Italian word auto(mobile)?
CREATE TABLE table_name_17 (castilian VARCHAR, italian VARCHAR)
SELECT date FROM table_name_51 WHERE opponent = "cambridge united"
What day did they play cambridge united?
CREATE TABLE table_name_51 (date VARCHAR, opponent VARCHAR)
SELECT MAX(total_number_of_students) FROM table_142950_1
What is the largest number of students?
CREATE TABLE table_142950_1 (total_number_of_students INTEGER)
SELECT time FROM table_name_33 WHERE opponent = "jerry bohlander"
What was jerry bohlander's time?
CREATE TABLE table_name_33 (time VARCHAR, opponent VARCHAR)
SELECT COUNT(rank) FROM table_name_30 WHERE placings = "28.5" AND total < 92.7
What is the rank number for a placing of 28.5 and a total less than 92.7?
CREATE TABLE table_name_30 (rank VARCHAR, placings VARCHAR, total VARCHAR)
SELECT MIN(bronze) FROM table_name_61 WHERE nation = "united states" AND total > 25
When the united states won a total number of medals larger than 25, what was the lowest amount of Bronze medals won?
CREATE TABLE table_name_61 (bronze INTEGER, nation VARCHAR, total VARCHAR)
SELECT SUM(draws) FROM table_name_27 WHERE el_zamalek_wins < 36 AND total > 2 AND al_ahly_wins > 37
What is the sum of draws for El Zamalek wins under 36, total over 2, and Al Ahly wins over 37?
CREATE TABLE table_name_27 (draws INTEGER, al_ahly_wins VARCHAR, el_zamalek_wins VARCHAR, total VARCHAR)
SELECT source FROM table_name_89 WHERE name = "cresswell"
What was the source for the person named Cresswell?
CREATE TABLE table_name_89 (source VARCHAR, name VARCHAR)
SELECT date FROM table_name_85 WHERE result = "w 28–7"
On what date was the result w 28–7?
CREATE TABLE table_name_85 (date VARCHAR, result VARCHAR)
SELECT SUM(tujia_population) FROM table_name_20 WHERE prefecture = "zhangjiajie" AND county = "sangzhi"
What is the sum of Tujia population with the Zhangjiajie prefecture in Sangzhi county?
CREATE TABLE table_name_20 (tujia_population INTEGER, prefecture VARCHAR, county VARCHAR)
SELECT opponents FROM table_name_67 WHERE venue = "away" AND score = "5-4"
Who was the opponent at the away game with a score of 5-4?
CREATE TABLE table_name_67 (opponents VARCHAR, venue VARCHAR, score VARCHAR)
SELECT record FROM table_27537518_6 WHERE first_star = "J. Oduya"
What was the record in the game whose first star was J. Oduya?
CREATE TABLE table_27537518_6 (record VARCHAR, first_star VARCHAR)
SELECT channel FROM table_name_82 WHERE play_by_play = "paul sunderland" AND studio_host = "bill macdonald" AND studio_analysts = "jack haley"
which channel will have play by play commentator Paul Sunderland, Studio Host Bill Macdonald and Studi Analysty Jack Haley?
CREATE TABLE table_name_82 (channel VARCHAR, studio_analysts VARCHAR, play_by_play VARCHAR, studio_host VARCHAR)
SELECT week FROM table_name_18 WHERE attendance = "65,272"
Which week's game was attended by 65,272 people?
CREATE TABLE table_name_18 (week VARCHAR, attendance VARCHAR)
SELECT MAX(bronze) FROM table_name_75 WHERE total > 11
What nation has the most bronze medals with over 11 total medals?
CREATE TABLE table_name_75 (bronze INTEGER, total INTEGER)
SELECT estimated_end_date[_clarification_needed_] FROM table_18161217_2 WHERE cospar_id = "2001-037A"
What is the estimated end date for the 2001-037a international designated satellite?
CREATE TABLE table_18161217_2 (estimated_end_date VARCHAR, _clarification_needed_ VARCHAR, cospar_id VARCHAR)
SELECT opponent FROM table_name_3 WHERE date = "21 jul 2007"
Which opponent has a date 21 jul 2007?
CREATE TABLE table_name_3 (opponent VARCHAR, date VARCHAR)
SELECT winner FROM table_name_29 WHERE year = 1999 AND loser = "kansas city chiefs"
Who was the winner of the game in 1999 with Kansas City Chiefs as the loser?
CREATE TABLE table_name_29 (winner VARCHAR, year VARCHAR, loser VARCHAR)
SELECT Election_Cycle, COUNT(*) FROM VOTING_RECORD GROUP BY Election_Cycle
For each election cycle, report the number of voting records.
CREATE TABLE VOTING_RECORD (Election_Cycle VARCHAR)
SELECT SUM(year) FROM table_name_1 WHERE date = "5 february"
What is the sum of the year for 5 february?
CREATE TABLE table_name_1 (year INTEGER, date VARCHAR)
SELECT team FROM table_22669044_9 WHERE location_attendance = "United Center 22,147"
Name the team for united center 22,147
CREATE TABLE table_22669044_9 (team VARCHAR, location_attendance VARCHAR)
SELECT package_option FROM TV_Channel WHERE NOT id IN (SELECT channel FROM cartoon WHERE directed_by = 'Ben Jones')
find the package option of the tv channel that do not have any cartoon directed by Ben Jones.
CREATE TABLE cartoon (package_option VARCHAR, id VARCHAR, channel VARCHAR, directed_by VARCHAR); CREATE TABLE TV_Channel (package_option VARCHAR, id VARCHAR, channel VARCHAR, directed_by VARCHAR)
SELECT ihsaa_class FROM table_name_71 WHERE county < 228
What is the IHSAA class of the county that is less than 228?
CREATE TABLE table_name_71 (ihsaa_class VARCHAR, county INTEGER)
SELECT local_networked FROM table_name_1 WHERE ad_freq = "15 minutes"
What is the local/network with an Ad frequency of 15 minutes?
CREATE TABLE table_name_1 (local_networked VARCHAR, ad_freq VARCHAR)
SELECT episode FROM table_1723080_1 WHERE broadcast_date = "11July1964"
What episode aired on 11july1964?
CREATE TABLE table_1723080_1 (episode VARCHAR, broadcast_date VARCHAR)
SELECT result FROM table_28298589_2 WHERE visiting_team = "Syracuse"
What is the result when the visiting team is syracuse?
CREATE TABLE table_28298589_2 (result VARCHAR, visiting_team VARCHAR)
SELECT SUM(total) FROM table_name_59 WHERE nation = "england"
What is total number of wins for England?
CREATE TABLE table_name_59 (total INTEGER, nation VARCHAR)
SELECT away_team AS score FROM table_name_27 WHERE venue = "glenferrie oval"
What was the score for the away team that played at Glenferrie Oval?
CREATE TABLE table_name_27 (away_team VARCHAR, venue VARCHAR)
SELECT MIN(series__number) FROM table_23286722_1 WHERE written_by = "David E. Kelley & Jill Goldsmith"
Name least series number for writers david e. kelley & jill goldsmith
CREATE TABLE table_23286722_1 (series__number INTEGER, written_by VARCHAR)
SELECT written_by FROM table_19417244_2 WHERE us_viewers__millions_ = "14.39"
who write the episode that have 14.39 million viewers
CREATE TABLE table_19417244_2 (written_by VARCHAR, us_viewers__millions_ VARCHAR)
SELECT Name FROM wrestler ORDER BY Days_held DESC
List the names of wrestlers in descending order of days held.
CREATE TABLE wrestler (Name VARCHAR, Days_held VARCHAR)
SELECT AVG(bronze) FROM table_name_39 WHERE "total" > 72 AND nation = "total" AND silver < 112
How many bronzes are there for the total nation with 112 silver and a total of 72?
CREATE TABLE table_name_39 (bronze INTEGER, silver VARCHAR, nation VARCHAR)
SELECT date_of_birth FROM table_name_81 WHERE name = "pananmal punjabi"
What is the Pananmal Punjabi's date of birth?
CREATE TABLE table_name_81 (date_of_birth VARCHAR, name VARCHAR)
SELECT surface FROM table_name_5 WHERE opponent_in_the_final = "daniella dominikovic"
Which Surface has an Opponent in the final of daniella dominikovic?
CREATE TABLE table_name_5 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT _percentage_2001 FROM table_1939405_2 WHERE _percentage_2011 = "0.2%"
What are the percentages in 2001 in all the provinces where the percentage in 2011 is 0.2%?
CREATE TABLE table_1939405_2 (_percentage_2001 VARCHAR, _percentage_2011 VARCHAR)
SELECT COUNT(3 AS rd_ru) FROM table_17522854_6 WHERE country = "Canada"
How many 3rd ru does Canada have?
CREATE TABLE table_17522854_6 (country VARCHAR)
SELECT MIN(rank) FROM table_name_87 WHERE population = "4839400"
What rank has a population of 4839400?
CREATE TABLE table_name_87 (rank INTEGER, population VARCHAR)
SELECT original_air_date FROM table_17623902_1 WHERE written_by = "Debbie Sarjeant"
What was the original air date of this episode that was written by Debbie Sarjeant?
CREATE TABLE table_17623902_1 (original_air_date VARCHAR, written_by VARCHAR)
SELECT score FROM table_23248910_9 WHERE record = "46-25"
What is every score with a record of 46-25?
CREATE TABLE table_23248910_9 (score VARCHAR, record VARCHAR)
SELECT country FROM table_name_84 WHERE score = 67
Which Country has a Score of 67?
CREATE TABLE table_name_84 (country VARCHAR, score VARCHAR)
SELECT MIN(game) FROM table_name_14 WHERE inning = "6th" AND opposing_pitcher = "cliff curtis"
What is the lowest Game where Inning is 6th, and the Opposing Pitcher is cliff curtis?
CREATE TABLE table_name_14 (game INTEGER, inning VARCHAR, opposing_pitcher VARCHAR)
SELECT opponent FROM table_name_86 WHERE series = "1-3"
Who was the opponent when the series was at 1-3?
CREATE TABLE table_name_86 (opponent VARCHAR, series VARCHAR)
SELECT COUNT(manner_of_departure) FROM table_29414946_3 WHERE outgoing_manager = "Silas"
How many times did Silas leave as a team manager?
CREATE TABLE table_29414946_3 (manner_of_departure VARCHAR, outgoing_manager VARCHAR)
SELECT AVG(attendance) FROM table_name_10 WHERE scorers = "steven, johnston, walters, mccoist, i.ferguson"
Can you tell me the average Attendance that has the Scorers of steven, johnston, walters, mccoist, i.ferguson?
CREATE TABLE table_name_10 (attendance INTEGER, scorers VARCHAR)
SELECT rank___wjc__ FROM table_1131183_2 WHERE metro_area = "Los Angeles"
What is the rank where the area is Los Angeles?
CREATE TABLE table_1131183_2 (rank___wjc__ VARCHAR, metro_area VARCHAR)
SELECT AVG(scored) FROM table_name_64 WHERE competition = "2011 long teng cup" AND date = "2 october 2011"
Name the averag scored for 2011 long teng cup and 2 october 2011
CREATE TABLE table_name_64 (scored INTEGER, competition VARCHAR, date VARCHAR)
SELECT zip_code, AVG(mean_temperature_f) FROM weather WHERE date LIKE "8/%" GROUP BY zip_code
For each zip code, return the average mean temperature of August there.
CREATE TABLE weather (zip_code VARCHAR, mean_temperature_f INTEGER, date VARCHAR)
SELECT results FROM table_name_23 WHERE year = 2000
What was the result in 2000?
CREATE TABLE table_name_23 (results VARCHAR, year VARCHAR)
SELECT date FROM table_name_50 WHERE opponent = "buffalo bills"
Which Date had an Opponent of buffalo bills?
CREATE TABLE table_name_50 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_59 WHERE surface = "hard" AND tournament = "maybelline classic" AND opponent = "wendy turnbull"
Name the date for hard surface at maybelline classic with opponent of wendy turnbull
CREATE TABLE table_name_59 (date VARCHAR, opponent VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT opponents FROM table_name_60 WHERE score = "6–3, 6–4, 6–1"
Which Opponents has a Score of 6–3, 6–4, 6–1?
CREATE TABLE table_name_60 (opponents VARCHAR, score VARCHAR)
SELECT result FROM table_2668243_18 WHERE candidates = "Augustine H. Shepperd (J) 100%"
Name the result for augustine h. shepperd (j) 100%
CREATE TABLE table_2668243_18 (result VARCHAR, candidates VARCHAR)
SELECT tie_no FROM table_name_36 WHERE away_team = "tranmere rovers"
Which tie number had an away team of the Tranmere Rovers?
CREATE TABLE table_name_36 (tie_no VARCHAR, away_team VARCHAR)
SELECT bleeding_time FROM table_name_75 WHERE condition = "congenital afibrinogenemia"
Which Bleeding has a Condition of congenital afibrinogenemia?
CREATE TABLE table_name_75 (bleeding_time VARCHAR, condition VARCHAR)
SELECT school FROM table_name_59 WHERE size > 408 AND mascot = "pacers"
Which School has a Size larger than 408, and a Mascot of pacers?
CREATE TABLE table_name_59 (school VARCHAR, size VARCHAR, mascot VARCHAR)
SELECT AVG(round) FROM table_name_25 WHERE record = "1-1"
What is the average round for the record of 1-1?
CREATE TABLE table_name_25 (round INTEGER, record VARCHAR)
SELECT AVG(entre_rΓ­os_municipality) FROM table_name_99 WHERE pojo_municipality < 9
What is the average Entre RΓ­os Municipality with less than 9 Pojo Municipalities?
CREATE TABLE table_name_99 (entre_rΓ­os_municipality INTEGER, pojo_municipality INTEGER)
SELECT d_46_√ FROM table_name_3 WHERE d_44_√ = "← majority"
What is the D 46 √ when the D 44 √ is ← majority?
CREATE TABLE table_name_3 (d_46_√ VARCHAR, d_44_√ VARCHAR)
SELECT evening_gown FROM table_name_90 WHERE swimsuit > 9.51 AND country = "maryland"
Name the evening gown for swimsuit more than 9.51 for maryland
CREATE TABLE table_name_90 (evening_gown VARCHAR, swimsuit VARCHAR, country VARCHAR)
SELECT COUNT(score) FROM table_name_72 WHERE event = "36 arrow finals"
What is the total score for the 36 arrow finals event?
CREATE TABLE table_name_72 (score VARCHAR, event VARCHAR)
SELECT us_viewers__millions_ FROM table_28027307_1 WHERE production_code = "6AKY07"
How many millions of U.S. viewers watched the episode with the production code of 6AKY07?
CREATE TABLE table_28027307_1 (us_viewers__millions_ VARCHAR, production_code VARCHAR)
SELECT date FROM table_name_53 WHERE venue = "a" AND attendance = "4,365"
When Venue of A has Attendance of 4,365?
CREATE TABLE table_name_53 (date VARCHAR, venue VARCHAR, attendance VARCHAR)
SELECT home_team FROM table_name_76 WHERE away_team = "geelong"
Who was the home team when Geelong was the away team?
CREATE TABLE table_name_76 (home_team VARCHAR, away_team VARCHAR)
SELECT location FROM table_name_87 WHERE match > 1 AND tournament = "friendly" AND opponent_team = "super reds"
Where is the location of the friendly match larger than 1 where the Super Reds were the opponent?
CREATE TABLE table_name_87 (location VARCHAR, opponent_team VARCHAR, match VARCHAR, tournament VARCHAR)
SELECT MAX(points) FROM table_name_79 WHERE mark = "8.54" AND react > 0.23800000000000002
When the mark is 8.54, the reaction time was over 0.23800000000000002 seconds, what's the highest amount of points recorded?
CREATE TABLE table_name_79 (points INTEGER, mark VARCHAR, react VARCHAR)
SELECT method FROM table_name_24 WHERE event = "jungle fight 2"
Which is the method under the event Jungle Fight 2?
CREATE TABLE table_name_24 (method VARCHAR, event VARCHAR)
SELECT location FROM table_name_1 WHERE time = "1:59:12"
What location had 1:59:12 in time?
CREATE TABLE table_name_1 (location VARCHAR, time VARCHAR)
SELECT score FROM table_name_18 WHERE competition = "friendly"
What's the score of the friendly competition?
CREATE TABLE table_name_18 (score VARCHAR, competition VARCHAR)
SELECT directed_by FROM table_25277262_2 WHERE written_by = "Mark Fink"
If the writer is Mark Fink, who is the director?
CREATE TABLE table_25277262_2 (directed_by VARCHAR, written_by VARCHAR)
SELECT award FROM table_name_22 WHERE category = "best supporting actress"
Which award show had the category of best supporting actress?
CREATE TABLE table_name_22 (award VARCHAR, category VARCHAR)
SELECT 2007 FROM table_name_8 WHERE 2006 = "a" AND tournament = "canada"
Which 2007 has a 2006 of A, and a Tournament of canada?
CREATE TABLE table_name_8 (tournament VARCHAR)
SELECT conv FROM table_name_49 WHERE pens = "0" AND player = "severo koroduadua waqanibau"
How many conversions did Severo Koroduadua Waqanibau have when he has 0 pens?
CREATE TABLE table_name_49 (conv VARCHAR, pens VARCHAR, player VARCHAR)
SELECT game FROM table_name_28 WHERE result = "86-87 (2-4)"
Result of 86-87 (2-4) is what game?
CREATE TABLE table_name_28 (game VARCHAR, result VARCHAR)
SELECT athletes FROM table_name_82 WHERE country = "germany"
What athletes represented the country of germany?
CREATE TABLE table_name_82 (athletes VARCHAR, country VARCHAR)
SELECT MIN(losses) FROM table_name_14 WHERE wins = 5 AND against < 1852
What is the smallest losses when the wins are 5 and the against less than 1852?
CREATE TABLE table_name_14 (losses INTEGER, wins VARCHAR, against VARCHAR)
SELECT team FROM table_18788823_5 WHERE date_of_appointment = "23 December 2008"
Which team appointed a person on 23 December 2008?
CREATE TABLE table_18788823_5 (team VARCHAR, date_of_appointment VARCHAR)
SELECT MIN(league_cup) FROM table
What is the lowest league cup?
CREATE TABLE table (league_cup INTEGER)
SELECT type_of_game FROM table_name_97 WHERE city = "ljubljana"
What type of game was played in Ljubljana?
CREATE TABLE table_name_97 (type_of_game VARCHAR, city VARCHAR)
SELECT venue FROM table_name_46 WHERE date = "17/03/1990"
What Venue has a Date of 17/03/1990?
CREATE TABLE table_name_46 (venue VARCHAR, date VARCHAR)
SELECT t1.campusfee FROM csu_fees AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t2.campus = "San Francisco State University" AND t1.year = 2000
What is the campus fee of "San Francisco State University" in year 2000?
CREATE TABLE campuses (id VARCHAR, campus VARCHAR); CREATE TABLE csu_fees (campusfee VARCHAR, campus VARCHAR, year VARCHAR)
SELECT time_retired FROM table_name_66 WHERE grid = 8
When did grid 8 finish?
CREATE TABLE table_name_66 (time_retired VARCHAR, grid VARCHAR)
SELECT surface FROM table_name_82 WHERE result = "6–7 (6–7) , 7–6 (9–7) , 6–7 (4–7) , 7–5, 3–6"
What was the surface when the result was 6–7 (6–7) , 7–6 (9–7) , 6–7 (4–7) , 7–5, 3–6?
CREATE TABLE table_name_82 (surface VARCHAR, result VARCHAR)
SELECT _percentage_yes FROM table_256286_43 WHERE type = "Ref"
What is every value for %yes when type is ref?
CREATE TABLE table_256286_43 (_percentage_yes VARCHAR, type VARCHAR)
SELECT MIN(episode__number) FROM table_27927185_1 WHERE viewers__millions_ = "4.03"
What is the lowest episode number that had 4.03 million viewers?
CREATE TABLE table_27927185_1 (episode__number INTEGER, viewers__millions_ VARCHAR)