answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT actor FROM table_name_45 WHERE result = "nominated" AND category = "best actress" | What actor was nominated for best actress? | CREATE TABLE table_name_45 (actor VARCHAR, result VARCHAR, category VARCHAR) |
SELECT score FROM table_name_67 WHERE date = "13 march 1985" AND away_team = "millwall" | What is Score, when Date is "13 March 1985", and when Away Team is "Millwall"? | CREATE TABLE table_name_67 (score VARCHAR, date VARCHAR, away_team VARCHAR) |
SELECT donor_payment FROM table_16175217_1 WHERE children_per_donor = "6 children" AND allowed_recipients = "no data" | What is the status of donor payment in the country where there are 6 children per donor and no data on allowed recipients? | CREATE TABLE table_16175217_1 (donor_payment VARCHAR, children_per_donor VARCHAR, allowed_recipients VARCHAR) |
SELECT COUNT(*) FROM enzyme WHERE NOT id IN (SELECT enzyme_id FROM medicine_enzyme_interaction) | How many enzymes do not have any interactions? | CREATE TABLE medicine_enzyme_interaction (id VARCHAR, enzyme_id VARCHAR); CREATE TABLE enzyme (id VARCHAR, enzyme_id VARCHAR) |
SELECT runners_up FROM table_2869837_1 WHERE school = "Royal school Dungannon" | What are the number of runners up for Royal School Dungannon? | CREATE TABLE table_2869837_1 (runners_up VARCHAR, school VARCHAR) |
SELECT document_type_code FROM Documents GROUP BY document_type_code HAVING COUNT(*) < 3 | Show the document type code with fewer than 3 documents. | CREATE TABLE Documents (document_type_code VARCHAR) |
SELECT surface FROM table_name_31 WHERE opponent = "selma babic" | what is the surface when the opponent is selma babic? | CREATE TABLE table_name_31 (surface VARCHAR, opponent VARCHAR) |
SELECT int_percentage FROM table_name_29 WHERE ravg = "2.8" | What is the int percentage that has Ravg of 2.8? | CREATE TABLE table_name_29 (int_percentage VARCHAR, ravg VARCHAR) |
SELECT MAX(charge_amount) FROM Charges | How much does the most expensive charge type costs? | CREATE TABLE Charges (charge_amount INTEGER) |
SELECT MIN(crowd) FROM table_name_13 WHERE home_team = "carlton" | If the Home team is carlton, what's the lowest Crowd found? | CREATE TABLE table_name_13 (crowd INTEGER, home_team VARCHAR) |
SELECT birth_state FROM table_name_74 WHERE name = "charles cotesworth pinckney" AND election_year = 1808 | What was the birth state of Charles Cotesworth Pinckney who was elected in 1808? | CREATE TABLE table_name_74 (birth_state VARCHAR, name VARCHAR, election_year VARCHAR) |
SELECT 2006 FROM table_name_73 WHERE 2010 = "107" | What is the result for 2006 of a tournament that is 107 in 2010? | CREATE TABLE table_name_73 (Id VARCHAR) |
SELECT director FROM table_name_80 WHERE role = "melissa" | Which Director has a Role of melissa? | CREATE TABLE table_name_80 (director VARCHAR, role VARCHAR) |
SELECT title FROM table_10749143_2 WHERE us_viewers__millions_ = "10.34" | What is the title of the episode wtih 10.34 million U.S viewers? | CREATE TABLE table_10749143_2 (title VARCHAR, us_viewers__millions_ VARCHAR) |
SELECT candidates FROM table_1341604_10 WHERE incumbent = "Don Fuqua" | who is the the candidates with incumbent being don fuqua | CREATE TABLE table_1341604_10 (candidates VARCHAR, incumbent VARCHAR) |
SELECT pole_position FROM table_10707176_2 WHERE rnd = "12" | Who was the pole position for the rnd equalling 12? | CREATE TABLE table_10707176_2 (pole_position VARCHAR, rnd VARCHAR) |
SELECT call_sign FROM table_name_6 WHERE branding = "1062 dxki koronadal" | What's the call sign if the branding is 1062 DXKI Koronadal? | CREATE TABLE table_name_6 (call_sign VARCHAR, branding VARCHAR) |
SELECT league FROM table_2380212_1 WHERE year = 2007 | What League was played in 2007? | CREATE TABLE table_2380212_1 (league VARCHAR, year VARCHAR) |
SELECT score FROM table_name_63 WHERE game < 61 AND team = "new york" | What is the score of New York team before game 61? | CREATE TABLE table_name_63 (score VARCHAR, game VARCHAR, team VARCHAR) |
SELECT world_rank FROM table_19112_3 WHERE market_value__billion_$_ = "17.2" | Name the world rank for market value 17.2 | CREATE TABLE table_19112_3 (world_rank VARCHAR, market_value__billion_$_ VARCHAR) |
SELECT wine_style FROM table_13981938_1 WHERE grand_cru = "Romanée-Conti" | what's the wine style with grand cru being romanée-conti | CREATE TABLE table_13981938_1 (wine_style VARCHAR, grand_cru VARCHAR) |
SELECT COUNT(event) FROM table_26894949_2 WHERE puma = "20" AND abu_dhabi = "30" | In how many events was Puma 20 and abu dhabi 30? | CREATE TABLE table_26894949_2 (event VARCHAR, puma VARCHAR, abu_dhabi VARCHAR) |
SELECT MAX(population) FROM table_1818254_1 WHERE city = "Minneapolis" | What was the population of Minneapolis in 2012? | CREATE TABLE table_1818254_1 (population INTEGER, city VARCHAR) |
SELECT AVG(rank) FROM table_name_16 WHERE director = "leonard nimoy" | WHAT RANK DOES LEONARD NIMOY HAVE? | CREATE TABLE table_name_16 (rank INTEGER, director VARCHAR) |
SELECT MIN(total_produced) FROM table_name_47 WHERE model = "m-420" | What is the smallest total produced with a model of M-420? | CREATE TABLE table_name_47 (total_produced INTEGER, model VARCHAR) |
SELECT position FROM table_name_56 WHERE home_town = "new york city, ny" | What is the position of the player from New York City, NY? | CREATE TABLE table_name_56 (position VARCHAR, home_town VARCHAR) |
SELECT MIN(loses) FROM table_name_83 WHERE position < 8 AND games_played < 30 | What is the fewest loses for the club that is below 8 in position, and had played less than 30 games? | CREATE TABLE table_name_83 (loses INTEGER, position VARCHAR, games_played VARCHAR) |
SELECT SUM(rank) FROM table_name_29 WHERE name = "thomas morgenstern" AND points > 288.7 | Which Rank that a Name of thomas morgenstern, and Points larger than 288.7? | CREATE TABLE table_name_29 (rank INTEGER, name VARCHAR, points VARCHAR) |
SELECT position FROM table_name_52 WHERE player = "siim ennemuist" | What position has siim ennemuist as the player? | CREATE TABLE table_name_52 (position VARCHAR, player VARCHAR) |
SELECT MIN(crowd) FROM table_name_24 WHERE away_team = "melbourne tigers" | Can you tell me the lowest Crowd that has the Away team of melbourne tigers? | CREATE TABLE table_name_24 (crowd INTEGER, away_team VARCHAR) |
SELECT COUNT(2010) FROM table_name_85 WHERE 2009 < 14 AND 2008 < 15 AND 2005 = 3 | Name the total number of 2010 for when 2009 is less than 14, 2008 is less than 15 and 2005 is 3 | CREATE TABLE table_name_85 (Id VARCHAR) |
SELECT location FROM table_16734640_1 WHERE institution = "Chattahoochee Technical College" | Name the location for chattahoochee technical college | CREATE TABLE table_16734640_1 (location VARCHAR, institution VARCHAR) |
SELECT customer_name FROM customers WHERE customer_name LIKE "%Alex%" | Find the name of all customers whose name contains "Alex". | CREATE TABLE customers (customer_name VARCHAR) |
SELECT grid FROM table_name_43 WHERE time_retired = "electrical" AND laps = 51 | What is the grid for the driver with an electrical time/retired and 51 laps? | CREATE TABLE table_name_43 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR) |
SELECT record FROM table_2517159_1 WHERE name_of_bowl = "Cotton Bowl Classic" | Name the record for cotton bowl classic | CREATE TABLE table_2517159_1 (record VARCHAR, name_of_bowl VARCHAR) |
SELECT rank FROM table_name_43 WHERE mountain_peak = "crested butte pb" | Name the Rank of Rank Mountain Peak of crested butte pb? | CREATE TABLE table_name_43 (rank VARCHAR, mountain_peak VARCHAR) |
SELECT title FROM table_name_4 WHERE production_num = 4645 | With 4645 as the production number what was the title? | CREATE TABLE table_name_4 (title VARCHAR, production_num VARCHAR) |
SELECT AVG(year) FROM table_name_8 WHERE engine = "offenhauser l4" AND entrant = "belanger motors" | What is the average year that the Belanger Motors had an Offenhauser l4 engine? | CREATE TABLE table_name_8 (year INTEGER, engine VARCHAR, entrant VARCHAR) |
SELECT left_office FROM table_name_82 WHERE took_office = "2006" | What is Left Office, when Took Office is 2006? | CREATE TABLE table_name_82 (left_office VARCHAR, took_office VARCHAR) |
SELECT grid FROM table_name_21 WHERE driver = "jim clark" | In what grid did jim clark drive in? | CREATE TABLE table_name_21 (grid VARCHAR, driver VARCHAR) |
SELECT venue FROM table_name_84 WHERE opponents = "halmstad" AND score = "1-1" | Which Venue has a Opponents of halmstad and a Score of 1-1? | CREATE TABLE table_name_84 (venue VARCHAR, opponents VARCHAR, score VARCHAR) |
SELECT author FROM table_name_42 WHERE featuring = "leela, the master, kraals" | who is the author when featuring is leela, the master, kraals? | CREATE TABLE table_name_42 (author VARCHAR, featuring VARCHAR) |
SELECT COUNT(races) FROM table_name_54 WHERE poles = 0 AND season = "2006" AND podiums > 0 | What is the total number of races in the 2006 season with 0 poles and more than 0 podiums? | CREATE TABLE table_name_54 (races VARCHAR, podiums VARCHAR, poles VARCHAR, season VARCHAR) |
SELECT COUNT(goals_for) FROM table_name_33 WHERE drawn < 7 AND lost < 21 AND points_1 = "33" | What is the total number of goals for when the drawn is less than 7, less than 21 games have been lost, and there are 1 of 33 points? | CREATE TABLE table_name_33 (goals_for VARCHAR, points_1 VARCHAR, drawn VARCHAR, lost VARCHAR) |
SELECT 1998 FROM table_name_14 WHERE 2007 = "3r" | Which 1998 tournament had a performance of 3R in 2007? | CREATE TABLE table_name_14 (Id VARCHAR) |
SELECT venue FROM table_name_24 WHERE away_team = "fitzroy" | Where was the game held when Fitzroy was the away team? | CREATE TABLE table_name_24 (venue VARCHAR, away_team VARCHAR) |
SELECT market_rank_ & _city_of_license__market FROM table_22329326_1 WHERE station = "KABC-TV" | What market rank and city had the station KABC-TV? | CREATE TABLE table_22329326_1 (market_rank_ VARCHAR, _city_of_license__market VARCHAR, station VARCHAR) |
SELECT COUNT(amman) FROM table_26173058_2 WHERE wehdat = "0-1" | what is the number of teams where the record is 0-1 | CREATE TABLE table_26173058_2 (amman VARCHAR, wehdat VARCHAR) |
SELECT venue FROM table_name_48 WHERE competition = "friendly" AND goal > 2 | What Venue had 2 or more Goals in a Friendly Competition? | CREATE TABLE table_name_48 (venue VARCHAR, competition VARCHAR, goal VARCHAR) |
SELECT player FROM table_name_67 WHERE college_junior_club_team = "canterbury (ushs)" | What player is from canterbury (ushs)? | CREATE TABLE table_name_67 (player VARCHAR, college_junior_club_team VARCHAR) |
SELECT rank FROM table_name_86 WHERE name = "battersea power station" | What ranking is the Battersea Power Station? | CREATE TABLE table_name_86 (rank VARCHAR, name VARCHAR) |
SELECT MAX(points) FROM table_name_63 WHERE date = "december 13" | What were the Points on December 13? | CREATE TABLE table_name_63 (points INTEGER, date VARCHAR) |
SELECT partner FROM table_29163303_1 WHERE year = 2003 AND surface = "Hard" | Who was Bob Bryan's partner/s on a hard surface in 2003? | CREATE TABLE table_29163303_1 (partner VARCHAR, year VARCHAR, surface VARCHAR) |
SELECT time FROM table_name_34 WHERE event = "50m breaststroke" | What is the time for the 50m breaststroke? | CREATE TABLE table_name_34 (time VARCHAR, event VARCHAR) |
SELECT team_2 FROM table_name_32 WHERE ground = "pailing sport park" AND result = "0-4" | What team is 2 when the game result is 0-4 at Pailing Sport Park? | CREATE TABLE table_name_32 (team_2 VARCHAR, ground VARCHAR, result VARCHAR) |
SELECT years FROM table_name_93 WHERE games = 550 | What is the Years when games shows 550? | CREATE TABLE table_name_93 (years VARCHAR, games VARCHAR) |
SELECT AVG(against) FROM table_name_58 WHERE position < 5 AND team = "corinthians" | When the corinthians have a position of less than 5, what is the average against? | CREATE TABLE table_name_58 (against INTEGER, position VARCHAR, team VARCHAR) |
SELECT description FROM table_25474825_1 WHERE license = "GNU GPL v2 or Ruby license" | What is the description of the license for GNU GPL v2 or Ruby license? | CREATE TABLE table_25474825_1 (description VARCHAR, license VARCHAR) |
SELECT team FROM table_name_13 WHERE time = "32:17" | What team was the player that received a penalty at time 32:17 playing for? | CREATE TABLE table_name_13 (team VARCHAR, time VARCHAR) |
SELECT driver FROM table_name_59 WHERE laps = 10 | I want the driver that has Laps of 10 | CREATE TABLE table_name_59 (driver VARCHAR, laps VARCHAR) |
SELECT vinculum FROM table_name_72 WHERE parentheses = "0.(81)" | How much is vinculum when the parentheses are 0.(81)? | CREATE TABLE table_name_72 (vinculum VARCHAR, parentheses VARCHAR) |
SELECT imap_shared FROM table_name_93 WHERE web_ui = "web ui" | What IMAP sharing options exist for software with a web UI? | CREATE TABLE table_name_93 (imap_shared VARCHAR, web_ui VARCHAR) |
SELECT player FROM table_2840500_3 WHERE position = "Left Wing" AND nationality = "Canada" AND nhl_team = "St. Louis Blues" | who is the person that plays left wing and is from canada that plays on the st. louis blues | CREATE TABLE table_2840500_3 (player VARCHAR, nhl_team VARCHAR, position VARCHAR, nationality VARCHAR) |
SELECT player FROM table_name_47 WHERE hometown = "flower mound, tx" | Who is from flower mound, tx? | CREATE TABLE table_name_47 (player VARCHAR, hometown VARCHAR) |
SELECT player FROM table_14342592_5 WHERE extra_points = 12 | Which players have made a total of 12 extra points? | CREATE TABLE table_14342592_5 (player VARCHAR, extra_points VARCHAR) |
SELECT language FROM table_15887683_5 WHERE television_service = "Sky Cinema Passion" AND n° = "308" | What language is Sky Cinema Passion television service n. 308? | CREATE TABLE table_15887683_5 (language VARCHAR, television_service VARCHAR, n° VARCHAR) |
SELECT parliament FROM table_1889233_2 WHERE name = "Lina Loh Woon Lee" | what parliament's name is lina loh woon lee? | CREATE TABLE table_1889233_2 (parliament VARCHAR, name VARCHAR) |
SELECT production_time FROM table_name_59 WHERE number_built > 2.737 AND model = "280s" | What's the production time with more than 2.737 built and a 280s model? | CREATE TABLE table_name_59 (production_time VARCHAR, number_built VARCHAR, model VARCHAR) |
SELECT Name FROM editor WHERE Age > 25 | List the names of editors who are older than 25. | CREATE TABLE editor (Name VARCHAR, Age INTEGER) |
SELECT cooper FROM table_name_43 WHERE ashmolean < 21 AND hahland < 4 | What is the cooper with an Ashmolean less than 21, and hahland smaller than 4? | CREATE TABLE table_name_43 (cooper VARCHAR, ashmolean VARCHAR, hahland VARCHAR) |
SELECT record FROM table_name_67 WHERE visitor = "toronto maple leafs" AND score = "3–10" | What was the record when the visitor was toronto maple leafs and the score was 3–10? | CREATE TABLE table_name_67 (record VARCHAR, visitor VARCHAR, score VARCHAR) |
SELECT MAX(rank) FROM table_name_43 WHERE silver < 0 | What is the highest rank of a nation with fewer than 0 silver medals? | CREATE TABLE table_name_43 (rank INTEGER, silver INTEGER) |
SELECT founded FROM table_22171978_1 WHERE athletic_nickname = "Blue Crusaders" | What year was the athletic nickname blue crusaders founded? | CREATE TABLE table_22171978_1 (founded VARCHAR, athletic_nickname VARCHAR) |
SELECT proceed_to_quarter_final FROM table_27986200_3 WHERE points_margin = 21 | Who proceeded to the quarter finals with a points margin of 21? | CREATE TABLE table_27986200_3 (proceed_to_quarter_final VARCHAR, points_margin VARCHAR) |
SELECT COUNT(result) FROM table_name_99 WHERE horse = "waldemar 27" AND event = "freestyle test" | What is the result of Waldemar 27´s freestyle test? | CREATE TABLE table_name_99 (result VARCHAR, horse VARCHAR, event VARCHAR) |
SELECT SUM(drawn) FROM table_name_59 WHERE lost < 4 AND points = 8 | How many total drawn has less than 4 lost and 8 points? | CREATE TABLE table_name_59 (drawn INTEGER, lost VARCHAR, points VARCHAR) |
SELECT region_1 FROM table_171320_3 WHERE region_4 = "April 2, 2009" | Name the region 1 where region 4 for april 2, 2009 | CREATE TABLE table_171320_3 (region_1 VARCHAR, region_4 VARCHAR) |
SELECT blocks FROM table_24912693_4 WHERE minutes = 893 | How many blocks does the player who played 893 minutes have? | CREATE TABLE table_24912693_4 (blocks VARCHAR, minutes VARCHAR) |
SELECT surface FROM table_name_72 WHERE date = "october 10, 2004" | What was the surface for October 10, 2004? | CREATE TABLE table_name_72 (surface VARCHAR, date VARCHAR) |
SELECT AirportName FROM Airports WHERE NOT AirportCode IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights) | Find the name of airports which do not have any flight in and out. | CREATE TABLE Flights (AirportName VARCHAR, AirportCode VARCHAR, SourceAirport VARCHAR, DestAirport VARCHAR); CREATE TABLE Airports (AirportName VARCHAR, AirportCode VARCHAR, SourceAirport VARCHAR, DestAirport VARCHAR) |
SELECT name FROM table_name_89 WHERE year_built = 1857 | What was built in 1857? | CREATE TABLE table_name_89 (name VARCHAR, year_built VARCHAR) |
SELECT record FROM table_name_26 WHERE date = "september 27" | What is the record for the game played on September 27? | CREATE TABLE table_name_26 (record VARCHAR, date VARCHAR) |
SELECT round FROM table_name_53 WHERE venue = "nicosia" AND opponent = "levski sofia zapad" | Which round has a Venue of nicosia, and a Opponent of levski sofia zapad? | CREATE TABLE table_name_53 (round VARCHAR, venue VARCHAR, opponent VARCHAR) |
SELECT venue FROM table_name_2 WHERE opponents = "east fife" AND date = "3 january 2009" | Where was the game played on 3 january 2009 against east fife? | CREATE TABLE table_name_2 (venue VARCHAR, opponents VARCHAR, date VARCHAR) |
SELECT SUM(comp) FROM table_name_33 WHERE comp_percentage = 65.4 AND att < 451 | What is the sum of completions that led to completion percentages of 65.4 and attempts under 451? | CREATE TABLE table_name_33 (comp INTEGER, comp_percentage VARCHAR, att VARCHAR) |
SELECT score FROM table_name_13 WHERE opponent = "@ buffalo sabres" | Which Score has an Opponent of @ buffalo sabres? | CREATE TABLE table_name_13 (score VARCHAR, opponent VARCHAR) |
SELECT MAX(points) FROM table_name_42 WHERE chassis = "jaguar r3" AND year > 2002 | What is the most points when the chassis was Jaguar R3 later than 2002? | CREATE TABLE table_name_42 (points INTEGER, chassis VARCHAR, year VARCHAR) |
SELECT winner FROM table_name_14 WHERE loser = "new england patriots" AND result = "40-21" | Which team won against the New England Patriots 40-21? | CREATE TABLE table_name_14 (winner VARCHAR, loser VARCHAR, result VARCHAR) |
SELECT away_team AS score FROM table_name_58 WHERE home_team = "richmond" | Which Away team score has a Home team of richmond? | CREATE TABLE table_name_58 (away_team VARCHAR, home_team VARCHAR) |
SELECT lost FROM table_name_60 WHERE club = "barry rfc" | What is the lost when the club was Barry RFC? | CREATE TABLE table_name_60 (lost VARCHAR, club VARCHAR) |
SELECT school FROM table_11677691_6 WHERE player = "Darius Hamilton" | Where did Darius Hamilton go? | CREATE TABLE table_11677691_6 (school VARCHAR, player VARCHAR) |
SELECT MIN(accounting_closure_date) FROM table_143352_1 WHERE agr_power_station = "Hunterston B" | What is the Closure date of Hunterston B | CREATE TABLE table_143352_1 (accounting_closure_date INTEGER, agr_power_station VARCHAR) |
SELECT drawn FROM table_12807904_3 WHERE points = "76" | HOW MANY GAMES WERE TIED AT 76? | CREATE TABLE table_12807904_3 (drawn VARCHAR, points VARCHAR) |
SELECT opponent FROM table_name_52 WHERE october < 31 AND game > 5 AND record = "2-3-1" | What is the Opponent before October 31 with a Record of 2-3-1 after Game 5? | CREATE TABLE table_name_52 (opponent VARCHAR, record VARCHAR, october VARCHAR, game VARCHAR) |
SELECT SUM(pick__number) FROM table_name_94 WHERE position = "d" AND team_from = "chilliwack bruins" | What is the total pick # for the D position from a team from Chilliwack Bruins? | CREATE TABLE table_name_94 (pick__number INTEGER, position VARCHAR, team_from VARCHAR) |
SELECT AVG(round) FROM table_name_43 WHERE pick__number > 20 AND college = "virginia" AND overall > 127 | Which average Round has a Pick # larger than 20, and a College of virginia, and an Overall larger than 127? | CREATE TABLE table_name_43 (round INTEGER, overall VARCHAR, pick__number VARCHAR, college VARCHAR) |
SELECT callsign FROM table_name_68 WHERE icao = "sco" | Who is the callsign that has ICAO of SCO? | CREATE TABLE table_name_68 (callsign VARCHAR, icao VARCHAR) |
SELECT MIN(february) FROM table_name_52 WHERE record = "37-13-4" AND game < 54 | What is the earliest February date with a record of 37-13-4 in a game earlier than 54? | CREATE TABLE table_name_52 (february INTEGER, record VARCHAR, game VARCHAR) |
SELECT frequency FROM table_name_35 WHERE location = "davao" | Which frequency is located in Davao? | CREATE TABLE table_name_35 (frequency VARCHAR, location VARCHAR) |
SELECT rank FROM table_name_35 WHERE title = "skyfall" | What rank has skyfall as the title? | CREATE TABLE table_name_35 (rank VARCHAR, title VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.