answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT director FROM table_name_82 WHERE title = "the iceman ducketh" | What is the Director of the Filmography The Iceman Ducketh? | CREATE TABLE table_name_82 (director VARCHAR, title VARCHAR) |
SELECT route_name FROM table_name_49 WHERE termini = "fm 1472 sh 255" | What route has termini of fm 1472 sh 255? | CREATE TABLE table_name_49 (route_name VARCHAR, termini VARCHAR) |
SELECT MAX(season) FROM table_25740774_1 WHERE podiums > 2.0 | What is the season with podiums more than 2.0? | CREATE TABLE table_25740774_1 (season INTEGER, podiums INTEGER) |
SELECT COUNT(first_elected) FROM table_2668199_2 WHERE result = "Re-elected" AND party = "Anti-Masonic" AND district = "Pennsylvania 24" | How many times was the result was re-elected and the party was anti-masonic in the district Pennsylvania 24? | CREATE TABLE table_2668199_2 (first_elected VARCHAR, district VARCHAR, result VARCHAR, party VARCHAR) |
SELECT mens_singles FROM table_14496232_2 WHERE womens_singles = "Wang Lin" AND mixed_doubles = "Joachim Fischer Nielsen Christinna Pedersen" | Name the mens singles when womens singles is wang lin and mixed doubles is joachim fischer nielsen christinna pedersen | CREATE TABLE table_14496232_2 (mens_singles VARCHAR, womens_singles VARCHAR, mixed_doubles VARCHAR) |
SELECT lat___lon FROM table_name_87 WHERE us_mission = "surveyor 3" | What is the latitude and longitude for Surveyor 3? | CREATE TABLE table_name_87 (lat___lon VARCHAR, us_mission VARCHAR) |
SELECT frequency_mhz FROM table_name_80 WHERE erp_w = 55 | Name the frequence MHz for ERP W of 55 | CREATE TABLE table_name_80 (frequency_mhz VARCHAR, erp_w VARCHAR) |
SELECT date FROM table_name_58 WHERE location = "florida" AND tournament = "monsanto open" | What date was the Monsanto open located in Florida? | CREATE TABLE table_name_58 (date VARCHAR, location VARCHAR, tournament VARCHAR) |
SELECT throws FROM table_name_39 WHERE first = "pj" | How many throws does PJ have? | CREATE TABLE table_name_39 (throws VARCHAR, first VARCHAR) |
SELECT SUM(first_exercise) FROM table_name_2 WHERE second_exercise = 18 | What is the total for the first exercise and has 18 as the second exercise? | CREATE TABLE table_name_2 (first_exercise INTEGER, second_exercise VARCHAR) |
SELECT home_team FROM table_name_55 WHERE away_team = "footscray" | Who was the home team when the away team was Footscray? | CREATE TABLE table_name_55 (home_team VARCHAR, away_team VARCHAR) |
SELECT MAX(total) FROM table_name_71 WHERE nation = "france" AND silver > 1 | what is the highest total when the nation is france and silver is more than 1? | CREATE TABLE table_name_71 (total INTEGER, nation VARCHAR, silver VARCHAR) |
SELECT l2_cache FROM table_name_96 WHERE gpu_model = "iris pro graphics 5200" AND frequency = "2.6 ghz" | What is the L2 cache for the processor with iris pro graphics 5200 and frequency of 2.6 ghz? | CREATE TABLE table_name_96 (l2_cache VARCHAR, gpu_model VARCHAR, frequency VARCHAR) |
SELECT DISTINCT stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num = T2.stu_num WHERE enroll_grade = 'C' | What is the first name of students who got grade C in any class? | CREATE TABLE student (stu_num VARCHAR); CREATE TABLE enroll (stu_num VARCHAR) |
SELECT shirt_sponsor FROM table_name_10 WHERE captain = "geoff thomas" | Who is the shirt sponsor for Captain Geoff Thomas' team? | CREATE TABLE table_name_10 (shirt_sponsor VARCHAR, captain VARCHAR) |
SELECT location FROM table_name_89 WHERE branding = "1116 dxas zamboanga" | What's the location when the branding is 1116 DXAS Zamboanga? | CREATE TABLE table_name_89 (location VARCHAR, branding VARCHAR) |
SELECT pollutant FROM table_name_27 WHERE regulatory_citation = "40 cfr 50.7(a)" AND type = "primary" | what is the polluntant when the regulatory citation is 40 cfr 50.7(a) and the type is primary? | CREATE TABLE table_name_27 (pollutant VARCHAR, regulatory_citation VARCHAR, type VARCHAR) |
SELECT AVG(played) FROM table_name_83 WHERE city = "belgrade" AND average_attendance > 26 OFFSET 222 | What is the average played value in Belgrade with attendance greater than 26,222? | CREATE TABLE table_name_83 (played INTEGER, city VARCHAR, average_attendance VARCHAR) |
SELECT them_two__the_two_ FROM table_1015914_24 WHERE you_and_i = "ngœbalngu" | What is them two (the two) when you and i is ngœbalngu? | CREATE TABLE table_1015914_24 (them_two__the_two_ VARCHAR, you_and_i VARCHAR) |
SELECT home_team AS score FROM table_name_63 WHERE away_team = "melbourne" | What home team score has a Away team of melbourne? | CREATE TABLE table_name_63 (home_team VARCHAR, away_team VARCHAR) |
SELECT AVG(overall) FROM table_name_80 WHERE round = 1 AND position = "center" | Which average overall has a Round of 1, and a Position of center? | CREATE TABLE table_name_80 (overall INTEGER, round VARCHAR, position VARCHAR) |
SELECT cospar_id_satcat_№ FROM table_name_20 WHERE launch_vehicle = "titan iv(401)a" | What is the COSPAR ID of the satellite with a titan iv(401)a launch vehicle? | CREATE TABLE table_name_20 (cospar_id_satcat_№ VARCHAR, launch_vehicle VARCHAR) |
SELECT division FROM table_name_90 WHERE conference = "afc" AND wins = 10 AND appearances > 18 | Which division in the AFC Conference had a total of 10 wins and appeared more than 18 times? | CREATE TABLE table_name_90 (division VARCHAR, appearances VARCHAR, conference VARCHAR, wins VARCHAR) |
SELECT yearid, COUNT(*) FROM hall_of_fame GROUP BY yearid | How many players enter hall of fame each year? | CREATE TABLE hall_of_fame (yearid VARCHAR) |
SELECT MAX(budget_in_billions), MIN(budget_in_billions) FROM department | What are the maximum and minimum budget of the departments? | CREATE TABLE department (budget_in_billions INTEGER) |
SELECT college FROM table_16575609_4 WHERE cfl_team = "Calgary Stampeders" | Name the college for calgary stampeders | CREATE TABLE table_16575609_4 (college VARCHAR, cfl_team VARCHAR) |
SELECT bbm FROM table_19662262_6 WHERE strike_rate = "42.2" | What is the BBM when the strike rate is 42.2? | CREATE TABLE table_19662262_6 (bbm VARCHAR, strike_rate VARCHAR) |
SELECT Title FROM book WHERE Writer <> "Elaine Lee" | What are the titles of the books whose writer is not "Elaine Lee"? | CREATE TABLE book (Title VARCHAR, Writer VARCHAR) |
SELECT rank FROM table_name_11 WHERE finish = "8" | Which Rank has a Finish of 8? | CREATE TABLE table_name_11 (rank VARCHAR, finish VARCHAR) |
SELECT us_viewers__millions_ FROM table_26914076_3 WHERE story_by = "David Simon & Mari Kornhauser" | How many viewers watched the episode with a story by david simon & mari kornhauser? | CREATE TABLE table_26914076_3 (us_viewers__millions_ VARCHAR, story_by VARCHAR) |
SELECT SUM(round) FROM table_name_85 WHERE time = "6:04" | What is the total number of Round that has a Time of 6:04? | CREATE TABLE table_name_85 (round INTEGER, time VARCHAR) |
SELECT record FROM table_13480122_5 WHERE date = "January 13" | what's the record with date being january 13 | CREATE TABLE table_13480122_5 (record VARCHAR, date VARCHAR) |
SELECT name FROM table_name_6 WHERE street_address = "100 w. pender st." | What name has 100 w. pender st. as the address? | CREATE TABLE table_name_6 (name VARCHAR, street_address VARCHAR) |
SELECT winner FROM table_name_97 WHERE course = "rome to teramo" | Who was the winner for the Rome to Teramo course? | CREATE TABLE table_name_97 (winner VARCHAR, course VARCHAR) |
SELECT song_choice FROM table_26250199_1 WHERE theme = "Auditioner's Choice" | The theme Auditioner's Choice has what song choice? | CREATE TABLE table_26250199_1 (song_choice VARCHAR, theme VARCHAR) |
SELECT MAX(year) FROM table_name_8 WHERE bb_cw = "78" | What is the most current year that had a BB CW of 78? | CREATE TABLE table_name_8 (year INTEGER, bb_cw VARCHAR) |
SELECT special_guest FROM table_name_28 WHERE category = "vocal groups" AND name = "romantic" | Who was the special guest when the category was vocal groups and the name was Romantic? | CREATE TABLE table_name_28 (special_guest VARCHAR, category VARCHAR, name VARCHAR) |
SELECT record FROM table_name_82 WHERE time = "3:01" | Which date has the record time of 3:01? | CREATE TABLE table_name_82 (record VARCHAR, time VARCHAR) |
SELECT AVG(number_of_electorates__2009_) FROM table_name_58 WHERE district = "indore" | What is the average number of electorates (2009) when the district is indore? | CREATE TABLE table_name_58 (number_of_electorates__2009_ INTEGER, district VARCHAR) |
SELECT rank FROM table_name_19 WHERE location = "fortaleza" | What rank is the airport in Fortaleza? | CREATE TABLE table_name_19 (rank VARCHAR, location VARCHAR) |
SELECT mixed_doubles FROM table_14496232_2 WHERE tour = "Hong Kong Super Series" | Name the mixed doubles when tour is hong kong super series | CREATE TABLE table_14496232_2 (mixed_doubles VARCHAR, tour VARCHAR) |
SELECT race FROM table_name_5 WHERE margin = "8" | Which race has a Margin of 8? | CREATE TABLE table_name_5 (race VARCHAR, margin VARCHAR) |
SELECT party FROM table_name_48 WHERE name = "kerry j. donley" | What is Kerry J. Donley's Party? | CREATE TABLE table_name_48 (party VARCHAR, name VARCHAR) |
SELECT visiting_team FROM table_name_59 WHERE date = "december 23" | Which Visiting Team is on december 23? | CREATE TABLE table_name_59 (visiting_team VARCHAR, date VARCHAR) |
SELECT date_successor_seated FROM table_2147588_4 WHERE vacator = "James Brooks (D)" | When james brooks (d) is the vacator what is the date the successor was seated? | CREATE TABLE table_2147588_4 (date_successor_seated VARCHAR, vacator VARCHAR) |
SELECT state FROM table_name_99 WHERE rank < 10 AND city = "denver" | What is the state of the city of denver, which has a rank less than 10? | CREATE TABLE table_name_99 (state VARCHAR, rank VARCHAR, city VARCHAR) |
SELECT name, Assets_billion FROM Companies ORDER BY name | What are the name and assets of each company, sorted in ascending order of company name? | CREATE TABLE Companies (name VARCHAR, Assets_billion VARCHAR) |
SELECT MAX(taper__in_ft_) FROM table_name_20 WHERE size = 8 | What is the highest Taper (in/ft), when Size is 8? | CREATE TABLE table_name_20 (taper__in_ft_ INTEGER, size VARCHAR) |
SELECT COUNT(rebounds) FROM table_23346303_4 WHERE player = "Crystal Ayers" | How many rebounds did crystal ayers have? | CREATE TABLE table_23346303_4 (rebounds VARCHAR, player VARCHAR) |
SELECT score FROM table_name_35 WHERE opponent = "portland trail blazers" AND record = "12-58" | What is Score, when Opponent is Portland Trail Blazers, and when Record is 12-58? | CREATE TABLE table_name_35 (score VARCHAR, opponent VARCHAR, record VARCHAR) |
SELECT COUNT(episode) FROM table_23575917_8 WHERE davids_team = "Vernon Kay and Dara Ó Briain" | How many shows did team David consist of vernon kay and dara ó briain | CREATE TABLE table_23575917_8 (episode VARCHAR, davids_team VARCHAR) |
SELECT MAX(goals_conceded) FROM table_name_10 WHERE points = 6 AND draws > 0 | Which Goals conceded has Points of 6 and Draws larger than 0? | CREATE TABLE table_name_10 (goals_conceded INTEGER, points VARCHAR, draws VARCHAR) |
SELECT document_id FROM Documents EXCEPT SELECT document_id FROM Documents_with_expenses | What are the ids of documents which don't have expense budgets? | CREATE TABLE Documents (document_id VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR) |
SELECT winner FROM table_22917458_15 WHERE stage = 7 | Who won Stage 7? | CREATE TABLE table_22917458_15 (winner VARCHAR, stage VARCHAR) |
SELECT rebounds_per_game FROM table_2761641_1 WHERE tournament = "2006 FIBA World Championship" | How many rebounds per game did he have at the 2006 fiba world championship? | CREATE TABLE table_2761641_1 (rebounds_per_game VARCHAR, tournament VARCHAR) |
SELECT MIN(lowest) FROM table_14003020_5 WHERE highest = 2363 | what is the minimum lowest with highest being 2363 | CREATE TABLE table_14003020_5 (lowest INTEGER, highest VARCHAR) |
SELECT callsign FROM table_name_67 WHERE on_air_id = "4zr" | What is 4zr's callsign? | CREATE TABLE table_name_67 (callsign VARCHAR, on_air_id VARCHAR) |
SELECT tournament FROM table_name_47 WHERE 2003 = "a" | What tournament has a 2003 of a? | CREATE TABLE table_name_47 (tournament VARCHAR) |
SELECT date_of_appointment FROM table_27133147_3 WHERE team = "União de Leiria" | If the team is união de leiria, what is the date of appointment? | CREATE TABLE table_27133147_3 (date_of_appointment VARCHAR, team VARCHAR) |
SELECT MAX(bush_number) FROM table_13608101_1 WHERE others_percentage = "1.57%" | what is the maximum bush# with others% being 1.57% | CREATE TABLE table_13608101_1 (bush_number INTEGER, others_percentage VARCHAR) |
SELECT COUNT(silver) FROM table_name_33 WHERE sport = "karate" AND gold > 2 | What is the total number of silver medals for karate athletes with over 2 golds? | CREATE TABLE table_name_33 (silver VARCHAR, sport VARCHAR, gold VARCHAR) |
SELECT time__cet_ FROM table_21536557_2 WHERE name = "Lillehammer 2" | What is every time(cet) for the name of Lillehammer 2? | CREATE TABLE table_21536557_2 (time__cet_ VARCHAR, name VARCHAR) |
SELECT livery FROM table_name_45 WHERE locomotive_type = "steam" AND year_built > 1950 AND wheel_arrangement = "2-6-2" | What is the livery of the steam locomotive built after 1950 with a wheel arrangement of 2-6-2? | CREATE TABLE table_name_45 (livery VARCHAR, wheel_arrangement VARCHAR, locomotive_type VARCHAR, year_built VARCHAR) |
SELECT tournament FROM table_name_5 WHERE date = "feb 3, 1991" | What tournament was played on Feb 3, 1991? | CREATE TABLE table_name_5 (tournament VARCHAR, date VARCHAR) |
SELECT result FROM table_name_7 WHERE opponent = "san francisco 49ers" | What was the score of the Browns game against the San Francisco 49ers? | CREATE TABLE table_name_7 (result VARCHAR, opponent VARCHAR) |
SELECT income_poverty_f FROM table_13618358_1 WHERE exports__usd_mn__2011 = 2470 | What was the depravitiy of earnings where international sales was 2470? | CREATE TABLE table_13618358_1 (income_poverty_f VARCHAR, exports__usd_mn__2011 VARCHAR) |
SELECT team FROM table_name_47 WHERE year > 2010 | Which Team has a Year larger than 2010? | CREATE TABLE table_name_47 (team VARCHAR, year INTEGER) |
SELECT stepping FROM table_name_25 WHERE release_date = "june 5, 2007" | What is the stepping for the processor released June 5, 2007? | CREATE TABLE table_name_25 (stepping VARCHAR, release_date VARCHAR) |
SELECT event FROM table_name_87 WHERE year = 2007 AND position = "5th" | Which event in 2007 had a position of 5th? | CREATE TABLE table_name_87 (event VARCHAR, year VARCHAR, position VARCHAR) |
SELECT COUNT(rank) FROM table_name_76 WHERE total < 1 | Name the total number of ranks when total is less than 1 | CREATE TABLE table_name_76 (rank VARCHAR, total INTEGER) |
SELECT MAX(assists) FROM table_24850487_5 WHERE rebounds = 121 | How many assists did the player who had 121 rebounds have? | CREATE TABLE table_24850487_5 (assists INTEGER, rebounds VARCHAR) |
SELECT poll FROM table_name_10 WHERE wk_10 > 2 AND wk_2 = "12" AND wk_13 = 8 | Which poll had a week 10 larger than 2, a week 2 of exactly 12, and a week 13 of 8? | CREATE TABLE table_name_10 (poll VARCHAR, wk_13 VARCHAR, wk_10 VARCHAR, wk_2 VARCHAR) |
SELECT MAX(total) FROM table_30008638_1 | What is the highest total for any country/territory? | CREATE TABLE table_30008638_1 (total INTEGER) |
SELECT fa_cup FROM table_14962287_1 WHERE total = "565 (7)" | which fa cups had a total of 565 (7)? | CREATE TABLE table_14962287_1 (fa_cup VARCHAR, total VARCHAR) |
SELECT MAX(leadership_ability) FROM table_1855342_5 WHERE overall_ability = 32 | When the ability is 32, what is the leadership ability? | CREATE TABLE table_1855342_5 (leadership_ability INTEGER, overall_ability VARCHAR) |
SELECT name, average_attendance, total_attendance FROM stadium EXCEPT SELECT T2.name, T2.average_attendance, T2.total_attendance FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id | Show the name, average attendance, total attendance for stadiums where no accidents happened. | CREATE TABLE stadium (name VARCHAR, average_attendance VARCHAR, total_attendance VARCHAR, id VARCHAR); CREATE TABLE stadium (name VARCHAR, average_attendance VARCHAR, total_attendance VARCHAR); CREATE TABLE game (stadium_id VARCHAR, id VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR) |
SELECT abbreviation FROM table_name_88 WHERE country = "libya" | What's the abbreviation for libya? | CREATE TABLE table_name_88 (abbreviation VARCHAR, country VARCHAR) |
SELECT game_site FROM table_13259034_2 WHERE date = "October 16, 1977" | Where did the teams play on October 16, 1977? | CREATE TABLE table_13259034_2 (game_site VARCHAR, date VARCHAR) |
SELECT COUNT(overall) FROM table_name_4 WHERE position = "s" | How many times is the postion S? | CREATE TABLE table_name_4 (overall VARCHAR, position VARCHAR) |
SELECT player FROM table_name_54 WHERE place = "t10" AND country = "united states" AND score = 67 - 73 = 140 | What Player has a Place of t10, a Country of united states, and a Score of 67-73=140? | CREATE TABLE table_name_54 (player VARCHAR, place VARCHAR, country VARCHAR, score VARCHAR) |
SELECT ds_division FROM table_12485020_1 WHERE divisional_secretary = "S. H. Muzammil" | What is the name of the DS division where the divisional secretary is S. H. Muzammil? | CREATE TABLE table_12485020_1 (ds_division VARCHAR, divisional_secretary VARCHAR) |
SELECT college_junior_club_team__league_ FROM table_name_62 WHERE position = "left wing" AND player = "ondrej roman" | What is the college/junior/club team (league) of left wing Ondrej Roman? | CREATE TABLE table_name_62 (college_junior_club_team__league_ VARCHAR, position VARCHAR, player VARCHAR) |
SELECT MAX(first) FROM table_name_5 WHERE total > 0 AND gold > 0 | What is the latest first year with 0 total medals and over 0 golds? | CREATE TABLE table_name_5 (first INTEGER, total VARCHAR, gold VARCHAR) |
SELECT location FROM table_name_26 WHERE result = "21–16" | What is the name of the location of the game with a Result of 21–16? | CREATE TABLE table_name_26 (location VARCHAR, result VARCHAR) |
SELECT opponent FROM table_name_97 WHERE game_site = "arrowhead stadium" | What was the Opponent at Arrowhead Stadium? | CREATE TABLE table_name_97 (opponent VARCHAR, game_site VARCHAR) |
SELECT player FROM table_name_87 WHERE pick__number > 47 | Which player has a pick# over 47? | CREATE TABLE table_name_87 (player VARCHAR, pick__number INTEGER) |
SELECT party FROM table_1341690_21 WHERE incumbent = "Edward Boland" | what is the party where the incumbent is edward boland? | CREATE TABLE table_1341690_21 (party VARCHAR, incumbent VARCHAR) |
SELECT COUNT(population__1991_) FROM table_2562572_5 WHERE population__2011_ = 9564 | Name the total number of population for 1991 for 9564 for 2011 | CREATE TABLE table_2562572_5 (population__1991_ VARCHAR, population__2011_ VARCHAR) |
SELECT mintage FROM table_name_18 WHERE theme = "year of the rabbit" | What's the mintage when the theme was year of the rabbit? | CREATE TABLE table_name_18 (mintage VARCHAR, theme VARCHAR) |
SELECT tv_time FROM table_name_24 WHERE date = "december 6, 1998" | What was the tv time on december 6, 1998? | CREATE TABLE table_name_24 (tv_time VARCHAR, date VARCHAR) |
SELECT status FROM table_name_72 WHERE moving_to = "nantes" | What is the status of the player who is moving to Nantes? | CREATE TABLE table_name_72 (status VARCHAR, moving_to VARCHAR) |
SELECT location_attendance FROM table_27723228_11 WHERE team = "Dallas" | What was the location and attendance of the game against Dallas? | CREATE TABLE table_27723228_11 (location_attendance VARCHAR, team VARCHAR) |
SELECT semifinals FROM table_27294107_11 WHERE event = "Light flyweight" | What is the semifinals for the light flyweight event? | CREATE TABLE table_27294107_11 (semifinals VARCHAR, event VARCHAR) |
SELECT date FROM table_name_66 WHERE home_team = "south melbourne" | When did South Melbourne play as the home team? | CREATE TABLE table_name_66 (date VARCHAR, home_team VARCHAR) |
SELECT opponent_in_the_final FROM table_name_93 WHERE tournament = "taipei, taiwan" AND date = "november 14, 1994" | Who was the final opponent in the tournament in Taipei, Taiwan on November 14, 1994? | CREATE TABLE table_name_93 (opponent_in_the_final VARCHAR, tournament VARCHAR, date VARCHAR) |
SELECT method FROM table_name_37 WHERE round = 1 AND record = "4–2" | Which Method has a Round of 1, and a Record of 4–2? | CREATE TABLE table_name_37 (method VARCHAR, round VARCHAR, record VARCHAR) |
SELECT rank FROM table_18047346_5 WHERE iata_code = "JFK" | What rank is the airport whose IATA Code is JFK? | CREATE TABLE table_18047346_5 (rank VARCHAR, iata_code VARCHAR) |
SELECT draws FROM table_name_72 WHERE team = "durham" | How many draws did Durham have? | CREATE TABLE table_name_72 (draws VARCHAR, team VARCHAR) |
SELECT superintendent FROM table_25037577_1 WHERE middle_school_principal = "Alan Degroote" AND gorham_principal = "Paul Lahue" AND year = "2006-2007" | Who were the superintendent(s) when the middle school principal was alan degroote, the gorham principal was paul lahue, and the year was 2006-2007? | CREATE TABLE table_25037577_1 (superintendent VARCHAR, year VARCHAR, middle_school_principal VARCHAR, gorham_principal VARCHAR) |
SELECT AVG(attendance) FROM table_name_71 WHERE record = "6-13" | What was the average attendance at a game when the record was 6-13? | CREATE TABLE table_name_71 (attendance INTEGER, record VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.