answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT COUNT("Drawn") FROM table_79099 WHERE "Goals Against" < '55' AND "Lost" = '14'
What is the total number drawn with goals against less than 55, and a total of 14 losses?
CREATE TABLE table_79099 ( "Position" real, "Team" text, "Played" real, "Drawn" real, "Lost" real, "Goals For" real, "Goals Against" real, "Goal Difference" text, "Points 1" real )
SELECT nationality FROM table_name_91 WHERE team = "milwaukee hawks"
What is the nationality for milwaukee hawks?
CREATE TABLE table_name_91 (nationality VARCHAR, team VARCHAR)
SELECT MAX(population__2010_) FROM table_2144436_1 WHERE barangay = "Minane"
What was the population in 2010 for Minane
CREATE TABLE table_2144436_1 (population__2010_ INTEGER, barangay VARCHAR)
SELECT AVG(Score) AS avg_score, Id FROM Posts WHERE PostTypeId = 2 GROUP BY Id ORDER BY avg_score DESC
Average score for accepted post.
CREATE TABLE CloseReasonTypes ( Id number, Name text, Description text ) CREATE TABLE SuggestedEdits ( Id number, PostId number, CreationDate time, ApprovalDate time, RejectionDate time, OwnerUserId number, Comment text, Text text, Title text, Tags text, Revision...
SELECT name FROM table_name_99 WHERE proposed = "06/24/1988"
What is the name of the superfund that was proposed on 06/24/1988?
CREATE TABLE table_name_99 (name VARCHAR, proposed VARCHAR)
SELECT population__2007_ FROM table_2144436_1 WHERE barangay = "Corazon De Jesus"
What is the 2007 population for Corazon de Jesus?
CREATE TABLE table_2144436_1 (population__2007_ VARCHAR, barangay VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "EMERGENCY" AND diagnoses.short_title = "Malig neo tongue NEC"
count the number of patients whose admission type is emergency and diagnoses short title is malig neo tongue nec?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT team FROM table_name_40 WHERE game = 4
Which team was played against in game 4?
CREATE TABLE table_name_40 (team VARCHAR, game VARCHAR)
SELECT MAX(population__2010_) FROM table_2144436_1 WHERE population__2000_ = 5720
What is the 2010 population when the 2000 population is 5720?
CREATE TABLE table_2144436_1 (population__2010_ INTEGER, population__2000_ VARCHAR)
SELECT 3 AS ’utr_sequence FROM table_14332822_1 WHERE genbank_id = "HQ021437"
What is the 3utr sequence when the genbank id is hq021437?
CREATE TABLE table_14332822_1 ( genbank_id VARCHAR )
SELECT location_attendance FROM table_name_49 WHERE high_rebounds = "a. horford (10)" AND high_points = "j. johnson (21)"
What is the location attendance of the game with A. Horford (10) as the highest rebounds and J. Johnson (21) as the highest points?
CREATE TABLE table_name_49 (location_attendance VARCHAR, high_rebounds VARCHAR, high_points VARCHAR)
SELECT rōmaji FROM table_2144389_8 WHERE japanese_translation = "By Your Side ~Hikari's Theme~ (PopUp.Version)"
Name the romaji by your side ~hikari's theme~ (popup.version)
CREATE TABLE table_2144389_8 (rōmaji VARCHAR, japanese_translation VARCHAR)
SELECT prescriptions.drug FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 17462) AND DATETIME(prescriptions.startdate, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') EXCEPT SELECT prescriptions.drug FROM prescriptions WHERE...
what is the new prescriptions of patient 17462 today compared to the prescriptions yesterday?
CREATE TABLE outputevents ( row_id number, subject_id number, hadm_id number, icustay_id number, charttime time, itemid number, value number ) CREATE TABLE prescriptions ( row_id number, subject_id number, hadm_id number, startdate time, enddate time, drug text, ...
SELECT championship FROM table_name_53 WHERE opponent = "jeff borowiak"
During what Championship was the Opponent Jeff Borowiak?
CREATE TABLE table_name_53 (championship VARCHAR, opponent VARCHAR)
SELECT vocalist FROM table_2144389_8 WHERE rōmaji = "Kaze no Messēji (PokaPoka-Version)"
Name the vocalist for kaze no messēji (pokapoka-version)
CREATE TABLE table_2144389_8 (vocalist VARCHAR, rōmaji VARCHAR)
SELECT "name" FROM table_204_401 WHERE "rank" = 1
the first person to finish in heat 1 ?
CREATE TABLE table_204_401 ( id number, "rank" number, "lane" number, "name" text, "nationality" text, "react" number, "time" number, "notes" text )
SELECT SUM(date) FROM table_name_76 WHERE score = "3–6, 6–4, 3–6, 6–1, 6–2"
On what Date was the Score of 3–6, 6–4, 3–6, 6–1, 6–2
CREATE TABLE table_name_76 (date INTEGER, score VARCHAR)
SELECT MIN(_number) FROM table_2144389_8 WHERE japanese_title = "君のそばで~ヒカリのテーマ~(PopUp.Version)"
Name the least number for 君のそばで~ヒカリのテーマ~(popup.version)
CREATE TABLE table_2144389_8 (_number INTEGER, japanese_title VARCHAR)
SELECT location FROM table_name_18 WHERE event = "ufc 154"
Where was the UFC 154 match held?
CREATE TABLE table_name_18 ( location VARCHAR, event VARCHAR )
SELECT entrant FROM table_name_80 WHERE engine = "talbot l6" AND driver = "eugène chaboud"
What is the Entrant with a Engine of talbot l6, and Eugène Chaboud was the driver?
CREATE TABLE table_name_80 (entrant VARCHAR, engine VARCHAR, driver VARCHAR)
SELECT COUNT(vocalist) FROM table_2144389_8 WHERE japanese_translation = "Which One ~ Is It?"
Name the number of vocalists for which one ~ is it?
CREATE TABLE table_2144389_8 (vocalist VARCHAR, japanese_translation VARCHAR)
SELECT screen_pixels FROM table_name_66 WHERE maker = "amazon.com" AND weight = "221g (7.8oz)"
For Amazon.com's device with a weight of 221g (7.8oz) how many screen pixels does the device have?
CREATE TABLE table_name_66 ( screen_pixels VARCHAR, maker VARCHAR, weight VARCHAR )
SELECT entrant FROM table_name_1 WHERE tyre = "p" AND constructor = "alfa romeo"
What entrant has a P tyre and was constructed by Alfa Romeo?
CREATE TABLE table_name_1 (entrant VARCHAR, tyre VARCHAR, constructor VARCHAR)
SELECT to_par FROM table_21469545_2 WHERE date = "20 Feb 2005"
Name the to par for 20 feb 2005
CREATE TABLE table_21469545_2 (to_par VARCHAR, date VARCHAR)
SELECT theme FROM table_name_59 WHERE show = "week 1" AND order = "2"
For the week 1 show and order 2, what was the theme?
CREATE TABLE table_name_59 ( theme VARCHAR, show VARCHAR, order VARCHAR )
SELECT country FROM table_name_93 WHERE score = "274" AND runner_s__up = "virginie lagoutte-clément"
I want the country for score of 274 and runner-up of virginie lagoutte-clément
CREATE TABLE table_name_93 (country VARCHAR, score VARCHAR, runner_s__up VARCHAR)
SELECT COUNT(no) FROM table_21469545_2 WHERE margin_of_victory = "3 strokes"
Name the number for margin of victory being 3 strokes
CREATE TABLE table_21469545_2 (no VARCHAR, margin_of_victory VARCHAR)
SELECT "Date" FROM table_44933 WHERE "High rebounds" = 'amar''e stoudemire (13)'
What is Date, when High Rebounds is 'Amar'e Stoudemire (13)'?
CREATE TABLE table_44933 ( "Game" real, "Date" text, "Team" text, "Score" text, "High rebounds" text, "High assists" text, "Location Attendance" text, "Record" text )
SELECT date FROM table_name_35 WHERE year = "2004"
Tell me the date for 2004
CREATE TABLE table_name_35 (date VARCHAR, year VARCHAR)
SELECT COUNT(winning_score) FROM table_21469545_2 WHERE date = "8 Feb 2009"
Name the winning score for 8 feb 2009
CREATE TABLE table_21469545_2 (winning_score VARCHAR, date VARCHAR)
SELECT COUNT(wins) FROM table_name_52 WHERE cuts_made = 10 AND scoring_average < 74.09
What is the total number of wins with 10 cuts made and a score average under 74.09?
CREATE TABLE table_name_52 ( wins VARCHAR, cuts_made VARCHAR, scoring_average VARCHAR )
SELECT margin_of_victory FROM table_name_7 WHERE winner = "nikki garrett"
What is the margin of victory for nikki garrett?
CREATE TABLE table_name_7 (margin_of_victory VARCHAR, winner VARCHAR)
SELECT publisher FROM table_21458142_1 WHERE genre = "Pet-raising simulator"
Who published the title in the pet-raising simulator genre?
CREATE TABLE table_21458142_1 (publisher VARCHAR, genre VARCHAR)
SELECT MIN("Frequency MHz") FROM table_39417 WHERE "Call sign" = 'k236am'
What is K236AM's lowest frequency in MHz?
CREATE TABLE table_39417 ( "Call sign" text, "Frequency MHz" real, "City of license" text, "ERP W" real, "Class" text, "FCC info" text )
SELECT result FROM table_name_17 WHERE venue = "n" AND attendance > 20 OFFSET 664
I want to see the result for venue of n and attendance more than 20,664
CREATE TABLE table_name_17 (result VARCHAR, venue VARCHAR, attendance VARCHAR)
SELECT sales_breakdown FROM table_21458142_1 WHERE publisher = "Nintendo" AND title = "Mario Kart DS"
What's the sales breakdown for Nintendo's Mario Kart DS?
CREATE TABLE table_21458142_1 (sales_breakdown VARCHAR, publisher VARCHAR, title VARCHAR)
SELECT comptroller, COUNT(*) FROM party GROUP BY comptroller ORDER BY COUNT(*) DESC LIMIT 1
Which people severed as comptroller most frequently? Give me the name of the person and the frequency count.
CREATE TABLE election ( election_id number, counties_represented text, district number, delegate text, party number, first_elected number, committee text ) CREATE TABLE party ( party_id number, year number, party text, governor text, lieutenant_governor text, comptro...
SELECT result FROM table_name_51 WHERE venue = "a"
Tell me the result for venue of a
CREATE TABLE table_name_51 (result VARCHAR, venue VARCHAR)
SELECT total_copies_sold FROM table_21458142_1 WHERE release_date = "October 23, 2008"
How many copies were sold of the game released on october 23, 2008?
CREATE TABLE table_21458142_1 (total_copies_sold VARCHAR, release_date VARCHAR)
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'SEATTLE' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SALT L...
what flights from SEATTLE to SALT LAKE CITY
CREATE TABLE time_zone ( time_zone_code text, time_zone_name text, hours_from_gmt int ) CREATE TABLE aircraft ( aircraft_code varchar, aircraft_description varchar, manufacturer varchar, basic_type varchar, engines int, propulsion varchar, wide_body varchar, wing_span int, ...
SELECT AVG(attendance) FROM table_name_49 WHERE venue = "n" AND round = "f"
I want to know the average attendance for n venue and f round
CREATE TABLE table_name_49 (attendance INTEGER, venue VARCHAR, round VARCHAR)
SELECT sales_breakdown FROM table_21458142_1 WHERE publisher = "Nintendo" AND release_date = "May 15, 2006"
What's the sales breakdown of the Nintendo game released on May 15, 2006?
CREATE TABLE table_21458142_1 (sales_breakdown VARCHAR, publisher VARCHAR, release_date VARCHAR)
SELECT "Closure date" FROM table_4488 WHERE "On air date" = 'june 2003'
When was the ensemble closed that went on air in June 2003?
CREATE TABLE table_4488 ( "Region" text, "Operator" text, "Licence award date" text, "On air date" text, "Closure date" text )
SELECT SUM(laps) FROM table_name_40 WHERE time_retired = "exhaust" AND grid < 15
In grid 15, how many laps were there before ending with a time of exhaust?
CREATE TABLE table_name_40 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT MAX(races) FROM table_21457754_2
Name the most races
CREATE TABLE table_21457754_2 (races INTEGER)
SELECT T1.Name, T1.Price FROM Products AS T1 JOIN Manufacturers AS T2 ON T1.Manufacturer = T2.Code GROUP BY T1.Name ORDER BY T1.Price DESC
For those records from the products and each product's manufacturer, give me the comparison about the sum of price over the name , and group by attribute name, and list by the total number in descending.
CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255), Price DECIMAL, Manufacturer INTEGER ) CREATE TABLE Manufacturers ( Code INTEGER, Name VARCHAR(255), Headquarter VARCHAR(255), Founder VARCHAR(255), Revenue REAL )
SELECT year_made FROM table_name_67 WHERE class = "undine"
What year was class of undine?
CREATE TABLE table_name_67 (year_made VARCHAR, class VARCHAR)
SELECT MAX(rr1_pts) FROM table_21457754_2
Name the most rr 1 pts
CREATE TABLE table_21457754_2 (rr1_pts INTEGER)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN procedures ON demographic.hadm_id = procedures.hadm_id WHERE demographic.marital_status = "WIDOWED" AND procedures.long_title = "Spinal tap"
what is the number of patients whose marital status is widowed and procedure long title is spinal tap?
CREATE TABLE demographic ( subject_id text, hadm_id text, name text, marital_status text, age text, dob text, gender text, language text, religion text, admission_type text, days_stay text, insurance text, ethnicity text, expire_flag text, admission_location t...
SELECT quantity_preserved FROM table_name_17 WHERE quantity_made = "15"
What was the quantity preserved for quantity made of 15?
CREATE TABLE table_name_17 (quantity_preserved VARCHAR, quantity_made VARCHAR)
SELECT COUNT(total_pts) FROM table_21457754_2 WHERE team_name = "GBR Challenge"
Name the number of total pts for gbr challenge
CREATE TABLE table_21457754_2 (total_pts VARCHAR, team_name VARCHAR)
SELECT "Written by" FROM table_22607 WHERE "Title" = 'Academic Octathalon'
Who wrote 'Academic Octathalon'?
CREATE TABLE table_22607 ( "No. in series" real, "No. in season" real, "Title" text, "Directed by" text, "Written by" text, "Original air date" text, "Production code" text )
SELECT year_made FROM table_name_52 WHERE class = "hercules"
Name the year for hercules
CREATE TABLE table_name_52 (year_made VARCHAR, class VARCHAR)
SELECT COUNT(second_place) FROM table_2146364_2 WHERE city_ & _nation = "Chicago, USA"
What is the total number of second place finishes when the city & nation was Chicago, USA?
CREATE TABLE table_2146364_2 (second_place VARCHAR, city_ VARCHAR, _nation VARCHAR)
SELECT qual FROM table_name_25 WHERE year = "1960"
Name the qual for year of 1960
CREATE TABLE table_name_25 ( qual VARCHAR, year VARCHAR )
SELECT AVG(entered_service) FROM table_name_73 WHERE builder = "tom smith" AND number < 7007
When did the tom smith built train enter service with a number under 7007?
CREATE TABLE table_name_73 (entered_service INTEGER, builder VARCHAR, number VARCHAR)
SELECT MIN(third_place) FROM table_2146364_2 WHERE city_ & _nation = "Vancouver, Canada"
What is the total number of third place finishes when the city & nation was Vancouver, Canada?
CREATE TABLE table_2146364_2 (third_place INTEGER, city_ VARCHAR, _nation VARCHAR)
SELECT num.TagName AS Tag, ROW_NUMBER() OVER (ORDER BY rate.Rate DESC) AS MayRank, ROW_NUMBER() OVER (ORDER BY num.Num DESC) AS TotalRank, rate.Rate AS QuestionsInMay, num.Num AS QuestionsTotal FROM (SELECT COUNT(PostId) AS Rate, TagName FROM Tags, PostTags, Posts WHERE Tags.Id = PostTags.TagId AND Posts.Id = PostId AN...
Most popular tags since 2012 started..
CREATE TABLE SuggestedEditVotes ( Id number, SuggestedEditId number, UserId number, VoteTypeId number, CreationDate time, TargetUserId number, TargetRepChange number ) CREATE TABLE PostFeedback ( Id number, PostId number, IsAnonymous boolean, VoteTypeId number, CreationD...
SELECT opponent FROM table_name_68 WHERE edition = "1985 world group i"
Who is the opponent for the 1985 World Group i edition?
CREATE TABLE table_name_68 (opponent VARCHAR, edition VARCHAR)
SELECT MIN(third_place) FROM table_2146364_2
What is the smallest third place finish?
CREATE TABLE table_2146364_2 (third_place INTEGER)
SELECT Studio, COUNT(*) FROM film GROUP BY Studio ORDER BY COUNT(*)
A bar chart about how films are produced by each studio?, and show Y-axis in asc order.
CREATE TABLE film_market_estimation ( Estimation_ID int, Low_Estimate real, High_Estimate real, Film_ID int, Type text, Market_ID int, Year int ) CREATE TABLE market ( Market_ID int, Country text, Number_cities int ) CREATE TABLE film ( Film_ID int, Title text, Stud...
SELECT cash_on_hand FROM table_name_60 WHERE after_debt = "$327,094"
What is the amount of cash on hand that has an after debt of $327,094
CREATE TABLE table_name_60 (cash_on_hand VARCHAR, after_debt VARCHAR)
SELECT reason_for_change FROM table_2147588_3 WHERE date_of_successors_formal_installation = "March 9, 1865"
What change caused a change of staff in March 9, 1865?
CREATE TABLE table_2147588_3 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT "Status" FROM table_73447 WHERE "Market Income Per Capita" = '$24,326'
What is the status of the county with per capita market income of $24,326?
CREATE TABLE table_73447 ( "County" text, "Population" real, "Unemployment Rate" text, "Market Income Per Capita" text, "Poverty Rate" text, "Status" text )
SELECT total_receipts FROM table_name_83 WHERE candidate = "mike gravel"
How many receipts does Mike Gravel have?
CREATE TABLE table_name_83 (total_receipts VARCHAR, candidate VARCHAR)
SELECT successor FROM table_2147588_3 WHERE vacator = "New seat"
Who was the successor for the new seat?
CREATE TABLE table_2147588_3 (successor VARCHAR, vacator VARCHAR)
SELECT MAX(grid) FROM table_name_1 WHERE laps = 55
What is the highest grid that has 55 laps?
CREATE TABLE table_name_1 ( grid INTEGER, laps VARCHAR )
SELECT money_raised, _3q FROM table_name_75 WHERE cash_on_hand = "$5,821,587"
How much money has been raised that has $5,821,587 cash on hand?
CREATE TABLE table_name_75 (money_raised VARCHAR, _3q VARCHAR, cash_on_hand VARCHAR)
SELECT reason_for_change FROM table_2147588_3 WHERE date_of_successors_formal_installation = "March 15, 1865"
What was the reason for change in staff in formal installations on March 15, 1865?
CREATE TABLE table_2147588_3 (reason_for_change VARCHAR, date_of_successors_formal_installation VARCHAR)
SELECT DISTINCT T3.name, T2.title, T1.stars FROM rating AS T1 JOIN movie AS T2 ON T1.mid = T2.mid JOIN reviewer AS T3 ON T1.rid = T3.rid WHERE T2.director = T3.name
For any rating where the name of reviewer is the same as the director of the movie, return the reviewer name, movie title, and number of stars.
CREATE TABLE rating ( rid number, mid number, stars number, ratingdate time ) CREATE TABLE movie ( mid number, title text, year number, director text ) CREATE TABLE reviewer ( rid number, name text )
SELECT after_debt FROM table_name_90 WHERE total_receipts = "$379,794"
What is the after debt has receipts of $379,794?
CREATE TABLE table_name_90 (after_debt VARCHAR, total_receipts VARCHAR)
SELECT vacator FROM table_2147588_4 WHERE successor = "Nathaniel G. Taylor (U)"
When nathaniel g. taylor (u) is the successor what is the vacator?
CREATE TABLE table_2147588_4 (vacator VARCHAR, successor VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.age < "72" AND prescriptions.formulary_drug_cd = "MIDAZBASE"
how many patients less than 72 years of age have midazbase drug code?
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 money_spent, _3q FROM table_name_43 WHERE candidate = "dennis kucinich"
How much money has Candidate Dennis Kucinich spent?
CREATE TABLE table_name_43 (money_spent VARCHAR, _3q VARCHAR, candidate VARCHAR)
SELECT district FROM table_2147588_4 WHERE successor = "William B. Campbell (U)"
When william b. campbell (u) is the successor what is the district?
CREATE TABLE table_2147588_4 (district VARCHAR, successor VARCHAR)
SELECT COUNT(*) > 0 FROM microbiologyevents WHERE microbiologyevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 24921) AND DATETIME(microbiologyevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', microbiologyevents.chartti...
were there any results of the microbiology tests for patient 24921 in 09/last year?
CREATE TABLE chartevents ( row_id number, subject_id number, hadm_id number, icustay_id number, itemid number, charttime time, valuenum number, valueuom text ) CREATE TABLE admissions ( row_id number, subject_id number, hadm_id number, admittime time, dischtime time,...
SELECT SUM(crowd) FROM table_name_15 WHERE away_team = "south melbourne"
What is the crowd size when the away team was South Melbourne?
CREATE TABLE table_name_15 (crowd INTEGER, away_team VARCHAR)
SELECT date_successor_seated FROM table_2147588_4 WHERE vacator = "James Brooks (D)"
When james brooks (d) is the vacator what is the date the successor was seated?
CREATE TABLE table_2147588_4 (date_successor_seated VARCHAR, vacator VARCHAR)
SELECT winning_score FROM table_name_42 WHERE runner_s__up = "beth daniel" AND margin_of_victory = "7 strokes"
What was the winning score when the runner-up was Beth Daniel and the margin of victory was 7 strokes?
CREATE TABLE table_name_42 ( winning_score VARCHAR, runner_s__up VARCHAR, margin_of_victory VARCHAR )
SELECT MAX(crowd) FROM table_name_78 WHERE venue = "junction oval"
What was the crowd size at Junction Oval?
CREATE TABLE table_name_78 (crowd INTEGER, venue VARCHAR)
SELECT date_successor_seated FROM table_2147588_4 WHERE successor = "John W. Leftwich (UU)"
When john w. leftwich (uu) is the successor what is the date the successor was seated?
CREATE TABLE table_2147588_4 (date_successor_seated VARCHAR, successor VARCHAR)
SELECT Users.Id AS "user_link", Users.Id, Users.Reputation, COUNT(*) OVER (PARTITION BY Users.Id) AS Count, Badges.Date FROM Badges, Users WHERE Badges.Name = 'Yearling' AND Badges.UserId = Users.Id ORDER BY Count DESC, Users.Reputation, Users.Id, Badges.Date
Owners of the most yearling badges.
CREATE TABLE PostNoticeTypes ( Id number, ClassId number, Name text, Body text, IsHidden boolean, Predefined boolean, PostNoticeDurationId number ) CREATE TABLE Tags ( Id number, TagName text, Count number, ExcerptPostId number, WikiPostId number ) CREATE TABLE CloseAsO...
SELECT date FROM table_name_3 WHERE venue = "junction oval"
What was the date of the game at Junction Oval?
CREATE TABLE table_name_3 (date VARCHAR, venue VARCHAR)
SELECT successor FROM table_2147588_4 WHERE district = "New York 8th"
When new york 8th is teh district who is the successor?
CREATE TABLE table_2147588_4 (successor VARCHAR, district VARCHAR)
SELECT "location" FROM table_204_562 WHERE "date" > (SELECT "date" FROM table_204_562 WHERE "location" = 'cagnes-sur-mer, france $100,000') ORDER BY "date" LIMIT 1
where did camerin win singles after cagnes sur mer ?
CREATE TABLE table_204_562 ( id number, "no." number, "date" text, "location" text, "surface" text, "opponent in final" text, "score" text )
SELECT away_team AS score FROM table_name_41 WHERE away_team = "carlton"
What was the away score for Carlton?
CREATE TABLE table_name_41 (away_team VARCHAR)
SELECT MIN(rr3_pts) FROM table_21489362_2 WHERE rr4_pts = "20"
When 20 is the rr4 points what is the lowest rr3 points?
CREATE TABLE table_21489362_2 (rr3_pts INTEGER, rr4_pts VARCHAR)
SELECT DEPT_CODE, MIN(STU_GPA) FROM STUDENT GROUP BY DEPT_CODE ORDER BY MIN(STU_GPA)
Bar chart x axis dept code y axis minimal stu gpa, I want to rank in ascending by the y axis.
CREATE TABLE DEPARTMENT ( DEPT_CODE varchar(10), DEPT_NAME varchar(30), SCHOOL_CODE varchar(8), EMP_NUM int, DEPT_ADDRESS varchar(20), DEPT_EXTENSION varchar(4) ) CREATE TABLE COURSE ( CRS_CODE varchar(10), DEPT_CODE varchar(10), CRS_DESCRIPTION varchar(35), CRS_CREDIT float(8) ...
SELECT away_team FROM table_name_12 WHERE venue = "mcg"
Who was the away team at MCG?
CREATE TABLE table_name_12 (away_team VARCHAR, venue VARCHAR)
SELECT rr4_pts FROM table_21489362_2 WHERE total_pts = 70
When 70 is the total points what is the rr4 points?
CREATE TABLE table_21489362_2 (rr4_pts VARCHAR, total_pts VARCHAR)
SELECT pc_intro FROM table_2490289_1 WHERE amiga_demo = "My Kingdom (Haujobb & Scoopex)"
What won best pc intro when my kingdom (haujobb & scoopex) won best amiga demo?
CREATE TABLE table_2490289_1 ( pc_intro VARCHAR, amiga_demo VARCHAR )
SELECT d_48 FROM table_name_14 WHERE d_50 = "d 30"
What is the D 48 when the D 50 is d 30?
CREATE TABLE table_name_14 (d_48 VARCHAR, d_50 VARCHAR)
SELECT won FROM table_21489362_2 WHERE rr1_pts = 3
When 3 is the rr1 points what is won score?
CREATE TABLE table_21489362_2 (won VARCHAR, rr1_pts VARCHAR)
SELECT "Runner(s)-up" FROM table_70470 WHERE "Winning score" = '–15 (66-67-70-70=273)'
Who was the runner-up for the event that ended with a winning score of 15 (66-67-70-70=273)?
CREATE TABLE table_70470 ( "Date" text, "Tournament" text, "Winning score" text, "Margin of victory" text, "Runner(s)-up" text )
SELECT d_47 FROM table_name_92 WHERE d_49 = "r 32"
What is the D 47 when the D 49 is r 32?
CREATE TABLE table_name_92 (d_47 VARCHAR, d_49 VARCHAR)
SELECT rr1_pts FROM table_21489362_2 WHERE team_name = "Spanish Challenge"
When spanish challenge is the team name what are the rr1 points?
CREATE TABLE table_21489362_2 (rr1_pts VARCHAR, team_name VARCHAR)
SELECT SUM(grid) FROM table_name_9 WHERE laps > 61
How many grids had more than 61 laps?
CREATE TABLE table_name_9 ( grid INTEGER, laps INTEGER )
SELECT d_50 FROM table_name_77 WHERE d_43 = "r 43"
What is the D 50 when the D 43 is r 43?
CREATE TABLE table_name_77 (d_50 VARCHAR, d_43 VARCHAR)
SELECT COUNT(innings) FROM table_21486890_1 WHERE runs_scored = 5088
Name the innings for 5088 runs scored
CREATE TABLE table_21486890_1 (innings VARCHAR, runs_scored VARCHAR)
SELECT "Communist ticket" FROM table_40850 WHERE "American Labor ticket" = 'joseph v. o''leary'
Who's the Communist ticket with an American Labor ticket of joseph v. o'leary?
CREATE TABLE table_40850 ( "Republican ticket" text, "Democratic ticket" text, "American Labor ticket" text, "Communist ticket" text, "Socialist ticket" text )