answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT COUNT(week) FROM table_name_87 WHERE date = "bye" | What is the Week with a Date of Bye? | CREATE TABLE table_name_87 (week VARCHAR, date VARCHAR) |
SELECT MIN(season) FROM table_245694_4 WHERE us_open_cup = "Round of 32" | Name the least season for round of 32 | CREATE TABLE table_245694_4 (season INTEGER, us_open_cup VARCHAR) |
SELECT state_country FROM table_name_43 WHERE skipper = "ray roberts" | WHICH State/country that has ray roberts? | CREATE TABLE table_name_43 (state_country VARCHAR, skipper VARCHAR) |
SELECT result FROM table_1341604_10 WHERE district = "Florida 7" | what's the result with district being florida 7 | CREATE TABLE table_1341604_10 (result VARCHAR, district VARCHAR) |
SELECT first_round FROM table_name_14 WHERE members = "kenny smith" | What was the first round time for member Kenny Smith? | CREATE TABLE table_name_14 (first_round VARCHAR, members VARCHAR) |
SELECT COUNT(overall) FROM table_13758243_1 WHERE player = "Jerry Hill" | What numer pick in the draft for jerry hill? | CREATE TABLE table_13758243_1 (overall VARCHAR, player VARCHAR) |
SELECT replaced_by FROM table_name_49 WHERE manner_of_departure = "end of contract" AND date_of_appointment = "dec. 16, 2008" | What kind of Replaced has a Manner of departure of end of contract on dec. 16, 2008? | CREATE TABLE table_name_49 (replaced_by VARCHAR, manner_of_departure VARCHAR, date_of_appointment VARCHAR) |
SELECT MIN(no_in_season) FROM table_13336122_3 WHERE no_in_series = 22 | What's the smallest episode number of an episode whose number in the series is 22? | CREATE TABLE table_13336122_3 (no_in_season INTEGER, no_in_series VARCHAR) |
SELECT lead FROM table_name_18 WHERE season = "2007-08" | Which lead had a season of 2007-08? | CREATE TABLE table_name_18 (lead VARCHAR, season VARCHAR) |
SELECT country FROM table_name_60 WHERE score = 73 - 68 = 141 | What is Country, when Score is "73-68=141"? | CREATE TABLE table_name_60 (country VARCHAR, score VARCHAR) |
SELECT first_year FROM table_name_41 WHERE title = "popgun" | What is the first year for Popgun? | CREATE TABLE table_name_41 (first_year VARCHAR, title VARCHAR) |
SELECT MAX(winners) FROM table_12303563_2 | how many maximum winners | CREATE TABLE table_12303563_2 (winners INTEGER) |
SELECT MAX(goals_against) FROM table_name_21 WHERE points > 25 AND club = "sd indautxu" AND position > 3 | What is the highest Goals Against, when Points is greater than 25, when Club is "SD Indautxu", and when Position is greater than 3? | CREATE TABLE table_name_21 (goals_against INTEGER, position VARCHAR, points VARCHAR, club VARCHAR) |
SELECT AVG(lost) FROM table_name_49 WHERE points > 108 | What average lost has points greater than 108? | CREATE TABLE table_name_49 (lost INTEGER, points INTEGER) |
SELECT location FROM table_name_66 WHERE opponent = "kevin knabjian" | What was the location of the fight when Gassaway fought kevin knabjian? | CREATE TABLE table_name_66 (location VARCHAR, opponent VARCHAR) |
SELECT traffic_direction FROM table_name_94 WHERE street = "97th street" | What is the traffic direction of 97th street? | CREATE TABLE table_name_94 (traffic_direction VARCHAR, street VARCHAR) |
SELECT second_runner_up FROM table_name_46 WHERE miss_universe_philippines = "bianca manalo" | When Bianca Manalo won Miss Universe Philippines who was the second runner-up? | CREATE TABLE table_name_46 (second_runner_up VARCHAR, miss_universe_philippines VARCHAR) |
SELECT score FROM table_name_32 WHERE third_place = "michael stich" | What was the score in the tournament in which Michael Stich took third place? | CREATE TABLE table_name_32 (score VARCHAR, third_place VARCHAR) |
SELECT candidates FROM table_1341472_12 WHERE incumbent = "Charlie Norwood" | Who were the candidates in the district where Charlie Norwood is the incumbent? | CREATE TABLE table_1341472_12 (candidates VARCHAR, incumbent VARCHAR) |
SELECT district FROM table_name_90 WHERE party = "republican" AND results = "re-elected" AND first_elected = 2000 | What Republican District had Incumbent First Elected in 2000 then Re-elected? | CREATE TABLE table_name_90 (district VARCHAR, first_elected VARCHAR, party VARCHAR, results VARCHAR) |
SELECT date FROM table_name_16 WHERE wickets = "chris gayle caught kapali" | Wickets of chris gayle caught kapali happened on what date? | CREATE TABLE table_name_16 (date VARCHAR, wickets VARCHAR) |
SELECT MAX(year) FROM table_name_29 WHERE finish = 51 AND start < 64 | What is the highest Year, when Finish is "51", and when Start is less than 64? | CREATE TABLE table_name_29 (year INTEGER, finish VARCHAR, start VARCHAR) |
SELECT position FROM table_2850912_7 WHERE nhl_team = "Los Angeles Kings" | What is the postion when the nhl team is los angeles kings? | CREATE TABLE table_2850912_7 (position VARCHAR, nhl_team VARCHAR) |
SELECT result FROM table_1341897_45 WHERE incumbent = "Walter E. Rogers" | What was the result of the election in which Walter E. Rogers was the incumbent? | CREATE TABLE table_1341897_45 (result VARCHAR, incumbent VARCHAR) |
SELECT high_rebounds FROM table_17288825_6 WHERE team = "@ New Orleans" | When @ new orleans is the team who has the highest amount of rebounds? | CREATE TABLE table_17288825_6 (high_rebounds VARCHAR, team VARCHAR) |
SELECT closure_date FROM table_name_96 WHERE on_air_date = "june 2003" | When was the ensemble closed that went on air in June 2003? | CREATE TABLE table_name_96 (closure_date VARCHAR, on_air_date VARCHAR) |
SELECT position FROM table_name_67 WHERE pick < 33 AND player = "darrell arthur" | WHAT POSITION HAS A PICK SMALLER THAN 33, AND PLAYER BEING DARRELL ARTHUR? | CREATE TABLE table_name_67 (position VARCHAR, pick VARCHAR, player VARCHAR) |
SELECT team FROM table_name_64 WHERE driver = "viktor jensen" | what is the team when the driver is viktor jensen? | CREATE TABLE table_name_64 (team VARCHAR, driver VARCHAR) |
SELECT 2009 FROM table_name_75 WHERE 2006 = "q1" AND tournament = "french open" | What is the 2009 value with a q1 in 2006 in the French Open? | CREATE TABLE table_name_75 (tournament VARCHAR) |
SELECT MAX(draws) FROM table_name_85 WHERE lexton_plains = "skipton" AND against > 1212 | Which Draws have a Lexton Plains of skipton, and an Against larger than 1212? | CREATE TABLE table_name_85 (draws INTEGER, lexton_plains VARCHAR, against VARCHAR) |
SELECT guest FROM table_name_98 WHERE attendance = 3 | Who was the guest when attendance was 3? | CREATE TABLE table_name_98 (guest VARCHAR, attendance VARCHAR) |
SELECT season__number FROM table_24961421_1 WHERE us_viewers__millions_ = "12.23" | What number in the season was the episode with 12.23 million viewers? | CREATE TABLE table_24961421_1 (season__number VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT class FROM table_name_35 WHERE call_sign = "w254ah" | \What is the class of the station with the call sign w254ah? | CREATE TABLE table_name_35 (class VARCHAR, call_sign VARCHAR) |
SELECT COUNT(interview) FROM table_11690135_1 WHERE country = "Virginia" | How many interviews were there for Miss Virginia? | CREATE TABLE table_11690135_1 (interview VARCHAR, country VARCHAR) |
SELECT date FROM table_name_28 WHERE against > 0 | Which Date has an Against larger than 0? | CREATE TABLE table_name_28 (date VARCHAR, against INTEGER) |
SELECT customer_status_code, COUNT(*) FROM Customers GROUP BY customer_status_code | List all customer status codes and the number of customers having each status code. | CREATE TABLE Customers (customer_status_code VARCHAR) |
SELECT date FROM table_name_29 WHERE home = "hamilton wildcats" | What is the Date with a Home that is hamilton wildcats? | CREATE TABLE table_name_29 (date VARCHAR, home VARCHAR) |
SELECT MIN(attendance) FROM table_name_27 WHERE venue = "h" AND round = "r2" | What is the lowest attendance at Venue H in Round R2? | CREATE TABLE table_name_27 (attendance INTEGER, venue VARCHAR, round VARCHAR) |
SELECT SUM(attendance) FROM table_name_16 WHERE week < 1 | What is the total attendance before week 1? | CREATE TABLE table_name_16 (attendance INTEGER, week INTEGER) |
SELECT writer FROM table_name_2 WHERE company = "bbv" AND title = "the year of the cat" | Who was the writer of The Year of the Cat from the BBV? | CREATE TABLE table_name_2 (writer VARCHAR, company VARCHAR, title VARCHAR) |
SELECT eliminated AS by FROM table_name_18 WHERE tag_team = "jindrak and cade" | Which Eliminated has a Tag Team of jindrak and cade? | CREATE TABLE table_name_18 (eliminated VARCHAR, tag_team VARCHAR) |
SELECT score FROM table_17288845_9 WHERE game = 66 | Name the score for game 66 | CREATE TABLE table_17288845_9 (score VARCHAR, game VARCHAR) |
SELECT COUNT(pubs_2011) FROM table_167354_2 WHERE location = "Chennai" | How many figures are given for pubs 2011 in Chennai? | CREATE TABLE table_167354_2 (pubs_2011 VARCHAR, location VARCHAR) |
SELECT episode FROM table_23292220_6 WHERE jasons_team = "Duncan James and Johnny Vegas" | Name the episode(s) that featured Duncan James and Johnny Vegas as Jason's team. | CREATE TABLE table_23292220_6 (episode VARCHAR, jasons_team VARCHAR) |
SELECT career_caps FROM table_name_73 WHERE position = "half-back" AND tests > 3 | What is the career caps for half-back, when tests is more than 3? | CREATE TABLE table_name_73 (career_caps VARCHAR, position VARCHAR, tests VARCHAR) |
SELECT COUNT(three_pointers) FROM table_23184448_4 WHERE points = 67 | Name the number of three pointers for 67 | CREATE TABLE table_23184448_4 (three_pointers VARCHAR, points VARCHAR) |
SELECT health FROM table_145439_1 WHERE justice = "80.7" | what's the health score with justice being 80.7 | CREATE TABLE table_145439_1 (health VARCHAR, justice VARCHAR) |
SELECT time FROM table_name_86 WHERE opponent = "phil collins" | What is the time when the opponent is phil collins? | CREATE TABLE table_name_86 (time VARCHAR, opponent VARCHAR) |
SELECT emp_jobcode, COUNT(*) FROM employee GROUP BY emp_jobcode ORDER BY COUNT(*) DESC LIMIT 1 | Find the count and code of the job has most employees. | CREATE TABLE employee (emp_jobcode VARCHAR) |
SELECT writer_s_ FROM table_17810099_3 WHERE episode__number = "14" | who wrote episode 14? | CREATE TABLE table_17810099_3 (writer_s_ VARCHAR, episode__number VARCHAR) |
SELECT COUNT(position) FROM table_name_26 WHERE played > 12 | How many positions have a played greater than 12? | CREATE TABLE table_name_26 (position VARCHAR, played INTEGER) |
SELECT pos FROM table_27514362_7 WHERE car_make = "Pontiac" AND driver = "Bobby Hamilton" | What is the finish position for cars by Pontiac driven by Bobby Hamilton? | CREATE TABLE table_27514362_7 (pos VARCHAR, car_make VARCHAR, driver VARCHAR) |
SELECT opponent FROM table_name_30 WHERE week = 6 | Who was the opponent in week 6? | CREATE TABLE table_name_30 (opponent VARCHAR, week VARCHAR) |
SELECT Prime AS minister FROM table_name_68 WHERE term_in_office = "344 days" | Which Prime Minister's served a term of 344 days? | CREATE TABLE table_name_68 (Prime VARCHAR, term_in_office VARCHAR) |
SELECT donator_name FROM endowment EXCEPT SELECT donator_name FROM endowment WHERE amount < 9 | Show the names of all the donors except those whose donation amount less than 9. | CREATE TABLE endowment (donator_name VARCHAR, amount INTEGER) |
SELECT nfl_team FROM table_name_19 WHERE college = "washington" | WHich team draft the player who went to college in Washington? | CREATE TABLE table_name_19 (nfl_team VARCHAR, college VARCHAR) |
SELECT score FROM table_name_85 WHERE surface = "hard" AND outcome = "runner-up" | what is the score when the surface is hard and outcome is runner-up? | CREATE TABLE table_name_85 (score VARCHAR, surface VARCHAR, outcome VARCHAR) |
SELECT home_team AS score FROM table_16387653_1 WHERE home_team = "Footscray" | What to Footscray score at home? | CREATE TABLE table_16387653_1 (home_team VARCHAR) |
SELECT AVG(attendance) FROM table_name_26 WHERE opponent = "atlanta braves" AND date = "september 9" | Name the attendance for atlanta braves opponent for september 9 | CREATE TABLE table_name_26 (attendance INTEGER, opponent VARCHAR, date VARCHAR) |
SELECT date FROM table_name_90 WHERE away_team = "st kilda" | What date is st kilda the Away team? | CREATE TABLE table_name_90 (date VARCHAR, away_team VARCHAR) |
SELECT course FROM table_name_76 WHERE type = "mountain stage" AND date = "3 june" | Which course had a mountain stage type on 3 June? | CREATE TABLE table_name_76 (course VARCHAR, type VARCHAR, date VARCHAR) |
SELECT T1.id, T1.Name FROM medicine AS T1 JOIN medicine_enzyme_interaction AS T2 ON T2.medicine_id = T1.id GROUP BY T1.id HAVING COUNT(*) >= 2 | What are the ids and names of the medicine that can interact with two or more enzymes? | CREATE TABLE medicine_enzyme_interaction (medicine_id VARCHAR); CREATE TABLE medicine (id VARCHAR, Name VARCHAR) |
SELECT COUNT(san_jose_wins) FROM table_name_43 WHERE la_goals > 6 AND la_wins < 21 | How many San Jose wins have an LA goals larger than 6, and an LA wins smaller than 21? | CREATE TABLE table_name_43 (san_jose_wins VARCHAR, la_goals VARCHAR, la_wins VARCHAR) |
SELECT COUNT(number_of_electorates__2009_) FROM table_name_94 WHERE district = "sheopur" AND constituency_number = "1" | Which Number of electorates (2009) has a District of sheopur, and a Constituency number of 1? | CREATE TABLE table_name_94 (number_of_electorates__2009_ VARCHAR, district VARCHAR, constituency_number VARCHAR) |
SELECT fname FROM student WHERE city_code = 'PHL' AND age BETWEEN 20 AND 25 | Find the first name of students living in city PHL whose age is between 20 and 25. | CREATE TABLE student (fname VARCHAR, city_code VARCHAR, age VARCHAR) |
SELECT COUNT(episodes) FROM table_name_22 WHERE season_no = 1 | How may episodes did season 1 have? | CREATE TABLE table_name_22 (episodes VARCHAR, season_no VARCHAR) |
SELECT SUM(losses) FROM table_name_75 WHERE portland_dfl = "westerns" AND draws > 1 | What is the total number of losses that has draws larger than 1 and a Portland DFL of westerns? | CREATE TABLE table_name_75 (losses INTEGER, portland_dfl VARCHAR, draws VARCHAR) |
SELECT MAX(overall) FROM table_name_62 WHERE position = "rb" AND round = 8 | During round 8 when the Position being picked was rb, what was the highest overall pick? | CREATE TABLE table_name_62 (overall INTEGER, position VARCHAR, round VARCHAR) |
SELECT COUNT(sub_parish__sokn_) FROM table_178408_1 WHERE year_built = 1865 | Name the total number for sub parish sokn for 1865 | CREATE TABLE table_178408_1 (sub_parish__sokn_ VARCHAR, year_built VARCHAR) |
SELECT COUNT(general_classification) FROM table_15294880_2 WHERE team_classification = "Quick Step" | When the team classification was quick step, what was the total number of general classifications? | CREATE TABLE table_15294880_2 (general_classification VARCHAR, team_classification VARCHAR) |
SELECT athlete FROM table_name_66 WHERE data = "214.061km" | Who has a walking data of 214.061km? | CREATE TABLE table_name_66 (athlete VARCHAR, data VARCHAR) |
SELECT total FROM table_22014431_3 WHERE tosses_pyramids = "44" | What is the total if 44 is tosses/pyramids? | CREATE TABLE table_22014431_3 (total VARCHAR, tosses_pyramids VARCHAR) |
SELECT score FROM table_name_53 WHERE bowl_game = "insight bowl" | What was the score of the Insight Bowl? | CREATE TABLE table_name_53 (score VARCHAR, bowl_game VARCHAR) |
SELECT _number_of_bids FROM table_name_98 WHERE conference = "atlantic 10" | How many bids does Atlantic 10 have? | CREATE TABLE table_name_98 (_number_of_bids VARCHAR, conference VARCHAR) |
SELECT mon_26_may FROM table_14209455_1 WHERE fri_30_may = "18' 28.27 122.599mph" | what time is mon may 26 and fri may 30 is 18' 28.27 122.599mph? | CREATE TABLE table_14209455_1 (mon_26_may VARCHAR, fri_30_may VARCHAR) |
SELECT MIN(uefa_champions_league) FROM table_name_9 WHERE la_liga = 17 AND copa_del_rey > 0 | Which UEFA Champions League has a La Liga of 17, and a Copa del Rey larger than 0? | CREATE TABLE table_name_9 (uefa_champions_league INTEGER, la_liga VARCHAR, copa_del_rey VARCHAR) |
SELECT location_attendance FROM table_name_5 WHERE game > 64 AND date = "march 16" | How many attended the game on march 16 after over 64 games? | CREATE TABLE table_name_5 (location_attendance VARCHAR, game VARCHAR, date VARCHAR) |
SELECT result FROM table_name_85 WHERE competition = "world cup qualifying" AND date = "march 21, 1954" | Which Result has a Competition of world cup qualifying, and a Date of march 21, 1954? | CREATE TABLE table_name_85 (result VARCHAR, competition VARCHAR, date VARCHAR) |
SELECT dialcode FROM table_name_11 WHERE location = "edmonton" | What Dialcode has a location of Edmonton? | CREATE TABLE table_name_11 (dialcode VARCHAR, location VARCHAR) |
SELECT country FROM table_name_80 WHERE lane > 6 AND mark = "6.63" | Which country has a lane greater than 6 and a mark of 6.63? | CREATE TABLE table_name_80 (country VARCHAR, lane VARCHAR, mark VARCHAR) |
SELECT COUNT(stage) FROM table_name_22 WHERE arrival = "son bou" | Which stage number did son bou arrive at? | CREATE TABLE table_name_22 (stage VARCHAR, arrival VARCHAR) |
SELECT winning_score FROM table_name_23 WHERE date = "may 3, 1998" | What was the winning score on May 3, 1998? | CREATE TABLE table_name_23 (winning_score VARCHAR, date VARCHAR) |
SELECT MIN(round4) FROM table_16815824_1 WHERE team = "team Toshiba" | What was team Toshiba's round 4 score? | CREATE TABLE table_16815824_1 (round4 INTEGER, team VARCHAR) |
SELECT round FROM table_name_19 WHERE year < 1987 | What is the round for a year earlier than 1987? | CREATE TABLE table_name_19 (round VARCHAR, year INTEGER) |
SELECT MIN(points) FROM table_19722233_5 WHERE blocks = 21 | what is the lowest points scored by a player who blocked 21 times | CREATE TABLE table_19722233_5 (points INTEGER, blocks VARCHAR) |
SELECT score FROM table_name_18 WHERE opponents_in_the_final = "marcelo filippini mark koevermans" | WHich Score has marcelo filippini mark koevermans? | CREATE TABLE table_name_18 (score VARCHAR, opponents_in_the_final VARCHAR) |
SELECT sport FROM table_name_22 WHERE club = "montgomery biscuits" | Which sport had the club of the Montgomery Biscuits? | CREATE TABLE table_name_22 (sport VARCHAR, club VARCHAR) |
SELECT time_retired FROM table_name_85 WHERE laps < 62 AND constructor = "ferrari" | What time did the ferrari car that finished 62 laps have? | CREATE TABLE table_name_85 (time_retired VARCHAR, laps VARCHAR, constructor VARCHAR) |
SELECT transmitting_from FROM table_name_15 WHERE coverage = "yucatán quintana roo campeche" | Where is the station with a coverage of yucatán quintana roo campeche transmitting from? | CREATE TABLE table_name_15 (transmitting_from VARCHAR, coverage VARCHAR) |
SELECT date FROM table_name_26 WHERE score = "130-56" | What was the date for the 130-56 game? | CREATE TABLE table_name_26 (date VARCHAR, score VARCHAR) |
SELECT competition FROM table_name_38 WHERE result = "17-1" | What competition has 17-1 as the result? | CREATE TABLE table_name_38 (competition VARCHAR, result VARCHAR) |
SELECT MAX(matches) FROM table_name_75 WHERE loses = 2 AND pos < 2 | Loses of 2, and a Pos. smaller than 2 had how many highest matches? | CREATE TABLE table_name_75 (matches INTEGER, loses VARCHAR, pos VARCHAR) |
SELECT COUNT(mountains_classification) FROM table_27573848_18 WHERE winner = "Robert Gesink" | How many times was Robert Gesink a winner? | CREATE TABLE table_27573848_18 (mountains_classification VARCHAR, winner VARCHAR) |
SELECT 2006 FROM table_name_34 WHERE 2007 = "q2" | What 2006 has q2 as the 2007? | CREATE TABLE table_name_34 (Id VARCHAR) |
SELECT original_name FROM table_name_26 WHERE film_title_used_in_nomination = "love" | What is the real name of the movie about love? | CREATE TABLE table_name_26 (original_name VARCHAR, film_title_used_in_nomination VARCHAR) |
SELECT MIN(gold) FROM table_name_14 WHERE silver > 16 | What is the lowest amount of gold for more than 16 silver? | CREATE TABLE table_name_14 (gold INTEGER, silver INTEGER) |
SELECT birth_date FROM table_25058562_2 WHERE nationality = "Estonia" AND position = "Spiker" AND height = 189 | Name the birth date for estonia for spiker and height of 189 | CREATE TABLE table_25058562_2 (birth_date VARCHAR, height VARCHAR, nationality VARCHAR, position VARCHAR) |
SELECT playoff_result FROM table_name_45 WHERE winner = "alaska aces" AND win__number > 1 AND points < 106 AND year = "2011-12" | What is Playoff Result, when Winner is "Alaska Aces", when Win # is greater than 1, when Points is less than 106, and when Year is "2011-12"? | CREATE TABLE table_name_45 (playoff_result VARCHAR, year VARCHAR, points VARCHAR, winner VARCHAR, win__number VARCHAR) |
SELECT opponent FROM table_name_68 WHERE round = "3" AND method = "decision" | Who has a round of 3 with a method of decision? | CREATE TABLE table_name_68 (opponent VARCHAR, round VARCHAR, method VARCHAR) |
SELECT race FROM table_name_27 WHERE jockey = "d. beadman" AND result = "4th" | Which race has D. Beadman for the jockey and a 4th place result? | CREATE TABLE table_name_27 (race VARCHAR, jockey VARCHAR, result VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.