answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT doha_, _qatar FROM table_name_17 WHERE snatch = "total"
What is the Doha, Qatar when the snatch is total?
CREATE TABLE table_name_17 (doha_ VARCHAR, _qatar VARCHAR, snatch VARCHAR)
SELECT venue FROM table_name_62 WHERE goal = 4
Which venue has a Goal of 4?
CREATE TABLE table_name_62 (venue VARCHAR, goal VARCHAR)
SELECT circuit FROM table_14638077_2 WHERE rnd = 5
what's the circuit with rnd being 5
CREATE TABLE table_14638077_2 (circuit VARCHAR, rnd VARCHAR)
SELECT h___a FROM table_name_53 WHERE opponents = "cork city"
What is the H/A when Cork City is the opponent?
CREATE TABLE table_name_53 (h___a VARCHAR, opponents VARCHAR)
SELECT field FROM table_name_7 WHERE date = "july 22"
What is the field of the game on July 22?
CREATE TABLE table_name_7 (field VARCHAR, date VARCHAR)
SELECT MIN(gold) FROM table_name_34 WHERE bronze > 6
Which Gold has a Bronze larger than 6?
CREATE TABLE table_name_34 (gold INTEGER, bronze INTEGER)
SELECT release_date FROM table_name_86 WHERE category = "utilities" AND developer = "microsoft" AND title = "chord finder"
What Release date has a Category of utilities, a Developer of microsoft, and a Title of chord finder?
CREATE TABLE table_name_86 (release_date VARCHAR, title VARCHAR, category VARCHAR, developer VARCHAR)
SELECT date_from FROM table_name_46 WHERE moving_to = "birmingham city"
What is Date From, when Moving To is "Birmingham City"?
CREATE TABLE table_name_46 (date_from VARCHAR, moving_to VARCHAR)
SELECT place FROM table_name_16 WHERE score = 73 - 68 - 71 = 212
What is the Place of the Player with a Score of 73-68-71=212?
CREATE TABLE table_name_16 (place VARCHAR, score VARCHAR)
SELECT venue FROM table_name_71 WHERE date = "10-09-2012"
What was the venue for the game on 10-09-2012?
CREATE TABLE table_name_71 (venue VARCHAR, date VARCHAR)
SELECT T1.country_code, T1.first_name FROM players AS T1 JOIN rankings AS T2 ON T1.player_id = T2.player_id ORDER BY T2.tours DESC LIMIT 1
Find the first name and country code of the player who did the most number of tours.
CREATE TABLE players (country_code VARCHAR, first_name VARCHAR, player_id VARCHAR); CREATE TABLE rankings (player_id VARCHAR, tours VARCHAR)
SELECT opponent FROM table_name_75 WHERE round > 1 AND event = "ufc 66"
Who was the opponent in UFC 66 who lasted for more than 1 round?
CREATE TABLE table_name_75 (opponent VARCHAR, round VARCHAR, event VARCHAR)
SELECT score FROM table_name_67 WHERE game > 6 AND october < 28
Name the score for game more than 6 and before october 28
CREATE TABLE table_name_67 (score VARCHAR, game VARCHAR, october VARCHAR)
SELECT COUNT(against) FROM table_name_59 WHERE venue = "h" AND date = "26 february 1949"
What is the total number of Against that were played in the H Venue on 26 february 1949?
CREATE TABLE table_name_59 (against VARCHAR, venue VARCHAR, date VARCHAR)
SELECT player FROM table_name_40 WHERE econ = "4.23"
Tell me the player with econ of 4.23
CREATE TABLE table_name_40 (player VARCHAR, econ VARCHAR)
SELECT champion FROM table_name_90 WHERE runner_up = "jimmy connors" AND year < 1978
Who was the champion earlier than 1978 when the runner-up was Jimmy Connors?
CREATE TABLE table_name_90 (champion VARCHAR, runner_up VARCHAR, year VARCHAR)
SELECT outcome FROM table_name_61 WHERE partner = "marcella mesker" AND score = "6–4, 4–6, 4–6"
What is the Outcome of the match with Partner Marcella Mesker and a Score of 6–4, 4–6, 4–6?
CREATE TABLE table_name_61 (outcome VARCHAR, partner VARCHAR, score VARCHAR)
SELECT college FROM table_name_2 WHERE name = "ray graves"
What college did Ray Graves attend?
CREATE TABLE table_name_2 (college VARCHAR, name VARCHAR)
SELECT MAX(injured) FROM table_name_14 WHERE place = "vaishali, bihar"
What was the highest number of people injured in incidents in Vaishali, Bihar?
CREATE TABLE table_name_14 (injured INTEGER, place VARCHAR)
SELECT MAX(losses) FROM table_name_20 WHERE wins > 13
What's the greatest losses for those with more than 13 wins?
CREATE TABLE table_name_20 (losses INTEGER, wins INTEGER)
SELECT rank FROM table_name_84 WHERE nationality = "japan"
What is the rank of Japan?
CREATE TABLE table_name_84 (rank VARCHAR, nationality VARCHAR)
SELECT SUM(grid) FROM table_name_61 WHERE time_retired = "1:46:42.3"
what is the grid when the time/retired is 1:46:42.3?
CREATE TABLE table_name_61 (grid INTEGER, time_retired VARCHAR)
SELECT nationality FROM table_name_47 WHERE position = "guard" AND school_club_team = "bowling green"
What is the nationality for the guard position from Bowling Green?
CREATE TABLE table_name_47 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR)
SELECT opponent FROM table_name_7 WHERE result = "iván navarro"
Who is iván navarro's opponent?
CREATE TABLE table_name_7 (opponent VARCHAR, result VARCHAR)
SELECT high_assists FROM table_name_4 WHERE game = 2
Who made the most assists in Game 2 of this season?
CREATE TABLE table_name_4 (high_assists VARCHAR, game VARCHAR)
SELECT COUNT(year) FROM table_name_31 WHERE engine = "maserati straight-6"
Which year has has a Engine of maserati straight-6?
CREATE TABLE table_name_31 (year VARCHAR, engine VARCHAR)
SELECT outgoing_head_coach FROM table_29171931_3 WHERE manner_of_departure = "Gardening leave 1"
Who are the outgoing head coaches whose manner of departure is Gardening Leave 1?
CREATE TABLE table_29171931_3 (outgoing_head_coach VARCHAR, manner_of_departure VARCHAR)
SELECT score FROM table_name_47 WHERE save = "smith (25)"
Which score has a save of Smith (25)?
CREATE TABLE table_name_47 (score VARCHAR, save VARCHAR)
SELECT draft FROM table_name_9 WHERE pick = "46"
In which year was the Pick #46?
CREATE TABLE table_name_9 (draft VARCHAR, pick VARCHAR)
SELECT standard_order FROM table_name_69 WHERE traditional_chinese = "國殤"
Which number is 國殤?
CREATE TABLE table_name_69 (standard_order VARCHAR, traditional_chinese VARCHAR)
SELECT model_number FROM table_name_86 WHERE voltage = "3.45 v" AND frequency = "133 mhz"
What is the Model Number, when the Voltage is 3.45 V, and when the Frequency is 133 MHZ?
CREATE TABLE table_name_86 (model_number VARCHAR, voltage VARCHAR, frequency VARCHAR)
SELECT competition FROM table_name_72 WHERE date = "6 december 2011"
What is the Competition with a Date with 6 december 2011?
CREATE TABLE table_name_72 (competition VARCHAR, date VARCHAR)
SELECT MIN(population) FROM table_176524_2 WHERE area_km_2 = "750.51"
What is the minimum population of the parish with a 750.51 km area?
CREATE TABLE table_176524_2 (population INTEGER, area_km_2 VARCHAR)
SELECT rules FROM table_name_26 WHERE method = "ko (punch)"
WHich Rules has a Method of ko (punch)?
CREATE TABLE table_name_26 (rules VARCHAR, method VARCHAR)
SELECT cospar_id FROM table_name_3 WHERE satellite = "ariel 3"
What is Ariel 3's COSPAR ID?
CREATE TABLE table_name_3 (cospar_id VARCHAR, satellite VARCHAR)
SELECT opponent FROM table_24814477_2 WHERE week = 8
Who was the opponent in Week 8?
CREATE TABLE table_24814477_2 (opponent VARCHAR, week VARCHAR)
SELECT icao FROM table_name_66 WHERE airport = "luqa airport"
What is the ICAO for luqa airport?
CREATE TABLE table_name_66 (icao VARCHAR, airport VARCHAR)
SELECT class FROM table_name_47 WHERE verb_meaning = "to nourish, to grow"
What is the class when the verb meaning is to nourish, to grow?
CREATE TABLE table_name_47 (class VARCHAR, verb_meaning VARCHAR)
SELECT name FROM scientists EXCEPT SELECT T3.name FROM assignedto AS T1 JOIN projects AS T2 ON T1.project = T2.code JOIN scientists AS T3 ON T1.scientist = T3.SSN WHERE T2.hours = (SELECT MAX(hours) FROM projects)
Find the names of scientists who are not working on the project with the highest hours.
CREATE TABLE scientists (name VARCHAR, SSN VARCHAR); CREATE TABLE assignedto (project VARCHAR, scientist VARCHAR); CREATE TABLE projects (code VARCHAR, hours INTEGER); CREATE TABLE scientists (name VARCHAR, hours INTEGER); CREATE TABLE projects (name VARCHAR, hours INTEGER)
SELECT performer_1 FROM table_name_31 WHERE date = "8 july 1994"
Date of 8 july 1994 involves which performer 1?
CREATE TABLE table_name_31 (performer_1 VARCHAR, date VARCHAR)
SELECT case_length FROM table_name_9 WHERE name = ".416 barrett"
A .416 barrett has which Case Length?
CREATE TABLE table_name_9 (case_length VARCHAR, name VARCHAR)
SELECT attendance FROM table_name_69 WHERE week < 5 AND result = "bye"
How many were in attendance in a week lower than 5 with a Bye result?
CREATE TABLE table_name_69 (attendance VARCHAR, week VARCHAR, result VARCHAR)
SELECT AVG(total_points) FROM table_name_29 WHERE rider = "dennis gavros" AND bonus_pts < 31
What was the average number of points with bonus pts less than 31 with the rider dennis gavros?
CREATE TABLE table_name_29 (total_points INTEGER, rider VARCHAR, bonus_pts 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 season FROM table_14242137_4 WHERE oberliga_bayern = "SpVgg Bayreuth" AND oberliga_südwest = "FSV Salmrohr"
Name the season for spvgg bayreuth and fsv salmrohr
CREATE TABLE table_14242137_4 (season VARCHAR, oberliga_bayern VARCHAR, oberliga_südwest VARCHAR)
SELECT year FROM table_name_2 WHERE round = "17"
Which year has a Round of 17?
CREATE TABLE table_name_2 (year VARCHAR, round VARCHAR)
SELECT COUNT(2 AS nd_runner_up) FROM table_20325360_2 WHERE rank = 3
The country, competing in the Mr. International competition, that holds a rank of 3, has how many 2nd runners up?
CREATE TABLE table_20325360_2 (rank VARCHAR)
SELECT party FROM table_1341738_6 WHERE incumbent = "Edwin Reinecke"
What party does incumbent edwin reinecke represent?
CREATE TABLE table_1341738_6 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(grid) FROM table_name_39 WHERE time_retired = "+1:21.239" AND laps > 25
How many grids have a time of +1:21.239 and more than 25 laps?
CREATE TABLE table_name_39 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
SELECT 3 AS ’utr_sequence FROM table_name_64 WHERE coding = "6a 3" AND genbank_id = "nm_001093770.2"
What was the 3’UTR sequence when Coding was 6a 3 and the GenBank id is nm_001093770.2?
CREATE TABLE table_name_64 (coding VARCHAR, genbank_id VARCHAR)
SELECT country FROM table_name_68 WHERE iata = "blq"
What country is the IATA BLQ located in?
CREATE TABLE table_name_68 (country VARCHAR, iata VARCHAR)
SELECT home_team FROM table_name_39 WHERE away_team = "hawthorn"
Who was the home team when Hawthorn was the away team?
CREATE TABLE table_name_39 (home_team VARCHAR, away_team VARCHAR)
SELECT record FROM table_11964047_7 WHERE score = "L 109–116 2 OT"
what records have a score of l 109–116 2 ot
CREATE TABLE table_11964047_7 (record VARCHAR, score VARCHAR)
SELECT COUNT(combination_classification) FROM table_15059783_1 WHERE points_classification = "Alessandro Petacchi" AND winner = "Erik Zabel"
How many combination classifications have the winner as Erik Zabel and a points classification as Alessandro Petacchi
CREATE TABLE table_15059783_1 (combination_classification VARCHAR, points_classification VARCHAR, winner VARCHAR)
SELECT album_s_ FROM table_23667534_1 WHERE episode_title = "Toy to the World" AND song_s__title = "Shimmy Jimmy"
What album was the song Shimmy Jimmy from the episode titled Toy to the world on?
CREATE TABLE table_23667534_1 (album_s_ VARCHAR, episode_title VARCHAR, song_s__title VARCHAR)
SELECT AVG(to_par) FROM table_name_20 WHERE player = "billy casper"
What is the average To Par, when Player is "Billy Casper"?
CREATE TABLE table_name_20 (to_par INTEGER, player VARCHAR)
SELECT home FROM table_name_69 WHERE away = "1-5"
What home has 1-5 as the away?
CREATE TABLE table_name_69 (home VARCHAR, away VARCHAR)
SELECT city_of_license FROM table_name_61 WHERE frequency = "103.3 fm"
What city is 103.3 FM licensed in?
CREATE TABLE table_name_61 (city_of_license VARCHAR, frequency VARCHAR)
SELECT COUNT(laps) FROM table_name_39 WHERE time = "collision" AND team = "switzerland" AND grid < 11
What is the total number of Laps when collision shows for time for Switzerland and less than 11 for grid?
CREATE TABLE table_name_39 (laps VARCHAR, grid VARCHAR, time VARCHAR, team VARCHAR)
SELECT couple FROM table_26375386_18 WHERE result = "Bottom two"
Who was the couple on the bottom two?
CREATE TABLE table_26375386_18 (couple VARCHAR, result VARCHAR)
SELECT country FROM table_name_60 WHERE year_s__won = "1977"
Which Country has a Year(s) won of 1977?
CREATE TABLE table_name_60 (country VARCHAR, year_s__won VARCHAR)
SELECT date FROM table_name_60 WHERE opponent_in_the_final = "antonio veić"
When did Mathieu play against Antonio Veić?
CREATE TABLE table_name_60 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT SUM(laps) FROM table_name_56 WHERE time = "+7.277" AND grid > 6
What is the total number of laps for the time of +7.277 and the grid number of more than 6?
CREATE TABLE table_name_56 (laps INTEGER, time VARCHAR, grid VARCHAR)
SELECT away_team FROM table_name_53 WHERE home_team = "mansfield town"
What is the Away team at Mansfield Town's Home game?
CREATE TABLE table_name_53 (away_team VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_83 WHERE away_team = "essendon"
When was the game at Essendon?
CREATE TABLE table_name_83 (date VARCHAR, away_team VARCHAR)
SELECT team_classification FROM table_25999087_2 WHERE points_classification = "Philippe Gilbert" AND mountains_classification = "Johnny Hoogerland" AND stage < 9.0
What is every team classification when points classification is Philippe Gilbert if mountains classification is Johnny Hoogerland and stage is less than 9.0?
CREATE TABLE table_25999087_2 (team_classification VARCHAR, stage VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR)
SELECT year FROM table_name_77 WHERE opponent = "geelong" AND player = "john roberts"
What year for geelong player john roberts?
CREATE TABLE table_name_77 (year VARCHAR, opponent VARCHAR, player VARCHAR)
SELECT _percentage_of_all_immigrants_2007 FROM table_23619212_1 WHERE _percentage_of_all_immigrants_2006 = "14.1%"
What's the percentage of the immigrants in 2007 in the country with 14.1% of the immigrants in 2006?
CREATE TABLE table_23619212_1 (_percentage_of_all_immigrants_2007 VARCHAR, _percentage_of_all_immigrants_2006 VARCHAR)
SELECT score1 FROM table_name_53 WHERE competition_or_tour = "friendly" AND match = 7
What is the score of the competition of friendly, at match 7?
CREATE TABLE table_name_53 (score1 VARCHAR, competition_or_tour VARCHAR, match VARCHAR)
SELECT g_hager FROM table_name_49 WHERE e_greenberg = "266 (14%)"
Name the G. Hager of E. Greenberg of 266 (14%)?
CREATE TABLE table_name_49 (g_hager VARCHAR, e_greenberg VARCHAR)
SELECT MAX(attendance) FROM table_name_43 WHERE date = "october 25"
Which Attendance has a Date of october 25?
CREATE TABLE table_name_43 (attendance INTEGER, date VARCHAR)
SELECT opponent FROM table_name_71 WHERE date = "june 15"
Who was the opponent on June 15?
CREATE TABLE table_name_71 (opponent VARCHAR, date VARCHAR)
SELECT socket FROM table_11602313_4 WHERE model_number = "Pentium Dual-Core T2410"
What is the socket for the pentium dual-core t2410?
CREATE TABLE table_11602313_4 (socket VARCHAR, model_number VARCHAR)
SELECT MAX(steals) FROM table_24856332_4 WHERE minutes = 324
What is the highest number of steals for a player with 324 minutes?
CREATE TABLE table_24856332_4 (steals INTEGER, minutes VARCHAR)
SELECT surface FROM table_name_22 WHERE tournament = "città di caltanissetta"
What surface was the città di caltanissetta played on?
CREATE TABLE table_name_22 (surface VARCHAR, tournament VARCHAR)
SELECT 1988 FROM table_name_19 WHERE 1994 = "a" AND 1987 = "3r"
What is the 1988 result that has a 1994 result of A, and 3r as the 1987 result?
CREATE TABLE table_name_19 (Id VARCHAR)
SELECT january FROM table_name_59 WHERE march = "alexandria karlsen"
Who is the January playmate with a March playmate Alexandria Karlsen?
CREATE TABLE table_name_59 (january VARCHAR, march VARCHAR)
SELECT location FROM table_name_58 WHERE built = "1869"
What is the Location of the Bridge Built in 1869?
CREATE TABLE table_name_58 (location VARCHAR, built VARCHAR)
SELECT wins FROM table_name_46 WHERE class = "500cc" AND year < 1975
Which Wins have a Class of 500cc, and a Year smaller than 1975?
CREATE TABLE table_name_46 (wins VARCHAR, class VARCHAR, year VARCHAR)
SELECT MAX(gdp_per_capita__us) AS $___2004_ FROM table_name_37 WHERE area__km²_ > 148825.6 AND state = "roraima"
Which GDP per capita (US$) (2004) is the highest one that has an Area (km²) larger than 148825.6, and a State of roraima?
CREATE TABLE table_name_37 (gdp_per_capita__us INTEGER, area__km²_ VARCHAR, state VARCHAR)
SELECT result FROM table_17928023_1 WHERE game_site = "Schaefer Stadium"
For game site Schaefer Stadium, what were the results?
CREATE TABLE table_17928023_1 (result VARCHAR, game_site VARCHAR)
SELECT expected_completion FROM table_name_15 WHERE capacity = "22,500"
What is the year of expected completion when the capacity is 22,500?
CREATE TABLE table_name_15 (expected_completion VARCHAR, capacity VARCHAR)
SELECT position FROM table_name_55 WHERE college = "california"
What position did the player have who was from the college of california?
CREATE TABLE table_name_55 (position VARCHAR, college VARCHAR)
SELECT goal_difference FROM table_name_29 WHERE goals_against < 54 AND goals_for > 51 AND points_1 = "63"
What is the goal difference where the goals against is less than 54, goals for is greater than 51 and points 1 is 63?
CREATE TABLE table_name_29 (goal_difference VARCHAR, points_1 VARCHAR, goals_against VARCHAR, goals_for VARCHAR)
SELECT score FROM table_name_68 WHERE opponent = "mardy fish"
What is the score where the opponent was Mardy Fish?
CREATE TABLE table_name_68 (score VARCHAR, opponent VARCHAR)
SELECT position FROM table_25352318_1 WHERE season = 2012 AND team = "Racing Engineering"
When racing engineering is the team and 2012 is the team what is the position?
CREATE TABLE table_25352318_1 (position VARCHAR, season VARCHAR, team VARCHAR)
SELECT year_made FROM table_name_98 WHERE fleet_number_s_ = "5000"
What is the Year for fleet number 5000?
CREATE TABLE table_name_98 (year_made VARCHAR, fleet_number_s_ VARCHAR)
SELECT record FROM table_name_87 WHERE game > 51 AND date = "1/27/1974"
What was the record after game 51 on 1/27/1974?
CREATE TABLE table_name_87 (record VARCHAR, game VARCHAR, date VARCHAR)
SELECT city FROM table_name_84 WHERE iata = "per"
PER is the IATA for which city?
CREATE TABLE table_name_84 (city VARCHAR, iata VARCHAR)
SELECT affiliation FROM table_1847523_2 WHERE station = "KMGH-TV"
What station is affiliated with kmgh-tv?
CREATE TABLE table_1847523_2 (affiliation VARCHAR, station VARCHAR)
SELECT station FROM table_name_74 WHERE channel_tv___dt__ = "3 (26)"
Which station has channel TV (DT) of 3 (26)?
CREATE TABLE table_name_74 (station VARCHAR, channel_tv___dt__ VARCHAR)
SELECT game FROM table_name_19 WHERE opponent = "miami heat"
Can you tell me the Game that has the Opponent of miami heat?
CREATE TABLE table_name_19 (game VARCHAR, opponent VARCHAR)
SELECT COUNT(year) FROM table_name_89 WHERE chassis = "kurtis kraft 4000" AND points > 2
Name the total number of year for chassis of kurtis kraft 4000 and points more than 2
CREATE TABLE table_name_89 (year VARCHAR, chassis VARCHAR, points VARCHAR)
SELECT batting_style FROM table_11950720_3 WHERE player = "Javagal Srinath"
What's Javagal Srinath's batting style?
CREATE TABLE table_11950720_3 (batting_style VARCHAR, player VARCHAR)
SELECT gp FROM table_15128839_22 WHERE ff = 0 AND qbh = 1
Name the gp for ff being 0 and qbh being 1
CREATE TABLE table_15128839_22 (gp VARCHAR, ff VARCHAR, qbh VARCHAR)
SELECT COUNT(gold) FROM table_name_57 WHERE rank = "1" AND total < 2
How many Gold medals for the country with a Rank of 1 and less than 2 Total medals?
CREATE TABLE table_name_57 (gold VARCHAR, rank VARCHAR, total VARCHAR)
SELECT nationality FROM table_name_64 WHERE ship = "willerby"
what is the nationality when the ship is willerby?
CREATE TABLE table_name_64 (nationality VARCHAR, ship VARCHAR)
SELECT week__number FROM table_name_18 WHERE original_artist = "the beatles" AND theme = "the beatles"
What is the Week # when the Beatles were the original artist and the theme was The Beatles?
CREATE TABLE table_name_18 (week__number VARCHAR, original_artist VARCHAR, theme VARCHAR)
SELECT COUNT(points) FROM table_12807904_5 WHERE points_against = "389"
What amount of points where points were 389?
CREATE TABLE table_12807904_5 (points VARCHAR, points_against VARCHAR)
SELECT name FROM table_15463188_16 WHERE school_club_team = "Visayas"
Name the name for visayas
CREATE TABLE table_15463188_16 (name VARCHAR, school_club_team VARCHAR)