question stringlengths 12 244 | context stringlengths 27 489 | answer stringlengths 18 557 |
|---|---|---|
How many credit cards does customer Blanche Huels have? | CREATE TABLE Customers_cards (customer_id VARCHAR, card_type_code VARCHAR); CREATE TABLE Customers (customer_id VARCHAR, customer_first_name VARCHAR, customer_last_name VARCHAR) | SELECT COUNT(*) FROM Customers_cards AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.customer_first_name = "Blanche" AND T2.customer_last_name = "Huels" AND T1.card_type_code = "Credit" |
Who had the high rebound total against golden state? | CREATE TABLE table_13464416_4 (high_rebounds VARCHAR, team VARCHAR) | SELECT high_rebounds FROM table_13464416_4 WHERE team = "Golden State" |
What are the names of people in ascending alphabetical order? | CREATE TABLE People (Name VARCHAR) | SELECT Name FROM People ORDER BY Name |
What is the all-time rank associated with a rank less than 9 and a debut in 1994? | CREATE TABLE table_name_55 (time VARCHAR, rank VARCHAR, debut_year VARCHAR) | SELECT -time AS rank FROM table_name_55 WHERE rank < 9 AND debut_year = 1994 |
When is the last day any resident moved in? | CREATE TABLE Residents (date_moved_in INTEGER) | SELECT MAX(date_moved_in) FROM Residents |
Name the 2nd leg for defence force | CREATE TABLE table_name_61 (team_2 VARCHAR) | SELECT 2 AS nd_leg FROM table_name_61 WHERE team_2 = "defence force" |
What is the team 1 when Ulisses is team 2? | CREATE TABLE table_name_98 (team_1 VARCHAR, team_2 VARCHAR) | SELECT team_1 FROM table_name_98 WHERE team_2 = "ulisses" |
What is Res., when Event is "FT 6 - Full Throttle 6"? | CREATE TABLE table_name_83 (res VARCHAR, event VARCHAR) | SELECT res FROM table_name_83 WHERE event = "ft 6 - full throttle 6" |
Who is week 1 if week 3 is Natasha Budhi? | CREATE TABLE table_name_3 (week_1 VARCHAR, week_3 VARCHAR) | SELECT week_1 FROM table_name_3 WHERE week_3 = "natasha budhi" |
What value can you find under the column "august 21-22" and the row of June 11, 1983? | CREATE TABLE table_22651355_3 (august_21_22 VARCHAR, june_10_11 VARCHAR) | SELECT august_21_22 FROM table_22651355_3 WHERE june_10_11 = "June 11, 1983" |
What is the Staffel D in the season 1983-84 with a Staffel E of Motor Suhl? | CREATE TABLE table_name_51 (staffel_d VARCHAR, staffel_e VARCHAR, season VARCHAR) | SELECT staffel_d FROM table_name_51 WHERE staffel_e = "motor suhl" AND season = "1983-84" |
What was awarded before 2013 to the Saber in the category of Best Action? | CREATE TABLE table_name_93 (award VARCHAR, category VARCHAR, year VARCHAR, title_of_work VARCHAR) | SELECT award FROM table_name_93 WHERE year < 2013 AND title_of_work = "saber" AND category = "best action" |
Name the number of naming for anomic aphasia | CREATE TABLE table_2088_1 (naming VARCHAR, type_of_aphasia VARCHAR) | SELECT COUNT(naming) FROM table_2088_1 WHERE type_of_aphasia = "Anomic aphasia" |
What was Fuzzy Zoeller's score in the United States? | CREATE TABLE table_name_82 (score VARCHAR, country VARCHAR, player VARCHAR) | SELECT score FROM table_name_82 WHERE country = "united states" AND player = "fuzzy zoeller" |
For the club that had tries of 50 and drawn of 0, what were the points? | CREATE TABLE table_name_51 (points_against VARCHAR, drawn VARCHAR, tries_for VARCHAR) | SELECT points_against FROM table_name_51 WHERE drawn = "0" AND tries_for = "50" |
What is the class for trafen in part 3? | CREATE TABLE table_name_49 (class VARCHAR, part_3 VARCHAR) | SELECT class FROM table_name_49 WHERE part_3 = "trafen" |
What is the Points Classification Navy Blue Jersey that has Yoann le Boulanger, and Gerolsteiner? | CREATE TABLE table_name_11 (points_classification_navy_blue_jersey VARCHAR, mountains_classification_green_jersey VARCHAR, team_classification VARCHAR) | SELECT points_classification_navy_blue_jersey FROM table_name_11 WHERE mountains_classification_green_jersey = "yoann le boulanger" AND team_classification = "gerolsteiner" |
In what state was the electorate fowler? | CREATE TABLE table_name_1 (state VARCHAR, electorate VARCHAR) | SELECT state FROM table_name_1 WHERE electorate = "fowler" |
Who was Fourth in the 2008 Telstra Men's Pro Event? | CREATE TABLE table_name_93 (fourth VARCHAR, event VARCHAR) | SELECT fourth FROM table_name_93 WHERE event = "2008 telstra men's pro" |
Which team had a run 4 of 1:24.4? | CREATE TABLE table_name_7 (team VARCHAR, run_4 VARCHAR) | SELECT team FROM table_name_7 WHERE run_4 = "1:24.4" |
Name the most attendance for 25 january 2004 | CREATE TABLE table_name_64 (attendance INTEGER, date VARCHAR) | SELECT MAX(attendance) FROM table_name_64 WHERE date = "25 january 2004" |
What is the average February that has 18-26-10 as the record, with a game less than 54? | CREATE TABLE table_name_11 (february INTEGER, record VARCHAR, game VARCHAR) | SELECT AVG(february) FROM table_name_11 WHERE record = "18-26-10" AND game < 54 |
Which result has a Venue of ulsan? | CREATE TABLE table_name_27 (result VARCHAR, venue VARCHAR) | SELECT result FROM table_name_27 WHERE venue = "ulsan" |
Name the sum of year for swimming and first of mike | CREATE TABLE table_name_68 (year INTEGER, sport VARCHAR, first VARCHAR) | SELECT SUM(year) FROM table_name_68 WHERE sport = "swimming" AND first = "mike" |
What is Name, when Location is "DZ"? | CREATE TABLE table_name_23 (name VARCHAR, location VARCHAR) | SELECT name FROM table_name_23 WHERE location = "dz" |
How many league cup goals for tyrone thompson with 0 FLT goals? | CREATE TABLE table_name_46 (league_cup_goals INTEGER, name VARCHAR, flt_goals VARCHAR) | SELECT MIN(league_cup_goals) FROM table_name_46 WHERE name = "tyrone thompson" AND flt_goals > 0 |
What is the highest League Cup with a Player that is steed malbranque? | CREATE TABLE table_name_95 (league_cup INTEGER, player VARCHAR) | SELECT MAX(league_cup) FROM table_name_95 WHERE player = "steed malbranque" |
Which Date has an Attendance of 54,626? | CREATE TABLE table_name_71 (date VARCHAR, attendance VARCHAR) | SELECT date FROM table_name_71 WHERE attendance = "54,626" |
Who is the author of Bludgeoning Angel Dokuro-Chan? | CREATE TABLE table_name_49 (author VARCHAR, title VARCHAR) | SELECT author FROM table_name_49 WHERE title = "bludgeoning angel dokuro-chan" |
What tournament is in 1971? | CREATE TABLE table_name_61 (tournament VARCHAR, year VARCHAR) | SELECT tournament FROM table_name_61 WHERE year = 1971 |
How many entries for 100 occur when the average is 15.78? | CREATE TABLE table_2985664_8 (average VARCHAR) | SELECT COUNT(100) FROM table_2985664_8 WHERE average = "15.78" |
Which manager has sheffield wednesday as the team? | CREATE TABLE table_name_7 (manager VARCHAR, team VARCHAR) | SELECT manager FROM table_name_7 WHERE team = "sheffield wednesday" |
When the home team was Woking, what was the tie no? | CREATE TABLE table_name_12 (tie_no VARCHAR, home_team VARCHAR) | SELECT tie_no FROM table_name_12 WHERE home_team = "woking" |
Which song was written by Nigel Stock and is 4:12 long? | CREATE TABLE table_name_58 (title VARCHAR, songwriter_s_ VARCHAR, time VARCHAR) | SELECT title FROM table_name_58 WHERE songwriter_s_ = "nigel stock" AND time = "4:12" |
Which total number of Week has an Opponent of at new orleans saints, and an Attendance larger than 53,448? | CREATE TABLE table_name_17 (week VARCHAR, opponent VARCHAR, attendance VARCHAR) | SELECT COUNT(week) FROM table_name_17 WHERE opponent = "at new orleans saints" AND attendance > 53 OFFSET 448 |
Which year did the school with the mascot of the Vikings join? | CREATE TABLE table_name_83 (year_joined VARCHAR, mascot VARCHAR) | SELECT year_joined FROM table_name_83 WHERE mascot = "vikings" |
What player has 3 wins and ranks above 3rd? | CREATE TABLE table_name_51 (player VARCHAR, wins VARCHAR, rank VARCHAR) | SELECT player FROM table_name_51 WHERE wins = 3 AND rank > 3 |
How many candidates ran against barratt o'hara? | CREATE TABLE table_1342198_13 (candidates VARCHAR, incumbent VARCHAR) | SELECT COUNT(candidates) FROM table_1342198_13 WHERE incumbent = "Barratt O'Hara" |
I want the sum of tracks for raised on rock | CREATE TABLE table_name_99 (track INTEGER, song_title VARCHAR) | SELECT SUM(track) FROM table_name_99 WHERE song_title = "raised on rock" |
What is the score for round 2 for team Toshiba? | CREATE TABLE table_16815824_1 (round2 VARCHAR, team VARCHAR) | SELECT COUNT(round2) FROM table_16815824_1 WHERE team = "team Toshiba" |
Name the womens doubles for werner schlager | CREATE TABLE table_28138035_4 (womens_doubles VARCHAR, mens_singles VARCHAR) | SELECT womens_doubles FROM table_28138035_4 WHERE mens_singles = "Werner Schlager" |
What was the championship before 2012 that had Stephane Houdet Michael Jeremiasz as opponents? | CREATE TABLE table_name_23 (championship VARCHAR, year VARCHAR, opponents_in_final VARCHAR) | SELECT championship FROM table_name_23 WHERE year < 2012 AND opponents_in_final = "stephane houdet michael jeremiasz" |
What is the To par of the T5 Place Player with a Score of 71-68-76=215? | CREATE TABLE table_name_33 (to_par VARCHAR, place VARCHAR, score VARCHAR) | SELECT to_par FROM table_name_33 WHERE place = "t5" AND score = 71 - 68 - 76 = 215 |
Who directed the show with the production code k2708? | CREATE TABLE table_name_1 (directed_by VARCHAR, production_code VARCHAR) | SELECT directed_by FROM table_name_1 WHERE production_code = "k2708" |
During which Season was the tournament in progress? | CREATE TABLE table_name_64 (season VARCHAR, runner_up VARCHAR) | SELECT season FROM table_name_64 WHERE runner_up = "tournament in progress" |
What is the symbol for Windpower in China? | CREATE TABLE table_11347578_1 (wind_power__wp_ VARCHAR, country VARCHAR) | SELECT wind_power__wp_ FROM table_11347578_1 WHERE country = "China" |
How many games were held on March 12? | CREATE TABLE table_27715173_10 (game VARCHAR, date VARCHAR) | SELECT COUNT(game) FROM table_27715173_10 WHERE date = "March 12" |
How many Games Started are there for Hugh White ? | CREATE TABLE table_14342210_13 (games_started VARCHAR, player VARCHAR) | SELECT games_started FROM table_14342210_13 WHERE player = "Hugh White" |
Name the most game with opponent of hartford whalers | CREATE TABLE table_name_75 (game INTEGER, opponent VARCHAR) | SELECT MAX(game) FROM table_name_75 WHERE opponent = "hartford whalers" |
What city is the hidden valley raceway in? | CREATE TABLE table_name_79 (city___state VARCHAR, event_circuit VARCHAR) | SELECT city___state FROM table_name_79 WHERE event_circuit = "hidden valley raceway" |
Who did the most assists when Matt Barnes (11) got the most rebounds? | CREATE TABLE table_17340355_10 (high_assists VARCHAR, high_rebounds VARCHAR) | SELECT high_assists FROM table_17340355_10 WHERE high_rebounds = "Matt Barnes (11)" |
What is the total number of Participants that has Silver that's smaller than 0? | CREATE TABLE table_name_38 (participants INTEGER, silver INTEGER) | SELECT SUM(participants) FROM table_name_38 WHERE silver < 0 |
What is the largest gold with a Total of 2, and a Rank smaller than 2? | CREATE TABLE table_name_91 (gold INTEGER, total VARCHAR, rank VARCHAR) | SELECT MAX(gold) FROM table_name_91 WHERE total = 2 AND rank < 2 |
Wha is the rank for 52 574 avg. att? | CREATE TABLE table_name_49 (rank VARCHAR, avgatt VARCHAR) | SELECT rank FROM table_name_49 WHERE avgatt = "52 574" |
Name the length for all class and date of march 18 | CREATE TABLE table_name_63 (length VARCHAR, class VARCHAR, date VARCHAR) | SELECT length FROM table_name_63 WHERE class = "all" AND date = "march 18" |
What was the nationality of the skater with 108.8 points? | CREATE TABLE table_name_52 (nation VARCHAR, points VARCHAR) | SELECT nation FROM table_name_52 WHERE points = 108.8 |
Type of phase ii has what gross mw? | CREATE TABLE table_name_94 (gross_mw VARCHAR, type VARCHAR) | SELECT gross_mw FROM table_name_94 WHERE type = "phase ii" |
Who is the Winner, when the Loser is the Baltimore Colts, when the Location is Schaefer Stadium, and when the Result is 42-3? | CREATE TABLE table_name_33 (winner VARCHAR, result VARCHAR, loser VARCHAR, location VARCHAR) | SELECT winner FROM table_name_33 WHERE loser = "baltimore colts" AND location = "schaefer stadium" AND result = "42-3" |
what lane did inna nikitina have? | CREATE TABLE table_name_74 (lane INTEGER, name VARCHAR) | SELECT MAX(lane) FROM table_name_74 WHERE name = "inna nikitina" |
What's the average game against the New Jersey Devils with 19 points? | CREATE TABLE table_name_22 (game INTEGER, points VARCHAR, opponent VARCHAR) | SELECT AVG(game) FROM table_name_22 WHERE points = 19 AND opponent = "new jersey devils" |
Show the names of singers that have more than one song. | CREATE TABLE song (Singer_ID VARCHAR); CREATE TABLE singer (Name VARCHAR, Singer_ID VARCHAR) | SELECT T1.Name FROM singer AS T1 JOIN song AS T2 ON T1.Singer_ID = T2.Singer_ID GROUP BY T1.Name HAVING COUNT(*) > 1 |
When 2005 is the season how many drivers are there? | CREATE TABLE table_1771753_3 (driver VARCHAR, season VARCHAR) | SELECT COUNT(driver) FROM table_1771753_3 WHERE season = "2005" |
find the number of players for each country. | CREATE TABLE players (country_code VARCHAR) | SELECT COUNT(*), country_code FROM players GROUP BY country_code |
Which Attendance has an Opponent of crawley town? | CREATE TABLE table_name_78 (attendance VARCHAR, opponent VARCHAR) | SELECT attendance FROM table_name_78 WHERE opponent = "crawley town" |
If sail number is AUS 03, what are all associated race numbers? | CREATE TABLE table_14882588_2 (race_number VARCHAR, sail_number VARCHAR) | SELECT race_number FROM table_14882588_2 WHERE sail_number = "AUS 03" |
What date has 9 as the week? | CREATE TABLE table_name_21 (date VARCHAR, week VARCHAR) | SELECT date FROM table_name_21 WHERE week = 9 |
What is the Year the competition the british empire and commonwealth games were held? | CREATE TABLE table_name_98 (year INTEGER, competition VARCHAR) | SELECT SUM(year) FROM table_name_98 WHERE competition = "british empire and commonwealth games" |
In how many different categories is the value of C_{low} 35.5? | CREATE TABLE table_1942366_9 (category VARCHAR, low VARCHAR) | SELECT COUNT(category) FROM table_1942366_9 WHERE STRUCT(low) = "35.5" |
What is the sum of values of Rd 7 with RD 6 less than 48 and Rd 8 less than 4 for TC Motorsport in a position greater than 1? | CREATE TABLE table_name_97 (rd_7 INTEGER, rd_8 VARCHAR, team VARCHAR, position VARCHAR, rd_6 VARCHAR) | SELECT SUM(rd_7) FROM table_name_97 WHERE position > 1 AND rd_6 < 48 AND team = "tc motorsport" AND rd_8 < 4 |
How many laps did Jacques Villeneuve have? | CREATE TABLE table_name_60 (laps VARCHAR, driver VARCHAR) | SELECT laps FROM table_name_60 WHERE driver = "jacques villeneuve" |
What number episode was written by kurt sutter & jack logiudice? | CREATE TABLE table_20726262_2 (no_in_series INTEGER, writtenby VARCHAR) | SELECT MAX(no_in_series) FROM table_20726262_2 WHERE writtenby = "Kurt Sutter & Jack LoGiudice" |
Who is iván navarro's opponent? | CREATE TABLE table_name_7 (opponent VARCHAR, result VARCHAR) | SELECT opponent FROM table_name_7 WHERE result = "iván navarro" |
What was the maximum value that Christer Tornell gave when Trine Dehli Cleve gave a 9? | CREATE TABLE table_28677723_8 (christer_tornell INTEGER, trine_dehli_cleve VARCHAR) | SELECT MAX(christer_tornell) FROM table_28677723_8 WHERE trine_dehli_cleve = 9 |
Who was the home team when the vistor team was the Montreal Canadiens on February 12? | CREATE TABLE table_name_60 (home VARCHAR, visitor VARCHAR, date VARCHAR) | SELECT home FROM table_name_60 WHERE visitor = "montreal canadiens" AND date = "february 12" |
What is the change (%) when the area size (km2) is 247.21? | CREATE TABLE table_21284653_1 (change___percentage_ VARCHAR, area__km²_ VARCHAR) | SELECT change___percentage_ FROM table_21284653_1 WHERE area__km²_ = "247.21" |
When did first minister Henry Mcleish enter office? | CREATE TABLE table_name_2 (entered_office VARCHAR, first_minister VARCHAR) | SELECT entered_office FROM table_name_2 WHERE first_minister = "henry mcleish" |
What is the team that has forward-center as a position? | CREATE TABLE table_name_24 (school_club_team VARCHAR, position VARCHAR) | SELECT school_club_team FROM table_name_24 WHERE position = "forward-center" |
Which range includes Mount Fukushima, and is ranked 38? | CREATE TABLE table_name_7 (range VARCHAR, name VARCHAR, rank VARCHAR) | SELECT range FROM table_name_7 WHERE name = "mount fukushima" AND rank = 38 |
Which team's Head Coach is Steve Beever? | CREATE TABLE table_name_68 (team VARCHAR, head_coach VARCHAR) | SELECT team FROM table_name_68 WHERE head_coach = "steve beever" |
How many program data on Asia was written if the organization launched 14 programs iin the Americas? | CREATE TABLE table_27184837_1 (asia VARCHAR, americas VARCHAR) | SELECT COUNT(asia) FROM table_27184837_1 WHERE americas = 14 |
Who was the opponent before 1994 with bobby dye as the BSU head coach? | CREATE TABLE table_name_86 (opponent VARCHAR, bsu_head_coach VARCHAR, year VARCHAR) | SELECT opponent FROM table_name_86 WHERE bsu_head_coach = "bobby dye" AND year < 1994 |
How many caps did Mitchell Duke have overall? | CREATE TABLE table_name_32 (caps VARCHAR, player VARCHAR) | SELECT COUNT(caps) FROM table_name_32 WHERE player = "mitchell duke" |
Name the sum of swimsuit for average more than 9.23 for delaware for interview more than 9.73 | CREATE TABLE table_name_31 (swimsuit INTEGER, interview VARCHAR, average VARCHAR, country VARCHAR) | SELECT SUM(swimsuit) FROM table_name_31 WHERE average > 9.23 AND country = "delaware" AND interview > 9.73 |
What is the latest date that has a serial number of Infec 107CDSX? | CREATE TABLE table_name_56 (date INTEGER, number VARCHAR) | SELECT MAX(date) FROM table_name_56 WHERE number = "infec 107cdsx" |
What is the Branding for the station located in Zamboanga? | CREATE TABLE table_name_25 (branding VARCHAR, location VARCHAR) | SELECT branding FROM table_name_25 WHERE location = "zamboanga" |
Who recorded a time or retired time of 52:56.4653? | CREATE TABLE table_name_1 (name VARCHAR, time_retired VARCHAR) | SELECT name FROM table_name_1 WHERE time_retired = "52:56.4653" |
Which Round has a Player of damon jones? | CREATE TABLE table_name_49 (round INTEGER, player VARCHAR) | SELECT SUM(round) FROM table_name_49 WHERE player = "damon jones" |
What is the Position of the Player from Temple Hills, MD? | CREATE TABLE table_name_86 (position VARCHAR, home_town VARCHAR) | SELECT position FROM table_name_86 WHERE home_town = "temple hills, md" |
How many times was Arizona the team and the round was bigger than 11? | CREATE TABLE table_name_86 (overall VARCHAR, school_club_team VARCHAR, round VARCHAR) | SELECT COUNT(overall) FROM table_name_86 WHERE school_club_team = "arizona" AND round > 11 |
What was the date of the Mariners game when they had a record of 53–17? | CREATE TABLE table_name_49 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_49 WHERE record = "53–17" |
On June 30, 2008 who what was the Republican: Jeff Sessions percentage? | CREATE TABLE table_16751596_12 (republican VARCHAR, dates_administered VARCHAR) | SELECT republican AS :_jeff_sessions FROM table_16751596_12 WHERE dates_administered = "June 30, 2008" |
How many votes did 3rd ranking candidate Mary Louise Lorefice receive? | CREATE TABLE table_name_48 (votes VARCHAR, rank VARCHAR, candidate VARCHAR) | SELECT COUNT(votes) FROM table_name_48 WHERE rank = "3rd" AND candidate = "mary louise lorefice" |
What were the lowest goals with a debut before 1961 in Europe? | CREATE TABLE table_name_53 (goals INTEGER, debut_in_europe INTEGER) | SELECT MIN(goals) FROM table_name_53 WHERE debut_in_europe < 1961 |
How many gold medals were won when more than 2 bronze medals were won? | CREATE TABLE table_name_62 (gold INTEGER, bronze INTEGER) | SELECT SUM(gold) FROM table_name_62 WHERE bronze > 2 |
What percent of the population has phone in Russia? | CREATE TABLE table_name_15 (_number_of_phones_as__percentage_of_population INTEGER, country_or_region VARCHAR) | SELECT AVG(_number_of_phones_as__percentage_of_population) FROM table_name_15 WHERE country_or_region = "russia" |
What is the game site of the game with the san diego chargers as the opponent? | CREATE TABLE table_name_83 (game_site VARCHAR, opponent VARCHAR) | SELECT game_site FROM table_name_83 WHERE opponent = "san diego chargers" |
What is the playoff result when the league is USISL and the regular season record is 1st, pacific. | CREATE TABLE table_1427998_1 (playoffs VARCHAR, league VARCHAR, regular_season VARCHAR) | SELECT playoffs FROM table_1427998_1 WHERE league = "USISL" AND regular_season = "1st, Pacific" |
Which European has a Play-Off of relegated? | CREATE TABLE table_name_59 (european VARCHAR, play_off VARCHAR) | SELECT european FROM table_name_59 WHERE play_off = "relegated" |
Which Set 1 has a Set 2 of 26–24? | CREATE TABLE table_name_77 (set_1 VARCHAR, set_2 VARCHAR) | SELECT set_1 FROM table_name_77 WHERE set_2 = "26–24" |
What was the average Game, when the attendance was higher than 56,040? | CREATE TABLE table_name_46 (game INTEGER, attendance INTEGER) | SELECT AVG(game) FROM table_name_46 WHERE attendance > 56 OFFSET 040 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.