answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(duration) FROM table_19061741_3 WHERE name = "Joj Agpangan*"
When joj agpangan* is the name how many duration's are there?
CREATE TABLE table_19061741_3 (duration VARCHAR, name VARCHAR)
SELECT 1 AS st_party FROM table_name_20 WHERE year = "1865"
In 1865, what was the first party?
CREATE TABLE table_name_20 (year VARCHAR)
SELECT mascot FROM table_name_11 WHERE county = "32 hendricks"
What is the mascot for the school in 32 Hendricks County?
CREATE TABLE table_name_11 (mascot VARCHAR, county VARCHAR)
SELECT COUNT(santee_sisseton) FROM table_1499791_2 WHERE yankton_yanktonai = "híŋhaŋna"
Name the santee sisseton for híŋhaŋna
CREATE TABLE table_1499791_2 (santee_sisseton VARCHAR, yankton_yanktonai VARCHAR)
SELECT a_dyck FROM table_name_68 WHERE j_thiessen = "du"
Which of the A. Dyck has J. Thiessen of Du?
CREATE TABLE table_name_68 (a_dyck VARCHAR, j_thiessen VARCHAR)
SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2014 INTERSECT SELECT T2.name, T2.location FROM concert AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.stadium_id WHERE T1.Year = 2015
Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.
CREATE TABLE stadium (name VARCHAR, location VARCHAR, stadium_id VARCHAR); CREATE TABLE concert (stadium_id VARCHAR, Year VARCHAR)
SELECT pop_density__per_km²_ FROM table_16278602_1 WHERE english_name = "Capital Region of Denmark"
What is the population density of the Capital Region of Denmark?
CREATE TABLE table_16278602_1 (pop_density__per_km²_ VARCHAR, english_name VARCHAR)
SELECT loans_received, _2q FROM table_name_95 WHERE total_receipts = "$25,328,694"
Name the loans received for 2Q having total receipts of $25,328,694
CREATE TABLE table_name_95 (loans_received VARCHAR, _2q VARCHAR, total_receipts VARCHAR)
SELECT quarterfinal FROM table_name_28 WHERE rank > 9
Which Quarterfinal has a Rank larger than 9?
CREATE TABLE table_name_28 (quarterfinal VARCHAR, rank INTEGER)
SELECT league FROM table_name_74 WHERE finish = "2nd" AND losses = 3
What league had a finish of 2nd and 3 losses?
CREATE TABLE table_name_74 (league VARCHAR, finish VARCHAR, losses VARCHAR)
SELECT rank FROM table_name_98 WHERE total_gdp__€_bn__ = "€11.243"
Which rank has a Total GDP (€ bn) of €11.243??
CREATE TABLE table_name_98 (rank VARCHAR, total_gdp__€_bn__ VARCHAR)
SELECT southern_lakota FROM table_1499774_5 WHERE yankton_yanktonai = "híŋhaŋna"
Name the southern lakota for híŋhaŋna
CREATE TABLE table_1499774_5 (southern_lakota VARCHAR, yankton_yanktonai VARCHAR)
SELECT name FROM table_16799784_11 WHERE latitude = "10.0S"
Which name is at latitude 10.0s?
CREATE TABLE table_16799784_11 (name VARCHAR, latitude VARCHAR)
SELECT AVG(points) FROM table_name_84 WHERE games_played < 5
How many points on average are there for less than 5 games played?
CREATE TABLE table_name_84 (points INTEGER, games_played INTEGER)
SELECT opponent FROM table_name_52 WHERE october < 31 AND game > 5 AND record = "2-3-1"
What is the Opponent before October 31 with a Record of 2-3-1 after Game 5?
CREATE TABLE table_name_52 (opponent VARCHAR, record VARCHAR, october VARCHAR, game VARCHAR)
SELECT status FROM table_name_78 WHERE name = "paleopanax"
What status has paleopanax as the name?
CREATE TABLE table_name_78 (status VARCHAR, name VARCHAR)
SELECT black FROM table_name_87 WHERE white = "anand" AND moves = 20 AND opening = "e15 queen's indian defence"
Who was the opponent of Anand in the match with 20 moves that opened with E15 Queen's Indian Defence?
CREATE TABLE table_name_87 (black VARCHAR, opening VARCHAR, white VARCHAR, moves VARCHAR)
SELECT COUNT(written_by) FROM table_11695215_1 WHERE directed_by = "David Jackson"
How many episodes did David Jackson write and direct?
CREATE TABLE table_11695215_1 (written_by VARCHAR, directed_by VARCHAR)
SELECT AVG(floors) FROM table_name_45 WHERE building = "td building redevelopment (office)"
What are the number of floors for the building of td building redevelopment (office)?
CREATE TABLE table_name_45 (floors INTEGER, building VARCHAR)
SELECT score FROM table_name_35 WHERE points > 46 AND game < 35 AND december = 21
Which Score has Points larger than 46, and a Game smaller than 35, and a December of 21?
CREATE TABLE table_name_35 (score VARCHAR, december VARCHAR, points VARCHAR, game VARCHAR)
SELECT high_rebounds FROM table_27756314_10 WHERE date = "March 25"
Who had high rebounds when the date was march 25?
CREATE TABLE table_27756314_10 (high_rebounds VARCHAR, date VARCHAR)
SELECT identifier FROM table_name_98 WHERE power = "100000 watts"
What identifier has 100000 watts as the power?
CREATE TABLE table_name_98 (identifier VARCHAR, power VARCHAR)
SELECT MIN(year) FROM table_name_42 WHERE winning_score = –4(69 - 72 - 70 - 69 = 280)
Which Year has a Winning score of –4 (69-72-70-69=280)?
CREATE TABLE table_name_42 (year INTEGER, winning_score VARCHAR)
SELECT type FROM table_name_14 WHERE course = "orta san giulio to milan"
What type of race took place on the course Orta San Giulio to Milan?
CREATE TABLE table_name_14 (type VARCHAR, course VARCHAR)
SELECT winner_nominee_s_ FROM table_name_44 WHERE result = "nominated" AND film = "rugrats go wild"
Who is nominated for the film Rugrats Go Wild?
CREATE TABLE table_name_44 (winner_nominee_s_ VARCHAR, result VARCHAR, film VARCHAR)
SELECT july FROM table_name_58 WHERE december = "morgan fox"
Who is the July playmate with a December playmate Morgan Fox?
CREATE TABLE table_name_58 (july VARCHAR, december VARCHAR)
SELECT authority FROM table_name_64 WHERE roll < 254 AND decile = "8" AND area = "te akau"
Name the authority for te akau with roll less than 254 and decile of 8
CREATE TABLE table_name_64 (authority VARCHAR, area VARCHAR, roll VARCHAR, decile VARCHAR)
SELECT points_awarded__platinum_ FROM table_11254821_2 WHERE points_awarded__silver_ = 70
How many platinum points were awarded when 70 silver points were awarded?
CREATE TABLE table_11254821_2 (points_awarded__platinum_ VARCHAR, points_awarded__silver_ VARCHAR)
SELECT incumbent FROM table_1342149_42 WHERE party = "Republican"
For the Republican party what are the names of the incumbents?
CREATE TABLE table_1342149_42 (incumbent VARCHAR, party VARCHAR)
SELECT class_aAA FROM table_name_85 WHERE school_year = "2006-07"
Whcih was the Class AAA in school year 2006-07?
CREATE TABLE table_name_85 (class_aAA VARCHAR, school_year VARCHAR)
SELECT record FROM table_name_92 WHERE date = "january 19"
What is the record for the game on January 19?
CREATE TABLE table_name_92 (record VARCHAR, date VARCHAR)
SELECT MIN(stavanger) FROM table_19439864_2 WHERE oslo = 48
When oslo is 48, what is stavanger?
CREATE TABLE table_19439864_2 (stavanger INTEGER, oslo VARCHAR)
SELECT AVG(draw) FROM table_name_52 WHERE points > 12
Which average draw has points greater than 12?
CREATE TABLE table_name_52 (draw INTEGER, points INTEGER)
SELECT release_price___usd__ FROM table_name_98 WHERE part_number_s_ = "hh80557pg0491m"
What's the release price (USD) for part number hh80557pg0491m?
CREATE TABLE table_name_98 (release_price___usd__ VARCHAR, part_number_s_ VARCHAR)
SELECT AVG(week) FROM table_name_5 WHERE date = "july 25"
WHAT IS THE AVERAGE WEEK WITH A DATE OF JULY 25?
CREATE TABLE table_name_5 (week INTEGER, date VARCHAR)
SELECT AVG(points) FROM table_name_38 WHERE drawn > 0 AND lost > 1
Which Points have a Drawn larger than 0, and a Lost larger than 1?
CREATE TABLE table_name_38 (points INTEGER, drawn VARCHAR, lost VARCHAR)
SELECT MAX(founded) FROM table_2076516_1 WHERE school = "East Carolina University"
When east carolina university is the school what is the highest year founded?
CREATE TABLE table_2076516_1 (founded INTEGER, school VARCHAR)
SELECT name FROM table_name_27 WHERE decile = 8 AND roll = 705
Which school has a decile of 8 and a roll of 705?
CREATE TABLE table_name_27 (name VARCHAR, decile VARCHAR, roll VARCHAR)
SELECT opponent FROM table_name_53 WHERE location_attendance = "skydome"
Who was the opponent when they played at the Skydome?
CREATE TABLE table_name_53 (opponent VARCHAR, location_attendance VARCHAR)
SELECT AVG(conceded) FROM table_name_65 WHERE points < 19 AND position < 10 AND played > 18
What is the average number conceded for hte team that had less than 19 points, played more than 18 games and had a position less than 10?
CREATE TABLE table_name_65 (conceded INTEGER, played VARCHAR, points VARCHAR, position VARCHAR)
SELECT MIN(extra_points) FROM table_25517718_3
What is the smallest number of extra points?
CREATE TABLE table_25517718_3 (extra_points INTEGER)
SELECT score FROM table_17058178_8 WHERE game = 38
What was the final score in game 38?
CREATE TABLE table_17058178_8 (score VARCHAR, game VARCHAR)
SELECT for___percentage_ FROM table_20683381_3 WHERE ±_yes_side_2008___percentage_ = "+20.3"
When +20.3 is the ± yes side 2008 (%) what is the for percentage?
CREATE TABLE table_20683381_3 (for___percentage_ VARCHAR, ±_yes_side_2008___percentage_ VARCHAR)
SELECT location FROM table_name_91 WHERE best_goalkeeper = "164 (8.2)"
What is the location of the tournament where the best goalkeeper had 164 (8.2)?
CREATE TABLE table_name_91 (location VARCHAR, best_goalkeeper VARCHAR)
SELECT train_number FROM table_29301050_1 WHERE arrival_lonavla = "17:45"
which train number arrives in lonavla at 17:45
CREATE TABLE table_29301050_1 (train_number VARCHAR, arrival_lonavla VARCHAR)
SELECT cost___usd__ FROM table_name_48 WHERE latest_stable_date__version_ = "online"
Name the cost for latest stable date of online
CREATE TABLE table_name_48 (cost___usd__ VARCHAR, latest_stable_date__version_ VARCHAR)
SELECT AVG(spike) FROM table_name_67 WHERE name = "gustavo porporatto" AND block > 323
What is the average Spike, when Name is Gustavo Porporatto, and when Block is greater than 323?
CREATE TABLE table_name_67 (spike INTEGER, name VARCHAR, block VARCHAR)
SELECT surface FROM table_name_46 WHERE tournament = "curitiba"
Which surface was played during Curitiba tournament?
CREATE TABLE table_name_46 (surface VARCHAR, tournament VARCHAR)
SELECT passes_through___district_s FROM table_26036389_1 WHERE mdr_no = 47
What district does the road with a MDR number of 47 pass through?
CREATE TABLE table_26036389_1 (passes_through___district_s VARCHAR, mdr_no VARCHAR)
SELECT numbers FROM table_name_13 WHERE completed < 1904
What are the numbers for the item completed earlier than 1904?
CREATE TABLE table_name_13 (numbers VARCHAR, completed INTEGER)
SELECT time FROM table_name_3 WHERE opponent = "josh branham"
Which Time has an Opponent of josh branham?
CREATE TABLE table_name_3 (time VARCHAR, opponent VARCHAR)
SELECT COUNT(writer_s_) FROM table_25800134_3 WHERE season__number = 1
How many writers were for season #1?
CREATE TABLE table_25800134_3 (writer_s_ VARCHAR, season__number VARCHAR)
SELECT COUNT(score) FROM table_13710464_1 WHERE date = "June 25"
How many games played on june 25?
CREATE TABLE table_13710464_1 (score VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_15780049_8 WHERE date = "March 17"
Name the high rebounds for march 17
CREATE TABLE table_15780049_8 (high_rebounds VARCHAR, date VARCHAR)
SELECT home_team AS score FROM table_name_66 WHERE venue = "corio oval"
What is the home team's score at corio oval?
CREATE TABLE table_name_66 (home_team VARCHAR, venue VARCHAR)
SELECT AVG(goals_for) FROM table_name_68 WHERE goal_difference < -16 AND club = "real oviedo" AND wins < 9
What was the average number of "goals for", scored in the club Real Oviedo that had a "goal difference" lower than -16 and fewer than 9 wins?
CREATE TABLE table_name_68 (goals_for INTEGER, wins VARCHAR, goal_difference VARCHAR, club VARCHAR)
SELECT round FROM table_name_51 WHERE player = "matt brait"
What round was matt brait?
CREATE TABLE table_name_51 (round VARCHAR, player VARCHAR)
SELECT rating / SHARE(18 AS –49) FROM table_23793770_2 WHERE total_viewers__in_millions_ = "11.49"
What was the reating share when the total viewers was 11.49 million?
CREATE TABLE table_23793770_2 (rating VARCHAR, total_viewers__in_millions_ VARCHAR)
SELECT 3 AS _dart_average FROM table_18317531_1 WHERE player = "Michael van Gerwen"
Name the 3 dart average for michael van gerwen
CREATE TABLE table_18317531_1 (player VARCHAR)
SELECT MIN(height__ft_) FROM table_name_55 WHERE name = "messeturm" AND floors > 55
what is the lowest height (ft) for messeturm and more than 55 floors?
CREATE TABLE table_name_55 (height__ft_ INTEGER, name VARCHAR, floors VARCHAR)
SELECT semi_finalists FROM table_name_3 WHERE runner_up = "lisa raymond"
Who were semi-finalists in the event with a runner-up of Lisa Raymond?
CREATE TABLE table_name_3 (semi_finalists VARCHAR, runner_up VARCHAR)
SELECT score FROM table_name_92 WHERE date = "october 9"
Name the score for october 9
CREATE TABLE table_name_92 (score VARCHAR, date VARCHAR)
SELECT contestant FROM table_18618707_1 WHERE height = "1.80" AND geographical_regions = "El Cibao"
When el cibao is the geographical region and the height is 1.80 who is the contestant?
CREATE TABLE table_18618707_1 (contestant VARCHAR, height VARCHAR, geographical_regions VARCHAR)
SELECT MIN(gold) FROM table_name_71 WHERE bronze = 2 AND rank = 6 AND total > 2
What is the smallest number of gold of a country of rank 6, with 2 bronzes?
CREATE TABLE table_name_71 (gold INTEGER, total VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT name FROM table_name_55 WHERE rank > 2 AND lane = 1 AND nationality = "hong kong"
Which one has a rank bigger than 2, lane of 1, and is from Hong Kong?
CREATE TABLE table_name_55 (name VARCHAR, nationality VARCHAR, rank VARCHAR, lane VARCHAR)
SELECT election_date FROM table_name_94 WHERE member = "charles brown category:articles with hcards"
What is the election date for the electorate of member charles brown category:articles with hcards?
CREATE TABLE table_name_94 (election_date VARCHAR, member VARCHAR)
SELECT location FROM table_261941_1 WHERE joined = "1926, 1996 2"
What is the location of the University that joined in 1926, 1996 2?
CREATE TABLE table_261941_1 (location VARCHAR, joined 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 teams FROM table_name_6 WHERE league = "bundesliga" AND away = "2-1"
What team played in the Bundesliga league with an Away record of 2-1?
CREATE TABLE table_name_6 (teams VARCHAR, league VARCHAR, away VARCHAR)
SELECT adelaide FROM table_name_76 WHERE auckland = "no" AND melbourne = "no"
Which Adelaide has an Auckland of no and a Melbourne of no?
CREATE TABLE table_name_76 (adelaide VARCHAR, auckland VARCHAR, melbourne VARCHAR)
SELECT COUNT(wins) FROM table_name_61 WHERE ballarat_fl = "east point" AND against > 1000
How many total wins does Ballarat FL of East point have when the against is greater than 1000?
CREATE TABLE table_name_61 (wins VARCHAR, ballarat_fl VARCHAR, against VARCHAR)
SELECT record FROM table_name_99 WHERE result = "loss" AND attendance > 56 OFFSET 648
What is the record of the game that resulted in a loss with more than 56,648 people in attendance?
CREATE TABLE table_name_99 (record VARCHAR, result VARCHAR, attendance VARCHAR)
SELECT championship_titles FROM table_19312274_3 WHERE name = "LRS Formula / Laurent Rédon Motorsport"
How many championship titles for LRS Formula / Laurent Rédon Motorsport?
CREATE TABLE table_19312274_3 (championship_titles VARCHAR, name VARCHAR)
SELECT AVG(total) FROM table_name_47 WHERE nation = "austria" AND bronze < 1
What is the total for Austria when there is less than 1 bronze?
CREATE TABLE table_name_47 (total INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT away_team FROM table_name_1 WHERE venue = "victoria park"
Who was the away team at Victoria Park?
CREATE TABLE table_name_1 (away_team VARCHAR, venue VARCHAR)
SELECT meet FROM table_name_95 WHERE time = "3:50.65"
Which Meet has a Time of 3:50.65?
CREATE TABLE table_name_95 (meet VARCHAR, time 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 date FROM table_name_86 WHERE away_team = "richmond"
When was the game with richmond as Away team?
CREATE TABLE table_name_86 (date VARCHAR, away_team VARCHAR)
SELECT position FROM table_11803648_21 WHERE player = "Cody Ceci"
What position does Cody Ceci play?
CREATE TABLE table_11803648_21 (position VARCHAR, player VARCHAR)
SELECT consider FROM table_name_21 WHERE poll_source = "newsweek poll" AND oppose = "32%" AND candidate = "rudy giuliani"
What percentage of people said they would consider Rudy Giuliani as a candidate according to the Newsweek poll that showed 32% opposed him?
CREATE TABLE table_name_21 (consider VARCHAR, candidate VARCHAR, poll_source VARCHAR, oppose VARCHAR)
SELECT SUM(game) FROM table_name_45 WHERE time = "2:14"
How many games had a Time of 2:14?
CREATE TABLE table_name_45 (game INTEGER, time VARCHAR)
SELECT team FROM table_27755603_2 WHERE high_points = "Austin Daye (16)"
Who was the opponent in the game in which Austin Daye (16) did the most high points?
CREATE TABLE table_27755603_2 (team VARCHAR, high_points VARCHAR)
SELECT AVG(diff) FROM table_name_84 WHERE played > 6
What is the average diff when games played are more than 6?
CREATE TABLE table_name_84 (diff INTEGER, played INTEGER)
SELECT 2011 FROM table_name_64 WHERE 2008 = "0.3" AND member_state = "european union"
What is the 2011 value with a 2008 value of 0.3 and is a member state of the European Union?
CREATE TABLE table_name_64 (member_state VARCHAR)
SELECT away_team FROM table_name_96 WHERE home_team = "carlton"
Which Away team has Carlton for it's Home team?
CREATE TABLE table_name_96 (away_team VARCHAR, home_team VARCHAR)
SELECT high_points FROM table_11964263_13 WHERE location_attendance = "Toyota Center 18,269"
Name the high points for toyota center 18,269?
CREATE TABLE table_11964263_13 (high_points VARCHAR, location_attendance VARCHAR)
SELECT date FROM table_20884163_2 WHERE team = "Triple Eight Race Engineering" AND race_title = "Falken Tasmania Challenge"
What dates was the falken tasmania challenge race that had triple eight race engineering as the team?
CREATE TABLE table_20884163_2 (date VARCHAR, team VARCHAR, race_title VARCHAR)
SELECT COUNT(result) FROM table_26250145_1 WHERE original_artist = "Alicia Keys"
How many times is the original artist Alicia keys?
CREATE TABLE table_26250145_1 (result VARCHAR, original_artist VARCHAR)
SELECT tries_for FROM table_name_89 WHERE tries_against = "52"
What is the tries for when 52 was the tries against?
CREATE TABLE table_name_89 (tries_for VARCHAR, tries_against VARCHAR)
SELECT opponent FROM table_name_22 WHERE round = "qf replay"
Which Opponent has a Round of qf replay?
CREATE TABLE table_name_22 (opponent VARCHAR, round VARCHAR)
SELECT COUNT(record) FROM table_16864968_8 WHERE date = "March 27, 2009"
How many records were made on March 27, 2009?
CREATE TABLE table_16864968_8 (record VARCHAR, date VARCHAR)
SELECT college FROM table_name_98 WHERE year < 1962 AND position = "rb"
Which College has a Year smaller than 1962, and a Position of rb?
CREATE TABLE table_name_98 (college VARCHAR, year VARCHAR, position VARCHAR)
SELECT opponent FROM table_name_82 WHERE score = "74-66"
What is the Opponent of the game with a Score of 74-66?
CREATE TABLE table_name_82 (opponent VARCHAR, score VARCHAR)
SELECT type FROM table_name_20 WHERE name = "gonzález"
What type is González?
CREATE TABLE table_name_20 (type VARCHAR, name VARCHAR)
SELECT MIN(scored) FROM table_18703133_6 WHERE position = 6
What is scored with the position of 6?
CREATE TABLE table_18703133_6 (scored INTEGER, position VARCHAR)
SELECT time_retired FROM table_name_41 WHERE grid = 4
Tell me the time/retired for grid 4
CREATE TABLE table_name_41 (time_retired VARCHAR, grid VARCHAR)
SELECT memory FROM table_name_63 WHERE chipset = "intel 955"
Which model's chipset is intel 955?
CREATE TABLE table_name_63 (memory VARCHAR, chipset VARCHAR)
SELECT COUNT(col__m_) FROM table_name_86 WHERE elevation__m_ = 2 OFFSET 308
What is the Col entry for the peak with an elevation of 2,308 meters?
CREATE TABLE table_name_86 (col__m_ VARCHAR, elevation__m_ VARCHAR)
SELECT COUNT(original_air_date) FROM table_19396259_1 WHERE production_code = "3T7501"
Name the original air date for production code of 3t7501
CREATE TABLE table_19396259_1 (original_air_date VARCHAR, production_code 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)