answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT date FROM table_name_32 WHERE venue = "weserstadion , bremen"
What is Date, when Venue is "Weserstadion , Bremen"?
CREATE TABLE table_name_32 (date VARCHAR, venue VARCHAR)
SELECT record FROM table_name_39 WHERE home = "detroit" AND decision = "denis"
Name the record for detroit and decision of denis
CREATE TABLE table_name_39 (record VARCHAR, home VARCHAR, decision VARCHAR)
SELECT county FROM table_1404456_1 WHERE code = 2
what's the county with code being 2
CREATE TABLE table_1404456_1 (county VARCHAR, code VARCHAR)
SELECT original_title FROM table_name_72 WHERE director = "lene grønlykke and sven grønlykke"
What was the original title of the film directed by Lene Grønlykke and Sven Grønlykke?
CREATE TABLE table_name_72 (original_title VARCHAR, director VARCHAR)
SELECT attendance FROM table_28211103_1 WHERE st_kilda_score = "13.10.88"
What is the attendance when the st kilda score is 13.10.88?
CREATE TABLE table_28211103_1 (attendance VARCHAR, st_kilda_score VARCHAR)
SELECT original_air_date FROM table_11562143_1 WHERE us_viewers__million_ = "9.82"
What date got 9.82 million viewers?
CREATE TABLE table_11562143_1 (original_air_date VARCHAR, us_viewers__million_ VARCHAR)
SELECT loan_club FROM table_name_28 WHERE start_source = "bbc sport" AND started = "9 february"
what is the loan club with the start source is bbc sport and started on 9 february?
CREATE TABLE table_name_28 (loan_club VARCHAR, start_source VARCHAR, started VARCHAR)
SELECT college FROM table_name_62 WHERE pick > 101 AND position = "punter"
What school did the punter picked after 101 attend?
CREATE TABLE table_name_62 (college VARCHAR, pick VARCHAR, position VARCHAR)
SELECT MIN(no_in_season) FROM table_2618102_1 WHERE written_by = "Brad Markowitz, William N. Fordes & René Balcer"
Name the least number in season for brad markowitz, william n. fordes & rené balcer
CREATE TABLE table_2618102_1 (no_in_season INTEGER, written_by VARCHAR)
SELECT ground FROM table_27409644_1 WHERE club = "Flora Tallinn"
What is the home location for team flora tallinn?
CREATE TABLE table_27409644_1 (ground VARCHAR, club VARCHAR)
SELECT college_junior_club_team FROM table_1473672_6 WHERE player = "Derek Black"
What team did Derek Black Play for prior to being drafted?
CREATE TABLE table_1473672_6 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT record FROM table_name_5 WHERE high_rebounds = "antonio davis (9)"
What is the Record when the high rebounds was Antonio Davis (9)?
CREATE TABLE table_name_5 (record VARCHAR, high_rebounds VARCHAR)
SELECT MAX(draws) FROM table_name_1 WHERE goals_against > 33 AND losses = 13 AND goals_for < 51
What is the most draws when goals against are more than 33, losses are 13 and goals for is less than 51?
CREATE TABLE table_name_1 (draws INTEGER, goals_for VARCHAR, goals_against VARCHAR, losses VARCHAR)
SELECT record FROM table_name_92 WHERE date = "may 26"
On May 26, what was the team's record?
CREATE TABLE table_name_92 (record VARCHAR, date VARCHAR)
SELECT date FROM table_name_36 WHERE location_attendance = "madison square garden" AND game < 6 AND team = "seattle"
What is the date of the game located in Madison Square Garden, when the team is Seattle and the game number is less than 6?
CREATE TABLE table_name_36 (date VARCHAR, team VARCHAR, location_attendance VARCHAR, game VARCHAR)
SELECT AVG(draw) FROM table_name_86 WHERE points = 59
What is the draw number that has 59 points?
CREATE TABLE table_name_86 (draw INTEGER, points VARCHAR)
SELECT MIN(year) FROM table_name_12 WHERE team = "first team" AND position = "midfield"
What was the lowest year that a player from midfield won first team honors?
CREATE TABLE table_name_12 (year INTEGER, team VARCHAR, position VARCHAR)
SELECT first_name FROM Students WHERE current_address_id <> permanent_address_id
Whose permanent address is different from his or her current address? List his or her first name.
CREATE TABLE Students (first_name VARCHAR, current_address_id VARCHAR, permanent_address_id VARCHAR)
SELECT MIN(overall) FROM table_name_15 WHERE name = "tony baker"
Name the least overall for tony baker
CREATE TABLE table_name_15 (overall INTEGER, name VARCHAR)
SELECT pole_position FROM table_26137666_3 WHERE circuit = "Castle Combe" AND winning_driver = "Robbie Kerr"
What is every pole position for the Castle Combe circuit and Robbie Kerr is the winning driver?
CREATE TABLE table_26137666_3 (pole_position VARCHAR, circuit VARCHAR, winning_driver VARCHAR)
SELECT location FROM table_name_57 WHERE home_team = "honduras"
What is the location with Honduras is Home team?
CREATE TABLE table_name_57 (location VARCHAR, home_team VARCHAR)
SELECT round FROM table_name_11 WHERE club = "dundee united"
Which round did Dundee United end in?
CREATE TABLE table_name_11 (round VARCHAR, club VARCHAR)
SELECT AVG(year) FROM table_name_86 WHERE engine = "maserati straight-4"
What is the average year for Maserati Straight-4 Engines?
CREATE TABLE table_name_86 (year INTEGER, engine VARCHAR)
SELECT entered FROM table_14345690_4 WHERE famous_for = "Page 3 Model"
Name the entered for famous for page 3 model
CREATE TABLE table_14345690_4 (entered VARCHAR, famous_for VARCHAR)
SELECT acting_segment FROM table_name_36 WHERE status = "eliminated" AND name = "林佩琪 lin peiqi"
What's the acting segment of 林佩琪 lin peiqi's events that are eliminated?
CREATE TABLE table_name_36 (acting_segment VARCHAR, status VARCHAR, name VARCHAR)
SELECT date FROM table_name_67 WHERE competition = "rothmans cup"
What date was the Competition of rothmans cup?
CREATE TABLE table_name_67 (date VARCHAR, competition VARCHAR)
SELECT total_passengers FROM table_13836704_9 WHERE freight__metric_tonnes_ = 827
what's the total passengers with freight (metric tonnes) being 827
CREATE TABLE table_13836704_9 (total_passengers VARCHAR, freight__metric_tonnes_ VARCHAR)
SELECT MAX(lost) FROM table_name_93 WHERE drawn < 4 AND played < 9
Which Lost is the highest one that has a Drawn smaller than 4, and a Played smaller than 9?
CREATE TABLE table_name_93 (lost INTEGER, drawn VARCHAR, played VARCHAR)
SELECT reward FROM table_1272844_2 WHERE finish = "3rd voted Out Day 8"
Who received the reward on the episode where the finish was "3rd voted out day 8"?
CREATE TABLE table_1272844_2 (reward VARCHAR, finish VARCHAR)
SELECT player FROM table_name_61 WHERE caps > 16 AND date_of_birth__age_ = "1 february 1982"
Which player has a 1 February 1982 birthday and more than 16 caps?
CREATE TABLE table_name_61 (player VARCHAR, caps VARCHAR, date_of_birth__age_ VARCHAR)
SELECT county FROM table_12280396_1 WHERE elevation__m_ = 1262
What is the county with an elevation of 1262?
CREATE TABLE table_12280396_1 (county VARCHAR, elevation__m_ VARCHAR)
SELECT T2.name, AVG(T1.age) FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend GROUP BY T2.name ORDER BY AVG(T1.age) DESC LIMIT 1
Which person whose friends have the oldest average age?
CREATE TABLE PersonFriend (name VARCHAR, friend VARCHAR); CREATE TABLE Person (age INTEGER, name VARCHAR)
SELECT MIN(goals_against) FROM table_name_86 WHERE lost = 8 AND goals_for = 60
What is the smallest number of goals against when 8 games were lost, and the goals for are 60?
CREATE TABLE table_name_86 (goals_against INTEGER, lost VARCHAR, goals_for VARCHAR)
SELECT oberliga_südwest FROM table_14242137_4 WHERE oberliga_bayern = "SpVgg Unterhaching" AND season = "1988-89"
Name the oberliga sudwest for spvgg unterhaching for 1988-89
CREATE TABLE table_14242137_4 (oberliga_südwest VARCHAR, oberliga_bayern VARCHAR, season VARCHAR)
SELECT mountain_peak FROM table_name_17 WHERE location = "46.7000°n 60.5992°w"
Name the mountain peak with location of 46.7000°n 60.5992°w
CREATE TABLE table_name_17 (mountain_peak VARCHAR, location VARCHAR)
SELECT constructor FROM table_name_26 WHERE laps = 54
What is the make of the car that drove 54 laps?
CREATE TABLE table_name_26 (constructor VARCHAR, laps VARCHAR)
SELECT score FROM table_name_92 WHERE record = "32-37"
When the record was 32-37 what was the score?
CREATE TABLE table_name_92 (score VARCHAR, record VARCHAR)
SELECT school_club_team FROM table_name_97 WHERE round < 5 AND pick > 1 AND player = "reggie mckenzie"
Which School/Club Team has a Round smaller than 5, a Pick larger than 1, and a Player of reggie mckenzie?
CREATE TABLE table_name_97 (school_club_team VARCHAR, player VARCHAR, round VARCHAR, pick VARCHAR)
SELECT score FROM table_name_77 WHERE losing_team = "sydney roosters" AND total = 88
Which Score has a Losing Team of sydney roosters, and a Total of 88?
CREATE TABLE table_name_77 (score VARCHAR, losing_team VARCHAR, total VARCHAR)
SELECT MAX(pick__number) FROM table_26077092_7 WHERE player = "Andrew Quarless"
What was the pick number for Andrew Quarless?
CREATE TABLE table_26077092_7 (pick__number INTEGER, player VARCHAR)
SELECT date FROM table_name_72 WHERE outcome = "winner" AND surface = "grass"
What is Date, when Outcome is "Winner", and when Surface is "Grass"?
CREATE TABLE table_name_72 (date VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT voltage_center__v_ FROM table_name_76 WHERE s_spec_number = "sk096"
Which Voltage Center (V) has an S-Spec Number of sk096?
CREATE TABLE table_name_76 (voltage_center__v_ VARCHAR, s_spec_number VARCHAR)
SELECT home_team FROM table_name_6 WHERE away_team = "millwall"
Who was the home team in the match with an away team of Millwall?
CREATE TABLE table_name_6 (home_team VARCHAR, away_team VARCHAR)
SELECT result FROM table_name_47 WHERE category = "album of the year" AND year = 2011
What is the Result with a Category of album of the year in a Year that is 2011?
CREATE TABLE table_name_47 (result VARCHAR, category VARCHAR, year VARCHAR)
SELECT public_network FROM table_25042332_26 WHERE other_source = "0.1%" AND solar_panel = "0.0%" AND region = "Maule"
What is the percentage of public network in the region that has 0.1% other sources, 0.0% solar, and is named maule?
CREATE TABLE table_25042332_26 (public_network VARCHAR, region VARCHAR, other_source VARCHAR, solar_panel VARCHAR)
SELECT COUNT(shareholder_name) FROM table_206359_1 WHERE _percentage_of_capital = "2.39"
How many different shareholders have 2.39 % of capital?
CREATE TABLE table_206359_1 (shareholder_name VARCHAR, _percentage_of_capital VARCHAR)
SELECT MAX(february) FROM table_name_51 WHERE record = "34-14-4" AND game > 52
What is listed as the highest February with a Record of 34-14-4 and Game that's larger than 52?
CREATE TABLE table_name_51 (february INTEGER, record VARCHAR, game VARCHAR)
SELECT name FROM table_name_49 WHERE winning_team = "forsythe racing" AND pole_position = "bobby rahal"
Who won for Forsythe Racing when Bobby Rahal had pole position?
CREATE TABLE table_name_49 (name VARCHAR, winning_team VARCHAR, pole_position VARCHAR)
SELECT outcome FROM table_name_82 WHERE tournament = "edinburgh"
What was the outcome of the tournament in Edinburgh?
CREATE TABLE table_name_82 (outcome VARCHAR, tournament VARCHAR)
SELECT COUNT(DISTINCT gender) FROM dorm
Find the number of distinct gender for dorms.
CREATE TABLE dorm (gender VARCHAR)
SELECT directed_by FROM table_29574579_1 WHERE share___percentage_ = "11.8"
Who is the director when the share is 11.8?
CREATE TABLE table_29574579_1 (directed_by VARCHAR, share___percentage_ VARCHAR)
SELECT AVG(date) FROM table_name_29 WHERE record = "30-31-9" AND game > 70
What was the average date with a record of 30-31-9 in a game over 70?
CREATE TABLE table_name_29 (date INTEGER, record VARCHAR, game VARCHAR)
SELECT MIN(votes_khuzestan) FROM table_1827900_1 WHERE _percentage_of_votes_khuzestan = "34.50"
How many votes Khuzestan were there when the percentage was 34.50?
CREATE TABLE table_1827900_1 (votes_khuzestan INTEGER, _percentage_of_votes_khuzestan VARCHAR)
SELECT MAX(total_score) FROM table_23465011_5 WHERE average_ranking = 7
What is the total score when 7 is the average ranking?
CREATE TABLE table_23465011_5 (total_score INTEGER, average_ranking VARCHAR)
SELECT tournament FROM table_name_50 WHERE margin_of_victory = "7 strokes"
For which tournament was the margin of victory 7 strokes?
CREATE TABLE table_name_50 (tournament VARCHAR, margin_of_victory VARCHAR)
SELECT degree FROM table_name_90 WHERE award_year = 1965 AND award = "chemistry"
Tell me the degree for chemistry 1965
CREATE TABLE table_name_90 (degree VARCHAR, award_year VARCHAR, award VARCHAR)
SELECT type FROM table_name_1 WHERE issued = 1964
What type was issued in 1964?
CREATE TABLE table_name_1 (type VARCHAR, issued VARCHAR)
SELECT tournament FROM table_name_4 WHERE 2008 = "a" AND 2010 = "1r"
Which tournament had A in 2008, and a 1r in 2010?
CREATE TABLE table_name_4 (tournament VARCHAR)
SELECT p FROM table_17634290_7 WHERE type = "Free agent 1"
What is listed in p when the type is listed as free agent 1?
CREATE TABLE table_17634290_7 (p VARCHAR, type VARCHAR)
SELECT race_1 FROM table_15530244_5 WHERE race_3 = "8"
Name the race 1 when race 3 is 8
CREATE TABLE table_15530244_5 (race_1 VARCHAR, race_3 VARCHAR)
SELECT country FROM table_name_39 WHERE player = "adam scott"
Which country does Adam Scott play for?
CREATE TABLE table_name_39 (country VARCHAR, player VARCHAR)
SELECT score FROM table_name_11 WHERE home = "st. louis"
What did st. louis score at home?
CREATE TABLE table_name_11 (score VARCHAR, home VARCHAR)
SELECT transfer_fee FROM table_name_11 WHERE moving_to = "villa rio"
The player moving to Villa Rio has what transfer fee?
CREATE TABLE table_name_11 (transfer_fee VARCHAR, moving_to VARCHAR)
SELECT traditional FROM table_2135222_2 WHERE simplified = "宁陵县"
What is the traditional form for 宁陵县?
CREATE TABLE table_2135222_2 (traditional VARCHAR, simplified VARCHAR)
SELECT auckland FROM table_name_5 WHERE otago = "184 r.c. blunt & w. hawksworth v (c) 1931/32"
What is Auckland thats got Otago of 184 R.C. Blunt & W. Hawksworth V (C) 1931/32?
CREATE TABLE table_name_5 (auckland VARCHAR, otago VARCHAR)
SELECT player FROM table_name_11 WHERE school_country = "west virginia"
Which player has West Virginia listed as their school/country?
CREATE TABLE table_name_11 (player VARCHAR, school_country VARCHAR)
SELECT clubs FROM table_19412902_1 WHERE group_stage = 4 AND member_association = "Iran"
which club in group stage 4 had member association iran
CREATE TABLE table_19412902_1 (clubs VARCHAR, group_stage VARCHAR, member_association VARCHAR)
SELECT team FROM table_name_29 WHERE draw = "0"
What team had a draw of 0?
CREATE TABLE table_name_29 (team VARCHAR, draw VARCHAR)
SELECT result FROM table_name_54 WHERE venue = "stade général seyni kountché, niamey" AND competition = "friendly" AND date = "9 october 2012"
what is the result when the venue is stade général seyni kountché, niamey, the competition is friendly and the date is 9 october 2012?
CREATE TABLE table_name_54 (result VARCHAR, date VARCHAR, venue VARCHAR, competition VARCHAR)
SELECT original_name FROM table_name_17 WHERE film_title_used_in_nomination = "empire of passion"
What is the Original name of empire of passion?
CREATE TABLE table_name_17 (original_name VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT executions_in_effigie FROM table_name_26 WHERE tribunal = "lamego"
How man executions in effigie took place at the Lamego tribunal?
CREATE TABLE table_name_26 (executions_in_effigie VARCHAR, tribunal VARCHAR)
SELECT school_year FROM table_name_61 WHERE class_aAAA = dickinson
What School Year has a Class AAAA of Dickinson?
CREATE TABLE table_name_61 (school_year VARCHAR, class_aAAA VARCHAR, dickinson VARCHAR)
SELECT power__kw_ FROM table_name_83 WHERE location = "cebu"
What is the Power (kW) for the station located in Cebu?
CREATE TABLE table_name_83 (power__kw_ VARCHAR, location VARCHAR)
SELECT home_team FROM table_name_21 WHERE crowd > 30 OFFSET 080
Who played as the home team when the attendance was more than 30,080?
CREATE TABLE table_name_21 (home_team VARCHAR, crowd INTEGER)
SELECT _number FROM table_12032893_1 WHERE high_school = "Crockett"
Crockett High School had which number(#)?
CREATE TABLE table_12032893_1 (_number VARCHAR, high_school VARCHAR)
SELECT date FROM table_name_38 WHERE venue = "a" AND opponents = "leicester city"
On which date did they play Leicester City in Venue A?
CREATE TABLE table_name_38 (date VARCHAR, venue VARCHAR, opponents VARCHAR)
SELECT date FROM table_name_22 WHERE visitor = "san antonio spurs" AND score = "97-113"
When did the Visiting San Antonio Spurs score 97-113?
CREATE TABLE table_name_22 (date VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT COUNT(lost) FROM table_name_91 WHERE played < 34
What is the total number of Lost, when Played is less than 34?
CREATE TABLE table_name_91 (lost VARCHAR, played INTEGER)
SELECT new_team FROM table_name_27 WHERE round = "compensation-a" AND player = "frank catalanotto"
Which new team has a compensation-a round, and Frank Catalanotto as a player?
CREATE TABLE table_name_27 (new_team VARCHAR, round VARCHAR, player VARCHAR)
SELECT setting FROM table_24463470_1 WHERE difficulty = "Hard"
What is the setting for the hard difficulty?
CREATE TABLE table_24463470_1 (setting VARCHAR, difficulty VARCHAR)
SELECT sanskrt FROM table_name_38 WHERE japanese = "jayana"
Which SANSKRT has a JAPANESE of jayana?
CREATE TABLE table_name_38 (sanskrt VARCHAR, japanese VARCHAR)
SELECT original_air_date FROM table_20704243_6 WHERE season__number = 11
What was the original air date for season 11?
CREATE TABLE table_20704243_6 (original_air_date VARCHAR, season__number VARCHAR)
SELECT original_teams FROM table_name_77 WHERE name = "the biggest loser (season 1)"
What were the original teams for The Biggest Loser (Season 1)?
CREATE TABLE table_name_77 (original_teams VARCHAR, name VARCHAR)
SELECT DISTINCT t2.customer_details FROM policies AS t1 JOIN customers AS t2 ON t1.customer_id = t2.customer_id WHERE t1.policy_type_code = "Deputy"
Find the names of the customers who have an deputy policy.
CREATE TABLE policies (customer_id VARCHAR, policy_type_code VARCHAR); CREATE TABLE customers (customer_details VARCHAR, customer_id VARCHAR)
SELECT COUNT(high_rebounds) FROM table_22871316_11 WHERE series = "3-3"
How many high rebounds are in series 3-3?
CREATE TABLE table_22871316_11 (high_rebounds VARCHAR, series VARCHAR)
SELECT country FROM table_name_71 WHERE icao = "zgha"
Tell me the country with ICAO of zgha
CREATE TABLE table_name_71 (country VARCHAR, icao VARCHAR)
SELECT semi_finalist__number1 FROM table_11214772_1 WHERE runner_up = "Elon University"
who is the semi-finalist #1 where runner-up is elon university
CREATE TABLE table_11214772_1 (semi_finalist__number1 VARCHAR, runner_up VARCHAR)
SELECT away_team AS score FROM table_name_67 WHERE home_team = "south melbourne"
What was home team South Melbourne's opponents score?
CREATE TABLE table_name_67 (away_team VARCHAR, home_team VARCHAR)
SELECT game_site FROM table_name_98 WHERE week = "1"
Tell me the game site for week of 1
CREATE TABLE table_name_98 (game_site VARCHAR, week VARCHAR)
SELECT AVG(week) FROM table_name_74 WHERE attendance = "48,113"
Tell me the average week for attendance of 48,113
CREATE TABLE table_name_74 (week INTEGER, attendance VARCHAR)
SELECT ranking FROM table_299121_2 WHERE season = "2nd"
What was the 2nd's season's ranking?
CREATE TABLE table_299121_2 (ranking VARCHAR, season VARCHAR)
SELECT AVG(year) FROM table_name_46 WHERE round = "r128 (first round)"
What is Average Year, when Round is R128 (First Round)?
CREATE TABLE table_name_46 (year INTEGER, round VARCHAR)
SELECT COUNT(losses) FROM table_name_62 WHERE points = 11
How many losses have 11 points?
CREATE TABLE table_name_62 (losses VARCHAR, points VARCHAR)
SELECT status FROM table_name_8 WHERE country = "bel" AND transfer_window = "winter"
What is the status of bel with a Transfer window of winter?
CREATE TABLE table_name_8 (status VARCHAR, country VARCHAR, transfer_window VARCHAR)
SELECT position FROM table_name_55 WHERE year = 1981
What was the position in 1981?
CREATE TABLE table_name_55 (position VARCHAR, year VARCHAR)
SELECT MIN(crowd) FROM table_name_21 WHERE away_team = "collingwood"
WHAT WAS COLLINGWOOD'S LOWEST CROWD NUMBER WHEN PLAYING AS THE AWAY TEAM?
CREATE TABLE table_name_21 (crowd INTEGER, away_team VARCHAR)
SELECT ihsaa_class FROM table_name_2 WHERE school = "decatur central"
What kind of IHSAA Class has a School of decatur central?
CREATE TABLE table_name_2 (ihsaa_class VARCHAR, school VARCHAR)
SELECT COUNT(captain) FROM table_29398373_2 WHERE team = "Barcelona"
Name the number of captains for barcelona
CREATE TABLE table_29398373_2 (captain VARCHAR, team VARCHAR)
SELECT MIN(round) FROM table_name_6 WHERE location = "indiana, united states" AND method = "submission (guillotine choke)"
Can you tell me the lowest Round that has the Location of indiana, united states, and the Method of submission (guillotine choke)?
CREATE TABLE table_name_6 (round INTEGER, location VARCHAR, method VARCHAR)
SELECT COUNT(institution) FROM table_261895_1 WHERE founded = 1833
in 1833, how many institutions were created?
CREATE TABLE table_261895_1 (institution VARCHAR, founded VARCHAR)