answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT edition FROM table_27877656_7 WHERE outcome = "Loser" AND score = "6–2, 6–3"
For score 6–2, 6–3 and outcome is loser mention all the edition.
CREATE TABLE table_27877656_7 (edition VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT name FROM table_name_7 WHERE date_of_birth = "1982-01-29"
Who is born on 1982-01-29?
CREATE TABLE table_name_7 (name VARCHAR, date_of_birth VARCHAR)
SELECT school_club_team FROM table_15463188_16 WHERE number = "9"
Name the school/club team for 9
CREATE TABLE table_15463188_16 (school_club_team VARCHAR, number VARCHAR)
SELECT overall FROM table_13110459_2 WHERE rating = "1.4"
what are all the overall with rating being 1.4
CREATE TABLE table_13110459_2 (overall VARCHAR, rating VARCHAR)
SELECT date_of_vacancy FROM table_22297140_3 WHERE outgoing_manager = "Behtash Fariba"
What was the date in which Behtash Fariba left his team?
CREATE TABLE table_22297140_3 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT maryland FROM table_13012165_1 WHERE new_jersey = "Somerset Hills LL Bernardsville"
Who played in Maryland the same year that New Jersey hosted Somerset Hills LL Bernardsville?
CREATE TABLE table_13012165_1 (maryland VARCHAR, new_jersey VARCHAR)
SELECT player FROM table_name_81 WHERE finish = "t16"
Who had a finish of t16?
CREATE TABLE table_name_81 (player VARCHAR, finish VARCHAR)
SELECT record FROM table_name_81 WHERE attendance = "26,236"
For the game with 26,236 attendance, what was the record?
CREATE TABLE table_name_81 (record VARCHAR, attendance VARCHAR)
SELECT MIN(year) FROM table_22597626_1
When was John McEnroe's minimum year?
CREATE TABLE table_22597626_1 (year INTEGER)
SELECT city___state FROM table_name_42 WHERE series = "atcc round 4"
In what City/State did the ATCC Round 4 series take place?
CREATE TABLE table_name_42 (city___state VARCHAR, series VARCHAR)
SELECT original_channel FROM table_name_39 WHERE b_mountain_channel = "9"
What original channel is associated with B Mountain Channel 9?
CREATE TABLE table_name_39 (original_channel VARCHAR, b_mountain_channel VARCHAR)
SELECT MIN(all_around) FROM table_name_70 WHERE total = 19.85 AND hoop < 9.85
What is the smallest all around when the total is 19.85 and the hoop is less than 9.85?
CREATE TABLE table_name_70 (all_around INTEGER, total VARCHAR, hoop VARCHAR)
SELECT tournament_location FROM table_12243817_1 WHERE champion = "Vicky Hurst"
What is the tournament location when Vicky Hurst in the champion?
CREATE TABLE table_12243817_1 (tournament_location VARCHAR, champion VARCHAR)
SELECT t2.color_description FROM products AS t1 JOIN ref_colors AS t2 ON t1.color_code = t2.color_code GROUP BY t2.color_description ORDER BY COUNT(*) DESC LIMIT 1
What is the description of the color for most products?
CREATE TABLE ref_colors (color_description VARCHAR, color_code VARCHAR); CREATE TABLE products (color_code VARCHAR)
SELECT film FROM table_name_75 WHERE recipient = "bub ltd"
What film had Bub Ltd as the recipient?
CREATE TABLE table_name_75 (film VARCHAR, recipient VARCHAR)
SELECT outcome FROM table_name_89 WHERE opponent = "roger federer"
What is the outcome of the match with Roger Federer as the opponent?
CREATE TABLE table_name_89 (outcome VARCHAR, opponent VARCHAR)
SELECT country FROM table_name_21 WHERE film = "hi no tsugi ha rekishi"
What country is the film hi no tsugi ha rekishi from?
CREATE TABLE table_name_21 (country VARCHAR, film VARCHAR)
SELECT away_team AS score FROM table_name_3 WHERE home_team = "richmond"
What is the away side's score when richmond is at home?
CREATE TABLE table_name_3 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(episodes) FROM table_name_35 WHERE duration = "3"
How many episodes have a duration of 3?
CREATE TABLE table_name_35 (episodes VARCHAR, duration VARCHAR)
SELECT builder FROM table_name_15 WHERE date < 1913 AND length = "feet (m)" AND number = "15"
Which Builder has a Date smaller than 1913, and a Length of feet (m), and a Number of 15?
CREATE TABLE table_name_15 (builder VARCHAR, number VARCHAR, date VARCHAR, length VARCHAR)
SELECT MAX(pts) FROM table_name_90 WHERE engine = "ferrari tipo 033 v6 tc" AND year < 1987
How many points have an Engine of ferrari tipo 033 v6 tc, and a Year smaller than 1987?
CREATE TABLE table_name_90 (pts INTEGER, engine VARCHAR, year VARCHAR)
SELECT audition_city FROM table_22897967_1 WHERE callback_venue = "Hyatt Regency Chicago"
Name the audition city for hyatt regency chicago
CREATE TABLE table_22897967_1 (audition_city VARCHAR, callback_venue VARCHAR)
SELECT COUNT(*) FROM Students WHERE personal_name LIKE "%son%"
How many students have personal names that contain the word "son"?
CREATE TABLE Students (personal_name VARCHAR)
SELECT AVG(prize__) AS £k_ FROM table_name_33 WHERE race = "buttercross limited stakes"
What is the average prize for the Buttercross Limited Stakes?
CREATE TABLE table_name_33 (prize__ INTEGER, race VARCHAR)
SELECT sweet FROM table_26615633_3 WHERE voice_actor = "Saki Fujita"
what is the sweet for voice actor saki fujita?
CREATE TABLE table_26615633_3 (sweet VARCHAR, voice_actor VARCHAR)
SELECT points_for FROM table_name_31 WHERE played = "18" AND club = "bala rfc"
What points has 18 for the played and bala rfc as the club?
CREATE TABLE table_name_31 (points_for VARCHAR, played VARCHAR, club VARCHAR)
SELECT city FROM table_name_59 WHERE icao = "kiah"
Which city has an ICAO of Kiah?
CREATE TABLE table_name_59 (city VARCHAR, icao VARCHAR)
SELECT date FROM table_name_51 WHERE status = "tour match" AND against = 22
What day was the against 22 and the status tour match?
CREATE TABLE table_name_51 (date VARCHAR, status VARCHAR, against VARCHAR)
SELECT pole_position FROM table_27913160_3 WHERE race = "Detroit"
Who had the pole position in Detroit?
CREATE TABLE table_27913160_3 (pole_position VARCHAR, race VARCHAR)
SELECT date FROM table_name_47 WHERE week = 2
What is the Date of Week 2?
CREATE TABLE table_name_47 (date VARCHAR, week VARCHAR)
SELECT votes FROM table_name_90 WHERE opponent = "jeannemarie devolites davis" AND year = "1995-special"
How many votes did Jeannemarie Devolites Davis get in 1995-Special?
CREATE TABLE table_name_90 (votes VARCHAR, opponent VARCHAR, year VARCHAR)
SELECT 2008 FROM table_name_35 WHERE 2012 = "grand slam tournaments"
What was the 2008 value when 2012 was Grand Slam Tournaments?
CREATE TABLE table_name_35 (Id VARCHAR)
SELECT _number FROM table_19534677_1 WHERE creators = "Bill Finger Edmond Hamilton Dick Sprang , et al."
Name the # for bill finger edmond hamilton dick sprang , et al.
CREATE TABLE table_19534677_1 (_number VARCHAR, creators VARCHAR)
SELECT pick__number FROM table_name_45 WHERE player = "brent meeke"
What is the Pick # for brent meeke?
CREATE TABLE table_name_45 (pick__number VARCHAR, player VARCHAR)
SELECT loser FROM table_name_32 WHERE result = "35-27"
What was the Loser of the Game with a Result of 35-27?
CREATE TABLE table_name_32 (loser VARCHAR, result VARCHAR)
SELECT fastest_lap FROM table_1137718_2 WHERE grand_prix = "Mexican grand_prix"
What was the fastest lap at the Mexican Grand Prix?
CREATE TABLE table_1137718_2 (fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT y_ = _2008 FROM table_214479_8 WHERE expression = "Easter Day (Julian calendar)"
what is the y = 2008 when the expression is easter day (julian calendar)?
CREATE TABLE table_214479_8 (y_ VARCHAR, _2008 VARCHAR, expression VARCHAR)
SELECT MIN(attendance) FROM table_name_63 WHERE record = "34–51"
Which Attendance has a Record of 34–51?
CREATE TABLE table_name_63 (attendance INTEGER, record VARCHAR)
SELECT opponent FROM table_name_16 WHERE result = "l 24–3"
Which Opponent has a Result of l 24–3?
CREATE TABLE table_name_16 (opponent VARCHAR, result VARCHAR)
SELECT n117_2400_iec3 FROM table_name_10 WHERE n100_iec3 = "25"
What is the N117/2400 IEC3 associated with an N100IEC3 of 25?
CREATE TABLE table_name_10 (n117_2400_iec3 VARCHAR, n100_iec3 VARCHAR)
SELECT time FROM table_name_13 WHERE manufacturer = "aprilia" AND grid < 16 AND rider = "sandro cortese"
Name the Time which has a Manufacturer of aprilia, and a Grid smaller than 16, and a Rider of sandro cortese?
CREATE TABLE table_name_13 (time VARCHAR, rider VARCHAR, manufacturer VARCHAR, grid VARCHAR)
SELECT nfl_team FROM table_14649522_1 WHERE player = "Robert Brooks"
Which team does Robert Brooks play with?
CREATE TABLE table_14649522_1 (nfl_team VARCHAR, player VARCHAR)
SELECT percentage FROM table_name_27 WHERE first_game < 1997 AND lost < 2 AND played < 5
Which percentage has a first game before 1997, fewer than 2 losses, and fewer than 5 matches played?
CREATE TABLE table_name_27 (percentage VARCHAR, played VARCHAR, first_game VARCHAR, lost VARCHAR)
SELECT republican_ticket FROM table_name_25 WHERE democratic_ticket = "stanley h. fuld"
Which republican ticket has stanley h. fuld as the Democratic ticket?
CREATE TABLE table_name_25 (republican_ticket VARCHAR, democratic_ticket VARCHAR)
SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid = T2.aid WHERE T1.flno = 99
What is the aircraft name for the flight with number 99
CREATE TABLE Flight (aid VARCHAR, flno VARCHAR); CREATE TABLE Aircraft (name VARCHAR, aid VARCHAR)
SELECT transfer_window FROM table_name_46 WHERE moving_from = "são paulo"
What is the transfer window for the moving from of São Paulo?
CREATE TABLE table_name_46 (transfer_window VARCHAR, moving_from VARCHAR)
SELECT title FROM table_name_84 WHERE published_in = "astounding stories" AND main_characters = "grant calthorpe, lee neilan"
Name the title when the main characters are grant calthorpe, lee neilan and the published in of astounding stories
CREATE TABLE table_name_84 (title VARCHAR, published_in VARCHAR, main_characters VARCHAR)
SELECT MAX(week) FROM table_name_30 WHERE attendance = 48 OFFSET 510
Attendance of 48,510 had what highest week?
CREATE TABLE table_name_30 (week INTEGER, attendance VARCHAR)
SELECT score FROM table_name_15 WHERE place = "t4" AND player = "nick price"
What is T4 Place Player Nick Price's Score?
CREATE TABLE table_name_15 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT armor FROM table_27704991_1 WHERE special_weapon = "Grenado"
If the special weapon is the Grenado, what is the armor?
CREATE TABLE table_27704991_1 (armor VARCHAR, special_weapon VARCHAR)
SELECT shooter FROM table_name_40 WHERE score_points = "olympic silver medalist"
Which Shooter has Score points of olympic silver medalist?
CREATE TABLE table_name_40 (shooter VARCHAR, score_points VARCHAR)
SELECT COUNT(games) FROM table_name_41 WHERE tied < 15 AND goals_against < 186
How many games had a tied less 15 with goals against being fewer than 186?
CREATE TABLE table_name_41 (games VARCHAR, tied VARCHAR, goals_against VARCHAR)
SELECT player FROM table_name_86 WHERE country = "west germany"
What Player has a Country of west germany?
CREATE TABLE table_name_86 (player VARCHAR, country VARCHAR)
SELECT SUM(played) FROM table_name_65 WHERE position < 1
What is the total number of played for the entry with a position of less than 1?
CREATE TABLE table_name_65 (played INTEGER, position INTEGER)
SELECT player FROM table_name_4 WHERE score = 74 - 68 - 71 = 213
Name the player with score of 74-68-71=213
CREATE TABLE table_name_4 (player VARCHAR, score VARCHAR)
SELECT COUNT(swimsuit) FROM table_12338595_1 WHERE state = "Virginia"
What swimsuit score did the state of Virginia contestant achieve?
CREATE TABLE table_12338595_1 (swimsuit VARCHAR, state VARCHAR)
SELECT aggregate FROM table_25931938_1 WHERE dances = 7 AND known_for = "Singer"
What was the aggregate for the celebrity who was known for being a singer and had 7 dances?
CREATE TABLE table_25931938_1 (aggregate VARCHAR, dances VARCHAR, known_for VARCHAR)
SELECT district FROM table_name_3 WHERE weblink = "http://www.annauniv.edu" AND college_or_campus_name = "anna university - tiruchirappalli campus"
In which district is anna university - tiruchirappalli campus, whose website is http://www.annauniv.edu, located?
CREATE TABLE table_name_3 (district VARCHAR, weblink VARCHAR, college_or_campus_name VARCHAR)
SELECT COUNT(bronze) FROM table_name_31 WHERE total = 1 AND nation = "spain (esp)" AND gold > 0
How many bronzes have 1 as the total, with spain (esp) as the nation, and a gold greater than 0?
CREATE TABLE table_name_31 (bronze VARCHAR, gold VARCHAR, total VARCHAR, nation VARCHAR)
SELECT evening_gown FROM table_12094609_1 WHERE state = "South Dakota"
what's the evening gown where state is south dakota
CREATE TABLE table_12094609_1 (evening_gown VARCHAR, state VARCHAR)
SELECT court_rank FROM table_name_6 WHERE lineage = "son of norihiro"
What is the Court Rank of Son of Norihiro's Lineage?
CREATE TABLE table_name_6 (court_rank VARCHAR, lineage VARCHAR)
SELECT grid FROM table_name_88 WHERE driver = "menato boffa"
What was Menato Boffa's grid?
CREATE TABLE table_name_88 (grid VARCHAR, driver VARCHAR)
SELECT qual FROM table_name_78 WHERE rank = "9"
Name the qual for rank of 9
CREATE TABLE table_name_78 (qual VARCHAR, rank VARCHAR)
SELECT AVG(crowd) FROM table_name_81 WHERE away_team = "collingwood"
What is the average crowd size when Collingwood is the away team?
CREATE TABLE table_name_81 (crowd INTEGER, away_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 MIN(obama_number) FROM table_20799587_1 WHERE mccain_percentage = "72.75%"
How many people voted for Obama in the county where McCain got 72.75% of the votes?
CREATE TABLE table_20799587_1 (obama_number INTEGER, mccain_percentage VARCHAR)
SELECT country FROM table_name_26 WHERE fis_nordic_world_ski_championships < 1989 AND winter_olympics < 1980 AND holmenkollen = "1956"
Which country has a FIS Nordic World Ski Championship before 1989, was in the winter Olympics before 1980, and has a Holmenkollen of 1956?
CREATE TABLE table_name_26 (country VARCHAR, holmenkollen VARCHAR, fis_nordic_world_ski_championships VARCHAR, winter_olympics VARCHAR)
SELECT outgoing_manager FROM table_name_13 WHERE date_of_vacancy = "22 november"
Tell me the outgoing manager for 22 november date of vacancy
CREATE TABLE table_name_13 (outgoing_manager VARCHAR, date_of_vacancy VARCHAR)
SELECT MIN(goals_for) FROM table_name_35 WHERE goals_against = 75 AND drawn < 11
What is the fewest goals for when goals against is 75 and drawn is smaller than 11?
CREATE TABLE table_name_35 (goals_for INTEGER, goals_against VARCHAR, drawn VARCHAR)
SELECT rounds FROM table_name_75 WHERE motorcycle = "mv agusta f4 1000 mt"
Which round has the mv agusta f4 1000 mt?
CREATE TABLE table_name_75 (rounds VARCHAR, motorcycle VARCHAR)
SELECT area__km²_ FROM table_26321719_1 WHERE population_density = "100.8"
What is every value for area for population density of 100.8?
CREATE TABLE table_26321719_1 (area__km²_ VARCHAR, population_density VARCHAR)
SELECT SUM(attendance) FROM table_name_83 WHERE date = "april 17"
What was the attendance of april 17?
CREATE TABLE table_name_83 (attendance INTEGER, date VARCHAR)
SELECT d_47_o FROM table_name_80 WHERE d_48_o = "r 9"
Name the D 47 O with D 48 O of r 9
CREATE TABLE table_name_80 (d_47_o VARCHAR, d_48_o VARCHAR)
SELECT casualties FROM table_name_64 WHERE location = "baghlan"
What were the casualties in the Baghlan location?
CREATE TABLE table_name_64 (casualties VARCHAR, location VARCHAR)
SELECT MAX(pick__number) FROM table_name_81 WHERE overall = 228 AND round < 7
What is the highest pick # that has a 228 overall and a round less than 7?
CREATE TABLE table_name_81 (pick__number INTEGER, overall VARCHAR, round VARCHAR)
SELECT COUNT(legs_lost) FROM table_27906667_2 WHERE high_checkout = 101
How many legs were lost when the high checkout was 101?
CREATE TABLE table_27906667_2 (legs_lost VARCHAR, high_checkout VARCHAR)
SELECT MAX(crowd) FROM table_name_72 WHERE venue = "mcg"
What is the highest crowd at mcg?
CREATE TABLE table_name_72 (crowd INTEGER, venue VARCHAR)
SELECT MIN(lane) FROM table_name_50 WHERE mark = "7.26"
What was the lowest lane with a mark of 7.26?
CREATE TABLE table_name_50 (lane INTEGER, mark VARCHAR)
SELECT result FROM table_name_52 WHERE goals = "deacon 6/6"
I want the result for goals which has goals of deacon 6/6
CREATE TABLE table_name_52 (result VARCHAR, goals VARCHAR)
SELECT wins FROM table_name_77 WHERE flags > 6 AND draws > 10 AND club = "south warrnambool"
How many wins did South Warrnambool have that had more than 6 flags and a draw greater than 10?
CREATE TABLE table_name_77 (wins VARCHAR, club VARCHAR, flags VARCHAR, draws VARCHAR)
SELECT MAX(byes) FROM table_name_38 WHERE south_west_dfl = "heathmere" AND wins > 11
When the team Heathmere of the South West DFL won more than 11 games, what is the maximum byes?
CREATE TABLE table_name_38 (byes INTEGER, south_west_dfl VARCHAR, wins VARCHAR)
SELECT league FROM table_name_48 WHERE venue = "billesley common"
What kind of League has a Venue of billesley common?
CREATE TABLE table_name_48 (league VARCHAR, venue VARCHAR)
SELECT championship FROM table_name_8 WHERE runner_s__up = "louise suggs" AND margin = "3 strokes"
Which Championship was louise suggs the runner-up by 3 strokes?
CREATE TABLE table_name_8 (championship VARCHAR, runner_s__up VARCHAR, margin VARCHAR)
SELECT left_office FROM table_name_49 WHERE entered_office = "7 december 1916"
What date did the prime minister who entered office on 7 December 1916 leave office?
CREATE TABLE table_name_49 (left_office VARCHAR, entered_office VARCHAR)
SELECT opponent FROM table_name_87 WHERE rank = "3"
What is Opponent, when Rank is 3?
CREATE TABLE table_name_87 (opponent VARCHAR, rank VARCHAR)
SELECT Character FROM actor ORDER BY age DESC
What are the characters of actors in descending order of age?
CREATE TABLE actor (Character VARCHAR, age VARCHAR)
SELECT SUM(runs) FROM table_name_65 WHERE ovrs < 2 AND wkts > 0
What is the sum of the runs when the wkts were bigger than 0 and ovrs were smaller than 2?
CREATE TABLE table_name_65 (runs INTEGER, ovrs VARCHAR, wkts VARCHAR)
SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.driverid WHERE T1.name = "Australian Grand Prix" EXCEPT SELECT T3.forename, T3.surname FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid JOIN drivers AS T3 ON T2.driverid = T3.dr...
What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix?
CREATE TABLE races (raceid VARCHAR, name VARCHAR); CREATE TABLE drivers (forename VARCHAR, surname VARCHAR, driverid VARCHAR); CREATE TABLE results (raceid VARCHAR, driverid VARCHAR)
SELECT record FROM table_22871239_9 WHERE date = "March 16"
Name the record for march 16
CREATE TABLE table_22871239_9 (record VARCHAR, date VARCHAR)
SELECT race_leader FROM table_name_33 WHERE stage = "7"
Which race Leader has a Stage of 7?
CREATE TABLE table_name_33 (race_leader VARCHAR, stage VARCHAR)
SELECT incumbent FROM table_1342013_41 WHERE candidates = "Percy Priest (D) 90.8% Robert M. Donihi (R) 9.2%"
Who is the incumbent candidate in the election of percy priest (d) 90.8% robert m. donihi (r) 9.2%?
CREATE TABLE table_1342013_41 (incumbent VARCHAR, candidates VARCHAR)
SELECT visiting_team FROM table_name_10 WHERE date = "october 23"
What was the visiting team on october 23?
CREATE TABLE table_name_10 (visiting_team VARCHAR, date VARCHAR)
SELECT circuit FROM table_name_91 WHERE fastest_lap = "lorenzo bandini" AND pole_position = "lorenzo bandini"
On which circuit does lorenzo bandini have the fastest lap as well as the pole position?
CREATE TABLE table_name_91 (circuit VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
SELECT AVG(bronze) FROM table_name_58 WHERE total < 1
What is the number of bronze when the total is smaller than 1?
CREATE TABLE table_name_58 (bronze INTEGER, total INTEGER)
SELECT district FROM table_1341690_21 WHERE candidates = "Edward Boland (D) Unopposed"
what is the district with the candidates edward boland (d) unopposed?
CREATE TABLE table_1341690_21 (district VARCHAR, candidates VARCHAR)
SELECT written_by FROM table_17467578_1 WHERE episode__number = 11
Who wrote episode 11?
CREATE TABLE table_17467578_1 (written_by VARCHAR, episode__number VARCHAR)
SELECT team_name FROM table_18304058_2 WHERE sports = "Football" AND schools = "Elverado Trico"
What is the name of the team from the Elverado Trico school in football?
CREATE TABLE table_18304058_2 (team_name VARCHAR, sports VARCHAR, schools VARCHAR)
SELECT SUM(february) FROM table_name_57 WHERE opponent = "@ colorado rockies"
What day in February had an opponent of @ Colorado Rockies?
CREATE TABLE table_name_57 (february INTEGER, opponent VARCHAR)
SELECT incumbent FROM table_2668367_7 WHERE district = "Kentucky 8"
Who was the incumbent in the Kentucky 8 district?
CREATE TABLE table_2668367_7 (incumbent VARCHAR, district VARCHAR)
SELECT date FROM table_name_26 WHERE game > 10 AND score = "99-89"
On what date did a game higher than 10 have a score of 99-89?
CREATE TABLE table_name_26 (date VARCHAR, game VARCHAR, score VARCHAR)