question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which player played the years for Jazz in 1995-2000, 2004-05
CREATE TABLE table_11545282_5 (player VARCHAR, years_for_jazz VARCHAR)
SELECT player FROM table_11545282_5 WHERE years_for_jazz = "1995-2000, 2004-05"
What's the average loss when the points were 545?
CREATE TABLE table_name_32 (lost INTEGER, points_for VARCHAR)
SELECT AVG(lost) FROM table_name_32 WHERE points_for = 545
What is the total roll with a decile less than 7, and an authority of state, in the Macraes Flat area?
CREATE TABLE table_name_98 (roll VARCHAR, area VARCHAR, decile VARCHAR, authority VARCHAR)
SELECT COUNT(roll) FROM table_name_98 WHERE decile = 7 AND authority = "state" AND area = "macraes flat"
What is the earliest year of release for the album labelled 艺能动音?
CREATE TABLE table_name_93 (year_of_release INTEGER, label_s_ VARCHAR)
SELECT MIN(year_of_release) FROM table_name_93 WHERE label_s_ = "艺能动音"
What occupation does Mary Louise Lorefice have?
CREATE TABLE table_name_35 (occupation VARCHAR, candidate VARCHAR)
SELECT occupation FROM table_name_35 WHERE candidate = "mary louise lorefice"
What is the FSB of the model with part number lf80537gf0411m?
CREATE TABLE table_11602313_4 (fsb VARCHAR, part_number_s_ VARCHAR)
SELECT fsb FROM table_11602313_4 WHERE part_number_s_ = "LF80537GF0411M"
What is the listed population from the 2010 census of West Bogor?
CREATE TABLE table_1104312_5 (population_at_2010_census INTEGER, english_name VARCHAR)
SELECT MIN(population_at_2010_census) FROM table_1104312_5 WHERE english_name = "West Bogor"
What was the location and attendance when d. wilkins (29) had the high points?
CREATE TABLE table_27882867_9 (location_attendance VARCHAR, high_points VARCHAR)
SELECT location_attendance FROM table_27882867_9 WHERE high_points = "D. Wilkins (29)"
what is the pick # when the nhl team is montreal canadiens and the college/junior/club team is trois-rivières draveurs (qmjhl)?
CREATE TABLE table_2679061_2 (pick__number INTEGER, nhl_team VARCHAR, college_junior_club_team VARCHAR)
SELECT MIN(pick__number) FROM table_2679061_2 WHERE nhl_team = "Montreal Canadiens" AND college_junior_club_team = "Trois-Rivières Draveurs (QMJHL)"
What was the winning score in 1985 for Championship of u.s. women's open?
CREATE TABLE table_name_8 (winning_score VARCHAR, year VARCHAR, championship VARCHAR)
SELECT winning_score FROM table_name_8 WHERE year < 1985 AND championship = "u.s. women's open"
What was the latest year with an edition of 14?
CREATE TABLE table_name_7 (year INTEGER, edition VARCHAR)
SELECT MAX(year) FROM table_name_7 WHERE edition = 14
Name the year when start was 32
CREATE TABLE table_name_78 (year VARCHAR, start VARCHAR)
SELECT year FROM table_name_78 WHERE start = 32
What is Local Position, when Mission is "Paraguay"?
CREATE TABLE table_name_92 (local_position VARCHAR, mission VARCHAR)
SELECT local_position FROM table_name_92 WHERE mission = "paraguay"
What word is listed under part 2 for part 4 *ridanaz?
CREATE TABLE table_1745843_2 (part_2 VARCHAR, part_4 VARCHAR)
SELECT part_2 FROM table_1745843_2 WHERE part_4 = "*ridanaz"
Which model has a 2521 cm displacement and b5254 t2 engine?
CREATE TABLE table_name_45 (model_name VARCHAR, displacement__cm³_ VARCHAR, engine_code VARCHAR)
SELECT model_name FROM table_name_45 WHERE displacement__cm³_ = 2521 AND engine_code = "b5254 t2"
2006 of 10–4 is in which 2000?
CREATE TABLE table_name_85 (Id VARCHAR)
SELECT 2000 FROM table_name_85 WHERE 2006 = "10–4"
When divisional finals are the playoffs what is the regular season?
CREATE TABLE table_1986692_1 (regular_season VARCHAR, playoffs VARCHAR)
SELECT regular_season FROM table_1986692_1 WHERE playoffs = "divisional Finals"
What position does the player from Peterborough Petes (OHA) play on?
CREATE TABLE table_1213511_2 (position VARCHAR, college_junior_club_team VARCHAR)
SELECT position FROM table_1213511_2 WHERE college_junior_club_team = "Peterborough Petes (OHA)"
What is the Road Team in the game with a Result of 105-95?
CREATE TABLE table_name_39 (road_team VARCHAR, result VARCHAR)
SELECT road_team FROM table_name_39 WHERE result = "105-95"
What is the highest rank of an athlete from Switzerland in a heat larger than 3?
CREATE TABLE table_name_54 (rank INTEGER, heat VARCHAR, nationality VARCHAR)
SELECT MAX(rank) FROM table_name_54 WHERE heat > 3 AND nationality = "switzerland"
Tell me the launch date/time for payload of gsat-4
CREATE TABLE table_name_57 (launch_date_time__utc_ VARCHAR, payload VARCHAR)
SELECT launch_date_time__utc_ FROM table_name_57 WHERE payload = "gsat-4"
What was the away score at VFL Park?
CREATE TABLE table_name_78 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_78 WHERE venue = "vfl park"
what is the number where the player was jimmy demaret
CREATE TABLE table_262383_1 (runner_s__up VARCHAR)
SELECT 54 AS _holes FROM table_262383_1 WHERE runner_s__up = "Jimmy Demaret"
What day was the game held at Firhill against AYR United?
CREATE TABLE table_name_60 (date VARCHAR, venue VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_60 WHERE venue = "firhill" AND opponent = "ayr united"
What date and time has a sub-orbital of orbit, a function of aeronomy research, and a Nike Orion rocket, as well as a Poker Flat site?
CREATE TABLE table_name_23 (date_and_time___utc__ VARCHAR, site VARCHAR, rocket VARCHAR, orbit VARCHAR, function VARCHAR)
SELECT date_and_time___utc__ FROM table_name_23 WHERE orbit = "sub-orbital" AND function = "aeronomy research" AND rocket = "nike orion" AND site = "poker flat"
Find names of all students who took some course and got A or C.
CREATE TABLE enroll (stu_num VARCHAR, enroll_grade VARCHAR); CREATE TABLE student (stu_fname VARCHAR, stu_lname VARCHAR, stu_num VARCHAR)
SELECT T1.stu_fname, T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE T2.enroll_grade = 'C' OR T2.enroll_grade = 'A'
Show the number of transactions for different investors.
CREATE TABLE TRANSACTIONS (investor_id VARCHAR)
SELECT investor_id, COUNT(*) FROM TRANSACTIONS GROUP BY investor_id
How many acres does the area of Lissagroom with Bandon as its poor law union cover?
CREATE TABLE table_30120633_1 (area__acres__ VARCHAR, poor_law_union VARCHAR, townland VARCHAR)
SELECT area__acres__ FROM table_30120633_1 WHERE poor_law_union = "Bandon" AND townland = "Lissagroom"
Name the least game for march 20
CREATE TABLE table_23186738_9 (game INTEGER, date VARCHAR)
SELECT MIN(game) FROM table_23186738_9 WHERE date = "March 20"
What was the result of the election for georgia's 3rd district?
CREATE TABLE table_27487712_1 (result VARCHAR, district VARCHAR)
SELECT result FROM table_27487712_1 WHERE district = "Georgia's 3rd"
what was the opponent on november 14, 2005?
CREATE TABLE table_name_91 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_91 WHERE date = "november 14, 2005"
What Player had a Score of 70-69-75=214?
CREATE TABLE table_name_11 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_11 WHERE score = 70 - 69 - 75 = 214
What is Opponent, when Round is World Group?
CREATE TABLE table_name_94 (opponent VARCHAR, round VARCHAR)
SELECT opponent FROM table_name_94 WHERE round = "world group"
List all mbit/s with profiles of 8b.
CREATE TABLE table_2394927_1 (max_downstream_throughput___mbit_s__ VARCHAR, profile VARCHAR)
SELECT max_downstream_throughput___mbit_s__ FROM table_2394927_1 WHERE profile = "8b"
Which Goals have a Club of hallelujah fc, and a Rank of 7?
CREATE TABLE table_name_78 (goals INTEGER, club VARCHAR, rank VARCHAR)
SELECT SUM(goals) FROM table_name_78 WHERE club = "hallelujah fc" AND rank = "7"
For team Atlético Nacional, what were the points?
CREATE TABLE table_16795394_3 (points VARCHAR, team__number2 VARCHAR)
SELECT points FROM table_16795394_3 WHERE team__number2 = "Atlético Nacional"
What is Viewers, when Air Date is "July 4, 2008"?
CREATE TABLE table_name_64 (viewers VARCHAR, air_date VARCHAR)
SELECT viewers FROM table_name_64 WHERE air_date = "july 4, 2008"
how many first elected with district is kansas 3
CREATE TABLE table_1342359_15 (first_elected VARCHAR, district VARCHAR)
SELECT COUNT(first_elected) FROM table_1342359_15 WHERE district = "Kansas 3"
Who had the highest points on January 2?
CREATE TABLE table_23274514_6 (high_points VARCHAR, date VARCHAR)
SELECT high_points FROM table_23274514_6 WHERE date = "January 2"
What is the sum of the dates in december that were against the atlanta flames before game 40?
CREATE TABLE table_name_88 (december INTEGER, opponent VARCHAR, game VARCHAR)
SELECT SUM(december) FROM table_name_88 WHERE opponent = "atlanta flames" AND game < 40
What is the prize money when the clubs is 392 → 276?
CREATE TABLE table_27973624_1 (prize_money VARCHAR, clubs VARCHAR)
SELECT prize_money FROM table_27973624_1 WHERE clubs = "392 → 276"
What is the Year(s) won from the United States as country with a To Par of +4?
CREATE TABLE table_name_21 (year_s__won VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT year_s__won FROM table_name_21 WHERE country = "united states" AND to_par = "+4"
What range does type FJ/PB/SCP work at?
CREATE TABLE table_21538523_1 (range__m_ VARCHAR, type VARCHAR)
SELECT range__m_ FROM table_21538523_1 WHERE type = "FJ/PB/SCP"
when was the premiere of the episode whose production code is 415?
CREATE TABLE table_27622417_1 (original_us_air_date VARCHAR, prod_code VARCHAR)
SELECT original_us_air_date FROM table_27622417_1 WHERE prod_code = "415"
What number has the opponent Fokker d.vii with a time of 600?
CREATE TABLE table_name_66 (number INTEGER, opponent VARCHAR, time VARCHAR)
SELECT SUM(number) FROM table_name_66 WHERE opponent = "fokker d.vii" AND time = 600
Which City has an Average of 6.85?
CREATE TABLE table_name_27 (city VARCHAR, average VARCHAR)
SELECT city FROM table_name_27 WHERE average = 6.85
What is the date for Catalog Alca-9201?
CREATE TABLE table_name_94 (date VARCHAR, catalog VARCHAR)
SELECT date FROM table_name_94 WHERE catalog = "alca-9201"
Which junior high school has university students and adults of 26mm?
CREATE TABLE table_name_15 (junior_high_school__12_15_yrs_ VARCHAR, university_students_and_adults__18yrs VARCHAR, _ VARCHAR)
SELECT junior_high_school__12_15_yrs_ FROM table_name_15 WHERE university_students_and_adults__18yrs + _ = "26mm"
Which mean pick number had a Reg GP of 0, and a Pl GP that was bigger than 0?
CREATE TABLE table_name_95 (pick__number INTEGER, reg_gp VARCHAR, pl_gp VARCHAR)
SELECT AVG(pick__number) FROM table_name_95 WHERE reg_gp = 0 AND pl_gp > 0
List the countries that have more than one mountain.
CREATE TABLE mountain (Country VARCHAR)
SELECT Country FROM mountain GROUP BY Country HAVING COUNT(*) > 1
Name the production code for theresa rebeck
CREATE TABLE table_25604014_9 (production_code VARCHAR, written_by VARCHAR)
SELECT production_code FROM table_25604014_9 WHERE written_by = "Theresa Rebeck"
What is the average Top-10 when there were 17 cuts made with less than 0 wins?
CREATE TABLE table_name_93 (top_10 INTEGER, cuts_made VARCHAR, wins VARCHAR)
SELECT AVG(top_10) FROM table_name_93 WHERE cuts_made = 17 AND wins < 0
Player of mike o'quinn, and a Round smaller than 15 had what lowest pick?
CREATE TABLE table_name_30 (pick INTEGER, player VARCHAR, round VARCHAR)
SELECT MIN(pick) FROM table_name_30 WHERE player = "mike o'quinn" AND round < 15
What is the record of Tampa Bay Buccaneers?
CREATE TABLE table_name_69 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_69 WHERE opponent = "tampa bay buccaneers"
Who is the second member more recently than 1790 when John Williams is the first member?
CREATE TABLE table_name_10 (second_member VARCHAR, year VARCHAR, first_member VARCHAR)
SELECT second_member FROM table_name_10 WHERE year > 1790 AND first_member = "john williams"
In what season is Victoria the Opponent?
CREATE TABLE table_name_97 (season VARCHAR, opponent VARCHAR)
SELECT season FROM table_name_97 WHERE opponent = "victoria"
What's the Period with # found of 5?
CREATE TABLE table_name_81 (period VARCHAR, _number_found VARCHAR)
SELECT period FROM table_name_81 WHERE _number_found = "5"
What was the location and attendance for game 41?
CREATE TABLE table_27539272_7 (location_attendance VARCHAR, game VARCHAR)
SELECT location_attendance FROM table_27539272_7 WHERE game = 41
What is the lowest points of British Racing after 1963?
CREATE TABLE table_name_90 (points INTEGER, year INTEGER)
SELECT MIN(points) FROM table_name_90 WHERE year > 1963
What is the Branding for Group Owner Qantam of Cape Cod, LLC?
CREATE TABLE table_10333757_1 (branding VARCHAR, group_owner VARCHAR)
SELECT branding FROM table_10333757_1 WHERE group_owner = "Qantam of Cape Cod, LLC"
Name the league for 1994
CREATE TABLE table_name_16 (league VARCHAR, year VARCHAR)
SELECT league FROM table_name_16 WHERE year = "1994"
What district was the successor seated in March 28, 1878?
CREATE TABLE table_2417390_4 (district VARCHAR, date_successor_seated VARCHAR)
SELECT district FROM table_2417390_4 WHERE date_successor_seated = "March 28, 1878"
What is the poor law union of the Ardacrow townland?
CREATE TABLE table_30121046_1 (poor_law_union VARCHAR, townland VARCHAR)
SELECT poor_law_union FROM table_30121046_1 WHERE townland = "Ardacrow"
When did an event take place in the City of Copenhagen?
CREATE TABLE table_name_58 (date VARCHAR, city VARCHAR)
SELECT date FROM table_name_58 WHERE city = "copenhagen"
Show the first and last name of all the faculty members who participated in some activity, together with the number of activities they participated in.
CREATE TABLE Faculty_participates_in (facID VARCHAR); CREATE TABLE Faculty (fname VARCHAR, lname VARCHAR, FacID VARCHAR, facID VARCHAR)
SELECT T1.fname, T1.lname, COUNT(*), T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID = T2.facID GROUP BY T1.FacID
Who is the Jockey for guadalcanal?
CREATE TABLE table_name_52 (jockey VARCHAR, horse VARCHAR)
SELECT jockey FROM table_name_52 WHERE horse = "guadalcanal"
Who is the producer of city sharks?
CREATE TABLE table_name_57 (producer VARCHAR, title VARCHAR)
SELECT producer FROM table_name_57 WHERE title = "city sharks"
What is the score of the hard court Ramat Hasharon tournament?
CREATE TABLE table_name_75 (score VARCHAR, surface VARCHAR, tournament VARCHAR)
SELECT score FROM table_name_75 WHERE surface = "hard" AND tournament = "ramat hasharon"
What is the total share of transactions?
CREATE TABLE TRANSACTIONS (share_count INTEGER)
SELECT SUM(share_count) FROM TRANSACTIONS
Show the order ids and the number of invoices for each order.
CREATE TABLE Invoices (order_id VARCHAR)
SELECT order_id, COUNT(*) FROM Invoices GROUP BY order_id
Date of 24 september 2002 had what F-A result?
CREATE TABLE table_name_37 (result_f_a VARCHAR, date VARCHAR)
SELECT result_f_a FROM table_name_37 WHERE date = "24 september 2002"
What is the number of the crowd for the home team of South Melbourne?
CREATE TABLE table_name_18 (crowd INTEGER, home_team VARCHAR)
SELECT SUM(crowd) FROM table_name_18 WHERE home_team = "south melbourne"
What is the sum of the goals with less than 30 points, a position less than 10, and more than 57 goals against?
CREATE TABLE table_name_14 (goals_for INTEGER, goals_against VARCHAR, points VARCHAR, position VARCHAR)
SELECT SUM(goals_for) FROM table_name_14 WHERE points < 30 AND position < 10 AND goals_against > 57
How many games were on December 5?
CREATE TABLE table_name_80 (game INTEGER, date VARCHAR)
SELECT SUM(game) FROM table_name_80 WHERE date = "december 5"
what is the average losses when the wins is 3?
CREATE TABLE table_name_24 (losses INTEGER, wins VARCHAR)
SELECT AVG(losses) FROM table_name_24 WHERE wins = 3
On what date was a game played at Windy Hill?
CREATE TABLE table_name_6 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_6 WHERE venue = "windy hill"
What venue has 2 as the rank?
CREATE TABLE table_name_75 (venue VARCHAR, rank VARCHAR)
SELECT venue FROM table_name_75 WHERE rank = "2"
On how many different dates did the episode directed by Marcos Siega and written by Scott Buck air for the first time?
CREATE TABLE table_24132083_1 (original_air_date VARCHAR, directed_by VARCHAR, written_by VARCHAR)
SELECT COUNT(original_air_date) FROM table_24132083_1 WHERE directed_by = "Marcos Siega" AND written_by = "Scott Buck"
Who has a reported death of 6 march 1998?
CREATE TABLE table_name_63 (name VARCHAR, reported_death_date VARCHAR)
SELECT name FROM table_name_63 WHERE reported_death_date = "6 march 1998"
Name the opponents for december 3
CREATE TABLE table_23453931_5 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(opponent) FROM table_23453931_5 WHERE date = "December 3"
Which stage has kourdali as the name?
CREATE TABLE table_21578303_2 (stage VARCHAR, name VARCHAR)
SELECT stage FROM table_21578303_2 WHERE name = "Kourdali"
What is he smallest numbered week?
CREATE TABLE table_24136814_3 (week INTEGER)
SELECT MIN(week) FROM table_24136814_3
What is the length of the race on August 15?
CREATE TABLE table_name_23 (length VARCHAR, date VARCHAR)
SELECT length FROM table_name_23 WHERE date = "august 15"
Tell me the rider that had round 1 points of 7.465 and total more than 16.615
CREATE TABLE table_name_65 (rider VARCHAR, total VARCHAR, round_1_points VARCHAR)
SELECT rider FROM table_name_65 WHERE total > 16.615 AND round_1_points = "7.465"
What is the total number of the crowd at Glenferrie Oval?
CREATE TABLE table_name_28 (crowd VARCHAR, venue VARCHAR)
SELECT COUNT(crowd) FROM table_name_28 WHERE venue = "glenferrie oval"
What date was the result 6–2, 4–6, 6–4?
CREATE TABLE table_11636213_7 (date VARCHAR, result VARCHAR)
SELECT date FROM table_11636213_7 WHERE result = "6–2, 4–6, 6–4"
How many Points have a Game smaller than 37, and a Score of 2–3, and a December of 13?
CREATE TABLE table_name_98 (points VARCHAR, december VARCHAR, game VARCHAR, score VARCHAR)
SELECT COUNT(points) FROM table_name_98 WHERE game < 37 AND score = "2–3" AND december = 13
What is the sum of votes of the party with a % of 0.53 and more than 0 seats?
CREATE TABLE table_name_99 (votes__gib_ INTEGER, _percentage__gib_ VARCHAR, seats VARCHAR)
SELECT SUM(votes__gib_) FROM table_name_99 WHERE _percentage__gib_ = 0.53 AND seats > 0
For the provider that costs 266 sar, what is the Bandwidth Included?
CREATE TABLE table_name_66 (bandwidth_included VARCHAR, price VARCHAR)
SELECT bandwidth_included FROM table_name_66 WHERE price = "266 sar"
Name the number of players for georgia tech
CREATE TABLE table_2508633_2 (player VARCHAR, college VARCHAR)
SELECT COUNT(player) FROM table_2508633_2 WHERE college = "Georgia Tech"
What was the score June 22?
CREATE TABLE table_name_82 (loss VARCHAR, date VARCHAR)
SELECT loss FROM table_name_82 WHERE date = "june 22"
How many settlements does each claim correspond to? List the claim id and the number of settlements.
CREATE TABLE Settlements (claim_id VARCHAR); CREATE TABLE Claims (Claim_id VARCHAR, claim_id VARCHAR)
SELECT T1.Claim_id, COUNT(*) FROM Claims AS T1 JOIN Settlements AS T2 ON T1.claim_id = T2.claim_id GROUP BY T1.claim_id
Which date has the promoter Frank Moloney and the opponent Georgi Iliev?
CREATE TABLE table_name_82 (date VARCHAR, promotor VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_82 WHERE promotor = "frank moloney" AND opponent = "georgi iliev"
What is the number of students in Fall 09 from the state that had 3940 in Fall 07?
CREATE TABLE table_15055594_6 (fall_09 INTEGER, fall_07 VARCHAR)
SELECT MAX(fall_09) FROM table_15055594_6 WHERE fall_07 = 3940
Tell me the sum of yards for jason campbell and long less than 23
CREATE TABLE table_name_29 (yards INTEGER, player VARCHAR, long VARCHAR)
SELECT SUM(yards) FROM table_name_29 WHERE player = "jason campbell" AND long < 23
What is the method for a match with a Round larger than 2, he took a loss, and 15–3 was the record?
CREATE TABLE table_name_67 (method VARCHAR, record VARCHAR, round VARCHAR, res VARCHAR)
SELECT method FROM table_name_67 WHERE round > 2 AND res = "loss" AND record = "15–3"
What is the election with an outcome of ndc opposition and 2,728,241 votes?
CREATE TABLE table_name_63 (election VARCHAR, outcome_of_election VARCHAR, number_of_votes VARCHAR)
SELECT election FROM table_name_63 WHERE outcome_of_election = "ndc opposition" AND number_of_votes = "2,728,241"
In what Game did Rams Points equal 0?
CREATE TABLE table_name_82 (game VARCHAR, rams_points VARCHAR)
SELECT game FROM table_name_82 WHERE rams_points = 0
Find the ids of all the order items whose product id is 11.
CREATE TABLE order_items (order_item_id VARCHAR, product_id VARCHAR)
SELECT order_item_id FROM order_items WHERE product_id = 11
What is the wheel arrangement of cf-16-4, and 16 produced?
CREATE TABLE table_name_5 (wheel_arrangement VARCHAR, builder’s_model VARCHAR, total_produced VARCHAR)
SELECT wheel_arrangement FROM table_name_5 WHERE builder’s_model = "cf-16-4" AND total_produced = 16