answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT year FROM table_name_41 WHERE rank = "8" | Name the year for 8 rank | CREATE TABLE table_name_41 (year VARCHAR, rank VARCHAR) |
SELECT blagojevich__d_ FROM table_name_77 WHERE date = "october 16, 2006" | Which Blagojevich (D) happened on october 16, 2006? | CREATE TABLE table_name_77 (blagojevich__d_ VARCHAR, date VARCHAR) |
SELECT player FROM table_11677691_3 WHERE hometown = "Abilene, Texas" | What player's hometown is Abilene, Texas? | CREATE TABLE table_11677691_3 (player VARCHAR, hometown VARCHAR) |
SELECT school FROM table_name_76 WHERE ihsaa_class = "aaa" AND mascot = "saints" | Which School has an IHSAA Class of aaa, and a Mascot of saints? | CREATE TABLE table_name_76 (school VARCHAR, ihsaa_class VARCHAR, mascot VARCHAR) |
SELECT original_airdate FROM table_16581695_2 WHERE written_by = "Bob Goodman" | What is the original air date for the episode written by Bob Goodman? | CREATE TABLE table_16581695_2 (original_airdate VARCHAR, written_by VARCHAR) |
SELECT money___$__ FROM table_name_1 WHERE player = "jodie mudd" | How much money did jodie mudd get? | CREATE TABLE table_name_1 (money___$__ VARCHAR, player VARCHAR) |
SELECT AVG(points_for_higher) FROM table_name_25 WHERE points_for_ordinary = 0 AND grade = "ng" AND points_for_foundation < 0 | What average points for highers has 0 has points for ordinary, and Ng as the grade, and less than 0 as points for foundation? | CREATE TABLE table_name_25 (points_for_higher INTEGER, points_for_foundation VARCHAR, points_for_ordinary VARCHAR, grade VARCHAR) |
SELECT event FROM table_name_98 WHERE record = "4-0" | Which event led to a 4-0 record? | CREATE TABLE table_name_98 (event VARCHAR, record VARCHAR) |
SELECT MIN(year) FROM table_23259077_1 WHERE opponent_in_the_final = "Clark Graebner" | On what year did Newcombe first face Clark Graebner in a final match? | CREATE TABLE table_23259077_1 (year INTEGER, opponent_in_the_final VARCHAR) |
SELECT SUM(amount), T1.bname FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id GROUP BY T1.bname | Find the total amount of loans offered by each bank branch. | CREATE TABLE loan (branch_id VARCHAR); CREATE TABLE bank (bname VARCHAR, branch_id VARCHAR) |
SELECT AVG(points) FROM table_name_73 WHERE year < 1964 | What is the average points of the drivers before 1964? | CREATE TABLE table_name_73 (points INTEGER, year INTEGER) |
SELECT player FROM table_name_86 WHERE score = 72 - 70 - 66 = 208 | What Player's Score is 72-70-66=208? | CREATE TABLE table_name_86 (player VARCHAR, score VARCHAR) |
SELECT week_14__final__dec_7 FROM table_name_97 WHERE week_8_oct_26 = "florida (6-1)" | What is the week 14 (final) dec 7 standing with Florida (6-1) on week 8 Oct 26? | CREATE TABLE table_name_97 (week_14__final__dec_7 VARCHAR, week_8_oct_26 VARCHAR) |
SELECT frequency FROM table_name_47 WHERE voltage = "3.3 v" | What is the Frequency, when the Voltage is 3.3 V? | CREATE TABLE table_name_47 (frequency VARCHAR, voltage VARCHAR) |
SELECT tries_against FROM table_name_2 WHERE lost = "17" | How many tries against were there with 17 losses? | CREATE TABLE table_name_2 (tries_against VARCHAR, lost VARCHAR) |
SELECT date_of_birth FROM table_12134383_1 WHERE end_of_term = "5July1978" | what's the date of birth with end of term being 5july1978 | CREATE TABLE table_12134383_1 (date_of_birth VARCHAR, end_of_term VARCHAR) |
SELECT res FROM table_name_79 WHERE time = "15:00" AND opponent = "kiuma kunioku" | What was the resolution of the fight against kiuma kunioku with a time of 15:00? | CREATE TABLE table_name_79 (res VARCHAR, time VARCHAR, opponent VARCHAR) |
SELECT player FROM table_15621965_14 WHERE school_club_team = "Seattle" | Name the player for seattle | CREATE TABLE table_15621965_14 (player VARCHAR, school_club_team VARCHAR) |
SELECT score FROM table_23453931_8 WHERE points = 62 | What was the score when they had 62 points? | CREATE TABLE table_23453931_8 (score VARCHAR, points VARCHAR) |
SELECT result FROM table_name_60 WHERE horse = "toscane" AND event = "freestyle test" | What is the result for the Toscane Horse in the freestyle test? | CREATE TABLE table_name_60 (result VARCHAR, horse VARCHAR, event VARCHAR) |
SELECT location FROM table_name_7 WHERE built < 1872 AND name = "durfee mill no. 1" | What is the location of the Durfee Mill No. 1, built before 1872 ? | CREATE TABLE table_name_7 (location VARCHAR, built VARCHAR, name VARCHAR) |
SELECT venue FROM table_name_16 WHERE home_team = "hawthorn" | What venue is Hawthorn the home team at? | CREATE TABLE table_name_16 (venue VARCHAR, home_team VARCHAR) |
SELECT date FROM table_name_65 WHERE save = "aguilera (5)" | What was the date when the game had a save by Aguilera (5)? | CREATE TABLE table_name_65 (date VARCHAR, save VARCHAR) |
SELECT COUNT(year) FROM table_name_51 WHERE chassis = "coloni c3" | How many years was the chassis a Coloni C3? | CREATE TABLE table_name_51 (year VARCHAR, chassis VARCHAR) |
SELECT location_attendance FROM table_name_24 WHERE game > 35 AND date = "january 30" | What is the loaction attendance that has a game greater than 35, with January 30 as the date? | CREATE TABLE table_name_24 (location_attendance VARCHAR, game VARCHAR, date VARCHAR) |
SELECT result FROM table_name_11 WHERE week = 13 | On week 13 what was the score of the game? | CREATE TABLE table_name_11 (result VARCHAR, week VARCHAR) |
SELECT written_by FROM table_228973_11 WHERE original_air_date = "December 17, 2004" | The episode which originally aired on December 17, 2004 was written by whom? | CREATE TABLE table_228973_11 (written_by VARCHAR, original_air_date VARCHAR) |
SELECT MIN(top_5) FROM table_name_12 WHERE events < 0 | With events less than 0, what is the fewest Top-5? | CREATE TABLE table_name_12 (top_5 INTEGER, events INTEGER) |
SELECT player FROM table_name_47 WHERE round = 13 AND position = "center" | Who is the player from round 13 that plays center? | CREATE TABLE table_name_47 (player VARCHAR, round VARCHAR, position VARCHAR) |
SELECT score FROM table_name_40 WHERE place = "t8" AND player = "orville moody" | What is Score, when Place is "T8", and when Player is "Orville Moody"? | CREATE TABLE table_name_40 (score VARCHAR, place VARCHAR, player VARCHAR) |
SELECT 4 AS th_district FROM table_14123513_5 WHERE year = 1924 | Who was in the 4th district in 1924? | CREATE TABLE table_14123513_5 (year VARCHAR) |
SELECT method FROM table_name_71 WHERE opponent = "jerry bohlander" | I want to know the method for opponent of jerry bohlander | CREATE TABLE table_name_71 (method VARCHAR, opponent VARCHAR) |
SELECT COUNT(highest) FROM table_11206916_1 WHERE team = "Stenhousemuir" | The stenhousemuir team had how many highest attendances? | CREATE TABLE table_11206916_1 (highest VARCHAR, team VARCHAR) |
SELECT quantity_made FROM table_name_67 WHERE class = "waterford" | What is the quantity made of the locomotive with a Waterford class? | CREATE TABLE table_name_67 (quantity_made VARCHAR, class VARCHAR) |
SELECT state FROM table_name_25 WHERE city = "storrs" | Which state includes the city of Storrs? | CREATE TABLE table_name_25 (state VARCHAR, city VARCHAR) |
SELECT 2007 FROM table_name_92 WHERE 2003 = "ch callaway's copyright" | What is the 2007 with ch callaway's copyright in 2003? | CREATE TABLE table_name_92 (Id VARCHAR) |
SELECT city_of_license FROM table_name_56 WHERE status = "owned by coyote communications" | Which city station is owned by Coyote Communications? | CREATE TABLE table_name_56 (city_of_license VARCHAR, status VARCHAR) |
SELECT attendance FROM table_name_97 WHERE record = "20-11" | What is the attendance of the match with a record 20-11? | CREATE TABLE table_name_97 (attendance VARCHAR, record VARCHAR) |
SELECT best FROM table_name_33 WHERE team = "forsythe racing" AND name = "patrick carpentier" | What is the best time from patrick carpentier from the forsythe racing team? | CREATE TABLE table_name_33 (best VARCHAR, team VARCHAR, name VARCHAR) |
SELECT candidates FROM table_2668254_17 WHERE incumbent = "Joshua Sands" | Who were the running candidates when Joshua Sands was the incumbent? | CREATE TABLE table_2668254_17 (candidates VARCHAR, incumbent VARCHAR) |
SELECT gross FROM table_name_33 WHERE territory = "united kingdom" | What is the gross in the United Kingdom? | CREATE TABLE table_name_33 (gross VARCHAR, territory VARCHAR) |
SELECT event FROM table_name_50 WHERE result = "loss" AND record = "7-5" | what is the event when the result is loss and the record is 7-5? | CREATE TABLE table_name_50 (event VARCHAR, result VARCHAR, record VARCHAR) |
SELECT AVG(game) FROM table_name_52 WHERE date = "may 20" | What is the game number held on May 20? | CREATE TABLE table_name_52 (game INTEGER, date VARCHAR) |
SELECT drobo__2nd_ FROM table_name_17 WHERE drobo_5d = "2012-11-02" | Which Drobo (2nd) has a Drobo 5d of 2012-11-02? | CREATE TABLE table_name_17 (drobo__2nd_ VARCHAR, drobo_5d VARCHAR) |
SELECT SUM(score) FROM table_name_27 WHERE place = "t5" AND country = "united states" AND player = "jeff maggert" | Can you tell me the sum of Score that has the Place of t5, and the Country of united states, and the Player of jeff maggert? | CREATE TABLE table_name_27 (score INTEGER, player VARCHAR, place VARCHAR, country VARCHAR) |
SELECT season FROM table_22383603_1 WHERE finish__incl_championship_ = "April 18" | What season ended on April 18? | CREATE TABLE table_22383603_1 (season VARCHAR, finish__incl_championship_ VARCHAR) |
SELECT party FROM table_name_71 WHERE results_2004 = "0.00%" | Who had 0.00% in 2004? | CREATE TABLE table_name_71 (party VARCHAR, results_2004 VARCHAR) |
SELECT top_5 FROM table_2597876_2 WHERE avg_start = "21.9" | What is every value for top 5 if average start is 21.9? | CREATE TABLE table_2597876_2 (top_5 VARCHAR, avg_start VARCHAR) |
SELECT location FROM table_name_17 WHERE current_manager = "ariel jacobs" | Where is the location of the team with a current manager of Ariel Jacobs? | CREATE TABLE table_name_17 (location VARCHAR, current_manager VARCHAR) |
SELECT decision FROM table_27537518_9 WHERE record = "29-28-12" | Who made the decision on the game where the record was 29-28-12? | CREATE TABLE table_27537518_9 (decision VARCHAR, record VARCHAR) |
SELECT score FROM table_name_9 WHERE place = "t9" AND player = "harold mcspaden" | What was the score for t9 place for Harold Mcspaden? | CREATE TABLE table_name_9 (score VARCHAR, place VARCHAR, player VARCHAR) |
SELECT MIN(falcons_points) FROM table_16710971_2 WHERE opponent = "San Francisco 49ers" | In games where the opponent was the San Francisco 49ers what was the minimum amount of points scored? | CREATE TABLE table_16710971_2 (falcons_points INTEGER, opponent VARCHAR) |
SELECT MAX(first_elected) FROM table_1341930_11 WHERE incumbent = "James C. Davis" | What is the most first elected for james c. davis? | CREATE TABLE table_1341930_11 (first_elected INTEGER, incumbent VARCHAR) |
SELECT position FROM table_15463188_7 WHERE school_club_team = "San Beda" | Name the position for san beda | CREATE TABLE table_15463188_7 (position VARCHAR, school_club_team VARCHAR) |
SELECT position FROM table_25146455_1 WHERE points = 31 | What position did the driver earn 31 points? | CREATE TABLE table_25146455_1 (position VARCHAR, points VARCHAR) |
SELECT AVG(age) FROM Dogs WHERE dog_id IN (SELECT dog_id FROM Treatments) | What is the average age of the dogs who have gone through any treatments? | CREATE TABLE Dogs (age INTEGER, dog_id VARCHAR); CREATE TABLE Treatments (age INTEGER, dog_id VARCHAR) |
SELECT COUNT(*) FROM Church WHERE Open_Date < 1850 | How many churches opened before 1850 are there? | CREATE TABLE Church (Open_Date INTEGER) |
SELECT trigram FROM table_23406517_2 WHERE direction = "Northwest" | What is every trigram when direction is Northwest? | CREATE TABLE table_23406517_2 (trigram VARCHAR, direction VARCHAR) |
SELECT to_par FROM table_name_79 WHERE score = 71 - 71 - 70 - 73 = 285 | In the game that has a score of 71-71-70-73=285 what is the to par? | CREATE TABLE table_name_79 (to_par VARCHAR, score VARCHAR) |
SELECT position_in_2012 FROM table_name_93 WHERE last_title = "n/a" AND first_season = "2011" | what is the position is 2012 when the last title is n/a and the first season is 2011? | CREATE TABLE table_name_93 (position_in_2012 VARCHAR, last_title VARCHAR, first_season VARCHAR) |
SELECT COUNT(points_for) FROM table_25229283_4 WHERE percentage___percentage_ = "94.29" | How many data are on points for if the percentage is 94.29? | CREATE TABLE table_25229283_4 (points_for VARCHAR, percentage___percentage_ VARCHAR) |
SELECT district FROM table_1342379_23 WHERE candidates = "William Madison Whittington (D) Unopposed" | what's the district with candidates being william madison whittington (d) unopposed | CREATE TABLE table_1342379_23 (district VARCHAR, candidates VARCHAR) |
SELECT fte_teachers FROM table_1414743_1 WHERE pupil_teacher_ratio = "19" | How many FTE teachers are there when the student:teacher ration is 19? | CREATE TABLE table_1414743_1 (fte_teachers VARCHAR, pupil_teacher_ratio VARCHAR) |
SELECT feature FROM table_name_64 WHERE driving_force_ex = "no" AND driving_force_gt = "yes" AND driving_force_pro = "yes" | Driving Force EX of no, and a Driving Force GT of yes, and a Driving Force Pro of yes has what feature? | CREATE TABLE table_name_64 (feature VARCHAR, driving_force_pro VARCHAR, driving_force_ex VARCHAR, driving_force_gt VARCHAR) |
SELECT score FROM table_23486853_8 WHERE opponent = "Atlanta Thrashers" | What is every score for the opponent of Atlanta Thrashers? | CREATE TABLE table_23486853_8 (score VARCHAR, opponent VARCHAR) |
SELECT SUM(game) FROM table_name_82 WHERE team = "@ miami" | What number game was it that the Spurs were @ Miami? | CREATE TABLE table_name_82 (game INTEGER, team VARCHAR) |
SELECT arena__capacity_ FROM table_19526911_1 WHERE head_coach = "Roberto Serniotti" | What is the arena capacity of the arena in the town whose head coach is Roberto Serniotti? | CREATE TABLE table_19526911_1 (arena__capacity_ VARCHAR, head_coach VARCHAR) |
SELECT MAX(year) FROM table_name_91 WHERE score = "4–6, 6–3, 7–5" | What is the most recent year in which the score was 4–6, 6–3, 7–5? | CREATE TABLE table_name_91 (year INTEGER, score VARCHAR) |
SELECT MIN(league) FROM table_name_42 WHERE total < 284 AND name = "sandro mazzola" | Which league has total smaller than 284, with Sandro Mazzola league? | CREATE TABLE table_name_42 (league INTEGER, total VARCHAR, name VARCHAR) |
SELECT socialist_ticket FROM table_name_6 WHERE democratic_ticket = "george k. shuler" | What is the name on the Socialist ticket when the Democratic ticket is george k. shuler? | CREATE TABLE table_name_6 (socialist_ticket VARCHAR, democratic_ticket VARCHAR) |
SELECT score FROM table_name_98 WHERE date = "january 3, 2005" | What score has january 3, 2005 as the date? | CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR) |
SELECT MAX(year) FROM table_1570003_2 WHERE open_cup = "2nd Round" | What is the most recent year where team made it to 2nd round of the Open Cup? | CREATE TABLE table_1570003_2 (year INTEGER, open_cup VARCHAR) |
SELECT SUM(opening_weekend_net_gross) FROM table_name_8 WHERE studio_s_ = "utv motion pictures" | What's the sum of Opening Weekend Net Gross at the Studio of UTV Motion Pictures? | CREATE TABLE table_name_8 (opening_weekend_net_gross INTEGER, studio_s_ VARCHAR) |
SELECT average FROM table_2472711_31 WHERE total = 243017 | What is the average of the team where the total is 243017? | CREATE TABLE table_2472711_31 (average VARCHAR, total VARCHAR) |
SELECT first_broadcast FROM table_23292220_8 WHERE jasons_team = "Rhod Gilbert and Shappi Khorsandi" | What is the broadcast date where Jason's team is Rhod Gilbert and Shappi Khorsandi? | CREATE TABLE table_23292220_8 (first_broadcast VARCHAR, jasons_team VARCHAR) |
SELECT SUM(long) FROM table_name_11 WHERE gain < 379 AND avg_g = 0.8 | How many longs have a gain less than 379, and 0.8 as an avg/g? | CREATE TABLE table_name_11 (long INTEGER, gain VARCHAR, avg_g VARCHAR) |
SELECT score FROM table_name_66 WHERE outcome = "winner" AND date = "4 november 1990" | Which Score has aN Outcome of winner on 4 november 1990? | CREATE TABLE table_name_66 (score VARCHAR, outcome VARCHAR, date VARCHAR) |
SELECT COUNT(stage) FROM table_15294880_2 WHERE winner = "Alberto Contador" AND points_classification = "Alberto Contador" | How many stages were there where the winner and the points classification were Alberto Contador? | CREATE TABLE table_15294880_2 (stage VARCHAR, winner VARCHAR, points_classification VARCHAR) |
SELECT player FROM table_11545282_5 WHERE years_for_jazz = "1995-2000, 2004-05" | Which player played the years for Jazz in 1995-2000, 2004-05 | CREATE TABLE table_11545282_5 (player VARCHAR, years_for_jazz VARCHAR) |
SELECT district FROM table_2668374_18 WHERE incumbent = "John Dawson" | What district was John Dawson from? | CREATE TABLE table_2668374_18 (district VARCHAR, incumbent VARCHAR) |
SELECT manager FROM table_29250534_1 WHERE club = "FC Inter" | Who is the manager for the fc inter club? | CREATE TABLE table_29250534_1 (manager VARCHAR, club VARCHAR) |
SELECT driver FROM table_name_11 WHERE entrant = "fred saunders" | When the entrant is fred saunders what is the driver? | CREATE TABLE table_name_11 (driver VARCHAR, entrant VARCHAR) |
SELECT score FROM table_name_10 WHERE home = "edmonton" | What was the score when Edmonton was the home team? | CREATE TABLE table_name_10 (score VARCHAR, home VARCHAR) |
SELECT area_km² FROM table_name_92 WHERE density__hab_km²_ = "8,546.1" | What is the area of the city with a density of 8,546.1? | CREATE TABLE table_name_92 (area_km² VARCHAR, density__hab_km²_ VARCHAR) |
SELECT MIN(shirt_no) FROM table_name_63 WHERE birth_date = "april 12, 1986 (age27)" | What shirt No has a Birth Date of April 12, 1986 (age27)? | CREATE TABLE table_name_63 (shirt_no INTEGER, birth_date VARCHAR) |
SELECT club FROM table_name_4 WHERE goals = 0 | What club had 0 goals? | CREATE TABLE table_name_4 (club VARCHAR, goals VARCHAR) |
SELECT AVG(_number_of_national_votes) FROM table_name_30 WHERE election < 1992 AND _percentage_of_prefectural_vote = "39.5%" AND leader = "takeo fukuda" AND _number_of_seats_won > 63 | What is the average # Of National Votes, when the Election is before 1992, when the % Of Prefectural Vote is 39.5%, when Leader is Takeo Fukuda, and when # Of Seats Won is greater than 63? | CREATE TABLE table_name_30 (_number_of_national_votes INTEGER, _number_of_seats_won VARCHAR, leader VARCHAR, election VARCHAR, _percentage_of_prefectural_vote VARCHAR) |
SELECT COUNT(area__km²_) FROM table_298550_1 WHERE population_density__per_km²_ = "207.9" | How many entries for area correspond to a population density of 207.9? | CREATE TABLE table_298550_1 (area__km²_ VARCHAR, population_density__per_km²_ VARCHAR) |
SELECT COUNT(gold) FROM table_name_49 WHERE bronze = 1 AND total < 1 | What is the total number of gold medals of the nation with 1 bronze and less than 1 total medal? | CREATE TABLE table_name_49 (gold VARCHAR, bronze VARCHAR, total VARCHAR) |
SELECT population FROM table_170961_2 WHERE area_km_2 = "113.12" | at the area of 113.12, what was the population? | CREATE TABLE table_170961_2 (population VARCHAR, area_km_2 VARCHAR) |
SELECT major_users FROM table_29474407_11 WHERE name__designation = "Gordon Close-Support Weapon System" | Who are all the major users of the Gordon Close-Support Weapon System? | CREATE TABLE table_29474407_11 (major_users VARCHAR, name__designation VARCHAR) |
SELECT AVG(gold) FROM table_name_84 WHERE nation = "india" AND bronze < 0 | Which Gold has a Nation of india, and a Bronze smaller than 0? | CREATE TABLE table_name_84 (gold INTEGER, nation VARCHAR, bronze VARCHAR) |
SELECT original_air_date FROM table_18335117_5 WHERE director = "Barnaby Southcomb" AND writer = "Charlie Martin" | Name the original air date for barnaby southcomb for charlie martin | CREATE TABLE table_18335117_5 (original_air_date VARCHAR, director VARCHAR, writer VARCHAR) |
SELECT SUM(draws) FROM table_name_85 WHERE wins = 1 AND losses = 1 AND goal_differential = "+1" | How many draws have 1 win, 1 loss, and a Goal Differential of +1? | CREATE TABLE table_name_85 (draws INTEGER, goal_differential VARCHAR, wins VARCHAR, losses VARCHAR) |
SELECT place FROM table_name_22 WHERE to_par = "+2" AND score = 70 - 72 - 73 = 215 | What is the Place of the Player with a To par of +2 and a Score of 70-72-73=215? | CREATE TABLE table_name_22 (place VARCHAR, to_par VARCHAR, score VARCHAR) |
SELECT result FROM table_name_47 WHERE score = "1–0" AND competition = "2014 fifa world cup qualification" | What result has a Score of 1–0, and a Competition of 2014 fifa world cup qualification? | CREATE TABLE table_name_47 (result VARCHAR, score VARCHAR, competition VARCHAR) |
SELECT SUM(poles) FROM table_name_64 WHERE season < 2004 AND podiums < 1 | What is the sum of Poles, when Season is greater than 2004, and when Podiums is less than 1? | CREATE TABLE table_name_64 (poles INTEGER, season VARCHAR, podiums VARCHAR) |
SELECT result FROM table_name_1 WHERE year > 2002 | What is the result for a year later than 2002? | CREATE TABLE table_name_1 (result VARCHAR, year INTEGER) |
SELECT COUNT(innings) FROM table_name_68 WHERE runs = 1598 AND matches < 41 | What's the total Innings that has Runs of 1598, and Matches less than 41? | CREATE TABLE table_name_68 (innings VARCHAR, runs VARCHAR, matches VARCHAR) |
SELECT points FROM table_name_25 WHERE points_for = "points for" | What points has points for as points for? | CREATE TABLE table_name_25 (points VARCHAR, points_for VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.