sql stringlengths 9 2.37k | table stringclasses 9
values | query stringlengths 51 503 |
|---|---|---|
SELECT Date FROM table WHERE Team = @ detroit | CREATE TABLE INST, Here is a database schema( table schema); | What date was the team @ Detroit?.It is not neccessary to use all the tables. |
SELECT COUNT(cap_s_) FROM table_28286776_50 WHERE goal_s_ = 1 AND player = "Tommy Smith Category:Articles with hCards" | CREATE TABLE INST, Here is a database schema( table schema); | When tommy smith category:articles with hcards is the player and 1 is the goal how many cap(s) are there?It is not neccessary to use all the tables. |
SELECT Race 2 FROM table WHERE Driver = john faulkner | CREATE TABLE INST, Here is a database schema( table schema); | What is Race 2, when Driver is John Faulkner?.It is not neccessary to use all the tables. |
SELECT Legs FROM table WHERE Venue = rwe-sporthalle, mülheim AND Runner-up (average in final) = simon whitlock (99.59) | CREATE TABLE INST, Here is a database schema( table schema); | What is the legs when the venue is rwe-sporthalle, mülheim and the runner-up (average in final) is simon whitlock (99.59)?.It is not neccessary to use all the tables. |
SELECT Team_Name, School_ID FROM basketball_match | CREATE TABLE INST, Here is a database schema( table schema); | A bar chart shows the distribution of Team_Name and School_ID .It is not neccessary to use all the tables. |
SELECT Director FROM table WHERE Series # = 54 | CREATE TABLE INST, Here is a database schema( table schema); | Who are the directors of the episode in series # 54?.It is not neccessary to use all the tables. |
SELECT % FPv FROM table WHERE Party = workers' party | CREATE TABLE INST, Here is a database schema( table schema); | What is the %FPv for the Workers' Party?.It is not neccessary to use all the tables. |
SELECT 2003/ 04 FROM table WHERE 2007/ 08 = former ranking tournaments | CREATE TABLE INST, Here is a database schema( table schema); | What was held in 2003/04 when Former Ranking Tournaments was in 2007/08?.It is not neccessary to use all the tables. |
SELECT MIN Obama# FROM table WHERE Obama% = 32.12% | CREATE TABLE INST, Here is a database schema( table schema); | How many votes did Obama have at 32.12%.It is not neccessary to use all the tables. |
SELECT Usual translation FROM table WHERE Date ³ = jun 21 | CREATE TABLE INST, Here is a database schema( table schema); | WHICH Usual translation is on jun 21?.It is not neccessary to use all the tables. |
SELECT COUNT Player FROM table WHERE Points = 51 | CREATE TABLE INST, Here is a database schema( table schema); | Name the total number of player for 51 points.It is not neccessary to use all the tables. |
SELECT LAST_NAME, EMPLOYEE_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY LAST_NAME | CREATE TABLE INST, Here is a database schema( table schema); | For those employees who do not work in departments with managers that have ids between 100 and 200, return a bar chart about the distribution of last_name and employee_id , and I want to sort in ascending by the X.It is not neccessary to use all the tables. |
SELECT Result FROM table WHERE Opponent = at New England Patriots | CREATE TABLE INST, Here is a database schema( table schema); | what's the result with opponent being at new england patriots.It is not neccessary to use all the tables. |
SELECT player FROM table_name_57 WHERE wnba_team = "chicago sky" | CREATE TABLE INST, Here is a database schema( table schema); | What player was chosen for the Chicago Sky?It is not neccessary to use all the tables. |
SELECT margin_of_victory FROM table_name_16 WHERE runner_s__up = "jack nicklaus" | CREATE TABLE INST, Here is a database schema( table schema); | By how many strokes did Lema beat Jack Nicklaus?It is not neccessary to use all the tables. |
SELECT "2000/01" FROM table_22526 WHERE "2005/06" = '5.3' | CREATE TABLE INST, Here is a database schema( table schema); | When through 2005 to 2006 the duration of the academic year is 5.3 what is it through 2000 to 2001?It is not neccessary to use all the tables. |
SELECT MIN(played) FROM table_name_92 WHERE draw > 7 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest number of games played where they tied more than 7 of them?It is not neccessary to use all the tables. |
SELECT AVG Round FROM table WHERE Pick # > 5 AND Position = defensive back AND Overall < 152 | CREATE TABLE INST, Here is a database schema( table schema); | What is the average round of the defensive back player with a pick # greater than 5 and an overall less than 152?.It is not neccessary to use all the tables. |
SELECT "year" FROM table_204_357 WHERE id = 1 | CREATE TABLE INST, Here is a database schema( table schema); | what is the first year listed ?It is not neccessary to use all the tables. |
SELECT team FROM table_2522473_1 WHERE home_ground = "Stemmemyren" | CREATE TABLE INST, Here is a database schema( table schema); | Which teams homeeground is Stemmemyren?It is not neccessary to use all the tables. |
SELECT class FROM table_name_4 WHERE frequency_mhz = 93.7 | CREATE TABLE INST, Here is a database schema( table schema); | Frequency MHz of 93.7 has what class?It is not neccessary to use all the tables. |
SELECT MIN 2007 FROM table WHERE 2009 = 42,014,178 AND 2008 > 61,837,716 | CREATE TABLE INST, Here is a database schema( table schema); | What is the lowest value in 2007 when 2009 is 42,014,178 and 2008 is over 61,837,716?.It is not neccessary to use all the tables. |
SELECT drawn FROM table_name_63 WHERE lost = "14" AND bonus_points = "12" | CREATE TABLE INST, Here is a database schema( table schema); | What is Drawn when Lost is 14 and when Bonus Points is 12?It is not neccessary to use all the tables. |
SELECT Population Density (/km 2 ) FROM table WHERE DS Division = Manthai West | CREATE TABLE INST, Here is a database schema( table schema); | Name the popultion density being manthai west.It is not neccessary to use all the tables. |
SELECT COUNT(year) FROM table_name_4 WHERE wins < 2 AND class = "50cc" AND points = 15 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the total number of years for wins less than 2 and class of 50cc with points of 15It is not neccessary to use all the tables. |
SELECT date FROM table_1140067_2 WHERE race = "Monaco Grand Prix" | CREATE TABLE INST, Here is a database schema( table schema); | What was the date for monaco grand prix?It is not neccessary to use all the tables. |
SELECT college FROM table_25085059_3 WHERE position = "DL" | CREATE TABLE INST, Here is a database schema( table schema); | What college did the player come from whose position is DL?It is not neccessary to use all the tables. |
SELECT T2.Location, T1.Aircraft FROM aircraft AS T1 JOIN MATCH AS T2 ON T1.Aircraft_ID = T2.Winning_Aircraft | CREATE TABLE INST, Here is a database schema( table schema); | Please list the location and the winning aircraft name.It is not neccessary to use all the tables. |
SELECT MIN(attendance) FROM table_name_5 WHERE week > 2 AND opponent = "new orleans saints" | CREATE TABLE INST, Here is a database schema( table schema); | Name the least attendance for opponent of new orleans saints and week more than 2It is not neccessary to use all the tables. |
SELECT Opponent FROM table WHERE Date = november 24, 1996 | CREATE TABLE INST, Here is a database schema( table schema); | Tell me the opponent for november 24, 1996.It is not neccessary to use all the tables. |
SELECT "Competition" FROM table_70844 WHERE "Final score" = '6:5' | CREATE TABLE INST, Here is a database schema( table schema); | what is the competition that had a final score of 6:5?It is not neccessary to use all the tables. |
SELECT "year" FROM table_204_622 WHERE "year" IN (2005, 2003) ORDER BY "notes" LIMIT 1 | CREATE TABLE INST, Here is a database schema( table schema); | which 4x400 was faster , 2005 or 2003 ?It is not neccessary to use all the tables. |
SELECT surface FROM table_name_85 WHERE partner = "hayley ericksen" | CREATE TABLE INST, Here is a database schema( table schema); | What surface did hayley ericksen play on?It is not neccessary to use all the tables. |
SELECT Population FROM table WHERE Median family income = $38,044 | CREATE TABLE INST, Here is a database schema( table schema); | What Population has a Median family income of $38,044?.It is not neccessary to use all the tables. |
SELECT COUNT(universities) FROM table_29538735_1 WHERE _percentage_electricity_reduction = "10%" | CREATE TABLE INST, Here is a database schema( table schema); | When 10% is the percentage of electricity reduction how many sets of universities are there?It is not neccessary to use all the tables. |
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" | CREATE TABLE INST, Here is a database schema( table schema); | How many credit cards does customer Blanche Huels have?It is not neccessary to use all the tables. |
SELECT AVG(gold) FROM table_name_60 WHERE "total" > 3 AND rank = "total" AND silver > 8 | CREATE TABLE INST, Here is a database schema( table schema); | Which Gold has a Total larger than 3 a Rank of total and a Silver larger than 8?It is not neccessary to use all the tables. |
SELECT Nationality FROM table WHERE Ship = aracataca | CREATE TABLE INST, Here is a database schema( table schema); | What is the Nationality of the Aracataca Ship?.It is not neccessary to use all the tables. |
SELECT track_ & _field FROM table_16423070_4 WHERE swimming = "Lexington" AND volleyball = "Madison" | CREATE TABLE INST, Here is a database schema( table schema); | which country won swimming track & field when lexington won swimming and madison won volleyballIt is not neccessary to use all the tables. |
SELECT To par FROM table WHERE Country = australia AND Score = 73-69-71=213 | CREATE TABLE INST, Here is a database schema( table schema); | What is the to par for Australia and a 73-69-71=213 score?.It is not neccessary to use all the tables. |
SELECT High assists FROM table WHERE High points = Chauncey Billups , Carmelo Anthony (18) | CREATE TABLE INST, Here is a database schema( table schema); | Name the high assists for chauncey billups , carmelo anthony (18).It is not neccessary to use all the tables. |
SELECT points FROM table_name_38 WHERE goals = "28" AND games = "47" | CREATE TABLE INST, Here is a database schema( table schema); | What are the points in the season with 47 games and 28 goals?It is not neccessary to use all the tables. |
SELECT position FROM table_10812403_4 WHERE player = "Calvin McCarty" | CREATE TABLE INST, Here is a database schema( table schema); | What position did Calvin Mccarty play?It is not neccessary to use all the tables. |
SELECT "Miles (km)" FROM table_24849 WHERE "Average Speed (mph)" = '136.117' | CREATE TABLE INST, Here is a database schema( table schema); | What was the miles (km) for the race that had an average speed of 136.117 MPH?It is not neccessary to use all the tables. |
SELECT March FROM table WHERE November = cara wakelin | CREATE TABLE INST, Here is a database schema( table schema); | Who is the March playmate with a November playmate Cara Wakelin?.It is not neccessary to use all the tables. |
SELECT place FROM table_name_84 WHERE player = "mark brooks" | CREATE TABLE INST, Here is a database schema( table schema); | What place did player mark brooks take?It is not neccessary to use all the tables. |
SELECT venue FROM table_name_72 WHERE date = "2003-08-13" | CREATE TABLE INST, Here is a database schema( table schema); | What is Venue when Date is "2003-08-13"?It is not neccessary to use all the tables. |
SELECT margin_of_victory FROM table_name_61 WHERE runner_s__up = "steve rintoul" | CREATE TABLE INST, Here is a database schema( table schema); | What was the margin of victory over Steve Rintoul?It is not neccessary to use all the tables. |
SELECT Title FROM table WHERE Series = mm AND Director = i. freleng AND reissue? = no AND Release date = 1953-01-31 | CREATE TABLE INST, Here is a database schema( table schema); | What's the title for the release date of 1953-01-31 in the MM series, no reissue, and a director of I. Freleng?.It is not neccessary to use all the tables. |
SELECT record FROM table_name_54 WHERE week < 5 AND game_site = "bye" | CREATE TABLE INST, Here is a database schema( table schema); | What is the record of the game before week 5 and a bye game site?It is not neccessary to use all the tables. |
SELECT date FROM table_name_55 WHERE score = "6–3, 3–6, 6–0" | CREATE TABLE INST, Here is a database schema( table schema); | What date was the score 6–3 3–6 6–0?It is not neccessary to use all the tables. |
SELECT name FROM table_name_54 WHERE position = "g" AND weight__lbs_ = 190 | CREATE TABLE INST, Here is a database schema( table schema); | What is the Name when the position is g and weight is 190 pounds?It is not neccessary to use all the tables. |
SELECT "Freedom in the World 2013" FROM table_1415 WHERE "Country" = 'Guinea' | CREATE TABLE INST, Here is a database schema( table schema); | How much freedom can did the people of Guinea experience in 2013?It is not neccessary to use all the tables. |
SELECT Tickets Sold / Available FROM table WHERE City = barcelona | CREATE TABLE INST, Here is a database schema( table schema); | How many tickets were there sold/available in Barcelona?.It is not neccessary to use all the tables. |
SELECT Status FROM table WHERE # = K-223 | CREATE TABLE INST, Here is a database schema( table schema); | What is the status of vessel number K-223?.It is not neccessary to use all the tables. |
SELECT league_apps FROM table_name_61 WHERE fa_cup_apps = "1" AND flt_apps = "0 (1)" | CREATE TABLE INST, Here is a database schema( table schema); | How many leage apperances for the player with one FA cup and a FLT Apps of 0 (1)?It is not neccessary to use all the tables. |
SELECT venue FROM table_name_73 WHERE result = "3-0" | CREATE TABLE INST, Here is a database schema( table schema); | What venue has a Result of 3-0?It is not neccessary to use all the tables. |
SELECT First broadcast FROM table WHERE Episode = 4x03 | CREATE TABLE INST, Here is a database schema( table schema); | What was the first broadcast date of episode 4x03?.It is not neccessary to use all the tables. |
SELECT MAX Crowd FROM table WHERE Home team = collingwood | CREATE TABLE INST, Here is a database schema( table schema); | What was the top crowd when collingwood played home?.It is not neccessary to use all the tables. |
SELECT designer FROM table_name_53 WHERE restaurant_name = "cork & cabbage" | CREATE TABLE INST, Here is a database schema( table schema); | What designer has a restaurant named of Cork & Cabbage?It is not neccessary to use all the tables. |
SELECT Title FROM table WHERE No. in season = 16 | CREATE TABLE INST, Here is a database schema( table schema); | What is the title of the episode no. 16 by season?.It is not neccessary to use all the tables. |
SELECT T2.organisation_details, T1.organisation_id FROM Grants AS T1 JOIN Organisations AS T2 ON T1.organisation_id = T2.organisation_id GROUP BY T2.organisation_details ORDER BY T1.organisation_id DESC | CREATE TABLE INST, Here is a database schema( table schema); | What are the ids and details for all organizations that have grants of more than 6000 dollars Show bar chart, and could you order in descending by the total number?It is not neccessary to use all the tables. |
SELECT Film name FROM table WHERE Co-singer = Vinod Rathod | CREATE TABLE INST, Here is a database schema( table schema); | what are the film names with the co-singer vinod rathod?.It is not neccessary to use all the tables. |
SELECT Kōhaku # FROM table WHERE Red Team Host = Peggy Hayama | CREATE TABLE INST, Here is a database schema( table schema); | In what number kōhaku was the red team host Peggy Hayama? .It is not neccessary to use all the tables. |
SELECT Finish FROM table WHERE Year = 1956 | CREATE TABLE INST, Here is a database schema( table schema); | What is the finish in 1956?.It is not neccessary to use all the tables. |
SELECT Title FROM table WHERE No. in season = 13 | CREATE TABLE INST, Here is a database schema( table schema); | What is the name of the episode where the season number is 13?.It is not neccessary to use all the tables. |
SELECT State/country FROM table WHERE Elapsed time d:hh:mm:ss = 3:04:06:38 | CREATE TABLE INST, Here is a database schema( table schema); | What state/country was the yacht that had an elapsed time of 3:04:06:38 from?.It is not neccessary to use all the tables. |
SELECT Chassis FROM table WHERE Driver = roy salvadori | CREATE TABLE INST, Here is a database schema( table schema); | What chassis was used by roy salvadori?.It is not neccessary to use all the tables. |
SELECT COUNT Game FROM table WHERE Opponent = montreal canadiens | CREATE TABLE INST, Here is a database schema( table schema); | What is the fame number when the Montreal Canadiens were the opponent?.It is not neccessary to use all the tables. |
SELECT MAX Attendance FROM table WHERE Week = 12 | CREATE TABLE INST, Here is a database schema( table schema); | What was the highest attendance week 12?.It is not neccessary to use all the tables. |
SELECT score FROM table_name_81 WHERE opponent = "@ san antonio" AND date = "june 20" | CREATE TABLE INST, Here is a database schema( table schema); | What is the Score of the game @ San Antonio on June 20?It is not neccessary to use all the tables. |
SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE admissions.hadm_id IN (SELECT microbiologyevents.hadm_id FROM microbiologyevents WHERE microbiologyevents.spec_type_desc = 'skin scrapings' AND DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year'... | CREATE TABLE INST, Here is a database schema( table schema); | how many patients the previous year have had a skin scrapings test?It is not neccessary to use all the tables. |
SELECT AVG(laps) FROM table_name_42 WHERE time = "+50.653" | CREATE TABLE INST, Here is a database schema( table schema); | What is the average laps for the +50.653 time?It is not neccessary to use all the tables. |
SELECT position FROM table_23619005_3 WHERE player = "Michael Shaver" | CREATE TABLE INST, Here is a database schema( table schema); | What was Michael Shaver's position?It is not neccessary to use all the tables. |
SELECT party FROM table_1341522_38 WHERE opponent = "Marcy Kaptur (D) 75.3% Randy Whitman (R) 24.7%" | CREATE TABLE INST, Here is a database schema( table schema); | what's the party with opponent being marcy kaptur (d) 75.3% randy whitman (r) 24.7%It is not neccessary to use all the tables. |
SELECT SUM(against) FROM table_name_8 WHERE losses = 5 AND draws < 0 | CREATE TABLE INST, Here is a database schema( table schema); | What is the sum of Against values for teams with 5 losses and 0 draws?It is not neccessary to use all the tables. |
SELECT Location FROM table WHERE Power (kW) = 10kw AND Branding = mom's radio 95.9 naga | CREATE TABLE INST, Here is a database schema( table schema); | What's the location of Mom's Radio 95.9 Naga having a power of 10kw?.It is not neccessary to use all the tables. |
SELECT district FROM table_name_45 WHERE reserved_for___sc___st__none_ = "total:" | CREATE TABLE INST, Here is a database schema( table schema); | What district shows reserved for (SC / ST /None) of total:?It is not neccessary to use all the tables. |
SELECT Laps FROM table WHERE Points = lead changes: 13 between 8 drivers | CREATE TABLE INST, Here is a database schema( table schema); | Which Laps has a Points of lead changes: 13 between 8 drivers?.It is not neccessary to use all the tables. |
SELECT MIN(lost) FROM table_21991074_3 | CREATE TABLE INST, Here is a database schema( table schema); | Name the least lostIt is not neccessary to use all the tables. |
SELECT placing FROM table_24915874_1 WHERE weight__kg_ = "58.0" | CREATE TABLE INST, Here is a database schema( table schema); | What was the placing when the weight in kg was 58.0?It is not neccessary to use all the tables. |
SELECT catalog_number FROM table_11222744_3 WHERE title = "Callanetics: 10 years Younger In 10 Hours" | CREATE TABLE INST, Here is a database schema( table schema); | What is the catalog number named callanetics: 10 years younger in 10 hoursIt is not neccessary to use all the tables. |
SELECT to_par FROM table_name_28 WHERE total > 283 AND finish = "t12" | CREATE TABLE INST, Here is a database schema( table schema); | Which To par has a Total larger than 283 and a Finish of t12?It is not neccessary to use all the tables. |
SELECT date FROM table_name_76 WHERE results¹ = "1:2" | CREATE TABLE INST, Here is a database schema( table schema); | On what Date was the Results¹ 1:2?It is not neccessary to use all the tables. |
SELECT COUNT Peak FROM table WHERE Chinese title = 潮爆大狀 | CREATE TABLE INST, Here is a database schema( table schema); | How many are listed under 潮爆大狀.It is not neccessary to use all the tables. |
SELECT SUM(total__000s_) FROM table_name_20 WHERE year = "1996" | CREATE TABLE INST, Here is a database schema( table schema); | What is the amount of 000s from 1996?It is not neccessary to use all the tables. |
SELECT University students and Adults (18yrs+) FROM table WHERE Senior High School (15–18 yrs) = 26mm | CREATE TABLE INST, Here is a database schema( table schema); | What amount of the university students and adults ehre the the senior high school is 26mm?.It is not neccessary to use all the tables. |
SELECT Date FROM table WHERE Away team = south melbourne | CREATE TABLE INST, Here is a database schema( table schema); | On what date was South Melbourne the away team?.It is not neccessary to use all the tables. |
SELECT Week # FROM table WHERE Order # = 7 AND Song choice = " let it be " | CREATE TABLE INST, Here is a database schema( table schema); | What Week # that is there an Order # of 7, and the Song choice was " let it be "?.It is not neccessary to use all the tables. |
SELECT COUNT(points) AS won FROM table_26218783_7 WHERE points = 6675 | CREATE TABLE INST, Here is a database schema( table schema); | how many time was points 6675?It is not neccessary to use all the tables. |
SELECT Founder, SUM(Manufacturer) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder ORDER BY Founder | CREATE TABLE INST, Here is a database schema( table schema); | For those records from the products and each product's manufacturer, a bar chart shows the distribution of founder and the sum of manufacturer , and group by attribute founder, and I want to display by the names from low to high.It is not neccessary to use all the tables. |
SELECT 2010 FROM table WHERE 2009 = 1 | CREATE TABLE INST, Here is a database schema( table schema); | What is 2010, when 2009 is "1"?.It is not neccessary to use all the tables. |
SELECT College/Junior/Club Team (League) FROM table WHERE Round > 4 AND Position = lw AND Player = mark miller | CREATE TABLE INST, Here is a database schema( table schema); | What is the college/junior/club team (league) of lw position player mark miller, from a round greater than 4?.It is not neccessary to use all the tables. |
SELECT location FROM table_16275828_4 WHERE track_name = "Farmer City Speedway" | CREATE TABLE INST, Here is a database schema( table schema); | What location is farmer city speedway?It is not neccessary to use all the tables. |
SELECT No. FROM table WHERE Date = October 21, 2007 | CREATE TABLE INST, Here is a database schema( table schema); | On the date October 21, 2007, what is the No.?.It is not neccessary to use all the tables. |
SELECT Home Ground FROM table WHERE Founded < 1946 AND Coach = nick pantsaras | CREATE TABLE INST, Here is a database schema( table schema); | Where is the home ground for the club coached by nick pantsaras and founded before 1946?.It is not neccessary to use all the tables. |
SELECT Number Range FROM table WHERE Builder = gloucester rcw AND Introduced = 1937 | CREATE TABLE INST, Here is a database schema( table schema); | What is the number range for the Gloucester RCW builder introduced in 1937?.It is not neccessary to use all the tables. |
SELECT MAX(attendance) FROM table_name_89 WHERE date = "may 7" | CREATE TABLE INST, Here is a database schema( table schema); | What's greatest attendance on May 7?It is not neccessary to use all the tables. |
SELECT Winner FROM table WHERE Stage = 18 | CREATE TABLE INST, Here is a database schema( table schema); | Who won stage 18?.It is not neccessary to use all the tables. |
SELECT COUNT(pl_gp) FROM table_name_79 WHERE reg_gp > 3 | CREATE TABLE INST, Here is a database schema( table schema); | What is the total PI GP that a Reg GP has larger than 3?It is not neccessary to use all the tables. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.