answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT season FROM table_name_1 WHERE match = "roma-napoli" AND date = "12 september 1993" | What season had the Roma-Napoli match on 12 September 1993? | CREATE TABLE table_name_1 (season VARCHAR, match VARCHAR, date VARCHAR) |
SELECT COUNT(series__number) FROM table_16175064_3 WHERE writer_s_ = "Alexa Wyatt" | What is the total number of episodes where alexa wyatt is the writer? | CREATE TABLE table_16175064_3 (series__number VARCHAR, writer_s_ VARCHAR) |
SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 89875) AND prescriptions.drug IN ('furosemide', 'metoprolol tartrate', 'hydralazine hcl') AND STRFTIME('%y-%m', prescriptions.startdate) >= '2104-11' | had patient 89875 been prescribed metoprolol tartrate, furosemide, or hydralazine hcl since 11/2104? | CREATE TABLE admissions (
row_id number,
subject_id number,
hadm_id number,
admittime time,
dischtime time,
admission_type text,
admission_location text,
discharge_location text,
insurance text,
language text,
marital_status text,
ethnicity text,
age number
)
CREATE ... |
SELECT club_province FROM table_name_28 WHERE caps > 18 AND position = "fly-half" | What club/province for the player with over 18 caps and plays the fly-half? | CREATE TABLE table_name_28 (club_province VARCHAR, caps VARCHAR, position VARCHAR) |
SELECT director_s_ FROM table_16175064_3 WHERE writer_s_ = "Chris Hawkshaw" | Who is the director when Chris Hawkshaw is the writer? | CREATE TABLE table_16175064_3 (director_s_ VARCHAR, writer_s_ VARCHAR) |
SELECT "Nationality" FROM table_77839 WHERE "Position" = 'w' AND "College/Junior/Club Team (League)" = 'leninogorsk (russia-2)' | What nationality is the draft pick with w position from leninogorsk (russia-2)? | CREATE TABLE table_77839 (
"Round" real,
"Player" text,
"Position" text,
"Nationality" text,
"College/Junior/Club Team (League)" text
) |
SELECT driver FROM table_name_14 WHERE laps < 18 AND grid < 16 | What driver has less than 18 laps and a grid number under 16? | CREATE TABLE table_name_14 (driver VARCHAR, laps VARCHAR, grid VARCHAR) |
SELECT season__number FROM table_16175064_3 WHERE director_s_ = "Donald Crombie" AND series__number = 40 | What is the season number of the episode directed by Donald Crombie and the series number is 40? | CREATE TABLE table_16175064_3 (season__number VARCHAR, director_s_ VARCHAR, series__number VARCHAR) |
SELECT "venue" FROM table_203_614 ORDER BY "date" DESC LIMIT 1 | what venue was the latest match played at ? | CREATE TABLE table_203_614 (
id number,
"#" number,
"date" text,
"venue" text,
"opponent" text,
"score" text,
"result" text,
"competition" text
) |
SELECT constructor FROM table_name_5 WHERE laps > 70 AND time_retired = "+12.535" | Who constructed the car with laps more than 70 and a time/retired of +12.535? | CREATE TABLE table_name_5 (constructor VARCHAR, laps VARCHAR, time_retired VARCHAR) |
SELECT released_date FROM table_1616608_2 WHERE western_title = "Super Mario 64 DS" | What is the released date for Super Mario 64 DS? | CREATE TABLE table_1616608_2 (released_date VARCHAR, western_title VARCHAR) |
SELECT ___ave_on_prev_season FROM table_2970978_1 WHERE competition = "League Two" | What is every value for average on previous season if the competition is league two? | CREATE TABLE table_2970978_1 (
___ave_on_prev_season VARCHAR,
competition VARCHAR
) |
SELECT MAX(laps) FROM table_name_52 WHERE time_retired = "+1 lap" AND driver = "alexander wurz" AND grid < 14 | What was Alexander Wurz's highest laps when he has a grid less than 14 and a time/retired of +1 lap. | CREATE TABLE table_name_52 (laps INTEGER, grid VARCHAR, time_retired VARCHAR, driver VARCHAR) |
SELECT game_modes FROM table_1616608_2 WHERE released_date = "2007" | What are the game modes for the game released in 2007? | CREATE TABLE table_1616608_2 (game_modes VARCHAR, released_date VARCHAR) |
SELECT c.UserId AS "user_link", c.UserDisplayName, AVG(CAST(c.Score AS FLOAT)) AS "average_score", SUM(c.Score) AS "total_score", COUNT(c.Id) AS "total_count", 'site://users/' + CAST(c.UserId AS TEXT) + '?tab=activity&sort=comments' AS "link_to_comments" FROM Comments AS c GROUP BY c.UserId, c.UserDisplayName HAVING CO... | User with highest average comment score. | CREATE TABLE PostTags (
PostId number,
TagId number
)
CREATE TABLE Tags (
Id number,
TagName text,
Count number,
ExcerptPostId number,
WikiPostId number
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
... |
SELECT home_team FROM table_name_54 WHERE away_team = "footscray" | Who was Footscray's opponent on June 15th of 1968? | CREATE TABLE table_name_54 (home_team VARCHAR, away_team VARCHAR) |
SELECT COUNT(western_title) FROM table_1616608_2 WHERE chinese_title = "摸摸耀西-云中漫步" | How many games share their western title with the Chinese title of 摸摸耀西-云中漫步 ? | CREATE TABLE table_1616608_2 (western_title VARCHAR, chinese_title VARCHAR) |
SELECT exaltation FROM table_name_98 WHERE domicile = "saturn" AND fall = "jupiter" | Which exaltation has a domicile of Saturn and a fall of Jupiter? | CREATE TABLE table_name_98 (
exaltation VARCHAR,
domicile VARCHAR,
fall VARCHAR
) |
SELECT MAX(joined) FROM table_name_43 WHERE division = "west" AND location = "highland township" | What was the most recent year that a team located in Highland Township and a member of the West Division joined the Kensington Lakes Activities Association? | CREATE TABLE table_name_43 (joined INTEGER, division VARCHAR, location VARCHAR) |
SELECT released_date FROM table_1616608_2 WHERE western_title = "Polarium" | What was the released date of Polarium? | CREATE TABLE table_1616608_2 (released_date VARCHAR, western_title VARCHAR) |
SELECT COUNT("player") FROM table_204_784 WHERE "total" = 4 | how many players had a total of 4 ? | CREATE TABLE table_204_784 (
id number,
"player" text,
"league" number,
"cup" number,
"europa league" number,
"total" number
) |
SELECT pole_position FROM table_name_87 WHERE race = "belgian grand prix" | What was the pole position for the belgian grand prix? | CREATE TABLE table_name_87 (pole_position VARCHAR, race VARCHAR) |
SELECT game_modes FROM table_1616608_2 WHERE pinyin = "Zhígǎn Yī Bǐ" | What game modes are there when the pinyin is zhígǎn yī bǐ ? | CREATE TABLE table_1616608_2 (game_modes VARCHAR, pinyin VARCHAR) |
SELECT 125 AS cc_winner FROM table_12186237_1 WHERE circuit = "Phillip Island" | Who is the 125cc winnder for the Phillip Island circuit? | CREATE TABLE table_12186237_1 (
circuit VARCHAR
) |
SELECT race AS Winner FROM table_name_53 WHERE race = "australian grand prix" | Who won the australian grand prix? | CREATE TABLE table_name_53 (race VARCHAR) |
SELECT donor_payment FROM table_16175217_1 WHERE children_per_donor = "6 children" AND allowed_recipients = "no data" | What is the status of donor payment in the country where there are 6 children per donor and no data on allowed recipients? | CREATE TABLE table_16175217_1 (donor_payment VARCHAR, children_per_donor VARCHAR, allowed_recipients VARCHAR) |
SELECT Users.Id AS user_id, COUNT(DISTINCT userPostsBeforeT.TagId) AS NumSubjectAreas FROM Users AS users LEFT JOIN (SELECT OwnerUserId, PostId, PostTypeId, PT.TagId FROM Posts AS P JOIN PostTags AS PT ON P.Id = Pt.PostId) AS userPostsBeforeT ON userPostsBeforeT.OwnerUserId = Users.Id AND userPostsBeforeT.PostTypeId = ... | get user post subject tags. | CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE FlagTypes (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
... |
SELECT pole_position FROM table_name_39 WHERE location = "jerez" | What was the pole position for jerez? | CREATE TABLE table_name_39 (pole_position VARCHAR, location VARCHAR) |
SELECT donor_payment FROM table_16175217_1 WHERE children_per_donor = "12 children to 6 families (2 per family)" | What are donor payments in the country where there are 12 children to 6 families (2 per family)? | CREATE TABLE table_16175217_1 (donor_payment VARCHAR, children_per_donor VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Private" AND demographic.discharge_location = "LEFT AGAINST MEDICAL ADVI" | how many patients whose insurance is private and discharge location is left against medical advi? | CREATE TABLE procedures (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE prescriptions (
subject_id text,
hadm_id text,
icustay_id text,
drug_type text,
drug text,
formulary_drug_cd text,
route text,
drug_dose text
)
... |
SELECT enzyme FROM table_name_66 WHERE disorder = "ornithine transcarbamylase deficiency" | What is the enzyme involved in the disorder of Ornithine Transcarbamylase deficiency? | CREATE TABLE table_name_66 (enzyme VARCHAR, disorder VARCHAR) |
SELECT donor_payment FROM table_16175217_1 WHERE country = "Belgium" | What is the donor payment in Belgium? | CREATE TABLE table_16175217_1 (donor_payment VARCHAR, country VARCHAR) |
SELECT prescriptions.drug FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.name = "Paul Edwards" | what is drug name of subject name paul edwards? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
language text,
religion text,
... |
SELECT measurements FROM table_name_15 WHERE disorder = "ornithine transcarbamylase deficiency" | What lab measurements can help diagnosie ornithine transcarbamylase deficiency? | CREATE TABLE table_name_15 (measurements VARCHAR, disorder VARCHAR) |
SELECT country FROM table_16175217_1 WHERE children_per_donor = "8 children" AND donor_payment = "no data" | What is the country where there are 8 children per donor and no data for donor payments? | CREATE TABLE table_16175217_1 (country VARCHAR, children_per_donor VARCHAR, donor_payment VARCHAR) |
SELECT car_model FROM table_name_35 WHERE manufacturer = "saab" AND driver = "dean randle" | What Car Model has the Manufacturer of Saab, and Driver Dean Randle? | CREATE TABLE table_name_35 (
car_model VARCHAR,
manufacturer VARCHAR,
driver VARCHAR
) |
SELECT abb FROM table_name_30 WHERE disorder = "carbamoyl phosphate synthetase i deficiency" | What is the abbreviation of the enzyme involved in carbamoyl phosphate synthetase i deficiency? | CREATE TABLE table_name_30 (abb VARCHAR, disorder VARCHAR) |
SELECT children_per_donor FROM table_16175217_1 WHERE allowed_recipients = "Married or in cohabitation" | What are the children per donor in the country where the allowed recipients are married or in cohabitation? | CREATE TABLE table_16175217_1 (children_per_donor VARCHAR, allowed_recipients VARCHAR) |
SELECT (SELECT 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 = '012-27355' AND NOT patient.hospitaldischargetime IS NULL ORDER BY patient.hospi... | what is the direct bilirubin change and difference of patient 012-27355 last measured on the first hospital visit compared to the first value measured on the first hospital visit? | CREATE TABLE medication (
medicationid number,
patientunitstayid number,
drugname text,
dosage text,
routeadmin text,
drugstarttime time,
drugstoptime time
)
CREATE TABLE intakeoutput (
intakeoutputid number,
patientunitstayid number,
cellpath text,
celllabel text,
cellv... |
SELECT venue FROM table_name_67 WHERE home_team = "melbourne" | what is the venue when the home team is melbourne? | CREATE TABLE table_name_67 (venue VARCHAR, home_team VARCHAR) |
SELECT children_per_donor FROM table_16175217_1 WHERE allowed_recipients = "no data" | List the possible children per donor levels for countries where the allowed recipients is no data. | CREATE TABLE table_16175217_1 (children_per_donor VARCHAR, allowed_recipients VARCHAR) |
SELECT "Title" FROM table_32063 WHERE "Japan" = 'august 23, 2012' | Tell me the title for japan august 23, 2012 | CREATE TABLE table_32063 (
"Title" text,
"Japan" text,
"North America" text,
"Europe" text,
"Australia" text
) |
SELECT date FROM table_name_26 WHERE home_team = "st kilda" | what is the date when the home team is st kilda? | CREATE TABLE table_name_26 (date VARCHAR, home_team VARCHAR) |
SELECT missouri_vs FROM table_16201038_4 WHERE at_neutral_site = "MU, 2-1" | Against which team does Missouri Tigers have a record of mu, 2-1 at a neutral site? | CREATE TABLE table_16201038_4 (missouri_vs VARCHAR, at_neutral_site VARCHAR) |
SELECT MIN(attendance) FROM table_23308178_6 WHERE date = "December 23" | What was the lowest attendance for games played on december 23? | CREATE TABLE table_23308178_6 (
attendance INTEGER,
date VARCHAR
) |
SELECT date FROM table_name_47 WHERE venue = "junction oval" | what is the date when the venue is junction oval? | CREATE TABLE table_name_47 (date VARCHAR, venue VARCHAR) |
SELECT missouri_vs FROM table_16201038_4 WHERE at_opponents_venue = "UI, 4-1" | Which is the team against which Missouri Tigers have a record of ui, 4-1 at the opponent's venue?How | CREATE TABLE table_16201038_4 (missouri_vs VARCHAR, at_opponents_venue VARCHAR) |
SELECT COUNT(mls_team) FROM table_25518547_3 WHERE affiliation = "University of Maryland" | How many teams drafted players from the University of Maryland? | CREATE TABLE table_25518547_3 (
mls_team VARCHAR,
affiliation VARCHAR
) |
SELECT home_team AS score FROM table_name_24 WHERE venue = "mcg" | What is the home team score when played at mcg? | CREATE TABLE table_name_24 (home_team VARCHAR, venue VARCHAR) |
SELECT COUNT(last_5_meetings) FROM table_16201038_4 WHERE overall_record = "MU, 21-19" | How many times did the team achieve an overrall record of mu, 21-19? | CREATE TABLE table_16201038_4 (last_5_meetings VARCHAR, overall_record VARCHAR) |
SELECT date_order_placed, COUNT(date_order_placed) FROM Customers AS T1 JOIN Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T1.customer_name = "Jeramie" | What are the dates of the orders made by the customer named 'Jeramie', and count them by a line chart | CREATE TABLE Invoices (
invoice_number INTEGER,
invoice_date DATETIME,
invoice_details VARCHAR(255)
)
CREATE TABLE Order_Items (
order_item_id INTEGER,
product_id INTEGER,
order_id INTEGER,
order_item_status VARCHAR(10),
order_item_details VARCHAR(255)
)
CREATE TABLE Shipment_Items (
... |
SELECT away_team FROM table_name_41 WHERE venue = "junction oval" | who is the away team when played at junction oval? | CREATE TABLE table_name_41 (away_team VARCHAR, venue VARCHAR) |
SELECT at_neutral_site FROM table_16201038_4 WHERE overall_record = "UI, 27-16" | What is the record at the neutral site for when the overall record is ui, 27-16? | CREATE TABLE table_16201038_4 (at_neutral_site VARCHAR, overall_record VARCHAR) |
SELECT network FROM table_name_99 WHERE name = "bbtv channel 7" | What's the network of BBTV Channel 7? | CREATE TABLE table_name_99 (
network VARCHAR,
name VARCHAR
) |
SELECT SUM(top_speed__km_h_) FROM table_name_84 WHERE model = "1.8 20v t" | What is the top speed of the model 1.8 20v t? | CREATE TABLE table_name_84 (top_speed__km_h_ INTEGER, model VARCHAR) |
SELECT at_opponents_venue FROM table_16201038_4 WHERE last_5_meetings = "MU, 4-1" AND at_neutral_site = "Tied, 0-0" | What is the record at the opponent's venue against the team for which the record for the last 5 meetings is mu, 4-1 and the record at the neutral site is tied, 0-0? | CREATE TABLE table_16201038_4 (at_opponents_venue VARCHAR, last_5_meetings VARCHAR, at_neutral_site VARCHAR) |
SELECT MIN("Week") FROM table_42293 WHERE "Date" = 'december 26, 1999' | What is the lowest week for December 26, 1999 | CREATE TABLE table_42293 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) |
SELECT max_torque__nm__at_rpm FROM table_name_82 WHERE model = "1.4 16v" | What is the max torque of model 1.4 16v? | CREATE TABLE table_name_82 (max_torque__nm__at_rpm VARCHAR, model VARCHAR) |
SELECT stamp_duty_reserve_tax FROM table_1618358_1 WHERE over_total_tax_revenue__in__percentage_ = "0.79" | What is the stamp duty reserve tax when the percentage over total tax revenue is 0.79? | CREATE TABLE table_1618358_1 (stamp_duty_reserve_tax VARCHAR, over_total_tax_revenue__in__percentage_ VARCHAR) |
SELECT original_air_date FROM table_20360535_4 WHERE directed_by = "Ben Jones" AND written_by = "Steven Melching" | what is the original air date of the episode directed by Ben Jones and written by Steven Melching? | CREATE TABLE table_20360535_4 (
original_air_date VARCHAR,
directed_by VARCHAR,
written_by VARCHAR
) |
SELECT rounds FROM table_name_64 WHERE driver = "ken wharton" | How many rounds did Ken Wharton go? | CREATE TABLE table_name_64 (rounds VARCHAR, driver VARCHAR) |
SELECT over_gdp__in__percentage_ FROM table_1618358_1 WHERE standard_stamp_duty = "367" | When the standard stamp duty is 367 what is the percentage over gdp? | CREATE TABLE table_1618358_1 (over_gdp__in__percentage_ VARCHAR, standard_stamp_duty VARCHAR) |
SELECT COUNT(*) FROM addresses WHERE state_province_county = "Colorado" | Count the number of cities in the state of Colorado. | CREATE TABLE individuals (
individual_id number,
individual_first_name text,
individual_middle_name text,
inidividual_phone text,
individual_email text,
individual_address text,
individual_last_name text
)
CREATE TABLE party_services (
booking_id number,
customer_id number,
serv... |
SELECT driver FROM table_name_56 WHERE chassis = "166 c 500" | What driver has a 166 c 500 chassis? | CREATE TABLE table_name_56 (driver VARCHAR, chassis VARCHAR) |
SELECT over_gdp__in__percentage_ FROM table_1618358_1 WHERE stamp_duty_reserve_tax = "3,669" | When the stamp duty reserve tax is 3,669 what is the percentage over gdp? | CREATE TABLE table_1618358_1 (over_gdp__in__percentage_ VARCHAR, stamp_duty_reserve_tax VARCHAR) |
SELECT date FROM table_name_92 WHERE opposing_team = "united states" | What day was United States the opposing team? | CREATE TABLE table_name_92 (
date VARCHAR,
opposing_team VARCHAR
) |
SELECT name FROM table_name_17 WHERE decile = "3" AND roll < 310 AND area = "onehunga" | What is the Onehunga school with a decile 3 and smaller than 310 rolls? | CREATE TABLE table_name_17 (name VARCHAR, area VARCHAR, decile VARCHAR, roll VARCHAR) |
SELECT year FROM table_1618358_1 WHERE over_total_tax_revenue__in__percentage_ = "0.65" | During what years are the percentage over total tax revenue is 0.65? | CREATE TABLE table_1618358_1 (year VARCHAR, over_total_tax_revenue__in__percentage_ VARCHAR) |
SELECT 2006 FROM table_name_84 WHERE 2004 = "2r" AND 2005 = "2r" | What is the 2006 that has a 2r in 2004, and a 2r in 2005? | CREATE TABLE table_name_84 (
Id VARCHAR
) |
SELECT authority FROM table_name_38 WHERE area = "ellerslie" AND decile = "7" | What is the authority status of the school in Ellerslie with a decile of 7? | CREATE TABLE table_name_38 (authority VARCHAR, area VARCHAR, decile VARCHAR) |
SELECT COUNT(at_opponents_venue) FROM table_16201038_3 WHERE missouri_vs = "Oklahoma" | Name the total number of opponets venue for oklahoma | CREATE TABLE table_16201038_3 (at_opponents_venue VARCHAR, missouri_vs VARCHAR) |
SELECT championship FROM table_22858557_1 WHERE opponent_in_final = "Steffi Graf" | How many championships have there been with Steffi Graf? | CREATE TABLE table_22858557_1 (
championship VARCHAR,
opponent_in_final VARCHAR
) |
SELECT MAX(roll) FROM table_name_12 WHERE authority = "state" AND name = "sylvia park school" | What is the biggest roll number of Sylvia Park School, which has a state authority? | CREATE TABLE table_name_12 (roll INTEGER, authority VARCHAR, name VARCHAR) |
SELECT COUNT(last_5_meetings) FROM table_16201038_3 WHERE missouri_vs = "Texas Tech" | Name the total number of last 5 meetings for texas tech | CREATE TABLE table_16201038_3 (last_5_meetings VARCHAR, missouri_vs VARCHAR) |
SELECT MIN("year") FROM table_203_248 | what was the lowest year stamped ? | CREATE TABLE table_203_248 (
id number,
"code" text,
"year" number
) |
SELECT name FROM table_name_41 WHERE decile = "1" AND authority = "state" AND area = "otahuhu" | What is the name of the school with a decile of 1, a state authority, and located in Otahuhu? | CREATE TABLE table_name_41 (name VARCHAR, area VARCHAR, decile VARCHAR, authority VARCHAR) |
SELECT COUNT(series_sorted) FROM table_1620397_2 WHERE released = "April 2010" | Name the total number of series sorted for when released is april 2010 | CREATE TABLE table_1620397_2 (series_sorted VARCHAR, released VARCHAR) |
SELECT "English title" FROM table_38922 WHERE "Director" = 'jayme monjardim' | What is the English title of the film Directed by Jayme Monjardim? | CREATE TABLE table_38922 (
"Year (Ceremony)" real,
"Original title" text,
"English title" text,
"Director" text,
"Result" text
) |
SELECT special_notes FROM table_name_56 WHERE year < 2009 | What is the special notes value for years under 2009? | CREATE TABLE table_name_56 (special_notes VARCHAR, year INTEGER) |
SELECT author FROM table_1620397_2 WHERE series_sorted = "6Y/AE" | Name the author for 6y/ae | CREATE TABLE table_1620397_2 (author VARCHAR, series_sorted VARCHAR) |
SELECT kickoff_ AS "a_" FROM table_name_9 WHERE attendance = "58,120" | Which kickoff had an attendance of 58,120? | CREATE TABLE table_name_9 (
kickoff_ VARCHAR,
a_ VARCHAR,
attendance VARCHAR
) |
SELECT COUNT(year) FROM table_name_39 WHERE theme = "toronto maple leafs" AND issue_price = 24.95 | How many years have a theme of Toronto Maple Leafs and an Issue Price of 24.95? | CREATE TABLE table_name_39 (year VARCHAR, theme VARCHAR, issue_price VARCHAR) |
SELECT author FROM table_1620397_2 WHERE featuring = "Peri" AND released = "April 2010" | Name the author for peri and april 2010 | CREATE TABLE table_1620397_2 (author VARCHAR, featuring VARCHAR, released VARCHAR) |
SELECT ACC_Road, AVG(Team_ID) FROM basketball_match GROUP BY ACC_Road ORDER BY AVG(Team_ID) DESC | Give me the comparison about the average of Team_ID over the ACC_Road , and group by attribute ACC_Road, I want to sort in desc by the Y-axis. | CREATE TABLE basketball_match (
Team_ID int,
School_ID int,
Team_Name text,
ACC_Regular_Season text,
ACC_Percent text,
ACC_Home text,
ACC_Road text,
All_Games text,
All_Games_Percent int,
All_Home text,
All_Road text,
All_Neutral text
)
CREATE TABLE university (
Scho... |
SELECT winner FROM table_name_51 WHERE circuit = "winton motor raceway" | Who was the winner for the Winton Motor Raceway circuit? | CREATE TABLE table_name_51 (winner VARCHAR, circuit VARCHAR) |
SELECT released FROM table_1620397_2 WHERE author = "Pat Mills" | Name the released for pat mills | CREATE TABLE table_1620397_2 (released VARCHAR, author VARCHAR) |
SELECT MIN("Episode Number") FROM table_72739 WHERE "Who knows the most about the guest host? Panelists" = 'Reggie Yates and Kelly Osbourne' | Name the least number of episodes for the panelists of reggie yates and kelly osbourne | CREATE TABLE table_72739 (
"Episode Number" real,
"Air Date" text,
"Guest Host" text,
"Musical Guest (Song performed)" text,
"Who knows the most about the guest host? Panelists" text,
"Coat Of Cash Wearing Celebrity" text
) |
SELECT team FROM table_name_47 WHERE race_title = "mallala" | What was the team that held the race title of Mallala? | CREATE TABLE table_name_47 (team VARCHAR, race_title VARCHAR) |
SELECT featuring FROM table_1620397_2 WHERE author = "Pat Mills" | Name the featuring for pat mills | CREATE TABLE table_1620397_2 (featuring VARCHAR, author VARCHAR) |
SELECT Users.Id AS "user_link", TagName, COUNT(*) AS UpVotes FROM Tags INNER JOIN PostTags ON PostTags.TagId = Tags.Id INNER JOIN Posts ON Posts.ParentId = PostTags.PostId INNER JOIN Votes ON Votes.PostId = Posts.Id AND VoteTypeId = 2 INNER JOIN Users ON Users.Id = Posts.OwnerUserId WHERE LOWER(Location) LIKE '%kottaya... | Upvote : Top user in kerala - VB.NET. | CREATE TABLE PendingFlags (
Id number,
FlagTypeId number,
PostId number,
CreationDate time,
CloseReasonTypeId number,
CloseAsOffTopicReasonTypeId number,
DuplicateOfQuestionId number,
BelongsOnBaseHostAddress text
)
CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number... |
SELECT driver FROM table_name_60 WHERE laps < 9 AND grid = 13 | Name the driver for Laps less than 9 and a grid of 13 | CREATE TABLE table_name_60 (driver VARCHAR, laps VARCHAR, grid VARCHAR) |
SELECT last_5_meetings FROM table_16201038_5 WHERE overall_record = "UM, 2-1" | What are the outcomes of the last 5 meetings where the overall record is UM, 2-1? | CREATE TABLE table_16201038_5 (last_5_meetings VARCHAR, overall_record VARCHAR) |
SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee ORDER BY Nominee | Show different nominees and the number of musicals they have been nominated in a bar chart, show Nominee from low to high order. | CREATE TABLE actor (
Actor_ID int,
Name text,
Musical_ID int,
Character text,
Duration text,
age int
)
CREATE TABLE musical (
Musical_ID int,
Name text,
Year int,
Award text,
Category text,
Nominee text,
Result text
) |
SELECT winners FROM table_name_16 WHERE runners_up = "rosenborg" | Who was the winner in the competition in which the runner-up was Rosenborg? | CREATE TABLE table_name_16 (winners VARCHAR, runners_up VARCHAR) |
SELECT overall_record FROM table_16201038_5 WHERE at_opponents_venue = "UF, 1-0" | What is the record of wins/losses that were played at opponents venue (uf, 1-0) | CREATE TABLE table_16201038_5 (overall_record VARCHAR, at_opponents_venue VARCHAR) |
SELECT Users.Id AS "user_link", QuestionCounts.PostsCount AS "number_of_questions", AnswerCounts.PostsCount AS "number_of_answers" FROM (SELECT OwnerUserId, COUNT(Id) AS PostsCount FROM Posts WHERE PostTypeId = 1 GROUP BY OwnerUserId) AS QuestionCounts, (SELECT OwnerUserId, COUNT(Id) AS PostsCount FROM Posts WHERE Post... | User with most questions asked. | CREATE TABLE TagSynonyms (
Id number,
SourceTagName text,
TargetTagName text,
CreationDate time,
OwnerUserId number,
AutoRenameCount number,
LastAutoRename time,
Score number,
ApprovedByUserId number,
ApprovalDate time
)
CREATE TABLE ReviewRejectionReasons (
Id number,
N... |
SELECT years FROM table_name_57 WHERE runners_up = "odd grenland" | What was the year of the competition in which Odd Grenland was the runner-up? | CREATE TABLE table_name_57 (years VARCHAR, runners_up VARCHAR) |
SELECT missouri_vs FROM table_16201038_5 WHERE overall_record = "MU, 3-1" | Who are the opponents of Missouri that have an overall record of MU, 3-1? | CREATE TABLE table_16201038_5 (missouri_vs VARCHAR, overall_record VARCHAR) |
SELECT stuid FROM sportsinfo INTERSECT SELECT stuid FROM plays_games | What are the ids of all students who played video games and sports? | CREATE TABLE video_games (
gameid number,
gname text,
gtype text
)
CREATE TABLE sportsinfo (
stuid number,
sportname text,
hoursperweek number,
gamesplayed number,
onscholarship text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text... |
SELECT winners FROM table_name_44 WHERE runners_up = "lillestrøm" AND third = "lyn" | Who was the winner in the competition in which Lyn took third place and Lillestrøm was the runner-up? | CREATE TABLE table_name_44 (winners VARCHAR, runners_up VARCHAR, third VARCHAR) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.