answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT place FROM table_name_49 WHERE player = "bill glasson"
What place was Bill Glasson in?
CREATE TABLE table_name_49 (place VARCHAR, player VARCHAR)
SELECT civilians FROM table_21636599_2 WHERE security_forces = "36"
What are the civilian total when the security force total is 36?
CREATE TABLE table_21636599_2 (civilians VARCHAR, security_forces VARCHAR)
SELECT home_team FROM table_name_32 WHERE crowd > 32 OFFSET 485
Who is the home team when the crowd is over 32,485?
CREATE TABLE table_name_32 (home_team VARCHAR, crowd INTEGER)
SELECT SUM(gold) FROM table_name_52 WHERE silver = 1 AND rank > 3 AND total < 2 AND bronze < 0
What is the gold when silver is 1, rank is larger than 3, total is smaller than 2, bronze is smaller than 0?
CREATE TABLE table_name_52 (gold INTEGER, bronze VARCHAR, total VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT date FROM table_name_2 WHERE home = "ny islanders"
What is the date of the game where the NY Islanders are the home team?
CREATE TABLE table_name_2 (date VARCHAR, home VARCHAR)
SELECT nationality FROM table_name_16 WHERE school_club_team = "colorado"
What Nationality is the Colorado State team?
CREATE TABLE table_name_16 (nationality VARCHAR, school_club_team VARCHAR)
SELECT AVG(joined) FROM table_name_55 WHERE nickname = "wildcats" AND location = "longmeadow, massachusetts"
What is the average Joined with a Nickname of wildcats in longmeadow, massachusetts?
CREATE TABLE table_name_55 (joined INTEGER, nickname VARCHAR, location VARCHAR)
SELECT package_option FROM table_name_99 WHERE television_service = "sky wwe 24/7"
Which package/option has sky wwe 24/7 television service?
CREATE TABLE table_name_99 (package_option VARCHAR, television_service VARCHAR)
SELECT owner_s_ FROM table_name_61 WHERE team = "nts motorsports" AND primary_sponsor_s_ = "qore-24"
Who is the owner of NTS Motorsports sponsored by Qore-24?
CREATE TABLE table_name_61 (owner_s_ VARCHAR, team VARCHAR, primary_sponsor_s_ 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 gdp___bn__ FROM table_name_67 WHERE capital = "ioannina"
What was the Gdp (bn) for the region that has ioannina as its Capital?
CREATE TABLE table_name_67 (gdp___bn__ VARCHAR, capital VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_78 WHERE player = "joe colborne"
WHAT IS THE LEAGUE WITH PLAYER JOE COLBORNE?
CREATE TABLE table_name_78 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT COUNT(team) FROM table_17340355_10 WHERE high_points = "Steve Nash (24)"
Steve Nash (24) got high points for how many teams?
CREATE TABLE table_17340355_10 (team VARCHAR, high_points VARCHAR)
SELECT lost FROM table_name_30 WHERE losing_bonus = "4"
What is the Lost with a Losing Bonus that is 4?
CREATE TABLE table_name_30 (lost VARCHAR, losing_bonus VARCHAR)
SELECT rival FROM table_2846320_4 WHERE first_meeting = 1899
what are all the adversary where the beginning is 1899
CREATE TABLE table_2846320_4 (rival VARCHAR, first_meeting VARCHAR)
SELECT player FROM table_name_66 WHERE to_par = "+11"
Which player had a To par of +11?
CREATE TABLE table_name_66 (player VARCHAR, to_par VARCHAR)
SELECT informational_cvbs_lines FROM table_1926240_1 WHERE max_characters__per_page_row_ = 32 AND standard = "B (global)"
What was the informational CVBS Lines of the encoding with max character of 32 and has B (global) standard?
CREATE TABLE table_1926240_1 (informational_cvbs_lines VARCHAR, max_characters__per_page_row_ VARCHAR, standard VARCHAR)
SELECT record FROM table_name_85 WHERE year = 2008
What is the record of the champion in 2008?
CREATE TABLE table_name_85 (record VARCHAR, year VARCHAR)
SELECT builder FROM table_19872699_1 WHERE skipper = "Ken Read"
Who build the boat where Ken Read was the skipper?
CREATE TABLE table_19872699_1 (builder VARCHAR, skipper VARCHAR)
SELECT SUM(enrollment) FROM table_name_30 WHERE school = "highland"
What is the enrollment for the school Highland?
CREATE TABLE table_name_30 (enrollment INTEGER, school VARCHAR)
SELECT province FROM table_1067441_1 WHERE density = "971.4"
Which province has a density of 971.4?
CREATE TABLE table_1067441_1 (province VARCHAR, density VARCHAR)
SELECT college FROM table_name_92 WHERE pick < 5
Which college had a pick of under 5?
CREATE TABLE table_name_92 (college VARCHAR, pick INTEGER)
SELECT points_for FROM table_12886178_4 WHERE tries_for = "29"
What's the points for count for the club with tries for count of 29?
CREATE TABLE table_12886178_4 (points_for VARCHAR, tries_for VARCHAR)
SELECT outcome FROM table_name_41 WHERE opponent_in_the_final = "carlos kirmayr"
What was the Outcome against Opponent in the Final Carlos Kirmayr?
CREATE TABLE table_name_41 (outcome VARCHAR, opponent_in_the_final VARCHAR)
SELECT Box AS score FROM table_name_40 WHERE away_team = "sydney spirit"
What was the box score for the game where the away team was the sydney spirit?
CREATE TABLE table_name_40 (Box VARCHAR, away_team VARCHAR)
SELECT high_points FROM table_23286158_8 WHERE record = "30-23"
Name the high points for 30-23
CREATE TABLE table_23286158_8 (high_points VARCHAR, record VARCHAR)
SELECT SUM(gold) FROM table_name_23 WHERE silver > 1
Name the sum of gold which has a silver more than 1
CREATE TABLE table_name_23 (gold INTEGER, silver INTEGER)
SELECT MAX(viewers__m_) FROM table_name_54 WHERE rating = "1.7" AND episode = "the game of life"
What Viewers (m) has a Rating of 1.7, and an Episode of the game of life?
CREATE TABLE table_name_54 (viewers__m_ INTEGER, rating VARCHAR, episode VARCHAR)
SELECT college FROM table_name_55 WHERE overall > 102 AND name = "keenan robinson"
what is the college for keenan robinson when overall is more than 102?
CREATE TABLE table_name_55 (college VARCHAR, overall VARCHAR, name VARCHAR)
SELECT document_type_code, COUNT(*) FROM Documents GROUP BY document_type_code
List document type codes and the number of documents in each code.
CREATE TABLE Documents (document_type_code VARCHAR)
SELECT player FROM table_1965650_9 WHERE college_junior_club_team = "Kitchener Rangers (OHA)"
When kitchener rangers (oha) is the college, junior, or club team team who is the player?
CREATE TABLE table_1965650_9 (player VARCHAR, college_junior_club_team VARCHAR)
SELECT COUNT(rank) FROM table_name_38 WHERE nationality = "serbia" AND heat < 2
Serbia has a heat less than 2 and what sum of rank?
CREATE TABLE table_name_38 (rank VARCHAR, nationality VARCHAR, heat VARCHAR)
SELECT AVG(to_par) FROM table_name_13 WHERE player = "lee trevino"
What's the average to par for lee trevino?
CREATE TABLE table_name_13 (to_par INTEGER, player VARCHAR)
SELECT COUNT(studio) FROM table_27303975_3 WHERE title = "AM/PM Callanetics"
How many times is the title am/pm callanetics?
CREATE TABLE table_27303975_3 (studio VARCHAR, title VARCHAR)
SELECT album FROM table_name_44 WHERE release_type = "demo"
What was the name of the album that was a demo release?
CREATE TABLE table_name_44 (album VARCHAR, release_type VARCHAR)
SELECT date FROM table_name_87 WHERE partner = "urszula radwańska"
What Date had a Partner of urszula radwańska?
CREATE TABLE table_name_87 (date VARCHAR, partner VARCHAR)
SELECT set_3 FROM table_name_9 WHERE set_1 = "19-25" AND set_2 = "19-25"
Which set 3 has a Set 1 of 19-25, and a Set 2 of 19-25?
CREATE TABLE table_name_9 (set_3 VARCHAR, set_1 VARCHAR, set_2 VARCHAR)
SELECT hebrew FROM table_26919_6 WHERE arabic = "tisʕ-"
Name the hebrew for tisʕ-
CREATE TABLE table_26919_6 (hebrew VARCHAR, arabic VARCHAR)
SELECT tv_network_s_ FROM table_name_92 WHERE country = "bulgaria"
What is the name of Bulgaria's TV network?
CREATE TABLE table_name_92 (tv_network_s_ VARCHAR, country VARCHAR)
SELECT tournament FROM table_name_83 WHERE opponent = "lauren embree"
In which tournament was the opponent Lauren Embree?
CREATE TABLE table_name_83 (tournament VARCHAR, opponent VARCHAR)
SELECT founded FROM table_name_41 WHERE location = "balayan, batangas"
When was the Balayan, Batangas campus founded?
CREATE TABLE table_name_41 (founded VARCHAR, location VARCHAR)
SELECT MIN(points) FROM table_23308178_5
What's the minimal number of points scored in any game?
CREATE TABLE table_23308178_5 (points INTEGER)
SELECT MIN(touchdowns) FROM table_14342592_8 WHERE points = 11
Name the least touchdowns for 11 points
CREATE TABLE table_14342592_8 (touchdowns INTEGER, points VARCHAR)
SELECT line_name FROM table_name_90 WHERE nimt_junction = "ohakune junction"
What Line has Ohakune Junction as its NIMT?
CREATE TABLE table_name_90 (line_name VARCHAR, nimt_junction VARCHAR)
SELECT score FROM table_name_81 WHERE team = "washington"
What is Score, when Team is "Washington"?
CREATE TABLE table_name_81 (score VARCHAR, team VARCHAR)
SELECT venue FROM table_name_52 WHERE away_team = "st kilda"
Where was the away team st kilda?
CREATE TABLE table_name_52 (venue VARCHAR, away_team VARCHAR)
SELECT MAX(goals_against) FROM table_name_94 WHERE goals_for > 55 AND goal_difference = "+24"
What is the highest number of goals against when the number of goals were 55 and the difference was +24?
CREATE TABLE table_name_94 (goals_against INTEGER, goals_for VARCHAR, goal_difference VARCHAR)
SELECT elector FROM table_name_74 WHERE order = "cardinal-priest" AND nationality = "french"
Which Elector has an Order of cardinal-priest, and a Nationality of french?
CREATE TABLE table_name_74 (elector VARCHAR, order VARCHAR, nationality VARCHAR)
SELECT score FROM table_name_47 WHERE surface = "clay" AND opponent = "hans podlipnik" AND outcome = "runner-up"
What was the final score for Aguilar when he played Hans Podlipnik on clay and was runner-up?
CREATE TABLE table_name_47 (score VARCHAR, outcome VARCHAR, surface VARCHAR, opponent VARCHAR)
SELECT max_pressure FROM table_173103_1 WHERE cartridge = ".38 Long Colt"
What is the max pressure of the .38 long colt cartridge?
CREATE TABLE table_173103_1 (max_pressure VARCHAR, cartridge VARCHAR)
SELECT to_par FROM table_name_47 WHERE player = "jesper parnevik"
What is To par, when Player is "Jesper Parnevik"?
CREATE TABLE table_name_47 (to_par VARCHAR, player VARCHAR)
SELECT COUNT(*) FROM body_builder
How many body builders are there?
CREATE TABLE body_builder (Id VARCHAR)
SELECT winner_name FROM matches WHERE YEAR = 2013 INTERSECT SELECT winner_name FROM matches WHERE YEAR = 2016
List the names of all winners who played in both 2013 and 2016.
CREATE TABLE matches (winner_name VARCHAR, YEAR VARCHAR)
SELECT MIN(field_goals) FROM table_name_84 WHERE touchdowns = 3
What is the lowest number of field goals for a player with 3 touchdowns?
CREATE TABLE table_name_84 (field_goals INTEGER, touchdowns VARCHAR)
SELECT song FROM table_name_38 WHERE points = 17
what is the song that has 17 points?
CREATE TABLE table_name_38 (song VARCHAR, points VARCHAR)
SELECT venue FROM table_name_83 WHERE away_team = "south melbourne"
Where did South Melbourne play?
CREATE TABLE table_name_83 (venue VARCHAR, away_team VARCHAR)
SELECT score_in_the_final FROM table_2820584_3 WHERE partner = "Fred McNair"
What was the score in the final played with Fred McNair as partner?
CREATE TABLE table_2820584_3 (score_in_the_final VARCHAR, partner VARCHAR)
SELECT name FROM table_name_8 WHERE term_expires = "december 31, 2020" AND appointing_governor = "terry branstad"
Which person has an expiring term of December 31, 2020, and has Terry Branstad as the appointing governor?
CREATE TABLE table_name_8 (name VARCHAR, term_expires VARCHAR, appointing_governor VARCHAR)
SELECT class FROM table_22824312_1 WHERE player = "Ren Alde"
What class was ren alde?
CREATE TABLE table_22824312_1 (class VARCHAR, player VARCHAR)
SELECT partner FROM table_name_59 WHERE score = "3–6, 2–6"
What Partner has a Score of 3–6, 2–6?
CREATE TABLE table_name_59 (partner VARCHAR, score VARCHAR)
SELECT finalist FROM table_name_7 WHERE tournament = "miami"
Who was the finalist in Miami?
CREATE TABLE table_name_7 (finalist VARCHAR, tournament VARCHAR)
SELECT res FROM table_name_81 WHERE location = "butte, montana , united states" AND opponent = "jerome smith"
What is Res., when Location is "Butte, Montana , United States", and when Opponent is "Jerome Smith"?
CREATE TABLE table_name_81 (res VARCHAR, location VARCHAR, opponent VARCHAR)
SELECT COUNT(points) FROM table_17968282_1 WHERE team = "Newell's Old Boys"
Name the total number of points for newell's old boys
CREATE TABLE table_17968282_1 (points VARCHAR, team VARCHAR)
SELECT outgoing_manager FROM table_name_19 WHERE date_of_vacancy = "13 october 2008"
Who is the outgoing manager when the date of vacancy is 13 october 2008?
CREATE TABLE table_name_19 (outgoing_manager VARCHAR, date_of_vacancy VARCHAR)
SELECT affiliation FROM table_28253870_1 WHERE enrollment = 27209
Name the affiliation for 27209 enrollment
CREATE TABLE table_28253870_1 (affiliation VARCHAR, enrollment VARCHAR)
SELECT wind__m_s_ FROM table_1231316_6 WHERE fastest_time__s_ = "10.25" AND athlete = "Jeff Demps"
Name the wind m/s and fastest time of 10.25 and jeff demps
CREATE TABLE table_1231316_6 (wind__m_s_ VARCHAR, fastest_time__s_ VARCHAR, athlete VARCHAR)
SELECT player FROM table_2508633_3 WHERE nfl_team = "Baltimore Colts"
Who was drafted by the Baltimore Colts?
CREATE TABLE table_2508633_3 (player VARCHAR, nfl_team VARCHAR)
SELECT T1.name FROM station AS T1 JOIN status AS T2 ON T1.id = T2.station_id GROUP BY T2.station_id HAVING AVG(bikes_available) > 10 EXCEPT SELECT name FROM station WHERE city = "San Jose"
What are names of stations that have average bike availability above 10 and are not located in San Jose city?
CREATE TABLE station (name VARCHAR, id VARCHAR); CREATE TABLE status (station_id VARCHAR); CREATE TABLE station (name VARCHAR, city VARCHAR, bikes_available INTEGER)
SELECT 2009 FROM table_name_2 WHERE 2012 = "1r" AND 2007 = "2r"
What was the 2009 result associated with a 2012 of 1R and a 2007 of 2R?
CREATE TABLE table_name_2 (Id VARCHAR)
SELECT SUM(points) FROM table_name_28 WHERE assists = 41
How many points have 41 assists?
CREATE TABLE table_name_28 (points INTEGER, assists VARCHAR)
SELECT SUM(total) FROM table_name_11 WHERE rank > 6 AND gold > 0 AND silver = 2
What is the sum of all totals with a rank greater than 6, gold greater than 0, and silver greater than 2?
CREATE TABLE table_name_11 (total INTEGER, silver VARCHAR, rank VARCHAR, gold VARCHAR)
SELECT type FROM table_name_46 WHERE name = "cassano"
What is the type for Cassano?
CREATE TABLE table_name_46 (type VARCHAR, name VARCHAR)
SELECT nationality FROM table_11803648_17 WHERE player = "Andre Petersson"
WHERE IS ANDRE PETERSSON FROM?
CREATE TABLE table_11803648_17 (nationality VARCHAR, player VARCHAR)
SELECT final FROM table_name_44 WHERE athlete = "mohammad reza samadi"
What was the final round result of Mohammad Reza Samadi?
CREATE TABLE table_name_44 (final VARCHAR, athlete VARCHAR)
SELECT time_retired FROM table_name_93 WHERE car_no = "6"
What was the time/retired of car number 6.
CREATE TABLE table_name_93 (time_retired VARCHAR, car_no VARCHAR)
SELECT COUNT(location_of_the_church) FROM table_178389_1 WHERE year_built = 1916
What is the total number of churches built in 1916?
CREATE TABLE table_178389_1 (location_of_the_church VARCHAR, year_built VARCHAR)
SELECT MAX(cr_no) FROM table_1886270_1
What is the highest cr number?
CREATE TABLE table_1886270_1 (cr_no INTEGER)
SELECT 2 AS nd_party FROM table_name_11 WHERE election = "1834"
What 2nd Party has an Election of 1834?
CREATE TABLE table_name_11 (election VARCHAR)
SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID JOIN activity AS T3 ON T2.actid = T2.actid WHERE T3.activity_name = 'Kayaking'
Find the first names of the faculty members who participate in Canoeing and Kayaking.
CREATE TABLE activity (activity_name VARCHAR); CREATE TABLE Faculty_participates_in (facID VARCHAR, actid VARCHAR); CREATE TABLE Faculty (lname VARCHAR, facID VARCHAR)
SELECT attendance FROM table_name_60 WHERE competition = "scottish cup" AND date = "29.02.2000"
How many people attended the Scottish Cup on 29.02.2000?
CREATE TABLE table_name_60 (attendance VARCHAR, competition VARCHAR, date VARCHAR)
SELECT COUNT(laps) FROM table_name_39 WHERE time = "collision" AND team = "switzerland" AND grid < 11
What is the total number of Laps when collision shows for time for Switzerland and less than 11 for grid?
CREATE TABLE table_name_39 (laps VARCHAR, grid VARCHAR, time VARCHAR, team VARCHAR)
SELECT country FROM table_name_34 WHERE finish = "59"
What country has a finish of 59?
CREATE TABLE table_name_34 (country VARCHAR, finish VARCHAR)
SELECT to_par FROM table_name_77 WHERE player = "thomas aiken"
Which To par is of thomas aiken?
CREATE TABLE table_name_77 (to_par VARCHAR, player VARCHAR)
SELECT administrative_division FROM table_14986292_1 WHERE population__2010_census_ = 95391
Name the administrative division for 95391
CREATE TABLE table_14986292_1 (administrative_division VARCHAR, population__2010_census_ VARCHAR)
SELECT winner_name, loser_name FROM matches ORDER BY minutes DESC LIMIT 1
find the names of loser and winner who played in the match with greatest number of minutes.
CREATE TABLE matches (winner_name VARCHAR, loser_name VARCHAR, minutes VARCHAR)
SELECT position FROM table_name_66 WHERE debut = "round 6"
What position had a debut in round 6?
CREATE TABLE table_name_66 (position VARCHAR, debut VARCHAR)
SELECT episode FROM table_29960651_5 WHERE no_for_series = 45
What is the episode name for series number 45?
CREATE TABLE table_29960651_5 (episode VARCHAR, no_for_series VARCHAR)
SELECT chassis FROM table_name_38 WHERE entrant = "lavazza march" AND year = 1975
What was the chassis when the entrant was Lavazza March, and the year was 1975?
CREATE TABLE table_name_38 (chassis VARCHAR, entrant VARCHAR, year VARCHAR)
SELECT record_label FROM table_18710512_3 WHERE single = "I Can't Stay"
What record label corresponds to the single "I can't stay"?
CREATE TABLE table_18710512_3 (record_label VARCHAR, single VARCHAR)
SELECT MAX(rank) FROM table_26454128_9 WHERE distance__metres_ = "52.73"
What is the highest rank where the distance is 52.73?
CREATE TABLE table_26454128_9 (rank INTEGER, distance__metres_ VARCHAR)
SELECT willingshain FROM table_name_71 WHERE kirchheim = "1,126"
What Willingshain is Kirchheim 1,126?
CREATE TABLE table_name_71 (willingshain VARCHAR, kirchheim VARCHAR)
SELECT record FROM table_27698941_8 WHERE date = "January 7"
What the win - loss recored for January 7?
CREATE TABLE table_27698941_8 (record VARCHAR, date VARCHAR)
SELECT COUNT(location_attendance) FROM table_17058116_5 WHERE game = 13
In how many locations did Game 13 take place?
CREATE TABLE table_17058116_5 (location_attendance VARCHAR, game VARCHAR)
SELECT catalog FROM table_name_56 WHERE region = "europe"
What is the Catalog with a Region that is europe?
CREATE TABLE table_name_56 (catalog VARCHAR, region VARCHAR)
SELECT MAX(first_elected) FROM table_1342451_38
What is the last year on this list someone was first elected?
CREATE TABLE table_1342451_38 (first_elected INTEGER)
SELECT class FROM table_name_13 WHERE call_sign = "w267an"
What is the class of the w267an call sign?
CREATE TABLE table_name_13 (class VARCHAR, call_sign VARCHAR)
SELECT result FROM table_name_33 WHERE week < 13 AND opponent = "oakland raiders"
What was the result before week 13 when they played the Oakland Raiders?
CREATE TABLE table_name_33 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT margin_of_victory FROM table_name_44 WHERE tournament = "texas international open"
What was the margin of victory at the Texas International Open?
CREATE TABLE table_name_44 (margin_of_victory VARCHAR, tournament 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 tournament FROM table_29296103_10 WHERE runner_up = "Paul Annacone Eric Korita"
Which tournament was runner-up paul annacone eric korita?
CREATE TABLE table_29296103_10 (tournament VARCHAR, runner_up VARCHAR)