instruction
stringlengths 53
549
| output
stringlengths 30
2.33k
|
---|---|
### Instruction:
Show the trend about the total amount of each payment about the payment day, line chart. Note that, you should order the payment day in ascending order.
### Response:
| SELECT Date_Payment_Made, SUM(Amount_Payment) FROM Payments GROUP BY Date_Payment_Made ORDER BY Date_Payment_Made |
### Instruction:
Return a bar chart showing the number of documents for each document type name.
### Response:
| SELECT Document_Type_Name, COUNT(Document_Type_Name) FROM Ref_Document_Types AS T1 JOIN Documents AS T2 ON T1.Document_Type_Code = T2.Document_Type_Code GROUP BY Document_Type_Name |
### Instruction:
What is the least amount of injuries in Dantewada, Chhattisgarh when 8 people were killed?
### Response:
| SELECT MIN("Injured") FROM table_74796 WHERE "Place" = 'dantewada, chhattisgarh' AND "Killed" = '8' |
### Instruction:
how many asian patients have ventricular tachycardia primary disease?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "ASIAN" AND demographic.diagnosis = "VENTRICULAR TACHYCARDIA" |
### Instruction:
What is the sum of Amerindian, when White is 6,02, and when Total is greater than 100,00?
### Response:
| SELECT SUM("Amerindian") FROM table_7002 WHERE "White" = '6,02' AND "Total" > '100,00' |
### Instruction:
what is minimum age of patients whose marital status is married and admission year is greater than or equal to 2180?
### Response:
| SELECT MIN(demographic.age) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.admityear >= "2180" |
### Instruction:
What is the most silver won by the country with more than 1 gold, 3 bronze, ranked 1, and less than 12 as the total?
### Response:
| SELECT MAX(silver) FROM table_name_54 WHERE gold > "1" AND bronze = 3 AND rank = "1" AND total < 12 |
### Instruction:
how many times was the catalog number cal05 / 0091037137357?
### Response:
| SELECT COUNT(title) FROM table_27303975_3 WHERE catalog_number = "CAL05 / 0091037137357" |
### Instruction:
Tell me the named after for diameter less than 19.2 and latitude more than -37.5 with longitude less than 67.3
### Response:
| SELECT named AS after FROM table_name_97 WHERE diameter__km_ < 19.2 AND latitude > -37.5 AND longitude < 67.3 |
### Instruction:
For those records from the products and each product's manufacturer, visualize a scatter chart about the correlation between price and manufacturer , and group by attribute founder.
### Response:
| SELECT Price, Manufacturer FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY Founder |
### Instruction:
Which Home has a Visitor of quebec nordiques, and a Score of 3 4, and a Record of 8 8 1?
### Response:
| SELECT home FROM table_name_62 WHERE visitor = "quebec nordiques" AND score = "3–4" AND record = "8–8–1" |
### Instruction:
what is discharge time and diagnoses short title of subject id 1875?
### Response:
| SELECT demographic.dischtime, diagnoses.short_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "1875" |
### Instruction:
What is Player, when Country is United States, and when Score is 70-72-70=212?
### Response:
| SELECT "Player" FROM table_48862 WHERE "Country" = 'united states' AND "Score" = '70-72-70=212' |
### Instruction:
Show the id, name of each editor and the number of journal committees they are on.
### Response:
| SELECT T1.Editor_ID, T1.Name, COUNT(*) FROM editor AS T1 JOIN journal_committee AS T2 ON T1.Editor_ID = T2.Editor_ID GROUP BY T1.Editor_ID |
### Instruction:
What are the hometowns that are shared by at least two gymnasts?
### Response:
| SELECT T2.Hometown FROM gymnast AS T1 JOIN people AS T2 ON T1.Gymnast_ID = T2.People_ID GROUP BY T2.Hometown HAVING COUNT(*) >= 2 |
### Instruction:
What was the highest rank by average of a couple who had an average of 25.3 and had more than 10 dances?
### Response:
| SELECT MAX("Rank by average") FROM table_33569 WHERE "Average" = '25.3' AND "Number of dances" > '10' |
### Instruction:
What is the highest draft after round 2, is from the United States and has picked less than 113?
### Response:
| SELECT MAX("Draft") FROM table_61437 WHERE "Round" > '2' AND "Nationality" = 'united states' AND "Pick" < '113' |
### Instruction:
What are the ids and names of the architects who built at least 3 bridges , and I want to show by the total number in asc.
### Response:
| SELECT T1.name, T1.id FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id ORDER BY T1.id |
### Instruction:
how many patients have diagnosis icd9 code 60000?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.icd9_code = "60000" |
### Instruction:
What is the total Frequency MHz Port Charlotte, Florida, which has an ERP W larger than 10, has?
### Response:
| SELECT COUNT(frequency_mhz) FROM table_name_41 WHERE city_of_license = "port charlotte, florida" AND erp_w > 10 |
### Instruction:
Which patients have the bupr75 drug code?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE prescriptions.formulary_drug_cd = "BUPR75" |
### Instruction:
What is the average for the 1990s with a total of 1, and 0 in the 1980s?
### Response:
| SELECT AVG("1990s") FROM table_7582 WHERE "Total to date" = '1' AND "1980s" < '0' |
### Instruction:
what is the number of patients whose discharge location is snf and diagnosed with primary disease complete heart block?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.diagnosis = "COMPLETE HEART BLOCK" |
### Instruction:
Show the number of type of thing code from each type of thing code, I want to rank in desc by the X please.
### Response:
| SELECT Type_of_Thing_Code, COUNT(Type_of_Thing_Code) FROM Things GROUP BY Type_of_Thing_Code ORDER BY Type_of_Thing_Code DESC |
### Instruction:
What is the lowest pupil to teacher ratio for Saratoga schools with smaller than 1213 students?
### Response:
| SELECT MIN("Pupil/Teacher Ratio") FROM table_39441 WHERE "City" = 'saratoga' AND "Students" < '1213' |
### Instruction:
What is the highest Rank, when U-17 Goals is '7', and when Player is 'Cesc F bregas'?
### Response:
| SELECT MAX("Rank") FROM table_47501 WHERE "U-17 Goals" = '7' AND "Player" = 'cesc fàbregas' |
### Instruction:
In what format was the release from the Nebt068 catalog on April 11, 2005 in?
### Response:
| SELECT "Format" FROM table_39880 WHERE "Date" = 'april 11, 2005' AND "Catalog" = 'nebt068' |
### Instruction:
What is the most recent year of disaffiliation of a CHCH-TV station that affiliated after 2001?
### Response:
| SELECT MAX(year_of_disaffiliation) FROM table_name_31 WHERE station = "chch-tv" AND year_of_affiliation > 2001 |
### Instruction:
What 100 yard Butterfly has a 100 yard Freestyle of cody miller (palo verde)?
### Response:
| SELECT "100 yard Butterfly" FROM table_59617 WHERE "100 yard Freestyle" = 'cody miller (palo verde)' |
### Instruction:
What is the name of each aircraft and how many flights does each one complete Show bar chart, sort by the y-axis from low to high please.
### Response:
| SELECT name, COUNT(*) FROM flight AS T1 JOIN aircraft AS T2 ON T1.aid = T2.aid GROUP BY T1.aid ORDER BY COUNT(*) |
### Instruction:
What are the id and name of the mountains that have at least 2 photos Show bar chart, and list by the bar in descending please.
### Response:
| SELECT T1.name, T1.id FROM mountain AS T1 JOIN photos AS T2 ON T1.id = T2.mountain_id ORDER BY T1.name DESC |
### Instruction:
Who is the race caller when jim mckay and al michaels were s hosts in the year 1987?
### Response:
| SELECT "Race caller" FROM table_25080 WHERE "s Host" = 'Jim McKay and Al Michaels' AND "Year" = '1987' |
### Instruction:
Which Location has a Year Joined of 1966, and a Previous Conference of noble county, and a School of wawaka?
### Response:
| SELECT location FROM table_name_83 WHERE year_joined = 1966 AND previous_conference = "noble county" AND school = "wawaka" |
### Instruction:
What was the time on Monday August 23rd for Steve Linsdell 499cc royal enfield seeley?
### Response:
| SELECT mon_23_aug FROM table_26986076_3 WHERE rider = "Steve Linsdell 499cc Royal Enfield Seeley" |
### Instruction:
What is the sum of Game, when High Points is 'D. McKey (24)', and when Team is '@ Dallas Mavericks'?
### Response:
| SELECT SUM(game) FROM table_name_35 WHERE high_points = "d. mckey (24)" AND team = "@ dallas mavericks" |
### Instruction:
What is the highest production number released on 1955-04-02 with i. freleng as the director?
### Response:
| SELECT MAX(production_number) FROM table_name_66 WHERE director = "i. freleng" AND release_date = "1955-04-02" |
### Instruction:
what ae all of the brazil 100% where the age group is 15-17?
### Response:
| SELECT brazil_100_percentage__percent_of_the_population_ FROM table_18950570_4 WHERE age_group = "15-17" |
### Instruction:
What are the total number of credits offered by each department.
### Response:
| SELECT DEPT_CODE, SUM(T1.CRS_CREDIT) FROM COURSE AS T1 JOIN CLASS AS T2 ON T1.CRS_CODE = T2.CRS_CODE GROUP BY T1.DEPT_CODE |
### Instruction:
What are the ids of documents with letter 's' in the name with any expense budgets.
### Response:
| SELECT T1.document_id FROM Documents AS T1 JOIN Documents_with_expenses AS T2 ON T1.document_id = T2.document_id WHERE T1.document_name LIKE '%s%' |
### Instruction:
give the number of patients who underwent nasal sinus dx proc nec.
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE procedures.short_title = "Nasal sinus dx proc NEC" |
### Instruction:
What is top speed of a petrol engine at ps (kw; bhp)@5250-6250?
### Response:
| SELECT top_speed FROM table_21154679_1 WHERE max_power = "PS (kW; bhp)@5250-6250" |
### Instruction:
what is the part number(s) when the turbo is 9/11 and the frequency is 1.5 ghz?
### Response:
| SELECT "Part number(s)" FROM table_13515 WHERE "Turbo" = '9/11' AND "Frequency" = '1.5 ghz' |
### Instruction:
Which Career Games has a Date and Opponent of 12/15/92 vs. uw milwaukee?
### Response:
| SELECT career_games FROM table_name_58 WHERE date_and_opponent = "12/15/92 vs. uw–milwaukee" |
### Instruction:
What is Rank, when Headquarters is United Kingdom, and when Sales (billion $) is 370.9?
### Response:
| SELECT "Rank" FROM table_49282 WHERE "Headquarters" = 'united kingdom' AND "Sales (billion $)" = '370.9' |
### Instruction:
What was the enrollment (2005) for baccalaureate colleges , for Granite State College?
### Response:
| SELECT enrollment__2005_ FROM table_2076490_1 WHERE type = "Baccalaureate college" AND school = "Granite State College" |
### Instruction:
Find the number of married patients with gastrointestinal bleed as the primary disease.
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.marital_status = "MARRIED" AND demographic.diagnosis = "GASTROINTESTINAL BLEED" |
### Instruction:
What is the average number of 2nd place finishes for racers active in the year 2000 and more than 0 titles?
### Response:
| SELECT AVG("2nd pl.") FROM table_14887 WHERE "Years active" = '2000' AND "Titles." > '0' |
### Instruction:
What is the total of player Martin Randall, who has more than 1 League Cups and a league less than 18?
### Response:
| SELECT "Total" FROM table_7390 WHERE "League Cup" > '1' AND "League" < '18' AND "Player" = 'martin randall' |
### Instruction:
What was the poll source that showed Democrat: John Lynch at 62% and had a lead margin of less than 33?
### Response:
| SELECT "Poll Source" FROM table_9675 WHERE "Lead Margin" < '33' AND "Democrat: John Lynch" = '62%' |
### Instruction:
what's the 1985-1990 with 1995-2000 being 1.46
### Response:
| SELECT "1985-1990" FROM table_18886 WHERE "1995-2000" = '1.46' |
### Instruction:
Which tournament ended with a winning score of 27 (65-68-64-64=261)?
### Response:
| SELECT "Tournament" FROM table_66973 WHERE "Winning score" = '–27 (65-68-64-64=261)' |
### Instruction:
Which Average Cards a game has a Season of 1997/1998, and a Games larger than 38?
### Response:
| SELECT MAX(average_cards_a_game) FROM table_name_78 WHERE season = "1997/1998" AND games > 38 |
### Instruction:
What is the IATA code of the airport that has a Total Cargo of 1,838,894 Metric Tonnes?
### Response:
| SELECT "Code (IATA)" FROM table_35256 WHERE "Total Cargo (Metric Tonnes)" = '1,838,894' |
### Instruction:
How many results are there with the original title of ani ohev otach roza ( )?
### Response:
| SELECT COUNT("Result") FROM table_17642 WHERE "Original title" = 'Ani Ohev Otach Roza (אני אוהב אותך רוזה)' |
### Instruction:
What is the average number of bronzes when the rank is below 11 for trinidad and tobago with less than 1 total medal?
### Response:
| SELECT AVG(bronze) FROM table_name_94 WHERE rank < 11 AND nation = "trinidad and tobago" AND total < 1 |
### Instruction:
Time ( ET ) of 1:00pm, and a Result of w 34 14 has what record?
### Response:
| SELECT "Record" FROM table_36177 WHERE "Time ( ET )" = '1:00pm' AND "Result" = 'w 34–14' |
### Instruction:
What is the sum of the goals with less than 30 points, a position less than 10, and more than 57 goals against?
### Response:
| SELECT SUM(goals_for) FROM table_name_14 WHERE points < 30 AND position < 10 AND goals_against > 57 |
### Instruction:
clinically significant anemia ( hct < 36 % in male , < 33 % in female )
### Response:
| SELECT * FROM table_dev_53 WHERE anemia = 1 OR (hct < 36 AND gender = 'male') OR (hct < 33 AND gender = 'female') |
### Instruction:
what is 2001 when the year is ebitda and 2009 is less than 3,600?
### Response:
| SELECT SUM(2001) FROM table_name_73 WHERE year = "ebitda" AND 2009 < 3 OFFSET 600 |
### Instruction:
what is the number of patients with snf discharge who were admitted to hospital before 2154?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SNF" AND demographic.admityear < "2154" |
### Instruction:
In stage 13, what is the intergiro classification and is on the team of Asics-c.g.a.?
### Response:
| SELECT intergiro_classification FROM table_name_10 WHERE trofeo_fast_team = "asics-c.g.a." AND stage = "13" |
### Instruction:
When the Top 10s is larger than 0 and the scoring average 73.04, what is the best finish?
### Response:
| SELECT "Best finish" FROM table_31868 WHERE "Top 10s" > '0' AND "Scoring average" = '73.04' |
### Instruction:
which album came after the album that was in 194th position for a us chart ?
### Response:
| SELECT "title" FROM table_203_137 WHERE id = (SELECT id FROM table_203_137 WHERE "peak chart positions\nus" = 194) + 1 |
### Instruction:
What movie had the music director G.K. Venkatesh and director B. Dorairaj?
### Response:
| SELECT "Movie (in Kannada )" FROM table_65395 WHERE "Music Director" = 'g.k. venkatesh' AND "Director" = 'b. dorairaj' |
### Instruction:
Find the latest movie which ' Gabriele Ferzetti ' acted in
### Response:
| SELECT actor.name FROM actor, cast, movie WHERE actor.name = 'Gabriele Ferzetti' AND cast.aid = actor.aid AND movie.mid = cast.msid ORDER BY movie.release_year DESC LIMIT 1 |
### Instruction:
Who are all of the telecom providers for which the upload rate is 1024 kbits and the resale category is yes?
### Response:
| SELECT "Provider" FROM table_72930 WHERE "Up (up to kbit/s)" = '1024' AND "Resale" = 'yes' |
### Instruction:
Specify the age of patient id 2560 and drug he was treated with
### Response:
| SELECT demographic.age, prescriptions.drug FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.subject_id = "2560" |
### Instruction:
what is the number of patients whose admission type is elective and primary disease is s/p hanging?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.diagnosis = "S/P HANGING" |
### Instruction:
Find ACC_Road and School_ID , and group by attribute All_Home, and visualize them by a bar chart, and sort from low to high by the y axis.
### Response:
| SELECT ACC_Road, School_ID FROM basketball_match GROUP BY All_Home, ACC_Road ORDER BY School_ID |
### Instruction:
how many patients less than 72 years of age were discharged to short term hospital?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.discharge_location = "SHORT TERM HOSPITAL" AND demographic.age < "72" |
### Instruction:
What Occupation has the Rank of 5th and has a Candidate's Name of Henry Zekveld?
### Response:
| SELECT "Occupation" FROM table_69032 WHERE "Rank" = '5th' AND "Candidate's Name" = 'henry zekveld' |
### Instruction:
Show me about the distribution of All_Home and the sum of Team_ID , and group by attribute All_Home in a bar chart, and could you show by the total number in desc?
### Response:
| SELECT All_Home, SUM(Team_ID) FROM basketball_match GROUP BY All_Home ORDER BY SUM(Team_ID) DESC |
### Instruction:
Top 50 Users by Country Name.
### Response:
| SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", DisplayName, Reputation FROM Users WHERE LOWER(Location) LIKE LOWER('%##CountryName##%') ORDER BY Reputation DESC LIMIT 50 |
### Instruction:
What is the average February that has 18-26-10 as the record, with a game less than 54?
### Response:
| SELECT AVG("February") FROM table_50809 WHERE "Record" = '18-26-10' AND "Game" < '54' |
### Instruction:
Which Bronze has a Silver larger than 1, a Total larger than 3, a Nation of turkey, and a Gold smaller than 2?
### Response:
| SELECT SUM(bronze) FROM table_name_53 WHERE silver > 1 AND total > 3 AND nation = "turkey" AND gold < 2 |
### Instruction:
On which date was Raymond Felton (6) the high assists and Jason Richardson (42) the high points?
### Response:
| SELECT "Date" FROM table_57741 WHERE "High assists" = 'raymond felton (6)' AND "High points" = 'jason richardson (42)' |
### Instruction:
What is the set 5 of the match with a set 2 of 26-24 and a set 1 of 27-25?
### Response:
| SELECT set_5 FROM table_name_25 WHERE set_2 = "26-24" AND set_1 = "27-25" |
### Instruction:
What are the womens singles of imam sodikin irawan andi tandaputra?
### Response:
| SELECT womens_singles FROM table_12104319_1 WHERE mens_doubles = "Imam Sodikin Irawan Andi Tandaputra" |
### Instruction:
What is the sum of Away Losses with a No Result of more than 0, losses of more than 6, and matches of more than 91?
### Response:
| SELECT SUM(Away) AS losses FROM table_name_64 WHERE no_result > 0 AND losses > 6 AND matches > 91 |
### Instruction:
find the number of greek orthodox religious background patients who were born before 2085.
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.religion = "GREEK ORTHODOX" AND demographic.dob_year < "2085" |
### Instruction:
Give me the the first and last name of the faculty who advises the most students.
### Response:
| SELECT T1.fname, T1.lname FROM faculty AS T1 JOIN student AS T2 ON T1.facid = T2.advisor GROUP BY T1.facid ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
What is the Score of 2007 afc asian cup qualification with a Result of 8 0?
### Response:
| SELECT "Score" FROM table_38984 WHERE "Competition" = '2007 afc asian cup qualification' AND "Result" = '8–0' |
### Instruction:
what is average age of patients whose gender is f and discharge location is disch-tran to psych hosp?
### Response:
| SELECT AVG(demographic.age) FROM demographic WHERE demographic.gender = "F" AND demographic.discharge_location = "DISCH-TRAN TO PSYCH HOSP" |
### Instruction:
what is the number of patients who had been admitted to the hospital this year?
### Response:
| SELECT COUNT(DISTINCT admissions.subject_id) FROM admissions WHERE DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year') |
### Instruction:
how many female patients had a lab test for vancomycin?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.gender = "F" AND lab.label = "Vancomycin" |
### Instruction:
What was the attendence of the game on 26 April 1948 and an away team of Hawthorn?
### Response:
| SELECT "Crowd" FROM table_53093 WHERE "Date" = '26 april 1948' AND "Away team" = 'hawthorn' |
### Instruction:
What was the state (class) where the new successor was formally installed on May 11, 1966?
### Response:
| SELECT state__class_ FROM table_1847180_3 WHERE date_of_successors_formal_installation = "May 11, 1966" |
### Instruction:
WHose Name has a Region of kansai on 2012-04-01 ( core city )?
### Response:
| SELECT name FROM table_name_63 WHERE region = "kansai" AND date_of_reclassification = "2012-04-01 ( core city )" |
### Instruction:
On what Date is the match played on Clay Surface with a Score in the final of 6 2, 7 5?
### Response:
| SELECT "Date" FROM table_59150 WHERE "Surface" = 'clay' AND "Score in the final" = '6–2, 7–5' |
### Instruction:
How many episodes were directed by Jeff Melman and 1.21million viewers?
### Response:
| SELECT MIN("No. in season") FROM table_30478 WHERE "Directed by" = 'Jeff Melman' AND "U.S. viewers (millions)" = '1.21' |
### Instruction:
What is Frank Kimmel's lowest top 5 with more than 0 wins and fewer than 14 top 10s?
### Response:
| SELECT MIN(top_5) FROM table_name_66 WHERE wins > 0 AND driver = "frank kimmel" AND top_10 < 14 |
### Instruction:
Display all questions of a given user.
### Response:
| SELECT Q.Title AS Title, Q.Score AS QScore, Q.Body AS Question, A.Score AS AScore, A.Body AS Answer FROM Posts AS Q, Posts AS A WHERE A.OwnerUserId = @UserId AND Q.Id = A.ParentId |
### Instruction:
For players whose occupation is not 'Researcher', tell me the distribution of their residences with a bar chart, and I want to show y axis from low to high order.
### Response:
| SELECT Residence, COUNT(Residence) FROM player WHERE Occupation <> "Researcher" GROUP BY Residence ORDER BY COUNT(Residence) |
### Instruction:
When the PCT route available is yes and the maximum term is 10 years, what are the available conversions from patent applications?
### Response:
| SELECT "Conversion from Patent Application" FROM table_25307 WHERE "Maximum Term" = '10 years' AND "PCT route available" = 'Yes' |
### Instruction:
What is the cell phone number of the student whose address has the lowest monthly rental?
### Response:
| SELECT T2.cell_mobile_number FROM Student_Addresses AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id ORDER BY T1.monthly_rental LIMIT 1 |
### Instruction:
what is the number of patients whose primary disease is stemi and admission year is less than 2155?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "STEMI" AND demographic.admityear < "2155" |
### Instruction:
What is the validation for iin ranges 5610, 560221-560225?
### Response:
| SELECT "Validation" FROM table_20424 WHERE "IIN ranges" = '5610, 560221-560225' |
### Instruction:
Which lap-by-lap has a year after 1973, with pit reporter Bill Flemming?
### Response:
| SELECT "Lap-by-lap" FROM table_53926 WHERE "Year" > '1973' AND "Pit reporters" = 'bill flemming' |
### Instruction:
Show the country names and the corresponding number of players Show bar chart, could you order in desc by the x axis?
### Response:
| SELECT Country_name, COUNT(*) FROM country AS T1 JOIN match_season AS T2 ON T1.Country_id = T2.Country GROUP BY T1.Country_name ORDER BY Country_name DESC |
### Instruction:
WHAT IS THE BIRTH DATE THAT HAS Ceased to be Duke of Girona OF 21 NOVEMBER 1582?
### Response:
| SELECT birth FROM table_name_22 WHERE ceased_to_be_duke_of_girona = "21 november 1582" |
Subsets and Splits