sql
stringlengths
9
2.37k
table
stringclasses
9 values
query
stringlengths
51
503
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.age < "64"
CREATE TABLE INST, Here is a database schema( table schema);
Give the number of patients who died and were aged below 64 years.It is not neccessary to use all the tables.
SELECT bbc_two_rank FROM table_name_2 WHERE bbc_one_rank = "1st" AND bbc_one_total_viewing = "9,840,000"
CREATE TABLE INST, Here is a database schema( table schema);
What is the BBC 2 rank when BBC 1 is 1st rank and the total viewing is 9840000?It is not neccessary to use all the tables.
SELECT 3 AS rd_place FROM table_name_99 WHERE "venue" = "venue"
CREATE TABLE INST, Here is a database schema( table schema);
Who came in 3rd at Venue?It is not neccessary to use all the tables.
SELECT MAX Losses FROM table WHERE Draws > 0
CREATE TABLE INST, Here is a database schema( table schema);
How many Losses have Draws larger than 0?.It is not neccessary to use all the tables.
SELECT To par FROM table WHERE Score = 70-70=140
CREATE TABLE INST, Here is a database schema( table schema);
What was the to par of the player of who scored 70-70=140?.It is not neccessary to use all the tables.
SELECT BBC Three weekly ranking FROM table WHERE Cable rank = 6
CREATE TABLE INST, Here is a database schema( table schema);
List the number of bbc rankings with cable rankings of 6..It is not neccessary to use all the tables.
SELECT Venue FROM table WHERE Away team score = 14.15 (99)
CREATE TABLE INST, Here is a database schema( table schema);
What venue has a score of 14.15 (99) for away teams?.It is not neccessary to use all the tables.
SELECT length__ft_ FROM table_2665085_1 WHERE park = "Kemah Boardwalk"
CREATE TABLE INST, Here is a database schema( table schema);
How long is the rollar coaster on Kemah BoardwalkIt is not neccessary to use all the tables.
SELECT team FROM table_17327458_1 WHERE date_of_appointment = "12 June"
CREATE TABLE INST, Here is a database schema( table schema);
What team appointed a manager on 12 June?It is not neccessary to use all the tables.
SELECT Points FROM table WHERE Podiums = 0 AND Position = 10th
CREATE TABLE INST, Here is a database schema( table schema);
How many points were scored when the podiums is 0 and position is 10th?.It is not neccessary to use all the tables.
SELECT "Country Name" FROM table_33436 WHERE "1966-70" = '-100' AND "1991-95" = '-7.36%'
CREATE TABLE INST, Here is a database schema( table schema);
What country had a 1966-70 rate of -100 and a 1991-95 rate of -7.36%?It is not neccessary to use all the tables.
SELECT T2.account_name, T1.account_id, COUNT(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_id
CREATE TABLE INST, Here is a database schema( table schema);
Show the account name id and the number of transactions for each account.It is not neccessary to use all the tables.
SELECT Away team FROM table WHERE Attendance = 81
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team at the game attended by 81?.It is not neccessary to use all the tables.
SELECT 1998 FROM table_name_86 WHERE 1994 = "grand slam tournaments"
CREATE TABLE INST, Here is a database schema( table schema);
What is 1998 when 1994 is Grand Slam Tournaments?It is not neccessary to use all the tables.
SELECT DISTINCT LOCATION FROM track
CREATE TABLE INST, Here is a database schema( table schema);
What are distinct locations where tracks are located?It is not neccessary to use all the tables.
SELECT name FROM table_name_95 WHERE dcsf_number > 2448 AND ofsted_number = 131319
CREATE TABLE INST, Here is a database schema( table schema);
What name that has a DCSF number bigger than 2448 and an Ofsted number of 131319?It is not neccessary to use all the tables.
SELECT T1.Name FROM GENRE AS T1 JOIN TRACK AS T2 ON T1.GenreId = T2.GenreId GROUP BY T2.GenreId ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the most common genre in all tracks?It is not neccessary to use all the tables.
SELECT COUNT(results) FROM table_1805191_34 WHERE incumbent = "Mike McIntyre"
CREATE TABLE INST, Here is a database schema( table schema);
How many times was Mike McIntyre elected?It is not neccessary to use all the tables.
SELECT Connection FROM table WHERE Web client accelerator = proxyconn web accelerator
CREATE TABLE INST, Here is a database schema( table schema);
What is the connection for the proxyconn web accelerator web client accelerator?.It is not neccessary to use all the tables.
SELECT college FROM table_14655985_1 WHERE position = "Placekicker"
CREATE TABLE INST, Here is a database schema( table schema);
what's the college with position being placekickerIt is not neccessary to use all the tables.
SELECT Constructor FROM table WHERE Circuit = oulton park
CREATE TABLE INST, Here is a database schema( table schema);
Who is the constructor whose circuit was Oulton Park?.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Game = game 4
CREATE TABLE INST, Here is a database schema( table schema);
What is the date for game 4?.It is not neccessary to use all the tables.
SELECT MIN Total FROM table WHERE FA Cup > 10 AND Name = arthur chandler AND League Cup > 0
CREATE TABLE INST, Here is a database schema( table schema);
What's the lowest Total thats got an FA Cup larger than 10, Name of Arthur Chandler, and a League Cup thats larger than 0?.It is not neccessary to use all the tables.
SELECT Original air date FROM table WHERE Title = "downtown girl"
CREATE TABLE INST, Here is a database schema( table schema);
For the "Downtown Girl" episode, what was the original air date?.It is not neccessary to use all the tables.
SELECT Player FROM table WHERE College = arizona state
CREATE TABLE INST, Here is a database schema( table schema);
who is the player from arizona state?.It is not neccessary to use all the tables.
SELECT position FROM table_name_84 WHERE mls_team = "metrostars"
CREATE TABLE INST, Here is a database schema( table schema);
What position did the MLS team metrostars pick?It is not neccessary to use all the tables.
SELECT MAX(points_1) FROM table_name_36 WHERE drawn = 5 AND goal_difference = "+58" AND lost > 4
CREATE TABLE INST, Here is a database schema( table schema);
Which Points 1 has Drawn of 5, and a Goal Difference of +58, and a Lost larger than 4?It is not neccessary to use all the tables.
SELECT mixed_doubles FROM table_20361783_1 WHERE womens_singles = "Zhou Mi"
CREATE TABLE INST, Here is a database schema( table schema);
who won mixed doubles when zhou mi won womens singlesIt is not neccessary to use all the tables.
SELECT Host Location FROM table WHERE 4th Place Team = wells motors, greeley, co
CREATE TABLE INST, Here is a database schema( table schema);
What location hosted when Wells Motors, Greeley, Co was the 4th place team?.It is not neccessary to use all the tables.
SELECT AVG Goals/Games FROM table WHERE Name = rummenigge, karl-heinz AND Goals < 162
CREATE TABLE INST, Here is a database schema( table schema);
What is the average Goals/Games for Rummenigge, Karl-Heinz, with Goals less than 162?.It is not neccessary to use all the tables.
SELECT COUNT(attendance) FROM table_name_24 WHERE home = "hawks"
CREATE TABLE INST, Here is a database schema( table schema);
What was the attendance when the Hawks played?It is not neccessary to use all the tables.
SELECT COUNT Avg/G FROM table WHERE Att-Cmp-Int = 1–1–0 AND Effic > 394
CREATE TABLE INST, Here is a database schema( table schema);
Avg/G that has a Att-Cmp-Int of 1–1–0, and an Effic larger than 394 is what total?.It is not neccessary to use all the tables.
SELECT SUM Jewish FROM table WHERE Muslim < 36,041 AND Total < 161,042 AND Year > 2006 AND Druze > 2,534
CREATE TABLE INST, Here is a database schema( table schema);
How many jewish have a muslim less than 36,041, a total less than 161,042, a year after 2006, with a druze greater than 2,534?.It is not neccessary to use all the tables.
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.admityear < "2105"
CREATE TABLE INST, Here is a database schema( table schema);
provide the number of patients whose admission type is elective and admission year is less than 2105?It is not neccessary to use all the tables.
SELECT cpu_speed FROM table_name_74 WHERE type = "new plus"
CREATE TABLE INST, Here is a database schema( table schema);
What is the CPU speed(s) of the New Plus type hardware?It is not neccessary to use all the tables.
SELECT MIN(points) FROM table_name_87 WHERE performer = "seán monaghan" AND draw < 7
CREATE TABLE INST, Here is a database schema( table schema);
Which Points have a Performer of seán monaghan and a Draw smaller than 7?It is not neccessary to use all the tables.
SELECT away_team FROM table_name_85 WHERE venue = "victoria park"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the away team at Victoria Park?It is not neccessary to use all the tables.
SELECT Opponent in the final FROM table WHERE Outcome = 1 AND Venue = london, england
CREATE TABLE INST, Here is a database schema( table schema);
Who was the Opponent in London, England with an Outcome of 1?.It is not neccessary to use all the tables.
SELECT No. 7 FROM table WHERE No. 1 = mason AND No. 9 = jackson AND No. 10 = logan AND No. 6 = owen
CREATE TABLE INST, Here is a database schema( table schema);
What name was number 7 when Mason was number 1, Owen was number 6, Jackson was number 9, and Logan was number 10?.It is not neccessary to use all the tables.
SELECT Name, COUNT(Name) FROM repair_assignment AS T1 JOIN machine AS T2 ON T1.Machine_ID = T2.Machine_ID JOIN technician AS T3 ON T1.technician_id = T3.technician_id WHERE T2.value_points > 70 GROUP BY Name ORDER BY Name
CREATE TABLE INST, Here is a database schema( table schema);
Show names of technicians who are assigned to repair machines with value point more than 70, and count them by a bar chart, could you order in asc by the bars?It is not neccessary to use all the tables.
SELECT INT YDS FROM table WHERE Team = new orleans saints AND Sacks > 0 AND Solo = 71
CREATE TABLE INST, Here is a database schema( table schema);
What is the value for INT YDS, when the Team is New Orleans Saints, and when the value for Sacks is greater than 0, and when the vale for Solo is 71?.It is not neccessary to use all the tables.
SELECT couple FROM table_26375386_18 WHERE result = "Bottom two"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the couple on the bottom two?It is not neccessary to use all the tables.
SELECT Performer(s) FROM table WHERE Composer(s) = mariah carey and walter afanasieff
CREATE TABLE INST, Here is a database schema( table schema);
Who sang the song composed by Mariah Carey and Walter Afanasieff?.It is not neccessary to use all the tables.
SELECT first_name, last_name FROM actor GROUP BY first_name, last_name ORDER BY COUNT(*) DESC LIMIT 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the most popular full name of the actors?It is not neccessary to use all the tables.
SELECT COUNT(1 AS st_leg) FROM table_17282875_2 WHERE team__number2 = "Botafogo"
CREATE TABLE INST, Here is a database schema( table schema);
What was the score on the 1st leg if the team 2 is botafogo?It is not neccessary to use all the tables.
SELECT 1st Party FROM table WHERE Election < 1880 AND 1st Member = john brocklehurst AND 2nd Member = edward christopher egerton
CREATE TABLE INST, Here is a database schema( table schema);
Which 1st party has John Brocklehurst as 1st member, Edward Christopher Egerton 2nd memeber, and election smaller than 1880?.It is not neccessary to use all the tables.
SELECT District FROM table WHERE Party = republican AND Results = re-elected
CREATE TABLE INST, Here is a database schema( table schema);
What district re-elected a Republican?.It is not neccessary to use all the tables.
SELECT "WinningTeam" FROM table_56419 WHERE "Cup Final Attendance" = '8,132'
CREATE TABLE INST, Here is a database schema( table schema);
What was the winning team with the 8,132 final attendance?It is not neccessary to use all the tables.
SELECT COUNT(pick__number) FROM table_name_30 WHERE college = "calgary"
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of picks for Calgary College?It is not neccessary to use all the tables.
SELECT MIN Rank FROM table WHERE Sets Won > 16 AND Loss < 1
CREATE TABLE INST, Here is a database schema( table schema);
What is the least rank with more than 16 sets won and less than 1 loss?.It is not neccessary to use all the tables.
SELECT Hometown FROM table WHERE College = usc
CREATE TABLE INST, Here is a database schema( table schema);
What is the hometown of the player who went to college at USC?.It is not neccessary to use all the tables.
SELECT points_won FROM table_1628607_5 WHERE year = "1992"
CREATE TABLE INST, Here is a database schema( table schema);
When the year was 1992 what were the points won?It is not neccessary to use all the tables.
SELECT Industry FROM table WHERE Revenue (billion $) = 2.1
CREATE TABLE INST, Here is a database schema( table schema);
Name the industry for revenue being 2.1.It is not neccessary to use all the tables.
SELECT Coach FROM table WHERE Actual adjusted record = 0–19
CREATE TABLE INST, Here is a database schema( table schema);
Who, was the coach with an actual adjusted record of 0–19?.It is not neccessary to use all the tables.
SELECT Year FROM table WHERE Qual = totals
CREATE TABLE INST, Here is a database schema( table schema);
What year had the qual of totals.It is not neccessary to use all the tables.
SELECT MIN("Pop. Dens.") FROM table_76336 WHERE "District" = 'strakonice (st)' AND "No.of Settlements" > '112'
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest population density of Strakonice (st) with more than 112 settlements?It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Attendance > 16,851 AND Away team = sheffield united
CREATE TABLE INST, Here is a database schema( table schema);
Which Score has an Attendance larger than 16,851, and an Away team of sheffield united?.It is not neccessary to use all the tables.
SELECT School FROM table WHERE Name = ivey armstrong
CREATE TABLE INST, Here is a database schema( table schema);
what is the school for Ivey armstrong?.It is not neccessary to use all the tables.
SELECT to_par FROM table_name_65 WHERE country = "canada"
CREATE TABLE INST, Here is a database schema( table schema);
What is the to par of canada?It is not neccessary to use all the tables.
SELECT T1.subject_id, T2.subject_name, COUNT(*) FROM Courses AS T1 JOIN Subjects AS T2 ON T1.subject_id = T2.subject_id GROUP BY T1.subject_id
CREATE TABLE INST, Here is a database schema( table schema);
Find the subject ID, subject name, and the corresponding number of available courses for each subject.It is not neccessary to use all the tables.
SELECT SUM Round FROM table WHERE Nationality = sweden AND Overall = 199
CREATE TABLE INST, Here is a database schema( table schema);
What is the total round with an overall of 199 with sweden?.It is not neccessary to use all the tables.
SELECT name FROM table_25794010_1 WHERE county = "Desha"
CREATE TABLE INST, Here is a database schema( table schema);
Name the name for deshaIt is not neccessary to use all the tables.
SELECT series FROM table_name_39 WHERE game > 1 AND date = "april 18"
CREATE TABLE INST, Here is a database schema( table schema);
Which Series has a Game larger than 1 and a Date of april 18?It is not neccessary to use all the tables.
SELECT COUNT Majority FROM table WHERE Winner = dan sullivan
CREATE TABLE INST, Here is a database schema( table schema);
How many in the majority when Dan Sullivan won?.It is not neccessary to use all the tables.
SELECT "Race Name" FROM table_5911 WHERE "City/Location" = 'cleveland, ohio'
CREATE TABLE INST, Here is a database schema( table schema);
What is the name of the race in Cleveland, Ohio?It is not neccessary to use all the tables.
SELECT AVG(games) FROM table_name_22 WHERE drawn > 1
CREATE TABLE INST, Here is a database schema( table schema);
What games have more than 1 draw?It is not neccessary to use all the tables.
SELECT MAX(lab.labresult) FROM lab WHERE lab.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '009-1746')) AND lab.labname = 'mcv' AND DATETIME(lab.labresulttime) <= DATETIME(CURRENT_TIME(), '-17 month') GROUP BY STRFTIME('%y-%m', lab.labresulttime)
CREATE TABLE INST, Here is a database schema( table schema);
what is patient 009-1746's monthly maximum level of mcv until 17 months ago?It is not neccessary to use all the tables.
SELECT result FROM table_name_37 WHERE date = "december 22, 1991"
CREATE TABLE INST, Here is a database schema( table schema);
What was the result of the game on December 22 1991?It is not neccessary to use all the tables.
SELECT MIN("Loses") FROM table_70247 WHERE "Minutes" > '2776'
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of losses a goalkeeper with more than 2776 minutes had?It is not neccessary to use all the tables.
SELECT surface FROM table_name_14 WHERE date = "june 13, 1983"
CREATE TABLE INST, Here is a database schema( table schema);
Which Surface had a Date of june 13 1983?It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Outcome = runner-up AND Surface = clay
CREATE TABLE INST, Here is a database schema( table schema);
What tournament did Thomaz Bellucci become runner-up on a clay surface?.It is not neccessary to use all the tables.
SELECT "Round" FROM table_38567 WHERE "Method" = 'submission (single wing choke)'
CREATE TABLE INST, Here is a database schema( table schema);
What Round has the Method of Submission (Single Wing Choke)?It is not neccessary to use all the tables.
SELECT Unit FROM table WHERE Location = mongolia
CREATE TABLE INST, Here is a database schema( table schema);
What unit is in Mongolia?.It is not neccessary to use all the tables.
SELECT Score FROM table WHERE Visitor = toronto AND Record = 29-17-8
CREATE TABLE INST, Here is a database schema( table schema);
Name the score for toronto visitor and record of 29-17-8.It is not neccessary to use all the tables.
SELECT opponent FROM table_name_8 WHERE city = "belgrade" AND results¹ = "5:2"
CREATE TABLE INST, Here is a database schema( table schema);
Who was the opponent in Belgrade and had a result of 5:2?It is not neccessary to use all the tables.
SELECT Outgoing manager FROM table WHERE Manner of departure = Mutual consent AND Position in table = 16th
CREATE TABLE INST, Here is a database schema( table schema);
Name the outgoing manager for mutual consent and position 16th.It is not neccessary to use all the tables.
SELECT AVG Points FROM table WHERE Game < 60 AND Score = 2–0 AND February > 1
CREATE TABLE INST, Here is a database schema( table schema);
Which Points have a Game smaller than 60, and a Score of 2–0, and a February larger than 1?.It is not neccessary to use all the tables.
SELECT Utah FROM table WHERE Texas = humphrey
CREATE TABLE INST, Here is a database schema( table schema);
What's the value for utah when texas is humphrey?.It is not neccessary to use all the tables.
SELECT "College" FROM table_55871 WHERE "Player" = 'reuben foster'
CREATE TABLE INST, Here is a database schema( table schema);
What is Reuben Foster's college?It is not neccessary to use all the tables.
SELECT evaluation_average__before_april_2009_ FROM table_name_41 WHERE _percentage_of_negative_evaluations = "0.8%" AND evaluation_average__from_april_2009_ = "4.2"
CREATE TABLE INST, Here is a database schema( table schema);
What is the mean Evaluation number (Before April 2009) when the percentage of negative evaluations was 0.8% and the mean Evaluation number of April 2009 was 4.2?It is not neccessary to use all the tables.
SELECT MIN(overs) FROM table_name_50 WHERE team = "royal challengers bangalore"
CREATE TABLE INST, Here is a database schema( table schema);
What is the lowest number of Overs for the Royal Challengers Bangalore?It is not neccessary to use all the tables.
SELECT COUNT 1st (m) FROM table WHERE Name = martin schmitt AND Points < 235.7
CREATE TABLE INST, Here is a database schema( table schema);
What is the total number of 1sts that Martin Schmitt had where he less than 235.7 points?.It is not neccessary to use all the tables.
SELECT COUNT(area_km_2) FROM table_name_60 WHERE census_ranking = "3,129 of 5,008" AND population < 460
CREATE TABLE INST, Here is a database schema( table schema);
What is the total area with the census ranking of 3129 of 5008 and a Population smaller than 460?It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Developer = battlecry studios
CREATE TABLE INST, Here is a database schema( table schema);
Which title was developed by Battlecry Studios?.It is not neccessary to use all the tables.
SELECT us_exclusive FROM table_24600706_1 WHERE artist_band = "Miley Cyrus"
CREATE TABLE INST, Here is a database schema( table schema);
Name the us exclusive for miley cyrusIt is not neccessary to use all the tables.
SELECT language FROM table_15887683_5 WHERE television_service = "Sky Cinema Passion" AND n° = "308"
CREATE TABLE INST, Here is a database schema( table schema);
What language is Sky Cinema Passion television service n. 308?It is not neccessary to use all the tables.
SELECT Speed FROM table WHERE Rank < 3 AND Time = 1:03.41.86
CREATE TABLE INST, Here is a database schema( table schema);
What was the speed with a time of 1:03.41.86 and a rank smaller than 3?.It is not neccessary to use all the tables.
SELECT SUM(CASE WHEN VoteTypeId = 1 THEN 15 WHEN VoteTypeId = 2 THEN 10 WHEN VoteTypeId = 3 THEN -2 ELSE 0 END) - Reputation AS LostRep, 1.0 - (Reputation * 1.0 / SUM(CASE WHEN VoteTypeId = 1 THEN 15 WHEN VoteTypeId = 2 THEN 10 WHEN VoteTypeId = 3 THEN -2 ELSE 0 END)) AS "lostrep%" FROM Votes AS v INNER JOIN Posts AS p ON p.Id = v.PostId INNER JOIN Users ON Users.Id = p.OwnerUserId WHERE p.OwnerUserId = @UserID AND p.CommunityOwnedDate IS NULL GROUP BY Reputation
CREATE TABLE INST, Here is a database schema( table schema);
How much rep would I have if there were no rep cap? [FIXED]. By Joel Coehoorn in this answer: http://meta.stackoverflow.com/questions/42121/is-there-a-script-tool-to-calculate-the-rep-as-if-there-were-no-cap Edited to use a specified User ID.It is not neccessary to use all the tables.
SELECT SUM Lane FROM table WHERE Heat = 2 AND Name = susanna kallur
CREATE TABLE INST, Here is a database schema( table schema);
How many lanes have 2 as the heat, and susanna kallur as the name?.It is not neccessary to use all the tables.
SELECT MAX Season FROM table WHERE Attendance/G = 9,153 AND Pos. > 11
CREATE TABLE INST, Here is a database schema( table schema);
What season had a position higher than 11 and an attendance per game of 9,153?.It is not neccessary to use all the tables.
SELECT title FROM table_16617025_1 WHERE us_viewers__millions_ = "17.93"
CREATE TABLE INST, Here is a database schema( table schema);
What episode titles have 17.93 million U.S. viewers?It is not neccessary to use all the tables.
SELECT tournament FROM table_name_32 WHERE 2012 = "grand slam tournaments"
CREATE TABLE INST, Here is a database schema( table schema);
Name the tournament for 2012 grand slam tournamentsIt is not neccessary to use all the tables.
SELECT Maximum diameter FROM table WHERE Name (year commissioned) = mid west gas pipeline (1999)
CREATE TABLE INST, Here is a database schema( table schema);
What is the maximum diameter of the Mid West Gas Pipeline (1999)?.It is not neccessary to use all the tables.
SELECT Title FROM table WHERE Production code = 136
CREATE TABLE INST, Here is a database schema( table schema);
What's the title of the episode with a production code 136?.It is not neccessary to use all the tables.
SELECT Tournament FROM table WHERE Surface = clay AND Outcome = winner AND Score = 6–3, 6–2
CREATE TABLE INST, Here is a database schema( table schema);
Name the tournament for clay surface and outcome is winner with score is 6–3, 6–2.It is not neccessary to use all the tables.
SELECT Champion FROM table WHERE Runner-up = e.a. lassen
CREATE TABLE INST, Here is a database schema( table schema);
What player was the champion in the match where E.A. Lassen was the runner-up?.It is not neccessary to use all the tables.
SELECT COUNT(new_entries_this_round) FROM table_17814838_1 WHERE round = "Fourth round Proper"
CREATE TABLE INST, Here is a database schema( table schema);
How many categories of new entries this round are there for the fourth round proper?It is not neccessary to use all the tables.
SELECT JOB_ID, AVG(SALARY) FROM employees WHERE SALARY BETWEEN 8000 AND 12000 AND COMMISSION_PCT <> "null" OR DEPARTMENT_ID <> 40 GROUP BY JOB_ID ORDER BY AVG(SALARY)
CREATE TABLE INST, Here is a database schema( table schema);
For those employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40, give me the comparison about the average of salary over the job_id , and group by attribute job_id, display in asc by the y axis.It is not neccessary to use all the tables.
SELECT Date FROM table WHERE Home team score = 12.7 (79)
CREATE TABLE INST, Here is a database schema( table schema);
What date did the home team score 12.7 (79)?.It is not neccessary to use all the tables.
SELECT Ladies 1st XI FROM table WHERE Mens 2nd XI = 10th, South West District 1
CREATE TABLE INST, Here is a database schema( table schema);
When 10th, south west district 1 is the mens 2nd xi what is the ladies 1st xi?.It is not neccessary to use all the tables.