answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT score1 FROM table_name_85 WHERE ground = "h"
What is the score 1 with a h ground?
CREATE TABLE table_name_85 (score1 VARCHAR, ground VARCHAR)
SELECT attendance FROM table_name_77 WHERE week = 10
What was the attendance total for week 10?
CREATE TABLE table_name_77 (attendance VARCHAR, week VARCHAR)
SELECT missouri_vs FROM table_16201038_5 WHERE overall_record = "MU, 3-1"
Who are the opponents of Missouri that have an overall record of MU, 3-1?
CREATE TABLE table_16201038_5 (missouri_vs VARCHAR, overall_record VARCHAR)
SELECT COUNT(episode) FROM table_27208817_1 WHERE writer = "Sam Snape"
Name the number of episodes for sam snape
CREATE TABLE table_27208817_1 (episode VARCHAR, writer VARCHAR)
SELECT party FROM table_2841865_2 WHERE congress = "85th"
What party is listed for the Representative under the 85th congress?
CREATE TABLE table_2841865_2 (party VARCHAR, congress VARCHAR)
SELECT horse FROM table_name_11 WHERE faults = "9" AND total = 46.36
Tell me the horse when the faults are 9 and the total is 46.36
CREATE TABLE table_name_11 (horse VARCHAR, faults VARCHAR, total VARCHAR)
SELECT AVG(year) FROM table_name_21 WHERE edition = "115th"
What year had an edition of 115th?
CREATE TABLE table_name_21 (year INTEGER, edition VARCHAR)
SELECT COUNT(first_aired) FROM table_191105_2 WHERE performed_by = "Zachary Sanders"
When zachary sanders is the performer how many first aired are there?
CREATE TABLE table_191105_2 (first_aired VARCHAR, performed_by VARCHAR)
SELECT date_withdrawn FROM table_name_92 WHERE date_made = "1904"
What is the withdrawal date associated with a date made of 1904?
CREATE TABLE table_name_92 (date_withdrawn VARCHAR, date_made 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 away_team FROM table_name_72 WHERE venue = "arden street oval"
What team was the away team at Arden Street Oval?
CREATE TABLE table_name_72 (away_team VARCHAR, venue VARCHAR)
SELECT record FROM table_name_56 WHERE opponent = "cleveland browns"
What's the record of the team who played the Cleveland Browns?
CREATE TABLE table_name_56 (record VARCHAR, opponent VARCHAR)
SELECT rank__overall_ FROM table_20522228_2 WHERE viewers__millions_ = "6.59"
What is overall rank when viewers are at 6.59 million?
CREATE TABLE table_20522228_2 (rank__overall_ VARCHAR, viewers__millions_ VARCHAR)
SELECT COUNT(opponent) FROM table_20928661_1 WHERE result = "Loss"
Name the number opponent for loss result
CREATE TABLE table_20928661_1 (opponent VARCHAR, result VARCHAR)
SELECT notes FROM table_name_31 WHERE position = "2nd" AND year < 1986
What is the notes distance for 2nd position earlier than 1986?
CREATE TABLE table_name_31 (notes VARCHAR, position VARCHAR, year VARCHAR)
SELECT AVG(attendance) FROM table_name_81 WHERE opponent = "new york mets" AND record = "51-33"
What was the average attendance when the New York Mets were opponents with a record of 51-33?
CREATE TABLE table_name_81 (attendance INTEGER, opponent VARCHAR, record VARCHAR)
SELECT championship_game FROM table_name_82 WHERE win__percentage = ".429"
If a team had a percentage of games won recorded as .429, what Championship Game was played?
CREATE TABLE table_name_82 (championship_game VARCHAR, win__percentage VARCHAR)
SELECT location FROM table_name_28 WHERE ihsaa_class = "aaa" AND mascot = "panthers"
What's the location of the school having the panthers as a mascot with an AAA for the IHSAA Class?
CREATE TABLE table_name_28 (location VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR)
SELECT province, _community FROM table_name_43 WHERE contestant = "tatiana vargas rosales"
What is the province with a contestant of tatiana vargas rosales?
CREATE TABLE table_name_43 (province VARCHAR, _community VARCHAR, contestant VARCHAR)
SELECT MAX(wins) FROM table_name_55 WHERE goals_for > 39 AND points < 25
What is the highest Wins, when Goals For is greater than 39, and when Points is less than 25?
CREATE TABLE table_name_55 (wins INTEGER, goals_for VARCHAR, points VARCHAR)
SELECT series_1 FROM table_name_60 WHERE series_5 = "peter jones"
Who in series 1 corresponds with Peter Jones in series 5?
CREATE TABLE table_name_60 (series_1 VARCHAR, series_5 VARCHAR)
SELECT COUNT(earnings___) AS $__ FROM table_14853156_2 WHERE best_finish = "T2" AND scoring_average = "71.25"
How many total earnings are recorded when her best finish is t2 with a 71.25 scoring average?
CREATE TABLE table_14853156_2 (earnings___ VARCHAR, best_finish VARCHAR, scoring_average VARCHAR)
SELECT MAX(production_code) FROM table_18335117_2 WHERE writer = "Tim Loane"
What is the highest production code of an episode written by Tim Loane?
CREATE TABLE table_18335117_2 (production_code INTEGER, writer VARCHAR)
SELECT COUNT(matches) FROM table_name_94 WHERE rank = 2
Which Matches have a Rank of 2?
CREATE TABLE table_name_94 (matches VARCHAR, rank VARCHAR)
SELECT COUNT(average) FROM table_15081939_4 WHERE evening_gown = "8.00"
How many averages for the province with evening gown score of 8.00
CREATE TABLE table_15081939_4 (average VARCHAR, evening_gown VARCHAR)
SELECT COUNT(lane) FROM table_name_29 WHERE heat = 3 AND name = "cxhristy ekpukhon ihunaegbo"
what is the number of times that the heat is 3 and the name is cxhristy ekpukhon ihunaegbo?
CREATE TABLE table_name_29 (lane VARCHAR, heat VARCHAR, name VARCHAR)
SELECT location FROM table_name_67 WHERE competition = "group stage" AND lineup = "start" AND date = "2000-09-17"
Which Location has a Competition of Group Stage, a Lineup of Start and a Date of 2000-09-17?
CREATE TABLE table_name_67 (location VARCHAR, date VARCHAR, competition VARCHAR, lineup VARCHAR)
SELECT delegate FROM table_name_99 WHERE first_elected = 2006
When first elected was 2006, who was the delegate?
CREATE TABLE table_name_99 (delegate VARCHAR, first_elected VARCHAR)
SELECT COUNT(*) FROM Accounts
How many accounts do we have?
CREATE TABLE Accounts (Id VARCHAR)
SELECT score FROM table_name_35 WHERE opponent = "maria kondratieva"
What is the score of the game that was played against Maria Kondratieva?
CREATE TABLE table_name_35 (score VARCHAR, opponent VARCHAR)
SELECT 2 AS nd_leg FROM table_name_57 WHERE team_1 = "chicago croatian"
What was the 2nd leg when Team 1 was Chicago Croatian?
CREATE TABLE table_name_57 (team_1 VARCHAR)
SELECT score FROM table_name_65 WHERE record = "40–36"
What is the score when the record was 40–36?
CREATE TABLE table_name_65 (score VARCHAR, record VARCHAR)
SELECT segment_a FROM table_15187735_10 WHERE segment_c = "s Duvet"
Name the segment a for s duvet
CREATE TABLE table_15187735_10 (segment_a VARCHAR, segment_c VARCHAR)
SELECT nation FROM table_name_48 WHERE year = 2012 AND competition = "preseason" AND result = "w 0–3"
What is the Nation with 2012 as the year, and a Competition of preseason, and a Result of w 0–3?
CREATE TABLE table_name_48 (nation VARCHAR, result VARCHAR, year VARCHAR, competition VARCHAR)
SELECT COUNT(year) FROM table_name_41 WHERE position = "17th (q)"
How many years have a Position of 17th (q)?
CREATE TABLE table_name_41 (year VARCHAR, position VARCHAR)
SELECT place FROM table_name_86 WHERE score = 66 - 68 - 70 = 204
What is the place of the player with a 66-68-70=204 score?
CREATE TABLE table_name_86 (place VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_49 WHERE opponent_in_the_final = "andre agassi"
What is Tournament, when Opponent In The Final is "Andre Agassi"?
CREATE TABLE table_name_49 (tournament VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_88 WHERE away_team = "hereford united"
What is the Score of the Hereford United Away game?
CREATE TABLE table_name_88 (score VARCHAR, away_team VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_99 WHERE player = "john westin"
What club does John Westin play for?
CREATE TABLE table_name_99 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT attendance FROM table_17779448_1 WHERE opponent = "Boston Patriots"
How many attended game(s) against the boston patriots?
CREATE TABLE table_17779448_1 (attendance VARCHAR, opponent VARCHAR)
SELECT 2001 FROM table_name_26 WHERE 1999 = "bmw m67d39 3.9l v8 e38 740d"
Which car won the same award in 2001 that the bmw m67d39 3.9l v8 e38 740d won in 1999?
CREATE TABLE table_name_26 (Id VARCHAR)
SELECT DISTINCT t3.policy_type_code FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id JOIN available_policies AS t3 ON t2.policy_id = t3.policy_id WHERE t1.customer_name = (SELECT t1.customer_name FROM customers AS t1 JOIN customers_policies AS t2 ON t1.customer_id = t2.customer_id GROUP BY t1.customer_name ORDER BY COUNT(*) DESC LIMIT 1)
What are all the policy types of the customer that has the most policies listed?
CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR); CREATE TABLE available_policies (policy_type_code VARCHAR, policy_id VARCHAR); CREATE TABLE customers_policies (customer_id VARCHAR, policy_id VARCHAR)
SELECT name FROM table_name_52 WHERE province_or_country_of_birth = "manitoba"
Which supercentenarians were born in Manitoba?
CREATE TABLE table_name_52 (name VARCHAR, province_or_country_of_birth VARCHAR)
SELECT COUNT(kerry_number) FROM table_name_64 WHERE county = "taylor" AND others_number > 65
What Kerry number does Taylor county have with more than 65 others#?
CREATE TABLE table_name_64 (kerry_number VARCHAR, county VARCHAR, others_number VARCHAR)
SELECT goals FROM table_name_94 WHERE caps = 93
Caps of 93 had how many goals?
CREATE TABLE table_name_94 (goals VARCHAR, caps VARCHAR)
SELECT venue FROM table_name_60 WHERE competition = "euro 2004 q."
What venue has euro 2004 q. as the competition?
CREATE TABLE table_name_60 (venue VARCHAR, competition VARCHAR)
SELECT MIN(share) FROM table_11274401_2 WHERE rank___number_ = "85"
What was the share for the first episode that ranked 85?
CREATE TABLE table_11274401_2 (share INTEGER, rank___number_ VARCHAR)
SELECT COUNT(gold) FROM table_name_82 WHERE bronze < 1 AND silver < 1
How many golds have a bronze less than 1, and a silver less than 1?
CREATE TABLE table_name_82 (gold VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT song_title FROM table_name_14 WHERE writer_s_ = "kal mann and bernie lowe"
What song title was written by Kal Mann and Bernie Lowe?
CREATE TABLE table_name_14 (song_title VARCHAR, writer_s_ VARCHAR)
SELECT copa_libertadores_1999 FROM table_name_23 WHERE copa_conmebol_1999 = "did not qualify" AND team = "grêmio"
What is the Copa Libertadores 1999 result for team grêmio, who did not qualify for Copa Conmebol 1999?
CREATE TABLE table_name_23 (copa_libertadores_1999 VARCHAR, copa_conmebol_1999 VARCHAR, team VARCHAR)
SELECT third FROM table_name_43 WHERE round = "14"
Who was third in round 14?
CREATE TABLE table_name_43 (third VARCHAR, round VARCHAR)
SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat' INTERSECT SELECT T1.Fname FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'dog'
What are the students' first names who have both cats and dogs as pets?
CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE student (Fname VARCHAR, stuid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR)
SELECT director FROM table_11404452_1 WHERE us_viewers__millions_ = "13.66"
Who was the director when there were 13.66 million u.s viewers?
CREATE TABLE table_11404452_1 (director VARCHAR, us_viewers__millions_ VARCHAR)
SELECT MIN(year) FROM table_name_49 WHERE title = "the angry brigade"
Title of the angry brigade involves which lowest year?
CREATE TABLE table_name_49 (year INTEGER, title VARCHAR)
SELECT brand_name FROM table_24018112_1 WHERE model__list_ = "G6xxx"
What brand is model G6xxx?
CREATE TABLE table_24018112_1 (brand_name VARCHAR, model__list_ VARCHAR)
SELECT surface FROM table_name_16 WHERE score = "4–6, 6–4, 3–6"
What is the Surface of the court in the match with a Score of 4–6, 6–4, 3–6?
CREATE TABLE table_name_16 (surface VARCHAR, score VARCHAR)
SELECT date FROM table_name_17 WHERE tie_no = "15"
When has a Tie no of 15?
CREATE TABLE table_name_17 (date VARCHAR, tie_no VARCHAR)
SELECT COUNT(shot_pct) FROM table_25381437_2 WHERE pa = 79
How many results are listed for shot PCT Where PA is 79?
CREATE TABLE table_25381437_2 (shot_pct VARCHAR, pa VARCHAR)
SELECT attendance FROM table_name_70 WHERE opponent = "new york giants"
Can you tell me the Attendance that has the Opponent of new york giants?
CREATE TABLE table_name_70 (attendance VARCHAR, opponent VARCHAR)
SELECT MAX(no_in_season) FROM table_25604014_9 WHERE directed_by = "Leslie Hill"
Name the most number in season for leslie hill
CREATE TABLE table_25604014_9 (no_in_season INTEGER, directed_by VARCHAR)
SELECT score FROM table_name_67 WHERE place = "t3"
What was the score of T3 place?
CREATE TABLE table_name_67 (score VARCHAR, place VARCHAR)
SELECT gender FROM table_name_63 WHERE name = "elsthorpe school"
Name the gender for elsthorpe school
CREATE TABLE table_name_63 (gender VARCHAR, name VARCHAR)
SELECT percentage FROM table_name_86 WHERE district > 2 AND party = "independent"
Which Percentage has a District larger than 2, and a Party of independent?
CREATE TABLE table_name_86 (percentage VARCHAR, district VARCHAR, party VARCHAR)
SELECT name AS origin FROM table_16799784_3 WHERE longitude = "71.1E"
At a latitude of 71.1e, what is the feature's name origin?
CREATE TABLE table_16799784_3 (name VARCHAR, longitude VARCHAR)
SELECT MIN(production_code) FROM table_27988408_1 WHERE written_by = "Bryan Moore & Chris Peterson"
Name the least production code for bryan moore & chris peterson
CREATE TABLE table_27988408_1 (production_code INTEGER, written_by 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 position FROM table_name_80 WHERE pick = "7"
What is Position, when Pick is 7?
CREATE TABLE table_name_80 (position VARCHAR, pick VARCHAR)
SELECT lengths_behind FROM table_name_73 WHERE jockey = "jeremy rose"
What is the lengths behind of Jeremy Rose?
CREATE TABLE table_name_73 (lengths_behind VARCHAR, jockey VARCHAR)
SELECT years_for_jazz FROM table_name_46 WHERE school_club_team = "oregon state"
What is the Years for Jazz Club at Oregon State?
CREATE TABLE table_name_46 (years_for_jazz VARCHAR, school_club_team VARCHAR)
SELECT location FROM table_name_27 WHERE attendance > 57 OFFSET 347
Where was the attendance more than 57,347?
CREATE TABLE table_name_27 (location VARCHAR, attendance INTEGER)
SELECT margin_of_victory FROM table_name_38 WHERE runner_s__up = "josé maria cañizares"
Which Margin of victory has a Runner(s)-up of josé maria cañizares?
CREATE TABLE table_name_38 (margin_of_victory VARCHAR, runner_s__up VARCHAR)
SELECT 2012 AS _democracy_index FROM table_1604579_2 WHERE country = "Kyrgyzstan"
What type of government does Kyrgyzstan have?
CREATE TABLE table_1604579_2 (country VARCHAR)
SELECT time FROM table_name_45 WHERE round = 3 AND method = "decision (unanimous)" AND record = "7-3"
What is Time, when Round is "3", when Method is "Decision (unanimous)", and when Record is "7-3"?
CREATE TABLE table_name_45 (time VARCHAR, record VARCHAR, round VARCHAR, method VARCHAR)
SELECT away_team AS score FROM table_name_53 WHERE venue = "arden street oval"
What was the score of the away team while playing at the arden street oval?
CREATE TABLE table_name_53 (away_team VARCHAR, venue VARCHAR)
SELECT latest_version FROM table_name_29 WHERE architecture = "16-bit" AND release_date = "1985-11-20"
Which of the Latest version had a 16-bit Architecture and was released on Release date 1985-11-20?
CREATE TABLE table_name_29 (latest_version VARCHAR, architecture VARCHAR, release_date VARCHAR)
SELECT years FROM table_name_30 WHERE ties > 1 AND wins < 311 AND losses = 174
What years did the person coach who had more than 1 tie, mess than 311 wins and 174 losses?
CREATE TABLE table_name_30 (years VARCHAR, losses VARCHAR, ties VARCHAR, wins VARCHAR)
SELECT venue FROM table_name_95 WHERE opposing_teams = "scotland"
What venue has Scotland as the opposing teams?
CREATE TABLE table_name_95 (venue VARCHAR, opposing_teams VARCHAR)
SELECT pick__number FROM table_name_89 WHERE college = "mcmaster"
Which pick number attended McMaster College?
CREATE TABLE table_name_89 (pick__number VARCHAR, college VARCHAR)
SELECT category FROM table_name_38 WHERE award = "people's choice awards"
what is the category that has the people's choice awards?
CREATE TABLE table_name_38 (category VARCHAR, award VARCHAR)
SELECT gics_sector FROM table_20667854_1 WHERE free_float = "0.3180"
What is every GICS sector for free float of 0.3180?
CREATE TABLE table_20667854_1 (gics_sector VARCHAR, free_float VARCHAR)
SELECT tie_no FROM table_name_34 WHERE attendance = "4,658"
What is the Tie no of the game with an Attendance of 4,658?
CREATE TABLE table_name_34 (tie_no VARCHAR, attendance VARCHAR)
SELECT MAX(applications) FROM table_20007413_3 WHERE year = "1986"
Name the most applications for 1986
CREATE TABLE table_20007413_3 (applications INTEGER, year VARCHAR)
SELECT seats_in_hamburgische_bürgerschaft FROM table_name_57 WHERE name__english_ = "alliance '90/the greens"
WHAT ARE THE SEATS IN Hamburgische Bürgerschaft WITH THE NAME alliance '90/the greens?
CREATE TABLE table_name_57 (seats_in_hamburgische_bürgerschaft VARCHAR, name__english_ VARCHAR)
SELECT player FROM table_name_40 WHERE score = 70 - 71 = 141
Which golfer finished with a score of 70-71=141?
CREATE TABLE table_name_40 (player VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_63 WHERE date = "december 20, 1998"
Which opponent was playing on December 20, 1998?
CREATE TABLE table_name_63 (opponent VARCHAR, date VARCHAR)
SELECT AVG(silver) FROM table_name_88 WHERE total = 9
What is the average number of silver medals won among nations that won 9 medals total?
CREATE TABLE table_name_88 (silver INTEGER, total VARCHAR)
SELECT MIN(laps) FROM table_name_81 WHERE manufacturer = "gilera" AND grid < 12
What was the lowest lab for Gilera with a grid less than 12?
CREATE TABLE table_name_81 (laps INTEGER, manufacturer VARCHAR, grid VARCHAR)
SELECT date FROM table_name_7 WHERE home_team = "north melbourne"
When did the north melbourne team play?
CREATE TABLE table_name_7 (date VARCHAR, home_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_48 WHERE score = "97-80"
How many were in the crowd when the score was 97-80?
CREATE TABLE table_name_48 (crowd VARCHAR, score VARCHAR)
SELECT COUNT(longitude) FROM table_16768245_2 WHERE diameter = "224.0"
How many longitudes have a diameter of 224.0?
CREATE TABLE table_16768245_2 (longitude VARCHAR, diameter VARCHAR)
SELECT T3.balance FROM accounts AS T1 JOIN checking AS T2 ON T1.custid = T2.custid JOIN savings AS T3 ON T1.custid = T3.custid ORDER BY T2.balance DESC LIMIT 1
Find the saving balance of the account with the highest checking balance.
CREATE TABLE savings (balance VARCHAR, custid VARCHAR); CREATE TABLE checking (custid VARCHAR, balance VARCHAR); CREATE TABLE accounts (custid VARCHAR)
SELECT metro_vincity FROM table_name_84 WHERE opened = "1999"
What metro vincity has the venue that opened in 1999?
CREATE TABLE table_name_84 (metro_vincity VARCHAR, opened VARCHAR)
SELECT t568a_color FROM table_name_44 WHERE t568b_color = "white/orange stripe"
What is the T568A color for the cable with a white/orange stripe T568B color?
CREATE TABLE table_name_44 (t568a_color VARCHAR, t568b_color VARCHAR)
SELECT electorate FROM table_name_6 WHERE state = "vic" AND party = "labor" AND member = "david charles"
Which Electorate is from vic, a labor party, and is David Charles a member of?
CREATE TABLE table_name_6 (electorate VARCHAR, member VARCHAR, state VARCHAR, party VARCHAR)
SELECT original_channel FROM table_name_67 WHERE year < 2006 AND note = "supporting"
what is the original channel when the year is before 2006 and the note is supporting?
CREATE TABLE table_name_67 (original_channel VARCHAR, year VARCHAR, note VARCHAR)
SELECT genre FROM table_name_72 WHERE year = "2006"
What is the genre of the game from 2006?
CREATE TABLE table_name_72 (genre VARCHAR, year VARCHAR)
SELECT MIN(avg_g) FROM table_name_99 WHERE long < 0
What is the lowest Avg/G with a Long less than 0?
CREATE TABLE table_name_99 (avg_g INTEGER, long INTEGER)
SELECT final_win__percentage FROM table_17751942_4 WHERE team = "Sault Ste. Marie Greyhounds"
What is the final win percentage of the Sault Ste. Marie Greyhounds?
CREATE TABLE table_17751942_4 (final_win__percentage VARCHAR, team VARCHAR)
SELECT AVG(byes) FROM table_name_76 WHERE draws = 1 AND mininera_dfl = "smw rovers" AND wins > 6
WHAT ARE THE BYES WITH A DRAWS OF 1, SMW ROVERS, AND WINS LARGER THAN 6?
CREATE TABLE table_name_76 (byes INTEGER, wins VARCHAR, draws VARCHAR, mininera_dfl VARCHAR)
SELECT against FROM table_name_21 WHERE drawn = 5
What is the Against when the drawn is 5?
CREATE TABLE table_name_21 (against VARCHAR, drawn VARCHAR)