question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the position of the player bill simmons?
CREATE TABLE table_26996293_7 (position VARCHAR, player VARCHAR)
SELECT position FROM table_26996293_7 WHERE player = "Bill Simmons"
Which city has the highest temperature in February?
CREATE TABLE city (city VARCHAR, city_id VARCHAR); CREATE TABLE temperature (city_id VARCHAR, Feb VARCHAR)
SELECT T1.city FROM city AS T1 JOIN temperature AS T2 ON T1.city_id = T2.city_id ORDER BY T2.Feb DESC LIMIT 1
which countries did participated in both Friendly and Tournament type competitions.
CREATE TABLE competition (country VARCHAR, competition_type VARCHAR)
SELECT country FROM competition WHERE competition_type = 'Friendly' INTERSECT SELECT country FROM competition WHERE competition_type = 'Tournament'
What assists has the Team SMU and the total points of 85?
CREATE TABLE table_name_14 (assists VARCHAR, team VARCHAR, total_points VARCHAR)
SELECT assists FROM table_name_14 WHERE team = "smu" AND total_points = "85"
Which Total has a Labour Panel smaller than 5, an Administrative Panel smaller than 1, and a National University of Ireland smaller than 2?
CREATE TABLE table_name_55 (total VARCHAR, national_university_of_ireland VARCHAR, labour_panel VARCHAR, administrative_panel VARCHAR)
SELECT COUNT(total) FROM table_name_55 WHERE labour_panel < 5 AND administrative_panel < 1 AND national_university_of_ireland < 2
Which series episode has a Netflix episode of S03E16?
CREATE TABLE table_name_55 (series_ep VARCHAR, netflix VARCHAR)
SELECT series_ep FROM table_name_55 WHERE netflix = "s03e16"
What is the area in km2 for the district whose original name was Kecamatan Bogor Timur?
CREATE TABLE table_1104312_5 (area_in_km² VARCHAR, original_name VARCHAR)
SELECT area_in_km² FROM table_1104312_5 WHERE original_name = "Kecamatan Bogor Timur"
Which Developer(s) has a Year of 2010?
CREATE TABLE table_name_90 (developer_s_ VARCHAR, year VARCHAR)
SELECT developer_s_ FROM table_name_90 WHERE year = 2010
What is the score of Tommy Bolt
CREATE TABLE table_name_23 (score INTEGER, player VARCHAR)
SELECT MIN(score) FROM table_name_23 WHERE player = "tommy bolt"
What is the general classification at stage 18 that has a points classification of Tony Rominger?
CREATE TABLE table_name_59 (general_classification VARCHAR, points_classification VARCHAR, stage VARCHAR)
SELECT general_classification FROM table_name_59 WHERE points_classification = "tony rominger" AND stage = "18"
What was the score of the game that had a record of 26–13–4–2 and a decision of Joseph?
CREATE TABLE table_name_24 (score VARCHAR, decision VARCHAR, record VARCHAR)
SELECT score FROM table_name_24 WHERE decision = "joseph" AND record = "26–13–4–2"
What notes have the 8th position?
CREATE TABLE table_name_39 (notes VARCHAR, position VARCHAR)
SELECT notes FROM table_name_39 WHERE position = "8th"
What car/motorcycle goes 91.813mph?
CREATE TABLE table_name_14 (car___motorcycle VARCHAR, speed VARCHAR)
SELECT car___motorcycle FROM table_name_14 WHERE speed = "91.813mph"
Whose reign ended in Egypt?
CREATE TABLE table_name_72 (reign_ended VARCHAR, country VARCHAR)
SELECT reign_ended FROM table_name_72 WHERE country = "egypt"
Who is the monarch that left office circa 1886?
CREATE TABLE table_name_7 (monarch VARCHAR, left_office VARCHAR)
SELECT monarch FROM table_name_7 WHERE left_office = "circa 1886"
What team had 4 podiums?
CREATE TABLE table_21795650_1 (team VARCHAR, podiums VARCHAR)
SELECT team FROM table_21795650_1 WHERE podiums = 4
What was the partner count when the opponents in the final was forget leconte?
CREATE TABLE table_22597626_17 (partner VARCHAR, opponents_in_the_final VARCHAR)
SELECT COUNT(partner) FROM table_22597626_17 WHERE opponents_in_the_final = "Forget Leconte"
What's the average draft pick number from Carson-Newman College before Round 7?
CREATE TABLE table_name_21 (pick__number INTEGER, college VARCHAR, round VARCHAR)
SELECT AVG(pick__number) FROM table_name_21 WHERE college = "carson-newman" AND round < 7
display the country ID and number of cities for each country.
CREATE TABLE locations (country_id VARCHAR)
SELECT country_id, COUNT(*) FROM locations GROUP BY country_id
What was the final score of the game against shingo kunieda maikel scheffers when robin ammerlaan was Ronald Vink's partner?
CREATE TABLE table_name_86 (score_in_final VARCHAR, partnering VARCHAR, opponents_in_final VARCHAR)
SELECT score_in_final FROM table_name_86 WHERE partnering = "robin ammerlaan" AND opponents_in_final = "shingo kunieda maikel scheffers"
how many candidates with party being democratic and dbeingtrict being new york5
CREATE TABLE table_1341549_33 (candidates VARCHAR, party VARCHAR, district VARCHAR)
SELECT COUNT(candidates) FROM table_1341549_33 WHERE party = "Democratic" AND district = "New York5"
with a record of 73-82 what was the date?
CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_58 WHERE record = "73-82"
Which Lane has a Rank larger than 3, and a Time larger than 45.63, and a Reaction smaller than 0.28800000000000003, and an Athlete of geiner mosquera?
CREATE TABLE table_name_60 (lane INTEGER, athlete VARCHAR, react VARCHAR, rank VARCHAR, time VARCHAR)
SELECT MAX(lane) FROM table_name_60 WHERE rank > 3 AND time > 45.63 AND react < 0.28800000000000003 AND athlete = "geiner mosquera"
Which date did the oakland raiders play as the opponent when the Bills first downs were under 28?
CREATE TABLE table_name_76 (date VARCHAR, bills_first_downs VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_76 WHERE bills_first_downs < 28 AND opponent = "oakland raiders"
What is the smallest drawn with a position bigger than 10 and a played less than 20?
CREATE TABLE table_name_51 (drawn INTEGER, position VARCHAR, played VARCHAR)
SELECT MIN(drawn) FROM table_name_51 WHERE position > 10 AND played < 20
Jiang Tengyi is on which team?
CREATE TABLE table_name_87 (team VARCHAR, name VARCHAR)
SELECT team FROM table_name_87 WHERE name = "jiang tengyi"
Which Player is the shooting guard?
CREATE TABLE table_name_69 (player VARCHAR, position VARCHAR)
SELECT player FROM table_name_69 WHERE position = "shooting guard"
Who was the opponent at the game attended by 45,000?
CREATE TABLE table_name_73 (opponent_number VARCHAR, attendance VARCHAR)
SELECT opponent_number FROM table_name_73 WHERE attendance = "45,000"
Who is the director when the title is 2003?
CREATE TABLE table_name_27 (director VARCHAR, title VARCHAR)
SELECT director FROM table_name_27 WHERE title = "2003"
Name the total number of record for 61
CREATE TABLE table_27722408_10 (record VARCHAR, game VARCHAR)
SELECT COUNT(record) FROM table_27722408_10 WHERE game = 61
Name the number of reporters for heywood hale broun
CREATE TABLE table_22514845_5 (reporters VARCHAR, s_analyst VARCHAR)
SELECT COUNT(reporters) FROM table_22514845_5 WHERE s_analyst = "Heywood Hale Broun"
What is the least total that has fewer golds than 2, a higher rank than 4 and fewer bronzes than 1?
CREATE TABLE table_name_81 (total INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT MIN(total) FROM table_name_81 WHERE gold < 2 AND rank = 4 AND bronze < 1
What was the populati in 2000 for Panlicsian?
CREATE TABLE table_2144436_1 (population__2000_ INTEGER, barangay VARCHAR)
SELECT MIN(population__2000_) FROM table_2144436_1 WHERE barangay = "Panlicsian"
What league has an average attendance of 244?
CREATE TABLE table_name_72 (league VARCHAR, avg_attendance_† VARCHAR)
SELECT league FROM table_name_72 WHERE avg_attendance_† = "244"
What is the Intercontinental Cup 1999 result for the team with a Copa Conmebol 1999 result of runner-up?
CREATE TABLE table_name_63 (intercontinental_cup_1999 VARCHAR, copa_conmebol_1999 VARCHAR)
SELECT intercontinental_cup_1999 FROM table_name_63 WHERE copa_conmebol_1999 = "runner-up"
How much is the other black population when the black African population is 37811?
CREATE TABLE table_19149550_7 (other_black_population INTEGER, black_african_population VARCHAR)
SELECT MIN(other_black_population) FROM table_19149550_7 WHERE black_african_population = 37811
What ERP W has a 95.1 MHZ frequency?
CREATE TABLE table_name_62 (erp_w VARCHAR, frequency_mhz VARCHAR)
SELECT erp_w FROM table_name_62 WHERE frequency_mhz = 95.1
What is the highest Game, when Streak is "Win 1", and when Date is "February 18"?
CREATE TABLE table_name_11 (game INTEGER, streak VARCHAR, date VARCHAR)
SELECT MAX(game) FROM table_name_11 WHERE streak = "win 1" AND date = "february 18"
What is the average round for Club team of garmisch-partenkirchen riessersee sc (germany 2)?
CREATE TABLE table_name_64 (round INTEGER, club_team VARCHAR)
SELECT AVG(round) FROM table_name_64 WHERE club_team = "garmisch-partenkirchen riessersee sc (germany 2)"
Who was the visiting team at the game where Edmonton was the home team and the decision was Osgood?
CREATE TABLE table_name_98 (visitor VARCHAR, decision VARCHAR, home VARCHAR)
SELECT visitor FROM table_name_98 WHERE decision = "osgood" AND home = "edmonton"
When thomas löfkvist is the young rider classification and alessandro petacchi is the points classification who are the general classifications?
CREATE TABLE table_18733814_2 (general_classification VARCHAR, points_classification VARCHAR, young_rider_classification VARCHAR)
SELECT general_classification FROM table_18733814_2 WHERE points_classification = "Alessandro Petacchi" AND young_rider_classification = "Thomas Löfkvist"
What's the nationality of Livio Berruti?
CREATE TABLE table_name_53 (nationality VARCHAR, athlete VARCHAR)
SELECT nationality FROM table_name_53 WHERE athlete = "livio berruti"
What is Date, when Surface is "Carpet"?
CREATE TABLE table_name_24 (date VARCHAR, surface VARCHAR)
SELECT date FROM table_name_24 WHERE surface = "carpet"
Which removal treaty covered the chickasaw nation?
CREATE TABLE table_name_32 (removal_treaty__year_signed_ VARCHAR, nation VARCHAR)
SELECT removal_treaty__year_signed_ FROM table_name_32 WHERE nation = "chickasaw"
Who is the home team of South Melbourne?
CREATE TABLE table_name_12 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_12 WHERE home_team = "south melbourne"
what is the time when the laps is less than 21 and the grid is more than 17?
CREATE TABLE table_name_88 (time VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT time FROM table_name_88 WHERE laps < 21 AND grid > 17
What is the overall sum of round 3?
CREATE TABLE table_name_55 (overall INTEGER, round VARCHAR)
SELECT SUM(overall) FROM table_name_55 WHERE round = 3
What was the tie number when the away team was Wrexham?
CREATE TABLE table_name_91 (tie_no VARCHAR, away_team VARCHAR)
SELECT tie_no FROM table_name_91 WHERE away_team = "wrexham"
What won the Best Female Artist if People's Male MC won the Best Female Lyricist?
CREATE TABLE table_22546460_4 (best_female_artist VARCHAR, best_female_lyricist VARCHAR)
SELECT best_female_artist FROM table_22546460_4 WHERE best_female_lyricist = "People's Male MC"
When the team is yale what is max amount of times they placed fourth?
CREATE TABLE table_1571238_2 (fourth_place INTEGER, team VARCHAR)
SELECT MAX(fourth_place) FROM table_1571238_2 WHERE team = "Yale"
What transfer fee has both winter as the transfer window, and Madureira as the moving to?
CREATE TABLE table_name_68 (transfer_fee VARCHAR, transfer_window VARCHAR, moving_to VARCHAR)
SELECT transfer_fee FROM table_name_68 WHERE transfer_window = "winter" AND moving_to = "madureira"
How many undergraduates are there in "San Jose State University" in year 2004?
CREATE TABLE discipline_enrollments (undergraduate INTEGER, campus VARCHAR, year VARCHAR); CREATE TABLE campuses (id VARCHAR, campus VARCHAR)
SELECT SUM(t1.undergraduate) FROM discipline_enrollments AS t1 JOIN campuses AS t2 ON t1.campus = t2.id WHERE t1.year = 2004 AND t2.campus = "San Jose State University"
How many silvers for finland?
CREATE TABLE table_name_48 (silver VARCHAR, nation VARCHAR)
SELECT silver FROM table_name_48 WHERE nation = "finland"
What is the average pages per minute color?
CREATE TABLE product (pages_per_minute_color INTEGER)
SELECT AVG(pages_per_minute_color) FROM product
Name the total number of replaced by for 13 june 2009
CREATE TABLE table_22640051_3 (replaced_by VARCHAR, date_of_appointment VARCHAR)
SELECT COUNT(replaced_by) FROM table_22640051_3 WHERE date_of_appointment = "13 June 2009"
What Ken Watanabe film as nominated?
CREATE TABLE table_name_96 (film VARCHAR, status VARCHAR, name VARCHAR)
SELECT film FROM table_name_96 WHERE status = "nominated" AND name = "ken watanabe"
Which tournament had the result with 2009 was F and 2010 was F?
CREATE TABLE table_name_61 (tournament VARCHAR)
SELECT tournament FROM table_name_61 WHERE 2009 = "f" AND 2010 = "f"
Which opponent has a 26-12 record?
CREATE TABLE table_name_44 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_44 WHERE record = "26-12"
Can you tell me the lowest Total natches that has the Points won of 3, and the Year of 1994?
CREATE TABLE table_name_11 (total_matches INTEGER, points_won VARCHAR, year VARCHAR)
SELECT MIN(total_matches) FROM table_name_11 WHERE points_won = 3 AND year = "1994"
Which Record has a High rebounds of luc mbah a moute (11)?
CREATE TABLE table_name_42 (record VARCHAR, high_rebounds VARCHAR)
SELECT record FROM table_name_42 WHERE high_rebounds = "luc mbah a moute (11)"
who is first team when dimitris diamantidis play.
CREATE TABLE table_26130295_3 (first_team VARCHAR, player VARCHAR)
SELECT COUNT(first_team) FROM table_26130295_3 WHERE player = "Dimitris Diamantidis"
What is the lowest number of points for Drivers that have raced in more than 16 Races?
CREATE TABLE table_name_35 (points INTEGER, races INTEGER)
SELECT MIN(points) FROM table_name_35 WHERE races > 16
What was the share for the episode with the air date december 10, 2008?
CREATE TABLE table_11238597_4 (share VARCHAR, air_date VARCHAR)
SELECT share FROM table_11238597_4 WHERE air_date = "December 10, 2008"
What is the highest November that has a game less than 12, and @ detroit red wings as the opponent?
CREATE TABLE table_name_57 (november INTEGER, game VARCHAR, opponent VARCHAR)
SELECT MAX(november) FROM table_name_57 WHERE game < 12 AND opponent = "@ detroit red wings"
What was the fastest lap in a race where Phil Hill had the Pole position and was won by Wolfgang von Trips?
CREATE TABLE table_name_36 (fastest_lap VARCHAR, pole_position VARCHAR, winning_driver VARCHAR)
SELECT fastest_lap FROM table_name_36 WHERE pole_position = "phil hill" AND winning_driver = "wolfgang von trips"
what is the record when the event is shido usa mma and the opponent is raphael assunção?
CREATE TABLE table_name_24 (record VARCHAR, event VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_24 WHERE event = "shido usa mma" AND opponent = "raphael assunção"
What are the record(s) for the team with a winning percentage of .464?
CREATE TABLE table_15313204_1 (records VARCHAR, pct VARCHAR)
SELECT records FROM table_15313204_1 WHERE pct = ".464"
What is the home team of the game on April 20?
CREATE TABLE table_name_95 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_95 WHERE date = "april 20"
How many hometowns does the catcher have?
CREATE TABLE table_11677100_15 (hometown VARCHAR, position VARCHAR)
SELECT COUNT(hometown) FROM table_11677100_15 WHERE position = "Catcher"
What is the make of the car that drove 54 laps?
CREATE TABLE table_name_26 (constructor VARCHAR, laps VARCHAR)
SELECT constructor FROM table_name_26 WHERE laps = 54
What is the Club during the Years 1995–1996?
CREATE TABLE table_name_28 (club VARCHAR, years VARCHAR)
SELECT club FROM table_name_28 WHERE years = "1995–1996"
What is the average of the player with 124 yards and less than 13 rec.?
CREATE TABLE table_name_16 (avg INTEGER, yards VARCHAR, rec VARCHAR)
SELECT AVG(avg) FROM table_name_16 WHERE yards = 124 AND rec < 13
When did San Jose visit the St. Louis?
CREATE TABLE table_name_91 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_91 WHERE visitor = "san jose"
What team has a league of bundesliga, and an away of 3-2?
CREATE TABLE table_name_32 (teams VARCHAR, league VARCHAR, away VARCHAR)
SELECT teams FROM table_name_32 WHERE league = "bundesliga" AND away = "3-2"
What is the elevator when the elector is Pietro Colonna?
CREATE TABLE table_name_77 (elevator VARCHAR, elector VARCHAR)
SELECT elevator FROM table_name_77 WHERE elector = "pietro colonna"
Name the timeslot for 6.51 viewers
CREATE TABLE table_19834691_4 (timeslot VARCHAR, viewers__millions_ VARCHAR)
SELECT timeslot FROM table_19834691_4 WHERE viewers__millions_ = "6.51"
Name of sue bird that involves what team?
CREATE TABLE table_name_27 (team VARCHAR, name VARCHAR)
SELECT team FROM table_name_27 WHERE name = "sue bird"
What is the home team score that played at Kardinia Park?
CREATE TABLE table_name_25 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_25 WHERE venue = "kardinia park"
Which entrant was present prior to 1953?
CREATE TABLE table_name_67 (entrant VARCHAR, year INTEGER)
SELECT entrant FROM table_name_67 WHERE year < 1953
What is the nationality of the player from Vancouver Canucks?
CREATE TABLE table_1013129_3 (nationality VARCHAR, nhl_team VARCHAR)
SELECT nationality FROM table_1013129_3 WHERE nhl_team = "Vancouver Canucks"
Of the players with 50 free throws, what is the lowest number of three pointers?
CREATE TABLE table_22824199_1 (three_pointers INTEGER, free_throws VARCHAR)
SELECT MIN(three_pointers) FROM table_22824199_1 WHERE free_throws = 50
What is Ring Name, when Stable is Kasugano, and when Birthplace is Z Mtskheta , Georgia?
CREATE TABLE table_name_49 (ring_name VARCHAR, stable VARCHAR, birthplace VARCHAR)
SELECT ring_name FROM table_name_49 WHERE stable = "kasugano" AND birthplace = "z mtskheta , georgia"
how many end of term with age at inauguration being 64-066 64years, 66days
CREATE TABLE table_12134383_1 (end_of_term VARCHAR, age_at_inauguration VARCHAR)
SELECT COUNT(end_of_term) FROM table_12134383_1 WHERE age_at_inauguration = "64-066 64years, 66days"
What is the most amount of stumpings any player had?
CREATE TABLE table_27771406_1 (stumpings INTEGER)
SELECT MAX(stumpings) FROM table_27771406_1
WHat is the highest difference?
CREATE TABLE table_26677836_1 (difference INTEGER)
SELECT MAX(difference) FROM table_26677836_1
What is the points for of Club of penallta rfc?
CREATE TABLE table_name_17 (points_for VARCHAR, club VARCHAR)
SELECT points_for FROM table_name_17 WHERE club = "penallta rfc"
Show the flight number and distance of the flight with maximum price.
CREATE TABLE Flight (flno VARCHAR, distance VARCHAR, price VARCHAR)
SELECT flno, distance FROM Flight ORDER BY price DESC LIMIT 1
How many insurgents are there when the total per period is 156?
CREATE TABLE table_21636599_2 (insurgents VARCHAR, total_per_period VARCHAR)
SELECT insurgents FROM table_21636599_2 WHERE total_per_period = 156
What city was the circuit of mallala motor sport park?
CREATE TABLE table_name_48 (city___state VARCHAR, circuit VARCHAR)
SELECT city___state FROM table_name_48 WHERE circuit = "mallala motor sport park"
What is the sum of the wards/branches in Arkansas of the North Little Rock Arkansas stake?
CREATE TABLE table_name_93 (wards__branches_in_arkansas INTEGER, stake VARCHAR)
SELECT SUM(wards__branches_in_arkansas) FROM table_name_93 WHERE stake = "north little rock arkansas"
What was the highest number of against when the difference was 58 and the total played was more than 22?
CREATE TABLE table_name_62 (against INTEGER, difference VARCHAR, played VARCHAR)
SELECT MAX(against) FROM table_name_62 WHERE difference = "58" AND played > 22
Who was the incumbent of district Georgia 2?
CREATE TABLE table_1341472_12 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341472_12 WHERE district = "Georgia 2"
Find the id of courses which are registered or attended by student whose id is 121?
CREATE TABLE student_course_attendance (course_id VARCHAR, student_id VARCHAR); CREATE TABLE student_course_registrations (course_id VARCHAR, student_id VARCHAR)
SELECT course_id FROM student_course_registrations WHERE student_id = 121 UNION SELECT course_id FROM student_course_attendance WHERE student_id = 121
Who is the first member in the 1868 election?
CREATE TABLE table_name_79 (first_member VARCHAR, election VARCHAR)
SELECT first_member FROM table_name_79 WHERE election = "1868"
What is the country name with a numeric code less than 580 and a dk Latin 2-letter code?
CREATE TABLE table_name_4 (country_name VARCHAR, numeric_code VARCHAR, latin_2_letter_code VARCHAR)
SELECT country_name FROM table_name_4 WHERE numeric_code < 580 AND latin_2_letter_code = "dk"
What report has gauteng falcons as the opposing team?
CREATE TABLE table_name_81 (report VARCHAR, opposing_team VARCHAR)
SELECT report FROM table_name_81 WHERE opposing_team = "gauteng falcons"
What sport was played before 2006 with a loser of france b?
CREATE TABLE table_name_93 (sport VARCHAR, date VARCHAR, loser VARCHAR)
SELECT sport FROM table_name_93 WHERE date < 2006 AND loser = "france b"
What is the average bronze medal when gold is greater than 0, and there is less than 0 silver medals?
CREATE TABLE table_name_86 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
SELECT AVG(bronze) FROM table_name_86 WHERE gold > 0 AND silver < 0
What 3ds game did Naohiko Aoyama direct?
CREATE TABLE table_name_72 (title VARCHAR, platform_s_ VARCHAR, director VARCHAR)
SELECT title FROM table_name_72 WHERE platform_s_ = "3ds" AND director = "naohiko aoyama"
What's the current streak with a last 10 meetings of lsu, 2-1?
CREATE TABLE table_name_50 (current_streak VARCHAR, last_10_meetings VARCHAR)
SELECT current_streak FROM table_name_50 WHERE last_10_meetings = "lsu, 2-1"