answer
stringlengths
6
3.91k
question
stringlengths
7
766
context
stringlengths
27
7.14k
SELECT no_s_ FROM table_name_4 WHERE height_in_ft = "6-7" AND position = "guard"
Name the numbers for the player with a height in ft of 6-7 for the guard
CREATE TABLE table_name_4 (no_s_ VARCHAR, height_in_ft VARCHAR, position VARCHAR)
SELECT series__number FROM table_2161859_1 WHERE title = "The Golden Frog"
What is the series number for the Golden Frog?
CREATE TABLE table_2161859_1 (series__number VARCHAR, title VARCHAR)
SELECT MAX("First Elected") FROM table_15823 WHERE "District" = '06.0 6' AND "Committee" = 'economic matters'
What is the Highest first elected year that has a district of 06.0 6, and a committee of economic matters?
CREATE TABLE table_15823 ( "District" text, "Counties Represented" text, "Party" text, "First Elected" real, "Committee" text )
SELECT height_in_ft FROM table_name_59 WHERE school_club_team_country = "wyoming"
Name the height in ft for the player from wyoming
CREATE TABLE table_name_59 (height_in_ft VARCHAR, school_club_team_country VARCHAR)
SELECT artist FROM table_2161859_1 WHERE strip_numbers = "3932-4031A"
Who is the artist for strip numbers 3932-4031a?
CREATE TABLE table_2161859_1 (artist VARCHAR, strip_numbers VARCHAR)
SELECT MIN(demographic.days_stay) FROM demographic WHERE demographic.age >= "41"
What is the minimum days of hospital stay of patients whose age is equal or more than 41 years?
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 procedures ( subject_id text, hadm_id text, icd9_code text, short_title text, long_title text ) ...
SELECT college FROM table_name_29 WHERE cfl_team = "calgary stampeders"
Which college did the Calgary Stampeders recruit from?
CREATE TABLE table_name_29 (college VARCHAR, cfl_team VARCHAR)
SELECT champions FROM table_21632864_1 WHERE third_place = "Ehime Shimanami"
who got the first position when Ehime Shimanami got the third position?
CREATE TABLE table_21632864_1 (champions VARCHAR, third_place VARCHAR)
SELECT louise FROM table_name_83 WHERE dainty_june = "tracy venner"
Who was Louise when Tracy Venner was Dainty June?
CREATE TABLE table_name_83 ( louise VARCHAR, dainty_june VARCHAR )
SELECT MIN(year) FROM table_name_87 WHERE co_singer = "solo" AND film_name = "bhagya debata"
Which year has the Co-singer solo and a Film name of bhagya debata?
CREATE TABLE table_name_87 (year INTEGER, co_singer VARCHAR, film_name VARCHAR)
SELECT third_place FROM table_21632864_1 WHERE runners_up = "Laranja Kyoto"
who got the third position when laranja kyoto got the second position?
CREATE TABLE table_21632864_1 (third_place VARCHAR, runners_up VARCHAR)
SELECT listed FROM table_name_14 WHERE county = "cochise"
when was the site listed when the county is cochise?
CREATE TABLE table_name_14 ( listed VARCHAR, county VARCHAR )
SELECT date FROM table_name_30 WHERE grand_prix = "portuguese grand prix"
What date is the Portuguese Grand Prix?
CREATE TABLE table_name_30 (date VARCHAR, grand_prix VARCHAR)
SELECT COUNT(third_place) FROM table_21632864_1 WHERE fourth_place = "Sanyo Electric Tokushima"
how many persons got the third position whan sanyo electric tokushima got the fourth position?
CREATE TABLE table_21632864_1 (third_place VARCHAR, fourth_place VARCHAR)
SELECT "Episode" FROM table_61324 WHERE "Rating" = '1.8' AND "Viewers (m)" < '2.73'
What Episode has a Rating of 1.8, and Viewers (m) smaller than 2.73?
CREATE TABLE table_61324 ( "Episode" text, "18-49" text, "Viewers (m)" real, "Rating" text, "Share" text )
SELECT winning_driver FROM table_name_48 WHERE location = "imola"
Which winning driver is located in Imola?
CREATE TABLE table_name_48 (winning_driver VARCHAR, location VARCHAR)
SELECT COUNT(fourth_place) FROM table_21632864_1 WHERE regional = "Shikoku"
how many persons got the fourth position when the regional was shikoku?
CREATE TABLE table_21632864_1 (fourth_place VARCHAR, regional VARCHAR)
SELECT 2009 FROM table_name_51 WHERE tournament = "french open"
Which 2009 tournament was french open?
CREATE TABLE table_name_51 ( tournament VARCHAR )
SELECT pole_position FROM table_name_98 WHERE grand_prix = "portuguese grand prix"
What is the Pole Position of the Portuguese Grand Prix?
CREATE TABLE table_name_98 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT champions FROM table_21632864_1 WHERE regional = "Hokushinetsu"
who got the first place when the Japanese Regional Leagues was in hokushinetsu?
CREATE TABLE table_21632864_1 (champions VARCHAR, regional VARCHAR)
SELECT Sex, COUNT(*) FROM people WHERE Weight > 85 GROUP BY Sex ORDER BY Sex DESC
Count the number of people of each sex who have a weight higher than 85, and display x-axis from high to low order.
CREATE TABLE candidate ( Candidate_ID int, People_ID int, Poll_Source text, Date text, Support_rate real, Consider_rate real, Oppose_rate real, Unsure_rate real ) CREATE TABLE people ( People_ID int, Sex text, Name text, Date_of_Birth text, Height real, Weight re...
SELECT date FROM table_name_76 WHERE location = "long beach"
On what date did a race occur at Long Beach?
CREATE TABLE table_name_76 (date VARCHAR, location VARCHAR)
SELECT champions FROM table_21632864_1 WHERE fourth_place = "Fujieda City Government"
who got the first position when fujieda city government got the fourth position?
CREATE TABLE table_21632864_1 (champions VARCHAR, fourth_place VARCHAR)
SELECT "Date" FROM table_53105 WHERE "Tyre" = 'd' AND "Winning driver" = 'bruce mclaren'
What date was the Tyre d and Bruce Mclaren won?
CREATE TABLE table_53105 ( "Race" text, "Circuit" text, "Date" text, "Pole position" text, "Fastest lap" text, "Winning driver" text, "Constructor" text, "Tyre" text, "Report" text )
SELECT race FROM table_name_63 WHERE pole_position = "jody scheckter"
What race had Jody Scheckter hold pole position?
CREATE TABLE table_name_63 (race VARCHAR, pole_position VARCHAR)
SELECT civilians FROM table_21636599_2 WHERE security_forces = "36"
What are the civilian total when the security force total is 36?
CREATE TABLE table_21636599_2 (civilians VARCHAR, security_forces VARCHAR)
SELECT T1.name, T1.description FROM photos AS T1 JOIN tourist_attractions AS T2 ON T1.tourist_attraction_id = T2.tourist_attraction_id WHERE T2.name = "film festival"
Find the names and descriptions of the photos taken at the tourist attraction called 'film festival'.
CREATE TABLE royal_family ( royal_family_id number, royal_family_details text ) CREATE TABLE visitors ( tourist_id number, tourist_details text ) CREATE TABLE ref_hotel_star_ratings ( star_rating_code text, star_rating_description text ) CREATE TABLE theme_parks ( theme_park_id number, ...
SELECT race AS Winner FROM table_name_63 WHERE race = "south african grand prix"
Who won the South African Grand Prix?
CREATE TABLE table_name_63 (race VARCHAR)
SELECT security_forces FROM table_21636599_2 WHERE civilians = "202"
What are the security forces when the civilians are 202?
CREATE TABLE table_21636599_2 (security_forces VARCHAR, civilians VARCHAR)
SELECT week_2 FROM table_name_60 WHERE week_3 = "brittany alyse"
What was the week 2 prior to the when Brittany Alyse was week 3?
CREATE TABLE table_name_60 ( week_2 VARCHAR, week_3 VARCHAR )
SELECT fastest_lap FROM table_name_87 WHERE race = "german grand prix"
Who had the fastest lap at the German Grand Prix?
CREATE TABLE table_name_87 (fastest_lap VARCHAR, race VARCHAR)
SELECT COUNT(security_forces) FROM table_21636599_2 WHERE period = 1998
How many figures are named for security forces in 1998?
CREATE TABLE table_21636599_2 (security_forces VARCHAR, period VARCHAR)
SELECT AVG("Lost") FROM table_49509 WHERE "Played" < '14'
What was the average amount of losses for teams with played less than 14?
CREATE TABLE table_49509 ( "Position" real, "Name" text, "Played" real, "Drawn" real, "Lost" real, "Points" real )
SELECT tyre FROM table_name_5 WHERE race = "united states grand prix"
What is the Tyre for the united states grand prix?
CREATE TABLE table_name_5 (tyre VARCHAR, race VARCHAR)
SELECT insurgents FROM table_21636599_2 WHERE total_per_period = 156
How many insurgents are there when the total per period is 156?
CREATE TABLE table_21636599_2 (insurgents VARCHAR, total_per_period VARCHAR)
SELECT Title, CONCAT('https://electronics.stackexchange.com/questions/', CAST(Id AS TEXT), '/') AS URL FROM Posts WHERE PostTypeId = 1 AND LEFT(Title, 1) = LOWER(LEFT(Title, 1)) ORDER BY CreationDate DESC
Find questions with a lower-case first character in the title.
CREATE TABLE ReviewTaskStates ( Id number, Name text, Description text ) CREATE TABLE PostNotices ( Id number, PostId number, PostNoticeTypeId number, CreationDate time, DeletionDate time, ExpiryDate time, Body text, OwnerUserId number, DeletionUserId number ) CREATE TA...
SELECT result FROM table_name_59 WHERE competition = "1948 og"
What was the result of the 1948 og competition?
CREATE TABLE table_name_59 (result VARCHAR, competition VARCHAR)
SELECT us_viewers__millions_ FROM table_21634403_2 WHERE directed_by = "Frank Waldeck"
How many U.S. viewers watched the episode directed by Frank Waldeck?
CREATE TABLE table_21634403_2 (us_viewers__millions_ VARCHAR, directed_by VARCHAR)
SELECT meter_500, meter_100 FROM swimmer ORDER BY meter_100 DESC
Bar chart x axis meter 500 y axis meter_100, sort y axis in desc order.
CREATE TABLE event ( ID int, Name text, Stadium_ID int, Year text ) CREATE TABLE record ( ID int, Result text, Swimmer_ID int, Event_ID int ) CREATE TABLE stadium ( ID int, name text, Capacity int, City text, Country text, Opening_year int ) CREATE TABLE swimme...
SELECT MIN(grid) FROM table_name_48 WHERE driver = "rolf stommelen"
I want the lowest Grid for Rolf Stommelen
CREATE TABLE table_name_48 (grid INTEGER, driver VARCHAR)
SELECT COUNT(no) FROM table_21649285_2 WHERE tournament = "Sime Darby LPGA Malaysia"
How many tournaments were at sime darby lpga malaysia?
CREATE TABLE table_21649285_2 (no VARCHAR, tournament VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.diagnosis = "CORONARY ARTERY DISEASE\CORONARY ARTERY BYPASS GRAFT; MYOMECTOMY/SDA" AND lab.fluid = "Blood"
how many patients are diagnosed with primary disease coronary artery disease or coronary artery bypass graft myomectomy/sda and tested with blood in lab?
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 constructor FROM table_name_68 WHERE grid < 20 AND laps = 6
I want the constructor for grid less than 20 and Laps of 6
CREATE TABLE table_name_68 (constructor VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT margin_of_victory FROM table_21649285_2 WHERE no = 4
Margin of victory on no. 4 was?
CREATE TABLE table_21649285_2 (margin_of_victory VARCHAR, no VARCHAR)
SELECT director FROM table_25800134_12 WHERE airdate = "September 25, 1967"
Who directed the episode that aired on September 25, 1967?
CREATE TABLE table_25800134_12 ( director VARCHAR, airdate VARCHAR )
SELECT german FROM table_name_59 WHERE year > 1910 AND other = "143" AND hungarian = "32"
What is the german total population after 1910 with an other total of 143 and 32 hungarians?
CREATE TABLE table_name_59 (german VARCHAR, hungarian VARCHAR, year VARCHAR, other VARCHAR)
SELECT runner_s__up FROM table_21649285_2 WHERE margin_of_victory = "4 strokes"
Who was the runner up when the won by 4 strokes?
CREATE TABLE table_21649285_2 (runner_s__up VARCHAR, margin_of_victory VARCHAR)
SELECT location FROM table_name_47 WHERE circuit = "lowood circuit" AND race = "lowood trophy"
what is the location when the circuit is lowood circuit and the race is lowood trophy?
CREATE TABLE table_name_47 ( location VARCHAR, circuit VARCHAR, race VARCHAR )
SELECT year FROM table_name_4 WHERE notes = "200 m" AND position = "3rd"
What year did Naoki Tsukahara finish 3rd in the 200 m race?
CREATE TABLE table_name_4 (year VARCHAR, notes VARCHAR, position VARCHAR)
SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE year__ceremony_ = "1990 (63rd)"
Which film title used in nomination has the year (ceremony) 1990 (63rd)?
CREATE TABLE table_21655290_1 (film_title_used_in_nomination VARCHAR, year__ceremony_ VARCHAR)
SELECT * FROM table_train_124 WHERE clinical_disorder = 1 OR (investigational_new_drug = 1 OR hematologic_disease = 1 OR hepatic_disease = 1 OR (cardiovascular_disease = 1 OR ventricular_fibrillation = 1 OR ventricular_tachycardia = 1) OR pulmonary_disease = 1 OR gastrointestinal_disease = 1 OR endocrine_disease = 1 OR...
evidence of any significant clinical disorder or laboratory finding that renders the participant unsuitable for receiving an investigational new drug including clinically significant or unstable hematologic, hepatic, cardiovascular ( including history of ventricular fibrillation or ventricular tachycardia ) , pulmonary...
CREATE TABLE table_train_124 ( "id" int, "loss_of_consciousness" bool, "serum_glucose" bool, "myelosuppression" bool, "retinoids_hepatotoxic" bool, "pulmonary_disease" bool, "etiology" bool, "abnormal_thyroid_function" bool, "laboratory_abnormality" bool, "chest_pain" bool, "...
SELECT COUNT(attendance) FROM table_name_67 WHERE home = "dallas" AND date = "may 12"
What is the attendance at the Dallas home game on may 12?
CREATE TABLE table_name_67 (attendance VARCHAR, home VARCHAR, date VARCHAR)
SELECT director FROM table_21655290_1 WHERE original_title = "Kon-Tiki"
Who is the director of kon-tiki original title?
CREATE TABLE table_21655290_1 (director VARCHAR, original_title VARCHAR)
SELECT MIN("year") FROM table_204_940 WHERE "top 10s" > 0
what was the first year where this golfer scored in the top 10 ?
CREATE TABLE table_204_940 ( id number, "year" number, "tournaments\nplayed" number, "cuts\nmade" number, "wins" number, "2nd" number, "3rd" number, "top 10s" number, "best\nfinish" text, "earnings\n(\u20ac)" number, "money\nlist rank" number, "scoring\naverage" number, ...
SELECT country FROM table_name_83 WHERE rank = 2
What nationality is the player ranked 2?
CREATE TABLE table_name_83 (country VARCHAR, rank VARCHAR)
SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE original_title = "Vinterkyss"
Which film title used in nomination has vinterkyss as the original title?
CREATE TABLE table_21655290_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR)
SELECT ((YEAR(CURRENT_TIMESTAMP()) - YEAR(P.CreationDate)) * 12 + MONTH(CURRENT_TIMESTAMP()) - MONTH(P.CreationDate)) AS monthsAgo, COUNT(*) FROM Posts AS P INNER JOIN PostTags AS PT ON P.Id = PT.PostId INNER JOIN Tags AS T ON PT.TagId = T.Id WHERE ((YEAR(CURRENT_TIMESTAMP()) - YEAR(P.CreationDate)) * 12 + MONTH(CURREN...
Year on year growth by month for a tag.
CREATE TABLE Posts ( Id number, PostTypeId number, AcceptedAnswerId number, ParentId number, CreationDate time, DeletionDate time, Score number, ViewCount number, Body text, OwnerUserId number, OwnerDisplayName text, LastEditorUserId number, LastEditorDisplayName text...
SELECT COUNT(wins) FROM table_name_49 WHERE player = "mike hill" AND rank < 4
How many wins for mike hill ranked below 4?
CREATE TABLE table_name_49 (wins VARCHAR, player VARCHAR, rank VARCHAR)
SELECT date FROM table_2167226_3 WHERE tournament = "McDonald's WPGA Championship"
What is the date for the tournament McDonald's wpga championship?
CREATE TABLE table_2167226_3 (date VARCHAR, tournament VARCHAR)
SELECT capacity_percentage FROM table_28884858_2 WHERE average_attendance = 71080
What was the capacity percentage when attendance was 71080?
CREATE TABLE table_28884858_2 ( capacity_percentage VARCHAR, average_attendance VARCHAR )
SELECT nationality FROM table_name_10 WHERE player = "trevor cann"
What is Trevor Cann's nationality?
CREATE TABLE table_name_10 (nationality VARCHAR, player VARCHAR)
SELECT winning_score FROM table_2167226_3 WHERE margin_of_victory = "5 strokes"
What is the winning score when 5 strokes is the margin of victory?
CREATE TABLE table_2167226_3 (winning_score VARCHAR, margin_of_victory VARCHAR)
SELECT DISTINCT course.department, course.name, course.number FROM course, course_offering, instructor, offering_instructor, semester WHERE course.course_id = course_offering.course_id AND instructor.name LIKE '%Giorgio Bertellini%' AND offering_instructor.instructor_id = instructor.instructor_id AND offering_instructo...
Beginning next semester ; which classes will be taught by Dr. Giorgio Bertellini ?
CREATE TABLE program ( program_id int, name varchar, college varchar, introduction varchar ) CREATE TABLE program_requirement ( program_id int, category varchar, min_credit int, additional_req varchar ) CREATE TABLE student_record ( student_id int, course_id int, semester i...
SELECT nationality FROM table_name_60 WHERE player = "kent patterson"
What is Kent Patterson's nationality?
CREATE TABLE table_name_60 (nationality VARCHAR, player VARCHAR)
SELECT to_par FROM table_2167226_3 WHERE winning_score = 74 - 67 - 71 - 73 = 285
What is the to par with the winning score of 74-67-71-73=285?
CREATE TABLE table_2167226_3 (to_par VARCHAR, winning_score VARCHAR)
SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE diagnoses.short_title = "Physical restrain status" AND prescriptions.drug_type = "BASE"
count the number of patients whose diagnoses short title is physical restrain status and drug type is base?
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 demographic ( subject_id text, hadm_id t...
SELECT unit FROM table_name_27 WHERE pennant_number = 82
Which unit has a Pennant Number of 82?
CREATE TABLE table_name_27 (unit VARCHAR, pennant_number VARCHAR)
SELECT date FROM table_2167226_3 WHERE winning_score = 74 - 67 - 71 - 73 = 285
What is the date of the winning score 74-67-71-73=285?
CREATE TABLE table_2167226_3 (date VARCHAR, winning_score VARCHAR)
SELECT 1992 FROM table_name_43 WHERE 1988 = "a" AND tournament = "australian open"
What shows for 1992 when 1988 is A, at the Australian Open?
CREATE TABLE table_name_43 ( tournament VARCHAR )
SELECT MAX(pennant_number) FROM table_name_54 WHERE ships_in_class = "raahe"
What is the highest pennant number with ships in raahe class?
CREATE TABLE table_name_54 (pennant_number INTEGER, ships_in_class VARCHAR)
SELECT COUNT(no_in_series) FROM table_21666472_1 WHERE written_by = "Greg Haddrick"
How many number in series's are written by Greg Haddrick?
CREATE TABLE table_21666472_1 (no_in_series VARCHAR, written_by VARCHAR)
SELECT year FROM table_name_77 WHERE engine = "ferrari v6"
What year engine does a ferrari v6 have?
CREATE TABLE table_name_77 ( year VARCHAR, engine VARCHAR )
SELECT MAX(pennant_number) FROM table_name_61 WHERE ships_in_class = "pori"
What is the highest pennant number with ships in pori class?
CREATE TABLE table_name_61 (pennant_number INTEGER, ships_in_class VARCHAR)
SELECT year FROM table_21676617_1 WHERE odds_of_winner = "16.66"
When were the odds of winner 16.66?
CREATE TABLE table_21676617_1 (year VARCHAR, odds_of_winner VARCHAR)
SELECT SUM(lane) FROM table_name_32 WHERE time = 53.61 AND rank > 3
How many lanes have a Time of 53.61, and a Rank larger than 3?
CREATE TABLE table_name_32 ( lane INTEGER, time VARCHAR, rank VARCHAR )
SELECT competition FROM table_name_90 WHERE score = "2-1"
What is the name of the competition that ended with a score of 2-1?
CREATE TABLE table_name_90 (competition VARCHAR, score VARCHAR)
SELECT winning_time__km_rate_ FROM table_21676617_1 WHERE odds_of_winner = "2.94"
What was the winning time in the year when the odds of the winner were 2.94?
CREATE TABLE table_21676617_1 (winning_time__km_rate_ VARCHAR, odds_of_winner VARCHAR)
SELECT installation_date, COUNT(installation_date) FROM station ORDER BY COUNT(installation_date) DESC
Bin the installation date into the day of week interval, and then you can draw a bar chart to tell me how many stations each year, and list Y in desc order.
CREATE TABLE weather ( date TEXT, max_temperature_f INTEGER, mean_temperature_f INTEGER, min_temperature_f INTEGER, max_dew_point_f INTEGER, mean_dew_point_f INTEGER, min_dew_point_f INTEGER, max_humidity INTEGER, mean_humidity INTEGER, min_humidity INTEGER, max_sea_level_pre...
SELECT competition FROM table_name_63 WHERE score = "1-3"
What is the name of the competition that ended with a score of 1-3?
CREATE TABLE table_name_63 (competition VARCHAR, score VARCHAR)
SELECT odds_of_winner FROM table_21676617_1 WHERE horse = "Gentleman"
What were Gentleman's odds of winner?
CREATE TABLE table_21676617_1 (odds_of_winner VARCHAR, horse VARCHAR)
SELECT icao FROM table_name_52 WHERE airport = "yangon international airport"
What is the ICAO for the Yangon International Airport?
CREATE TABLE table_name_52 ( icao VARCHAR, airport VARCHAR )
SELECT venue FROM table_name_5 WHERE date = "28 october 2013"
At which venue did the game on 28 october 2013 take place?
CREATE TABLE table_name_5 (venue VARCHAR, date VARCHAR)
SELECT COUNT(country_of_owner) FROM table_21676617_1 WHERE horse = "Utah Bulwark"
How many countries did Utah Bulwark's owner come from?
CREATE TABLE table_21676617_1 (country_of_owner VARCHAR, horse VARCHAR)
SELECT COUNT("Win %") FROM table_5533 WHERE "Appearances" = '4' AND "Losses" > '3'
What's the total number of Win % with an Appearances of 4, and Losses that's larger than 3?
CREATE TABLE table_5533 ( "Appearances" real, "Team" text, "Wins" real, "Losses" real, "Win %" real )
SELECT competition FROM table_name_74 WHERE score = "2-1"
What is the Competition name of the competition that ended with a score of 2-1?
CREATE TABLE table_name_74 (competition VARCHAR, score VARCHAR)
SELECT COUNT(horse) FROM table_21676617_1 WHERE year = 1985
How many horses are mentioned competing in 1985?
CREATE TABLE table_21676617_1 (horse VARCHAR, year VARCHAR)
SELECT name FROM table_name_88 WHERE term_end = "18 july 1944"
Which Name has a Term end of 18 july 1944?
CREATE TABLE table_name_88 ( name VARCHAR, term_end VARCHAR )
SELECT year FROM table_name_70 WHERE engine = "yamaha v12" AND chassis = "brabham bt60y"
In what year did a car have a yamaha v12 engine and a brabham bt60y chassis
CREATE TABLE table_name_70 (year VARCHAR, engine VARCHAR, chassis VARCHAR)
SELECT MAX(area__km²_) FROM table_2168295_1 WHERE headquarters = "Bharatpur"
If the headquarters is Bharatpur, what is the maximum area?
CREATE TABLE table_2168295_1 (area__km²_ INTEGER, headquarters VARCHAR)
SELECT "Division Record" FROM table_68072 WHERE "Team" = 'riders'
Name the division record for riders
CREATE TABLE table_68072 ( "School" text, "Team" text, "Division Record" text, "Overall Record" text, "Season Outcome" text )
SELECT MAX(year) FROM table_name_31 WHERE chassis = "mclaren mp4/10b"
waht is the last year with a mclaren mp4/10b chassis
CREATE TABLE table_name_31 (year INTEGER, chassis VARCHAR)
SELECT area__km²_ FROM table_2168295_1 WHERE district = "Chittorgarh"
If the district is Chittorgarh, what is the area?
CREATE TABLE table_2168295_1 (area__km²_ VARCHAR, district VARCHAR)
SELECT T1.Budget_Type_Code, COUNT(T1.Budget_Type_Code) FROM Documents_with_Expenses AS T1 JOIN Ref_Budget_Codes AS T2 ON T1.Budget_Type_Code = T2.Budget_Type_Code GROUP BY T1.Budget_Type_Code ORDER BY T1.Budget_Type_Code DESC
Return a bar chart to show how many documents for different budget type code, I want to list from high to low by the bars.
CREATE TABLE Statements ( Statement_ID INTEGER, Statement_Details VARCHAR(255) ) CREATE TABLE Ref_Budget_Codes ( Budget_Type_Code CHAR(15), Budget_Type_Description VARCHAR(255) ) CREATE TABLE Documents ( Document_ID INTEGER, Document_Type_Code CHAR(15), Project_ID INTEGER, Document_Dat...
SELECT AVG(pts) FROM table_name_58 WHERE chassis = "mclaren mp4/10b" AND year < 1995
before 1995 waht is the aveage pts for a mclaren mp4/10b chassis
CREATE TABLE table_name_58 (pts INTEGER, chassis VARCHAR, year VARCHAR)
SELECT headquarters FROM table_2168295_1 WHERE population__2011_ = 3685681
If the 2011 population is 3685681, what is the name of the headquarters?
CREATE TABLE table_2168295_1 (headquarters VARCHAR, population__2011_ VARCHAR)
SELECT U.Id AS "user_link", (SELECT COUNT(V.Id) AS "favorites" FROM Votes AS V, VoteTypes AS Vt WHERE Vt.Id = V.VoteTypeId AND U.Id = V.UserId AND Vt.Id = 5) AS "favs" FROM Users AS U WHERE (SELECT COUNT(V.Id) AS "favorites" FROM Votes AS V, VoteTypes AS Vt WHERE Vt.Id = V.VoteTypeId AND U.Id = V.UserId AND Vt.Id = 5) ...
Users with the most Favorites.
CREATE TABLE VoteTypes ( Id number, Name text ) CREATE TABLE FlagTypes ( Id number, Name text, Description text ) CREATE TABLE Users ( Id number, Reputation number, CreationDate time, DisplayName text, LastAccessDate time, WebsiteUrl text, Location text, AboutMe tex...
SELECT MAX(year) FROM table_name_84 WHERE entrant = "ligier gitanes blondes"
what is the most recent year for a ligier gitanes blondes
CREATE TABLE table_name_84 (year INTEGER, entrant VARCHAR)
SELECT MIN(area__km²_) FROM table_2168295_1 WHERE population__2011_ = 3067549
What is the minimum area id the 2011 population is 3067549?
CREATE TABLE table_2168295_1 (area__km²_ INTEGER, population__2011_ VARCHAR)
SELECT "Home team" FROM table_62247 WHERE "Tie no" = '27'
What is Home Team, when Tie no is '27'?
CREATE TABLE table_62247 ( "Tie no" text, "Home team" text, "Score" text, "Away team" text, "Date" text )
SELECT SUM(average) FROM table_name_62 WHERE interview = 8.75 AND evening_gown > 8.75
What is the total number of averages with an interview of 8.75 when the evening gown number was bigger than 8.75?
CREATE TABLE table_name_62 (average INTEGER, interview VARCHAR, evening_gown VARCHAR)