instruction
stringlengths 53
549
| output
stringlengths 30
2.33k
|
---|---|
### Instruction:
Answered and closed, no time limit.
### Response:
| SELECT COUNT(p.Id) FROM Posts AS p, PostHistory AS ph WHERE p.PostTypeId = 1 AND ph.PostHistoryTypeId = 10 AND NOT p.AcceptedAnswerId IS NULL AND p.Id = ph.PostId AND p.Score > 0 |
### Instruction:
Return the name of the member who is in charge of the most events.
### Response:
| SELECT T1.member_name FROM member AS T1 JOIN party_events AS T2 ON T1.member_id = T2.member_in_charge_id GROUP BY T2.member_in_charge_id ORDER BY COUNT(*) DESC LIMIT 1 |
### Instruction:
Which Silver has a Gold of 2, and a Nation of puerto rico, and a Total smaller than 12?
### Response:
| SELECT SUM("Silver") FROM table_75489 WHERE "Gold" = '2' AND "Nation" = 'puerto rico' AND "Total" < '12' |
### Instruction:
what are the four most frequently prescribed medicines?
### Response:
| SELECT t1.drugname FROM (SELECT medication.drugname, DENSE_RANK() OVER (ORDER BY COUNT(*) DESC) AS c1 FROM medication GROUP BY medication.drugname) AS t1 WHERE t1.c1 <= 4 |
### Instruction:
Display a bar chart for how many products are there for each manufacturer?, could you show in descending by the Y-axis?
### Response:
| SELECT T2.Name, COUNT(*) FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T2.Name ORDER BY COUNT(*) DESC |
### Instruction:
What is the sum of the scottish cup of the forward player with less than 2 league cups and a total greater than 6?
### Response:
| SELECT SUM("Scottish Cup") FROM table_61991 WHERE "League Cup" < '2' AND "Total" > '6' AND "Position" = 'forward' |
### Instruction:
which track has the same producer as the track say something ?
### Response:
| SELECT "title" FROM table_203_687 WHERE "title" <> '"say something"' AND "producer(s)" = (SELECT "producer(s)" FROM table_203_687 WHERE "title" = '"say something"') |
### Instruction:
Name the most points for class of 125cc and team of mv agusta with year more than 1957
### Response:
| SELECT MAX("Points") FROM table_36825 WHERE "Class" = '125cc' AND "Team" = 'mv agusta' AND "Year" > '1957' |
### Instruction:
Provide me with the name of all the village (German) that are part of the village (Slovenian) with sele srednji kot.
### Response:
| SELECT "Village (German)" FROM table_72129 WHERE "Village (Slovenian)" = 'Sele Srednji Kot' |
### Instruction:
what is the venue when the competition is asian games, the event is 4x400 m relay and the year is 2002?
### Response:
| SELECT venue FROM table_name_93 WHERE competition = "asian games" AND event = "4x400 m relay" AND year = 2002 |
### Instruction:
How many millions of U.S. viewers watched the episode directed by Rob Bailey and written by Pam Veasey?
### Response:
| SELECT "U.S. viewers (millions)" FROM table_72318 WHERE "Directed by" = 'Rob Bailey' AND "Written by" = 'Pam Veasey' |
### Instruction:
Which Extra points 1 point has a Total Points smaller than 30, and Touchdowns (5 points) of 5?
### Response:
| SELECT AVG("Extra points 1 point") FROM table_36577 WHERE "Total Points" < '30' AND "Touchdowns (5 points)" = '5' |
### Instruction:
what is discharge time and diagnoses long title of subject id 23602?
### Response:
| SELECT demographic.dischtime, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "23602" |
### Instruction:
Show the names of companies and the number of employees they have
### Response:
| SELECT T3.Name, COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID JOIN company AS T3 ON T1.Company_ID = T3.Company_ID GROUP BY T3.Name |
### Instruction:
Who was the Runner(s)-up in the race with a winning score of 67-66-65-69=267?
### Response:
| SELECT runner_s__up FROM table_name_75 WHERE winning_score = 67 - 66 - 65 - 69 = 267 |
### Instruction:
What's the average Top-25, that has an Events that's smaller than 12, and has a Top-5 that is larger than 0?
### Response:
| SELECT AVG("Top-25") FROM table_62975 WHERE "Events" < '12' AND "Top-5" > '0' |
### Instruction:
What week has an attended smaller than 62,723 on October 22, 1961?
### Response:
| SELECT AVG("Week") FROM table_33120 WHERE "Attendance" < '62,723' AND "Date" = 'october 22, 1961' |
### Instruction:
How many years did Germany participate, when the team from Italy was Naples LL Naples and the team from England was London Area Youth London?
### Response:
| SELECT COUNT("Germany") FROM table_30602 WHERE "Italy" = 'Naples LL Naples' AND "England" = 'London Area Youth London' |
### Instruction:
Whare the friends, and ages of all people who are older than the average age of a person? Visualize the result by a pie chart.
### Response:
| SELECT friend, age FROM Person AS T1 JOIN PersonFriend AS T2 ON T1.name = T2.friend WHERE T1.age > (SELECT AVG(age) FROM Person) |
### Instruction:
how many patients were diagnosed with transitory tachypnea of newborn?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.long_title = "Transitory tachypnea of newborn" |
### Instruction:
how many teams finished better than spain in cycling at the 1996 summer olympics men 's team pursuit ?
### Response:
| SELECT COUNT("team") FROM table_204_735 WHERE "rank" < (SELECT "rank" FROM table_204_735 WHERE "team" = 'spain') |
### Instruction:
Which 5'utr splice's coding is 1a 2, when the Variant id is abd'1a 2?
### Response:
| SELECT 5 AS ’utr_splice FROM table_name_70 WHERE coding = "1a 2" AND variant_id = "abd'1a 2" |
### Instruction:
Show me a line chart of how how many booking end date change over the booking end date, and sort by the x-axis in desc please.
### Response:
| SELECT booking_end_date, COUNT(booking_end_date) FROM Apartment_Bookings GROUP BY booking_end_date ORDER BY booking_end_date DESC |
### Instruction:
how many numer of jamaicans granted british citizenship with naturalisation by marriage being 1060
### Response:
| SELECT COUNT(numer_of_jamaicans_granted_british_citizenship) FROM table_11214212_1 WHERE naturalisation_by_marriage = 1060 |
### Instruction:
What is the population (2008) when the capital was Sanniquellie, created later than 1964?
### Response:
| SELECT SUM("Population (2008)") FROM table_60425 WHERE "Capital" = 'sanniquellie' AND "Created" > '1964' |
### Instruction:
What is the Lowest lost for Team Ypiranga-SP where the games Played is more than 10 and the goals Against is greater than 50?
### Response:
| SELECT MIN(lost) FROM table_name_71 WHERE played > 10 AND team = "ypiranga-sp" AND against > 50 |
### Instruction:
Which patients have hydz25 as their 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 = "HYDZ25" |
### Instruction:
Club aik had over 9 small silver medals and more than 8 bronze medals, how many total points did they have?
### Response:
| SELECT AVG("Points") FROM table_54781 WHERE "Small Silver" > '9' AND "Club" = 'aik' AND "Bronze" > '8' |
### Instruction:
What is the German Gewehr 98 when the Danish Krag-J rgensen 1889 is 4.28kg?
### Response:
| SELECT german_gewehr_98 FROM table_name_46 WHERE danish_krag_jørgensen_1889 = "4.28kg" |
### Instruction:
Name the D 47 when it has a D 48 of d 49 and D 42 of r 42
### Response:
| SELECT "D 47" FROM table_78246 WHERE "D 48" = 'd 49' AND "D 42" = 'r 42' |
### Instruction:
What FA cup apps has a total larger than 12 and league apps larger than 38, and FA Cup goals larger than 1?
### Response:
| SELECT COUNT(fa_cup_apps) FROM table_name_50 WHERE total_apps > 12 AND league_apps > 38 AND fa_cup_goals > 1 |
### Instruction:
What is the championsleague when the total was greater than 1, the coppa italia was more than 2, and the Serie A was 1?
### Response:
| SELECT SUM(champions_league) FROM table_name_40 WHERE serie_a = 1 AND total > 1 AND coppa_italia > 2 |
### Instruction:
How many of the patients with colangitis as their primary disease died in or before the year 2186?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "COLANGITIS" AND demographic.dod_year <= "2186.0" |
### Instruction:
Which Total (kg) has a Clean & Jerk smaller than 153, and a Snatch smaller than 100?
### Response:
| SELECT MIN("Total (kg)") FROM table_78743 WHERE "Clean & Jerk" < '153' AND "Snatch" < '100' |
### Instruction:
how many patients have been diagnosed with candidal vulvovaginitis?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE diagnoses.short_title = "Candidal vulvovaginitis" |
### Instruction:
List the top 5 genres by number of tracks. List genres name and total tracks. Visualize by pie chart.
### Response:
| SELECT T1.name, COUNT(*) FROM genres AS T1 JOIN tracks AS T2 ON T2.genre_id = T1.id GROUP BY T1.id ORDER BY COUNT(*) DESC LIMIT 5 |
### Instruction:
Which position has more than 4 points, less than 12 tries, a squad number of more than 1, and where Ali Lauitiiti is a player?
### Response:
| SELECT position FROM table_name_58 WHERE points > 4 AND tries < 12 AND squad_no > 1 AND player = "ali lauitiiti" |
### Instruction:
Which Lead Pitch/mm has a Part Number of tsop40, and a Body Length/mm larger than 18.4?
### Response:
| SELECT MAX(lead_pitch_mm) FROM table_name_1 WHERE part_number = "tsop40" AND body_length_mm > 18.4 |
### Instruction:
What is the Nationality for the university of wisconsin (wcha), and a Player of bob lundeen?
### Response:
| SELECT "Nationality" FROM table_5866 WHERE "College/junior/club team" = 'university of wisconsin (wcha)' AND "Player" = 'bob lundeen' |
### Instruction:
Return a bar chart on how many classes are held in each department?, and list names in ascending order.
### Response:
| SELECT DEPT_CODE, COUNT(*) FROM CLASS AS T1 JOIN COURSE AS T2 ON T1.CRS_CODE = T2.CRS_CODE GROUP BY DEPT_CODE ORDER BY DEPT_CODE |
### Instruction:
What were the winnings for the Chevrolet with a number larger than 29 and scored 102 points?
### Response:
| SELECT "Winnings" FROM table_77725 WHERE "Make" = 'chevrolet' AND "Car #" > '29' AND "Points" = '102' |
### Instruction:
Show the locations of parties with hosts older than 50.
### Response:
| SELECT T3.location FROM party_host AS T1 JOIN host AS T2 ON T1.host_id = T2.host_id JOIN party AS T3 ON T1.party_id = T3.party_id WHERE T2.age > 50 |
### Instruction:
What is the grand slam in 1987, when round shows first round, and Ivan Lendl won?
### Response:
| SELECT "Grand Slam" FROM table_62130 WHERE "Year" = '1987' AND "Round" = 'first round' AND "Winner" = 'ivan lendl' |
### Instruction:
What is the Electorate when the term of office was 1955 1972, for Peter Howson?
### Response:
| SELECT "Electorate" FROM table_59815 WHERE "Term of office" = '1955–1972' AND "Member" = 'peter howson' |
### Instruction:
What is the lowest amount of wins a manager with more than 0.526 pct., ranked higher than 37, and 947 losses has?
### Response:
| SELECT MIN(wins) FROM table_name_8 WHERE pct > 0.526 AND rank < 37 AND losses = 947 |
### Instruction:
calculate the total number of newborn admitted on clinic referral/premature.
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "NEWBORN" AND demographic.admission_location = "CLINIC REFERRAL/PREMATURE" |
### Instruction:
What is the population estimate for the place that gad a 18496 million euro gdp?
### Response:
| SELECT "Population (2004 estimate)" FROM table_16241 WHERE "GDP (2003, PPS in mil. \u20ac )" = '18496' |
### Instruction:
What is Lijsttrekker, when Year is after 1990, and when Chair is 'Ingrid Van Engelshoven'?
### Response:
| SELECT "Lijsttrekker" FROM table_9581 WHERE "Year" > '1990' AND "Chair" = 'ingrid van engelshoven' |
### Instruction:
What's the name of the 2005 tournament that has a 1R in both 2006 and 2002?
### Response:
| SELECT "2005" FROM table_54102 WHERE "2006" = '1r' AND "2002" = '1r' |
### Instruction:
What years did the united states player with a jersey number 25 who attended delaware state play?
### Response:
| SELECT "Years" FROM table_76855 WHERE "Nationality" = 'united states' AND "Jersey Number(s)" < '25' AND "From" = 'delaware state' |
### Instruction:
what is the number of patients whose admission type is emergency and year of birth is less than 2066?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.dob_year < "2066" |
### Instruction:
hematocrit of less than 36 % for male , less than 32 % for female .
### Response:
| SELECT * FROM table_dev_33 WHERE (hematocrit_hct < 36 AND gender = 'male') OR (hematocrit_hct < 32 AND gender = 'female') |
### Instruction:
what do you know about RENTAL CAR in DENVER
### Response:
| SELECT DISTINCT ground_service.transport_type FROM city, ground_service WHERE city.city_name = 'DENVER' AND ground_service.city_code = city.city_code AND ground_service.transport_type = 'RENTAL CAR' |
### Instruction:
Who was RL S d (1st) when FK Pirmasens was RL S dwest (1st)?
### Response:
| SELECT "RL S\u00fcd (1st)" FROM table_73191 WHERE "RL S\u00fcdwest (1st)" = 'FK Pirmasens' |
### Instruction:
what is drug name and drug code of subject name wilbur braatz?
### Response:
| SELECT prescriptions.drug, prescriptions.formulary_drug_cd FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Wilbur Braatz" |
### Instruction:
Find the names and number of works of the three artists who have produced the most songs.
### Response:
| SELECT T1.artist_name, COUNT(*) FROM artist AS T1 JOIN song AS T2 ON T1.artist_name = T2.artist_name GROUP BY T2.artist_name ORDER BY COUNT(*) DESC LIMIT 3 |
### Instruction:
in 2102, patient 012-22602 has made an admission?
### Response:
| SELECT COUNT(*) > 0 FROM patient WHERE patient.uniquepid = '012-22602' AND STRFTIME('%y', patient.hospitaladmittime) = '2102' |
### Instruction:
What is the Gauge of Locomotive G534 Owned by Aurizon which has a Status of Operational?
### Response:
| SELECT "Gauge" FROM table_6994 WHERE "Status" = 'operational' AND "Owner" = 'aurizon' AND "Locomotive" = 'g534' |
### Instruction:
What primary sponsor(s) owns ford fusion car(s) and the crew chief is Drew Blickensderfer?
### Response:
| SELECT "Primary Sponsor(s)" FROM table_15220 WHERE "Car(s)" = 'ford fusion' AND "Crew Chief" = 'drew blickensderfer' |
### Instruction:
How many papers did Luke Campbell write last year ?
### Response:
| SELECT DISTINCT COUNT(paper.paperid) FROM author, paper, writes WHERE author.authorname = 'Luke Campbell' AND paper.year = YEAR(CURDATE()) - 1 AND writes.authorid = author.authorid AND writes.paperid = paper.paperid |
### Instruction:
Most frequent users of a word in posts.
### Response:
| SELECT OwnerUserId AS "user_link", COUNT(Id) AS "posts" FROM Posts WHERE LOWER(Body) LIKE LOWER('%##word##%') AND CreationDate < '##date##' GROUP BY OwnerUserId ORDER BY COUNT(Id) DESC |
### Instruction:
What is the team when the high assists was stephen curry (7) and the high points was monta ellis (27)?
### Response:
| SELECT "Team" FROM table_29927 WHERE "High assists" = 'Stephen Curry (7)' AND "High points" = 'Monta Ellis (27)' |
### Instruction:
What was the score on 2010-07-13 when Abby wambach had the assist/pass?
### Response:
| SELECT "Score" FROM table_66553 WHERE "Assist/pass" = 'abby wambach' AND "Date" = '2010-07-13' |
### Instruction:
which was from the lion king , can you feel the love tonight or candle on the water ?
### Response:
| SELECT "title" FROM table_204_573 WHERE "title" IN ('"can you feel the love tonight"', '"candle on the water"') AND "film" = 'the lion king' |
### Instruction:
Which Regular Season Champion(s) has a Tournament Champion of west virginia in 1955 56?
### Response:
| SELECT "Regular Season Champion(s)" FROM table_34745 WHERE "Tournament Champion" = 'west virginia' AND "Year" = '1955–56' |
### Instruction:
How many Matches have an S/Rate smaller than 133.72, and a Team of yorkshire carnegie?
### Response:
| SELECT COUNT("Matches") FROM table_61281 WHERE "S/Rate" < '133.72' AND "Team" = 'yorkshire carnegie' |
### Instruction:
Name the tournament for 2006 of a, 1996 of 1r and 2004 of 1r
### Response:
| SELECT tournament FROM table_name_68 WHERE 2006 = "a" AND 1996 = "1r" AND 2004 = "1r" |
### Instruction:
I have to take an PHYSIOL class .
### Response:
| SELECT DISTINCT course.name, course.number, program_course.workload FROM course, program_course WHERE course.department LIKE '%PHYSIOL%' AND program_course.course_id = course.course_id AND program_course.workload < 3 |
### Instruction:
When the record was 19-26-11 and more than 16,839 people attended the game what was the score?
### Response:
| SELECT "Score" FROM table_9362 WHERE "Attendance" > '16,839' AND "Record" = '19-26-11' |
### Instruction:
Which country has a rollercoaster that opened in 2002, is a spinning coaster, and is located in Disney's Animal Kingdom?
### Response:
| SELECT country FROM table_name_76 WHERE opened = 2002 AND model = "spinning coaster" AND park = "disney's animal kingdom" |
### Instruction:
what was the floor exercise score with a pommel horse score of 9.65 and horizontal bar score more than 9.475?
### Response:
| SELECT MAX(floor_exercise) FROM table_name_81 WHERE pommel_horse = 9.65 AND horizontal_bar > 9.475 |
### Instruction:
hemoglobin < 8.5 g / dl or > or = to 17 g / dl
### Response:
| SELECT * FROM table_train_147 WHERE hemoglobin_a1c_hba1c < 8.5 OR hemoglobin_a1c_hba1c >= 17 |
### Instruction:
What is the 110 m H when the 1500 m time is 693 4:37.96 min?
### Response:
| SELECT "110 m H" FROM table_13411 WHERE "1500 m" = '693 4:37.96 min' |
### Instruction:
For those employees who did not have any job in the past, show me about the correlation between commission_pct and department_id in a scatter chart.
### Response:
| SELECT COMMISSION_PCT, DEPARTMENT_ID FROM employees WHERE NOT EMPLOYEE_ID IN (SELECT EMPLOYEE_ID FROM job_history) |
### Instruction:
Which Elevation + Height has a Delivery of barge and a Location of bikini, yurochi aka irioj (dog)?
### Response:
| SELECT elevation_ + _height FROM table_name_96 WHERE delivery = "barge" AND location = "bikini, yurochi aka irioj (dog)" |
### Instruction:
How many department stores does the store chain South have?
### Response:
| SELECT COUNT(*) FROM department_stores AS T1 JOIN department_store_chain AS T2 ON T1.dept_store_chain_id = T2.dept_store_chain_id WHERE T2.dept_store_chain_name = "South" |
### Instruction:
What is the average gold medals of the nation with 2 total medals, more than 1 bronze, and less than 0 silvers?
### Response:
| SELECT AVG("Gold") FROM table_8302 WHERE "Total" = '2' AND "Bronze" > '1' AND "Silver" < '0' |
### Instruction:
what was the name of the title previous to david & shlomo ?
### Response:
| SELECT "title" FROM table_203_325 WHERE "year" < (SELECT "year" FROM table_203_325 WHERE "title" = 'david & shlomo') ORDER BY "year" DESC LIMIT 1 |
### Instruction:
For each reviewer id, what is the title and rating for the movie with the smallest rating?
### Response:
| SELECT T2.title, T1.rid, T1.stars, MIN(T1.stars) FROM rating AS T1 JOIN movie AS T2 ON T1.mid = T2.mid GROUP BY T1.rid |
### Instruction:
Which Team has Balls smaller than 258, and Inns of 10, and Matches smaller than 12?
### Response:
| SELECT "Team" FROM table_61282 WHERE "Balls" < '258' AND "Inns" = '10' AND "Matches" < '12' |
### Instruction:
Possibly, an answer in comments.
### Response:
| SELECT p.Id AS "post_link", c.Text FROM Posts AS p INNER JOIN Comments AS c ON c.PostId = p.Id WHERE c.Text LIKE '%answer%' AND p.AnswerCount = 0 AND p.ClosedDate IS NULL ORDER BY p.CreationDate |
### Instruction:
what were the result in semifinals when saengsawang ( tha ) l 9-15 was in 1/8 finals?
### Response:
| SELECT "Semifinals" FROM table_22980 WHERE "1/8 Finals" = 'Saengsawang ( THA ) L 9-15' |
### Instruction:
what number of male patients were given glucagon?
### Response:
| SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.gender = "M" AND prescriptions.drug = "Glucagon" |
### Instruction:
What is the magazine type that ran from March 3, 2009 February 5, 2010?
### Response:
| SELECT "Magazine type" FROM table_50966 WHERE "Magazine run" = 'march 3, 2009–february 5, 2010' |
### Instruction:
When Naomi Owen won the Womens Singles and Ricardo Walther won the Mens Singles, who won the mixed veteran?
### Response:
| SELECT "Mixed Veteran" FROM table_74251 WHERE "Womens Singles" = 'Naomi Owen' AND "Mens singles" = 'Ricardo Walther' |
### Instruction:
What is the sum of the distances in 2nd for ranks higher than 4 and distance for 1st less than 111.5?
### Response:
| SELECT SUM("2nd (m)") FROM table_39437 WHERE "Rank" > '4' AND "1st (m)" < '111.5' |
### Instruction:
how many patients whose gender is f and lab test name is granular casts?
### 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 = "Granular Casts" |
### Instruction:
What was the launch date for the sattelite with ado that was 4 kg and 3 meters in diameter?
### Response:
| SELECT "Launch date (UTC)" FROM table_24411 WHERE "Usage" = 'ado' AND "Mass(kg)" = '4' AND "Diameter(m)" = '3' |
### Instruction:
How many average votes did producer carlos coelho have in a higher place than 6 and with a draw larger than 5?
### Response:
| SELECT AVG("Votes") FROM table_40934 WHERE "Place" < '6' AND "Producer" = 'carlos coelho' AND "Draw" > '5' |
### Instruction:
WHO WAS THE CENTERFOLD MODEL IN THE ISSUE WHERE OSCAR DE LA HOYA ANSWERED THE 20 QUESTIONS?
### Response:
| SELECT "Centerfold model" FROM table_20221 WHERE "20 Questions" = 'Oscar de la Hoya' |
### Instruction:
What is the lowest episode number that had a ratings/share (18-49) of 1.1/3?
### Response:
| SELECT MIN(episode_number) FROM table_25751274_2 WHERE rating / SHARE(18 - 49) = 1.1 / 3 |
### Instruction:
Total games for smaller than 15 points, date of november 15, and larger that 13,722 in attendance?
### Response:
| SELECT COUNT(game) FROM table_name_2 WHERE points < 15 AND date = "november 15" AND attendance > 13 OFFSET 722 |
### Instruction:
return me the paper in Databases area with the most citations .
### Response:
| SELECT publication.title FROM domain, domain_publication, publication WHERE domain.did = domain_publication.did AND domain.name = 'Databases' AND publication.pid = domain_publication.pid ORDER BY publication.citation_num DESC LIMIT 1 |
### Instruction:
What 12:30 pm has an 8:00 am of the today show with katie couric & matt lauer?
### Response:
| SELECT "12:30 pm" FROM table_61739 WHERE "8:00 am" = 'the today show with katie couric & matt lauer' |
### Instruction:
What is the average grid that has over 8 laps, a Time/Retired of +2 laps, and peter gethin driving?
### Response:
| SELECT AVG(grid) FROM table_name_61 WHERE laps > 8 AND time_retired = "+2 laps" AND driver = "peter gethin" |
### Instruction:
For each company, return the company name and the name of the building its office is located in.
### Response:
| SELECT T3.name, T2.name FROM office_locations AS T1 JOIN buildings AS T2 ON T1.building_id = T2.id JOIN companies AS T3 ON T1.company_id = T3.id |
### Instruction:
what is discharge time and diagnoses long title of subject id 52012?
### Response:
| SELECT demographic.dischtime, diagnoses.long_title FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "52012" |
### Instruction:
What artist had a single called Alien Rock b/w Combat, The Remix on 12 inch Vinyl format?
### Response:
| SELECT "Artist" FROM table_11467 WHERE "Format" = '12 inch vinyl' AND "Single" = 'alien rock b/w combat, the remix' |
### Instruction:
what is the difference years won for crettyard and greystones
### Response:
| SELECT ABS((SELECT "years won" FROM table_204_772 WHERE "team" = 'crettyard') - (SELECT "years won" FROM table_204_772 WHERE "team" = 'greystones')) |
### Instruction:
Can you tell me the lowest Points won that has the Total matches of 4, and the Total W-L-H of 4-0-0?
### Response:
| SELECT MIN(points_won) FROM table_name_66 WHERE total_matches = 4 AND total_w_l_h = "4-0-0" |
Subsets and Splits