sql
stringlengths 9
2.37k
| table
stringclasses 9
values | query
stringlengths 51
503
|
|---|---|---|
SELECT rank_on_channel FROM table_26493520_3 WHERE original_air_date = "January 21, 2011"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the rank on channel for january 21 2011It is not neccessary to use all the tables.
|
SELECT Date of vacancy FROM table WHERE Manner of departure = fired AND Replaced by = albert cartier
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the date of vacancy where the replacement was Albert Cartier and the manager was fired?.It is not neccessary to use all the tables.
|
SELECT COUNT(year_s__won) FROM table_name_27 WHERE player = "ed furgol" AND to_par > 12
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the total number of Year(s) Won, when Player is Ed Furgol, and when To Par is greater than 12?It is not neccessary to use all the tables.
|
SELECT name FROM table_name_37 WHERE date = "24 september"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the name of the race on 24 September?It is not neccessary to use all the tables.
|
SELECT JOB_ID, DEPARTMENT_ID FROM employees WHERE NOT DEPARTMENT_ID IN (SELECT DEPARTMENT_ID FROM departments WHERE MANAGER_ID BETWEEN 100 AND 200) ORDER BY JOB_ID
|
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 job_id and department_id , and I want to display from low to high by the names.It is not neccessary to use all the tables.
|
SELECT pick__number FROM table_name_20 WHERE player = "jason french"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which pick number was there for Jason French?It is not neccessary to use all the tables.
|
WITH RankedUsers AS (SELECT RANK() OVER (ORDER BY COUNT(DISTINCT ph.PostId) DESC) AS Rank, ph.UserId, COUNT(DISTINCT ph.PostId) AS EditCount FROM PostHistory AS ph JOIN Posts AS p ON ph.PostId = p.Id AND ph.UserId != p.OwnerUserId WHERE PostHistoryTypeId IN (4, 5) GROUP BY ph.UserId) SELECT Rank, UserId AS "user_link", EditCount FROM RankedUsers WHERE Rank < 100 OR UserId = '##UserId##' ORDER BY Rank
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Community Edits Count Rank by User.It is not neccessary to use all the tables.
|
SELECT COUNT Crowd FROM table WHERE Home team score = 7.8 (50)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many crowd sizes were recorded at the game when the home team scored 7.8 (50)?.It is not neccessary to use all the tables.
|
SELECT date FROM table_name_87 WHERE format = "cd"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Date with a Format that is cd?It is not neccessary to use all the tables.
|
SELECT MAX(first_prize___) AS $__ FROM table_name_49 WHERE year = 1997
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the top first place prize in 1997?It is not neccessary to use all the tables.
|
SELECT AVG Top-5 FROM table WHERE Top-25 = 1 AND Wins < 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the mean number in the top 5 when the top 25 is 1 and there's fewer than 0 wins?.It is not neccessary to use all the tables.
|
SELECT Townland FROM table WHERE Area( acres ) = 131
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What are all of the townlands that have exactly 131 acres..It is not neccessary to use all the tables.
|
SELECT t2.unit_of_measure, t2.product_category_code FROM products AS t1 JOIN ref_product_categories AS t2 ON t1.product_category_code = t2.product_category_code WHERE t1.product_name = "chervil"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Find the unit of measurement and product category code of product named "chervil".It is not neccessary to use all the tables.
|
SELECT Title FROM table WHERE Director = Pamela Fryman AND Production code = 2ALH07
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the title of the episode with the director pamela fryman and the production code 2alh07?.It is not neccessary to use all the tables.
|
SELECT position FROM table_25017530_6 WHERE player = "Michael Warner"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the position for michael warnerIt is not neccessary to use all the tables.
|
SELECT MAX Long FROM table WHERE Avg/G < 8.4 AND GP-GS = 4–0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the highest Long that has an Avg/G smaller than 8.4, and an GP-GS of 4–0?.It is not neccessary to use all the tables.
|
SELECT MAX(year) FROM table_name_82 WHERE title = "loves lost and found"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the highest year for the title "loves lost and found"?It is not neccessary to use all the tables.
|
SELECT years_in_orlando FROM table_name_6 WHERE player = "carlos arroyo"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Years in Orlando for carlos arroyo?It is not neccessary to use all the tables.
|
SELECT to_par FROM table_name_81 WHERE place = "t1" AND score = 70 - 73 - 69 = 212
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What player was place of t1 in To Par and had a score of 70-73-69=212?It is not neccessary to use all the tables.
|
SELECT AVG Lower index Kcal/ Nm 3 FROM table WHERE Lower index MJ/ Nm 3 = 74.54 AND Upper index Kcal/ Nm 3 < 19,376
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Lower index Kcal/ Nm 3 entry, for the row with entries of an Upper index Kcal/ Nm 3 smaller than 19,376, and a Lower index MJ/ Nm 3 of 74.54?.It is not neccessary to use all the tables.
|
SELECT Price FROM table WHERE Internet Plan = internet 150
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the price of the internet 150 plans?.It is not neccessary to use all the tables.
|
SELECT Record FROM table WHERE Points > 23 AND Attendance > 4,017 AND Date = january 18
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Can you tell me the Record that has the Points larger than 23, and the Attendance larger than 4,017, and the Date of january 18?.It is not neccessary to use all the tables.
|
SELECT date_successor_seated FROM table_2417330_4 WHERE successor = "Vacant"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the date successor seated for successor being vacantIt is not neccessary to use all the tables.
|
SELECT democrat AS :_brian_schweitzer FROM table_name_12 WHERE lead_margin = 29
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the percentage for Schweitzer when the lead margin is 29?It is not neccessary to use all the tables.
|
SELECT record FROM table_name_11 WHERE year > 2012
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What Record has a Year that's larger than 2012?It is not neccessary to use all the tables.
|
SELECT Away team score FROM table WHERE Crowd > 15,000 AND Venue = lake oval
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the away team's score at the game played at Lake Oval that had a crowd of over 15,000?.It is not neccessary to use all the tables.
|
SELECT result FROM table_name_54 WHERE venue = "home" AND date = "3 october 1987"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which Result has a Venue of home and a Date of 3 october 1987?It is not neccessary to use all the tables.
|
SELECT COUNT(enrollment) FROM table_name_61 WHERE ihsaa_class = "aa"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the total enrollment of the aa IHSAA class?It is not neccessary to use all the tables.
|
SELECT Result FROM table WHERE Week = 10
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what was the result in week 10?.It is not neccessary to use all the tables.
|
SELECT constituency_number FROM table_name_8 WHERE name = "meerut"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Constituency number for Meerut?It is not neccessary to use all the tables.
|
SELECT COUNT("competition") FROM table_204_364 WHERE "year" > 2008
|
CREATE TABLE INST, Here is a database schema( table schema);
|
how many races did she run after the 2008 olympics ?It is not neccessary to use all the tables.
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND lab.label = "Asparate Aminotransferase (AST)"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
provide the number of patients whose admission type is elective and lab test name is asparate aminotransferase (ast)?It is not neccessary to use all the tables.
|
SELECT COUNT(residence_city) FROM table_198175_2 WHERE english_name = "Province of Viborg and Nyslott"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many residence cities have an English name of Province of Viborg and Nyslott?It is not neccessary to use all the tables.
|
SELECT "Club" FROM table_15309 WHERE "Tries for" = '100'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the club that as 100 tries?It is not neccessary to use all the tables.
|
SELECT Cylinders FROM table WHERE Builder = Longbottom, Barnsley
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What's the size of the cylinders built by Longbottom, Barnsley?.It is not neccessary to use all the tables.
|
SELECT landesliga_nord FROM table_20181270_3 WHERE landesliga_mitte = "ASV Neumarkt"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the landesliga nord for asv neumarktIt is not neccessary to use all the tables.
|
SELECT State FROM table WHERE Title = king
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What state has the king title?.It is not neccessary to use all the tables.
|
SELECT Location Attendance FROM table WHERE Team = Memphis
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the location attendance for memphis.It is not neccessary to use all the tables.
|
SELECT type FROM table_name_62 WHERE bie_recognised = "yes" AND year_s_ = "1960"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the type when the bie recognised is yes and year(s) is 1960?It is not neccessary to use all the tables.
|
SELECT SUM Points FROM table WHERE Goals for > 225 AND Goals against = 190
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What are the total number of points with more than 225 goals and a Goals against of 190?.It is not neccessary to use all the tables.
|
SELECT Winner FROM table WHERE Score = 199 (-14) AND Date = oct 31
|
CREATE TABLE INST, Here is a database schema( table schema);
|
who won with a score of 199 (-14) on oct 31?.It is not neccessary to use all the tables.
|
SELECT att_cmp_int FROM table_name_72 WHERE effic = 117.4
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Att-Cmp-Int for the player with a efficiency of 117.4?It is not neccessary to use all the tables.
|
SELECT event FROM table_name_76 WHERE position = "4th" AND year = 2007
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which event had 4th place and took place in the year 2007?It is not neccessary to use all the tables.
|
SELECT "Name" FROM table_60592 WHERE "Winning constructor" = 'ansaldo'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What Name has a Winning constructor of ansaldo?It is not neccessary to use all the tables.
|
SELECT Original air date FROM table WHERE Series # > 78 AND Written by = jenee v. giles
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the original air date of a series number after 78, written by Jenee V. Giles?.It is not neccessary to use all the tables.
|
SELECT MAX Year FROM table WHERE Sideline reporters = Rob Stone and Monica Gonzalez
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the last year that had sideline reporters rob stone and monica gonzalez?.It is not neccessary to use all the tables.
|
SELECT away FROM table_name_6 WHERE competition = "uefa cup" AND round = "group f" AND club = "espanyol"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which away has uefa cup as the competition group f as the round with espanyol as the club?It is not neccessary to use all the tables.
|
SELECT year FROM table_name_70 WHERE chassis = "kurtis kraft 500g"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which year did Ray Crawford the Kurtis Kraft 500g chassis?It is not neccessary to use all the tables.
|
SELECT COUNT(writer_s_) FROM table_25800134_3 WHERE season__number = 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many writers were for season #1?It is not neccessary to use all the tables.
|
SELECT AVG(year) FROM table_name_59 WHERE entrant = "elf team tyrrell" AND points = "34"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What year did Elf Team Tyrrell have 34 points?It is not neccessary to use all the tables.
|
SELECT city FROM station GROUP BY city ORDER BY MAX(lat) DESC
|
CREATE TABLE INST, Here is a database schema( table schema);
|
List all the cities in a decreasing order of each city's stations' highest latitude.It is not neccessary to use all the tables.
|
SELECT Age group FROM table WHERE 10 Trip Pass = $19.00 AND Monthly Pass = $62.00
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What Age group has a 10 Trip Pass of $19.00, and a Monthly Pass of $62.00?.It is not neccessary to use all the tables.
|
SELECT Part 1 FROM table WHERE Class = 7d
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which part one is class 7d?.It is not neccessary to use all the tables.
|
SELECT District FROM table WHERE Former local authority = south cambridgeshire rural district
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What district is the parish who had the South Cambridgeshire rural district as the former local authority?.It is not neccessary to use all the tables.
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SHORT TERM HOSPITAL" AND demographic.dob_year < "2076"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
how many patients born before 2076 have been discharged to short term hospital?It is not neccessary to use all the tables.
|
SELECT GPU‡ FROM table WHERE Application = cushaw
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which GPU has the cushaw application?.It is not neccessary to use all the tables.
|
SELECT title FROM table_2626495_1 WHERE written_by = "Daphne Field"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what is the title of the episode daphne field wrote?It is not neccessary to use all the tables.
|
SELECT AVG 2010 Pop FROM table WHERE City = frankfort AND Rank < 14
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the 2010 population of frankfort which has a rank smaller than 14?.It is not neccessary to use all the tables.
|
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Long-term (current) use of insulin"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
how many patients are diagnosed with long-term (current) use of insulin?It is not neccessary to use all the tables.
|
SELECT date FROM table_name_68 WHERE city = "punta del este"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the Date of the Event in Punta del Este?It is not neccessary to use all the tables.
|
SELECT quantity_world_rank FROM table_21109892_1 WHERE value_world_rank = "12"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
where value world rank is 12, what is the quantity world rank?It is not neccessary to use all the tables.
|
SELECT MAX per lift FROM table
|
CREATE TABLE INST, Here is a database schema( table schema);
|
how heavy is the maximum.It is not neccessary to use all the tables.
|
SELECT directed_by FROM table_25547943_1 WHERE written_by = "Bill Lawrence"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who directed the episode that was written by Bill Lawrence?It is not neccessary to use all the tables.
|
SELECT AVG(attendance) FROM table_name_50 WHERE date = "june 11"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the average attendance from june 11It is not neccessary to use all the tables.
|
SELECT * FROM table_test_18 WHERE creatinine_clearance_cl < 50
|
CREATE TABLE INST, Here is a database schema( table schema);
|
patients with creatinine clearance < 50 ml / min,It is not neccessary to use all the tables.
|
SELECT Name FROM table WHERE Type = pratt pony through truss
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What bridge is a pratt pony through truss tyoe bridge?.It is not neccessary to use all the tables.
|
SELECT COUNT Money list rank FROM table WHERE Average < 73.27 AND Earnings ($) = 583,796 AND Year > 1999
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the sum of money list rank after 1999 when the average is less than 73.27 and earnings is 583,796?.It is not neccessary to use all the tables.
|
SELECT Longitude FROM table WHERE Land ( sqmi ) = 10.950
|
CREATE TABLE INST, Here is a database schema( table schema);
|
If the land square milage is 10.950, what is the longitude?.It is not neccessary to use all the tables.
|
SELECT away_team FROM table_name_7 WHERE home_team = "collingwood"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the name of the away team who play Collingwood?It is not neccessary to use all the tables.
|
SELECT AVG Rank FROM table WHERE Total = 16
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which average rank has a total of 16?.It is not neccessary to use all the tables.
|
SELECT Opponent FROM table WHERE Score = 7–6
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the opponent at the game with a score of 7–6?.It is not neccessary to use all the tables.
|
SELECT country FROM table_name_43 WHERE score = 69 - 70 - 67 = 206 AND player = "sergio garcía"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the country sergio garcía who has a score of 69-70-67=206 is from?It is not neccessary to use all the tables.
|
SELECT height_m___ft FROM table_name_26 WHERE name = "shanghai world plaza"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the height for the Shanghai World Plaza?It is not neccessary to use all the tables.
|
SELECT villains FROM table_10470082_4 WHERE _number = 7
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who is the villain in episode #7?It is not neccessary to use all the tables.
|
SELECT DISTINCT name, number FROM course WHERE department = 'EECS' AND has_lab = 'N'
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Are there any classes that do n't have lab sessions ?It is not neccessary to use all the tables.
|
SELECT constituency_number FROM table_name_37 WHERE name = "udaipura"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many constituents does udaipura have?It is not neccessary to use all the tables.
|
SELECT location FROM table_2731431_1 WHERE elevation__m_ = 3798
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which location has an elevation of 3798?It is not neccessary to use all the tables.
|
SELECT school FROM table_name_45 WHERE hometown = "chicago, il"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What school is the player who has a hometown of Chicago, IL from?It is not neccessary to use all the tables.
|
SELECT Away team FROM table WHERE Home team score = 11.14 (80)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the away team when the home team scored 11.14 (80)?.It is not neccessary to use all the tables.
|
SELECT MAX(total_medals) FROM table_name_27 WHERE gold_medals = 0 AND ensemble = "east 80 indoor percussion"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the highest Total Medals that has 0 Gold Medal and a Ensemble of east 80 indoor percussion?It is not neccessary to use all the tables.
|
SELECT partner FROM table_name_94 WHERE outcome = "winner" AND year < 1993 AND score = "6–4, 6–2"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the Partner that was a winner, a Year smaller than 1993, and a Score of 6 4, 6 2?It is not neccessary to use all the tables.
|
SELECT MIN(played) FROM table_name_41 WHERE club = "ue figueres" AND goal_difference > 16
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the lowest play with ue figueres club and a goal difference more than 16?It is not neccessary to use all the tables.
|
SELECT runner_up_skip FROM table_name_51 WHERE event = "mac ice classic"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Who was the runner-up during the Mac Ice Classic?It is not neccessary to use all the tables.
|
SELECT No. in series FROM table WHERE Production code = 1.11
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many number of series have a production code of 1.11?.It is not neccessary to use all the tables.
|
SELECT theatre FROM table_name_31 WHERE performances > 49 AND role = "aaron jablonski schuyler grogan"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Name the theatre for aaron jablonski schuyler grogan with performances more than 49It is not neccessary to use all the tables.
|
SELECT COUNT(P.Id) AS Posts, YEAR(P.CreationDate) AS Year_Data FROM Posts AS P WHERE P.PostTypeId = 1 GROUP BY YEAR(P.CreationDate)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Count SO questions by Year.It is not neccessary to use all the tables.
|
SELECT Grid FROM table WHERE Driver = alex yoong
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the grid of Alex Yoong?.It is not neccessary to use all the tables.
|
SELECT MAX Rank FROM table WHERE Population density (/km 2 ) > 5.7 AND % growth (2006–11) = 5.7%
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the highest rank of an area with a population density larger than 5.7 and a 2006–2011 percentage growth of 5.7%?.It is not neccessary to use all the tables.
|
SELECT MAX(react) FROM table_name_84 WHERE points = 1008
|
CREATE TABLE INST, Here is a database schema( table schema);
|
If a country has 1008 points what's their reaction time?It is not neccessary to use all the tables.
|
SELECT MIN Total Goals FROM table WHERE Position = df AND FA Cup Goals < 0
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is the lowest total goals when position is df, and FA Cup Goals is smaller than 0?.It is not neccessary to use all the tables.
|
SELECT T1.Name, T2.Revenue FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T2.Revenue
|
CREATE TABLE INST, Here is a database schema( table schema);
|
For those records from the products and each product's manufacturer, give me the comparison about the sum of revenue over the name , and group by attribute name, and list by the Y-axis in ascending.It is not neccessary to use all the tables.
|
SELECT "notes" FROM table_204_882 GROUP BY "notes" ORDER BY COUNT(*) DESC LIMIT 1
|
CREATE TABLE INST, Here is a database schema( table schema);
|
what was the most reason given in the notes column ?It is not neccessary to use all the tables.
|
SELECT Country FROM table WHERE City = wellington
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which country is Wellington located in?.It is not neccessary to use all the tables.
|
SELECT song_title FROM table_21500850_1 WHERE year = 2007
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is every song title for 2007?It is not neccessary to use all the tables.
|
SELECT MAX(labevents.valuenum) FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 74523) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'pt') AND DATETIME(labevents.charttime) <= DATETIME(CURRENT_TIME(), '-4 year') GROUP BY STRFTIME('%y', labevents.charttime)
|
CREATE TABLE INST, Here is a database schema( table schema);
|
give me patient 74523's yearly maximum pt until 4 years ago.It is not neccessary to use all the tables.
|
SELECT COUNT Drawn FROM table WHERE Percentage = 7.14% AND Lost > 12
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How many matches were drawn associated with a percentage of 7.14% and more than 12 losses?.It is not neccessary to use all the tables.
|
SELECT acquisition_via FROM table_name_26 WHERE position = "center"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
How was the player in the position of Center acquired?It is not neccessary to use all the tables.
|
SELECT party FROM table_name_61 WHERE district = 41 AND delegate = "jill p. carter"
|
CREATE TABLE INST, Here is a database schema( table schema);
|
Which party belongs to district 41 and is delegated by Jill P. Carter?It is not neccessary to use all the tables.
|
SELECT Away team FROM table WHERE Venue = moorabbin oval
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What is moorabbin oval's away team?.It is not neccessary to use all the tables.
|
SELECT Away team score FROM table WHERE Venue = brunswick street oval
|
CREATE TABLE INST, Here is a database schema( table schema);
|
What was the away score when the game was at Brunswick Street Oval?.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.