answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 484 |
|---|---|---|
SELECT MAX(matches) FROM table_name_5 WHERE prize_money = "£5,000" | What is the highest Matches, when Prize Money is £5,000? | CREATE TABLE table_name_5 (matches INTEGER, prize_money VARCHAR) |
SELECT T1.project_id, COUNT(*) FROM Project_Staff AS T1 JOIN Projects AS T2 ON T1.project_id = T2.project_id GROUP BY T1.project_id ORDER BY COUNT(*) | How many staff does each project has? List the project id and the number in an ascending order. | CREATE TABLE Project_Staff (project_id VARCHAR); CREATE TABLE Projects (project_id VARCHAR) |
SELECT MAX(drawn) FROM table_name_79 WHERE played > 14 | what is the highest drawn when played is more than 14? | CREATE TABLE table_name_79 (drawn INTEGER, played INTEGER) |
SELECT MIN(height__ft_) FROM table_name_62 WHERE year_built > 1961 AND location = "platz der einheit 1, gallus" AND height__m_ < 130 | What is the lowest height in feet for the building located in platz der einheit 1, gallus, that was built after 1961 with a height less than 130 meters? | CREATE TABLE table_name_62 (height__ft_ INTEGER, height__m_ VARCHAR, year_built VARCHAR, location VARCHAR) |
SELECT coach FROM table_name_99 WHERE win__percentage = ".352" | What is Coach, when Win % is .352? | CREATE TABLE table_name_99 (coach VARCHAR, win__percentage VARCHAR) |
SELECT COUNT(year) FROM table_name_36 WHERE chassis = "toleman tg183" | Which year had a toleman tg183 chassis? | CREATE TABLE table_name_36 (year VARCHAR, chassis VARCHAR) |
SELECT MAX(points) FROM table_25730123_2 | What are the most points listed? | CREATE TABLE table_25730123_2 (points INTEGER) |
SELECT evening_gown FROM table_16323766_3 WHERE preliminary_average = "8.121 (8)" | What was the evening gown score for the one who had a preliminary average of 8.121 (8)? | CREATE TABLE table_16323766_3 (evening_gown VARCHAR, preliminary_average VARCHAR) |
SELECT home_team FROM table_name_90 WHERE date = "june 9" | Who was the home team on June 9? | CREATE TABLE table_name_90 (home_team VARCHAR, date VARCHAR) |
SELECT senior_status FROM table_name_30 WHERE chief_judge = "1991–1995" | Which Senior status has a Chief Judge of 1991–1995? | CREATE TABLE table_name_30 (senior_status VARCHAR, chief_judge VARCHAR) |
SELECT airport FROM table_name_63 WHERE iata = "erz" | Which Airport has a IATA of erz? | CREATE TABLE table_name_63 (airport VARCHAR, iata VARCHAR) |
SELECT player FROM table_name_83 WHERE to_par = "–6" | Which player has a To par of –6? | CREATE TABLE table_name_83 (player VARCHAR, to_par VARCHAR) |
SELECT payload FROM table_name_12 WHERE class = "mrbm" AND range__varies_with_payload_weight_ = "1,930km" | What is the payload for Class MRBM, and a range of 1,930km? | CREATE TABLE table_name_12 (payload VARCHAR, class VARCHAR, range__varies_with_payload_weight_ VARCHAR) |
SELECT rnd FROM table_10725629_2 WHERE date = "August 9" | Which rounds were held on August 9? | CREATE TABLE table_10725629_2 (rnd VARCHAR, date VARCHAR) |
SELECT COUNT(attendance) FROM table_name_44 WHERE date = "may 10" | How many people attended the game on May 10? | CREATE TABLE table_name_44 (attendance VARCHAR, date VARCHAR) |
SELECT location FROM table_name_84 WHERE event = "meca world vale tudo 6" | In which location did the Meca World Vale Tudo 6 event happen? | CREATE TABLE table_name_84 (location VARCHAR, event VARCHAR) |
SELECT MIN(crowd) FROM table_name_13 WHERE home_team = "carlton" | If the Home team is carlton, what's the lowest Crowd found? | CREATE TABLE table_name_13 (crowd INTEGER, home_team VARCHAR) |
SELECT time FROM table_name_44 WHERE heat < 3 AND lane > 2 AND name = "jean luc razakarivony" | What was the time for Jean Luc Razakarivony with less than 3 heat and more than 2 lanes? | CREATE TABLE table_name_44 (time VARCHAR, name VARCHAR, heat VARCHAR, lane VARCHAR) |
SELECT gp_gs FROM table_name_4 WHERE assists = "1" | What was the gp/gs when the assists was 1? | CREATE TABLE table_name_4 (gp_gs VARCHAR, assists VARCHAR) |
SELECT nickname FROM table_262508_1 WHERE institution = "Concordia University, Nebraska" | What is the nickname of the institution from Concordia University, Nebraska? | CREATE TABLE table_262508_1 (nickname VARCHAR, institution VARCHAR) |
SELECT name FROM table_name_52 WHERE title = "marquis" | Who has the title of marquis? | CREATE TABLE table_name_52 (name VARCHAR, title VARCHAR) |
SELECT MAX(ending_with) FROM table_1852650_1 | Name the most ending with | CREATE TABLE table_1852650_1 (ending_with INTEGER) |
SELECT away_team AS score FROM table_name_16 WHERE home_team = "fitzroy" | When the home team was fitzroy, what did the away team score? | CREATE TABLE table_name_16 (away_team VARCHAR, home_team VARCHAR) |
SELECT SUM(races) FROM table_name_9 WHERE series = "toyota racing series" AND podiums > 3 | What is the sum of Races, when Series is Toyota Racing Series, and when Podiums is greater than 3? | CREATE TABLE table_name_9 (races INTEGER, series VARCHAR, podiums VARCHAR) |
SELECT high_points FROM table_22654073_6 WHERE record = "9-4" | Name the high points for record 9-4 | CREATE TABLE table_22654073_6 (high_points VARCHAR, record VARCHAR) |
SELECT country FROM table_name_30 WHERE points > 12 | What is Country, when Points are more than 12? | CREATE TABLE table_name_30 (country VARCHAR, points INTEGER) |
SELECT MAX(goals_scored) FROM table_name_33 WHERE points > 28 AND played > 18 | How many goals were scored when they had over 28 points and played over 18 games? | CREATE TABLE table_name_33 (goals_scored INTEGER, points VARCHAR, played VARCHAR) |
SELECT AVG(loss) FROM table_name_26 WHERE long > 12 AND name = "opponents" AND gain > 1751 | What is the average Loss for the long of more than 12 with a name of opponents with a Gain larger than 1751? | CREATE TABLE table_name_26 (loss INTEGER, gain VARCHAR, long VARCHAR, name VARCHAR) |
SELECT AVG(regular_attendees) FROM table_name_36 WHERE parishes = 79 | What is the average regular number of attendees that has 79 parishes? | CREATE TABLE table_name_36 (regular_attendees INTEGER, parishes VARCHAR) |
SELECT date_of_ceremony FROM table_26282750_1 WHERE participants_recipients = "Takakazu Watanabe" | What date was the participant/recipient takakazu watanabe? | CREATE TABLE table_26282750_1 (date_of_ceremony VARCHAR, participants_recipients VARCHAR) |
SELECT venue FROM table_name_98 WHERE away_team = "south dragons" | Can you tell me the Venue that has the Away team of south dragons? | CREATE TABLE table_name_98 (venue VARCHAR, away_team VARCHAR) |
SELECT date FROM table_name_53 WHERE tournament = "bell atlantic classic" | What day was the bell atlantic classic? | CREATE TABLE table_name_53 (date VARCHAR, tournament VARCHAR) |
SELECT college FROM table_name_37 WHERE player = "ben wearing" | What college did Ben Wearing play for? | CREATE TABLE table_name_37 (college VARCHAR, player VARCHAR) |
SELECT transfer_fee FROM table_name_61 WHERE app_l_c_e_ = "0 (0/0/0)" AND notes = "to anagennisi karditsa" | What was the transfer fee for the player who had an App(L/C/E) of 0 (0/0/0) and notes of to anagennisi karditsa? | CREATE TABLE table_name_61 (transfer_fee VARCHAR, app_l_c_e_ VARCHAR, notes VARCHAR) |
SELECT captain FROM table_name_15 WHERE guns = "28" | Tell me the captain for guns of 28 | CREATE TABLE table_name_15 (captain VARCHAR, guns VARCHAR) |
SELECT orchestra FROM table_name_41 WHERE songwriter_s_ = "ted varnick" | Name the orchestra for ted varnick | CREATE TABLE table_name_41 (orchestra VARCHAR, songwriter_s_ VARCHAR) |
SELECT to_par FROM table_name_92 WHERE score = 73 - 70 - 70 - 65 = 278 | What is the to par of the player with a 73-70-70-65=278 score? | CREATE TABLE table_name_92 (to_par VARCHAR, score VARCHAR) |
SELECT date_aired FROM table_name_54 WHERE title = "beat the star" | What was the date of the show titled Beat the Star? | CREATE TABLE table_name_54 (date_aired VARCHAR, title VARCHAR) |
SELECT COUNT(money___) AS $__ FROM table_name_85 WHERE score = 67 - 71 - 70 - 71 = 279 | What is the amount of money with a score of 67-71-70-71=279? | CREATE TABLE table_name_85 (money___ VARCHAR, score VARCHAR) |
SELECT MIN(round) FROM table_name_58 WHERE player = "matt delahey" AND pick > 112 | What is the littlest round that has Matt Delahey, and a greater than 112 pick? | CREATE TABLE table_name_58 (round INTEGER, player VARCHAR, pick VARCHAR) |
SELECT MIN(attendance) FROM table_name_40 WHERE score = "5 - 0" | What was the lowest attendance for a score of 5 - 0? | CREATE TABLE table_name_40 (attendance INTEGER, score VARCHAR) |
SELECT status FROM table_name_31 WHERE date = "12/7/1997" | What is the status of the match held on 12/7/1997? | CREATE TABLE table_name_31 (status VARCHAR, date VARCHAR) |
SELECT races FROM table_name_77 WHERE points > 123 AND driver = "fernando alonso" AND percentage_of_possible_points = "74.44%" | Which races have points greater than 123, fernando alonso as the driver and a percentage of possible points of 74.44%? | CREATE TABLE table_name_77 (races VARCHAR, percentage_of_possible_points VARCHAR, points VARCHAR, driver VARCHAR) |
SELECT tie_no FROM table_name_43 WHERE home_team = "gillingham" | What is listed as the Tie no for Home team of Gillingham? | CREATE TABLE table_name_43 (tie_no VARCHAR, home_team VARCHAR) |
SELECT erp_w FROM table_name_15 WHERE frequency_mhz = "88.5 fm" | Which ERP W has a Frequency MHz of 88.5 FM? | CREATE TABLE table_name_15 (erp_w VARCHAR, frequency_mhz VARCHAR) |
SELECT mixed_doubles FROM table_name_42 WHERE season = 2002 | Who won mixed doubles in the 2002 season? | CREATE TABLE table_name_42 (mixed_doubles VARCHAR, season VARCHAR) |
SELECT ihsaa_football_class FROM table_name_79 WHERE ihsaa_class = "aaa" AND location = "nashville" | Which IHSAA Football Class has a IHSAA Class of aaa, and a Location of nashville? | CREATE TABLE table_name_79 (ihsaa_football_class VARCHAR, ihsaa_class VARCHAR, location VARCHAR) |
SELECT score FROM table_name_71 WHERE tie_no = "12" | What is the score for the Tie no. 12? | CREATE TABLE table_name_71 (score VARCHAR, tie_no VARCHAR) |
SELECT district FROM table_name_51 WHERE party = "democratic" AND first_elected > 2006 | Which was the district that had first elected greater than 2006 and is democratic? | CREATE TABLE table_name_51 (district VARCHAR, party VARCHAR, first_elected VARCHAR) |
SELECT date FROM table_name_67 WHERE pictorials = "mercedes mcnab, girls of hawaiian tropic" | Which Date has a Pictorials of mercedes mcnab, girls of hawaiian tropic? | CREATE TABLE table_name_67 (date VARCHAR, pictorials VARCHAR) |
SELECT MAX(total_cargo__metric_tonnes_) FROM table_name_66 WHERE rank < 4 AND airport = "shanghai pudong international airport" | Which Total Cargo (Metric Tonnes) is the highest one that has a Rank smaller than 4, and an Airport of shanghai pudong international airport? | CREATE TABLE table_name_66 (total_cargo__metric_tonnes_ INTEGER, rank VARCHAR, airport VARCHAR) |
SELECT wins FROM table_name_61 WHERE conference = "—" AND division = "western" AND season = "1967–68" | What shows for Wins when there was a Conference of —, western division, in the 1967–68 season? | CREATE TABLE table_name_61 (wins VARCHAR, season VARCHAR, conference VARCHAR, division VARCHAR) |
SELECT player FROM table_name_23 WHERE years_of_nba_experience_[a_] = 7 | Who is the player with 7 years of NBA experience? | CREATE TABLE table_name_23 (player VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR) |
SELECT MAX(yards) FROM table_name_25 WHERE solo = 1 AND sack > 0 | How many yards for the player with 1 solo tackle and over 0 sacks? | CREATE TABLE table_name_25 (yards INTEGER, solo VARCHAR, sack VARCHAR) |
SELECT home_team AS score FROM table_name_97 WHERE home_team = "melbourne" | What is melbourne's home team score? | CREATE TABLE table_name_97 (home_team VARCHAR) |
SELECT vacator FROM table_name_6 WHERE reason_for_change = "resigned november 10, 1965" | which Vacator has a Reason for change of resigned november 10, 1965? | CREATE TABLE table_name_6 (vacator VARCHAR, reason_for_change VARCHAR) |
SELECT COUNT(earnings___) AS $__ FROM table_name_33 WHERE player = "jim colbert" AND wins < 4 | What are the earnings for jim colbert with under 4 wins? | CREATE TABLE table_name_33 (earnings___ VARCHAR, player VARCHAR, wins VARCHAR) |
SELECT team_record FROM table_name_52 WHERE result = "l 0–24" | What is the Team Record, when the Result is l 0–24? | CREATE TABLE table_name_52 (team_record VARCHAR, result VARCHAR) |
SELECT title FROM table_name_65 WHERE release_date = "2011-12-01 december 2011" | What is Title, when Release Date is 2011-12-01 December 2011? | CREATE TABLE table_name_65 (title VARCHAR, release_date VARCHAR) |
SELECT COUNT(state_and_district_of_columbia) FROM table_18958648_1 WHERE overweight__incl_obese__adults = "65.4%" | How many states or District of Columbia have 65.4% overweight or obese adults? | CREATE TABLE table_18958648_1 (state_and_district_of_columbia VARCHAR, overweight__incl_obese__adults VARCHAR) |
SELECT us_viewers__million_ FROM table_13183076_3 WHERE production_code = "3T7051" | How many U.S. viewers (million) are there for the episode whose Production code is 3T7051? | CREATE TABLE table_13183076_3 (us_viewers__million_ VARCHAR, production_code VARCHAR) |
SELECT episode FROM table_2105721_1 WHERE run_time = "24:44" | Name the episode for run time in 24:44 | CREATE TABLE table_2105721_1 (episode VARCHAR, run_time VARCHAR) |
SELECT tournament FROM table_name_56 WHERE date = "oct. 8, 2006" | Where was the tournament played on Oct. 8, 2006? | CREATE TABLE table_name_56 (tournament VARCHAR, date VARCHAR) |
SELECT away_team FROM table_name_19 WHERE venue = "moorabbin oval" | What away team is based in moorabbin oval? | CREATE TABLE table_name_19 (away_team VARCHAR, venue VARCHAR) |
SELECT home_team AS score FROM table_name_71 WHERE venue = "junction oval" | What was the home teams score at Junction Oval? | CREATE TABLE table_name_71 (home_team VARCHAR, venue VARCHAR) |
SELECT country, COUNT(*) FROM singer GROUP BY country | Show all countries and the number of singers in each country. | CREATE TABLE singer (country VARCHAR) |
SELECT mascot FROM table_name_63 WHERE enrollment = 640 | Which Mascot has an Enrollment of 640? | CREATE TABLE table_name_63 (mascot VARCHAR, enrollment VARCHAR) |
SELECT population FROM table_name_99 WHERE gdp_per_capita__us$_ = "11,929" | What is the population of the nation that has a GDP per capita (US$) of 11,929? | CREATE TABLE table_name_99 (population VARCHAR, gdp_per_capita__us$_ VARCHAR) |
SELECT nationality FROM table_name_47 WHERE rank > 2 AND time = "55.77" | What is the nationality of the swimmer with a rank over 2 with a time of 55.77? | CREATE TABLE table_name_47 (nationality VARCHAR, rank VARCHAR, time VARCHAR) |
SELECT college FROM table_name_34 WHERE pick__number = 1 AND overall > 1 AND round = 7 | Which college has a Pick # 1, Overall more than one, and Round is 7? | CREATE TABLE table_name_34 (college VARCHAR, round VARCHAR, pick__number VARCHAR, overall VARCHAR) |
SELECT COUNT(latitude) FROM table_24192190_1 WHERE time__utc_ = "9:47:38" | When 9:47:38 is the time (utc) how many measurements of latitude are there? | CREATE TABLE table_24192190_1 (latitude VARCHAR, time__utc_ VARCHAR) |
SELECT record FROM table_name_11 WHERE location = "boston garden" AND date = "wed. dec. 5" | What was their record on Wed. Dec. 5, when they played in Boston Garden? | CREATE TABLE table_name_11 (record VARCHAR, location VARCHAR, date VARCHAR) |
SELECT wins FROM table_18703133_6 WHERE points = 24 | How many wins have 24 points? | CREATE TABLE table_18703133_6 (wins VARCHAR, points VARCHAR) |
SELECT AVG(founded) FROM table_name_70 WHERE location = "east lansing, mi" | What is the average number of students in East Lansing, MI? | CREATE TABLE table_name_70 (founded INTEGER, location VARCHAR) |
SELECT high_rebounds FROM table_27723228_12 WHERE game = 81 | Name the high rebounds for 81 game | CREATE TABLE table_27723228_12 (high_rebounds VARCHAR, game VARCHAR) |
SELECT nationality FROM table_1965650_10 WHERE player = "Alain Labrecque" | What country is Alain Labrecque from? | CREATE TABLE table_1965650_10 (nationality VARCHAR, player VARCHAR) |
SELECT MAX(attendance) FROM table_name_94 WHERE result = "5-1" | What is the highest attendance at a game with a result of 5-1? | CREATE TABLE table_name_94 (attendance INTEGER, result VARCHAR) |
SELECT years_for_rockets FROM table_11734041_6 WHERE player = "Ford, Phil Phil Ford" | What years for the rockets did the player ford, phil phil ford play? | CREATE TABLE table_11734041_6 (years_for_rockets VARCHAR, player VARCHAR) |
SELECT label FROM table_name_83 WHERE catalogue = "tojp 60121-22" | What Label was Catalogued tojp 60121-22? | CREATE TABLE table_name_83 (label VARCHAR, catalogue VARCHAR) |
SELECT attendance FROM table_name_78 WHERE date = "september 7, 1953" | What was the attendance of the Browns' September 7, 1953 game? | CREATE TABLE table_name_78 (attendance VARCHAR, date VARCHAR) |
SELECT T1.title FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id WHERE T2.rating < 5 | Find the titles of items that received any rating below 5. | CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER) |
SELECT day_boarding FROM table_name_84 WHERE location = "mt lawley" | Is mt lawley day or boarding? | CREATE TABLE table_name_84 (day_boarding VARCHAR, location VARCHAR) |
SELECT COUNT(event_date) FROM table_28003469_1 WHERE event_details = "Women's Sabre" | How many event dates occurred when event details were women's sabre? | CREATE TABLE table_28003469_1 (event_date VARCHAR, event_details VARCHAR) |
SELECT COUNT(played) FROM table_name_24 WHERE ga = "22" | What is the total played games of a 22 G.A.? | CREATE TABLE table_name_24 (played VARCHAR, ga VARCHAR) |
SELECT primary_sponsor_s_ FROM table_19908313_2 WHERE listed_owner_s_ = "Bobby Dotter" | Who sponsors owner Bobby Dotter's team? | CREATE TABLE table_19908313_2 (primary_sponsor_s_ VARCHAR, listed_owner_s_ VARCHAR) |
SELECT score FROM table_name_11 WHERE match < 13 AND home_away = "home" AND date = "april 21, 2008" | What was the score for a match before 13, and a home game on April 21, 2008? | CREATE TABLE table_name_11 (score VARCHAR, date VARCHAR, match VARCHAR, home_away VARCHAR) |
SELECT coach FROM table_name_48 WHERE pct > 0.1 AND pts > 9 AND loss = 19 | What coach has a PCT larger than 0.1, PTS larger than 9 and a loss of 19? | CREATE TABLE table_name_48 (coach VARCHAR, loss VARCHAR, pct VARCHAR, pts VARCHAR) |
SELECT winningteam FROM table_12028543_3 WHERE season = "1989" | Who was the winning team in the 1989 season? | CREATE TABLE table_12028543_3 (winningteam VARCHAR, season VARCHAR) |
SELECT centerfold_model FROM table_1566852_8 WHERE pictorials = "Kimberly Bell , Bunnies of the New Playboy Club" | Who was the centerfold model when the issue's pictorial was kimberly bell , bunnies of the new playboy club? | CREATE TABLE table_1566852_8 (centerfold_model VARCHAR, pictorials VARCHAR) |
SELECT AVG(area_km_2) FROM table_name_97 WHERE census_ranking = "636 of 5,008" | What is the area of the community with a census ranking of 636 of 5,008? | CREATE TABLE table_name_97 (area_km_2 INTEGER, census_ranking VARCHAR) |
SELECT external_weapon FROM table_name_59 WHERE cart = "ramhead cart" | What is the external weapon with a ramhead cart? | CREATE TABLE table_name_59 (external_weapon VARCHAR, cart VARCHAR) |
SELECT MIN(no_in_series) FROM table_26736342_1 WHERE us_viewers__millions_ = "1.32" | What is the earliest episode that was watched by 1.32 million viewers? | CREATE TABLE table_26736342_1 (no_in_series INTEGER, us_viewers__millions_ VARCHAR) |
SELECT hydroxymatairesinol FROM table_1831262_2 WHERE sesamin = "62724" | what is the number of hydroxymatairesinol where sesamin is 62724? | CREATE TABLE table_1831262_2 (hydroxymatairesinol VARCHAR, sesamin VARCHAR) |
SELECT epoch__utc_ FROM table_206217_2 WHERE periselene__km_ = "5,454.925" | What is every entry for epoch if periselene is 5,454.925? | CREATE TABLE table_206217_2 (epoch__utc_ VARCHAR, periselene__km_ VARCHAR) |
SELECT COUNT(played) FROM table_name_60 WHERE position > 5 AND points = 11 AND drawn < 1 | Can you tell me the total number of Played that has the Position larger than 5, and the Points of 11, and the Drawn smaller than 1? | CREATE TABLE table_name_60 (played VARCHAR, drawn VARCHAR, position VARCHAR, points VARCHAR) |
SELECT COUNT(*) FROM HOTELS | How many available hotels are there in total? | CREATE TABLE HOTELS (Id VARCHAR) |
SELECT location FROM table_22670216_1 WHERE winning_driver = "Wally Dallenbach" AND track = "Wisconsin State Fair Park Speedway" | If the track is the Wisconsin State Fair Park Speedway and the winning driver is Wally Dallenbach, what was the location? | CREATE TABLE table_22670216_1 (location VARCHAR, winning_driver VARCHAR, track VARCHAR) |
SELECT MIN(number_of_seasons_in_top_division) FROM table_11250_4 | What is the least number of seasons in top division? | CREATE TABLE table_11250_4 (number_of_seasons_in_top_division INTEGER) |
SELECT AVG(pages) FROM table_name_77 WHERE isbn = "978-0-9766580-5-4" | I want the average pages for ISBN of 978-0-9766580-5-4 | CREATE TABLE table_name_77 (pages INTEGER, isbn 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) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.