answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT sat_28_aug FROM table_26986076_1 WHERE rank = 10
If the Rank is 10, what was the time on Sat aug 28?
CREATE TABLE table_26986076_1 (sat_28_aug VARCHAR, rank VARCHAR)
SELECT time FROM table_name_54 WHERE event = "100m freestyle"
What is the time of the 100m freestyle event?
CREATE TABLE table_name_54 (time VARCHAR, event VARCHAR)
SELECT april_28 FROM table_name_92 WHERE mar_24 = "17"
What is the April 28 rank when the Mar 24 is 17?
CREATE TABLE table_name_92 (april_28 VARCHAR, mar_24 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 winner_2nd FROM table_name_84 WHERE jockey = "c. symons"
WHo is Winner/2nd that has c. symons?
CREATE TABLE table_name_84 (winner_2nd VARCHAR, jockey VARCHAR)
SELECT semifinalists FROM table_30018460_1 WHERE country_territory = "Peru"
How many semifinalists where from peru?
CREATE TABLE table_30018460_1 (semifinalists VARCHAR, country_territory VARCHAR)
SELECT MAX(gore_hundred) FROM table_16677738_1 WHERE spelthorne_hundred = 12743
When 12743 is the spelthorne what is the largest gore hundred?
CREATE TABLE table_16677738_1 (gore_hundred INTEGER, spelthorne_hundred VARCHAR)
SELECT 2 AS nd_leg FROM table_name_49 WHERE team_2 = "barcelona"
What is the 2nd leg for Barcelona Team 2?
CREATE TABLE table_name_49 (team_2 VARCHAR)
SELECT MAX(a_score) FROM table_name_38 WHERE total < 15.95 AND position < 7 AND b_score > 8.225
What is the A score for the person with a total less than 15.95, position less than 7, and B score more than 8.225?
CREATE TABLE table_name_38 (a_score INTEGER, b_score VARCHAR, total VARCHAR, position VARCHAR)
SELECT horse FROM table_name_61 WHERE athlete = "britta näpel" AND result < 71.909
What horse was shown by with Britta Näpel and got less than 71.909?
CREATE TABLE table_name_61 (horse VARCHAR, athlete VARCHAR, result VARCHAR)
SELECT MAX(goal_difference) FROM table_name_54 WHERE played > 34
What is the highest goal difference of the club with more than 34 played?
CREATE TABLE table_name_54 (goal_difference INTEGER, played INTEGER)
SELECT opponent FROM table_name_89 WHERE week < 10 AND attendance = "63,672"
Which opponent, before Week 10, had an attendance of 63,672?
CREATE TABLE table_name_89 (opponent VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT week FROM table_name_44 WHERE tv_time = "cbs 1:00pm" AND attendance = "72,714"
Which Week has a TV Time of cbs 1:00pm, and an Attendance of 72,714?
CREATE TABLE table_name_44 (week VARCHAR, tv_time VARCHAR, attendance VARCHAR)
SELECT COUNT(*) FROM institution AS T1 JOIN protein AS T2 ON T1.institution_id = T2.institution_id WHERE T1.founded > 1880 OR T1.type = 'Private'
How many proteins are associated with an institution founded after 1880 or an institution with type "Private"?
CREATE TABLE institution (institution_id VARCHAR, founded VARCHAR, type VARCHAR); CREATE TABLE protein (institution_id VARCHAR)
SELECT website FROM table_name_33 WHERE ofsted < 106478 AND locality = "atherton"
What website has an Ofsted less than 106478 in Atherton?
CREATE TABLE table_name_33 (website VARCHAR, ofsted VARCHAR, locality VARCHAR)
SELECT first_name, last_name FROM employees WHERE salary > (SELECT salary FROM employees WHERE employee_id = 163)
What is the full name ( first name and last name ) for those employees who gets more salary than the employee whose id is 163?
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, salary INTEGER, employee_id VARCHAR)
SELECT winning_driver FROM table_name_15 WHERE circuit = "havana"
Name the winning driver for havana
CREATE TABLE table_name_15 (winning_driver VARCHAR, circuit VARCHAR)
SELECT record FROM table_name_38 WHERE date = "november 13, 1932"
What was the record at the game on November 13, 1932?
CREATE TABLE table_name_38 (record VARCHAR, date VARCHAR)
SELECT event FROM table_name_89 WHERE opponent = "ryan bow"
What event had the opponent Ryan Bow?
CREATE TABLE table_name_89 (event VARCHAR, opponent VARCHAR)
SELECT home_team AS score FROM table_name_87 WHERE home_team = "richmond"
Tell me the home team score for richmond home team
CREATE TABLE table_name_87 (home_team VARCHAR)
SELECT years_in_orlando FROM table_name_64 WHERE nationality = "united states" AND school_club_team = "concord hs"
What years in Orlando have the United States as the nationality, with concord hs as the school/club team?
CREATE TABLE table_name_64 (years_in_orlando VARCHAR, nationality VARCHAR, school_club_team VARCHAR)
SELECT COUNT(week) FROM table_name_89 WHERE opponent = "pittsburgh steelers"
How many weeks have pittsburgh steelers as the opponent?
CREATE TABLE table_name_89 (week VARCHAR, opponent VARCHAR)
SELECT date_of_transaction FROM TRANSACTIONS WHERE transaction_type_code = "SALE"
Show all dates of transactions whose type code is "SALE".
CREATE TABLE TRANSACTIONS (date_of_transaction VARCHAR, transaction_type_code VARCHAR)
SELECT release_date FROM table_name_28 WHERE title = "upswept hare"
What's the release date of Upswept Hare?
CREATE TABLE table_name_28 (release_date VARCHAR, title VARCHAR)
SELECT lost FROM table_name_49 WHERE drawn = "1" AND tries_against = "34"
What is the number of losses for the team with 1 draw and 34 tries against?
CREATE TABLE table_name_49 (lost VARCHAR, drawn VARCHAR, tries_against VARCHAR)
SELECT high_points FROM table_27902171_4 WHERE record = "8-5"
Who had the high point total when they were 8-5?
CREATE TABLE table_27902171_4 (high_points VARCHAR, record VARCHAR)
SELECT status FROM table_name_9 WHERE opposing_teams = "scotland"
What is the status with the opposing team of Scotland?
CREATE TABLE table_name_9 (status VARCHAR, opposing_teams VARCHAR)
SELECT COUNT(party) FROM table_1341690_5 WHERE district = "California 23"
How many parties won the election in the California 23 district?
CREATE TABLE table_1341690_5 (party VARCHAR, district VARCHAR)
SELECT arrival FROM table_name_62 WHERE station_name = "patna junction"
What is the Arrival time of the Patna Junction Station?
CREATE TABLE table_name_62 (arrival VARCHAR, station_name VARCHAR)
SELECT country FROM table_name_28 WHERE winter_olympics = "1948"
Which Country has a Winter Olympics of 1948?
CREATE TABLE table_name_28 (country VARCHAR, winter_olympics VARCHAR)
SELECT chi FROM table_15416002_1 WHERE nhc_advisory_number = "49B"
What is the CHI (Carvill Hurricane Index) when the NHC advisory number is equal to 49b?
CREATE TABLE table_15416002_1 (chi VARCHAR, nhc_advisory_number VARCHAR)
SELECT teleplay_by FROM table_26914076_4 WHERE directed_by = "Tim Robbins"
Who wrote the teleplay for the episode directed by Tim Robbins?
CREATE TABLE table_26914076_4 (teleplay_by VARCHAR, directed_by VARCHAR)
SELECT academic_ & _university_affairs FROM table_12113818_1 WHERE human_resources_ & _operations = "N. Charles Hamilton"
Who is the academic & University affairs when the Human resources & operations is N. Charles Hamilton?
CREATE TABLE table_12113818_1 (academic_ VARCHAR, _university_affairs VARCHAR, human_resources_ VARCHAR, _operations VARCHAR)
SELECT points FROM table_name_68 WHERE year > 1950 AND engine = "maserati straight-6"
What points larger than 1950 has a maserati straight-6 engine?
CREATE TABLE table_name_68 (points VARCHAR, year VARCHAR, engine VARCHAR)
SELECT state FROM table_name_98 WHERE rank__2012_ = 43
What is the state that has the 2012 rank of 43?
CREATE TABLE table_name_98 (state VARCHAR, rank__2012_ VARCHAR)
SELECT japanese_title FROM table_name_42 WHERE tv_station = "ntv" AND romaji_title = "kuitan 2"
What is the Japanese Title of the Episode on NTV Station with a Romaji Title of Kuitan 2?
CREATE TABLE table_name_42 (japanese_title VARCHAR, tv_station VARCHAR, romaji_title VARCHAR)
SELECT SUM(losses) FROM table_name_91 WHERE wins = 8 AND byes < 2
What's the total losses when there are 8 wins and less than 2 byes?
CREATE TABLE table_name_91 (losses INTEGER, wins VARCHAR, byes VARCHAR)
SELECT ground FROM table_name_73 WHERE away_team = "sydney"
What is Ground, when Away Team is Sydney?
CREATE TABLE table_name_73 (ground VARCHAR, away_team VARCHAR)
SELECT romani FROM table_name_44 WHERE domari = "na"
What is the Romani associated with a Domari of na?
CREATE TABLE table_name_44 (romani VARCHAR, domari VARCHAR)
SELECT winning_constructor FROM table_name_88 WHERE winning_driver = "riccardo patrese"
What was the constructor when riccardo patrese was the winning driver?
CREATE TABLE table_name_88 (winning_constructor VARCHAR, winning_driver VARCHAR)
SELECT round FROM table_name_42 WHERE kick_off = "1992-10-01 21:15"
Which round has a Kick Off of 1992-10-01 21:15?
CREATE TABLE table_name_42 (round VARCHAR, kick_off VARCHAR)
SELECT MIN(number) FROM table_name_48 WHERE college = "university of alabama"
What is the lowest Number, when College is "University of Alabama"?
CREATE TABLE table_name_48 (number INTEGER, college VARCHAR)
SELECT conference FROM table_name_71 WHERE school = "mayville state"
What conference has mayville state as the school?
CREATE TABLE table_name_71 (conference VARCHAR, school VARCHAR)
SELECT MAX(game) FROM table_22815259_1 WHERE record = "4-0"
Name the most game for record 4-0
CREATE TABLE table_22815259_1 (game INTEGER, record VARCHAR)
SELECT runner_up FROM table_name_60 WHERE tournament = "konica san jose classic"
Who was the runner up in the konica san jose classic Tournament?
CREATE TABLE table_name_60 (runner_up VARCHAR, tournament VARCHAR)
SELECT engine_† FROM table_name_98 WHERE rounds = "all" AND tyre = "m" AND driver = "david coulthard"
what is the engine when the rounds ar all, the tyre is m and the driver is david coulthard?
CREATE TABLE table_name_98 (engine_† VARCHAR, driver VARCHAR, rounds VARCHAR, tyre VARCHAR)
SELECT MAX(year) FROM table_name_70 WHERE category = "distinguished performance"
What is the latest year for the distinguished performance?
CREATE TABLE table_name_70 (year INTEGER, category VARCHAR)
SELECT DISTINCT T1.Address FROM CUSTOMER AS T1 JOIN INVOICE AS T2 ON T1.CustomerId = T2.CustomerId WHERE T1.country = "Germany"
Find the address of all customers that live in Germany and have invoice.
CREATE TABLE INVOICE (CustomerId VARCHAR); CREATE TABLE CUSTOMER (Address VARCHAR, CustomerId VARCHAR, country VARCHAR)
SELECT mens_doubles FROM table_28211988_1 WHERE mens_singles = "Ma Wenge"
Who is everyone on the men's doubles when men's singles is Ma Wenge?
CREATE TABLE table_28211988_1 (mens_doubles VARCHAR, mens_singles VARCHAR)
SELECT AVG(population) FROM table_name_83 WHERE median_household_income = "$87,832" AND number_of_households < 64 OFFSET 886
What is the population where the median household income is $87,832 and there are fewer than 64,886 households?
CREATE TABLE table_name_83 (population INTEGER, median_household_income VARCHAR, number_of_households VARCHAR)
SELECT year_clubhouse_constructed FROM table_name_3 WHERE sign_in_bicker = "bicker" AND name = "cannon club"
When was the Clubhouse built with a Sign-in/Bicker of bicker, and Named cannon club?
CREATE TABLE table_name_3 (year_clubhouse_constructed VARCHAR, sign_in_bicker VARCHAR, name VARCHAR)
SELECT MAX(bronze) FROM table_name_51 WHERE silver < 2 AND total > 4 AND rank = "33"
What's the bronze medal count for Rank 33 when the silver count was less than 2 and the total was more than 4?
CREATE TABLE table_name_51 (bronze INTEGER, rank VARCHAR, silver VARCHAR, total VARCHAR)
SELECT years_for_grizzlies FROM table_name_37 WHERE school_club_team = "villanova"
What are the years when the grizzles had a player who attended Villanova?
CREATE TABLE table_name_37 (years_for_grizzlies VARCHAR, school_club_team VARCHAR)
SELECT team FROM table_27713030_11 WHERE score = "W 94–88 (OT)"
Who was the opponent for the game with a score of w 94–88 (ot)?
CREATE TABLE table_27713030_11 (team VARCHAR, score VARCHAR)
SELECT AVG(top_10) FROM table_name_15 WHERE top_25 > 11 AND wins < 2
What is the average Top-10 with a greater than 11 Top-25 and a less than 2 wins?
CREATE TABLE table_name_15 (top_10 INTEGER, top_25 VARCHAR, wins VARCHAR)
SELECT SUM(fac___lc_apps) FROM table_name_11 WHERE pl_apps < 25 AND UEfa_yc < 0
What is the sum of the FAC/LC apps with less than 25 PC apps and a UEFA YC less than 0?
CREATE TABLE table_name_11 (fac___lc_apps INTEGER, pl_apps VARCHAR, UEfa_yc VARCHAR)
SELECT COUNT(incoming_manager) FROM table_26593762_3 WHERE team = "Burnley"
How many incoming managers did Burnley have?
CREATE TABLE table_26593762_3 (incoming_manager VARCHAR, team VARCHAR)
SELECT time__behind FROM table_name_44 WHERE jockey = "jose lezcano"
What is the Time/ Behind, when Jockey is "Jose Lezcano"?
CREATE TABLE table_name_44 (time__behind VARCHAR, jockey VARCHAR)
SELECT MAX(no_in_season) FROM table_19422702_1 WHERE production_code = 816
What is the latest season number for a show with a production code of 816?
CREATE TABLE table_19422702_1 (no_in_season INTEGER, production_code VARCHAR)
SELECT MIN(s_spoilt_vote) FROM table_1289762_1 WHERE constituency = "Sør-Trøndelag"
List the smallest possible spoilt vote with the sør-trøndelag constituency.
CREATE TABLE table_1289762_1 (s_spoilt_vote INTEGER, constituency VARCHAR)
SELECT division_southwest FROM table_name_4 WHERE division_north = "madžari solidarnost"
Who won Division Southwest when Madžari Solidarnost won Division North?
CREATE TABLE table_name_4 (division_southwest VARCHAR, division_north VARCHAR)
SELECT How_to_Get_There, COUNT(*) FROM Tourist_Attractions GROUP BY How_to_Get_There
Show different ways to get to attractions and the number of attractions that can be accessed in the corresponding way.
CREATE TABLE Tourist_Attractions (How_to_Get_There VARCHAR)
SELECT successor FROM table_225198_3 WHERE reason_for_change = "James Noble died in previous Congress"
Name the successor for james noble died in previous congress
CREATE TABLE table_225198_3 (successor VARCHAR, reason_for_change VARCHAR)
SELECT championship FROM table_24638867_4 WHERE partner = "Natasha Zvereva"
What championships had a match where Natasha Zvereva played as partner?
CREATE TABLE table_24638867_4 (championship VARCHAR, partner VARCHAR)
SELECT country FROM table_18862490_2 WHERE player = "Robert Allenby"
What country does robert allenby represent?
CREATE TABLE table_18862490_2 (country VARCHAR, player VARCHAR)
SELECT height_in_ft FROM table_11734041_1 WHERE years_for_rockets = "1992-93"
What height was the player that played for the Rockets between 1992-93?
CREATE TABLE table_11734041_1 (height_in_ft VARCHAR, years_for_rockets VARCHAR)
SELECT COUNT(Co) - singers FROM table_2528382_5 WHERE co_stars = "Parveen Babi"
How many co-singers were there when Parveen Babi co-starred?
CREATE TABLE table_2528382_5 (singers VARCHAR, Co VARCHAR, co_stars VARCHAR)
SELECT COUNT(opengl) FROM table_25839957_5 WHERE code_name = "Ironlake ( Clarkdale )"
How many opengl have the ironlake ( clarkdale ) code name?
CREATE TABLE table_25839957_5 (opengl VARCHAR, code_name VARCHAR)
SELECT valvetrain FROM table_name_77 WHERE fuel_system = "petrol engines"
What Valvetrain has a fuel system made up of petrol engines?
CREATE TABLE table_name_77 (valvetrain VARCHAR, fuel_system VARCHAR)
SELECT result FROM table_name_98 WHERE competition = "friendly match"
what team won the friendly match
CREATE TABLE table_name_98 (result VARCHAR, competition VARCHAR)
SELECT player FROM table_name_81 WHERE year_s__won = "1978"
Who is the player that won in the year 1978?
CREATE TABLE table_name_81 (player VARCHAR, year_s__won VARCHAR)
SELECT college FROM table_name_46 WHERE player = "matt freeman"
What college did Matt Freeman go to?
CREATE TABLE table_name_46 (college VARCHAR, player VARCHAR)
SELECT MIN(weight__kg_) FROM table_name_67 WHERE jersey__number = 10
What was the lowest Weight (kg) for a player that had Jersey #10?
CREATE TABLE table_name_67 (weight__kg_ INTEGER, jersey__number VARCHAR)
SELECT nationality FROM table_name_5 WHERE player = "cuttino mobley"
Cuttino Mobley is what nationality?
CREATE TABLE table_name_5 (nationality VARCHAR, player VARCHAR)
SELECT decision FROM table_name_4 WHERE visitor = "vancouver" AND score = "5 – 4"
Which Decision has a Visitor of vancouver, and a Score of 5 – 4?
CREATE TABLE table_name_4 (decision VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT COUNT(*) FROM book
How many books are there?
CREATE TABLE book (Id VARCHAR)
SELECT lifespan FROM table_name_56 WHERE imperial = "7ft 8 in" AND nationality = "fiji"
what is the lifespan when the imperial height is 7ft 8 in and the nationality is fiji?
CREATE TABLE table_name_56 (lifespan VARCHAR, imperial VARCHAR, nationality VARCHAR)
SELECT venue FROM table_name_79 WHERE competition = "mediterranean games" AND year > 2005
Where were the Mediterranean games after 2005?
CREATE TABLE table_name_79 (venue VARCHAR, competition VARCHAR, year VARCHAR)
SELECT status FROM table_name_29 WHERE name = "diogo"
What shows as the status for Diogo?
CREATE TABLE table_name_29 (status VARCHAR, name VARCHAR)
SELECT to_par FROM table_name_43 WHERE place = "3"
What is To Par, when Place is 3?
CREATE TABLE table_name_43 (to_par VARCHAR, place VARCHAR)
SELECT COUNT(l_apps) FROM table_19018191_5 WHERE total_g = 8
Name the number of apps for total g is 8
CREATE TABLE table_19018191_5 (l_apps VARCHAR, total_g VARCHAR)
SELECT MIN(year) FROM table_13050003_2 WHERE blocks = "Nerlens Noel (4)"
What year has Nerlens Noel (4) as blocker?
CREATE TABLE table_13050003_2 (year INTEGER, blocks VARCHAR)
SELECT title FROM table_2453243_5 WHERE production_code = "406"
What is the title of the episode with production code 406?
CREATE TABLE table_2453243_5 (title VARCHAR, production_code VARCHAR)
SELECT MAX(fall_09) FROM table_15055594_6 WHERE fall_07 = 3940
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 away_team FROM table_name_66 WHERE home_team = "st kilda"
Which away team played against the home team of St Kilda?
CREATE TABLE table_name_66 (away_team VARCHAR, home_team VARCHAR)
SELECT result FROM table_name_89 WHERE date = "september 13, 1998"
Where Date is september 13, 1998 what is result?
CREATE TABLE table_name_89 (result VARCHAR, date VARCHAR)
SELECT circuit FROM table_name_54 WHERE team = "r.j.macarthur onslow" AND city___state = "sydney , new south wales"
What is Circuit, when Team is "R.J.MacArthur Onslow", and when City / State is "Sydney , New South Wales"?
CREATE TABLE table_name_54 (circuit VARCHAR, team VARCHAR, city___state VARCHAR)
SELECT loans_received, _2q FROM table_name_95 WHERE total_receipts = "$25,328,694"
Name the loans received for 2Q having total receipts of $25,328,694
CREATE TABLE table_name_95 (loans_received VARCHAR, _2q VARCHAR, total_receipts VARCHAR)
SELECT MIN(m_v_ft_s) FROM table_16439764_1 WHERE max_height__ft_ = 23500
How many feet per second does a shell move where the height range is 23500?
CREATE TABLE table_16439764_1 (m_v_ft_s INTEGER, max_height__ft_ VARCHAR)
SELECT callsign FROM table_name_34 WHERE branding = "mom's radio 101.9 zamboanga"
What's the callsign of Mom's Radio 101.9 Zamboanga?
CREATE TABLE table_name_34 (callsign VARCHAR, branding VARCHAR)
SELECT city FROM table_name_62 WHERE name = "alianza"
Which city is Alianza?
CREATE TABLE table_name_62 (city VARCHAR, name VARCHAR)
SELECT away_team FROM table_name_5 WHERE home_team = "cheltenham town"
What is the away team when the home team is Cheltenham Town?
CREATE TABLE table_name_5 (away_team VARCHAR, home_team VARCHAR)
SELECT home_team FROM table_name_25 WHERE crowd > 4 OFFSET 000
Which home teams had crowds larger than 4,000?
CREATE TABLE table_name_25 (home_team VARCHAR, crowd INTEGER)
SELECT obama_percentage FROM table_20539826_1 WHERE mccain_number = 3648
What percentage of the votes did Obama get in the county where McCain got 3648 votes?
CREATE TABLE table_20539826_1 (obama_percentage VARCHAR, mccain_number VARCHAR)
SELECT COUNT(written_by) FROM table_27218002_1 WHERE originalairdate = "26 July 2010"
Name the total number of written by for 26 july 2010
CREATE TABLE table_27218002_1 (written_by VARCHAR, originalairdate VARCHAR)
SELECT rifle FROM table_name_94 WHERE german_gewehr_98 = "74cm"
What is the Rifle when the German Gewehr 98 is 74cm?
CREATE TABLE table_name_94 (rifle VARCHAR, german_gewehr_98 VARCHAR)
SELECT navigator FROM table_name_3 WHERE driver = "james"
What is the navigator for James?
CREATE TABLE table_name_3 (navigator VARCHAR, driver VARCHAR)
SELECT team FROM table_27734577_13 WHERE high_assists = "Josh Smith (8)"
What team was the opponent when josh smith (8) had the high assists?
CREATE TABLE table_27734577_13 (team VARCHAR, high_assists VARCHAR)
SELECT time FROM table_name_32 WHERE heat = 4 AND name = "liu limin"
What was Liu Limin's time in heat 4?
CREATE TABLE table_name_32 (time VARCHAR, heat VARCHAR, name VARCHAR)
SELECT position FROM table_2508633_2 WHERE pick__number = 39
Name the position for pick number 39
CREATE TABLE table_2508633_2 (position VARCHAR, pick__number VARCHAR)