answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT average FROM table_28846752_4 WHERE highest_score = "151" | What is the average when the highest score is 151? | CREATE TABLE table_28846752_4 (average VARCHAR, highest_score VARCHAR) |
SELECT COUNT(laps) FROM table_name_25 WHERE constructor = "brm" AND driver = "piers courage" AND grid > 8 | How many laps were completed by Piers Courage when BRM was the constructor and the grid is larger than 8? | CREATE TABLE table_name_25 (laps VARCHAR, grid VARCHAR, constructor VARCHAR, driver VARCHAR) |
SELECT report FROM table_name_79 WHERE winning_drivers = "frank lockhart" | Which report shows that Frank Lockhart was a winning driver? | CREATE TABLE table_name_79 (report VARCHAR, winning_drivers VARCHAR) |
SELECT year FROM table_name_35 WHERE producer = "sam kazman" | What year was Sam Kazman a producer? | CREATE TABLE table_name_35 (year VARCHAR, producer VARCHAR) |
SELECT COUNT(location) FROM table_11622840_1 WHERE score = "206 (-7)" | How many locations logged a score of 206 (-7)? | CREATE TABLE table_11622840_1 (location VARCHAR, score VARCHAR) |
SELECT third_place FROM table_name_23 WHERE total > 2 AND rank < 2 | How many third places has a total greater than 2 and a rank less than 2? | CREATE TABLE table_name_23 (third_place VARCHAR, total VARCHAR, rank VARCHAR) |
SELECT MAX(series__number) FROM table_17355579_1 WHERE directed_by = "Richard Thorpe" AND written_by = "Dee Johnson" | Name the series number directed by richard thorpe written by dee johnson | CREATE TABLE table_17355579_1 (series__number INTEGER, directed_by VARCHAR, written_by VARCHAR) |
SELECT result FROM table_name_37 WHERE award = "bodil award" AND category = "best actress" AND year = 2005 | What was the result of the bodil award winning film from before 2005 in the best actress category? | CREATE TABLE table_name_37 (result VARCHAR, year VARCHAR, award VARCHAR, category VARCHAR) |
SELECT AVG(total) FROM table_name_84 WHERE gold = 13 AND bronze < 13 | What average Total has a Gold award of 13 and a Bronze award less than 13? | CREATE TABLE table_name_84 (total INTEGER, gold VARCHAR, bronze VARCHAR) |
SELECT class FROM table_name_68 WHERE points = 36 | What Class has 36 Points? | CREATE TABLE table_name_68 (class VARCHAR, points VARCHAR) |
SELECT MAX(mintage) FROM table_name_57 WHERE theme = "common eider" AND year < 2008 | What is the most mintage with common eider as the theme, and the year less than 2008? | CREATE TABLE table_name_57 (mintage INTEGER, theme VARCHAR, year VARCHAR) |
SELECT title FROM table_name_83 WHERE production_number = "1039" | What is the title of the production with a number of 1039? | CREATE TABLE table_name_83 (title VARCHAR, production_number VARCHAR) |
SELECT MIN(radius__r___) FROM table_10432351_1 | What is the smallest possible radius? | CREATE TABLE table_10432351_1 (radius__r___ INTEGER) |
SELECT COUNT(original_air_date) FROM table_19897294_9 WHERE family_families = "The Ryder Family and The Schwartz Family" | how many original air date where family/families is the ryder family and the schwartz family | CREATE TABLE table_19897294_9 (original_air_date VARCHAR, family_families VARCHAR) |
SELECT AVG(enrollment) FROM table_name_6 WHERE institution = "whitman college" AND founded > 1859 | What is the Enrollment at Whitman College Founded after 1859? | CREATE TABLE table_name_6 (enrollment INTEGER, institution VARCHAR, founded VARCHAR) |
SELECT location FROM table_name_78 WHERE opponent_team = "police s.a." | Where was the game when Police S.A. was the opponent? | CREATE TABLE table_name_78 (location VARCHAR, opponent_team VARCHAR) |
SELECT away_team FROM table_29090919_1 WHERE home_team = "North Melbourne" | Which team was the away team when the home team was north melbourne? | CREATE TABLE table_29090919_1 (away_team VARCHAR, home_team VARCHAR) |
SELECT type FROM table_2076608_1 WHERE school = "Stratford University" | What type of school is Stratford University? | CREATE TABLE table_2076608_1 (type VARCHAR, school VARCHAR) |
SELECT original_air_date FROM table_2226817_4 WHERE production_code = "3.04" | Name the original air date for 3.04 production code | CREATE TABLE table_2226817_4 (original_air_date VARCHAR, production_code VARCHAR) |
SELECT COUNT(future_stem) FROM table_12784134_24 WHERE perfect_stem = "poztu" | What is the number for future stem for poztu? | CREATE TABLE table_12784134_24 (future_stem VARCHAR, perfect_stem VARCHAR) |
SELECT date FROM table_name_2 WHERE opponents = "sun shengnan han xinyun" | What Date has Opponents of sun shengnan han xinyun? | CREATE TABLE table_name_2 (date VARCHAR, opponents 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 headquarters FROM company EXCEPT SELECT headquarters FROM company WHERE main_industry = 'Banking' | Show all headquarters without a company in banking industry. | CREATE TABLE company (headquarters VARCHAR, main_industry VARCHAR) |
SELECT firefox_, _other_mozilla FROM table_name_12 WHERE chrome = "1.93%" | What percentage of browsers were using Firefox or other Mozilla browsers during the period in which 1.93% were using Chrome? | CREATE TABLE table_name_12 (firefox_ VARCHAR, _other_mozilla VARCHAR, chrome VARCHAR) |
SELECT date FROM table_name_3 WHERE week < 12 AND result = "bye" | What was the date of the game with a result of bye before week 12? | CREATE TABLE table_name_3 (date VARCHAR, week VARCHAR, result VARCHAR) |
SELECT pre_race_host FROM table_name_87 WHERE lap_by_lap = "mike joy" AND year = 2005 | Who was the Pre-Race Host when Mike Joy was the Lap-by-lap in the Year 2005? | CREATE TABLE table_name_87 (pre_race_host VARCHAR, lap_by_lap VARCHAR, year VARCHAR) |
SELECT format_s_ FROM table_name_28 WHERE region = "europe" AND catalog = "webb185" | Which formats have a region of Europe and Catalog value of WEBB185? | CREATE TABLE table_name_28 (format_s_ VARCHAR, region VARCHAR, catalog VARCHAR) |
SELECT COUNT(opponent_in_the_final) FROM table_23235767_4 WHERE score_in_the_final = "6–2, 6–1, 6–3" | Name the total number of opponent in the final for 6–2, 6–1, 6–3 | CREATE TABLE table_23235767_4 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR) |
SELECT MAX(winners_share___) AS $__ FROM table_17335602_1 WHERE tournament = "Wegmans LPGA Championship" | What was the winner's share in the wegmans lpga championship? | CREATE TABLE table_17335602_1 (winners_share___ INTEGER, tournament VARCHAR) |
SELECT loss FROM table_name_62 WHERE attendance = "14,691" | What was the loss of the game attended by 14,691? | CREATE TABLE table_name_62 (loss VARCHAR, attendance VARCHAR) |
SELECT MIN(points) FROM table_14181578_1 WHERE goals_for_against = "8-5" | what is the minimum points with goals for/against being 8-5 | CREATE TABLE table_14181578_1 (points INTEGER, goals_for_against VARCHAR) |
SELECT arena FROM table_name_8 WHERE capacity = "1,100" | Which arena has a capactiy of 1,100? | CREATE TABLE table_name_8 (arena VARCHAR, capacity VARCHAR) |
SELECT composition FROM table_1081235_1 WHERE name_of_lava_dome = "Valles lava dome" | What is the composition at Valles lava dome? | CREATE TABLE table_1081235_1 (composition VARCHAR, name_of_lava_dome VARCHAR) |
SELECT MIN(laps) FROM table_name_72 WHERE grid = 7 | What were grid 7's laps? | CREATE TABLE table_name_72 (laps INTEGER, grid VARCHAR) |
SELECT date FROM table_name_57 WHERE result = "l 27-7" AND opponent = "at minnesota vikings" | When has a Result of l 27-7 and an Opponent of at minnesota vikings? | CREATE TABLE table_name_57 (date VARCHAR, result VARCHAR, opponent VARCHAR) |
SELECT coverage__transmitter_site_ FROM table_12379297_1 WHERE station_type = "Relay" AND power__kw_ = "5kW" AND callsign = "DYFJ-TV" | What is the coverage of relay 5kw of dyfj-tv? | CREATE TABLE table_12379297_1 (coverage__transmitter_site_ VARCHAR, callsign VARCHAR, station_type VARCHAR, power__kw_ VARCHAR) |
SELECT 2010 FROM table_name_75 WHERE 2012 = "1r" AND 2005 = "a" | What is the 2010 value with a 1r in 2012 and an A in 2005? | CREATE TABLE table_name_75 (Id VARCHAR) |
SELECT name FROM airports WHERE elevation BETWEEN -50 AND 50 | Find the name of airports whose altitude is between -50 and 50. | CREATE TABLE airports (name VARCHAR, elevation INTEGER) |
SELECT MAX(pick) FROM table_name_50 WHERE position = "guard" | What was the highest guard picked? | CREATE TABLE table_name_50 (pick INTEGER, position VARCHAR) |
SELECT Name FROM singer WHERE Birth_Year = 1948 OR Birth_Year = 1949 | Show the name of singers whose birth year is either 1948 or 1949? | CREATE TABLE singer (Name VARCHAR, Birth_Year VARCHAR) |
SELECT T2.budget_type_code, T2.budget_type_description, T1.document_id FROM Documents_with_expenses AS T1 JOIN Ref_budget_codes AS T2 ON T1.budget_type_code = T2.budget_type_code | Show the budget type code and description and the corresponding document id. | CREATE TABLE Ref_budget_codes (budget_type_code VARCHAR, budget_type_description VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR) |
SELECT grade FROM Highschooler GROUP BY grade ORDER BY COUNT(*) DESC LIMIT 1 | Which grade has the most high schoolers? | CREATE TABLE Highschooler (grade VARCHAR) |
SELECT winner FROM table_28211103_1 WHERE st_kilda_score = "13.10.88" | Who is the winner when the st kilda score is 13.10.88? | CREATE TABLE table_28211103_1 (winner VARCHAR, st_kilda_score VARCHAR) |
SELECT score FROM table_name_81 WHERE date = "february 23, 2005" | What is the score on February 23, 2005? | CREATE TABLE table_name_81 (score VARCHAR, date VARCHAR) |
SELECT notes FROM table_name_48 WHERE country = "denmark" | What is the notes for the team from Denmark? | CREATE TABLE table_name_48 (notes VARCHAR, country VARCHAR) |
SELECT name FROM company WHERE Sales_in_Billion > 200 ORDER BY Sales_in_Billion, Profits_in_Billion DESC | list the names of the companies with more than 200 sales in the descending order of sales and profits. | CREATE TABLE company (name VARCHAR, Sales_in_Billion INTEGER, Profits_in_Billion VARCHAR) |
SELECT province_region FROM table_name_73 WHERE iata = "gmp" | Which province has gmp for an IATA? | CREATE TABLE table_name_73 (province_region VARCHAR, iata VARCHAR) |
SELECT AVG(pos) FROM table_name_38 WHERE car__number > 2 AND team = "billy ballew motorsports" | Which Pos has a Car # larger than 2, and a Team of billy ballew motorsports? | CREATE TABLE table_name_38 (pos INTEGER, car__number VARCHAR, team VARCHAR) |
SELECT customer_id, COUNT(*) FROM Accounts GROUP BY customer_id ORDER BY COUNT(*) DESC LIMIT 1 | Show the customer id and number of accounts with most accounts. | CREATE TABLE Accounts (customer_id VARCHAR) |
SELECT result FROM table_name_66 WHERE week = 13 | What was the result of the week 13 game? | CREATE TABLE table_name_66 (result VARCHAR, week VARCHAR) |
SELECT MAX(events) FROM table_name_92 WHERE cuts_made > 6 AND top_25 > 30 | Name the most events with cuts made more than 6 and top 25 more than 30 | CREATE TABLE table_name_92 (events INTEGER, cuts_made VARCHAR, top_25 VARCHAR) |
SELECT MIN(crowd) FROM table_name_44 WHERE home_team = "fitzroy" | What was the lowest attendance when Fitzroy was the home team? | CREATE TABLE table_name_44 (crowd INTEGER, home_team VARCHAR) |
SELECT COUNT(original_air_date) FROM table_22181917_2 WHERE season__number = 20 | How many original airdates did season 20 have? | CREATE TABLE table_22181917_2 (original_air_date VARCHAR, season__number VARCHAR) |
SELECT away_team FROM table_name_53 WHERE score = "2–0" | Which away team had a Score of 2–0? | CREATE TABLE table_name_53 (away_team VARCHAR, score VARCHAR) |
SELECT MIN(total) FROM table_name_20 WHERE rank = 13 AND bronze < 1 | Name the lowest total for rank of 13 with bronze less than 1 | CREATE TABLE table_name_20 (total INTEGER, rank VARCHAR, bronze VARCHAR) |
SELECT finals_venue__surface_ FROM table_name_12 WHERE year = 1966 | Where was the 1966 final played? | CREATE TABLE table_name_12 (finals_venue__surface_ VARCHAR, year VARCHAR) |
SELECT the_mole FROM table_13036251_1 WHERE prize_money = "€24,475" | what's the mole with prize money being €24,475 | CREATE TABLE table_13036251_1 (the_mole VARCHAR, prize_money VARCHAR) |
SELECT MIN(mark) FROM table_name_34 WHERE rank = 8 | What is the lowest mark of the rank 8 record? | CREATE TABLE table_name_34 (mark INTEGER, rank VARCHAR) |
SELECT MIN(losses) FROM table_19451173_1 WHERE team = "Kansas City Chiefs" | What is the minimum losses for the Kansas City Chiefs? | CREATE TABLE table_19451173_1 (losses INTEGER, team VARCHAR) |
SELECT location FROM table_26166836_1 WHERE road_race = "Istanbul Marathon" | Where was the istanbul marathon? | CREATE TABLE table_26166836_1 (location VARCHAR, road_race VARCHAR) |
SELECT opponent FROM table_25505246_7 WHERE against = "Belarus" | Who was Hanne Skak Jensen's opponent when facing Belarus? | CREATE TABLE table_25505246_7 (opponent VARCHAR, against VARCHAR) |
SELECT best_director FROM table_15301258_1 WHERE best_film = "Mother" | Name the best director for mother | CREATE TABLE table_15301258_1 (best_director VARCHAR, best_film VARCHAR) |
SELECT MAX(to_par) FROM table_name_22 WHERE place = "1" | What is the highest To Par, when Place is "1"? | CREATE TABLE table_name_22 (to_par INTEGER, place VARCHAR) |
SELECT MIN(heat) FROM table_name_30 WHERE nationality = "bulgaria" AND result > 55.97 | Which Heat has a Nationality of bulgaria, and a Result larger than 55.97? | CREATE TABLE table_name_30 (heat INTEGER, nationality VARCHAR, result VARCHAR) |
SELECT island FROM table_18946749_1 WHERE peak = "Mount Gauttier" | When mount gauttier is the peak what is the island? | CREATE TABLE table_18946749_1 (island VARCHAR, peak 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 MIN(e_score) FROM table_name_66 WHERE t_score = 8 AND total < 22.95 | What E score has the T score of 8 and a number smaller than 22.95? | CREATE TABLE table_name_66 (e_score INTEGER, t_score VARCHAR, total VARCHAR) |
SELECT jushin_liger FROM table_name_60 WHERE gran_hamada = "kendo kashin" | Which Jushin Liger has a Gran Hamada of kendo kashin? | CREATE TABLE table_name_60 (jushin_liger VARCHAR, gran_hamada VARCHAR) |
SELECT result FROM table_name_72 WHERE competition = "2014 fifa world cup qualification" AND score = "2 – 0" | Which Result has a Competition of 2014 fifa world cup qualification, and a Score of 2 – 0? | CREATE TABLE table_name_72 (result VARCHAR, competition VARCHAR, score VARCHAR) |
SELECT county FROM table_name_53 WHERE opposition = "antrim" AND player = "bernie forde" | What County has an Opposition of Antrim and the Player Bernie Forde? | CREATE TABLE table_name_53 (county VARCHAR, opposition VARCHAR, player VARCHAR) |
SELECT AVG(to_par) FROM table_name_11 WHERE year_s__won = "1983" | What is the To par of the Player wtih Year(s) won of 1983? | CREATE TABLE table_name_11 (to_par INTEGER, year_s__won VARCHAR) |
SELECT site_stadium FROM table_name_21 WHERE date = "may 9" | Where was the game on May 9 played? | CREATE TABLE table_name_21 (site_stadium VARCHAR, date VARCHAR) |
SELECT score FROM table_name_24 WHERE country = "spain" | What was Spain's score? | CREATE TABLE table_name_24 (score VARCHAR, country VARCHAR) |
SELECT dance FROM table_name_68 WHERE worst_dancer_s_ = "priscilla presley" AND worst_score = "21" | What is the dance that has priscilla presley is the worst dancer(s), and the worst score of 21? | CREATE TABLE table_name_68 (dance VARCHAR, worst_dancer_s_ VARCHAR, worst_score VARCHAR) |
SELECT AVG(game) FROM table_name_90 WHERE score = "l 102–114 (ot)" | Which Game has a Score of l 102–114 (ot)? | CREATE TABLE table_name_90 (game INTEGER, score VARCHAR) |
SELECT MIN(crowd) FROM table_name_93 WHERE home_team = "footscray" | What was the smallest crowd size at a home game for Footscray? | CREATE TABLE table_name_93 (crowd INTEGER, home_team VARCHAR) |
SELECT MAX(points) FROM table_name_49 WHERE entrant = "modena team spa" AND year > 1991 | What is the highest number of points for the Modena Team Spa after 1991? | CREATE TABLE table_name_49 (points INTEGER, entrant VARCHAR, year VARCHAR) |
SELECT directed_by FROM table_name_38 WHERE production_code = "ad1a26" | who was the director of the episode with production code ad1a26? | CREATE TABLE table_name_38 (directed_by VARCHAR, production_code VARCHAR) |
SELECT country FROM table_name_94 WHERE total > 270 AND player = "sandy lyle" | What country has a total greater than 270, with sandy lyle as the player? | CREATE TABLE table_name_94 (country VARCHAR, total VARCHAR, player VARCHAR) |
SELECT time FROM table_name_92 WHERE speed = "102.962mph" | What is the time of the rider with a speed of 102.962mph? | CREATE TABLE table_name_92 (time VARCHAR, speed VARCHAR) |
SELECT player FROM table_name_54 WHERE team = "new york knicks" AND position = "c" | Who is the player that plays position c on the New York Knicks? | CREATE TABLE table_name_54 (player VARCHAR, team VARCHAR, position VARCHAR) |
SELECT score FROM table_name_59 WHERE opponent = "minnesota" | What was the score of the Iowa v. Minnesota game? | CREATE TABLE table_name_59 (score VARCHAR, opponent VARCHAR) |
SELECT SUM(year) FROM table_name_70 WHERE entrant = "spirit tom's racing" AND points > 3 | What is the year when Spirit Tom's Racing had more than 3 points? | CREATE TABLE table_name_70 (year INTEGER, entrant VARCHAR, points VARCHAR) |
SELECT attack FROM table_name_71 WHERE source = "nciom" | What Attack has a Source of NCIOM? | CREATE TABLE table_name_71 (attack VARCHAR, source VARCHAR) |
SELECT state FROM table_name_43 WHERE hometown = "mesa, az" | What is the state represented by the contestant from Mesa, AZ? | CREATE TABLE table_name_43 (state VARCHAR, hometown VARCHAR) |
SELECT COUNT(player) FROM table_10015132_2 WHERE school_club_team = "La Salle" | How many players were with the school or club team La Salle? | CREATE TABLE table_10015132_2 (player VARCHAR, school_club_team VARCHAR) |
SELECT location FROM table_name_46 WHERE date_of_demolition = 1940 AND church_name = "christ church greyfriars" | What is the location that has a date of demolition of 1940 and has a church named Christ Church Greyfriars? | CREATE TABLE table_name_46 (location VARCHAR, date_of_demolition VARCHAR, church_name VARCHAR) |
SELECT COUNT(game) FROM table_name_51 WHERE points < 4 AND october < 5 | How many games have Points smaller than 4, and an October smaller than 5? | CREATE TABLE table_name_51 (game VARCHAR, points VARCHAR, october VARCHAR) |
SELECT funny_car FROM table_name_64 WHERE year = 2012 | Who won Funny Car in 2012? | CREATE TABLE table_name_64 (funny_car VARCHAR, year VARCHAR) |
SELECT song FROM table_name_68 WHERE index = "m6" | What song had an index of m6? | CREATE TABLE table_name_68 (song VARCHAR, index VARCHAR) |
SELECT home_team AS score FROM table_name_39 WHERE crowd > 5 OFFSET 500 | What was the score of the home team when there were more than 5,500 people in the crowd? | CREATE TABLE table_name_39 (home_team VARCHAR, crowd INTEGER) |
SELECT ihsaa_class FROM table_name_85 WHERE school = "speedway" | Which IHSAA class does speedway school belong to? | CREATE TABLE table_name_85 (ihsaa_class VARCHAR, school VARCHAR) |
SELECT shooting_score__pts_ FROM table_name_7 WHERE total > 5464 AND athlete = "heather fell ( gbr )" | Which Shooting Score (pts) has a Total larger than 5464 and a Athlete of heather fell ( gbr )? | CREATE TABLE table_name_7 (shooting_score__pts_ VARCHAR, total VARCHAR, athlete VARCHAR) |
SELECT record FROM table_name_57 WHERE week = "12" | What was week 12's record? | CREATE TABLE table_name_57 (record VARCHAR, week VARCHAR) |
SELECT COUNT(driver) FROM table_1771753_3 WHERE season = "2005" | When 2005 is the season how many drivers are there? | CREATE TABLE table_1771753_3 (driver VARCHAR, season VARCHAR) |
SELECT player FROM table_28628309_8 WHERE category = "Field goal percentage" | What is the name of the player when the category is listed as field goal percentage? | CREATE TABLE table_28628309_8 (player VARCHAR, category VARCHAR) |
SELECT MAX(1990) FROM table_name_94 WHERE 1980 < 719 AND 1960 < 205 AND 1996[2] < 364 AND 1970 > 251 | 1980 smaller than 719, and a 1960 smaller than 205, and a 1996[2] smaller than 364, and a 1970 larger than 251 is what 1990 highest? | CREATE TABLE table_name_94 (Id VARCHAR) |
SELECT Nationality FROM journalist ORDER BY Years_working DESC LIMIT 1 | What is the nationality of the journalist with the largest number of years working? | CREATE TABLE journalist (Nationality VARCHAR, Years_working VARCHAR) |
SELECT manufacturer FROM table_name_86 WHERE laps < 9 AND rider = "dani pedrosa" | Who was the manufacturer for the car that dani pedrosa did less than 9 laps in? | CREATE TABLE table_name_86 (manufacturer VARCHAR, laps VARCHAR, rider VARCHAR) |
SELECT d_47 FROM table_name_93 WHERE d_41 = "r 36" | Name the D 47 when it has a D 41 of r 36 | CREATE TABLE table_name_93 (d_47 VARCHAR, d_41 VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.