answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT COUNT(week) FROM table_name_72 WHERE opponent = "pittsburgh steelers" | How many weeks total did the New York Jets face the Pittsburgh Steelers? | CREATE TABLE table_name_72 (week VARCHAR, opponent VARCHAR) |
SELECT crowd FROM table_name_14 WHERE away_team = "north melbourne" | Who watches North Melbourne when they are away? | CREATE TABLE table_name_14 (crowd VARCHAR, away_team VARCHAR) |
SELECT SUM(position) FROM table_name_35 WHERE against = 5 AND drawn > 0 | Which Position has an Against of 5, and a Drawn larger than 0? | CREATE TABLE table_name_35 (position INTEGER, against VARCHAR, drawn VARCHAR) |
SELECT away_team AS score FROM table_name_38 WHERE venue = "moorabbin oval" | What did the away team score at Moorabbin oval? | CREATE TABLE table_name_38 (away_team VARCHAR, venue VARCHAR) |
SELECT score FROM table_name_36 WHERE place = "t10" AND player = "thomas levet" | What was the score that thomas levet got when he placed t10? | CREATE TABLE table_name_36 (score VARCHAR, place VARCHAR, player VARCHAR) |
SELECT COUNT(goals_conceded) FROM table_name_45 WHERE wins = 4 AND draws < 0 | What is the total number of goals of the club with 4 wins and less than 0 draws? | CREATE TABLE table_name_45 (goals_conceded VARCHAR, wins VARCHAR, draws VARCHAR) |
SELECT winner FROM table_19930660_1 WHERE marcus_guest = "Jason Byrne" | Name the winner for jason byrne | CREATE TABLE table_19930660_1 (winner VARCHAR, marcus_guest VARCHAR) |
SELECT district FROM table_1341884_40 WHERE candidates = "James A. Byrne (D) 59.3% Joseph R. Burns (R) 40.7%" | What district featured an election between james a. byrne (d) 59.3% joseph r. burns (r) 40.7%? | CREATE TABLE table_1341884_40 (district VARCHAR, candidates VARCHAR) |
SELECT driver FROM table_name_17 WHERE laps = 62 | Which driver has 62 laps? | CREATE TABLE table_name_17 (driver VARCHAR, laps VARCHAR) |
SELECT date FROM table_name_58 WHERE record = "39-14" | what day was the score 39-14 | CREATE TABLE table_name_58 (date VARCHAR, record VARCHAR) |
SELECT DISTINCT Carrier FROM phone WHERE Memory_in_G > 32 | List the distinct carriers of phones with memories bigger than 32. | CREATE TABLE phone (Carrier VARCHAR, Memory_in_G INTEGER) |
SELECT bronze FROM table_name_46 WHERE place = "lahti" | Name the bronze for lahti | CREATE TABLE table_name_46 (bronze VARCHAR, place VARCHAR) |
SELECT MAX(pick__number) FROM table_28059992_5 | What is the highest numbered draft pick? | CREATE TABLE table_28059992_5 (pick__number INTEGER) |
SELECT stage AS winner FROM table_name_99 WHERE stage > 10 AND yellow_jersey = "joseph planckaert" | Who was the stage winner when the stage was more than 10 and yellow jersey was Joseph Planckaert? | CREATE TABLE table_name_99 (stage VARCHAR, yellow_jersey VARCHAR) |
SELECT year FROM table_name_25 WHERE name = "miyoshi umeki" | What year did Miyoshi Umeki make a film? | CREATE TABLE table_name_25 (year VARCHAR, name VARCHAR) |
SELECT T1.teacher_id, T2.first_name FROM Assessment_Notes AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id GROUP BY T1.teacher_id ORDER BY COUNT(*) DESC LIMIT 3 | Find the ids and first names of the 3 teachers that have the most number of assessment notes? | CREATE TABLE Assessment_Notes (teacher_id VARCHAR); CREATE TABLE Teachers (first_name VARCHAR, teacher_id VARCHAR) |
SELECT film_title_used_in_nomination FROM table_17156199_1 WHERE original_title = "শ্যামল ছায়া (Shyamol Chhaya)" | What was the nominated film title of শ্যামল ছায়া (shyamol chhaya)? | CREATE TABLE table_17156199_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) |
SELECT visitor FROM table_name_70 WHERE record = "21–17–13" | What is the Visitor of the game with a Record of 21–17–13? | CREATE TABLE table_name_70 (visitor VARCHAR, record VARCHAR) |
SELECT COUNT(*) FROM Documents WHERE NOT document_id IN (SELECT document_id FROM Documents_with_expenses) | How many documents do not have any expense? | CREATE TABLE Documents (document_id VARCHAR); CREATE TABLE Documents_with_expenses (document_id VARCHAR) |
SELECT dance FROM table_name_52 WHERE worst_dancer_s_ = "marissa jaret winokur" | Which dance has the worst dancer(s) as marissa jaret winokur? | CREATE TABLE table_name_52 (dance VARCHAR, worst_dancer_s_ VARCHAR) |
SELECT MAX(first_elected) FROM table_1341973_3 WHERE district = "Alabama 4" | What is the latest year listed with the Alabama 4 voting district? | CREATE TABLE table_1341973_3 (first_elected INTEGER, district VARCHAR) |
SELECT name FROM visitor WHERE Level_of_membership > 4 ORDER BY Level_of_membership DESC | Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low. | CREATE TABLE visitor (name VARCHAR, Level_of_membership INTEGER) |
SELECT chinese__traditional_ FROM table_name_84 WHERE english_title = "beautiful" | What is the traditional Chinese name for the record Beautiful? | CREATE TABLE table_name_84 (chinese__traditional_ VARCHAR, english_title VARCHAR) |
SELECT opponent FROM table_name_35 WHERE date = "july 7" | Which opponent has a date of July 7? | CREATE TABLE table_name_35 (opponent VARCHAR, date VARCHAR) |
SELECT first_edition FROM table_name_60 WHERE pages = "264" AND isbn = "978-0785111832" | Which first edition has 264 pages and the ISBN of 978-0785111832? | CREATE TABLE table_name_60 (first_edition VARCHAR, pages VARCHAR, isbn VARCHAR) |
SELECT skip FROM table_name_80 WHERE ends_lost > 44 AND blank_ends = 10 | Which Skip has Ends Lost larger than 44, and Blank Ends of 10? | CREATE TABLE table_name_80 (skip VARCHAR, ends_lost VARCHAR, blank_ends VARCHAR) |
SELECT nader_percentage FROM table_20573232_1 WHERE obama_percentage = "44.6%" | What is Nader's percentage when Obama is 44.6%? | CREATE TABLE table_20573232_1 (nader_percentage VARCHAR, obama_percentage VARCHAR) |
SELECT attendance FROM table_name_12 WHERE result = "w61-7" | What is the attendance when the result was w61-7? | CREATE TABLE table_name_12 (attendance VARCHAR, result VARCHAR) |
SELECT result_f___a FROM table_name_39 WHERE h___a = "hurst" | What was the result of the game played in hurst? | CREATE TABLE table_name_39 (result_f___a VARCHAR, h___a VARCHAR) |
SELECT MIN(2009) FROM table_name_18 WHERE 2010 = 141 AND 1985 > 165 | What is the lowest 2009 value with a 2010 value of 141 and a 1985 value bigger than 165? | CREATE TABLE table_name_18 (Id VARCHAR) |
SELECT opponent FROM table_name_45 WHERE round > 1 AND event = "pfp: ring of fire" | Which opponent had a round of more than 1 and an even of PFP: ring of fire? | CREATE TABLE table_name_45 (opponent VARCHAR, round VARCHAR, event VARCHAR) |
SELECT COUNT(top_division_titles) FROM table_1908877_2 WHERE position_in_2012_13 = "5th" | How many clubs achieved the 5th position in 2012-13? | CREATE TABLE table_1908877_2 (top_division_titles VARCHAR, position_in_2012_13 VARCHAR) |
SELECT MAX(geohash_length) FROM table_name_31 WHERE lng_error = "±0.00017" AND lng_bits < 20 | What is the highest geohash length when there is a ng error of ±0.00017, and a lng bits smaller than 20? | CREATE TABLE table_name_31 (geohash_length INTEGER, lng_error VARCHAR, lng_bits VARCHAR) |
SELECT COUNT(rank) FROM table_name_63 WHERE bronze = 1 AND silver > 1 | What is the rank that has 1 bronze and 1 silver? | CREATE TABLE table_name_63 (rank VARCHAR, bronze VARCHAR, silver VARCHAR) |
SELECT COUNT(matches) FROM table_name_81 WHERE name = "alan shearer" | What was the total amount of matches for Alan Shearer? | CREATE TABLE table_name_81 (matches VARCHAR, name VARCHAR) |
SELECT country FROM table_name_95 WHERE score < 68 AND player = "paul casey" | What country has a score less than 68, and paul casey as the player? | CREATE TABLE table_name_95 (country VARCHAR, score VARCHAR, player VARCHAR) |
SELECT MAX(points_1) FROM table_name_57 WHERE goals_against < 97 AND lost < 22 AND drawn = 9 AND goal_difference = "+28" | What is the most points 1 when the goals against are fewer than 97, lost less than 22, 9 draws and goal difference of +28? | CREATE TABLE table_name_57 (points_1 INTEGER, goal_difference VARCHAR, drawn VARCHAR, goals_against VARCHAR, lost VARCHAR) |
SELECT dorm_name FROM dorm WHERE gender = 'F' | Find the name of dorms only for female (F gender). | CREATE TABLE dorm (dorm_name VARCHAR, gender VARCHAR) |
SELECT date FROM table_name_40 WHERE team = "holden racing team" AND circuit = "eastern creek raceway" | What is Date, when Team is Holden Racing Team, and when Circuit is Eastern Creek Raceway? | CREATE TABLE table_name_40 (date VARCHAR, team VARCHAR, circuit VARCHAR) |
SELECT date FROM table_name_51 WHERE rank__number = "6" | WHAT DATE HAD 6 RANK? | CREATE TABLE table_name_51 (date VARCHAR, rank__number VARCHAR) |
SELECT date FROM table_1963459_2 WHERE year = 1974 | What day did the race in 1974 take place on? | CREATE TABLE table_1963459_2 (date VARCHAR, year VARCHAR) |
SELECT MAX(gold) FROM table_name_19 WHERE rank = "7" AND bronze < 3 | What is the highest number of gold medals for the team ranked 7 with less than 3 bronze? | CREATE TABLE table_name_19 (gold INTEGER, rank VARCHAR, bronze VARCHAR) |
SELECT lost FROM table_name_65 WHERE losing_bp = "5" AND try_bp = "0" | Can you tell me the Lost that has Losing BP of 5, and the Try BP of 0? | CREATE TABLE table_name_65 (lost VARCHAR, losing_bp VARCHAR, try_bp VARCHAR) |
SELECT AVG(round) FROM table_name_83 WHERE opponent = "jorge magalhaes" | Which Round has an Opponent of jorge magalhaes? | CREATE TABLE table_name_83 (round INTEGER, opponent VARCHAR) |
SELECT SUM(played) FROM table_name_55 WHERE percentage = "0.00%" AND drawn < 0 | How many games were played by a team that won 0.00% of their games and 0 draws? | CREATE TABLE table_name_55 (played INTEGER, percentage VARCHAR, drawn VARCHAR) |
SELECT SUM(launches) FROM table_name_4 WHERE rocket = "long march 3" AND failures > 0 | What is the sum of launches with Long March 3 and 0 failures? | CREATE TABLE table_name_4 (launches INTEGER, rocket VARCHAR, failures VARCHAR) |
SELECT venue FROM table_name_24 WHERE goal = 1 | What is the Venue for Goal number 1? | CREATE TABLE table_name_24 (venue VARCHAR, goal VARCHAR) |
SELECT MIN(kerry__number) FROM table_name_65 WHERE others__percentage = "0.8%" AND kerry__percentage = "70.4%" | What was Kerry's lowest number of votes where Other received 0.8% and Kerry 70.4%? | CREATE TABLE table_name_65 (kerry__number INTEGER, others__percentage VARCHAR, kerry__percentage VARCHAR) |
SELECT company, main_industry FROM company WHERE headquarters <> 'USA' | Show the company name and the main industry for all companies whose headquarters are not from USA. | CREATE TABLE company (company VARCHAR, main_industry VARCHAR, headquarters VARCHAR) |
SELECT T1.name FROM useracct AS T1 JOIN trust AS T2 ON T1.u_id = T2.target_u_id ORDER BY trust LIMIT 1 | Find the name of the target user with the lowest trust score. | CREATE TABLE trust (target_u_id VARCHAR); CREATE TABLE useracct (name VARCHAR, u_id VARCHAR) |
SELECT rank FROM table_name_7 WHERE studio = "universal" AND director = "john hughes" | WHAT IS THE RANK OF UNIVERSAL, AND DIRECTOR JOHN HUGHES? | CREATE TABLE table_name_7 (rank VARCHAR, studio VARCHAR, director VARCHAR) |
SELECT name FROM channel ORDER BY rating_in_percent DESC | List all channel names ordered by their rating in percent from big to small. | CREATE TABLE channel (name VARCHAR, rating_in_percent VARCHAR) |
SELECT chassis FROM table_name_5 WHERE entrant = "g.a. vandervell" | What chassis had an entrant of G.A. Vandervell? | CREATE TABLE table_name_5 (chassis VARCHAR, entrant VARCHAR) |
SELECT directed_by FROM table_2342078_4 WHERE written_by = "Brad Radnitz" | List all directors when Brad Radnitz was the writer? | CREATE TABLE table_2342078_4 (directed_by VARCHAR, written_by VARCHAR) |
SELECT home_team AS score FROM table_name_52 WHERE venue = "brunswick street oval" | What was the score for the home team that played at Brunswick Street Oval? | CREATE TABLE table_name_52 (home_team VARCHAR, venue VARCHAR) |
SELECT latitude FROM table_25675509_1 WHERE longitude = "157.941° E" | If the longitude is 157.941° e, what is the latitude? | CREATE TABLE table_25675509_1 (latitude VARCHAR, longitude VARCHAR) |
SELECT longest_span_in_s_metre___feet__ FROM table_name_97 WHERE land = "uk" AND name = "ballochmyle viaduct" | How long is the UK's Ballochmyle Viaduct? | CREATE TABLE table_name_97 (longest_span_in_s_metre___feet__ VARCHAR, land VARCHAR, name VARCHAR) |
SELECT design FROM table_25468520_1 WHERE quantity = "5,000,000" | What is the design when quantity is 5,000,000? | CREATE TABLE table_25468520_1 (design VARCHAR, quantity VARCHAR) |
SELECT company FROM table_20174050_23 WHERE author = "Pinborough, Sarah Sarah Pinborough" | which company uses pinborough, sarah sarah pinborough? | CREATE TABLE table_20174050_23 (company VARCHAR, author VARCHAR) |
SELECT COUNT(*) FROM follows GROUP BY f1 | Find the number of followers for each user. | CREATE TABLE follows (f1 VARCHAR) |
SELECT MIN(league) AS Cup FROM table_12755786_8 | what is the least amount in the tournament? | CREATE TABLE table_12755786_8 (league INTEGER) |
SELECT contestant FROM table_27515452_3 WHERE sizes = "33-23-36" | who are the participants that wear clothing in 33-23-36 | CREATE TABLE table_27515452_3 (contestant VARCHAR, sizes VARCHAR) |
SELECT place FROM table_name_48 WHERE player = "jack renner" | What place has jack renner as the player? | CREATE TABLE table_name_48 (place VARCHAR, player VARCHAR) |
SELECT AVG(silver) FROM table_name_15 WHERE rank = 2 AND bronze > 1 | What is the average number of silver medals for rank 2 and more than 1 bronze medal? | CREATE TABLE table_name_15 (silver INTEGER, rank VARCHAR, bronze VARCHAR) |
SELECT additional_info FROM table_2528382_2 WHERE song = "Mera Yaar Bana Hai Dulha" | What is the additional information in the song mera yaar bana hai dulha | CREATE TABLE table_2528382_2 (additional_info VARCHAR, song VARCHAR) |
SELECT augmented_fifth FROM table_name_48 WHERE major_third = "d" | The Major third of D has what for the Augmented fifth? | CREATE TABLE table_name_48 (augmented_fifth VARCHAR, major_third VARCHAR) |
SELECT 1993 FROM table_name_35 WHERE tournament = "cincinnati" | What is 1993, when Tournament is "Cincinnati"? | CREATE TABLE table_name_35 (tournament VARCHAR) |
SELECT AVG(draw) FROM table_name_67 WHERE performer = "jenny newman" AND points < 77 | Which Draw has a Performer of jenny newman, and Points smaller than 77? | CREATE TABLE table_name_67 (draw INTEGER, performer VARCHAR, points VARCHAR) |
SELECT high_assists FROM table_name_20 WHERE location_attendance = "20,562" | Who has the high assists when location attendance is 20,562? | CREATE TABLE table_name_20 (high_assists VARCHAR, location_attendance VARCHAR) |
SELECT COUNT(laps) FROM table_name_15 WHERE time_retired = "received outside assistance" AND grid < 19 | Where the grid is under 19, the time finished was logged as received outside assistance, what's the total number of laps? | CREATE TABLE table_name_15 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR) |
SELECT MIN(lane) FROM table_name_97 WHERE heat > 2 AND time = "1:10.57" | What is the lowest numbered Lane with a Time of 1:10.57 and Heat larger than 2? | CREATE TABLE table_name_97 (lane INTEGER, heat VARCHAR, time VARCHAR) |
SELECT to_par FROM table_name_76 WHERE player = "bill glasson" | What was Bill Glasson's score to par after 2 rounds? | CREATE TABLE table_name_76 (to_par VARCHAR, player VARCHAR) |
SELECT T1.booking_start_date, T1.booking_start_date FROM Apartment_Bookings AS T1 JOIN Apartments AS T2 ON T1.apt_id = T2.apt_id WHERE T2.apt_type_code = "Duplex" | What are the booking start and end dates of the apartments with type code "Duplex"? | CREATE TABLE Apartments (apt_id VARCHAR, apt_type_code VARCHAR); CREATE TABLE Apartment_Bookings (booking_start_date VARCHAR, apt_id VARCHAR) |
SELECT score FROM table_name_9 WHERE attendance = "5,298" | What is the score for the game that has an attendance of 5,298? | CREATE TABLE table_name_9 (score VARCHAR, attendance VARCHAR) |
SELECT MIN(attendance) FROM table_name_59 WHERE date = "october 10, 1965" | Date of october 10, 1965 had what lowest attendance? | CREATE TABLE table_name_59 (attendance INTEGER, date VARCHAR) |
SELECT position FROM table_name_95 WHERE round = 27 | What Position has a Round of 27? | CREATE TABLE table_name_95 (position VARCHAR, round VARCHAR) |
SELECT score FROM table_name_86 WHERE record = "55-39" | What was the score of the game when the Blue Jays were 55-39? | CREATE TABLE table_name_86 (score VARCHAR, record VARCHAR) |
SELECT tournament FROM table_name_14 WHERE extra = "200 m" AND year < 1972 | What tournament took place before 1972 with an extra of 200 m? | CREATE TABLE table_name_14 (tournament VARCHAR, extra VARCHAR, year VARCHAR) |
SELECT MIN(series__number) FROM table_14929574_3 WHERE directed_by = "Bill Eagles" | Which episode number was directed by Bill Eagles? | CREATE TABLE table_14929574_3 (series__number INTEGER, directed_by VARCHAR) |
SELECT country FROM table_name_49 WHERE total = 295 | Which country had a total of 295? | CREATE TABLE table_name_49 (country VARCHAR, total VARCHAR) |
SELECT SUM(goals_conceded) FROM table_name_16 WHERE points > 58 AND wins < 27 AND draws < 1 | How many total goals conceded are there when the points are greater than 58, less than 27 wins, and less than 1 draws? | CREATE TABLE table_name_16 (goals_conceded INTEGER, draws VARCHAR, points VARCHAR, wins VARCHAR) |
SELECT date FROM table_name_83 WHERE score = "136-134" | What date has 136-134 as the score? | CREATE TABLE table_name_83 (date VARCHAR, score VARCHAR) |
SELECT MIN(year) FROM table_name_96 WHERE title = "cold feet" | What is recorded as the lowest Year that has the Title of Cold Feet? | CREATE TABLE table_name_96 (year INTEGER, title VARCHAR) |
SELECT record FROM table_name_55 WHERE date = "august 18" | Tell me the record for the date of August 18. | CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR) |
SELECT average FROM table_name_47 WHERE matches = "11" | What is the average when the matches are 11? | CREATE TABLE table_name_47 (average VARCHAR, matches VARCHAR) |
SELECT track AS time FROM table_name_80 WHERE disc > 2 AND track < 22 AND english_title = "younger girl" | Which Track time has a Disc larger than 2, a Track smaller than 22, and an English title of younger girl? | CREATE TABLE table_name_80 (track VARCHAR, english_title VARCHAR, disc VARCHAR) |
SELECT COUNT(goals_for) FROM table_name_99 WHERE losses > 16 | What is the total number of Goals For, when Losses is greater than 16? | CREATE TABLE table_name_99 (goals_for VARCHAR, losses INTEGER) |
SELECT exit_date FROM table_name_9 WHERE to_club = "cardiff city" | What is the exit date of the player who transferred to Cardiff City? | CREATE TABLE table_name_9 (exit_date VARCHAR, to_club VARCHAR) |
SELECT dominant_religion__2002_ FROM table_2562572_35 WHERE type = "village" AND settlement = "Banatski Despotovac" | Name the dominant religion 2002 for village banatski despotovac | CREATE TABLE table_2562572_35 (dominant_religion__2002_ VARCHAR, type VARCHAR, settlement VARCHAR) |
SELECT co_drivers FROM table_name_62 WHERE laps > 377 AND pos = "1st" | Who were the co-drivers with more than 377 laps in 1st position? | CREATE TABLE table_name_62 (co_drivers VARCHAR, laps VARCHAR, pos VARCHAR) |
SELECT record FROM table_name_79 WHERE date = "march 26" | What was the record on march 26? | CREATE TABLE table_name_79 (record VARCHAR, date VARCHAR) |
SELECT AVG(Age) FROM artist | What is the average age of all artists? | CREATE TABLE artist (Age INTEGER) |
SELECT COUNT(race_caller) FROM table_22514845_2 WHERE trophy_presentation = "Bob Costas and Charlsie Cantey" | Name the total number for race caller for bob costas and charlsie cantey | CREATE TABLE table_22514845_2 (race_caller VARCHAR, trophy_presentation VARCHAR) |
SELECT MIN(no_in_season) FROM table_29273390_1 | What is the least amount in each season? | CREATE TABLE table_29273390_1 (no_in_season INTEGER) |
SELECT percent_of_mass FROM table_name_21 WHERE molweight__daltons_ = "1e11" | what is the percent of mass when the mol.weight (daltons) is 1e11? | CREATE TABLE table_name_21 (percent_of_mass VARCHAR, molweight__daltons_ VARCHAR) |
SELECT runners_up FROM table_12303563_2 WHERE nation = "Malaysia" | what's the runners-up with nation being malaysia | CREATE TABLE table_12303563_2 (runners_up VARCHAR, nation VARCHAR) |
SELECT to_par FROM table_name_91 WHERE score = 65 | What to par has 65 as the score? | CREATE TABLE table_name_91 (to_par VARCHAR, score VARCHAR) |
SELECT COUNT(year) FROM table_name_39 WHERE theme = "toronto maple leafs" AND issue_price = 24.95 | How many years have a theme of Toronto Maple Leafs and an Issue Price of 24.95? | CREATE TABLE table_name_39 (year VARCHAR, theme VARCHAR, issue_price VARCHAR) |
SELECT position FROM table_16575609_5 WHERE pick__number = 34 | What position is the player drafted with pick 34? | CREATE TABLE table_16575609_5 (position VARCHAR, pick__number VARCHAR) |
SELECT opponent FROM table_name_86 WHERE week < 15 AND attendance = "64,900" AND result = "l 38-31" | What is the Opponent at the game with an Attendance of 64,900 in Week prior to 15 with a Result of L 38-31? | CREATE TABLE table_name_86 (opponent VARCHAR, result VARCHAR, week VARCHAR, attendance VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.