answer stringlengths 18 557 | question stringlengths 12 244 | context stringlengths 27 489 |
|---|---|---|
SELECT nationality FROM table_15621965_16 WHERE school_club_team = "Clemson" | What is the nationality of th player who's school is Clemson? | CREATE TABLE table_15621965_16 (nationality VARCHAR, school_club_team VARCHAR) |
SELECT T1.balance + T2.balance FROM checking AS T1 JOIN savings AS T2 ON T1.custid = T2.custid ORDER BY T1.balance + T2.balance | Find the total checking and saving balance of all accounts sorted by the total balance in ascending order. | CREATE TABLE checking (balance VARCHAR, custid VARCHAR); CREATE TABLE savings (balance VARCHAR, custid VARCHAR) |
SELECT COUNT(season) FROM table_11236195_5 WHERE winningteam = "Canterbury Bulldogs (8)" | How many seasons did the canterbury bulldogs (8) win? | CREATE TABLE table_11236195_5 (season VARCHAR, winningteam VARCHAR) |
SELECT COUNT(voter_registration) FROM table_name_78 WHERE byut = 48.2 | What is the voter registration that has a BYut of 48.2? | CREATE TABLE table_name_78 (voter_registration VARCHAR, byut VARCHAR) |
SELECT prefix FROM table_name_73 WHERE chemical_class = "iodoalkane" | What prefix has chemical class Iodoalkane? | CREATE TABLE table_name_73 (prefix VARCHAR, chemical_class VARCHAR) |
SELECT accession_number FROM table_name_5 WHERE common_name = "purple sea urchin" | What is the accession number of the protein with the common name Purple Sea Urchin? | CREATE TABLE table_name_5 (accession_number VARCHAR, common_name VARCHAR) |
SELECT case_length FROM table_name_90 WHERE rim_diameter = "13.20 (.518)" | Which Case length has a Rim diameter of 13.20 (.518)? | CREATE TABLE table_name_90 (case_length VARCHAR, rim_diameter VARCHAR) |
SELECT MAX(crowd) FROM table_name_48 WHERE venue = "western oval" | What was the highest crowd size at the Western Oval? | CREATE TABLE table_name_48 (crowd INTEGER, venue VARCHAR) |
SELECT original_air_date FROM table_17623902_1 WHERE written_by = "Debbie Sarjeant" | What was the original air date of this episode that was written by Debbie Sarjeant? | CREATE TABLE table_17623902_1 (original_air_date VARCHAR, written_by VARCHAR) |
SELECT COUNT(total) FROM table_name_71 WHERE silver < 2 AND nation = "ukraine" AND gold < 3 | How many Totals have a Silver smaller than 2, and a Nation of ukraine, and a Gold smaller than 3? | CREATE TABLE table_name_71 (total VARCHAR, gold VARCHAR, silver VARCHAR, nation VARCHAR) |
SELECT fleet_number FROM table_name_95 WHERE model = "gillig phantom 3096tb" | What is the fleet number for the model of Gillig Phantom 3096TB? | CREATE TABLE table_name_95 (fleet_number VARCHAR, model VARCHAR) |
SELECT years_in_orlando FROM table_name_23 WHERE nationality = "united states" AND school_club_team = "illinois" | Which Years in Orlando has a Nationality of united states, and a School/Club Team of illinois? | CREATE TABLE table_name_23 (years_in_orlando VARCHAR, nationality VARCHAR, school_club_team VARCHAR) |
SELECT date FROM table_name_70 WHERE away_team = "melbourne" | What day was south melbourne the away squad? | CREATE TABLE table_name_70 (date VARCHAR, away_team VARCHAR) |
SELECT team FROM table_28372291_1 WHERE average_fencers_rank = "1.33" | What team had an average fencer rank of 1.33? | CREATE TABLE table_28372291_1 (team VARCHAR, average_fencers_rank VARCHAR) |
SELECT county FROM table_name_74 WHERE location = "edinburgh" | Which County has a Location of edinburgh? | CREATE TABLE table_name_74 (county VARCHAR, location VARCHAR) |
SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Creative Labs' INTERSECT SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code WHERE T2.name = 'Sony' | Find the name of product that is produced by both companies Creative Labs and Sony. | CREATE TABLE manufacturers (code VARCHAR, name VARCHAR); CREATE TABLE products (name VARCHAR, Manufacturer VARCHAR) |
SELECT opponent FROM table_name_49 WHERE attendance = "48,121" | Who was the opponent when 48,121 people attended? | CREATE TABLE table_name_49 (opponent VARCHAR, attendance VARCHAR) |
SELECT bleeding_time FROM table_238124_1 WHERE condition = "Glanzmann's thrombasthenia" | What is the bleeding time for glanzmann's thrombasthenia? | CREATE TABLE table_238124_1 (bleeding_time VARCHAR, condition VARCHAR) |
SELECT player FROM table_name_81 WHERE to_par = "+8" | Which player has a to par of +8? | CREATE TABLE table_name_81 (player VARCHAR, to_par VARCHAR) |
SELECT COUNT(result) FROM table_13259019_2 WHERE record = "8-6" | How many times during the season were the seahawks 8-6? | CREATE TABLE table_13259019_2 (result VARCHAR, record VARCHAR) |
SELECT arabic_capital_name FROM table_15694696_1 WHERE english_capital_name = "Manama" | what is the arabic capital name wher the english capital name is manama? | CREATE TABLE table_15694696_1 (arabic_capital_name VARCHAR, english_capital_name VARCHAR) |
SELECT winner FROM table_name_42 WHERE finalist = "lindsay davenport" | Who was the winner against Lindsay Davenport? | CREATE TABLE table_name_42 (winner VARCHAR, finalist VARCHAR) |
SELECT COUNT(*) FROM appointment | How many appointments are there? | CREATE TABLE appointment (Id VARCHAR) |
SELECT tonnage FROM table_name_9 WHERE builder = "ag vulcan" AND original_operator = "ndl" AND ship = "prinzess irene" | What is the Tonnage that has builder AG Vulcan, and the original operator NDL, and the ship, Prinzess Irene? | CREATE TABLE table_name_9 (tonnage VARCHAR, ship VARCHAR, builder VARCHAR, original_operator VARCHAR) |
SELECT COUNT(year) FROM table_name_56 WHERE class = "piw" AND program_title = "the adventures of..." AND score > 94.6 | What was the total number for the PIW Class' The Adventures Of... and had a score bigger than 94.6? | CREATE TABLE table_name_56 (year VARCHAR, score VARCHAR, class VARCHAR, program_title VARCHAR) |
SELECT pick FROM table_name_2 WHERE school = "penn state" | What is the pick number of Penn State? | CREATE TABLE table_name_2 (pick VARCHAR, school VARCHAR) |
SELECT format FROM table_name_78 WHERE release_date = "august 1996" | What format was released in August 1996? | CREATE TABLE table_name_78 (format VARCHAR, release_date VARCHAR) |
SELECT place FROM table_name_83 WHERE player = "tim herron" | How did Tim Herron place? | CREATE TABLE table_name_83 (place VARCHAR, player VARCHAR) |
SELECT title FROM table_14724369_1 WHERE directed_by = "Neil Affleck" | Which title did Neil Affleck direct? | CREATE TABLE table_14724369_1 (title VARCHAR, directed_by VARCHAR) |
SELECT AVG(grid) FROM table_name_14 WHERE rider = "loic napoleone" | Which Grid has a Rider of loic napoleone? | CREATE TABLE table_name_14 (grid INTEGER, rider VARCHAR) |
SELECT COUNT(length) FROM table_21326205_2 WHERE time = "14:33.9" | How many stages of the rally took 14:33.9 for the leader to finish? | CREATE TABLE table_21326205_2 (length VARCHAR, time VARCHAR) |
SELECT SUM(points) FROM table_name_15 WHERE goals_conceded < 24 AND place < 6 AND goals_scored < 26 | what is the points when the goals conceded is less than 24, place is less than 6 and goals scored is less than 26? | CREATE TABLE table_name_15 (points INTEGER, goals_scored VARCHAR, goals_conceded VARCHAR, place VARCHAR) |
SELECT date FROM table_name_38 WHERE round = 2 | What is Date, when Round is "2"? | CREATE TABLE table_name_38 (date VARCHAR, round VARCHAR) |
SELECT MIN(game) FROM table_name_99 WHERE attendance = 24 OFFSET 694 | Where was the game that the attendance was 24,694? | CREATE TABLE table_name_99 (game INTEGER, attendance VARCHAR) |
SELECT COUNT(grid) FROM table_name_34 WHERE laps > 69 | What is the grid total for cars with over 69 laps? | CREATE TABLE table_name_34 (grid VARCHAR, laps INTEGER) |
SELECT network FROM table_160728_4 WHERE station = "TV3" | What station on the network is tv3? | CREATE TABLE table_160728_4 (network VARCHAR, station VARCHAR) |
SELECT AVG(rank) FROM table_name_5 WHERE opposition = "offaly" AND total > 9 | What is the average rank of the match where offaly was the opposition and the total was greater than 9? | CREATE TABLE table_name_5 (rank INTEGER, opposition VARCHAR, total VARCHAR) |
SELECT report FROM table_name_79 WHERE date = "08 jul" AND score = "3–1" | What is the Report for 08 jul, and a Score of 3–1? | CREATE TABLE table_name_79 (report VARCHAR, date VARCHAR, score VARCHAR) |
SELECT last_appearance FROM table_25831483_1 WHERE actor_actress = "Pam Ferris" | What was the last appearance of actor/actress is pam ferris? | CREATE TABLE table_25831483_1 (last_appearance VARCHAR, actor_actress VARCHAR) |
SELECT college FROM table_10812403_4 WHERE cfl_team = "Saskatchewan Roughriders" | What college's team is the Saskatchewan Roughriders? | CREATE TABLE table_10812403_4 (college VARCHAR, cfl_team VARCHAR) |
SELECT location FROM table_2439728_1 WHERE mascot = "Dragons" | where are dragons used as mascots? | CREATE TABLE table_2439728_1 (location VARCHAR, mascot VARCHAR) |
SELECT date_of_birth FROM table_name_81 WHERE name = "pananmal punjabi" | What is the Pananmal Punjabi's date of birth? | CREATE TABLE table_name_81 (date_of_birth VARCHAR, name VARCHAR) |
SELECT COUNT(college) FROM table_2508633_11 WHERE nfl_team = "Buffalo Bills" | How many colleges have the NFL Team Buffalo Bills? | CREATE TABLE table_2508633_11 (college VARCHAR, nfl_team VARCHAR) |
SELECT SUM(places) FROM table_name_14 WHERE name = "adrian vasile" AND points < 127.74 | What is the place number for adrian vasile with less than 127.74 points? | CREATE TABLE table_name_14 (places INTEGER, name VARCHAR, points VARCHAR) |
SELECT record FROM table_name_75 WHERE "kickoff" = "kickoff" | What is the record which shows Kickoff as kickoff? | CREATE TABLE table_name_75 (record VARCHAR) |
SELECT to_par FROM table_name_24 WHERE year = 1994 | Which To par has a Year of 1994? | CREATE TABLE table_name_24 (to_par VARCHAR, year VARCHAR) |
SELECT COUNT(first_elected) FROM table_1341930_33 WHERE district = "North Carolina 2" | how many first elected with district being north carolina 2 | CREATE TABLE table_1341930_33 (first_elected VARCHAR, district VARCHAR) |
SELECT COUNT(floors) FROM table_name_58 WHERE year < 2008 AND name = "guinness tower" | What is the number of floors that have years under 2008 and were named Guinness Tower? | CREATE TABLE table_name_58 (floors VARCHAR, year VARCHAR, name VARCHAR) |
SELECT Governor FROM party GROUP BY Governor ORDER BY COUNT(*) DESC LIMIT 1 | Show the people that have been governor the most times. | CREATE TABLE party (Governor VARCHAR) |
SELECT winning_driver FROM table_name_13 WHERE circuit = "rio de janeiro" | Which Driver won the Circuit of Rio de Janeiro? | CREATE TABLE table_name_13 (winning_driver VARCHAR, circuit VARCHAR) |
SELECT spokesperson FROM table_name_33 WHERE year_s_ > 2012 | Who is the spokesperson after 2012? | CREATE TABLE table_name_33 (spokesperson VARCHAR, year_s_ INTEGER) |
SELECT country FROM table_name_5 WHERE score = 69 - 67 = 136 | Which country had a score of 69-67=136? | CREATE TABLE table_name_5 (country VARCHAR, score VARCHAR) |
SELECT AVG(draw) FROM table_name_99 WHERE language = "swedish" AND points < 10 | What is the average Draw for the artist(s), whose language is Swedish, and scored less than 10 points? | CREATE TABLE table_name_99 (draw INTEGER, language VARCHAR, points VARCHAR) |
SELECT COUNT(no_in_series) FROM table_23492454_1 WHERE no_in_season = 18 | How many episodes in the series are also episode 18 in the season? | CREATE TABLE table_23492454_1 (no_in_series VARCHAR, no_in_season VARCHAR) |
SELECT AVG(money___) AS $__ FROM table_name_97 WHERE score = 68 - 69 - 68 - 72 = 277 | What was the average money when the score was 68-69-68-72=277? | CREATE TABLE table_name_97 (money___ INTEGER, score VARCHAR) |
SELECT score FROM table_name_72 WHERE home = "colorado" AND date = "may 11" | What is the Score with a Home of colorado, and a Date with may 11? | CREATE TABLE table_name_72 (score VARCHAR, home VARCHAR, date VARCHAR) |
SELECT original_air_date FROM table_11630008_3 WHERE series_no = 21 | What was the airdate of 21 series number? | CREATE TABLE table_11630008_3 (original_air_date VARCHAR, series_no VARCHAR) |
SELECT time FROM table_name_40 WHERE name = "sara nordenstam" | What time did Sara Nordenstam get? | CREATE TABLE table_name_40 (time VARCHAR, name VARCHAR) |
SELECT player FROM table_1506950_9 WHERE pga_ch = "T6" AND masters = "T4" AND us_open = "T8" | Which player's results were T6 in the PGA Ch., T4 in the Masters and T8 at the U.S. Open? | CREATE TABLE table_1506950_9 (player VARCHAR, us_open VARCHAR, pga_ch VARCHAR, masters VARCHAR) |
SELECT home_team FROM table_name_80 WHERE away_team = "blackpool" | What home team has blackpool as the away team? | CREATE TABLE table_name_80 (home_team VARCHAR, away_team VARCHAR) |
SELECT tourney_name FROM matches GROUP BY tourney_name HAVING COUNT(*) > 10 | Find the name of tourney that has more than 10 matches. | CREATE TABLE matches (tourney_name VARCHAR) |
SELECT AVG(year) FROM table_name_88 WHERE bronze = "valentin novikov" | WHAT YEAR HAS A BRONZE OF VALENTIN NOVIKOV? | CREATE TABLE table_name_88 (year INTEGER, bronze VARCHAR) |
SELECT Country, COUNT(*) FROM TV_Channel GROUP BY Country ORDER BY COUNT(*) DESC LIMIT 1 | Which country has the most of TV Channels? List the country and number of TV Channels it has. | CREATE TABLE TV_Channel (Country VARCHAR) |
SELECT MIN(week) FROM table_name_47 WHERE attendance = "bye" | When did the Chiefs have their first bye? | CREATE TABLE table_name_47 (week INTEGER, attendance VARCHAR) |
SELECT year FROM table_name_20 WHERE weight < 230 AND home_town = "san antonio, texas" | What is the Year of the Player with a Weight of 230 or less from San Antonio, Texas? | CREATE TABLE table_name_20 (year VARCHAR, weight VARCHAR, home_town VARCHAR) |
SELECT fastest_lap FROM table_name_71 WHERE race = "german grand prix" | Who had the fastest lap for the German Grand Prix? | CREATE TABLE table_name_71 (fastest_lap VARCHAR, race VARCHAR) |
SELECT runner_s__up FROM table_name_52 WHERE year = "1956" | What are the Runner(s)-up of the 1956 Championship? | CREATE TABLE table_name_52 (runner_s__up VARCHAR, year VARCHAR) |
SELECT SUM(year) FROM table_name_24 WHERE bsu_head_coach = "bus conner" | What is the sum of the years with bus conner as the BSU head coach? | CREATE TABLE table_name_24 (year INTEGER, bsu_head_coach VARCHAR) |
SELECT MIN(silver) FROM table_name_7 WHERE gold = 1 AND nation = "lithuania" | What is the smallest silver with a Gold of 1, and a Nation of lithuania? | CREATE TABLE table_name_7 (silver INTEGER, gold VARCHAR, nation VARCHAR) |
SELECT dept_name, budget FROM department WHERE budget > (SELECT AVG(budget) FROM department) | Find the name and budget of departments whose budgets are more than the average budget. | CREATE TABLE department (dept_name VARCHAR, budget INTEGER) |
SELECT verb FROM table_name_86 WHERE proto_austronesian = "*diri" | What is the verb for the Proto-Austronesian word *diri? | CREATE TABLE table_name_86 (verb VARCHAR, proto_austronesian VARCHAR) |
SELECT MIN(appearance) FROM table_name_32 WHERE goals > 0 | what is the lowest appearance when goals is more than 0? | CREATE TABLE table_name_32 (appearance INTEGER, goals INTEGER) |
SELECT time FROM table_name_15 WHERE show_name = "mornings with neil mitchell" | What Time has a Show Name of mornings with neil mitchell? | CREATE TABLE table_name_15 (time VARCHAR, show_name VARCHAR) |
SELECT opponent FROM table_name_61 WHERE score = "6–3, 6–4" | Who was the Opponent in the match with a Score of 6–3, 6–4? | CREATE TABLE table_name_61 (opponent VARCHAR, score VARCHAR) |
SELECT result FROM table_name_83 WHERE year < 2005 | What was the result for years prior to 2005? | CREATE TABLE table_name_83 (result VARCHAR, year INTEGER) |
SELECT tournament FROM table_name_5 WHERE 2006 = "0-0" | What tournament in 2006 had a score of 0-0? | CREATE TABLE table_name_5 (tournament VARCHAR) |
SELECT MIN(laps) FROM table_name_85 WHERE team = "dale coyne racing" AND time_retired = "mechanical" AND points < 5 | What is the fewest number of laps for a Dale Coyne Racing team with a mechanical time/retired and fewer than 5 points? | CREATE TABLE table_name_85 (laps INTEGER, points VARCHAR, team VARCHAR, time_retired VARCHAR) |
SELECT winning_boat FROM table_24673710_1 WHERE entries = 61 | When 61 is the entries what is the winning boat? | CREATE TABLE table_24673710_1 (winning_boat VARCHAR, entries VARCHAR) |
SELECT partner FROM table_name_7 WHERE opponents_in_the_final = "flavio cipolla simone vagnozzi" | Who was the Partner for Flavio Cipolla Simone Vagnozzi Opponents in the final? | CREATE TABLE table_name_7 (partner VARCHAR, opponents_in_the_final VARCHAR) |
SELECT MAX(seats) FROM table_name_62 WHERE share_of_votes = "18%" AND share_of_seats = "3%" AND general_election > 1992 | Which Seats have a Share of votes of 18%, and a Share of seats of 3%, and a General election larger than 1992? | CREATE TABLE table_name_62 (seats INTEGER, general_election VARCHAR, share_of_votes VARCHAR, share_of_seats VARCHAR) |
SELECT overall FROM table_name_5 WHERE pick = 17 | What is the Overall number for pick 17? | CREATE TABLE table_name_5 (overall VARCHAR, pick VARCHAR) |
SELECT MIN(top_10) FROM table_26609690_1 | What is the smallest top 10 figure? | CREATE TABLE table_26609690_1 (top_10 INTEGER) |
SELECT label FROM table_name_33 WHERE format = "double cd" | What is Label, when Format is Double CD? | CREATE TABLE table_name_33 (label VARCHAR, format VARCHAR) |
SELECT date FROM table_name_30 WHERE record = "3-4" | Which Date has a Record of 3-4? | CREATE TABLE table_name_30 (date VARCHAR, record VARCHAR) |
SELECT score FROM table_name_20 WHERE player = "deane beman" | What is Score, when Player is "Deane Beman"? | CREATE TABLE table_name_20 (score VARCHAR, player VARCHAR) |
SELECT team FROM table_name_28 WHERE manager = "david o'leary" | Which team does David O'leary manage? | CREATE TABLE table_name_28 (team VARCHAR, manager VARCHAR) |
SELECT COUNT(patient_portrayer) FROM table_26561506_1 WHERE _number = 4 | How many episodes are numbered 4 in the season? | CREATE TABLE table_26561506_1 (patient_portrayer VARCHAR, _number VARCHAR) |
SELECT MIN(overall) FROM table_10360823_1 WHERE college = "Youngstown State" | Which overall pick number went to college at Youngstown State? | CREATE TABLE table_10360823_1 (overall INTEGER, college VARCHAR) |
SELECT COUNT(order__number) FROM table_21501565_1 WHERE original_artist = "Bette Midler" | With an original artist names Bette Midler, what is the order number? | CREATE TABLE table_21501565_1 (order__number VARCHAR, original_artist VARCHAR) |
SELECT 2000 FROM table_name_66 WHERE 2001 = "a" AND 2010 = "3r" | What is the 2000 figure when 2010 is 3R and 2001 is A? | CREATE TABLE table_name_66 (Id VARCHAR) |
SELECT AVG(bronze) FROM table_name_28 WHERE nation = "argentina" AND silver < 0 | Which Bronze has a Nation of argentina, and a Silver smaller than 0? | CREATE TABLE table_name_28 (bronze INTEGER, nation VARCHAR, silver VARCHAR) |
SELECT capital FROM table_name_53 WHERE area__km²_ = 2166086 | What capital has an area of 2166086? | CREATE TABLE table_name_53 (capital VARCHAR, area__km²_ VARCHAR) |
SELECT price FROM table_name_20 WHERE downstream = "150 mbps" | What is the price of 150 mbps downstread? | CREATE TABLE table_name_20 (price VARCHAR, downstream VARCHAR) |
SELECT SUM(points) FROM table_name_79 WHERE year = 1991 | Name the sum of points for 1991 | CREATE TABLE table_name_79 (points INTEGER, year VARCHAR) |
SELECT COUNT(attendance) FROM table_name_83 WHERE record = "25-24" | For record 25-24, what is the sum of attendance? | CREATE TABLE table_name_83 (attendance VARCHAR, record VARCHAR) |
SELECT COUNT(party) FROM table_19753079_36 WHERE district = "North Carolina 7" | Name the total party for north carolina 7 | CREATE TABLE table_19753079_36 (party VARCHAR, district VARCHAR) |
SELECT res FROM table_name_7 WHERE time = "2:20" | What is the result for the event that lasted 2:20? | CREATE TABLE table_name_7 (res VARCHAR, time VARCHAR) |
SELECT COUNT(population__2011_) FROM table_2562572_22 WHERE settlement = "Kolut" | Name the population for kolut | CREATE TABLE table_2562572_22 (population__2011_ VARCHAR, settlement VARCHAR) |
SELECT density___km²_ FROM table_name_34 WHERE hanzi = "昌黎县" | What is the density of 昌黎县? | CREATE TABLE table_name_34 (density___km²_ VARCHAR, hanzi VARCHAR) |
SELECT prize FROM table_name_10 WHERE event = "ept deauville" | What is the Prize, when the Event is Ept Deauville? | CREATE TABLE table_name_10 (prize VARCHAR, event VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.