answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT COUNT(*) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = "South" | How many department stores does the store chain South have? | CREATE TABLE department_stores (dept_store_chain_id VARCHAR); CREATE TABLE department_store_chain (dept_store_chain_id VARCHAR, dept_store_chain_name VARCHAR) |
SELECT lifetime_achievement FROM table_name_39 WHERE year = 1998 | who won the lifetime achievement in the year 1998? | CREATE TABLE table_name_39 (lifetime_achievement VARCHAR, year VARCHAR) |
SELECT opponent FROM table_name_20 WHERE venue = "jeonju" | Who was the opponent at the competition held at Jeonju? | CREATE TABLE table_name_20 (opponent VARCHAR, venue VARCHAR) |
SELECT original_air_date__us_ FROM table_28511558_2 WHERE directed_by = "Curt Geda" AND written_by = "Mitch Watson" | What date did the episode written by Mitch Watson and directed by Curt Geda originally air in the U.S.? | CREATE TABLE table_28511558_2 (original_air_date__us_ VARCHAR, directed_by VARCHAR, written_by VARCHAR) |
SELECT COUNT(lane) FROM table_name_80 WHERE heat = 1 AND name = "david carry" | What lane is David Carry in heat 1? | CREATE TABLE table_name_80 (lane VARCHAR, heat VARCHAR, name VARCHAR) |
SELECT game_site FROM table_name_58 WHERE record = "2-2" | Which game site(s) had record of 2-2? | CREATE TABLE table_name_58 (game_site VARCHAR, record VARCHAR) |
SELECT Local AS mission FROM table_name_18 WHERE local_location = "kingstown" | What is the local mission that has kingstown as a local location? | CREATE TABLE table_name_18 (Local VARCHAR, local_location VARCHAR) |
SELECT bname FROM bank WHERE state = 'New York' | Find the branch names of banks in the New York state. | CREATE TABLE bank (bname VARCHAR, state VARCHAR) |
SELECT year FROM table_name_42 WHERE class = "wsc" | What year has WSC class? | CREATE TABLE table_name_42 (year VARCHAR, class VARCHAR) |
SELECT MIN(week) FROM table_name_60 WHERE attendance < 34 OFFSET 336 | Can you tell me the lowest Week that has the Attendance smaller than 34,336? | CREATE TABLE table_name_60 (week INTEGER, attendance INTEGER) |
SELECT partner FROM table_name_2 WHERE construction_start = "2008 january" | What Partner has a Construction Start of 2008 january? | CREATE TABLE table_name_2 (partner VARCHAR, construction_start VARCHAR) |
SELECT AVG(enrollment) FROM table_name_34 WHERE ihsaa_class = "a" AND location = "wolcott" | What is the average enrollment of the IHSAA A class in wolcott? | CREATE TABLE table_name_34 (enrollment INTEGER, ihsaa_class VARCHAR, location VARCHAR) |
SELECT party FROM table_1342359_15 WHERE district = "Kansas 1" | what are all the party with district being kansas 1 | CREATE TABLE table_1342359_15 (party VARCHAR, district VARCHAR) |
SELECT score FROM table_name_60 WHERE place = "t1" AND player = "tim herron" | What is the score of Tim Herron, who placed t1? | CREATE TABLE table_name_60 (score VARCHAR, place VARCHAR, player VARCHAR) |
SELECT role FROM table_name_26 WHERE registration = "s5-hpg s5-hpc" | What is the role of the aircraft that has a registration of s5-hpg s5-hpc? | CREATE TABLE table_name_26 (role VARCHAR, registration VARCHAR) |
SELECT catalog FROM table_name_72 WHERE label = "sony music direct" | What are the catalogs of releases from Sony Music Direct? | CREATE TABLE table_name_72 (catalog VARCHAR, label VARCHAR) |
SELECT country FROM table_name_60 WHERE score = 66 - 68 = 134 | Which country scored 66-68=134? | CREATE TABLE table_name_60 (country VARCHAR, score VARCHAR) |
SELECT part_3 FROM table_1745843_5 WHERE part_2 = "band" | What is the 3rd participle of the verb whose 2nd participle is band? | CREATE TABLE table_1745843_5 (part_3 VARCHAR, part_2 VARCHAR) |
SELECT MIN(subsidiaries) FROM table_1756264_2 WHERE company_name = "POSTERMOBILE ADVERTISING LIMITED" | How many subsidiaries are there of Postermobile Advertising Limited? | CREATE TABLE table_1756264_2 (subsidiaries INTEGER, company_name VARCHAR) |
SELECT croatian FROM table_25008327_8 WHERE english = "dog" | What is every value for Croatian when value for English is dog? | CREATE TABLE table_25008327_8 (croatian VARCHAR, english VARCHAR) |
SELECT record FROM table_name_28 WHERE home = "chicago black hawks" AND visitor = "new york rangers" AND score = "3–2" | What is the Record of the Chicago Black Hawks Home game with the New York Rangers and a Score of 3–2? | CREATE TABLE table_name_28 (record VARCHAR, score VARCHAR, home VARCHAR, visitor VARCHAR) |
SELECT position FROM table_11545282_18 WHERE player = "DeShawn Stevenson" | Which position does Deshawn Stevenson play? | CREATE TABLE table_11545282_18 (position VARCHAR, player VARCHAR) |
SELECT party FROM table_name_25 WHERE first_elected = "1966" AND state = "qld" AND member = "donald milner cameron" | Which party has a first elected of 1966, qld as the state, and donald milner cameron as the member? | CREATE TABLE table_name_25 (party VARCHAR, member VARCHAR, first_elected VARCHAR, state VARCHAR) |
SELECT borough FROM table_name_82 WHERE type = "history" AND name = "fairbanks community museum" | In what Borough is the History Type Fairbanks Community Museum? | CREATE TABLE table_name_82 (borough VARCHAR, type VARCHAR, name VARCHAR) |
SELECT other FROM table_27003186_3 WHERE registered_voters = "50.7%" | What is other when registered voters is 50.7%? | CREATE TABLE table_27003186_3 (other VARCHAR, registered_voters VARCHAR) |
SELECT cfl_team FROM table_30108930_6 WHERE pick__number = 35 | Which CFL team was pick #35? | CREATE TABLE table_30108930_6 (cfl_team VARCHAR, pick__number VARCHAR) |
SELECT us_viewers__million_ FROM table_25341765_1 WHERE directed_by = "Jeffrey Blitz" | How many millions of viewers did the episode directed by Jeffrey Blitz have? | CREATE TABLE table_25341765_1 (us_viewers__million_ VARCHAR, directed_by VARCHAR) |
SELECT preliminary_average FROM table_name_78 WHERE interview = "8.600 (6)" | what is the preliminary average score when the interview score is 8.600 (6)? | CREATE TABLE table_name_78 (preliminary_average VARCHAR, interview VARCHAR) |
SELECT title FROM table_23114705_3 WHERE no_in_season = 13 | What is the name of the episode where the season number is 13? | CREATE TABLE table_23114705_3 (title VARCHAR, no_in_season VARCHAR) |
SELECT time FROM table_name_57 WHERE country = "kazakhstan" | What is the time for Kazakhstan? | CREATE TABLE table_name_57 (time VARCHAR, country VARCHAR) |
SELECT outcome FROM table_name_11 WHERE surface = "carpet (i)" | When the Surface was Carpet (i), what was the Outcome? | CREATE TABLE table_name_11 (outcome VARCHAR, surface VARCHAR) |
SELECT MAX(laps) FROM table_name_73 WHERE class = "c1" AND driver = "derek bell" | What was the highest amount of laps for class c1 and driver Derek Bell? | CREATE TABLE table_name_73 (laps INTEGER, class VARCHAR, driver VARCHAR) |
SELECT player FROM table_name_35 WHERE penalty = "holding" AND team = "det" | What player has a penalty of holding on the DET team? | CREATE TABLE table_name_35 (player VARCHAR, penalty VARCHAR, team VARCHAR) |
SELECT COUNT(*) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.fname = "Tracy" AND t3.lname = "Kim" | Find the number of clubs where "Tracy Kim" is a member. | CREATE TABLE student (stuid VARCHAR, fname VARCHAR, lname VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubid VARCHAR) |
SELECT country FROM table_name_6 WHERE score = 69 - 71 - 72 - 69 = 281 | What country was the player with the score line 69-71-72-69=281 from? | CREATE TABLE table_name_6 (country VARCHAR, score VARCHAR) |
SELECT points_for FROM table_name_17 WHERE club = "penallta rfc" | What is the points for of Club of penallta rfc? | CREATE TABLE table_name_17 (points_for VARCHAR, club VARCHAR) |
SELECT margin FROM table_name_29 WHERE runner_s__up = "patty berg" AND year = 1953 | What is the Margin in 1953 when Patty Berg was Runner(s)-up? | CREATE TABLE table_name_29 (margin VARCHAR, runner_s__up VARCHAR, year VARCHAR) |
SELECT period_in_office FROM table_1889233_2 WHERE parliament = "11th" | During what period were parliament 11th? | CREATE TABLE table_1889233_2 (period_in_office VARCHAR, parliament VARCHAR) |
SELECT T2.name FROM wedding AS T1 JOIN people AS T2 ON T1.female_id = T2.people_id WHERE T1.year = 2016 AND T2.is_male = 'F' AND T2.country = 'Canada' | Show the names for all females from Canada having a wedding in year 2016. | CREATE TABLE people (name VARCHAR, people_id VARCHAR, country VARCHAR, is_male VARCHAR); CREATE TABLE wedding (female_id VARCHAR, year VARCHAR) |
SELECT SUM(attendance) FROM table_name_45 WHERE leading_scorer = "stephen jackson" AND date = "12/17" | How many attended the game on 12/17 with stephen jackson as the leading scorer? | CREATE TABLE table_name_45 (attendance INTEGER, leading_scorer VARCHAR, date VARCHAR) |
SELECT role FROM table_name_73 WHERE series_title = "dragon laws i: the undercover" | The series titled dragon laws i: the undercover has what role? | CREATE TABLE table_name_73 (role VARCHAR, series_title VARCHAR) |
SELECT AVG(gold) FROM table_name_51 WHERE silver < 2 AND nation = "uzbekistan" AND bronze < 4 | What is the average number of golds for nations with less than 2 silver, named uzbekistan, and less than 4 bronze? | CREATE TABLE table_name_51 (gold INTEGER, bronze VARCHAR, silver VARCHAR, nation VARCHAR) |
SELECT numbers__quantity_ordered_ FROM table_name_88 WHERE make__model = "eldorado national passport" | Which Numbers (Quantity Ordered) have a Make/ Model of eldorado national passport? | CREATE TABLE table_name_88 (numbers__quantity_ordered_ VARCHAR, make__model VARCHAR) |
SELECT qual_2 FROM table_name_39 WHERE team = "dale coyne racing" AND best = "1:03.757" | What was the second qualification time for Dale Coyne Racing with a best of 1:03.757? | CREATE TABLE table_name_39 (qual_2 VARCHAR, team VARCHAR, best VARCHAR) |
SELECT COUNT(high_assists) FROM table_27756474_2 WHERE team = "Caja Laboral" | How many high assists where there for the team of caja laboral? | CREATE TABLE table_27756474_2 (high_assists VARCHAR, team VARCHAR) |
SELECT cancelable FROM table_1507852_5 WHERE bubbles = "Yes" | what's the cancelable with bubbles being yes | CREATE TABLE table_1507852_5 (cancelable VARCHAR, bubbles VARCHAR) |
SELECT games FROM table_name_56 WHERE event = "men's competition" AND medal = "silver" | When did Pakistan win a Silver Medal in a Men's Competition? | CREATE TABLE table_name_56 (games VARCHAR, event VARCHAR, medal VARCHAR) |
SELECT label FROM table_name_96 WHERE catalog = "crg3p-90054" | What is the label for catalog number CRG3P-90054? | CREATE TABLE table_name_96 (label VARCHAR, catalog VARCHAR) |
SELECT length FROM table_name_26 WHERE bullet = "6.5 (.257)" | Which length has a Bullet of 6.5 (.257)? | CREATE TABLE table_name_26 (length VARCHAR, bullet VARCHAR) |
SELECT class FROM table_19897896_7 WHERE university = "Ohio state" | in which class was the ohio state university | CREATE TABLE table_19897896_7 (class VARCHAR, university VARCHAR) |
SELECT player FROM table_name_78 WHERE country = "united states" AND total = 286 AND year_s__won = "2003" | What player in the United States had a total of 286 and won in 2003? | CREATE TABLE table_name_78 (player VARCHAR, year_s__won VARCHAR, country VARCHAR, total VARCHAR) |
SELECT MAX(matrix) FROM table_name_33 WHERE recording_date = "1926/03" | what is the highest matrix when the recording date is 1926/03? | CREATE TABLE table_name_33 (matrix INTEGER, recording_date VARCHAR) |
SELECT nationality FROM table_name_66 WHERE time = "1:51.51" | What is the nationality of the event with a 1:51.51 time? | CREATE TABLE table_name_66 (nationality VARCHAR, time VARCHAR) |
SELECT winner FROM table_name_9 WHERE year = "2000" | What's the Winner in the Year of 2000? | CREATE TABLE table_name_9 (winner VARCHAR, year VARCHAR) |
SELECT races FROM table_name_99 WHERE points = "10.5" | How many races had 10.5 points? | CREATE TABLE table_name_99 (races VARCHAR, points VARCHAR) |
SELECT COUNT(year) FROM table_name_68 WHERE result = "nominated" AND category = "outstanding actor in a musical" AND award = "drama desk award" | What is the total number of Year, when Result is "Nominated", when Category is "Outstanding Actor in a Musical", and when Award is "Drama Desk Award"? | CREATE TABLE table_name_68 (year VARCHAR, award VARCHAR, result VARCHAR, category VARCHAR) |
SELECT away_team FROM table_name_16 WHERE venue = "arden street oval" | Who was the away team at the game held at Arden Street Oval? | CREATE TABLE table_name_16 (away_team VARCHAR, venue VARCHAR) |
SELECT institution FROM table_262481_2 WHERE current_conference = "GCAC (NAIA)" | What is the institution whose current conference is gcac (naia)? | CREATE TABLE table_262481_2 (institution VARCHAR, current_conference VARCHAR) |
SELECT COUNT(percent__2000_) FROM table_1182314_5 WHERE percent__1980_ = "3.4%" | what is the total number of percent (2000) where percent (1980) is 3.4% | CREATE TABLE table_1182314_5 (percent__2000_ VARCHAR, percent__1980_ VARCHAR) |
SELECT candidates FROM table_1341843_19 WHERE incumbent = "Joe Waggonner" | Who were the candidates in the district whose incumbent is Joe Waggonner? | CREATE TABLE table_1341843_19 (candidates VARCHAR, incumbent VARCHAR) |
SELECT COUNT(location) FROM table_17822401_1 WHERE branding = "Radyo5 101.9 News FM" | How many stations are called radyo5 101.9 news fm? | CREATE TABLE table_17822401_1 (location VARCHAR, branding VARCHAR) |
SELECT COUNT(pick__number) FROM table_name_37 WHERE overall > 131 AND position = "wide receiver" AND round < 5 | what is the pick # when overall is more than 131, position is wide receiver and the round is less than 5? | CREATE TABLE table_name_37 (pick__number VARCHAR, round VARCHAR, overall VARCHAR, position VARCHAR) |
SELECT home_team FROM table_26847237_3 WHERE round__number = "Round 1" | what is the home team when the round # is round 1? | CREATE TABLE table_26847237_3 (home_team VARCHAR, round__number VARCHAR) |
SELECT AVG(fleet_size) FROM table_name_3 WHERE type = "shunter" AND introduced = "1959" | What is the average fleet size for the Shunter type introduced in 1959? | CREATE TABLE table_name_3 (fleet_size INTEGER, type VARCHAR, introduced VARCHAR) |
SELECT original_broadway_cast FROM table_24353141_1 WHERE original_1st_us_tour_cast = "Jake Epstein" | Who was in the original broadway cast while jake epstein was in the original 1st us tour cast? | CREATE TABLE table_24353141_1 (original_broadway_cast VARCHAR, original_1st_us_tour_cast VARCHAR) |
SELECT home_team FROM table_name_37 WHERE away_team = "aylesbury vale" | Who was the home team that played against Aylesbury Vale? | CREATE TABLE table_name_37 (home_team VARCHAR, away_team VARCHAR) |
SELECT adelaide FROM table_name_76 WHERE auckland = "no" AND melbourne = "no" | Which Adelaide has an Auckland of no and a Melbourne of no? | CREATE TABLE table_name_76 (adelaide VARCHAR, auckland VARCHAR, melbourne VARCHAR) |
SELECT copa_conmebol_1999 FROM table_name_4 WHERE copa_libertadores_1999 = "did not qualify" AND team = "cruzeiro" | What is the Copa Conmebol 1999 result of team cruzeiro, which did not qualify for the Copa Libertadores 1999? | CREATE TABLE table_name_4 (copa_conmebol_1999 VARCHAR, copa_libertadores_1999 VARCHAR, team VARCHAR) |
SELECT japanese_title FROM table_name_34 WHERE romaji_title = "hanayome wa yakudoshi!" | With the Romaji title of Hanayome Wa Yakudoshi!, what is the Japanese title? | CREATE TABLE table_name_34 (japanese_title VARCHAR, romaji_title VARCHAR) |
SELECT highest_attendance_away FROM table_1816947_2 WHERE average_attendance_home = "3.123" | When the home attendance is 3.123, what's the highest away attendance? | CREATE TABLE table_1816947_2 (highest_attendance_away VARCHAR, average_attendance_home VARCHAR) |
SELECT name FROM table_16799784_13 WHERE latitude = "23.9S" | What feature is at latitude 23.9S? | CREATE TABLE table_16799784_13 (name VARCHAR, latitude VARCHAR) |
SELECT margin_of_victory FROM table_21649285_2 WHERE no = 4 | Margin of victory on no. 4 was? | CREATE TABLE table_21649285_2 (margin_of_victory VARCHAR, no VARCHAR) |
SELECT country FROM table_name_98 WHERE iata = "cju" | What is the Country when the IATA shows cju? | CREATE TABLE table_name_98 (country VARCHAR, iata VARCHAR) |
SELECT to_par FROM table_name_74 WHERE player = "jerry barber" | What is Jerry Barber's To par? | CREATE TABLE table_name_74 (to_par VARCHAR, player VARCHAR) |
SELECT MAX(attendance) FROM table_name_97 WHERE tie_no = "3" | How many attended tie number 3? | CREATE TABLE table_name_97 (attendance INTEGER, tie_no VARCHAR) |
SELECT COUNT(rebounds) FROM table_name_56 WHERE name = "ann wauters" | What is the total number of rebounds values for Ann Wauters? | CREATE TABLE table_name_56 (rebounds VARCHAR, name VARCHAR) |
SELECT MIN(fa_cup_goals) FROM table_name_46 WHERE league_goals = "12" AND total = 14 | What is the lowest number of FA Cup goals for players with 12 League goals and 14 total goals? | CREATE TABLE table_name_46 (fa_cup_goals INTEGER, league_goals VARCHAR, total VARCHAR) |
SELECT partner FROM table_name_43 WHERE opponents = "alexandra dulgheru magdaléna rybáriková" | Name the partner for opponents of alexandra dulgheru magdaléna rybáriková | CREATE TABLE table_name_43 (partner VARCHAR, opponents VARCHAR) |
SELECT team FROM table_24784769_1 WHERE total_points = 342 | Which team had 342 total points? | CREATE TABLE table_24784769_1 (team VARCHAR, total_points VARCHAR) |
SELECT MIN(draw) FROM table_name_95 WHERE percentage = "5.02%" | What is the fewest draws for percentages of 5.02%? | CREATE TABLE table_name_95 (draw INTEGER, percentage VARCHAR) |
SELECT score FROM table_name_3 WHERE player = "fred couples" | What score has fred couples as the player? | CREATE TABLE table_name_3 (score VARCHAR, player VARCHAR) |
SELECT mixed_doubles FROM table_20361783_1 WHERE womens_singles = "Zhou Mi" | who won mixed doubles when zhou mi won womens singles | CREATE TABLE table_20361783_1 (mixed_doubles VARCHAR, womens_singles VARCHAR) |
SELECT Name FROM actor WHERE Age <> 20 | List the name of actors whose age is not 20. | CREATE TABLE actor (Name VARCHAR, Age VARCHAR) |
SELECT city FROM table_name_63 WHERE feb = "66 °f / 18.9 °c" | Name the city with Feb of 66 °f / 18.9 °c | CREATE TABLE table_name_63 (city VARCHAR, feb VARCHAR) |
SELECT capital FROM table_name_1 WHERE voivodeship_separate_city = "białostockie" | what is the capital with the Voivodeship Separate city of białostockie? | CREATE TABLE table_name_1 (capital VARCHAR, voivodeship_separate_city VARCHAR) |
SELECT founded FROM table_255205_1 WHERE nickname = "Fightin' Engineers" | This institution nicknamed Fightin' engineers was founded on what year? | CREATE TABLE table_255205_1 (founded VARCHAR, nickname VARCHAR) |
SELECT winning_score FROM table_2167226_3 WHERE margin_of_victory = "5 strokes" | What is the winning score when 5 strokes is the margin of victory? | CREATE TABLE table_2167226_3 (winning_score VARCHAR, margin_of_victory VARCHAR) |
SELECT customer_id, customer_name FROM customers ORDER BY customer_id | List all the customers in increasing order of IDs. | CREATE TABLE customers (customer_id VARCHAR, customer_name VARCHAR) |
SELECT tournament FROM table_name_48 WHERE result = "6th" | Which tournament resulted in 6th place? | CREATE TABLE table_name_48 (tournament VARCHAR, result VARCHAR) |
SELECT date FROM table_name_16 WHERE record = "14-31" | What is the date of the game with a record of 14-31? | CREATE TABLE table_name_16 (date VARCHAR, record VARCHAR) |
SELECT country FROM table_name_60 WHERE player = "tiger woods" | What country has the player Tiger Woods? | CREATE TABLE table_name_60 (country VARCHAR, player VARCHAR) |
SELECT score FROM table_name_91 WHERE date = "may 4" | What was the final score for the game on May 4? | CREATE TABLE table_name_91 (score VARCHAR, date VARCHAR) |
SELECT record FROM table_name_27 WHERE loss = "key (7-11)" | What was the record during the loss by key (7-11)? | CREATE TABLE table_name_27 (record VARCHAR, loss VARCHAR) |
SELECT region FROM table_name_8 WHERE type = "native american" AND town_city = "anchorage" | In what Region is the Native American museum in Anchorage? | CREATE TABLE table_name_8 (region VARCHAR, type VARCHAR, town_city VARCHAR) |
SELECT s_host FROM table_22583466_5 WHERE race_caller = "Marshall Cassidy" | For the race called by Marshall Cassidy, who was the host? | CREATE TABLE table_22583466_5 (s_host VARCHAR, race_caller VARCHAR) |
SELECT vessel_name FROM table_name_56 WHERE flag = "malta" AND type = "panamax" AND class = "gl" AND built > 2010 | What is the name of the Malta vessel built after 2010 that is a GL class Panamax vessel? | CREATE TABLE table_name_56 (vessel_name VARCHAR, built VARCHAR, class VARCHAR, flag VARCHAR, type VARCHAR) |
SELECT country FROM table_name_27 WHERE rank < 3 AND time = "7:28.66" | What country has a time of 7:28.66 and a rank less than 3? | CREATE TABLE table_name_27 (country VARCHAR, rank VARCHAR, time VARCHAR) |
SELECT date FROM table_name_6 WHERE time = "18:45" | What is the Date with a Time that is 18:45? | CREATE TABLE table_name_6 (date VARCHAR, time VARCHAR) |
SELECT engine FROM table_name_61 WHERE power = "48kw (65 ps) @ 5600 rpm" | Which engine had a 48kw (65 ps) @ 5600 rpm power? | CREATE TABLE table_name_61 (engine VARCHAR, power VARCHAR) |
SELECT country FROM table_name_34 WHERE city = "cardiff" | what is the country for the city of cardiff? | CREATE TABLE table_name_34 (country VARCHAR, city VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.