answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT event FROM table_name_70 WHERE round = 1 AND res = "win" AND record = "15-4" | Which event was in round 1, resulted in a win, and a record of 15-4? | CREATE TABLE table_name_70 (event VARCHAR, record VARCHAR, round VARCHAR, res VARCHAR) |
SELECT MIN(games) FROM table_name_26 WHERE drawn < 0 | What is the lowest game that has a drawn less than 0? | CREATE TABLE table_name_26 (games INTEGER, drawn INTEGER) |
SELECT SUM(rank) FROM table_name_30 WHERE goalkeeper = "pat onstad" | What is the sum of Rank when Pat Onstad was the goalkeeper? | CREATE TABLE table_name_30 (rank INTEGER, goalkeeper VARCHAR) |
SELECT name FROM table_1749567_2 WHERE number = 28 | What was the name of race #28? | CREATE TABLE table_1749567_2 (name VARCHAR, number VARCHAR) |
SELECT year_separated FROM table_name_74 WHERE reason_for_separation = "capital stopped recording music" AND english_name = "wilfred lau" | What year was Wilfred Lau separated because Capital stopped recording music? | CREATE TABLE table_name_74 (year_separated VARCHAR, reason_for_separation VARCHAR, english_name VARCHAR) |
SELECT rank FROM table_name_84 WHERE country = "canada" | Which rank has canada as the country? | CREATE TABLE table_name_84 (rank VARCHAR, country VARCHAR) |
SELECT date FROM table_name_4 WHERE score = "6–4, 6–4" AND opponent = "leonardo tavares" | What date was the match against leonardo tavares with a score of 6–4, 6–4? | CREATE TABLE table_name_4 (date VARCHAR, score VARCHAR, opponent VARCHAR) |
SELECT document_id FROM Documents_with_expenses WHERE budget_type_code = 'SF' | What are the document ids for the budget type code 'SF'? | CREATE TABLE Documents_with_expenses (document_id VARCHAR, budget_type_code VARCHAR) |
SELECT T2.card_type_code, COUNT(*) FROM Financial_transactions AS T1 JOIN Customers_cards AS T2 ON T1.card_id = T2.card_id GROUP BY T2.card_type_code | Show the card type codes and the number of transactions. | CREATE TABLE Financial_transactions (card_id VARCHAR); CREATE TABLE Customers_cards (card_type_code VARCHAR, card_id VARCHAR) |
SELECT COUNT(DISTINCT city) FROM Person | How many different cities are they from? | CREATE TABLE Person (city VARCHAR) |
SELECT COUNT(*), sex FROM employee WHERE salary < 50000 GROUP BY sex | Find the number of employees of each gender whose salary is lower than 50000. | CREATE TABLE employee (sex VARCHAR, salary INTEGER) |
SELECT COUNT(crowd) FROM table_name_5 WHERE away_team = "collingwood" | How many people were in the crowd with the away team being collingwood? | CREATE TABLE table_name_5 (crowd VARCHAR, away_team VARCHAR) |
SELECT parent_magazine FROM table_name_6 WHERE frequency = "bimonthly" AND magazine_type = "manga" AND title = "dengeki moeoh" | What was the parent magazine for the manga magazine, dengeki moeoh that was issued bimonthly? | CREATE TABLE table_name_6 (parent_magazine VARCHAR, title VARCHAR, frequency VARCHAR, magazine_type VARCHAR) |
SELECT MAX(minutes) FROM table_24477075_1 WHERE starts = 12 | Name the most minutes and starts being 12 | CREATE TABLE table_24477075_1 (minutes INTEGER, starts VARCHAR) |
SELECT MAX(year) FROM table_11214212_1 WHERE registration_of_a_minor_child = 281 | what is the maximum year with registration of a minor child being 281 | CREATE TABLE table_11214212_1 (year INTEGER, registration_of_a_minor_child VARCHAR) |
SELECT 2013 AS _republican_primary FROM table_1108394_6 WHERE staten_island = "451" | Who was the republican candidate in 2013 when Staten Island was 451? | CREATE TABLE table_1108394_6 (staten_island VARCHAR) |
SELECT candidates FROM table_1341640_14 WHERE first_elected = 1974 | What candidates were featured in the 1974 election? | CREATE TABLE table_1341640_14 (candidates VARCHAR, first_elected VARCHAR) |
SELECT MAX(position) FROM table_name_16 WHERE against < 49 AND drawn = 4 | Which Position has an Against smaller than 49, and a Drawn of 4? | CREATE TABLE table_name_16 (position INTEGER, against VARCHAR, drawn VARCHAR) |
SELECT COUNT(viewers__m_) FROM table_name_80 WHERE rank__night_ = "n/a" AND timeslot = "8:30 p.m." | What is the total number of Viewers with a Rank (Night) of n/a, and a Timeslot of 8:30 p.m.? | CREATE TABLE table_name_80 (viewers__m_ VARCHAR, rank__night_ VARCHAR, timeslot VARCHAR) |
SELECT record FROM table_27734769_9 WHERE high_rebounds = "Marcus Camby (13)" | What was the game record if Marcus Camby (13) got the high rebounds? | CREATE TABLE table_27734769_9 (record VARCHAR, high_rebounds VARCHAR) |
SELECT position FROM table_2508633_8 WHERE nfl_team = "Minnesota Vikings" | If the NFL team is the Minnesota Vikings, what is the position? | CREATE TABLE table_2508633_8 (position VARCHAR, nfl_team VARCHAR) |
SELECT SUM(attendance) FROM table_name_17 WHERE opponent = "royals" AND score = "17 - 6" | How many people attended the Royals game with a score of 17 - 6? | CREATE TABLE table_name_17 (attendance INTEGER, opponent VARCHAR, score VARCHAR) |
SELECT MIN(laps) FROM table_name_35 WHERE driver = "gerhard berger" AND grid > 6 | what is the least laps for driver gerhard berger with a grid more than 6? | CREATE TABLE table_name_35 (laps INTEGER, driver VARCHAR, grid VARCHAR) |
SELECT AVG(rank) FROM table_name_27 WHERE nation = "east germany" AND silver > 1 | what is the average rank when the nation is east germany and silver is more than 1? | CREATE TABLE table_name_27 (rank INTEGER, nation VARCHAR, silver VARCHAR) |
SELECT AVG(track) FROM table_name_48 WHERE writer_s_ = "mac davis" | Which Track has a Writer(s) of mac davis? | CREATE TABLE table_name_48 (track INTEGER, writer_s_ VARCHAR) |
SELECT 2011 FROM table_name_70 WHERE tournament = "australian open" AND 2010 = "qf" | What is the 2011 Australian Open and a 2010 QF? | CREATE TABLE table_name_70 (tournament VARCHAR) |
SELECT mccain_percentage FROM table_20524090_1 WHERE county = "Waynesboro (city)" | What percentage of the vote did McCain win in Waynesboro (city)? | CREATE TABLE table_20524090_1 (mccain_percentage VARCHAR, county VARCHAR) |
SELECT nation FROM table_name_72 WHERE bronze < 10 AND silver = 5 | What Nation has a Bronze that is smaller than 10 with a Silver of 5? | CREATE TABLE table_name_72 (nation VARCHAR, bronze VARCHAR, silver VARCHAR) |
SELECT date FROM table_name_22 WHERE score = "6-1 6-3" | What is the Date of the tournament with a Score of 6-1 6-3? | CREATE TABLE table_name_22 (date VARCHAR, score VARCHAR) |
SELECT time FROM table_name_20 WHERE name = "audrey lacroix" | Swimmer Audrey Lacroix finished in what time? | CREATE TABLE table_name_20 (time VARCHAR, name VARCHAR) |
SELECT elevated FROM table_name_75 WHERE cardinalatial_order_and_title = "cardinal-deacon of s. giorgio in velabro" | When was Cardinal-Deacon of S. Giorgio in Velabro elevated? | CREATE TABLE table_name_75 (elevated VARCHAR, cardinalatial_order_and_title VARCHAR) |
SELECT athlete FROM table_name_71 WHERE country = "hong kong" | Who was the athlete from Hong Kong? | CREATE TABLE table_name_71 (athlete VARCHAR, country VARCHAR) |
SELECT height FROM table_12962773_1 WHERE position = "Center" AND year_born > 1980.0 | what's height with position being center and year born being bigger than 1980.0 | CREATE TABLE table_12962773_1 (height VARCHAR, position VARCHAR, year_born VARCHAR) |
SELECT tamil_months FROM table_1740431_3 WHERE season_in_english = "Monsoon" | What are all Tamil months when the season in English is monsoon? | CREATE TABLE table_1740431_3 (tamil_months VARCHAR, season_in_english VARCHAR) |
SELECT date FROM table_name_21 WHERE away_team = "richmond" | Which date has an Away team of richmond? | CREATE TABLE table_name_21 (date VARCHAR, away_team VARCHAR) |
SELECT AVG(bronze) FROM table_name_5 WHERE nation = "canada" AND rank < 6 | Which Bronze has a Nation of canada, and a Rank smaller than 6? | CREATE TABLE table_name_5 (bronze INTEGER, nation VARCHAR, rank VARCHAR) |
SELECT original_airdate FROM table_2342078_6 WHERE written_by = "Howard Ostroff" | Name the airdate for the episode written by howard ostroff | CREATE TABLE table_2342078_6 (original_airdate VARCHAR, written_by VARCHAR) |
SELECT high_points FROM table_name_75 WHERE team = "@ portland" | What are the High points for Team @ portland? | CREATE TABLE table_name_75 (high_points VARCHAR, team VARCHAR) |
SELECT 1 AS st_leg FROM table_name_12 WHERE team__number1 = "hemofarm" | Which 1st leg that has hemofarm? | CREATE TABLE table_name_12 (team__number1 VARCHAR) |
SELECT candidates FROM table_1342379_5 WHERE incumbent = "Henry E. Barbour" | Who was the incumbent when henry e. barbour ran? | CREATE TABLE table_1342379_5 (candidates VARCHAR, incumbent VARCHAR) |
SELECT writer_s_ FROM table_19852975_3 WHERE arties_disguises = "Swedish sailor" | Name the writers for swedish sailor | CREATE TABLE table_19852975_3 (writer_s_ VARCHAR, arties_disguises VARCHAR) |
SELECT nhl_team FROM table_2850912_10 WHERE college_junior_club_team = "HC Slavia Praha (Czechoslovakia)" | Which team drafted a player from HC Slavia Praha (Czechoslovakia)? | CREATE TABLE table_2850912_10 (nhl_team VARCHAR, college_junior_club_team VARCHAR) |
SELECT location FROM table_name_89 WHERE record = "12-5" | Where was the location when the record was 12-5? | CREATE TABLE table_name_89 (location VARCHAR, record VARCHAR) |
SELECT year FROM table_name_30 WHERE town = "eugene" | What year was it the town of Eugene? | CREATE TABLE table_name_30 (year VARCHAR, town VARCHAR) |
SELECT original_air_date FROM table_12722302_2 WHERE no = 2 | What is the original air date for no. 2? | CREATE TABLE table_12722302_2 (original_air_date VARCHAR, no VARCHAR) |
SELECT SUM(points) FROM table_name_18 WHERE lost < 10 AND name = "vfl denklingen" AND position > 2 | what is the sum of points when lost is less than 10, name is vfl denklingen and position is higher than 2? | CREATE TABLE table_name_18 (points INTEGER, position VARCHAR, lost VARCHAR, name VARCHAR) |
SELECT AVG(round) FROM table_name_99 WHERE time = "1:15" | What the round with the time 1:15? | CREATE TABLE table_name_99 (round INTEGER, time VARCHAR) |
SELECT score FROM table_name_34 WHERE total_points = 50 | What was the score where the total points was 50? | CREATE TABLE table_name_34 (score VARCHAR, total_points VARCHAR) |
SELECT no_in_series FROM table_18055005_1 WHERE viewers__millions_ = "4.1" AND written_by = "Douglas Lieblein" | What's the series number of the episode originally viewed by 4.1 million people and written by Douglas Lieblein? | CREATE TABLE table_18055005_1 (no_in_series VARCHAR, viewers__millions_ VARCHAR, written_by VARCHAR) |
SELECT league_from FROM table_name_36 WHERE pick__number = 160 | What is the league that has the pick #160? | CREATE TABLE table_name_36 (league_from VARCHAR, pick__number VARCHAR) |
SELECT SUM(pl_gp) FROM table_name_44 WHERE pick__number < 122 AND player = "rob flockhart" AND rd__number < 3 | What is the PI GP of Rob Flockhart, who has a pick # less than 122 and a round # less than 3? | CREATE TABLE table_name_44 (pl_gp INTEGER, rd__number VARCHAR, pick__number VARCHAR, player VARCHAR) |
SELECT MAX(points) FROM table_name_38 WHERE name = "ea schongau" AND drawn > 1 | What's the most points for Ea Schongau with more than 1 drawn? | CREATE TABLE table_name_38 (points INTEGER, name VARCHAR, drawn VARCHAR) |
SELECT constructor FROM table_1140076_2 WHERE location = "Monza" | Who was the constructor in the location Monza? | CREATE TABLE table_1140076_2 (constructor VARCHAR, location VARCHAR) |
SELECT home_or_representative_town_or_province FROM table_19061741_1 WHERE name = "Cindy Miranda" | When cindy miranda is the name what is the home or representative town or province? | CREATE TABLE table_19061741_1 (home_or_representative_town_or_province VARCHAR, name VARCHAR) |
SELECT 2 AS fm__mhz_ FROM table_18475946_2 WHERE rnag__mhz_ = "94.4" | What is the 2fm for rnag 94.4? | CREATE TABLE table_18475946_2 (rnag__mhz_ VARCHAR) |
SELECT genre FROM table_name_81 WHERE game = "donkey kong country" | Which Genre has a Game of donkey kong country? | CREATE TABLE table_name_81 (genre VARCHAR, game VARCHAR) |
SELECT AVG(year) FROM table_name_81 WHERE class = "350cc" AND team = "norton" AND points < 0 | In what Year did the Norton Team have 0 Points and 350cc Class? | CREATE TABLE table_name_81 (year INTEGER, points VARCHAR, class VARCHAR, team VARCHAR) |
SELECT event FROM table_name_1 WHERE gold = "darren kenny great britain (gbr)" | what is the event when gold is darren kenny great britain (gbr)? | CREATE TABLE table_name_1 (event VARCHAR, gold VARCHAR) |
SELECT SUM(year) FROM table_name_90 WHERE finish = "toulouse" AND stage > 12 | What year was finish Toulouse, and stage was larger than 12? | CREATE TABLE table_name_90 (year INTEGER, finish VARCHAR, stage VARCHAR) |
SELECT district FROM table_1341930_24 WHERE incumbent = "John Bell Williams" | In what district is the incumbent John Bell Williams? | CREATE TABLE table_1341930_24 (district VARCHAR, incumbent VARCHAR) |
SELECT location FROM table_name_51 WHERE capacity_in_use = "98.9%" | Where is the airport located that has a 98.9% in use capacity? | CREATE TABLE table_name_51 (location VARCHAR, capacity_in_use VARCHAR) |
SELECT school FROM table_name_6 WHERE player = "maya moore" | Where did Maya Moore attend school? | CREATE TABLE table_name_6 (school VARCHAR, player VARCHAR) |
SELECT english_title__chinese_title_ FROM table_name_20 WHERE number_of_episodes = 20 AND airing_date = "11 jun- 6 jul" | Which title had 20 episodes and aired on 11 jun- 6 jul? | CREATE TABLE table_name_20 (english_title__chinese_title_ VARCHAR, number_of_episodes VARCHAR, airing_date VARCHAR) |
SELECT engine FROM table_name_67 WHERE torque = "lb·ft (n·m)" | Which engine has a torgue of lb·ft (n·m)? | CREATE TABLE table_name_67 (engine VARCHAR, torque VARCHAR) |
SELECT candidates FROM table_1341453_32 WHERE incumbent = "Bill Pascrell" | Who were the candidates in the district whose incumbent is Bill Pascrell? | CREATE TABLE table_1341453_32 (candidates VARCHAR, incumbent VARCHAR) |
SELECT date FROM table_name_63 WHERE opponent = "tampa bay storm" | What is the date against the Tampa bay Storm? | CREATE TABLE table_name_63 (date VARCHAR, opponent VARCHAR) |
SELECT normal_total FROM table_name_62 WHERE que = "24" | Name the normal with que of 24 | CREATE TABLE table_name_62 (normal_total VARCHAR, que VARCHAR) |
SELECT nfl_recap FROM table_name_70 WHERE date = "december 24, 2005" | What was the NFL Recap of the game held on December 24, 2005? | CREATE TABLE table_name_70 (nfl_recap VARCHAR, date VARCHAR) |
SELECT COUNT(_number_of_episodes) FROM table_name_81 WHERE portrayed_by = "nick jonas" | How many episodes were portrayed by Nick Jonas? | CREATE TABLE table_name_81 (_number_of_episodes VARCHAR, portrayed_by VARCHAR) |
SELECT result_f___a FROM table_name_63 WHERE round = "round 1 replay" | what game ended f-a with a round of round 1 replay | CREATE TABLE table_name_63 (result_f___a VARCHAR, round VARCHAR) |
SELECT score FROM table_name_33 WHERE place = "t3" | What is the Score of the T3 Place Player? | CREATE TABLE table_name_33 (score VARCHAR, place VARCHAR) |
SELECT theme FROM table_12175755_1 WHERE song_choice = "Not Aired" | What is the song choice when the theme is not aired? | CREATE TABLE table_12175755_1 (theme VARCHAR, song_choice VARCHAR) |
SELECT COUNT(rank) FROM table_name_7 WHERE col__m_ > 0 | What is the rank when the col is larger than 0? | CREATE TABLE table_name_7 (rank VARCHAR, col__m_ INTEGER) |
SELECT results FROM table_name_89 WHERE total_votes > 3 OFFSET 871 | What is the result of the election with 3,871 total votes? | CREATE TABLE table_name_89 (results VARCHAR, total_votes INTEGER) |
SELECT val_de_marne FROM table_name_18 WHERE seine_saint_denis = "2.7%" | WHAT IS THE VAL-DE-MARNE WITH A Seine-Saint-Denis of 2.7%? | CREATE TABLE table_name_18 (val_de_marne VARCHAR, seine_saint_denis VARCHAR) |
SELECT established FROM table_16432543_1 WHERE institution = "Rowan University" | What is the year Rowan University was established | CREATE TABLE table_16432543_1 (established VARCHAR, institution VARCHAR) |
SELECT frequency FROM table_name_5 WHERE parent_magazine = "dengeki girl's style" | How often does Dengeki girl's style come out? | CREATE TABLE table_name_5 (frequency VARCHAR, parent_magazine VARCHAR) |
SELECT location FROM table_name_58 WHERE power__kw_ = "10kw" AND branding = "mom's radio 95.9 naga" | What's the location of Mom's Radio 95.9 Naga having a power of 10kw? | CREATE TABLE table_name_58 (location VARCHAR, power__kw_ VARCHAR, branding VARCHAR) |
SELECT customer_name FROM customers WHERE payment_method <> 'Cash' | Find the name of customers who did not pay with Cash. | CREATE TABLE customers (customer_name VARCHAR, payment_method VARCHAR) |
SELECT COUNT(enrollment__2012_) FROM table_2076516_1 WHERE founded = 1927 | When 1927 is the founded year how many measurements of enrollment in 2012 are there? | CREATE TABLE table_2076516_1 (enrollment__2012_ VARCHAR, founded VARCHAR) |
SELECT DISTINCT firstname, lastname FROM list | Report the first name and last name of all the students. | CREATE TABLE list (firstname VARCHAR, lastname VARCHAR) |
SELECT MAX(pumpers) FROM table_name_78 WHERE cars = 5 | what is the highest pumpers when cars is 5? | CREATE TABLE table_name_78 (pumpers INTEGER, cars VARCHAR) |
SELECT date FROM table_13619135_7 WHERE location_attendance = "Staples Center 18,176" | What day was the attendance at the staples center 18,176? | CREATE TABLE table_13619135_7 (date VARCHAR, location_attendance VARCHAR) |
SELECT MIN(floors) FROM table_name_4 WHERE completed < 1970 AND rank > 14 | What is the lowest amount of floors in the building completed before 1970 ranked more than 14? | CREATE TABLE table_name_4 (floors INTEGER, completed VARCHAR, rank VARCHAR) |
SELECT Writer FROM book ORDER BY Writer | List the writers of the books in ascending alphabetical order. | CREATE TABLE book (Writer VARCHAR) |
SELECT MAX(prod_no) FROM table_25046766_3 WHERE episode_no = "3-04" | What is the production number of 3-04? | CREATE TABLE table_25046766_3 (prod_no INTEGER, episode_no VARCHAR) |
SELECT T1.organisation_type, T1.organisation_id FROM Organisations AS T1 JOIN Research_Staff AS T2 ON T1.organisation_id = T2.employer_organisation_id GROUP BY T1.organisation_id ORDER BY COUNT(*) DESC LIMIT 1 | What is the organisation type and id of the organisation which has the most number of research staff? | CREATE TABLE Research_Staff (employer_organisation_id VARCHAR); CREATE TABLE Organisations (organisation_type VARCHAR, organisation_id VARCHAR) |
SELECT date_of_replacement FROM table_name_54 WHERE reason_of_departure = "sacked" AND team = "psis semarang" | On what date did the manager for PSIS Semarang take over for the manager that was sacked? | CREATE TABLE table_name_54 (date_of_replacement VARCHAR, reason_of_departure VARCHAR, team VARCHAR) |
SELECT rocket FROM table_name_41 WHERE block = "block i" AND cospar_id = "1995-060a" | What rocket has a Block of block i and a COSPAR ID of 1995-060a? | CREATE TABLE table_name_41 (rocket VARCHAR, block VARCHAR, cospar_id VARCHAR) |
SELECT seats FROM table_name_49 WHERE leader = "enda kenny" | What is the number of Seats for Leader Enda kenny? | CREATE TABLE table_name_49 (seats VARCHAR, leader VARCHAR) |
SELECT percentage_democrats FROM table_name_57 WHERE democratic__republican = "2/4" | What is the percentage democrats with 2/4 democrat/republican? | CREATE TABLE table_name_57 (percentage_democrats VARCHAR, democratic__republican VARCHAR) |
SELECT MIN(stolen_ends) FROM table_29545993_3 WHERE pa = 40 | What is the minimum stolen ends record where the pa record is 40? | CREATE TABLE table_29545993_3 (stolen_ends INTEGER, pa VARCHAR) |
SELECT SUM(wins) FROM table_name_51 WHERE draws > 0 | What is the sum of the number of wins for teams with more than 0 draws? | CREATE TABLE table_name_51 (wins INTEGER, draws INTEGER) |
SELECT imperative FROM table_name_37 WHERE subjunctive = "du måchast" | With a subjunctive of du måchast what is the imperative? | CREATE TABLE table_name_37 (imperative VARCHAR, subjunctive VARCHAR) |
SELECT COUNT(result) FROM table_14945608_1 WHERE attendance = 60225 | How many games had the attendance of 60225? | CREATE TABLE table_14945608_1 (result VARCHAR, attendance VARCHAR) |
SELECT highest_scoring_team FROM table_20079931_4 WHERE circuit_location = "Ring Knutstorp" AND winning_team = "Polestar Racing" | What's the highest scoring team in the round in Ring Knutstorp in which Polestar Racing is the winning team? | CREATE TABLE table_20079931_4 (highest_scoring_team VARCHAR, circuit_location VARCHAR, winning_team VARCHAR) |
SELECT drawn FROM table_name_60 WHERE tries_against = "36" AND points = "66" | Name the Drawn for tries against of 36 and points of 66 | CREATE TABLE table_name_60 (drawn VARCHAR, tries_against VARCHAR, points VARCHAR) |
SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY COUNT(*) DESC LIMIT 1 | Which allergy type has most number of allergies? | CREATE TABLE Allergy_type (allergytype VARCHAR) |
SELECT name_of_award FROM table_24446718_7 WHERE awardee_s_ = "Zubeen Garg" | Name the name of award for zubeen garg | CREATE TABLE table_24446718_7 (name_of_award VARCHAR, awardee_s_ VARCHAR) |
SELECT result FROM table_25030512_24 WHERE incumbent = "Barney Frank" | Name the result for barney frank | CREATE TABLE table_25030512_24 (result VARCHAR, incumbent VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.