answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT group FROM table_name_18 WHERE weight__kg_ < 55
Which group has a weight (kg) less than 55?
CREATE TABLE table_name_18 (group VARCHAR, weight__kg_ INTEGER)
SELECT MAX(joined) FROM table_1973729_2 WHERE current_conference = "Dropped athletics"
What joined year does Dropped Athletics have?
CREATE TABLE table_1973729_2 (joined INTEGER, current_conference VARCHAR)
SELECT european_election__uk_ FROM table_name_41 WHERE share_of_votes = "19%"
Which European election (UK) has a Share of votes of 19%?
CREATE TABLE table_name_41 (european_election__uk_ VARCHAR, share_of_votes VARCHAR)
SELECT MIN(kerry__number) FROM table_13606924_1 WHERE bush__percentage = "78.40%"
what is the minimum kerry # with bush % being 78.40%
CREATE TABLE table_13606924_1 (kerry__number INTEGER, bush__percentage VARCHAR)
SELECT home_team FROM table_name_71 WHERE away_team = "southampton"
What home team has Southampton as the away team?
CREATE TABLE table_name_71 (home_team VARCHAR, away_team VARCHAR)
SELECT laps FROM table_name_53 WHERE time_retired = "electrical" AND driver = "rubens barrichello"
When the time/retired is electrical how many laps did Rubens Barrichello have?
CREATE TABLE table_name_53 (laps VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT MAX(2 AS nd__m_) FROM table_name_14 WHERE rank > 2 AND points > 249.3
What is the highest 2nd in (m) that has a Rank more than 2 and Points more than 249.3
CREATE TABLE table_name_14 (rank VARCHAR, points VARCHAR)
SELECT AVG(laps) FROM table_name_27 WHERE time_retired = "+28.108" AND grid > 11
What was the average amount of laps for competitors with a grid that was more than 11 and a Time/Retired of +28.108?
CREATE TABLE table_name_27 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT season FROM table_name_35 WHERE losses = "34"
Which season had 34 losses?
CREATE TABLE table_name_35 (season VARCHAR, losses VARCHAR)
SELECT date FROM table_name_77 WHERE loss = "segui (0-5)"
What was the date of the Mariners game that had a loss of Segui (0-5)?
CREATE TABLE table_name_77 (date VARCHAR, loss VARCHAR)
SELECT part_1 FROM table_name_81 WHERE class = "7d"
What is the entry for Part 1 for class 7d?
CREATE TABLE table_name_81 (part_1 VARCHAR, class VARCHAR)
SELECT COUNT(DISTINCT dept_name) FROM course
How many departments offer courses?
CREATE TABLE course (dept_name VARCHAR)
SELECT MIN(number_of_seats) FROM table_name_21 WHERE current_status = "retired" AND quantity < 8
What is the smallest number of seats in a vehicle currently retired and in quantities less than 8?
CREATE TABLE table_name_21 (number_of_seats INTEGER, current_status VARCHAR, quantity VARCHAR)
SELECT reporters FROM table_22514845_5 WHERE s_analyst = "Howard Cosell"
Name the reporters for howard cosell
CREATE TABLE table_22514845_5 (reporters VARCHAR, s_analyst VARCHAR)
SELECT profession FROM table_name_90 WHERE city = "leskovac"
What is the profession of the housemate from Leskovac city?
CREATE TABLE table_name_90 (profession VARCHAR, city VARCHAR)
SELECT to_par FROM table_name_34 WHERE country = "england" AND score < 71
What's the to par for england when the score is less than 71?
CREATE TABLE table_name_34 (to_par VARCHAR, country VARCHAR, score VARCHAR)
SELECT result FROM table_name_79 WHERE opponent = "new orleans saints"
Who was the opponent of the New Orleans Saints?
CREATE TABLE table_name_79 (result VARCHAR, opponent VARCHAR)
SELECT COUNT(record) FROM table_15869204_5 WHERE game = 27
Name the total number of record for 27
CREATE TABLE table_15869204_5 (record VARCHAR, game VARCHAR)
SELECT free AS polite FROM table_name_13 WHERE genitive_1 = * = ku
Which Free polite has a Genitive 1 of *=ku?
CREATE TABLE table_name_13 (free VARCHAR, ku VARCHAR, genitive_1 VARCHAR)
SELECT club_province FROM table_name_28 WHERE caps > 18 AND position = "fly-half"
What club/province for the player with over 18 caps and plays the fly-half?
CREATE TABLE table_name_28 (club_province VARCHAR, caps VARCHAR, position VARCHAR)
SELECT date FROM table_name_63 WHERE away_team = "st kilda"
When was a game played where the away team is St Kilda?
CREATE TABLE table_name_63 (date VARCHAR, away_team VARCHAR)
SELECT COUNT(lmp2_winning_team) FROM table_24865763_2 WHERE gt1_winning_team = "Gabriele Gardel Patrice Goueslard Fernando Rees" AND circuit = "Algarve"
How many winning teams are there on LMP2 if Gabriele Gardel Patrice Goueslard Fernando Rees was the GT1 Winning Team on the Algarve circuit?
CREATE TABLE table_24865763_2 (lmp2_winning_team VARCHAR, gt1_winning_team VARCHAR, circuit VARCHAR)
SELECT result FROM table_name_41 WHERE stadium = "odsal stadium"
What is the result of the game at Odsal Stadium?
CREATE TABLE table_name_41 (result VARCHAR, stadium VARCHAR)
SELECT 2003 FROM table_name_71 WHERE 1996 = "a" AND tournament = "hamburg masters"
In the Hamburg Masters Tournament, during which Jiří Novák was absent(A) in 1996, how did he do in 2003?
CREATE TABLE table_name_71 (tournament VARCHAR)
SELECT d_45 FROM table_name_58 WHERE d_42 = "r 22"
I want the D 45 and D 42 of r 22
CREATE TABLE table_name_58 (d_45 VARCHAR, d_42 VARCHAR)
SELECT SUM(stu_hrs), dept_code FROM student GROUP BY dept_code
Find the total number of hours have done for all students in each department.
CREATE TABLE student (dept_code VARCHAR, stu_hrs INTEGER)
SELECT loss FROM table_name_9 WHERE time = "2:42"
Who lost with a time of 2:42?
CREATE TABLE table_name_9 (loss VARCHAR, time VARCHAR)
SELECT MAX(_number) FROM table_21002034_7 WHERE air_date_netherlands_yyyy_mm_dd = "2009/12/29"
Name the most number for air date 2009/12/29
CREATE TABLE table_21002034_7 (_number INTEGER, air_date_netherlands_yyyy_mm_dd VARCHAR)
SELECT attendance FROM table_name_1 WHERE opponent = "montreal alouettes" AND date = "oct 4"
What is Attendance, when Opponent is Montreal Alouettes, and when Date is Oct 4?
CREATE TABLE table_name_1 (attendance VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT away_team AS score FROM table_name_12 WHERE venue = "lake oval"
What is the away side that playes at lake oval?
CREATE TABLE table_name_12 (away_team VARCHAR, venue VARCHAR)
SELECT SUM(played) FROM table_name_52 WHERE points = 38 AND bp > 5
Played that has a Points of 38, and a B.P. larger than 5 has what sum?
CREATE TABLE table_name_52 (played INTEGER, points VARCHAR, bp VARCHAR)
SELECT MIN(gold_medals) FROM table_name_18 WHERE ensemble = "salem blue devils" AND silver_medals < 1
what is Gold Medals that has salem blue devils and a Silver Medals less than 1?
CREATE TABLE table_name_18 (gold_medals INTEGER, ensemble VARCHAR, silver_medals VARCHAR)
SELECT away_team FROM table_name_30 WHERE home_team = "boston united"
What is Away Team, when Home Team is "Boston United"?
CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR)
SELECT 1 AS st_prize___$__ FROM table_25938117_1 WHERE tournament = "Senior PGA Championship"
Name the 1st prize for senior pga championship
CREATE TABLE table_25938117_1 (tournament VARCHAR)
SELECT COUNT(against) FROM table_name_54 WHERE opposing_teams = "italy"
What is the against when the opposing team is Italy?
CREATE TABLE table_name_54 (against VARCHAR, opposing_teams VARCHAR)
SELECT mlb_draft FROM table_11677100_3 WHERE player = "Shion Newton"
What's Shion Newton's MLB draft result?
CREATE TABLE table_11677100_3 (mlb_draft VARCHAR, player VARCHAR)
SELECT 2006 AS _07_season FROM table_name_64 WHERE team = "kf fushë kosova"
What is 2006-07 Season, when Team is "KF Fushë Kosova"?
CREATE TABLE table_name_64 (team VARCHAR)
SELECT away_team AS score FROM table_name_58 WHERE venue = "corio oval"
What did the away team score at corio oval?
CREATE TABLE table_name_58 (away_team VARCHAR, venue VARCHAR)
SELECT player FROM table_name_64 WHERE pick < 149 AND round = 9
Who was picked before 149 in round 9?
CREATE TABLE table_name_64 (player VARCHAR, pick VARCHAR, round VARCHAR)
SELECT MIN(overall) FROM table_name_61 WHERE name = "mike harris"
What is Mike Harris' lowest overall?
CREATE TABLE table_name_61 (overall INTEGER, name VARCHAR)
SELECT county_team FROM table_name_88 WHERE player = "jimmy finn"
Which county team has jimmy finn as the player?
CREATE TABLE table_name_88 (county_team VARCHAR, player VARCHAR)
SELECT president FROM table_name_69 WHERE elected = 2010
What president was elected in 2010?
CREATE TABLE table_name_69 (president VARCHAR, elected VARCHAR)
SELECT engine FROM table_15736385_1 WHERE team = "Galles Racing"
What engine does Galles Racing use?
CREATE TABLE table_15736385_1 (engine VARCHAR, team VARCHAR)
SELECT 1 AS st_leg FROM table_name_3 WHERE team_1 = "drita"
Which 1st leg has a Team 1 of drita?
CREATE TABLE table_name_3 (team_1 VARCHAR)
SELECT location FROM table_name_42 WHERE college_name = "coimbatore medical college"
Where is the location of the coimbatore medical college?
CREATE TABLE table_name_42 (location VARCHAR, college_name VARCHAR)
SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code = T2.class_code JOIN course AS T3 ON T1.crs_code = T3.crs_code JOIN department AS T4 ON T3.dept_code = T4.dept_code GROUP BY T3.dept_code ORDER BY COUNT(*) DESC LIMIT 1
What is the name of the department that has the largest number of students enrolled?
CREATE TABLE enroll (class_code VARCHAR); CREATE TABLE CLASS (class_code VARCHAR, crs_code VARCHAR); CREATE TABLE course (dept_code VARCHAR, crs_code VARCHAR); CREATE TABLE department (dept_name VARCHAR, dept_code VARCHAR)
SELECT COUNT(virtual) FROM table_14623167_1 WHERE network = "NBC"
Name the number of virtual for NBC
CREATE TABLE table_14623167_1 (virtual VARCHAR, network VARCHAR)
SELECT score FROM table_name_3 WHERE attendance = "39,446"
What was the Score that has an Attendance of 39,446?
CREATE TABLE table_name_3 (score VARCHAR, attendance VARCHAR)
SELECT week_2 FROM table_name_74 WHERE week_3 = "cidney carson"
Which week 2 had a week 3 of Cidney Carson?
CREATE TABLE table_name_74 (week_2 VARCHAR, week_3 VARCHAR)
SELECT away_team FROM table_name_30 WHERE home_team = "horsham"
What away team did Horsham play?
CREATE TABLE table_name_30 (away_team VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_17 WHERE team = "evansville bluecats"
What venue did the team, evansville bluecats play on?
CREATE TABLE table_name_17 (venue VARCHAR, team VARCHAR)
SELECT away_team FROM table_name_4 WHERE venue = "western oval"
Which away team's Venue is western oval?
CREATE TABLE table_name_4 (away_team VARCHAR, venue VARCHAR)
SELECT COUNT(house_colour) FROM table_1942683_1 WHERE house_name = "Hillary"
How many house colours are associated with house names of Hillary?
CREATE TABLE table_1942683_1 (house_colour VARCHAR, house_name VARCHAR)
SELECT weight FROM table_name_96 WHERE name = "ádám steinmetz category:articles with hcards"
Name the Weight of ádám steinmetz category:articles with hcards?
CREATE TABLE table_name_96 (weight VARCHAR, name VARCHAR)
SELECT MIN(year) FROM table_name_48 WHERE notes = "18.04 m wl"
What was the earliest year with a note of 18.04 m wl?
CREATE TABLE table_name_48 (year INTEGER, notes VARCHAR)
SELECT opponent FROM table_name_11 WHERE date = "dec 8"
What is Opponent, when Date is "Dec 8"?
CREATE TABLE table_name_11 (opponent VARCHAR, date VARCHAR)
SELECT MAX(match) FROM table_name_37 WHERE points > 18 AND draw > 1
What is the highest number of matches with more than 18 points and more than 1 draw?
CREATE TABLE table_name_37 (match INTEGER, points VARCHAR, draw VARCHAR)
SELECT AVG(game) FROM table_name_6 WHERE points = 53 AND opponent = "@ minnesota north stars" AND december > 30
Which Game has Points of 53, and an Opponent of @ minnesota north stars, and a December larger than 30?
CREATE TABLE table_name_6 (game INTEGER, december VARCHAR, points VARCHAR, opponent VARCHAR)
SELECT height FROM table_name_56 WHERE position = "guard" AND year = "freshman" AND name = "cetera degraffenreid"
How tall is the freshman guard Cetera Degraffenreid?
CREATE TABLE table_name_56 (height VARCHAR, name VARCHAR, position VARCHAR, year VARCHAR)
SELECT record FROM table_name_42 WHERE home = "tampa bay" AND date = "december 4"
On December 4, Tampa Bay has a record of 12-13-2.
CREATE TABLE table_name_42 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT Fname FROM STUDENT WHERE Age > 22
Find the first names of students with age above 22.
CREATE TABLE STUDENT (Fname VARCHAR, Age INTEGER)
SELECT record FROM table_name_49 WHERE date = "dec 10"
Which Record is dated Dec 10?
CREATE TABLE table_name_49 (record VARCHAR, date VARCHAR)
SELECT to_par FROM table_name_40 WHERE year_s__won = "2003"
What is the to par number of the person who won in 2003?
CREATE TABLE table_name_40 (to_par VARCHAR, year_s__won VARCHAR)
SELECT name_of_tournament FROM table_name_84 WHERE champions = "boris becker" AND score = "7–6, 6–4"
In What Tournament did Boris Becker have a Score of 7–6, 6–4?
CREATE TABLE table_name_84 (name_of_tournament VARCHAR, champions VARCHAR, score VARCHAR)
SELECT company_name FROM table_name_76 WHERE accreditation_status = "approved (valid until 03.07.13)"
What is the Company Name, when the Accreditation Status is Approved (Valid Until 03.07.13)?
CREATE TABLE table_name_76 (company_name VARCHAR, accreditation_status VARCHAR)
SELECT name FROM table_24807406_1 WHERE position = "FW" AND appearances = 2
What is the name if the appearance is 2 and the position is FW?
CREATE TABLE table_24807406_1 (name VARCHAR, position VARCHAR, appearances VARCHAR)
SELECT MAX(rank) FROM table_name_87 WHERE wins__outdoor_ > 1 AND wins__indoor_ < 0
Name the most rank for wins outdoor larger than 1 and wins indoor less than 0
CREATE TABLE table_name_87 (rank INTEGER, wins__outdoor_ VARCHAR, wins__indoor_ VARCHAR)
SELECT school FROM table_2076490_1 WHERE enrollment__2005_ = "69"
What school had an enrollment in 2005 of 69?
CREATE TABLE table_2076490_1 (school VARCHAR, enrollment__2005_ VARCHAR)
SELECT home_team FROM table_name_43 WHERE away_team = "collingwood"
If collingwood is playing away, who played as the home team?
CREATE TABLE table_name_43 (home_team VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_63 WHERE venue = "lake oval"
On what date did the match at Lake Oval take place?
CREATE TABLE table_name_63 (date VARCHAR, venue VARCHAR)
SELECT AVG(gold) FROM table_name_97 WHERE rank < 5 AND bronze = 20
Which Gold has a Rank smaller than 5, and a Bronze of 20?
CREATE TABLE table_name_97 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT date FROM table_1566850_8 WHERE centerfold_model = "Kalin Olson"
When was Kalin Olson listed as the centerfold model?
CREATE TABLE table_1566850_8 (date VARCHAR, centerfold_model VARCHAR)
SELECT MAX(apps) FROM table_name_35 WHERE season > 2008 AND team = "kairat" AND level < 1
What is the highest Apps of kairat after 2008 and a Level smaller than 1?
CREATE TABLE table_name_35 (apps INTEGER, level VARCHAR, season VARCHAR, team VARCHAR)
SELECT team FROM table_name_70 WHERE laps = 104 AND grid = 10
What team has 104 laps and a grid of 10?
CREATE TABLE table_name_70 (team VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT name FROM table_name_2 WHERE winning_driver = "nello pagani"
Which Grand Prix did Nello Pagani win?
CREATE TABLE table_name_2 (name VARCHAR, winning_driver VARCHAR)
SELECT city FROM table_name_94 WHERE date = "december 21"
What is the name of the City with December 21 as a Date?
CREATE TABLE table_name_94 (city VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_26 WHERE record = "1–3–0"
Who is the Opponent in the game with a Record of 1–3–0?
CREATE TABLE table_name_26 (opponent VARCHAR, record VARCHAR)
SELECT institution FROM table_1974482_1 WHERE nickname = "Yellowjackets"
Name the institution for yellowjackets
CREATE TABLE table_1974482_1 (institution VARCHAR, nickname VARCHAR)
SELECT nationality FROM table_name_51 WHERE school_club_team = "utep"
The Utah Jazz Player from UTEP was what nationality?
CREATE TABLE table_name_51 (nationality VARCHAR, school_club_team VARCHAR)
SELECT set_5 FROM table_name_62 WHERE set_2 = "21-25" AND set_1 = "41633"
What is the set 5 for the game with a set 2 of 21-25 and a set 1 of 41633?
CREATE TABLE table_name_62 (set_5 VARCHAR, set_2 VARCHAR, set_1 VARCHAR)
SELECT opponent FROM table_25229283_4 WHERE points_for = 177
Who was the opponent with a points for of 177?
CREATE TABLE table_25229283_4 (opponent VARCHAR, points_for VARCHAR)
SELECT date_of_birth__age_ FROM table_name_71 WHERE club_province = "wild knights" AND player = "tomokazu soma"
When was Tomokazu Soma born who plays for the wild knights?
CREATE TABLE table_name_71 (date_of_birth__age_ VARCHAR, club_province VARCHAR, player VARCHAR)
SELECT surface FROM table_name_58 WHERE rally_hq = "salou"
What Surface had a Rally HQ of salou?
CREATE TABLE table_name_58 (surface VARCHAR, rally_hq VARCHAR)
SELECT MAX(pick__number) FROM table_name_33 WHERE round > 11
What is the highest pick # after round 11?
CREATE TABLE table_name_33 (pick__number INTEGER, round INTEGER)
SELECT COUNT(tenant) FROM table_10601843_2 WHERE city = "Samsun"
How many tenants are there in the city of Samsun?
CREATE TABLE table_10601843_2 (tenant VARCHAR, city VARCHAR)
SELECT directed___undirected FROM table_name_25 WHERE induced___non_induced = "induced" AND name = "fpf (mavisto)"
What is the directed/undirected of fpf (mavisto), which has an induced/non-induced of induced?
CREATE TABLE table_name_25 (directed___undirected VARCHAR, induced___non_induced VARCHAR, name VARCHAR)
SELECT time FROM table_name_34 WHERE event = "50m breaststroke"
What is the time for the 50m breaststroke?
CREATE TABLE table_name_34 (time VARCHAR, event VARCHAR)
SELECT total__000s_ FROM table_name_35 WHERE germany = 16.6
What was the amount of 000s when Germany had 16.6?
CREATE TABLE table_name_35 (total__000s_ VARCHAR, germany VARCHAR)
SELECT city FROM table_name_69 WHERE first_season_of_current_spell_in_segunda_división < 2013
Which city has a First season of current spell in Segunda División smaller than 2013?
CREATE TABLE table_name_69 (city VARCHAR, first_season_of_current_spell_in_segunda_división INTEGER)
SELECT score_in_final FROM table_name_75 WHERE outcome = "runner-up" AND date = "9 february 1992"
What is the final score of the runner-up on 9 February 1992?
CREATE TABLE table_name_75 (score_in_final VARCHAR, outcome VARCHAR, date VARCHAR)
SELECT AVG(win__percentage) FROM table_name_91 WHERE span = "2011–2013" AND lost < 1
What is the Win % in the Span of 2011–2013 with a Lost of less than 1?
CREATE TABLE table_name_91 (win__percentage INTEGER, span VARCHAR, lost VARCHAR)
SELECT AVG(_percentage_2006) FROM table_name_52 WHERE _percentage_2001 > 62.5
What is the %2006 when the %2001 was more than 62.5?
CREATE TABLE table_name_52 (_percentage_2006 INTEGER, _percentage_2001 INTEGER)
SELECT conductor FROM table_name_34 WHERE production = "the three pintos (die drei pintos)"
Who was the Conductor of the Three Pintos (Die Drei Pintos) Production?
CREATE TABLE table_name_34 (conductor VARCHAR, production VARCHAR)
SELECT record FROM table_name_84 WHERE attendance = "30,110"
What is Record, when Attendance is 30,110?
CREATE TABLE table_name_84 (record VARCHAR, attendance VARCHAR)
SELECT team FROM table_27721131_6 WHERE high_points = "Andray Blatche , JaVale McGee (20)"
Which team played them when andray blatche , javale mcgee (20) had the high points?
CREATE TABLE table_27721131_6 (team VARCHAR, high_points VARCHAR)
SELECT laps FROM table_name_38 WHERE grid < 2
what is the laps when the grid is less than 2?
CREATE TABLE table_name_38 (laps VARCHAR, grid INTEGER)
SELECT title FROM table_name_5 WHERE download = "crazy frog" AND issue_date = "july 2"
What is the title of the July 2 song that is downloaded as Crazy Frog?
CREATE TABLE table_name_5 (title VARCHAR, download VARCHAR, issue_date VARCHAR)
SELECT location FROM table_name_20 WHERE rank = 36
What is the location of the mountain ranked at 36?
CREATE TABLE table_name_20 (location VARCHAR, rank VARCHAR)
SELECT fastest_lap FROM table_29690363_3 WHERE pole_position = "Stefan Wilson"
Who had the fastest lap(s) when stefan wilson had the pole?
CREATE TABLE table_29690363_3 (fastest_lap VARCHAR, pole_position VARCHAR)
SELECT how_ashtagrama_iyers_say_it FROM table_name_6 WHERE pure_tamil = "engal veetil, engal agathil"
Name how ashtagrama lyers say it for engal veetil, engal agathil
CREATE TABLE table_name_6 (how_ashtagrama_iyers_say_it VARCHAR, pure_tamil VARCHAR)