answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT west FROM table_name_28 WHERE south = "ev fürstenfeldbruck" | What was west when ev fürstenfeldbruck was south? | CREATE TABLE table_name_28 (west VARCHAR, south VARCHAR) |
SELECT SUM(population) FROM table_name_66 WHERE median_household_income = "$37,759" | How many people have a Median household income of $37,759? | CREATE TABLE table_name_66 (population INTEGER, median_household_income VARCHAR) |
SELECT AVG(date) FROM table_name_33 WHERE odds = "q rook" | What was the date of a game that had the odds of q rook? | CREATE TABLE table_name_33 (date INTEGER, odds VARCHAR) |
SELECT player FROM table_name_86 WHERE round < 6 AND college_junior_club_team = "hull olympiques (qmjhl)" | Can you tell me the Player that has the Round smaller than 6, and the College/Junior/Club Team of hull olympiques (qmjhl)? | CREATE TABLE table_name_86 (player VARCHAR, round VARCHAR, college_junior_club_team VARCHAR) |
SELECT COUNT(top_10) FROM table_name_52 WHERE tournament = "masters tournament" AND events < 4 | What is the total for a top-10 in a masters tournament in an event smaller than 4? | CREATE TABLE table_name_52 (top_10 VARCHAR, tournament VARCHAR, events VARCHAR) |
SELECT dar FROM table_15887683_17 WHERE n° = 912 | Name the dar for 912 | CREATE TABLE table_15887683_17 (dar VARCHAR, n° VARCHAR) |
SELECT liberal_ticket FROM table_name_51 WHERE free_libertarian_ticket = "robert s. flanzer" | Robert S. Flanzer was the Free Libertarian ticket with who listed as the Liberal Ticket? | CREATE TABLE table_name_51 (liberal_ticket VARCHAR, free_libertarian_ticket VARCHAR) |
SELECT source FROM table_name_89 WHERE name = "cresswell" | What was the source for the person named Cresswell? | CREATE TABLE table_name_89 (source VARCHAR, name VARCHAR) |
SELECT date FROM table_23184448_3 WHERE opponent = "Niagara" | When did the team play against Niagara? | CREATE TABLE table_23184448_3 (date VARCHAR, opponent VARCHAR) |
SELECT tries_for FROM table_name_22 WHERE played = "22" AND tries_against = "33" AND points = "60" | What is the number of tries for the team that has 22 plays with 33 tries against and 60 points? | CREATE TABLE table_name_22 (tries_for VARCHAR, points VARCHAR, played VARCHAR, tries_against VARCHAR) |
SELECT driver FROM table_name_66 WHERE laps > 43 AND grid = 5 | Who drive over 43 laps in grid 5? | CREATE TABLE table_name_66 (driver VARCHAR, laps VARCHAR, grid VARCHAR) |
SELECT year_born FROM table_name_25 WHERE position = "guard" AND current_club = "memphis grizzlies" | What year was the Guard who currently plays for the Memphis Grizzlies born? | CREATE TABLE table_name_25 (year_born VARCHAR, position VARCHAR, current_club VARCHAR) |
SELECT COUNT(rank) FROM table_name_98 WHERE places < 94 AND points < 169.8 AND nation = "japan" | Tell me the total number of rank for places less than 94 and points less than 169.8 for japan | CREATE TABLE table_name_98 (rank VARCHAR, nation VARCHAR, places VARCHAR, points VARCHAR) |
SELECT 2011 FROM table_name_36 WHERE 2007 = "558" | What is the 2011 entry for the row with a 2007 entry of 558? | CREATE TABLE table_name_36 (Id VARCHAR) |
SELECT competition FROM table_name_73 WHERE result = "1–2" | What competition has a Result of 1–2? | CREATE TABLE table_name_73 (competition VARCHAR, result VARCHAR) |
SELECT result FROM table_14954150_1 WHERE date = "October 6, 1974" | What was the result of the game on October 6, 1974? | CREATE TABLE table_14954150_1 (result VARCHAR, date VARCHAR) |
SELECT name FROM table_name_17 WHERE best = "1:45.361" | What is the name for the best of 1:45.361? | CREATE TABLE table_name_17 (name VARCHAR, best VARCHAR) |
SELECT T1.name FROM nurse AS T1 JOIN appointment AS T2 ON T1.employeeid = T2.prepnurse GROUP BY T1.employeeid ORDER BY COUNT(*) DESC LIMIT 1 | What is the name of the nurse has the most appointments? | CREATE TABLE nurse (name VARCHAR, employeeid VARCHAR); CREATE TABLE appointment (prepnurse VARCHAR) |
SELECT AVG(points) FROM table_name_8 WHERE time_retired = "+16.789" AND laps > 68 | How many average points did the player with a time/retired of +16.789 and have more laps than 68 have? | CREATE TABLE table_name_8 (points INTEGER, time_retired VARCHAR, laps VARCHAR) |
SELECT result FROM table_name_54 WHERE date = "april 3" | What is Result, when Date is "April 3"? | CREATE TABLE table_name_54 (result VARCHAR, date VARCHAR) |
SELECT position FROM table_name_68 WHERE pick = "47" | Tell me the position for pick of 47 | CREATE TABLE table_name_68 (position VARCHAR, pick VARCHAR) |
SELECT location FROM table_name_49 WHERE country = "belgian congo tanganyika" | Which location is in the Belgian Congo Tanganyika? | CREATE TABLE table_name_49 (location VARCHAR, country VARCHAR) |
SELECT club__city_town_ FROM table_14181578_1 WHERE goals_for_against = "14-2" | who is the the club (city/town) with goals for/against being 14-2 | CREATE TABLE table_14181578_1 (club__city_town_ VARCHAR, goals_for_against VARCHAR) |
SELECT rank FROM table_name_93 WHERE silver = 0 AND gold < 2 AND nation = "turkmenistan" | What rank is Turkmenistan, who had 0 silver's and Less than 2 golds? | CREATE TABLE table_name_93 (rank VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR) |
SELECT city FROM table_name_25 WHERE event = "ept german open" | The EPT German Open took place in what city? | CREATE TABLE table_name_25 (city VARCHAR, event VARCHAR) |
SELECT team FROM table_name_27 WHERE balls < 258 AND inns = 10 AND matches < 12 | Which Team has Balls smaller than 258, and Inns of 10, and Matches smaller than 12? | CREATE TABLE table_name_27 (team VARCHAR, matches VARCHAR, balls VARCHAR, inns VARCHAR) |
SELECT content FROM table_name_75 WHERE television_service = "nickelodeon +1" | What shows as Content for the Television service of nickelodeon +1? | CREATE TABLE table_name_75 (content VARCHAR, television_service VARCHAR) |
SELECT record FROM table_name_48 WHERE method = "decision (majority)" | What record has decision (majority) as the method? | CREATE TABLE table_name_48 (record VARCHAR, method VARCHAR) |
SELECT MAX(game) FROM table_name_12 WHERE high_rebounds = "pau gasol (11)" | Which Game is the highest one that has High rebounds of pau gasol (11)? | CREATE TABLE table_name_12 (game INTEGER, high_rebounds VARCHAR) |
SELECT Leading AS scorer FROM table_name_45 WHERE score = "68-79" | Leading scorer during the game of 68-79? | CREATE TABLE table_name_45 (Leading VARCHAR, score VARCHAR) |
SELECT part_number_s_ FROM table_name_56 WHERE l2_cache = "2 × 256 kb" AND frequency = "1.8 ghz" | What's the part number of the processor that has an 1.8 ghz frequency and 2 × 256 kb L@ Cache? | CREATE TABLE table_name_56 (part_number_s_ VARCHAR, l2_cache VARCHAR, frequency VARCHAR) |
SELECT Control AS trailers FROM table_name_45 WHERE year = "1931" AND builder = "grcw" | I want the control trailers for 1931 with builder of grcw | CREATE TABLE table_name_45 (Control VARCHAR, year VARCHAR, builder VARCHAR) |
SELECT T2.Name FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T3.Number_of_hosts > 20 | Show the host names for parties with number of hosts greater than 20. | CREATE TABLE HOST (Name VARCHAR, Host_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE party (Party_ID VARCHAR, Number_of_hosts INTEGER) |
SELECT sport FROM table_name_29 WHERE nation_represented = "united states" | Which sport did the United States win? | CREATE TABLE table_name_29 (sport VARCHAR, nation_represented VARCHAR) |
SELECT silver FROM table_name_31 WHERE year = "2006" | Who received the silver in 2006? | CREATE TABLE table_name_31 (silver VARCHAR, year VARCHAR) |
SELECT candidates FROM table_2668420_12 WHERE first_elected = 1791 | Who was the candidate in 1791? | CREATE TABLE table_2668420_12 (candidates VARCHAR, first_elected VARCHAR) |
SELECT score FROM table_name_97 WHERE tie_no = 28 | what is the score when the tie no is 28? | CREATE TABLE table_name_97 (score VARCHAR, tie_no VARCHAR) |
SELECT incumbent FROM table_2668199_2 WHERE candidates = "John Banks (AM) 52.2% Samuel Power (J) 47.8%" | Who was the incumbent when the candidates were John banks (am) 52.2% samuel power (j) 47.8%? | CREATE TABLE table_2668199_2 (incumbent VARCHAR, candidates VARCHAR) |
SELECT MAX(crowd) FROM table_name_38 WHERE venue = "windy hill" | What was the highest attendance of the matches that took place at Windy Hill? | CREATE TABLE table_name_38 (crowd INTEGER, venue VARCHAR) |
SELECT country FROM table_name_32 WHERE money___$__ = 816 AND player = "pete cooper" | Which country is Pete Cooper, who made $816, from? | CREATE TABLE table_name_32 (country VARCHAR, money___$__ VARCHAR, player VARCHAR) |
SELECT record FROM table_21796261_4 WHERE location = "BC Place Stadium" | What's the record achieved in the gamed played at BC Place Stadium? | CREATE TABLE table_21796261_4 (record VARCHAR, location VARCHAR) |
SELECT score FROM table_name_99 WHERE venue = "thessaloniki (without participation)" | Venue of thessaloniki (without participation) had what score? | CREATE TABLE table_name_99 (score VARCHAR, venue VARCHAR) |
SELECT high_assists FROM table_name_95 WHERE high_points = "mcwilliams-franklin (22)" | What high assists have McWilliams-franklin (22) as the high points? | CREATE TABLE table_name_95 (high_assists VARCHAR, high_points VARCHAR) |
SELECT high_rebounds FROM table_name_62 WHERE team = "denver" | Who had the high rebounds, and how many, when they played Denver? | CREATE TABLE table_name_62 (high_rebounds VARCHAR, team VARCHAR) |
SELECT MAX(no_in_season) FROM table_23289934_1 WHERE production_code = "3ABC12" | Name the most number in season for production code 3abc12 | CREATE TABLE table_23289934_1 (no_in_season INTEGER, production_code VARCHAR) |
SELECT tries FROM table_name_16 WHERE date = "06/07/1996" | How many tries took place on 06/07/1996? | CREATE TABLE table_name_16 (tries VARCHAR, date VARCHAR) |
SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY AVG(salary) DESC LIMIT 1 | Find the name of the department which has the highest average salary of professors. | CREATE TABLE instructor (dept_name VARCHAR, salary INTEGER) |
SELECT SUM(points) FROM table_name_54 WHERE position > 1 AND lost > 6 AND played < 14 | What's the points that has a lost more 6, played less than 14 and a position more than 1? | CREATE TABLE table_name_54 (points INTEGER, played VARCHAR, position VARCHAR, lost VARCHAR) |
SELECT player FROM table_name_3 WHERE country = "sweden" | Which player is from Sweden? | CREATE TABLE table_name_3 (player VARCHAR, country VARCHAR) |
SELECT genre FROM table_name_92 WHERE year < 2013 AND name = "kikumana" | Which Genre has a Year before 2013, and a Name of kikumana? | CREATE TABLE table_name_92 (genre VARCHAR, year VARCHAR, name VARCHAR) |
SELECT discovery___publication_of_name FROM table_name_78 WHERE species = "h.heidelbergensis" | Tell me the discovery/publicatio of name for h.heidelbergensis | CREATE TABLE table_name_78 (discovery___publication_of_name VARCHAR, species VARCHAR) |
SELECT tournament FROM table_name_3 WHERE winner = "patrick rafter" | Name the tournament for patrick rafter winning | CREATE TABLE table_name_3 (tournament VARCHAR, winner VARCHAR) |
SELECT driver FROM table_name_1 WHERE team = "p & l mechanical services" | Who is the Driver with the Team of P & L Mechanical Services? | CREATE TABLE table_name_1 (driver VARCHAR, team VARCHAR) |
SELECT opponent FROM table_17120964_8 WHERE result = "Won 4-1" | Who was the opponent of the game with final score won 4-1? | CREATE TABLE table_17120964_8 (opponent VARCHAR, result VARCHAR) |
SELECT districts FROM table_name_36 WHERE province = "piura" | Which district is in the province of Piura? | CREATE TABLE table_name_36 (districts VARCHAR, province VARCHAR) |
SELECT record FROM table_name_58 WHERE december < 22 AND score = "4–3" | Which Record has a December smaller than 22 and a Score of 4–3? | CREATE TABLE table_name_58 (record VARCHAR, december VARCHAR, score VARCHAR) |
SELECT MIN(cpc_blend_kazakhstan) FROM table_name_38 WHERE draugen_north_sea = 17 | What is the lowest CPC Blend Kazakhstan number when Draugen North Sea is 17? | CREATE TABLE table_name_38 (cpc_blend_kazakhstan INTEGER, draugen_north_sea VARCHAR) |
SELECT state FROM table_name_74 WHERE circuit = "sandown" | In which state can you find the Sandown circuit? | CREATE TABLE table_name_74 (state VARCHAR, circuit VARCHAR) |
SELECT general_classification FROM table_name_47 WHERE points_classification = "bradley wiggins" | What is the General classification for a points classification leader of Bradley Wiggins? | CREATE TABLE table_name_47 (general_classification VARCHAR, points_classification VARCHAR) |
SELECT MAX(long) FROM table_name_83 WHERE player = "charles pauley" AND yards < 60 | What was the highest long of Charles Pauley with fewer than 60 yards? | CREATE TABLE table_name_83 (long INTEGER, player VARCHAR, yards VARCHAR) |
SELECT MIN(gold) FROM table_name_48 WHERE bronze = 1 AND total = 3 AND rank > 7 | What is the smallest number of gold medals a country with 1 bronze, and a total of 3 medals which is lower than rank 7? | CREATE TABLE table_name_48 (gold INTEGER, rank VARCHAR, bronze VARCHAR, total VARCHAR) |
SELECT right_ascension___j2000__ FROM table_name_55 WHERE ngc_number > 2068 AND constellation = "dorado" AND declination___j2000__ = "°12′43″" | What is the right ascension (J2000) with a Declination (J2000) of °12′43″, is a constellation of dorado, and has an NGC number larger than 2068? | CREATE TABLE table_name_55 (right_ascension___j2000__ VARCHAR, declination___j2000__ VARCHAR, ngc_number VARCHAR, constellation VARCHAR) |
SELECT location_attendance FROM table_23248940_6 WHERE date = "November 18" | What is every value for location attendance on date of November 18? | CREATE TABLE table_23248940_6 (location_attendance VARCHAR, date VARCHAR) |
SELECT COUNT(high_points) FROM table_22879323_9 WHERE location_attendance = "Ford Center" | Name the number of high points for ford center | CREATE TABLE table_22879323_9 (high_points VARCHAR, location_attendance VARCHAR) |
SELECT first_elected FROM table_1342149_6 WHERE district = "California 22" | List all those first elected in the California 22 voting district. | CREATE TABLE table_1342149_6 (first_elected VARCHAR, district VARCHAR) |
SELECT AVG(T2.fastestlapspeed), T1.name, T1.year FROM races AS T1 JOIN results AS T2 ON T1.raceid = T2.raceid WHERE T1.year > 2014 GROUP BY T1.name ORDER BY T1.year | What are the average fastest lap speed in races held after 2004 grouped by race name and ordered by year? | CREATE TABLE results (fastestlapspeed INTEGER, raceid VARCHAR); CREATE TABLE races (name VARCHAR, year INTEGER, raceid VARCHAR) |
SELECT COUNT(producer__s_) FROM table_28232443_1 WHERE song__s_ = "Calling Out to Marlboro" | how many producers are responsible for the song 'calling out to marlboro? | CREATE TABLE table_28232443_1 (producer__s_ VARCHAR, song__s_ VARCHAR) |
SELECT MIN(area__km_2__) FROM table_name_47 WHERE type = "apostolic administration" | What Area (km 2) is lowest with a type being Apostolic Administration? | CREATE TABLE table_name_47 (area__km_2__ INTEGER, type VARCHAR) |
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id ORDER BY COUNT(*) DESC LIMIT 1 | Show the station name with greatest number of trains. | CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR) |
SELECT score FROM table_name_58 WHERE opponent = "boston celtics" | What is the Score of the game against the boston celtics? | CREATE TABLE table_name_58 (score VARCHAR, opponent VARCHAR) |
SELECT MIN(left_st_louis) FROM table_21564794_3 WHERE venue = "Scottrade Center" | What year did the team who played at the Scottrade Center leave the city? | CREATE TABLE table_21564794_3 (left_st_louis INTEGER, venue VARCHAR) |
SELECT mixed_doubles FROM table_name_92 WHERE year = 1979 | what game had a doubles round in 1979 | CREATE TABLE table_name_92 (mixed_doubles VARCHAR, year VARCHAR) |
SELECT SUM(attendance) FROM table_name_21 WHERE score = "3–2" AND opponent = "reds" | Score of 3–2, and a Opponent of reds had what sum of attendance? | CREATE TABLE table_name_21 (attendance INTEGER, score VARCHAR, opponent VARCHAR) |
SELECT album FROM table_name_74 WHERE length = "4:53" | What album is 4:53 long? | CREATE TABLE table_name_74 (album VARCHAR, length VARCHAR) |
SELECT year_location FROM table_28138035_26 WHERE womens_singles = "Fan Ying" | What year and where was the tournament when fan ying won the womens singles? | CREATE TABLE table_28138035_26 (year_location VARCHAR, womens_singles VARCHAR) |
SELECT margin_of_victory FROM table_name_25 WHERE tournament = "pga championship" | What is the margin of victory for PGA Championship? | CREATE TABLE table_name_25 (margin_of_victory VARCHAR, tournament VARCHAR) |
SELECT original_air_date FROM table_10718192_2 WHERE no_in_series = 63 | What's the date of the first airing of the episode with series number 63? | CREATE TABLE table_10718192_2 (original_air_date VARCHAR, no_in_series VARCHAR) |
SELECT original_name FROM table_name_27 WHERE country = "france" | Which film originated in France? | CREATE TABLE table_name_27 (original_name VARCHAR, country VARCHAR) |
SELECT venue FROM table_name_11 WHERE result = "7-2" | Where was the game with result 7-2 played? | CREATE TABLE table_name_11 (venue VARCHAR, result VARCHAR) |
SELECT result FROM table_name_73 WHERE road_team = "boston" AND game = "game 4" | What is the result for Boston's road team in game 4? | CREATE TABLE table_name_73 (result VARCHAR, road_team VARCHAR, game VARCHAR) |
SELECT manager FROM table_1218784_1 WHERE rank = 16 | Who is the manager whose rank is 16? | CREATE TABLE table_1218784_1 (manager VARCHAR, rank VARCHAR) |
SELECT title FROM table_11222744_2 WHERE catalog_number = "80809" | The Catalog number is 80809 what is the title? | CREATE TABLE table_11222744_2 (title VARCHAR, catalog_number VARCHAR) |
SELECT COUNT(grid) FROM table_name_4 WHERE driver = "rubens barrichello" | Tell me the total number of Grid for Rubens Barrichello | CREATE TABLE table_name_4 (grid VARCHAR, driver VARCHAR) |
SELECT MIN(laps) FROM table_name_32 WHERE start = "21" | What's the lowest amount of laps with a start of 21? | CREATE TABLE table_name_32 (laps INTEGER, start VARCHAR) |
SELECT COUNT(DISTINCT affiliation) FROM university | Find how many different affiliation types there are. | CREATE TABLE university (affiliation VARCHAR) |
SELECT score FROM table_11907963_6 WHERE high_rebounds = "Emeka Okafor (10)" | What was the score for the game in which Emeka Okafor (10) had high rebounds? | CREATE TABLE table_11907963_6 (score VARCHAR, high_rebounds VARCHAR) |
SELECT trial_start_date FROM table_name_36 WHERE candidate_name = "notes" | What is Trial Start Date, when Candidate Name is Notes? | CREATE TABLE table_name_36 (trial_start_date VARCHAR, candidate_name VARCHAR) |
SELECT COUNT(round) FROM table_name_93 WHERE opponent = "paul sutherland" | What is the total number of round values that had opponents named Paul Sutherland? | CREATE TABLE table_name_93 (round VARCHAR, opponent VARCHAR) |
SELECT COUNT(tie_no) FROM table_20819379_2 WHERE team_2 = "Osijek" | Name the total number of tie number for team 2 osijek | CREATE TABLE table_20819379_2 (tie_no VARCHAR, team_2 VARCHAR) |
SELECT region FROM table_name_85 WHERE catalog = "ilps 9153" | The Catalog of ilps 9153 is from what region? | CREATE TABLE table_name_85 (region VARCHAR, catalog VARCHAR) |
SELECT clubdesc FROM club WHERE clubname = "Tennis Club" | What is the description of the club named "Tennis Club"? | CREATE TABLE club (clubdesc VARCHAR, clubname VARCHAR) |
SELECT headquarters FROM company WHERE main_industry = 'Banking' GROUP BY headquarters HAVING COUNT(*) >= 2 | Show headquarters with at least two companies in the banking industry. | CREATE TABLE company (headquarters VARCHAR, main_industry VARCHAR) |
SELECT population FROM table_171250_2 WHERE area_km_2 = "715.58" | What is the population that has an area of 715.58? | CREATE TABLE table_171250_2 (population VARCHAR, area_km_2 VARCHAR) |
SELECT writer FROM table_26139405_1 WHERE episode__number = 26 | Who wrote episode 26 in the series? | CREATE TABLE table_26139405_1 (writer VARCHAR, episode__number VARCHAR) |
SELECT home_team AS score FROM table_16388506_1 WHERE home_team = "Richmond" | What are the home team scores when richmond is the home team? | CREATE TABLE table_16388506_1 (home_team VARCHAR) |
SELECT home_team AS score FROM table_name_13 WHERE venue = "junction oval" | What was the home team's score at the game held at Junction Oval? | CREATE TABLE table_name_13 (home_team VARCHAR, venue VARCHAR) |
SELECT rank FROM table_name_67 WHERE judge_m = "65.93" AND judge_e = "65.56" | what is the rank when judge m is 65.93 and judge e is 65.56? | CREATE TABLE table_name_67 (rank VARCHAR, judge_m VARCHAR, judge_e VARCHAR) |
SELECT opponent FROM table_name_22 WHERE date = "october 2, 2005" | Who played the Rams on October 2, 2005? | CREATE TABLE table_name_22 (opponent VARCHAR, date VARCHAR) |
SELECT AVG(new_council) FROM table_name_33 WHERE election_result > 24 | Which New council has an Election result larger than 24? | CREATE TABLE table_name_33 (new_council INTEGER, election_result INTEGER) |
SELECT SUM(game) FROM table_name_46 WHERE score = "87-92" | What is the Game # that scored 87-92? | CREATE TABLE table_name_46 (game INTEGER, score VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.