answer stringlengths 6 3.91k | question stringlengths 7 766 | context stringlengths 27 7.14k |
|---|---|---|
SELECT "Grand FinalDate" FROM table_16557 WHERE "LosingTeam" = 'St. George-Illawarra Dragons' | What was the date that the st. george-illawarra dragons lost? | CREATE TABLE table_16557 (
"Season" real,
"Grand FinalDate" text,
"WinningTeam" text,
"Score" text,
"LosingTeam" text,
"Location" text,
"GF Attendance" real,
"Clive Churchill Medal" text
) |
SELECT SUM(events) FROM table_name_67 WHERE rank > 3 AND player = "orville moody" | How many events for orville moody, ranking below 3? | CREATE TABLE table_name_67 (events INTEGER, rank VARCHAR, player VARCHAR) |
SELECT foursomes_w_l_h FROM table_1628607_5 WHERE year = "2002" | What was the foursome's record in 2002? | CREATE TABLE table_1628607_5 (foursomes_w_l_h VARCHAR, year VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.ethnicity = "BLACK/HAITIAN" AND demographic.dob_year < "2175" | count the number of patients whose ethnicity is black /haitian and were born before 2175. | CREATE TABLE lab (
subject_id text,
hadm_id text,
itemid text,
charttime text,
flag text,
value_unit text,
label text,
fluid text
)
CREATE TABLE demographic (
subject_id text,
hadm_id text,
name text,
marital_status text,
age text,
dob text,
gender text,
... |
SELECT MIN(rank) FROM table_name_65 WHERE wins > 2 AND player = "don january" AND events > 17 | What is the rank for don january with over 2 wins and over 17 events? | CREATE TABLE table_name_65 (rank INTEGER, events VARCHAR, wins VARCHAR, player VARCHAR) |
SELECT length FROM table_16279520_1 WHERE release = "3.5" | What was the length time of the 3.5 release? | CREATE TABLE table_16279520_1 (length VARCHAR, release VARCHAR) |
SELECT "Cyrillic Name Other Names" FROM table_27869 WHERE "Population (2011)" = '518' | Name the cyrillic name for 518 | CREATE TABLE table_27869 (
"Settlement" text,
"Cyrillic Name Other Names" text,
"Type" text,
"Population (2011)" real,
"Largest ethnic group (2002)" text,
"Dominant religion (2002)" text
) |
SELECT home_team AS score FROM table_name_74 WHERE home_team = "geelong" | What is the score of the Home team of geelong? | CREATE TABLE table_name_74 (home_team VARCHAR) |
SELECT title FROM table_16279520_1 WHERE release = "1.1" | What is the title of the 1.1 realease? | CREATE TABLE table_16279520_1 (title VARCHAR, release VARCHAR) |
SELECT "Fatalities" FROM table_47707 WHERE "Location" = 'ankara' AND "Aircraft" = 'douglas c-47' | Which fatality was at ankara for the aircraft douglas c-47? | CREATE TABLE table_47707 (
"Date" text,
"Flight" text,
"Aircraft" text,
"Registration" text,
"Location" text,
"Fatalities" real
) |
SELECT away_team FROM table_name_63 WHERE home_team = "south melbourne" | Which Away team has a Home team of south melbourne? | CREATE TABLE table_name_63 (away_team VARCHAR, home_team VARCHAR) |
SELECT series FROM table_16279520_1 WHERE release = "3.5" | Under what series was the 3.5 release? | CREATE TABLE table_16279520_1 (series VARCHAR, release VARCHAR) |
SELECT AVG("Cuts made") FROM table_35978 WHERE "Tournament" = 'totals' AND "Wins" < '11' | Which Cuts made has a Tournament of totals, and Wins smaller than 11? | CREATE TABLE table_35978 (
"Tournament" text,
"Wins" real,
"Top-5" real,
"Top-10" real,
"Top-25" real,
"Events" real,
"Cuts made" real
) |
SELECT away_team FROM table_name_32 WHERE venue = "arden street oval" | Which Away team has a Venue of arden street oval? | CREATE TABLE table_name_32 (away_team VARCHAR, venue VARCHAR) |
SELECT release FROM table_16279520_1 WHERE timeline = "Season 2" | What is the releases number under Season 2? | CREATE TABLE table_16279520_1 (release VARCHAR, timeline VARCHAR) |
SELECT "Release" FROM table_20661 WHERE "Timeline" = 'Season 2' | What is the releases number under Season 2? | CREATE TABLE table_20661 (
"Title" text,
"Series" text,
"Release" text,
"Featuring" text,
"Writer" text,
"Director" text,
"Length" text,
"Timeline" text,
"Release Date" text
) |
SELECT away_team AS score FROM table_name_82 WHERE venue = "scg" | Which Away team score has a Venue of scg? | CREATE TABLE table_name_82 (away_team VARCHAR, venue VARCHAR) |
SELECT capital FROM table_16278894_1 WHERE county = "Bungoma" | What is the capital of Bungoma county? | CREATE TABLE table_16278894_1 (capital VARCHAR, county VARCHAR) |
SELECT team FROM table_name_73 WHERE rank = 3 | What team has rank 3? | CREATE TABLE table_name_73 (
team VARCHAR,
rank VARCHAR
) |
SELECT school FROM table_name_28 WHERE player = "mike rosario" | What school has the player of mike rosario? | CREATE TABLE table_name_28 (school VARCHAR, player VARCHAR) |
SELECT capital FROM table_16278894_1 WHERE county = "Uasin Gishu" | What is the capital of Uasin Gishu county? | CREATE TABLE table_16278894_1 (capital VARCHAR, county VARCHAR) |
SELECT viewers__m_ FROM table_name_73 WHERE share = 1 AND rating > 0.7000000000000001 AND rank___number_ = "100/102" | How many vieweres for the episode with a share of 1, a Rating larger than 0.7000000000000001, and a Rank (#) of 100/102? | CREATE TABLE table_name_73 (
viewers__m_ VARCHAR,
rank___number_ VARCHAR,
share VARCHAR,
rating VARCHAR
) |
SELECT nba_draft FROM table_name_53 WHERE player = "al-farouq aminu" | What was the nba draft for al-farouq aminu? | CREATE TABLE table_name_53 (nba_draft VARCHAR, player VARCHAR) |
SELECT former_province FROM table_16278894_1 WHERE area__km_2__ = "694.9" | In what former province was the area 694.9 kilometers squared? | CREATE TABLE table_16278894_1 (former_province VARCHAR, area__km_2__ VARCHAR) |
SELECT "Player" FROM table_50016 WHERE "Country" = 'united states' AND "Score" = '71-75=146' | Who is the player from the United States with a score of 71-75=146? | CREATE TABLE table_50016 (
"Place" text,
"Player" text,
"Country" text,
"Score" text,
"To par" text
) |
SELECT AVG(attendance) FROM table_name_16 WHERE record = "38–31–8" | What was the average attendance of a team with a 38–31–8 record? | CREATE TABLE table_name_16 (attendance INTEGER, record VARCHAR) |
SELECT COUNT(area__km_2__) FROM table_16278894_1 WHERE population_census_2009 = 240075 | How many numbers were listed under area with a population of 240075 as of 2009? | CREATE TABLE table_16278894_1 (area__km_2__ VARCHAR, population_census_2009 VARCHAR) |
SELECT "Field" FROM table_11498 WHERE "Date" = 'july 22' | What is the field of the game on July 22? | CREATE TABLE table_11498 (
"Date" text,
"Opponent" text,
"Home/Away" text,
"Field" text,
"Result" text
) |
SELECT MIN(grid) FROM table_name_89 WHERE driver = "bob anderson" | What is the smallest grid for Bob Anderson? | CREATE TABLE table_name_89 (grid INTEGER, driver VARCHAR) |
SELECT population_census_2009 FROM table_16278894_1 WHERE county = "Kisumu" | What was the population in Kisumu county as of 2009? | CREATE TABLE table_16278894_1 (population_census_2009 VARCHAR, county VARCHAR) |
SELECT "Date" FROM table_25877 WHERE "Record" = '27-14' | What was the date of the game when the record was 27-14? | CREATE TABLE table_25877 (
"Game" real,
"Date" text,
"Team" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location Attendance" text,
"Record" text
) |
SELECT time FROM table_name_67 WHERE score = "0–3" | What was the time when the score was 0–3? | CREATE TABLE table_name_67 (time VARCHAR, score VARCHAR) |
SELECT capital FROM table_16278894_1 WHERE population_census_2009 = 730129 | What capital's county had a population of 730129 as of 2009? | CREATE TABLE table_16278894_1 (capital VARCHAR, population_census_2009 VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.long_title = "Atrioventricular block, complete" AND lab."CATEGORY" = "Hematology" | what number of patients with hematology as lab test category had complete atroiventricular block? | CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
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... |
SELECT set_1 FROM table_name_87 WHERE set_3 = "25–21" | What was the first set with a third set of 25–21? | CREATE TABLE table_name_87 (set_1 VARCHAR, set_3 VARCHAR) |
SELECT COUNT(dates) FROM table_1628792_1 WHERE margin_of_victory = "5 strokes" | Name the dates for margin of victory being 5 strokes | CREATE TABLE table_1628792_1 (dates VARCHAR, margin_of_victory VARCHAR) |
SELECT "Since Beginning of Big 12" FROM table_50605 WHERE "Last 10 Meetings" = 'ou, 7-3' AND "at Neutral Site" = 'ou, 2-1' AND "Last 5 Meetings" = 'bu, 3-2' | what is the since beginning of big 12 when last 10 meetings is ou, 7-3, neutral site is ou, 2-1, and last 5 meetings is bu, 3-2? | CREATE TABLE table_50605 (
"Oklahoma vs." text,
"Overall Record" text,
"at Norman" text,
"at Opponent's Venue" text,
"at Neutral Site" text,
"Last 5 Meetings" text,
"Last 10 Meetings" text,
"Current Streak" text,
"Since Beginning of Big 12" text
) |
SELECT total_games FROM table_name_84 WHERE years = 117 AND pac_12 = "california" | How many total games associated with the Pac-12 of california and 117 years? | CREATE TABLE table_name_84 (total_games VARCHAR, years VARCHAR, pac_12 VARCHAR) |
SELECT champion FROM table_1628792_1 WHERE tournament_location = "London Hunt and country Club ( London , ON )" | Name the champion for london hunt and country club ( london , on ) | CREATE TABLE table_1628792_1 (champion VARCHAR, tournament_location VARCHAR) |
SELECT COUNT("School") FROM table_21682 WHERE "Last OCC Championship" = '2006' | How many schools won their last occ championship in 2006? | CREATE TABLE table_21682 (
"School" text,
"Years of Participation" text,
"OCC Championships" real,
"Last OCC Championship" text,
"Last Outright OCC Championship" text
) |
SELECT AVG(years) FROM table_name_60 WHERE tied = 51 AND total_games > 1184 | What is the average number of years associated with 51 games tied and over 1184 total games? | CREATE TABLE table_name_60 (years INTEGER, tied VARCHAR, total_games VARCHAR) |
SELECT evening_gown FROM table_16323766_3 WHERE interview = "7.600 (9)" | What was the evening gown score for the woman who scored 7.600 (9) in her interview? | CREATE TABLE table_16323766_3 (evening_gown VARCHAR, interview VARCHAR) |
SELECT venue FROM table_name_57 WHERE year < 2005 AND category = "world class" AND result = "bronze" | What are the venues prior to 2005 in the World Class category that resulted in a bronze? | CREATE TABLE table_name_57 (
venue VARCHAR,
result VARCHAR,
year VARCHAR,
category VARCHAR
) |
SELECT MAX(tied) FROM table_name_8 WHERE pct < 0.5593 AND lost = 551 | What is the highest number of games tied for teams with under 551 games and a percentage of under 0.5593? | CREATE TABLE table_name_8 (tied INTEGER, pct VARCHAR, lost VARCHAR) |
SELECT swimsuit FROM table_16323766_3 WHERE semifinal_average = "8.759 (5)" | What was the swimsuit score for the one who had a semifinal average of 8.759 (5)? | CREATE TABLE table_16323766_3 (swimsuit VARCHAR, semifinal_average VARCHAR) |
SELECT "Distance" FROM table_28128 WHERE "Race" = 'Manikato Stakes' | What was the distance in the Manikato Stakes race? | CREATE TABLE table_28128 (
"Result" text,
"Date" text,
"Race" text,
"Venue" text,
"Group" text,
"Distance" text,
"Weight (kg)" text,
"Jockey" text,
"Winner/2nd" text
) |
SELECT country FROM table_name_33 WHERE airline = "gol" | Name the country for airline of gol | CREATE TABLE table_name_33 (country VARCHAR, airline VARCHAR) |
SELECT evening_gown FROM table_16323766_3 WHERE preliminary_average = "8.121 (8)" | What was the evening gown score for the one who had a preliminary average of 8.121 (8)? | CREATE TABLE table_16323766_3 (evening_gown VARCHAR, preliminary_average VARCHAR) |
SELECT high_rebounds FROM table_17058226_5 WHERE high_assists = "Craig Smith (4)" | Who performed all the high rebounds when craig smith (4) was the lead for high assists? | CREATE TABLE table_17058226_5 (
high_rebounds VARCHAR,
high_assists VARCHAR
) |
SELECT airline FROM table_name_98 WHERE rank = 4 | Name the airline for rank of 4 | CREATE TABLE table_name_98 (airline VARCHAR, rank VARCHAR) |
SELECT preliminary_average FROM table_16323766_3 WHERE semifinal_average = "8.966 (3)" | What was the preliminary average for the one who had a semifinal average of 8.966 (3)? | CREATE TABLE table_16323766_3 (preliminary_average VARCHAR, semifinal_average VARCHAR) |
SELECT SUM(T2.amount) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_id = T2.branch_id WHERE T1.state = 'New York' | What is the total amount of money loaned by banks in New York state? | CREATE TABLE loan (
loan_id text,
loan_type text,
cust_id text,
branch_id text,
amount number
)
CREATE TABLE bank (
branch_id number,
bname text,
no_of_customers number,
city text,
state text
)
CREATE TABLE customer (
cust_id text,
cust_name text,
acc_type text,
... |
SELECT hot_digital_songs_reaction FROM table_name_81 WHERE hot_100_reaction = "4 (+4)" | What digital reaction has a hot 100 reaction of 4 (+4)? | CREATE TABLE table_name_81 (hot_digital_songs_reaction VARCHAR, hot_100_reaction VARCHAR) |
SELECT preliminary_average FROM table_16323766_3 WHERE state = "Mississippi" | What was the preliminary average for Miss Mississippi? | CREATE TABLE table_16323766_3 (preliminary_average VARCHAR, state VARCHAR) |
SELECT week FROM table_name_77 WHERE result = "w 23–22" | Which Week has a Result of w 23 22? | CREATE TABLE table_name_77 (
week VARCHAR,
result VARCHAR
) |
SELECT hot_digital_songs_reaction FROM table_name_89 WHERE hot_100_reaction = "2 (+1)" | What digital reaction has hot 100 reaction of 2 (+1)? | CREATE TABLE table_name_89 (hot_digital_songs_reaction VARCHAR, hot_100_reaction VARCHAR) |
SELECT preliminary_average FROM table_16323766_3 WHERE state = "Maryland" | What was the preliminary average for Miss Maryland? | CREATE TABLE table_16323766_3 (preliminary_average VARCHAR, state VARCHAR) |
SELECT MIN("No. in series") FROM table_28671 WHERE "Title" = 'There Will Be Bad Blood' | what number is the episode 'there will be bad blood' in the series? | CREATE TABLE table_28671 (
"No. in series" real,
"No. in season" real,
"Title" text,
"Directed by" text,
"Written by" text,
"Original air date" text,
"Production code" text,
"U.S. viewers (millions)" text
) |
SELECT week FROM table_name_71 WHERE hot_100_reaction = "did not debut" AND performer_s_ = "natalie cole" | Which week has hot 100 reaction as did not debut for Natalie Cole? | CREATE TABLE table_name_71 (week VARCHAR, hot_100_reaction VARCHAR, performer_s_ VARCHAR) |
SELECT dates__mdy_ FROM table_16331025_2 WHERE gross_sales = "$1,271,451" | What day was the gross sales $1,271,451? | CREATE TABLE table_16331025_2 (dates__mdy_ VARCHAR, gross_sales VARCHAR) |
SELECT high_rebounds FROM table_27700530_14 WHERE date = "April 1" | Who had the most the most rebounds and how many did they have on April 1? | CREATE TABLE table_27700530_14 (
high_rebounds VARCHAR,
date VARCHAR
) |
SELECT hot_100_reaction FROM table_name_41 WHERE week = "top 13" AND performer_s_ = "kanye west" | What is the hot 100 reaction in week of top 13 for Kanye West? | CREATE TABLE table_name_41 (hot_100_reaction VARCHAR, week VARCHAR, performer_s_ VARCHAR) |
SELECT sellout___percentage_ FROM table_16331025_2 WHERE gross_sales = "$1,727,400" | What is the sellout % when the gross sales is $1,727,400? | CREATE TABLE table_16331025_2 (sellout___percentage_ VARCHAR, gross_sales VARCHAR) |
SELECT MAX(by_election) FROM table_28898948_3 WHERE electorate = "Waikaia" | When waikaia is the electorate what is the highest by-election? | CREATE TABLE table_28898948_3 (
by_election INTEGER,
electorate VARCHAR
) |
SELECT hot_digital_songs_reaction FROM table_name_20 WHERE week = "top 5" AND performer_s_ = "taylor hicks" | What is the digital reaction for week of top 5 for Taylor Hicks? | CREATE TABLE table_name_20 (hot_digital_songs_reaction VARCHAR, week VARCHAR, performer_s_ VARCHAR) |
SELECT COUNT(dates__mdy_) FROM table_16331025_2 WHERE position = 9 AND sellout___percentage_ = "81%" | Who many dates are in position 9 and the sellout is 81%? | CREATE TABLE table_16331025_2 (dates__mdy_ VARCHAR, position VARCHAR, sellout___percentage_ VARCHAR) |
SELECT "Attendance" FROM table_64795 WHERE "Result" = 'l 20-14' | What is the Attendance of the game with a Result of L 20-14? | CREATE TABLE table_64795 (
"Week" real,
"Date" text,
"Opponent" text,
"Result" text,
"Attendance" text
) |
SELECT time_retired FROM table_name_78 WHERE grid > 1 AND driver = "damon hill" | Which Time/Retired had a grid number bigger than 1 and whose driver was Damon Hill? | CREATE TABLE table_name_78 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR) |
SELECT COUNT(tickets_sold___available) FROM table_16331025_2 WHERE sellout___percentage_ = "82%" | What is the position of tickets sold/available when the sellout is 82%? | CREATE TABLE table_16331025_2 (tickets_sold___available VARCHAR, sellout___percentage_ VARCHAR) |
SELECT "High rebounds" FROM table_76378 WHERE "Date" = 'september 11' | What were the high rebounds on september 11? | CREATE TABLE table_76378 (
"Game" real,
"Date" text,
"Opponent" text,
"Score" text,
"High points" text,
"High rebounds" text,
"High assists" text,
"Location/Attendance" text,
"Record" text
) |
SELECT laps FROM table_name_98 WHERE driver = "olivier panis" | Which lap number had Olivier Panis as a driver? | CREATE TABLE table_name_98 (laps VARCHAR, driver VARCHAR) |
SELECT probable_future FROM table_16337329_5 WHERE imperative = "गरेस् gares 'may you do'" | Name the probably futures for गरेस् gares 'may you do' | CREATE TABLE table_16337329_5 (probable_future VARCHAR, imperative VARCHAR) |
SELECT date FROM table_name_61 WHERE clock = "0.8-1.6ghz" | Which date has a Clock of 0.8-1.6ghz? | CREATE TABLE table_name_61 (
date VARCHAR,
clock VARCHAR
) |
SELECT AVG(grid) FROM table_name_15 WHERE time_retired = "oil pressure" AND laps > 50 | what is the grid when the time/retired is oil pressure and the laps are more than 50? | CREATE TABLE table_name_15 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) |
SELECT imperative FROM table_16337329_5 WHERE past_habitual = "गरिस् garis 'you did'" | Name the imperative for गरिस् garis 'you did' | CREATE TABLE table_16337329_5 (imperative VARCHAR, past_habitual VARCHAR) |
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "2053" AND lab.label = "RBC, Joint Fluid" | find the number of patients who are born before the year 2053 and underwent lab test for rbc count and joint fluid. | 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
)
CREATE TABLE diagnoses (
subject_id text,
hadm_id text,
icd9_code text,
short_title text,
long_title text
)
C... |
SELECT SUM(grid) FROM table_name_61 WHERE time_retired = "1:46:42.3" | what is the grid when the time/retired is 1:46:42.3? | CREATE TABLE table_name_61 (grid INTEGER, time_retired VARCHAR) |
SELECT past_habitual FROM table_16337329_5 WHERE probable_future = "गर्छस् garchas 'you (will) do'" | Name the past habitual for गर्छस् garchas 'you (will) do' | CREATE TABLE table_16337329_5 (past_habitual VARCHAR, probable_future VARCHAR) |
SELECT team_website FROM table_name_93 WHERE institution = "indiana university of pennsylvania" | what is the team website when the institution is indiana university of pennsylvania? | CREATE TABLE table_name_93 (
team_website VARCHAR,
institution VARCHAR
) |
SELECT COUNT(crowd) FROM table_name_76 WHERE away_team = "fitzroy" | What was the attendance when Fitzroy played as the away team? | CREATE TABLE table_name_76 (crowd VARCHAR, away_team VARCHAR) |
SELECT past_habitual FROM table_16337329_5 WHERE probable_future = "गर्छ garcha 'he does'" | Name the past habitual for गर्छ garcha 'he does' | CREATE TABLE table_16337329_5 (past_habitual VARCHAR, probable_future VARCHAR) |
SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid = T2.amenid GROUP BY T2.amenid ORDER BY COUNT(*) DESC LIMIT 1 | What is the most common amenity in the dorms? | CREATE TABLE dorm_amenity (
amenid number,
amenity_name text
)
CREATE TABLE student (
stuid number,
lname text,
fname text,
age number,
sex text,
major number,
advisor number,
city_code text
)
CREATE TABLE dorm (
dormid number,
dorm_name text,
student_capacity numbe... |
SELECT home_team AS score FROM table_name_4 WHERE venue = "western oval" | What did the home team score at Western Oval? | CREATE TABLE table_name_4 (home_team VARCHAR, venue VARCHAR) |
SELECT injunctive FROM table_16337329_5 WHERE past_habitual = "गर्यो garyo 'he did'" | Name the injunctive for गर्यो garyo 'he did' | CREATE TABLE table_16337329_5 (injunctive VARCHAR, past_habitual VARCHAR) |
SELECT Id AS "user_link", Reputation, CreationDate, DisplayName, LastAccessDate, UpVotes, DownVotes FROM Users WHERE UpVotes > '##votes##' ORDER BY Id | Users above given number of upvotes. | CREATE TABLE PostNoticeTypes (
Id number,
ClassId number,
Name text,
Body text,
IsHidden boolean,
Predefined boolean,
PostNoticeDurationId number
)
CREATE TABLE PostHistoryTypes (
Id number,
Name text
)
CREATE TABLE CloseReasonTypes (
Id number,
Name text,
Description t... |
SELECT home_team FROM table_name_5 WHERE crowd > 20 OFFSET 283 | Who was the home team when the attendance was more than 20,283? | CREATE TABLE table_name_5 (home_team VARCHAR, crowd INTEGER) |
SELECT COUNT(winnings) FROM table_1637041_2 WHERE avg_finish = "29.2" | How many years did he have an average finish of 29.2? | CREATE TABLE table_1637041_2 (winnings VARCHAR, avg_finish VARCHAR) |
SELECT ROW_NUMBER() OVER (ORDER BY Reputation DESC) AS "#", Id AS "user_link", Location, Reputation FROM Users WHERE Reputation > 99000 AND LOWER(Location) LIKE LOWER('%italy%') ORDER BY Reputation DESC | Italian Stackoverflow Users > 99k. | CREATE TABLE ReviewTaskResults (
Id number,
ReviewTaskId number,
ReviewTaskResultTypeId number,
CreationDate time,
RejectionReasonId number,
Comment text
)
CREATE TABLE ReviewTaskStates (
Id number,
Name text,
Description text
)
CREATE TABLE Posts (
Id number,
PostTypeId nu... |
SELECT high_points FROM table_name_25 WHERE game > 2 AND date = "april 29" | On April 29, with a game larger than 2, what is the high points? | CREATE TABLE table_name_25 (high_points VARCHAR, game VARCHAR, date VARCHAR) |
SELECT COUNT(avg_start) FROM table_1637041_2 WHERE position = "59th" | How many years did he finish in 59th? | CREATE TABLE table_1637041_2 (avg_start VARCHAR, position VARCHAR) |
SELECT "Candidates" FROM table_72365 WHERE "Incumbent" = 'Jerry Costello' | Who were the candidates in the district where Jerry Costello won? | CREATE TABLE table_72365 (
"District" text,
"Incumbent" text,
"Party" text,
"First elected" real,
"Results" text,
"Candidates" text
) |
SELECT score FROM table_name_18 WHERE game = 3 | What was the score for Game 3? | CREATE TABLE table_name_18 (score VARCHAR, game VARCHAR) |
SELECT COUNT(starts) FROM table_1637041_2 WHERE year = 2003 | How many instances do you see the year 2003? | CREATE TABLE table_1637041_2 (starts VARCHAR, year VARCHAR) |
SELECT T1.time FROM climber AS T1 JOIN mountain AS T2 ON T1.mountain_id = T2.mountain_id WHERE T2.country = "Uganda" | Show the times used by climbers to climb mountains in Country Uganda. | CREATE TABLE climber (
climber_id number,
name text,
country text,
time text,
points number,
mountain_id number
)
CREATE TABLE mountain (
mountain_id number,
name text,
height number,
prominence number,
range text,
country text
) |
SELECT SUM(grid) FROM table_name_60 WHERE laps = 17 | What is the grid total for cars that went 17 laps? | CREATE TABLE table_name_60 (grid INTEGER, laps VARCHAR) |
SELECT MAX(top_10) FROM table_1637041_2 WHERE position = "63rd" | What is the maximum number of top 10s when he finished in 63rd? | CREATE TABLE table_1637041_2 (top_10 INTEGER, position VARCHAR) |
SELECT P.Id AS "post_link", P.Body FROM Posts AS P, PostTypes AS Pt, Votes AS V, VoteTypes AS Vt WHERE P.Id = V.PostId AND Vt.Id = V.VoteTypeId AND P.Score < -2 AND Pt.Id = 2 AND Vt.Id = 3 AND DATEDIFF(month, P.CreationDate, GETDATE()) < 6 GROUP BY P.Id, P.Body | Answers with a Negative Score Created in the last six months. | CREATE TABLE PostsWithDeleted (
Id number,
PostTypeId number,
AcceptedAnswerId number,
ParentId number,
CreationDate time,
DeletionDate time,
Score number,
ViewCount number,
Body text,
OwnerUserId number,
OwnerDisplayName text,
LastEditorUserId number,
LastEditorDispl... |
SELECT MAX(gold) FROM table_name_80 WHERE rank > 5 AND bronze < 1 | How many golds for the nation ranked below 5 and over 1 bronze medals? | CREATE TABLE table_name_80 (gold INTEGER, rank VARCHAR, bronze VARCHAR) |
SELECT avg_start FROM table_1637041_2 WHERE winnings = "$1,663,868" | What are the average start(s) when he had $1,663,868? | CREATE TABLE table_1637041_2 (avg_start VARCHAR, winnings VARCHAR) |
SELECT AVG("Year") FROM table_64740 WHERE "Competition" = 'commonwealth youth games' | Which Year has a Competition of commonwealth youth games? | CREATE TABLE table_64740 (
"Year" real,
"Competition" text,
"Venue" text,
"Position" text,
"Event" text
) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.