answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT COUNT(*) FROM party_events
How many party events do we have?
CREATE TABLE party_events (Id VARCHAR)
SELECT MAX(poles) FROM table_name_74 WHERE fastest_laps = 0 AND races = 17 AND wins > 0 AND podiums < 2
which Poles has a Fastest Laps of 0, and a Races of 17, and a Wins larger than 0, and a Podiums smaller than 2?
CREATE TABLE table_name_74 (poles INTEGER, podiums VARCHAR, wins VARCHAR, fastest_laps VARCHAR, races VARCHAR)
SELECT mens_doubles FROM table_28138035_20 WHERE year_location = "1999 Kobe"
Who played mens doubles for the 1999 kobe tour?
CREATE TABLE table_28138035_20 (mens_doubles VARCHAR, year_location VARCHAR)
SELECT place FROM table_name_34 WHERE score = 76 - 69 - 71 - 70 = 286
what is the place when the score is 76-69-71-70=286?
CREATE TABLE table_name_34 (place VARCHAR, score VARCHAR)
SELECT actor FROM table_name_64 WHERE character = "rachel mckenna"
who is the actor that played rachel mckenna?
CREATE TABLE table_name_64 (actor VARCHAR, character VARCHAR)
SELECT MAX(losses) FROM table_18594107_2 WHERE team = "Atl. Colegiales"
How many losses for the team atl. colegiales?
CREATE TABLE table_18594107_2 (losses INTEGER, team VARCHAR)
SELECT birthplace FROM table_name_79 WHERE position = "d" AND height__cm_ = 190 AND jersey_number = 11
What is the birthplace of the player who is 190 CM tall, plays the D position, and wears number 11?
CREATE TABLE table_name_79 (birthplace VARCHAR, jersey_number VARCHAR, position VARCHAR, height__cm_ VARCHAR)
SELECT T1.fname, T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID = T2.advisor WHERE T2.fname = "Linda" AND T2.lname = "Smith"
What are the first name and last name of Linda Smith's advisor?
CREATE TABLE Student (advisor VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR)
SELECT COUNT(DISTINCT SOURCE) FROM injury_accident
How many different kinds of information sources are there for injury accidents?
CREATE TABLE injury_accident (SOURCE VARCHAR)
SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id ORDER BY COUNT(*) DESC LIMIT 1
Find the name of the swimmer who has the most records.
CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR)
SELECT COUNT(week_36) FROM table_23680576_3 WHERE week_32 = "13.2%"
List the full amount of week 36 results when week 32 is 13.2%.
CREATE TABLE table_23680576_3 (week_36 VARCHAR, week_32 VARCHAR)
SELECT college FROM table_name_54 WHERE pick = 136
Which college did the player picked number 136 go to?
CREATE TABLE table_name_54 (college VARCHAR, pick VARCHAR)
SELECT COUNT(attendance) FROM table_name_4 WHERE date = "october 8, 1989" AND week < 5
What is the total number of fans attending the game on October 8, 1989 before week 5?
CREATE TABLE table_name_4 (attendance VARCHAR, date VARCHAR, week VARCHAR)
SELECT Student.Fname, Student.Lname FROM Student JOIN Visits_Restaurant ON Student.StuID = Visits_Restaurant.StuID GROUP BY Student.StuID ORDER BY COUNT(*) DESC LIMIT 1
Which student visited restaurant most often? List student's first name and last name.
CREATE TABLE Visits_Restaurant (Id VARCHAR); CREATE TABLE Student (Id VARCHAR)
SELECT MIN(rank) FROM table_name_74 WHERE nationality = "united states" AND time < 24.63
What's the lowest rank of the United States with a time less than 24.63?
CREATE TABLE table_name_74 (rank INTEGER, nationality VARCHAR, time VARCHAR)
SELECT team FROM table_name_27 WHERE kit_manufacturer = "pony" AND captain = "julian dicks"
What is the team with a Pony kit manufacturer and Julian Dicks as the captain?
CREATE TABLE table_name_27 (team VARCHAR, kit_manufacturer VARCHAR, captain VARCHAR)
SELECT song FROM table_name_19 WHERE artist = "mor ve ötesi"
What Song is by the Artist 'mor ve ötesi'?
CREATE TABLE table_name_19 (song VARCHAR, artist VARCHAR)
SELECT rider FROM table_25220821_3 WHERE thurs_3_june = "20' 27.93 110.615mph"
If Thursday 3 June is 20' 27.93 110.615mph, what are the names of the riders?
CREATE TABLE table_25220821_3 (rider VARCHAR, thurs_3_june VARCHAR)
SELECT MIN(round) FROM table_name_9 WHERE pick > 7 AND name = "bob caldwell" AND overall > 162
What is the lowest round of bob caldwell, who has a pick greater than 7 and an overall larger than 162?
CREATE TABLE table_name_9 (round INTEGER, overall VARCHAR, pick VARCHAR, name VARCHAR)
SELECT institution FROM table_name_67 WHERE year > 2007 AND award = "2nd" AND chief_judge = "peter agre"
What institution won 2nd more recently than 2007 with Peter Agre as Chief Judge?
CREATE TABLE table_name_67 (institution VARCHAR, chief_judge VARCHAR, year VARCHAR, award VARCHAR)
SELECT COUNT(rank__week_) FROM table_28026156_1 WHERE written_by = "Seth Hoffman, Russel Friend & Garrett Lerner"
How many episodes were written by seth hoffman, russel friend & garrett lerner?
CREATE TABLE table_28026156_1 (rank__week_ VARCHAR, written_by VARCHAR)
SELECT runner_up FROM table_name_83 WHERE country = "england" AND venue = "royal porthcawl golf club"
What player from England was the runner-up at the match played at the Royal Porthcawl Golf Club?
CREATE TABLE table_name_83 (runner_up VARCHAR, country VARCHAR, venue VARCHAR)
SELECT COUNT(pick__number) FROM table_name_96 WHERE college = "arkansas state" AND overall < 242
What is Arkansas State's total pick number with an overal lower than 242?
CREATE TABLE table_name_96 (pick__number VARCHAR, college VARCHAR, overall VARCHAR)
SELECT MAX(sp) + fs FROM table_name_27 WHERE points > 164.56 AND rank > 1 AND name = "mitsuru matsumura"
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(series__number) FROM table_27823058_1
What's the highest series number ?
CREATE TABLE table_27823058_1 (series__number INTEGER)
SELECT MAX(released) FROM table_24600706_1 WHERE song = "Right Here, Right Now"
Name the most released for right here, right now
CREATE TABLE table_24600706_1 (released INTEGER, song VARCHAR)
SELECT inducted_as FROM table_19611329_1 WHERE player = "Joe Medwick Category:Articles with hCards"
Name the inducted as for joe medwick category:articles with hcards
CREATE TABLE table_19611329_1 (inducted_as VARCHAR, player VARCHAR)
SELECT rider FROM table_name_51 WHERE time_retired = "+19.909"
Which rider had a time/retired od +19.909?
CREATE TABLE table_name_51 (rider VARCHAR, time_retired VARCHAR)
SELECT COUNT(byes) FROM table_name_59 WHERE wins = 9
What is the total number of byes when the wins were 9?
CREATE TABLE table_name_59 (byes VARCHAR, wins VARCHAR)
SELECT COUNT(january__) AS °c_ FROM table_21980_1 WHERE july__°c_ = "22/13"
What is the total number of January (°C) temperatures when the July (°C) temperatures were 22/13?
CREATE TABLE table_21980_1 (january__ VARCHAR, july__°c_ VARCHAR)
SELECT MIN(points) FROM table_name_56 WHERE date = "march 2"
What were the lowest points on march 2?
CREATE TABLE table_name_56 (points INTEGER, date VARCHAR)
SELECT driver FROM table_name_48 WHERE race_2 = "14"
What is Driver, when Race 2 is 14?
CREATE TABLE table_name_48 (driver VARCHAR, race_2 VARCHAR)
SELECT AVG(rating) FROM table_name_51 WHERE night_rank = "11" AND timeslot_rank > 4
What is the rating for the episode with the night rank of 11 and timeslot rank is larger than 4?
CREATE TABLE table_name_51 (rating INTEGER, night_rank VARCHAR, timeslot_rank VARCHAR)
SELECT minutes FROM table_22993636_5 WHERE player = "Jordan Coleman"
For how long did Jordan Coleman play?
CREATE TABLE table_22993636_5 (minutes VARCHAR, player VARCHAR)
SELECT silver FROM table_name_53 WHERE year = 2000
Who won Silver in 2000?
CREATE TABLE table_name_53 (silver VARCHAR, year VARCHAR)
SELECT group FROM table_name_82 WHERE distance = "1200 m"
What group has 1200 m as the distance?
CREATE TABLE table_name_82 (group VARCHAR, distance VARCHAR)
SELECT authority FROM table_name_38 WHERE area = "ellerslie" AND decile = "7"
What is the authority status of the school in Ellerslie with a decile of 7?
CREATE TABLE table_name_38 (authority VARCHAR, area VARCHAR, decile VARCHAR)
SELECT date FROM table_name_56 WHERE crowd > 20 OFFSET 000
What date is the crowd larger than 20,000?
CREATE TABLE table_name_56 (date VARCHAR, crowd INTEGER)
SELECT MAX(position) FROM table_13713206_1 WHERE w_l_d = "6-2-8"
What's the position of the club with w-l-d of 6-2-8?
CREATE TABLE table_13713206_1 (position INTEGER, w_l_d VARCHAR)
SELECT date FROM table_name_54 WHERE week = 1
What Date is Week 1?
CREATE TABLE table_name_54 (date VARCHAR, week VARCHAR)
SELECT COUNT(record) FROM table_17121262_10 WHERE team = "Washington"
What was the record against Washington?
CREATE TABLE table_17121262_10 (record VARCHAR, team VARCHAR)
SELECT record FROM table_name_9 WHERE attendance = "22,713"
What was the record when the attendance was 22,713?
CREATE TABLE table_name_9 (record VARCHAR, attendance VARCHAR)
SELECT MAX(attendance) FROM table_name_40 WHERE venue = "h" AND result = "d" AND opponents = "liverpool"
What is the largest number in attendance at H venue opposing Liverpool with a result of D?
CREATE TABLE table_name_40 (attendance INTEGER, opponents VARCHAR, venue VARCHAR, result VARCHAR)
SELECT exit FROM table_name_57 WHERE kilometer_no__rizal_park_basis_ = "164"
What is the exit at kilometer (Rizal Park-basis) 164?
CREATE TABLE table_name_57 (exit VARCHAR, kilometer_no__rizal_park_basis_ VARCHAR)
SELECT final_rank FROM table_13114949_3 WHERE event = "Uneven Bars" AND competition = "U.S. Championships"
what is the final-rank for the uneven bars and the competition is u.s. championships?
CREATE TABLE table_13114949_3 (final_rank VARCHAR, event VARCHAR, competition VARCHAR)
SELECT winner_or_2nd FROM table_name_41 WHERE weight > 7.3 AND result = "–"
What is the the name of the winner or 2nd with a weight more than 7.3, and the result was –?
CREATE TABLE table_name_41 (winner_or_2nd VARCHAR, weight VARCHAR, result VARCHAR)
SELECT date FROM table_name_55 WHERE winning_score = −9(65 - 71 - 68 - 67 = 271)
What is the Date of the Tournament with a Winning score of −9 (65-71-68-67=271)?
CREATE TABLE table_name_55 (date VARCHAR, winning_score VARCHAR)
SELECT green_communist FROM table_name_87 WHERE left_bloc = "3.0%"
What is the result for the Green-Communist party when the Left Bloc has 3.0%?
CREATE TABLE table_name_87 (green_communist VARCHAR, left_bloc VARCHAR)
SELECT MAX(attendance) FROM table_name_93 WHERE round = "group e"
What is the highest attendance among Group E games?
CREATE TABLE table_name_93 (attendance INTEGER, round VARCHAR)
SELECT nickname FROM table_262508_1 WHERE institution = "Briar Cliff University"
What is Briar Cliff University's nickname?
CREATE TABLE table_262508_1 (nickname VARCHAR, institution VARCHAR)
SELECT MAX(silver) FROM table_name_37 WHERE bronze < 1 AND gold = 1 AND rank = "7"
What is the highest number of Silvers for rank 7 teams with 1 gold and under 1 bronze?
CREATE TABLE table_name_37 (silver INTEGER, rank VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT hdtv FROM table_name_26 WHERE content = "general television" AND television_service = "tv 8 mont blanc"
What is the HDTV that has television service of tv 8 mont blanc and content is general television?
CREATE TABLE table_name_26 (hdtv VARCHAR, content VARCHAR, television_service VARCHAR)
SELECT year FROM table_name_5 WHERE note = "supporting" AND title = "rokumeikan"
what is the year when the note is supporting and the title is rokumeikan?
CREATE TABLE table_name_5 (year VARCHAR, note VARCHAR, title VARCHAR)
SELECT COUNT(quantity) FROM table_name_68 WHERE manufacturer = "fokker" AND retired > 1999
How many in the quantity section had Fokker as a manufacturer and retired later than 1999?
CREATE TABLE table_name_68 (quantity VARCHAR, manufacturer VARCHAR, retired VARCHAR)
SELECT COUNT(place) FROM table_name_69 WHERE points = 18
how many times was the points 18?
CREATE TABLE table_name_69 (place VARCHAR, points VARCHAR)
SELECT mid_atlantic_south__washington, _dc_ FROM table_16105186_2 WHERE alaska___juneau__ = "90 g/mi (56 g/km)" AND california__san_francisco_ = "110 g/mi (68 g/km)"
What was the emission rating in Mid-Atlantic South for the vehicle that was rated 90 g/mi (56 g/km) in Alaska and 110 g/mi (68 g/km) in California?
CREATE TABLE table_16105186_2 (mid_atlantic_south__washington VARCHAR, _dc_ VARCHAR, alaska___juneau__ VARCHAR, california__san_francisco_ VARCHAR)
SELECT AVG(heat) FROM table_name_97 WHERE rank = 34 AND time < 49.49
What is the Heat of the 34 Rank swimmer with a Time of 49.49 or less?
CREATE TABLE table_name_97 (heat INTEGER, rank VARCHAR, time VARCHAR)
SELECT stadium FROM table_16046689_29 WHERE payout___us$__ = "$3 Million"
Which stadium has a payout of $3 million?
CREATE TABLE table_16046689_29 (stadium VARCHAR, payout___us$__ VARCHAR)
SELECT nationality FROM table_name_30 WHERE previous_team = "new york knicks" AND years_of_nba_experience_[a_] > 3
Which Nationality has a Previous team of new york knicks, and more than 3 Years of NBA experience?
CREATE TABLE table_name_30 (nationality VARCHAR, previous_team VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR)
SELECT driver FROM table_2266762_1 WHERE race_time = "3:04:09"
Who was the winning driver in the race that was 3:04:09 long?
CREATE TABLE table_2266762_1 (driver VARCHAR, race_time VARCHAR)
SELECT MAX(rank) FROM table_name_35 WHERE time = "1:47.65" AND lane > 3
What is the Rank of the Athlete with a Time of 1:47.65 and in Lane 3 or larger?
CREATE TABLE table_name_35 (rank INTEGER, time VARCHAR, lane VARCHAR)
SELECT event FROM table_name_56 WHERE venue = "erfurt, germany"
What event took place in Erfurt, Germany?
CREATE TABLE table_name_56 (event VARCHAR, venue VARCHAR)
SELECT attendance FROM table_name_6 WHERE opponent = "houston oilers"
What is the attendance of the game against the houston oilers?
CREATE TABLE table_name_6 (attendance VARCHAR, opponent VARCHAR)
SELECT 2008 FROM table_name_84 WHERE tournament = "us open"
What is the value for 2008 for the US Open Tournament?
CREATE TABLE table_name_84 (tournament VARCHAR)
SELECT high_assists FROM table_name_85 WHERE game = 22
Who had the high assists in Game 22?
CREATE TABLE table_name_85 (high_assists VARCHAR, game VARCHAR)
SELECT COUNT(viewers) FROM table_24399615_3 WHERE airdate = "26 November 2009"
How many entries are shown for viewers when the airdate was 26 november 2009?
CREATE TABLE table_24399615_3 (viewers VARCHAR, airdate VARCHAR)
SELECT country FROM table_name_32 WHERE score = 71 - 66 - 66 - 71 = 274
What country scored 71-66-66-71=274?
CREATE TABLE table_name_32 (country VARCHAR, score VARCHAR)
SELECT assists FROM table_19722233_5 WHERE points = 251
how many assists did the player who scored 251 points make
CREATE TABLE table_19722233_5 (assists VARCHAR, points VARCHAR)
SELECT MAX(Points) FROM climber WHERE Country = "United Kingdom"
What is the maximum point for climbers whose country is United Kingdom?
CREATE TABLE climber (Points INTEGER, Country VARCHAR)
SELECT position FROM table_name_28 WHERE team = "denver broncos"
What is the position of the player from the denver broncos?
CREATE TABLE table_name_28 (position VARCHAR, team VARCHAR)
SELECT COUNT(number_of_jews__wjc_) FROM table_1131183_2 WHERE rank__arda_ = 1
What is the number of jews where the rank is 1?
CREATE TABLE table_1131183_2 (number_of_jews__wjc_ VARCHAR, rank__arda_ VARCHAR)
SELECT COUNT(hancock__percentage) FROM table_19681738_1 WHERE starky__percentage = "20.96%"
how many times was hancock % considered when starky % was 20.96%
CREATE TABLE table_19681738_1 (hancock__percentage VARCHAR, starky__percentage VARCHAR)
SELECT prize_money___$__ FROM table_name_94 WHERE rank < 7 AND events > 6 AND country = "fiji"
What amount of prize money was there when the rank was less than 7, there were more than 6 events, and the country was Fiji?
CREATE TABLE table_name_94 (prize_money___$__ VARCHAR, country VARCHAR, rank VARCHAR, events VARCHAR)
SELECT artist FROM table_name_33 WHERE draw > 4
Who is the artist that drew higher than 4?
CREATE TABLE table_name_33 (artist VARCHAR, draw INTEGER)
SELECT fourth_district FROM table_15442974_1 WHERE first_district = "Beverly Bodem"
Name the fourth district for beverly bodem
CREATE TABLE table_15442974_1 (fourth_district VARCHAR, first_district VARCHAR)
SELECT Name FROM country ORDER BY Population LIMIT 3
What are the names of the nations with the 3 lowest populations?
CREATE TABLE country (Name VARCHAR, Population VARCHAR)
SELECT other_student_details FROM Students ORDER BY other_student_details DESC
List all the student details in reversed lexicographical order.
CREATE TABLE Students (other_student_details VARCHAR)
SELECT mac_os_x FROM table_name_98 WHERE haiku = "no" AND client = "dc++"
Which Mac OSX had no haiku and a client that was dc++?
CREATE TABLE table_name_98 (mac_os_x VARCHAR, haiku VARCHAR, client VARCHAR)
SELECT city FROM table_name_82 WHERE date = "october 8"
On October 8, what city was the game played?
CREATE TABLE table_name_82 (city VARCHAR, date VARCHAR)
SELECT type FROM table_name_90 WHERE fleet_numbers = "2–8, 91–92, 97–100"
Which Type has a Fleet numbers of 2–8, 91–92, 97–100?
CREATE TABLE table_name_90 (type VARCHAR, fleet_numbers VARCHAR)
SELECT AVG(draw) FROM table_name_33 WHERE total_games = 186
What is the average draw for 186 games?
CREATE TABLE table_name_33 (draw INTEGER, total_games VARCHAR)
SELECT COUNT(name) FROM table_16654785_2 WHERE length__m_ = 455
How many had a length of 455?
CREATE TABLE table_16654785_2 (name VARCHAR, length__m_ VARCHAR)
SELECT place FROM table_name_94 WHERE player = "mi hyun kim"
What is Place, when Player is "Mi Hyun Kim"?
CREATE TABLE table_name_94 (place VARCHAR, player VARCHAR)
SELECT score FROM table_name_39 WHERE surface = "hardcourt" AND date = "september 30, 1984"
Which score has a Surface of hardcourt, and a Date of september 30, 1984?
CREATE TABLE table_name_39 (score VARCHAR, surface VARCHAR, date VARCHAR)
SELECT notes FROM table_name_59 WHERE khmer = "២៨"
what notes have the khmer ២៨?
CREATE TABLE table_name_59 (notes VARCHAR, khmer VARCHAR)
SELECT nationality FROM table_name_33 WHERE round = 4 AND college = "oklahoma"
What is the nationality of the round 4 draft selection who played college ball at oklahoma?
CREATE TABLE table_name_33 (nationality VARCHAR, round VARCHAR, college VARCHAR)
SELECT security_forces FROM table_name_82 WHERE year = "2009"
Name the security forces for 2009
CREATE TABLE table_name_82 (security_forces VARCHAR, year VARCHAR)
SELECT quantity FROM table_name_55 WHERE class = "b v"
What is the quantity of class B V?
CREATE TABLE table_name_55 (quantity VARCHAR, class VARCHAR)
SELECT to_par FROM table_247955_2 WHERE winning_score = 69 - 66 - 69 - 64 = 268
What were the shots below par when the winning score was 69-66-69-64=268?
CREATE TABLE table_247955_2 (to_par VARCHAR, winning_score VARCHAR)
SELECT opponent FROM table_name_23 WHERE res = "win" AND round > 1 AND record = "42-27-10"
Who is the opponent when there is a win in round greater than 1 and the record is 42-27-10?
CREATE TABLE table_name_23 (opponent VARCHAR, record VARCHAR, res VARCHAR, round VARCHAR)
SELECT episode__number FROM table_name_95 WHERE original_airdate = "january 21, 2001"
What is the episode # of the episode that originally aired on January 21, 2001?
CREATE TABLE table_name_95 (episode__number VARCHAR, original_airdate VARCHAR)
SELECT type FROM table_name_97 WHERE frequency = 1480
What is Type, when Frequency is "1480"?
CREATE TABLE table_name_97 (type VARCHAR, frequency VARCHAR)
SELECT malayalam_മലയാളം FROM table_1408397_3 WHERE _number = 10
What is the Malayalam word that is listed as #10 in the table?
CREATE TABLE table_1408397_3 (malayalam_മലയാളം VARCHAR, _number VARCHAR)
SELECT home_leg FROM table_name_88 WHERE opponents = "rotor volgograd"
What is the home leg who are opponents of rotor volgograd
CREATE TABLE table_name_88 (home_leg VARCHAR, opponents VARCHAR)
SELECT position FROM table_name_92 WHERE pick < 152 AND round < 3
Which Position has a Pick smaller than 152, and a Round smaller than 3?
CREATE TABLE table_name_92 (position VARCHAR, pick VARCHAR, round VARCHAR)
SELECT mlb_draft FROM table_name_80 WHERE player = "shaun boyd"
What MLB draft has Shaun Boyd?
CREATE TABLE table_name_80 (mlb_draft VARCHAR, player VARCHAR)
SELECT written_by FROM table_16432167_1 WHERE production_code = "942A"
Who wrote the episode with the production code of 942A?
CREATE TABLE table_16432167_1 (written_by VARCHAR, production_code VARCHAR)
SELECT minister FROM table_name_89 WHERE party = "an"
What is Minister, when Party is "AN"?
CREATE TABLE table_name_89 (minister VARCHAR, party VARCHAR)
SELECT MAX(grid) FROM table_name_8 WHERE laps > 72
What is the highest Grid with over 72 laps?
CREATE TABLE table_name_8 (grid INTEGER, laps INTEGER)
SELECT college FROM table_12165999_1 WHERE player = "Dennis Byrd"
Which college did Dennis Byrd come from?
CREATE TABLE table_12165999_1 (college VARCHAR, player VARCHAR)