answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT points FROM table_13564702_4 WHERE "lost" = "lost" | What is the value of the points column when the value of the column lost is "lost" | CREATE TABLE table_13564702_4 (points VARCHAR) |
SELECT promotion FROM table_name_7 WHERE event = "acid-fest" | What is the promotion when the event was Acid-fest? | CREATE TABLE table_name_7 (promotion VARCHAR, event VARCHAR) |
SELECT DISTINCT T1.Major FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.Treasurer_Vote | Find the distinct majors of students who have treasurer votes. | CREATE TABLE VOTING_RECORD (Treasurer_Vote VARCHAR); CREATE TABLE STUDENT (Major VARCHAR, StuID VARCHAR) |
SELECT asian___percentage_ FROM table_14754471_1 WHERE year = 2009 | What percentage of Asians are there in the year 2009? | CREATE TABLE table_14754471_1 (asian___percentage_ VARCHAR, year VARCHAR) |
SELECT actor FROM table_name_8 WHERE character = "dinny byrne" | who is the actor when the character is dinny byrne? | CREATE TABLE table_name_8 (actor VARCHAR, character VARCHAR) |
SELECT SUM(season) FROM table_name_63 WHERE number_of_clubs = 8 AND runners_up = "shanghai" | What is the sum of the season with 8 clubs and shanghai as the runners-up? | CREATE TABLE table_name_63 (season INTEGER, number_of_clubs VARCHAR, runners_up VARCHAR) |
SELECT T1.name, T1.lat, MIN(T2.duration) FROM station AS T1 JOIN trip AS T2 ON T1.id = T2.end_station_id GROUP BY T2.end_station_id | For each station, find its latitude and the minimum duration of trips that ended at the station. | CREATE TABLE trip (duration INTEGER, end_station_id VARCHAR); CREATE TABLE station (name VARCHAR, lat VARCHAR, id VARCHAR) |
SELECT brigade FROM table_name_10 WHERE type = "rural" AND tankers = 1 | What is the Brigade, when the Type is Rural, and when the value for Tankers is 1? | CREATE TABLE table_name_10 (brigade VARCHAR, type VARCHAR, tankers VARCHAR) |
SELECT pos FROM table_name_25 WHERE name = "michael lee" | Which position did Michael Lee play? | CREATE TABLE table_name_25 (pos VARCHAR, name VARCHAR) |
SELECT time_retired FROM table_name_75 WHERE qual = 144.02 | Which time/retired has a qual of 144.02? | CREATE TABLE table_name_75 (time_retired VARCHAR, qual VARCHAR) |
SELECT country FROM table_name_9 WHERE content = "tv locale" | What Country's Content is TV Locale? | CREATE TABLE table_name_9 (country VARCHAR, content VARCHAR) |
SELECT score FROM table_name_6 WHERE country = "australia" AND player = "peter lonard" | What was Australia's score when Peter Lonard played? | CREATE TABLE table_name_6 (score VARCHAR, country VARCHAR, player VARCHAR) |
SELECT bass FROM table_name_97 WHERE year > 1982 AND album = "against the grain" | Who played the bass for the Against the Grain album after 1982? | CREATE TABLE table_name_97 (bass VARCHAR, year VARCHAR, album VARCHAR) |
SELECT MIN(1980) FROM table_name_70 WHERE borough = "brooklyn" | What was the percentage in 1980 in Brooklyn? | CREATE TABLE table_name_70 (borough VARCHAR) |
SELECT 1998 FROM table_name_26 WHERE 1997 = "3r" AND 1992 = "a" | What is 1998, when 1997 is "3R", and when 1992 is "A"? | CREATE TABLE table_name_26 (Id VARCHAR) |
SELECT college_junior_club_team FROM table_1213511_7 WHERE nationality = "Canada" AND nhl_team = "Minnesota North Stars" | Which college/junior/club teams nationality is canada and nhl team is minnesota north stars | CREATE TABLE table_1213511_7 (college_junior_club_team VARCHAR, nationality VARCHAR, nhl_team VARCHAR) |
SELECT head_coach FROM table_name_43 WHERE town = "novy urengoy" | What is the Head Coach of Novy Urengoy? | CREATE TABLE table_name_43 (head_coach VARCHAR, town VARCHAR) |
SELECT method FROM table_name_58 WHERE weight_class = "welterweight" AND card = "preliminary" | Which method was used in the welterweight class with a preliminary card? | CREATE TABLE table_name_58 (method VARCHAR, weight_class VARCHAR, card VARCHAR) |
SELECT combined_consumption FROM table_name_85 WHERE code = "k9k 796" | What is the combined consumption of the engine with the code k9k 796? | CREATE TABLE table_name_85 (combined_consumption VARCHAR, code VARCHAR) |
SELECT mascot FROM table_name_70 WHERE school = "rosedale" | Can you tell me the Mascot that has the School of rosedale? | CREATE TABLE table_name_70 (mascot VARCHAR, school VARCHAR) |
SELECT position FROM table_29626583_3 WHERE mls_team = "New York Red Bulls" | What position did the team new york red bulls pick? | CREATE TABLE table_29626583_3 (position VARCHAR, mls_team VARCHAR) |
SELECT date FROM table_name_17 WHERE opposing_teams = "wales" | What day was Wales the opposing team? | CREATE TABLE table_name_17 (date VARCHAR, opposing_teams VARCHAR) |
SELECT directed_by FROM table_10269427_3 WHERE written_by = "Sib Ventress / Aydrea ten Bosch" | who directed the movie written by is sib ventress / aydrea ten bosch | CREATE TABLE table_10269427_3 (directed_by VARCHAR, written_by VARCHAR) |
SELECT date FROM table_27713583_11 WHERE team = "Cleveland" | Name the date for cleveland | CREATE TABLE table_27713583_11 (date VARCHAR, team VARCHAR) |
SELECT date FROM table_name_88 WHERE week > 11 AND opponent = "arizona cardinals" | On which date after week 11 was the opponent the arizona cardinals? | CREATE TABLE table_name_88 (date VARCHAR, week VARCHAR, opponent VARCHAR) |
SELECT date FROM table_name_70 WHERE home_team = "west ham united" | What is the Date for the Home team West Ham United | CREATE TABLE table_name_70 (date VARCHAR, home_team VARCHAR) |
SELECT 2012 FROM table_name_45 WHERE tournament = "hamburg masters" | What is the 2012 of the hamburg masters? | CREATE TABLE table_name_45 (tournament VARCHAR) |
SELECT date_s__conducted FROM table_name_69 WHERE plaid_cymru = "19%" | Tell me the dates conducted for plaid cymru of 19% | CREATE TABLE table_name_69 (date_s__conducted VARCHAR, plaid_cymru VARCHAR) |
SELECT country FROM table_name_28 WHERE territory = "french guiana" | What country has a territory of French Guiana? | CREATE TABLE table_name_28 (country VARCHAR, territory VARCHAR) |
SELECT number_of_contestants FROM table_name_55 WHERE international_destinations = "london lisbon" | What is Number of Contestants, when International Destinations is London Lisbon? | CREATE TABLE table_name_55 (number_of_contestants VARCHAR, international_destinations VARCHAR) |
SELECT SUM(attendance) FROM table_name_83 WHERE location = "oakland-alameda county coliseum" AND game = 2 | What is the number of people in attendance at Oakland-Alameda County Coliseum, and game is 2? | CREATE TABLE table_name_83 (attendance INTEGER, location VARCHAR, game VARCHAR) |
SELECT AVG(league_goals) FROM table_name_95 WHERE league_apps = "16 (1)" AND league_cup_goals < 0 | What is the league goals when the league cup goals is less than 0 and 16 (1) league apps? | CREATE TABLE table_name_95 (league_goals INTEGER, league_apps VARCHAR, league_cup_goals VARCHAR) |
SELECT saffir_simpson_category FROM table_15416002_1 WHERE name = "Bonnie" | What is the Saffir-Simpson category for the hurricane named Bonnie? | CREATE TABLE table_15416002_1 (saffir_simpson_category VARCHAR, name VARCHAR) |
SELECT MAX(blocks) FROM table_19722664_5 WHERE rebounds = 35 | What is the maximum number of blocks where rebounds equal 35? | CREATE TABLE table_19722664_5 (blocks INTEGER, rebounds VARCHAR) |
SELECT t2.All_Games, t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson' | Find the location and all games score of the school that has Clemson as its team name. | CREATE TABLE basketball_match (All_Games VARCHAR, school_id VARCHAR); CREATE TABLE university (location VARCHAR, school_id VARCHAR) |
SELECT MAX(date) FROM table_name_19 WHERE partner = "nicklas kulti" AND score = "3–6, 7–6, 6–4" | When was the most recent game that he partnered with nicklas kulti and they scored 3–6, 7–6, 6–4? | CREATE TABLE table_name_19 (date INTEGER, partner VARCHAR, score VARCHAR) |
SELECT SUM(gold) FROM table_name_19 WHERE rank = "19" | What is the number of gold for the country ranked 19? | CREATE TABLE table_name_19 (gold INTEGER, rank VARCHAR) |
SELECT COUNT(site) FROM table_28298589_2 WHERE time = "3:30pm" AND visiting_team = "Coastal Carolina" | How many site entries are there at 3:30pm and the visiting team is coastal carolina? | CREATE TABLE table_28298589_2 (site VARCHAR, time VARCHAR, visiting_team VARCHAR) |
SELECT MIN(genes) FROM table_name_66 WHERE species = "rubrobacter xylanophilus" | What is the lowest number of genes in Rubrobacter Xylanophilus? | CREATE TABLE table_name_66 (genes INTEGER, species VARCHAR) |
SELECT enrollment FROM table_20887670_1 WHERE institution = "Central" | what is the number of enrollment of the central institution? | CREATE TABLE table_20887670_1 (enrollment VARCHAR, institution VARCHAR) |
SELECT AVG(year) FROM table_name_71 WHERE points < 9 AND rank = "24th" | What's the average Year that has Points that's smaller than 9 with a Rank of 24th? | CREATE TABLE table_name_71 (year INTEGER, points VARCHAR, rank VARCHAR) |
SELECT SUM(to_par) FROM table_name_88 WHERE score = 76 - 77 - 74 - 75 = 302 | What is the sum of the to par with a 76-77-74-75=302 score? | CREATE TABLE table_name_88 (to_par INTEGER, score VARCHAR) |
SELECT result FROM table_name_99 WHERE home_team = "rochester" AND game = "game 5" | Which Result has a Home Team of rochester, and a Game of game 5? | CREATE TABLE table_name_99 (result VARCHAR, home_team VARCHAR, game VARCHAR) |
SELECT venue FROM table_name_13 WHERE date = "23,24,25,26 july 1992" | Where was a game played on 23,24,25,26 july 1992? | CREATE TABLE table_name_13 (venue VARCHAR, date VARCHAR) |
SELECT pts FROM table_14139408_1 WHERE position = "NC" | what's the pts with position being nc | CREATE TABLE table_14139408_1 (pts VARCHAR, position VARCHAR) |
SELECT MIN(points) FROM table_name_33 WHERE season = "1994" | What were the lowest amount of points for season 1994? | CREATE TABLE table_name_33 (points INTEGER, season VARCHAR) |
SELECT shooter FROM table_name_59 WHERE score = "686.4" | Who was the shooter with a score of 686.4? | CREATE TABLE table_name_59 (shooter VARCHAR, score VARCHAR) |
SELECT MAX(crowd) FROM table_name_72 WHERE venue = "mcg" | What is the highest crowd at mcg? | CREATE TABLE table_name_72 (crowd INTEGER, venue VARCHAR) |
SELECT MAX(nadal) FROM table_name_55 WHERE round = "final" AND tournament = "miami" | What was the nadal in Miami in the final round? | CREATE TABLE table_name_55 (nadal INTEGER, round VARCHAR, tournament VARCHAR) |
SELECT MAX(officers_o_s) FROM table_23508196_2 WHERE total_usaaf = 2373882 | How many officers o/s were there on the day when the number of USAAF was 2373882? | CREATE TABLE table_23508196_2 (officers_o_s INTEGER, total_usaaf VARCHAR) |
SELECT name FROM table_name_81 WHERE assumed_office = 2013 AND district = "o" | What is the name of the Senator in the O District who assumed office in 2013? | CREATE TABLE table_name_81 (name VARCHAR, assumed_office VARCHAR, district VARCHAR) |
SELECT opponent FROM table_name_38 WHERE score = "5–4 (11)" | What team was the opponent when there was a score of 5–4 (11)? | CREATE TABLE table_name_38 (opponent VARCHAR, score VARCHAR) |
SELECT qual FROM table_name_67 WHERE laps = 182 | When completing 182 laps, what was the qual.? | CREATE TABLE table_name_67 (qual VARCHAR, laps VARCHAR) |
SELECT yearid FROM hall_of_fame GROUP BY yearid ORDER BY COUNT(*) LIMIT 1 | In which year did the least people enter hall of fame? | CREATE TABLE hall_of_fame (yearid VARCHAR) |
SELECT award_name FROM table_name_77 WHERE team_number = 23 | What's the name of the award given to Team number 23? | CREATE TABLE table_name_77 (award_name VARCHAR, team_number VARCHAR) |
SELECT SUM(quantity) FROM table_name_71 WHERE date = "1900" | What was the Quantity on Date 1900? | CREATE TABLE table_name_71 (quantity INTEGER, date VARCHAR) |
SELECT COUNT(losses) FROM table_name_75 WHERE draw < 51 AND wins > 6 | How many total losses were with less than 51 draws but more than 6 wins? | CREATE TABLE table_name_75 (losses VARCHAR, draw VARCHAR, wins VARCHAR) |
SELECT club_province FROM table_name_27 WHERE caps > 45 AND position = "prop" | What club/province does the prop player with over 45 caps play for? | CREATE TABLE table_name_27 (club_province VARCHAR, caps VARCHAR, position VARCHAR) |
SELECT MIN(attendance) FROM table_name_90 WHERE week = 12 | What was the lowest Attendance during Week 12? | CREATE TABLE table_name_90 (attendance INTEGER, week VARCHAR) |
SELECT enrollment FROM table_28243691_2 WHERE team_nickname = "Comets" | How many students are enrolled in the team nicknamed Comets? | CREATE TABLE table_28243691_2 (enrollment VARCHAR, team_nickname VARCHAR) |
SELECT AVG(cuts_made) FROM table_name_63 WHERE top_25 < 5 | What is the average number of cuts made in the Top 25 smaller than 5? | CREATE TABLE table_name_63 (cuts_made INTEGER, top_25 INTEGER) |
SELECT match_report FROM table_name_98 WHERE result_score = "l 7-30" | Which match report has l 7-30 as the result/score? | CREATE TABLE table_name_98 (match_report VARCHAR, result_score VARCHAR) |
SELECT official_name FROM table_name_38 WHERE area_km_2 = 343.95 | With an area km 2 of 343.95 what is the official name? | CREATE TABLE table_name_38 (official_name VARCHAR, area_km_2 VARCHAR) |
SELECT COUNT(results) FROM table_1341453_45 WHERE incumbent = "Ruben Hinojosa" | How many times did incumbent ruben hinojosa get elected? | CREATE TABLE table_1341453_45 (results VARCHAR, incumbent VARCHAR) |
SELECT position FROM table_name_1 WHERE round < 3 | Tell me the position for round less than 3 | CREATE TABLE table_name_1 (position VARCHAR, round INTEGER) |
SELECT COUNT(year) FROM table_name_94 WHERE team = "wal-mart / tide" | How many years does Team wal-mart / tide participate? | CREATE TABLE table_name_94 (year VARCHAR, team VARCHAR) |
SELECT years FROM table_2841865_2 WHERE congress = "96th" | What time span is listed under years for the 96th congres? | CREATE TABLE table_2841865_2 (years VARCHAR, congress VARCHAR) |
SELECT 2007 FROM table_name_7 WHERE 2003 = "2r" AND 2004 = "1r" | Which 2007 has a 2003 of 2r, and a 2004 of 1r? | CREATE TABLE table_name_7 (Id VARCHAR) |
SELECT MAX(opponents) FROM table_18207285_2 WHERE result = "Win" AND game = 1 | How many opponents played 1 game with a result win? | CREATE TABLE table_18207285_2 (opponents INTEGER, result VARCHAR, game VARCHAR) |
SELECT race FROM table_name_74 WHERE date = "15 june" | What race occurred on the date of 15 June? | CREATE TABLE table_name_74 (race VARCHAR, date VARCHAR) |
SELECT COUNT(score) FROM table_name_50 WHERE player = "jaco coetzee" AND tries > 6 | Player of jaco coetzee, and a Tries larger than 6 had what total number of score? | CREATE TABLE table_name_50 (score VARCHAR, player VARCHAR, tries VARCHAR) |
SELECT course FROM table_name_29 WHERE date = "24 july" | Name the course for 24 july | CREATE TABLE table_name_29 (course VARCHAR, date VARCHAR) |
SELECT height FROM table_name_34 WHERE storeys < 45 AND building = "scotia centre" | What is the height for less than 45 storeys in Scotia Centre? | CREATE TABLE table_name_34 (height VARCHAR, storeys VARCHAR, building VARCHAR) |
SELECT Destroyed_by_Employee_ID, COUNT(*) FROM Documents_to_be_destroyed GROUP BY Destroyed_by_Employee_ID | Show the employee ids and the number of documents destroyed by each employee. | CREATE TABLE Documents_to_be_destroyed (Destroyed_by_Employee_ID VARCHAR) |
SELECT opponents FROM table_2186447_1 WHERE score = "5–7, 5–7" | Who was playing when the score was 5–7, 5–7? | CREATE TABLE table_2186447_1 (opponents VARCHAR, score VARCHAR) |
SELECT date FROM table_name_13 WHERE venue = "al-rashid stadium, dubai" | What was the date of the game held at the Al-Rashid Stadium, Dubai? | CREATE TABLE table_name_13 (date VARCHAR, venue VARCHAR) |
SELECT score FROM table_name_64 WHERE to_par = "+1" AND player = "anders forsbrand" | What is Anders Forsbrand's score with a to par of +1? | CREATE TABLE table_name_64 (score VARCHAR, to_par VARCHAR, player VARCHAR) |
SELECT result FROM table_name_65 WHERE date = "november 20, 1994" | On November 20, 1994, what was the result of the game? | CREATE TABLE table_name_65 (result VARCHAR, date VARCHAR) |
SELECT attendance FROM table_name_63 WHERE site = "dowdy-ficklen stadium • greenville, nc" AND opponent = "ohio" | What is the number in attendance at Dowdy-Ficklen stadium • Greenville, NC, and the opponent was Ohio? | CREATE TABLE table_name_63 (attendance VARCHAR, site VARCHAR, opponent VARCHAR) |
SELECT left_team FROM table_name_60 WHERE name = "josh vanlandingham" | Tell me the left team for josh vanlandingham | CREATE TABLE table_name_60 (left_team VARCHAR, name VARCHAR) |
SELECT MAX(rank) FROM table_name_34 WHERE country = "peru" AND total > 3 | What rank was Peru with a total greater than 3? | CREATE TABLE table_name_34 (rank INTEGER, country VARCHAR, total VARCHAR) |
SELECT kit_manufacturer FROM table_name_63 WHERE shirt_sponsor = "walkers" | Who was the Kit manufacturer that was has shirts sponsored by Walkers? | CREATE TABLE table_name_63 (kit_manufacturer VARCHAR, shirt_sponsor VARCHAR) |
SELECT animal FROM table_name_75 WHERE resting_potential__mv_ = "−60" | Which animal has a resting potential of −60? | CREATE TABLE table_name_75 (animal VARCHAR, resting_potential__mv_ VARCHAR) |
SELECT MIN(gdp__ppp__per_capita__2008_) FROM table_25042332_33 WHERE combined_gross_enrollment_ratio__2009_ = "89.0" | What is the gdp per capita in 2008 for the region that had a combined gross enrollment ration of 89.0? | CREATE TABLE table_25042332_33 (gdp__ppp__per_capita__2008_ INTEGER, combined_gross_enrollment_ratio__2009_ VARCHAR) |
SELECT high_rebounds FROM table_27734577_8 WHERE high_points = "Jamal Crawford (20)" | What are the high rebounds in the jamal crawford (20) high points? | CREATE TABLE table_27734577_8 (high_rebounds VARCHAR, high_points VARCHAR) |
SELECT candidates FROM table_1341973_3 WHERE district = "Alabama 6" | Which candidates ran in the Alabama 6 district? | CREATE TABLE table_1341973_3 (candidates VARCHAR, district VARCHAR) |
SELECT AVG(decile) FROM table_name_64 WHERE authority = "state" AND name = "ruapehu college" | What is the average decile of Ruapehu college, which has a state authority? | CREATE TABLE table_name_64 (decile INTEGER, authority VARCHAR, name VARCHAR) |
SELECT rainfall_by_depth__mm_year_ FROM table_25983027_1 WHERE land_area__km_2__ = "8,543.2" | In the Central region, where the land area (km 2) is 8,543.2, what was the rainfall by depth (mm/year)? | CREATE TABLE table_25983027_1 (rainfall_by_depth__mm_year_ VARCHAR, land_area__km_2__ VARCHAR) |
SELECT name FROM table_name_90 WHERE floors > 34 | Which building has more than 34 floors? | CREATE TABLE table_name_90 (name VARCHAR, floors INTEGER) |
SELECT result FROM table_name_5 WHERE week > 6 AND date = "november 22, 1959" | Week larger than 6, and a Date of november 22, 1959 had what result? | CREATE TABLE table_name_5 (result VARCHAR, week VARCHAR, date VARCHAR) |
SELECT COUNT(score) FROM table_23248869_8 WHERE record = "19–34" | How many times was the record 19–34 | CREATE TABLE table_23248869_8 (score VARCHAR, record VARCHAR) |
SELECT 2 AS nd_leg FROM table_name_96 WHERE team_2 = "al-faisaly" | For a team 2 of Al-Faisaly, what was the 2nd leg? | CREATE TABLE table_name_96 (team_2 VARCHAR) |
SELECT opponent FROM table_name_85 WHERE time = "2:35" | Which opponent has a time of 2:35? | CREATE TABLE table_name_85 (opponent VARCHAR, time VARCHAR) |
SELECT wkts FROM table_name_13 WHERE econ = "4.23" | Tell me the wkts for econ of 4.23 | CREATE TABLE table_name_13 (wkts VARCHAR, econ VARCHAR) |
SELECT club_career FROM table_name_65 WHERE position = "df" AND total_goals < 18 AND league_apps < 129 AND league_goals > 7 | What was the club career for players in positions of DF, fewer than 18 total goals, fewer than 129 league appearances, and more than 7 league goals? | CREATE TABLE table_name_65 (club_career VARCHAR, league_goals VARCHAR, league_apps VARCHAR, position VARCHAR, total_goals VARCHAR) |
SELECT MIN(position) FROM table_25594271_2 WHERE sail_number = "AUS 03" | What is the position for sail number aus 03? | CREATE TABLE table_25594271_2 (position INTEGER, sail_number VARCHAR) |
SELECT tournament FROM table_name_11 WHERE winning_score = –9(69 - 72 - 68 - 70 = 279) | What tournament had a Winning score of –9 (69-72-68-70=279)? | CREATE TABLE table_name_11 (tournament VARCHAR, winning_score VARCHAR) |
SELECT ring_name FROM table_name_49 WHERE stable = "kasugano" AND birthplace = "z mtskheta , georgia" | What is Ring Name, when Stable is Kasugano, and when Birthplace is Z Mtskheta , Georgia? | CREATE TABLE table_name_49 (ring_name VARCHAR, stable VARCHAR, birthplace VARCHAR) |
SELECT branding FROM table_12547903_3 WHERE location = "Dagupan" | What was the branding in Dagupan? | CREATE TABLE table_12547903_3 (branding VARCHAR, location VARCHAR) |
SELECT d_43 FROM table_name_68 WHERE d_46 = "r 6" | What is the D 43 when D 46 is R 6? | CREATE TABLE table_name_68 (d_43 VARCHAR, d_46 VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.